HEX
Server: nginx/1.18.0
System: Linux vcwordpress 5.15.0-174-generic #184-Ubuntu SMP Fri Mar 13 18:41:50 UTC 2026 x86_64
User: root (0)
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/bharti-foundation.stgviitor.com/wp-content/themes/lifeline/templates/gallery/grid-1.php
<?php
$opt          = lifeline()->options();
$title_limit = lifeline_get( $opt, 'gallery_list_title_word_limit' );
$col           = lifeline_get( $opt, 'gallery_list_col' );

?>
<div class="gallery-wrap">
	<div class="row">
		<?php while ( have_posts() ) : ?>
			<?php the_post(); ?>
			<div class="col-sm-6 col-md-<?php echo $col ?>">
				<div class="gallery-box">
					<a  href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php the_title_attribute(); ?>">
						<?php the_post_thumbnail( 'lifeline_555x623', array( 'class' => 'img-fluid w-100' ) ); ?>
					</a>
					<div class="gallery-content" >
						<h3 >
							<?php if ( empty( $title_limit ) ) : ?>
								<a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php the_title_attribute(); ?>"><?php echo wp_trim_words( get_the_title(), $title_limit , '' ); ?></a>
							<?php else : ?>
								<a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php the_title_attribute(); ?>"><?php echo wp_trim_words( get_the_title(), $title_limit ); ?></a>	
							<?php endif; ?>
						</h3>
					</div>
				</div>
			</div>
		<?php endwhile; ?>
	</div>
	<?php lifeline_the_pagination(); ?>
</div>