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/speakers.php
<?php

/**

 * @package WordPress

 * @subpackage beevent

 * @since beevent 1.5

 */



//1 ******************Speaker List Style 1 Shortcode ***********************//

function beevent_speaker_style1($atts){
ob_start();
extract( shortcode_atts(array('show' =>''), $atts )); 

$speaker = new WP_Query(array('post_type' => 'speaker', 'post_status' => 'publish','posts_per_page'=> $show)); 
echo '<div class="row">';
 while ($speaker->have_posts() ) : $speaker->the_post();

    echo '<div class="col-xs-12 col-sm-4 col-md-3">

     	<div class="speaker-sec">

        <div class="speaker-info-box text-center border-box">';

            echo '<div class="spearker-img">'; 

                 if ( has_post_thumbnail() ):

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

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;            

             echo '</div>';

            echo '<div class="speaker-hover">';

               echo '<div class="social-icons text-center">'; 

                    

                    $facebook_link = get_post_meta(get_the_ID(),'Be_facebook_link', true );

                    if (!empty( $facebook_link)):

                        echo '<a href="'.esc_url($facebook_link).'"><i class="fa fa-facebook-square" aria-hidden="true"></i></a>';

                    endif;

                    $linkedin_link = get_post_meta(get_the_ID(),'Be_linkedin_link', true );

                    if (!empty( $linkedin_link)):

                        echo '<a href="'.esc_url($linkedin_link).'"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a>';

                    endif;

                    $twitter_link = get_post_meta(get_the_ID(),'Be_twitter_link', true );

                    if (!empty( $twitter_link)):

                        echo '<a href="'.esc_url($twitter_link).'"><i class="fa fa-twitter-square" aria-hidden="true"></i></a>';

                    endif;

                    $instagram_link = get_post_meta(get_the_ID(),'Be_instagram_link', true );
                    if (!empty( $instagram_link)):
                        echo '<a href="'.esc_url($instagram_link).'"><i class="fa fa-instagram" aria-hidden="true"></i></a>';
                    endif;

                    $whatsapp_link = get_post_meta(get_the_ID(),'Be_whatsapp_link', true );
                    if (!empty( $whatsapp_link)):
                        echo '<a href="'.esc_url($whatsapp_link).'"><i class="fa fa-whatsapp" aria-hidden="true"></i></a>';
                    endif;
                 

               echo '</div>

            </div>

        </div>';

        echo '<div class="speaker-info">';

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

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

                   if (!empty( $destination)):

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

                   endif; 

        echo '</div>

     </div>

    </div>';   

 endwhile; wp_reset_query(); echo '</div>';

echo '<div class="clearfix"></div>';
return ob_get_clean();
}

//2 ******************Speaker List Style 2 Shortcode ***********************//

function beevent_speaker_style2($atts){
ob_start();
extract( shortcode_atts(array('show' =>''), $atts )); 

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

<?php 

echo '<div class="speakers_3 row">';

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

    echo '<div class="col-xs-12 col-sm-4 col-md-3">

     	<div class="speaker-sec">

        <div class="speaker-info-box text-center border-box">';

            echo '<div class="spearker-img">'; 

                 if ( has_post_thumbnail() ):

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

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;            

             echo '</div>';

            echo '<div class="speaker-hover">

               <div class="social-icons text-center">';

                    $facebook_link = get_post_meta(get_the_ID(),'Be_facebook_link', true );

                    if (!empty( $facebook_link)):

                        echo '<a href="'.esc_url($facebook_link).'"><i class="fa fa-facebook-square" aria-hidden="true"></i></a>';

                    endif;

                    $linkedin_link = get_post_meta(get_the_ID(),'Be_linkedin_link', true );

                    if (!empty( $linkedin_link)):

                        echo '<a href="'.esc_url($linkedin_link).'"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a>';

                    endif;


                    $twitter_link = get_post_meta(get_the_ID(),'Be_twitter_link', true );

                    if (!empty( $twitter_link)):

                        echo '<a href="'.esc_url($twitter_link).'"><i class="fa fa-twitter-square" aria-hidden="true"></i></a>';

                    endif;

                    $instagram_link = get_post_meta(get_the_ID(),'Be_instagram_link', true );
                    if (!empty( $instagram_link)):
                        echo '<a href="'.esc_url($instagram_link).'"><i class="fa fa-instagram" aria-hidden="true"></i></a>';
                    endif;

                    $whatsapp_link = get_post_meta(get_the_ID(),'Be_whatsapp_link', true );
                    if (!empty( $whatsapp_link)):
                        echo '<a href="'.esc_url($whatsapp_link).'"><i class="fa fa-whatsapp" aria-hidden="true"></i></a>';
                    endif;
                

               echo '</div>

            </div>

        </div>';

        echo '<div class="speaker-info">';

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

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

                   if (!empty( $destination)):

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

                   endif; 

        echo '</div>

     </div>

    </div>';   

 endwhile; wp_reset_query(); 

echo '</div><div class="clearfix"></div>';
return ob_get_clean();
}

