Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.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
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/confenda.com/wp-content/themes/beevent/functions/element/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/confenda.com/wp-content/themes/beevent/functions/element/testimonial.php
<?php

/**

 * @package WordPress

 * @subpackage beevent

 * @since beevent 1.5

 */

//1 ****************** Testimonial List Style 1 Shortcode ***********************//

function beevent_Testimonial_Style1($atts){

    ob_start();

extract(shortcode_atts(array('show' =>''), $atts));	

$testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish','posts_per_page'=>$show) ); 

    echo '<div id="testimonial_slider" class="owl-carousel">';

	 while ( $testimonial->have_posts() ) : $testimonial->the_post();

            echo '<div class="item">

              <div class="testimonial_head">';

				  if (has_post_thumbnail()):

                        echo '<div class="testimonial_img">';

                              the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block'));

                        echo '</div>';

                      endif;          

                    echo '<h5>'; the_title(); echo '</h5>';

				   $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true );

					if (!empty( $destination)):

						echo '<small>'.esc_html($destination).'</small>';

					endif; 

             echo '</div>';

				the_excerpt();

            echo '</div>';

	  endwhile; wp_reset_query();

  echo  '</div>'; return ob_get_clean();

}

//2 ****************** Testimonial List Style 2 Shortcode ***********************//

function beevent_Testimonial_Style2($atts){

    ob_start();

extract(shortcode_atts(array('show' =>''), $atts));		

$testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish','posts_per_page'=>$show) );

    echo '<div id="testimonial_list" class="row testimonial_style2">';

	 while ( $testimonial->have_posts() ) : $testimonial->the_post();

            echo '<div class="col-md-4 col-sm-6 testimonial_wrap">

              <div class="testimonial_info_m">

			  	<div class="testimonial_head">';

				  if (has_post_thumbnail()):

                        echo '<div class="testimonial_img">';

                              the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block'));

                        echo '</div>';

                      endif;          

                    echo '<h6>'; the_title(); echo '</h6>';

				   $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true );

					if (!empty( $destination)):

						echo '<small>'.esc_html($destination).'</small>';

					endif; 

             echo '</div>';

				the_excerpt();

            echo '</div></div>';

	  endwhile; wp_reset_query();

  echo  '</div>';  return ob_get_clean();

}

//2 ****************** Testimonial List Style 2 Shortcode ***********************//

function beevent_Testimonial_Style3($atts){

    ob_start();

extract(shortcode_atts(array('show' =>''), $atts));		

$testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish','posts_per_page'=>$show) );

    echo '<div id="testimonial_list" class="row testimonial_style3">';

	 while ( $testimonial->have_posts() ) : $testimonial->the_post();

            echo '<div class="col-md-4 col-sm-6 testimonial_wrap">

              <div class="testimonial_info_m">

			  	<div class="testimonial_head">';

				  if (has_post_thumbnail()):

                        echo '<div class="testimonial_img">';

                              the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block'));

                        echo '</div>';

                      endif;          

                    echo '<h6>'; the_title(); echo '</h6>';

				   $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true );

					if (!empty( $destination)):

						echo '<small>'.esc_html($destination).'</small>';

					endif; 

             echo '</div>';

				the_excerpt();

            echo '</div></div>';

	  endwhile; wp_reset_query();

  echo  '</div>';  return ob_get_clean();

}

ZeroDay Forums Mini