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/template-events.php
<?php
/* Template Name: Events
*/

?>

<?php
get_header();
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
    $args = array(
      'post_type' => 'lif_event',
      'post_status' => 'publish',
      'paged' => $paged

    );
   $opt         = lifeline()->options();
$title_limit = lifeline_get( $opt, 'event_list_title_character_limit', '15' ); 

$ch_limit = lifeline_get( $opt, 'event_list_character_limit', '15' );

$style = lifeline_get( $opt, 'event_listing_style' ); 


    $query = new WP_Query($args);
if ($query->have_posts()) :


?>
<section class="py-110">
	<?php if ($style == 'event-list') {
		echo '<div class="custom-continer-fluid">';
		echo '<div class="event-style4">';
	} else {
		echo '<div class="container">';
		echo '<div class="row">';
	} ?>
		<?php while ( $query->have_posts() ) : $query->the_post();  ?>
			
			 <?php lifeline_template_load( 'templates/event/'.$style.'.php', compact( 'title_limit', 'ch_limit') ); ?>
		<?php endwhile; wp_reset_postdata(); ?>
		
		<?php endif; ?>
		</div>
		<?php lifeline_the_pagination($query->max_num_pages); ?>
	</div>
</section>

<?php
get_footer();