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/plugins/finbuzz-core/elementor/views/service-9.php
<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */

namespace radiustheme\Finbuzz_Core;

use FinbuzzTheme;
use FinbuzzTheme_Helper;
use \WP_Query;

if ( get_query_var('paged') ) {
	$paged = get_query_var('paged');
}
else if ( get_query_var('page') ) {
	$paged = get_query_var('page');
}
else {
	$paged = 1;
}


$number_of_post = $data['itemnumber'];
$post_soserviceg = $data['orderby'];
$post_ordering = $data['post_ordering'];
$excerpt_count = $data['excerpt_count'];	
$title_count = $data['title_count'];	
$cat_single_grid = $data['cat_single'];
$args = array(
	'post_type' 		=> 'finbuzz_service',
	'post_status' 		=> 'publish',
	'orderby' 			=> $post_soserviceg,
	'order' 			=> $post_ordering,
	'posts_per_page' 	=> $number_of_post,
	'paged'          	=> $paged,
);

if ( $cat_single_grid != 0 ) {
	$args['tax_query'] = array (
		array (
			'taxonomy' => 'finbuzz_service_category',
			'field'    => 'ID',
			'terms'    => $cat_single_grid,
		)
	);
}
$thumb_size = 'finbuzz-size2';

$query = new WP_Query( $args );

$temp = FinbuzzTheme_Helper::wp_set_temp_query( $query );

$col_class = "col-xl-{$data['col_xl']} col-lg-{$data['col_lg']} col-md-{$data['col_md']} col-sm-{$data['col_sm']} col-{$data['col']}";

?>
<div class="service-default  service-grid-<?php echo esc_attr( $data['layout'] );?>">
	<div class="row" >	
		<?php
			$i = $data['delay']; $j = $data['duration'];
            $count=1;
			if ( $query->have_posts() ) {
				while ( $query->have_posts() ) {
				$query->the_post();			
				$service_title 		= wp_trim_words( get_the_title(), $title_count, '' );
                $excerpt 				= wp_trim_words( get_the_excerpt(), $excerpt_count, '' );		
		?>
		<div class="<?php echo esc_attr( $col_class ) ?> ">
			<div class="service-item rtin-item rt-animate <?php echo esc_attr( $data['animation'] );?> <?php echo esc_attr( $data['animation_effect'] );?>" data-wow-delay="<?php echo esc_attr( $i );?>s" data-wow-duration="<?php echo esc_attr( $j );?>s">
				<div class="service-figure rtin-figure">
					
					<?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_390X340.jpg' ) . '" alt="'.get_the_title().'">';
							}
						}
					?>
                    
                    <div class="service-box-content rtin-content">
                        <div class="content-header">
							
                            <div class="service-count">
								<?php if($count<10) 
								{ 
									echo esc_html( '0','finbuzz-core');
									echo esc_html($count);
								} else{
									echo esc_html($count);
								}?>
							</div>
                            <h3 class="service-title"><a href="<?php the_permalink();?>"><?php echo esc_html($service_title);?></a></h3>
                        </div>
                        <div class="content-footer">
                            <?php if ( $data['excerpt_display'] == 'yes' ) { ?>
                                <p class="service-text"><?php echo wp_kses( $excerpt , 'alltext_allow' ); ?></p>
                            <?php } ?>
                            <?php if ( $data['read_display']=='yes' ) { ?>
                                <div class="portfolio-btn">
                                    <a href="<?php the_permalink();?>"><?php esc_html_e('Read More','finbuzz-core'); ?></a>
                                </div>
                            <?php } ?>
                        </div>
                        
				    </div>
				</div>
			</div>
		</div>
		<?php  $count++; $i = $i + 0.2; $j = $j + 0.2; } ?>
	<?php } ?>
	</div>
	<?php  if ( $data['more_button_display']  == 'yes' ) : ?>
		<?php if ( $data['more_button'] == 'show' ) { ?>
			<?php if ( !empty( $data['see_button_text'] ) ) { ?>
				<div class="service-more-button"><a class="btn-style1" href="<?php echo esc_url( $data['see_button_link'] );?>"><?php 	echo esc_html( $data['see_button_text'] );?></a>
				</div>
			<?php } ?>
		<?php } else { ?>
			<?php FinbuzzTheme_Helper::pagination(); ?>
		<?php } ?>
	<?php endif ; ?>	
		<?php FinbuzzTheme_Helper::wp_reset_temp_query( $temp ); ?>
</div>