| Server IP : 167.235.67.158 / Your IP : 216.73.216.95 Web Server : Apache System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : upstairsbar.co.uk ( 982) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/queenofbradgate.co.uk/wp-content/themes/gridsby/ |
Upload File : |
<?php
/**
* Template Name: Gallery Page
*
* @package gridsby
*/
get_header(); ?>
<div class="grid grid-pad">
<div class="col-9-12 content-wrapper">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<section class="grid3d horizontal" id="grid3d">
<div class="grid-wrap">
<div id="gallery-container" class="gridsby infinite-scroll">
<?php
if ( 'option1' == gridsby_sanitize_index_content( get_theme_mod( 'gridsby_pagination_option', 'option1' ) ) ) :
if ( 'option1' == gridsby_sanitize_index_content( get_theme_mod( 'gridsby_post_time_method' ) ) ) :
$args = array(
'post_type' => 'post',
'posts_per_page' => -1,
'order' => 'ASC',
'tax_query' =>
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => 'post-format-image',
));
else :
$args = array(
'post_type' => 'post',
'posts_per_page' => -1,
'tax_query' =>
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => 'post-format-image',
));
endif;
else :
if ( 'option1' == gridsby_sanitize_index_content( get_theme_mod( 'gridsby_post_time_method' ) ) ) :
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
$args = array(
'post_type' => 'post',
'paged' => $paged,
'posts_per_page' => intval( get_theme_mod( 'gridsby_pagi_photos_length', '15' )),
'order' => 'ASC',
'tax_query' =>
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => 'post-format-image',
));
else :
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
$args = array(
'post_type' => 'post',
'paged' => $paged,
'posts_per_page' => intval( get_theme_mod( 'gridsby_pagi_photos_length', '15' )),
'tax_query' =>
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => 'post-format-image',
));
endif;
endif;
// the query
$gridsby_query = new WP_Query( $args );
if ( $gridsby_query->have_posts() ) :
while ( $gridsby_query->have_posts() ) : $gridsby_query->the_post();
if ( has_post_format( 'image' )) {
if ( 'option1' == gridsby_sanitize_index_content( get_theme_mod( 'gridsby_post_link_method' ) ) ) : ?>
<figure class="gallery-image">
<?php the_post_thumbnail('gridsby-gallery-thumb'); ?>
</figure><!-- gallery-image -->
<?php else : ?>
<a href="<?php the_permalink(); ?>">
<figure class="gallery-image">
<?php the_post_thumbnail('gridsby-gallery-thumb'); ?>
</figure><!-- gallery-image -->
</a>
<?php endif;
}
endwhile;
endif; ?>
</div><!-- gallery-container -->
</div><!-- /grid-wrap -->
<?php get_template_part( 'content', 'animated-posts' ); //Animated Post Content ?>
</section><!-- grid3d -->
<?php if ( 'option1' == gridsby_sanitize_index_content( get_theme_mod( 'gridsby_pagination_option', 'option1' ) ) ) :
else:
if (function_exists("pagination")) { ?>
<div class="grid grid-pad">
<div class="col-1-1">
<?php pagination( $gridsby_query->max_num_pages ); ?>
</div>
</div>
<?php }
endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>