HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wptrinityconsulting/wp-content/themes/finbuzz/template-parts/content-gallery-1.php
<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */

$thumb_size = 'finbuzz-size7';
$id 		= get_the_ID();
$content 	= get_the_content();
$content 	= apply_filters( 'the_content', $content );
$content 	= wp_trim_words( get_the_excerpt(), FinbuzzTheme::$options['gallery_arexcerpt_limit'], '' );

?>
<article id="post-<?php the_ID(); ?>">
	<div class="rtin-item">
		<div class="rtin-figure">
			<a href="<?php the_permalink(); ?>">
				<?php
					if ( has_post_thumbnail() ){
						the_post_thumbnail( $thumb_size, ['class' => 'img-fluid mb-10 width-100'] );
					} else {
						if ( !empty( FinbuzzTheme::$options['no_preview_image']['id'] ) ) {
							echo wp_get_attachment_image( FinbuzzTheme::$options['no_preview_image']['id'], $thumb_size );
						} else {
							echo '<img class="wp-post-image" src="' . FinbuzzTheme_Helper::get_img( 'noimage_370X328.jpg' ) . '" alt="'. the_title_attribute( array( 'echo'=> false ) ) .'">';
						}
					}
				?>
			</a>
            <div class="rtin-content">
                <h3><a href="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" class="finbuzz-popup-zoom img-popup-icon"><?php the_title();?></a></h3>					
                <?php if ( FinbuzzTheme::$options['gallery_ar_category'] ) { ?>
                <div class="rtin-cat"><?php
                    $i = 1;
                    $term_lists = get_the_terms( get_the_ID(), 'finbuzz_gallery_category' );
                    if($term_lists){
                        foreach ( $term_lists as $term_list ){ 
                        $link = get_term_link( $term_list->term_id, 'finbuzz_gallery_category' ); ?><?php if ( $i > 1 ){ echo esc_html( ', ' ); } ?><a href="<?php echo esc_url( $link ); ?>"><?php echo esc_html( $term_list->name ); ?></a><?php $i++; }
                        } ?>
                </div>
                <?php } ?>
                <?php if ( FinbuzzTheme::$options['gallery_ar_excerpt'] ) { ?>
                    <p><?php echo wp_kses( $content , 'alltext_allow' ); ?></p>
                <?php } ?>
                <?php if (  FinbuzzTheme::$options['gallery_ar_link'] ) { ?>
                    <div class="item-button">
                        <a href="<?php the_permalink();?>" class="gallery-btn">+</a>
                    </div>
                <?php } ?>
		    </div>
		</div>
	</div>
</article>