403Webshell
Server IP : 104.21.20.151  /  Your IP : 216.73.216.217
Web Server : Apache
System : Linux sr32.hostlife.net 6.12.0-124.52.3.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 2 09:06:54 EDT 2026 x86_64
User : golfb689 ( 1071)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/golfb689/fonbetbk.click/wp-content/themes/virtue_premium/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/golfb689/fonbetbk.click/wp-content/themes/virtue_premium/page-testimonial-grid.php
<?php
/*
Template Name: Testimonial Grid
*/
?>
	<div id="pageheader" class="titleclass">
		<div class="container">
			<?php get_template_part('templates/page', 'header'); ?>
		</div><!--container-->
	</div><!--titleclass-->
	
    <div id="content" class="container">
   		<div class="row">
      		<div class="main <?php echo esc_attr(kadence_main_class()); ?>" id="ktmain" role="main">
				<div class="entry-content" itemprop="mainContentOfPage">
					<?php get_template_part('templates/content', 'page'); ?>
				</div>
	      	<?php global $post, $virtue_premium; 
	      		if(isset($virtue_premium['virtue_animate_in']) && $virtue_premium['virtue_animate_in'] == 1) {
	      			$animate = 1;
	      		} else {
	      			$animate = 0;
	      		}
	      		$testimonial_category 		= get_post_meta( $post->ID, '_kad_testimonial_type', true ); 
				$testimonial_items 			= get_post_meta( $post->ID, '_kad_testimonial_items', true );
				$limit_testimonial 			= get_post_meta( $post->ID, '_kad_limit_testimonial', true );
				$testimonial_word_count 	= get_post_meta( $post->ID, '_kad_testimonial_word_count', true );
				$single_testimonial_link 	= get_post_meta( $post->ID, '_kad_single_testimonial_link', true );
				$testimonial_link_text 		= get_post_meta( $post->ID, '_kad_testimonial_link_text', true );
				$testimonial_column 		= get_post_meta( $post->ID, '_kad_testimonial_columns', true );
				   	if($testimonial_category == '-1' || empty($testimonial_category)) {
				   		$testimonial_cat_slug 	= '';
				   		$testimonial_cat_ID 	= '';
				   	} else {
						$testimonial_cat 		= get_term_by ('id',$testimonial_category,'testimonial-group' );
						$testimonial_cat_slug 	= $testimonial_cat -> slug;
						$testimonial_cat_ID 	= $testimonial_cat -> term_id;
					}
					$testimonial_category = $testimonial_cat_slug;
					if($testimonial_items == 'all') {
						$testimonial_items = '-1';
					}
					if(isset($limit_testimonial) && $limit_testimonial == 'on') {
						$limit_text = true;
					} else {
						$limit_text = false;
					}
					if(!empty($testimonial_word_count)) {
						$wordcount = $testimonial_word_count;
					} else {
						$wordcount = '25';
					}
					if(isset($single_testimonial_link) && $single_testimonial_link == 'on') {
						$postlink = true;
					} else {
						$postlink = false;
					}
					if(!empty($testimonial_link_text)) {
						$thelinktext = $testimonial_link_text;
					} else {
						$thelinktext = __('Read More', 'virtue');
					} 
	                if ($testimonial_column == '2') {
	                	$itemsize 	= 'tcol-md-6 tcol-sm-6 tcol-xs-12 tcol-ss-12';
	                } else if ($testimonial_column == '1'){
	                	$itemsize = 'tcol-md-12 tcol-sm-12 tcol-xs-12 tcol-ss-12';
	                } else if ($testimonial_column == '3'){
	                	$itemsize = 'tcol-md-4 tcol-sm-4 tcol-xs-6 tcol-ss-12';
	                } else if ($testimonial_column == '6'){
	                	$itemsize = 'tcol-md-2 tcol-sm-3 tcol-xs-4 tcol-ss-6';
	                } else if ($testimonial_column == '5'){
	                	$itemsize = 'tcol-md-25 tcol-sm-3 tcol-xs-4 tcol-ss-6';
	                } else {
	                	$itemsize = 'tcol-md-3 tcol-sm-4 tcol-xs-6 tcol-ss-12';
	                }  ?>          
	               <div id="testimonialwrapper" class="rowtight init-isotope" data-fade-in="<?php echo esc_attr($animate);?>" data-iso-selector=".t_item" data-iso-style="masonry" data-iso-filter="false"> 
	   
	            	<?php $temp = $wp_query; 
					  $wp_query = null; 
					  $wp_query = new WP_Query();
					  	$wp_query->query(array(
							'paged' 			=> $paged,
							'post_type' 		=> 'testimonial',
							'orderby' 			=> 'menu_order',
							'order' 			=> 'ASC',
							'testimonial-group' => $testimonial_cat_slug,
							'posts_per_page' 	=> $testimonial_items
							)
					  	);
						if ( $wp_query ) : 
						while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
						<div class="<?php echo esc_attr($itemsize);?> t_item">
	                		<div class="grid_item testimonial_item kt_item_fade_in kad_testimonial_fade_in postclass">
	                			<div class="testimonialbox clearfix">
									<?php if (has_post_thumbnail( $post->ID ) ) {
										$image_url = wp_get_attachment_image_src( 
										get_post_thumbnail_id( $post->ID ), 'full' ); 
										$thumbnailURL = $image_url[0]; 
										$image = aq_resize($thumbnailURL, 60, 60, true); 
										if(empty($image)) {$image = $thumbnailURL;}?>
										<div class="alignleft testimonialimg">
		                                       <img src="<?php echo esc_url($image); ?>" alt="<?php esc_attr(the_title()); ?>" class="" style="display: block; max-width:60px;">
		                                </div>
	                           				<?php $image = null; $thumbnailURL = null;?>
	                                <?php } else { ?>
	                                	<div class="alignleft testimonialimg">
	                                		<i class="icon-user2" style="font-size:60px"></i>
	                                	</div>
	                                <?php } 
	                                if($limit_text) {
	                                	echo esc_attr(strip_tags(virtue_content($wordcount))); 
	                                } else {
				                         the_content(); 
				                     }
				                     if($postlink) {
				                     	echo '<a href="'.get_the_permalink().'" class="kadtestimoniallink">';
	                                    echo $thelinktext;
	                                    echo '</a>';
				                     } ?>
				                    </div>
				                    <div class="testimonialbottom">
				                    	<div class="lipbg kad-arrow-down"></div>
				                    	<p><strong><?php the_title();?></strong>
				                    		<?php $location = get_post_meta( $post->ID, '_kad_testimonial_location', true ); 
					      						if($location != '') { echo ' - ' . $location;}
					      						?>
		      						</p>
				                </div>
				            </div>
	                	</div>
						<?php endwhile; else: ?>
						<li class="error-not-found"><?php _e('Sorry, no testimonial entries found.', 'virtue');?></li>
					<?php endif; ?>
	                </div> <!-- testimonialwrapper -->
	                    <?php if ($wp_query->max_num_pages > 1) : ?>
	                            <?php kad_wp_pagenavi(); ?>   
	                    <?php endif; ?>
	                    <?php $wp_query = null; 
	                      	  $wp_query = $temp; ?>
	                    <?php wp_reset_query(); ?>
	                    <?php if(isset($virtue_premium['page_comments']) && $virtue_premium['page_comments'] == '1') { comments_template('/templates/comments.php');} ?>
</div><!-- /.main -->

Youez - 2016 - github.com/yon3zu
LinuXploit