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-4.php
<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */

namespace radiustheme\Finbuzz_Core;

use FinbuzzTheme;
use FinbuzzTheme_Helper;
use \WP_Query;

$thumb_size = 'finbuzz-size2';
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_sorting = $data['orderby'];
$post_ordering = $data['post_ordering'];
$title_count = $data['title_count'];
$excerpt_count = $data['excerpt_count'];	
$cat_single_grid = $data['cat_single'];
$args = array(
	'post_type' 		=> 'finbuzz_service',
	'post_status' 		=> 'publish',
	'orderby' 			=> $post_sorting,
	'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,
		)
	);
}
$svg='<svg 
		xmlns="http://www.w3.org/2000/svg"
		xmlns:xlink="http://www.w3.org/1999/xlink"
		width="24px" height="24px" viewBox="0 0 24 24">
		<path fill-rule="evenodd" fill="#FA360A" d="M11.998 23.997c-6.617 0-11.999-5.383-11.999-11.999 0-6.616 5.382-11.999 11.999-11.999 6.616 0 11.999 5.383 11.999 11.999 0 6.616-5.383 11.999-11.999 11.999Zm0-21.816c-5.414 0-9.818 4.404-9.818 9.817 0 5.414 4.404 9.817 9.818 9.817 5.413 0 9.817-4.403 9.817-9.817 0-5.413-4.404-9.817-9.817-9.817Zm5.37 10.234a1.11 1.11 0 0 1-.237.355l-4.362 4.362c-.213.214-.492.32-.771.32a1.09 1.09 0 0 1-.772-1.862l2.502-2.501H7.634a1.092 1.092 0 0 1 0-2.182h6.094l-2.502-2.501a1.091 1.091 0 0 1 1.543-1.543l4.362 4.363a1.095 1.095 0 0 1 .237 1.189Z"/>
		</svg>';
$query = new WP_Query( $args );
$temp = FinbuzzTheme_Helper::wp_set_temp_query( $query );

$gap_class = '';
if ( $data['column_no_gutters'] == 'hide' ) {
   $gap_class = 'no-gutters';
}
$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-<?php echo esc_attr( $data['layout'] );?> service-grid-<?php echo esc_attr( $data['layout'] );?>">
	<div class="row <?php echo esc_attr( $gap_class ); ?>">	
		<?php
			 $i = $data['delay']; $j = $data['duration'];
			if ( $query->have_posts() ) {
				while ( $query->have_posts() ) {
				$query->the_post();			
				$id								= $query->ID;
				$excerpt 						= wp_trim_words( get_the_excerpt(), $excerpt_count, '' );
				$service_title 					= wp_trim_words( get_the_title(), $title_count, '' );
				$finbuzz_service_icon   		= get_post_meta( get_the_ID(), 'finbuzz_service_icon', true );
				$finbuzz_insurance_img   		= get_post_meta( get_the_ID(), 'finbuzz_service_img', true );
		?>
		<div class="<?php echo esc_attr( $col_class ) ?>">
			<div class="service-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-box-content">
					<div class="service-figure" >
                        <?php
                            if ( has_post_thumbnail() ){
                                the_post_thumbnail( $thumb_size, ['class' => 'img-fluid  width-100'] );
                            }
                            else {
                                    echo '<img class="wp-post-image" src="' . FinbuzzTheme_Helper::get_img( 'noimage_570X447.jpg' ) . '" alt="'.get_the_title().'">';
                                }
                        ?>
					</div>
                    <div class="service-content">
                        <?php if($data['icon_display']){ ?>
                            <?php if ( (!empty($finbuzz_service_icon )  || !empty($finbuzz_insurance_img) ) ) { ?>
                                <?php if (  $finbuzz_insurance_img) : ?>
                                <div class="service-img-wrap">
                                    <?php if(($finbuzz_insurance_img)): ?>
                                        <div class="service-hover-img">
                                        <span><?php echo wp_get_attachment_image($finbuzz_insurance_img);?></span>
                                        </div>
                                    <?php endif; ?>	
                                </div>
                                <?php else: ?>
                                <div class="icon">
                                    <i class="<?php echo wp_kses_post( $finbuzz_service_icon );?>"></i>
                                </div>
                            <?php endif; ?>
                            <?php } ?>
                        <?php } ?>
                        <div class="service-info">
                            <h3 class="service-title"><a href="<?php the_permalink();?>"><?php echo esc_html( $service_title  );?></a></h3>
                            <?php if($data['excerpt_display']){ ?>
                                <p><?php echo wp_kses( $excerpt , 'alltext_allow' ); ?></p>
                            <?php } ?>
                            <?php if ( $data['read_display'] == 'yes' ) { ?>
                                    <a class="btn-style7" href="<?php  the_permalink(); ?>"><?php  esc_html_e( 'READ MORE', 'finbuzz-core' );?>
                                        <?php echo wp_kses_post($svg); ?>
                                    </a>
                            <?php } ?>
                        </div>
					</div>
				</div>
			</div>
		</div>
		<?php $i = $i + 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'] );?><?php echo wp_kses_post($svg); ?></a>
				</div>
			<?php } ?>
		<?php } else { ?>
			<?php FinbuzzTheme_Helper::pagination(); ?>
		<?php } ?>
	<?php endif ;?>	
		<?php FinbuzzTheme_Helper::wp_reset_temp_query( $temp ); ?>
</div>