Uname: Linux premium72.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.2.29 [ PHP INFO ] PHP os: Linux
Server Ip: 198.54.125.95
Your Ip: 216.73.216.112
User: matican (532) | Group: matican (531)
Safe Mode: OFF
Disable Function:
NONE

name : grid.php
<div class="rs-testimonial-grid rs-testimonial">
    <div class="row">
        <?php
            $url = plugin_dir_url( __FILE__ );

            $best_wp = new wp_Query(array(
                    'post_type'      => 'testimonials',
                    'posts_per_page' => $settings['per_page'],
                                    
            ));

            while($best_wp->have_posts()): $best_wp->the_post();
                $designation  = !empty(get_post_meta( get_the_ID(), 'designation', true )) ? get_post_meta( get_the_ID(), 'designation', true ):'';

                $ratings  = !empty(get_post_meta( get_the_ID(), 'ratings', true )) ? get_post_meta( get_the_ID(), 'ratings', true ):'';
                
            ?>
                
                <div class="col-lg-<?php echo esc_html($settings['testimonial_columns']);?>  col-xs-1">
                    <div class="testimonial-item <?php echo esc_attr( $settings['align'] );?>"> 
                        <?php if('top' == $settings['title_position']) {?>                               
                            <div class="testimonial-content">                                   
                                <?php if(has_post_thumbnail() && $settings['show_images'] == 'yes' ): ?>
                                    <div class="image-wrap">                                    
                                        <?php the_post_thumbnail($settings['thumbnail_size']); ?>                                                   
                                    </div>
                                <?php endif;?>  
                                
                                    <div class="testimonial-information">
                                        <?php if($settings['show_ratings'] == 'yes' && $ratings != ''): ?>
                                            <div class="ratings"><img src="<?php echo esc_url($url); ?>/img/<?php echo esc_html($ratings); ?>.png" /></div>
                                        <?php endif;?> 
                                        <?php if(get_the_title()):?>                         
                                            <div class="testimonial-name"><?php the_title();?></div>
                                        <?php endif;?>
                                        <?php if( $designation ):?>
                                            <span class="testimonial-title"><?php echo esc_html( $designation );?></span>
                                        <?php endif; ?>
                                    </div>
                               
                            </div>
                        <?php }?>   

                        <div class="item-content <?php echo esc_attr($settings['_design']);?>"> 
                            <?php the_content();?>  
                        </div>  

                        <?php if('bottom' == $settings['title_position']) {?>                               
                            <div class="testimonial-content">                                   
                                <?php if(has_post_thumbnail() && $settings['show_images'] == 'yes' ): ?>
                                    <div class="image-wrap">                                    
                                        <?php the_post_thumbnail($settings['thumbnail_size']); ?>                                                   
                                    </div>
                                <?php endif;?>  
                                
                                    <div class="testimonial-information">
                                        <?php if($settings['show_ratings'] == 'yes' && $ratings != ''): ?>
                                            <div class="ratings"><img src="<?php echo esc_url($url); ?>/img/<?php echo esc_html($ratings); ?>.png" /></div>
                                        <?php endif;?> 
                                        <?php if(get_the_title()):?>                         
                                            <div class="testimonial-name"><?php the_title();?></div>
                                        <?php endif;?>
                                        <?php if( $designation ):?>
                                            <span class="testimonial-title"><?php echo esc_html( $designation );?></span>
                                        <?php endif; ?>
                                    </div>
                               
                            </div>
                        <?php }?>                       
                    </div>
                </div>
            <?php   
            endwhile;
            wp_reset_query();  
         ?>  
    </div>
</div>
© 2025 XylotrechusZ