HEX
Server: Apache
System: Linux p3plzcpnl489499.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: dwauav0tm6jp (6177017)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dwauav0tm6jp/hosted/jeffreyjhart_com/wp-content/themes/skylab/page-galleries-list.php
<?php
/**
 * Template Name: Galleries List
 * Description: A Page Template that adds a galleries list to pages
 *
 * @package WordPress
 * @subpackage Skylab
 * @since Skylab 1.0
 */

get_header(); ?>

	<div id="main" class="clearfix">

		<div id="primary">
			<header class="entry-header">
				<h1 class="entry-title-lead"><?php echo the_title();?></h1>
			</header><!-- .entry-header -->
			<?php if ( post_password_required() ) : ?>
				<div class="password-protected">
					<?php the_content(); ?>
				</div>
			<?php else : ?>
			
				<div id="content" role="main">
				
				<?php $galleries_per_page = ot_get_option( 'galleries_per_page' ); ?>
				<?php
				$gallery_columns = ot_get_option( 'gallery_columns' );
				if ( $gallery_columns == 'gallery_four_columns' )
					$gallery_columns_class = 'col4';
				else 
					$gallery_columns_class = 'col3';
				?>
				
					<div id="block-galleries-list" class="clearfix">
						
						<div id="galleries-list" class="<?php echo $gallery_columns_class; ?> clearfix">
								
							<?php $wp_query_gallery = new WP_Query(); ?>
							<?php $wp_query_gallery->query('post_type=gallery&posts_per_page='.$galleries_per_page.'&post_status=publish'.'&paged='.$paged); ?>
								
							<?php  if ( $wp_query_gallery->have_posts() ) : ?>

								<?php /* Start the Loop */ ?>
								<?php while ( $wp_query_gallery->have_posts() ) : $wp_query_gallery->the_post(); ?>

									<?php get_template_part( 'content-galleries-list' ); ?>

								<?php endwhile; ?>
									
								<?php wp_reset_query(); ?>
								
							<?php else : ?>
										
								<div class="entry-content clearfix">
									<p class="no-found"><?php _e( 'No galleries found, please add some galleries.', 'mega' ); ?></p>
								</div><!-- .entry-content -->

							<?php endif; ?>
						</div><!-- #galleries-list -->
						
					</div><!-- #block-galleries-list -->
				
				</div><!-- #content -->
			
			<?php endif; // End if ( post_password_required() ) ?>
		</div><!-- #primary -->

<?php get_footer(); ?>