????JFIF??x?x????'
Server IP : 104.21.48.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.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 : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/pontiacques.org/wp-content/themes/slide/ |
Upload File : |
<?php /* Template Name: Page Photo Gallery */ ?> <?php get_header(); ?> <?php /*output the page content if there is any*/ if (have_posts()) : while (have_posts()) : the_post(); $content = trim(get_the_content()); if (!empty($content)) { ?> <div class="lc_content_full lc_swp_boxed lc_basic_content_padding"> <?php the_content(); ?> </div> <?php } endwhile;endif; ?> <?php if (get_query_var('paged')) { $paged = get_query_var('paged'); } elseif (get_query_var('page')) { $paged = get_query_var('page'); } else { $paged = 1; } $posts_per_page = get_option('posts_per_page'); $offset = ($paged - 1) * $posts_per_page; $args = array( 'numberposts' => -1, 'posts_per_page' => $posts_per_page, 'paged' => $paged, 'offset' => $offset, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'js_photo_albums', 'post_status' => 'publish', 'suppress_filters' => false ); $keep_old_wp_query = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query($args); $container_class = 'lc_content_full photo_gallery_container lc_swp_boxed'; $single_item_template = "views/archive/gallery_item"; $items_on_row = 3; if ($wp_query->have_posts()) { $item_count = 0; ?> <div class="<?php echo esc_attr($container_class); ?>"> <?php while ($wp_query->have_posts()) : the_post(); $item_order = $item_count % $items_on_row; if (0 == $item_order) { ?> <div class="photo_gallery_row clearfix"> <?php } set_query_var('item_order', $item_order); set_query_var('items_on_row', $items_on_row); get_template_part($single_item_template); if (($items_on_row - 1) == $item_order) { ?> </div> <?php } $item_count++; endwhile; ?> </div> <?php set_query_var("class_archive_nav", "lc_swp_boxed gallery_post_nav"); get_template_part('views/utils/archive_nav'); ?> <?php } $wp_query = null; $wp_query = $keep_old_wp_query; ?> <?php get_footer(); ?>