| 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
/**
* Category Gallery Template
*
* @package gridsby
*/
get_header(); ?>
<div class="grid grid-pad">
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div class="col-9-12 content-wrapper">
<?php else: ?>
<div class="col-1-1 content-wrapper">
<?php endif; ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
// Check if there are any posts to display
if ( have_posts() ) : ?>
<?php if ( 'option1' == gridsby_sanitize_index_content( get_theme_mod( 'gridsby_category_title' ) ) ) : ?>
<header class="archive-header">
<h1 class="post-cat-gallery-title"><?php printf( __( '%s', 'gridsby' ), single_cat_title( '', false ) ); ?></h1>
<?php
// Display optional category description
if ( category_description() ) : ?>
<div class="archive-meta"><?php echo category_description(); ?></div>
<?php endif; ?>
</header>
<?php endif; ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( is_category() ) :
get_template_part( 'content', get_post_format() );
endif;
endwhile; ?>
<?php gridsby_the_posts_navigation(); ?>
<?php else :
get_template_part( 'content', 'none' );
endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- col -->
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div><!-- grid -->
<?php get_footer(); ?>