????JFIF??x?x????'
| Server IP : 104.21.30.238 / 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 : /proc/./thread-self/root/home/tempvsty/pontiacques.org/wp-content/themes/slide/ |
Upload File : |
<?php
/*
Template Name: Artists
*/
?>
<?php get_header(); ?>
<?php
/*the content first*/
if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="lc_swp_full">
<?php the_content(); ?>
</div>
<?php endwhile; endif;
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,
'category' => '',
'orderby' => 'post_date',
'order' => 'DESC',
'meta_key' => '',
'meta_value' => '',
'post_type' => array('js_artist'),
'post_mime_type' => '',
'post_parent' => '',
'post_status' => 'publish',
'suppress_filters' => false
);
$keep_old_wp_query = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query($args);
$items_on_row = 4;
$single_item_template = "views/archive/artist_item";
$item_count = 0;
$archive_nav_classes = "blog_standard_nav discography_post_nav";
$container_class = 'lc_content_full lc_basic_content_padding';
if (4 == $items_on_row) {
$container_class .= " lc_swp_boxed";
$archive_nav_classes .= " lc_swp_boxed";
} else {
$container_class .= " lc_swp_full";
$archive_nav_classes .= " lc_swp_full";
}
if ($wp_query->have_posts()) {
?>
<div class="<?php echo esc_attr($container_class); ?>">
<div class="albums_container artists_container clearfix">
<?php
while ($wp_query->have_posts()) : $wp_query->the_post();
$item_count++;
set_query_var('items_on_row', $items_on_row);
set_query_var('item_count', $item_count);
get_template_part($single_item_template);
endwhile;
?>
</div>
</div>
<?php
set_query_var("class_archive_nav", "artists_post_nav");
get_template_part('views/utils/archive_nav');
}
$wp_query = null; $wp_query = $keep_old_wp_query;
?>
<?php get_footer(); ?>