//3 ******************Speaker List Style 3 Shortcode ***********************//

function beevent_speaker_style3($atts){
ob_start();
extract( shortcode_atts(array('show' =>''), $atts )); 

$speaker = new WP_Query( array( 'post_type' => 'speaker', 'post_status' => 'publish','posts_per_page'=>$show) );
echo '<div class="row">';
while ( $speaker->have_posts() ) : $speaker->the_post();

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

		<div class="speakers_wrap">';

				if ( has_post_thumbnail() ):

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

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

					echo '</div>';

				  endif;          

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

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

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

				   if (!empty( $destination)):

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

				   endif;

					the_excerpt();

			echo  '</div>

			  <div class="speakers_follow_us">

				<ul>';

					$facebook_link = get_post_meta(get_the_ID(),'Be_facebook_link', true );

					if (!empty( $facebook_link)):

						echo '<li><a href="'.esc_url($facebook_link).'"><i class="fa fa-facebook-square" aria-hidden="true"></i></a></li>';

					endif;

					$linkedin_link = get_post_meta(get_the_ID(),'Be_linkedin_link', true );

					if (!empty( $linkedin_link)):

						echo '<li><a href="'.esc_url($linkedin_link).'"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a></li>';

					endif;


                    $twitter_link = get_post_meta(get_the_ID(),'Be_twitter_link', true );

                    if (!empty( $twitter_link)):

                        echo '<li><a href="'.esc_url($twitter_link).'"><i class="fa fa-twitter-square" aria-hidden="true"></i></a></li>';

                    endif;

                    $instagram_link = get_post_meta(get_the_ID(),'Be_instagram_link', true );
                    if (!empty( $instagram_link)):
                        echo '<li><a href="'.esc_url($instagram_link).'"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>';
                    endif;

                    $whatsapp_link = get_post_meta(get_the_ID(),'Be_whatsapp_link', true );
                    if (!empty( $whatsapp_link)):
                        echo '<li><a href="'.esc_url($whatsapp_link).'"><i class="fa fa-whatsapp" aria-hidden="true"></i></a></li>';
                    endif;

			   echo '</ul>

			  </div>

		</div>

	</div>';

 endwhile; wp_reset_query(); echo '</div>';
return ob_get_clean();
}

//4 ******************Beevent Speaker List Style 4 Shortcode ***********************//

function beevent_speaker_style4($atts){
ob_start();
extract( shortcode_atts(array('show' =>''), $atts )); 

$speaker = new WP_Query( array( 'post_type' => 'speaker', 'post_status' => 'publish','posts_per_page'=>$show) );
echo '<div class="row">';
while ( $speaker->have_posts() ) : $speaker->the_post();

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

		<div class="speakers_wrap">';

				if ( has_post_thumbnail() ):

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

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

					echo '</div>';

				  endif;          

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

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

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

				   if (!empty( $destination)):

					 echo '<small>'.$destination.'</small>';

				   endif;

					the_excerpt();

			echo  '</div>

			  <div class="speakers_follow_us">

				<ul>';

					$facebook_link = get_post_meta(get_the_ID(),'Be_facebook_link', true );

					if (!empty( $facebook_link)):

						echo '<li><a href="'.$facebook_link.'"><i class="fa fa-facebook-square" aria-hidden="true"></i></a></li>';

					endif;

					$linkedin_link = get_post_meta(get_the_ID(),'Be_linkedin_link', true );

					if (!empty( $linkedin_link)):

						echo '<li><a href="'.$linkedin_link.'"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a></li>';

					endif;


                    $twitter_link = get_post_meta(get_the_ID(),'Be_twitter_link', true );

                    if (!empty( $twitter_link)):

                        echo '<li><a href="'.$twitter_link.'"><i class="fa fa-twitter-square" aria-hidden="true"></i></a></li>';

                    endif;

                    $instagram_link = get_post_meta(get_the_ID(),'Be_instagram_link', true );
                    if (!empty( $instagram_link)):
                        echo '<li><a href="'.esc_url($instagram_link).'"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>';
                    endif;

                    $whatsapp_link = get_post_meta(get_the_ID(),'Be_whatsapp_link', true );
                    if (!empty( $whatsapp_link)):
                        echo '<li><a href="'.esc_url($whatsapp_link).'"><i class="fa fa-whatsapp" aria-hidden="true"></i></a></li>';
                    endif;

			   echo '</ul>

			  </div>

		</div>

	</div>';

 endwhile; wp_reset_query(); echo '</div>';
return ob_get_clean();
}

ZeroDay Forums Mini