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/gallery.php
<?php
/**
 * @package WordPress
 * @subpackage beevent
 * @since beevent 1.5
 */

//1 ****************** Gallery List Style 1 Shortcode ***********************//
function beevent_event_gallery($atts){ ob_start();
extract( shortcode_atts(array('show' =>''), $atts ));  
$gallery = new WP_Query( array( 'post_type' => 'gallery', 'post_status' => 'publish','posts_per_page'=>$show) );
echo '<div id="gallery_slider" class="owl-carousel">';
	 while ( $gallery->have_posts() ) : $gallery->the_post();
			echo '<div class="item">';
			  if (has_post_thumbnail()):
					the_post_thumbnail('full', array('class' => 'img-responsive center-block'));
			  endif;          
			echo '</div>';
      	  endwhile; wp_reset_query();
echo '</div>'; return ob_get_clean();
}
//2 ******************Gallery List Style 2 Shortcode ***********************//
function beevent_gallery_style2($atts){ ob_start();
extract( shortcode_atts(array('show' =>''), $atts ));  
$gallery = new WP_Query( array( 'post_type' => 'gallery', 'post_status' => 'publish','posts_per_page'=>$show) );
   echo '<div class="gallery_style2">';
while ($gallery->have_posts() ) : $gallery->the_post();
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'large' ); ?>
<a href="<?php echo esc_html($url,'beevent'); ?>" rel="prettyPhoto[pp_gal]">
                <?php the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block'));
                echo '<div class="gallery_title ">'; 
				 echo get_the_title(); 
				echo '</div>'; ?>
</a>
<?php
 endwhile; wp_reset_query();
echo '</div>'; return ob_get_clean();
}
//3 ******************Gallery List Style 3 Shortcode ***********************//
function beevent_gallery_style3($atts){ ob_start();
extract( shortcode_atts(array('show' =>''), $atts ));  
$gallery = new WP_Query( array( 'post_type' => 'gallery', 'post_status' => 'publish','posts_per_page'=>$show) );?>
<?php   echo '<div class="gallery_style3 row">'; ?>
<?php 
while ($gallery->have_posts() ) : $gallery->the_post(); ?>
<?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'large' );
echo '<div class="col-md-4">'; ?>
<a href="<?php echo esc_html($url,'beevent'); ?>" rel="prettyPhoto[pp_gal]">
                <?php the_post_thumbnail('beevent_small', array('class' => 'img-responsive prettyPhoto-m-img'));
                echo '<div class="gallery_title ">'; 
				 echo get_the_title(); 
                echo '</div>'; ?>
</a>
<?php
echo '</div>';
 endwhile; wp_reset_query();
echo '</div>'; return ob_get_clean();
}

ZeroDay Forums Mini