| Server IP : 104.21.20.195 / Your IP : 104.23.243.204 Web Server : nginx/1.22.1 System : Linux ubuntu-s-6001-1-lun 5.15.0-191-generic #201-Ubuntu SMP Fri Aug 7 18:39:04 UTC 2026 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/ww88cv.com/wp-content/themes/mercury/ |
Upload File : |
<?php get_header();
$casino_cpt_key = $GLOBALS['mercury_casino_key'];
$casino_tax_category_key = $casino_cpt_key.'-category';
$game_cpt_key = $GLOBALS['mercury_game_key'];
$game_tax_category_key = $game_cpt_key.'-category';
$bonus_cpt_key = $GLOBALS['mercury_bonus_key'];
$bonus_tax_category_key = $bonus_cpt_key.'-category';
?>
<!-- Title Box Start -->
<div class="space-archive-title-box box-100 relative">
<div class="space-archive-title-box-ins space-page-wrapper relative">
<div class="space-archive-title-box-h1 relative">
<h1><?php echo esc_html(get_queried_object()->name); ?></h1>
<!-- Breadcrumbs Start -->
<?php get_template_part( '/theme-parts/breadcrumbs' ); ?>
<!-- Breadcrumbs End -->
</div>
</div>
</div>
<!-- Title Box End -->
<!-- Archive Section Start -->
<div class="space-archive-section box-100 relative space-organization-archive">
<div class="space-archive-section-ins space-page-wrapper relative">
<div class="space-organization-archive-ins box-100 relative">
<?php if ( get_queried_object()->taxonomy == $casino_tax_category_key ) { ?>
<?php if( get_theme_mod('mercury_category_navigation_casinos') ) {
$args = array(
'hide_empty'=> 1,
'type' => $casino_cpt_key,
'orderby' => 'name',
'taxonomy' => $casino_tax_category_key,
'order' => 'ASC'
);
$categories = get_categories($args);
if( $categories ){
?>
<div class="space-categories-list-box relative">
<ul class="space-categories-title">
<?php if (get_theme_mod( 'mercury_casinos_list_page_id')) { ?>
<li>
<a href="<?php echo esc_url( get_permalink(get_theme_mod( 'mercury_casinos_list_page_id')) ); ?>"><?php esc_html_e( 'All', 'mercury' ); ?></a>
</li>
<?php } ?>
<?php
$current_tax = get_queried_object();
foreach($categories as $category) {
if( $current_tax->slug == $category->slug ) { ?>
<li class="active">
<?php echo esc_html($category->name); ?>
</li>
<?php } else { ?>
<li>
<a href="<?php echo esc_url( get_term_link($category->slug, $casino_tax_category_key) ); ?>" title="<?php echo esc_attr($category->name); ?>"><?php echo esc_html($category->name); ?></a>
</li>
<?php
}
}
?>
</ul>
</div>
<?php }
} ?>
<?php } elseif ( get_queried_object()->taxonomy == $game_tax_category_key ) { ?>
<?php if( get_theme_mod('mercury_category_navigation_games') ) {
$args = array(
'hide_empty'=> 1,
'type' => $game_cpt_key,
'orderby' => 'name',
'taxonomy' => $game_tax_category_key,
'order' => 'ASC'
);
$categories = get_categories($args);
if( $categories ){
?>
<div class="space-categories-list-box relative">
<ul class="space-categories-title">
<?php if (get_theme_mod( 'mercury_games_list_page_id')) { ?>
<li>
<a href="<?php echo esc_url( get_permalink(get_theme_mod( 'mercury_games_list_page_id')) ); ?>"><?php esc_html_e( 'All', 'mercury' ); ?></a>
</li>
<?php } ?>
<?php
$current_tax = get_queried_object();
foreach($categories as $category) {
if( $current_tax->slug == $category->slug ) { ?>
<li class="active">
<?php echo esc_html($category->name); ?>
</li>
<?php } else { ?>
<li>
<a href="<?php echo esc_url( get_term_link($category->slug, $game_tax_category_key) ); ?>" title="<?php echo esc_attr($category->name); ?>"><?php echo esc_html($category->name); ?></a>
</li>
<?php
}
}
?>
</ul>
</div>
<?php }
} ?>
<?php } elseif ( get_queried_object()->taxonomy == $bonus_tax_category_key ) { ?>
<?php if( get_theme_mod('mercury_category_navigation_bonuses') ) {
$args = array(
'hide_empty'=> 1,
'type' => $bonus_cpt_key,
'orderby' => 'name',
'taxonomy' => $bonus_tax_category_key,
'order' => 'ASC'
);
$categories = get_categories($args);
if( $categories ){
?>
<div class="space-categories-list-box relative">
<ul class="space-categories-title">
<?php if (get_theme_mod( 'mercury_bonuses_list_page_id')) { ?>
<li>
<a href="<?php echo esc_url( get_permalink(get_theme_mod( 'mercury_bonuses_list_page_id')) ); ?>"><?php esc_html_e( 'All', 'mercury' ); ?></a>
</li>
<?php } ?>
<?php
$current_tax = get_queried_object();
foreach($categories as $category) {
if( $current_tax->slug == $category->slug ) { ?>
<li class="active">
<?php echo esc_html($category->name); ?>
</li>
<?php } else { ?>
<li>
<a href="<?php echo esc_url( get_term_link($category->slug, $bonus_tax_category_key) ); ?>" title="<?php echo esc_attr($category->name); ?>"><?php echo esc_html($category->name); ?></a>
</li>
<?php
}
}
?>
</ul>
</div>
<?php }
} ?>
<?php } ?>
<div class="space-companies-archive-items box-100 relative">
<?php if ( get_queried_object()->taxonomy == $casino_tax_category_key ) { ?>
<?php
$term_id = get_queried_object()->term_id;
$term_taxonomy = get_queried_object()->taxonomy;
$casinos_archive_style = get_theme_mod('mercury_casino_archive_style');
if ($casinos_archive_style == 4 || $casinos_archive_style == 7 || $casinos_archive_style == 8 || $casinos_archive_style == 9) {
$paged = $wp_query->get( 'paged' );
$paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1;
$wp_query = new WP_Query(array(
'post_type' => $casino_cpt_key,
'paged' => $paged,
'meta_key' => 'casino_overall_rating',
'orderby' => 'meta_value_num',
'order' => 'DESC',
'tax_query' => array(
array(
'taxonomy' => $term_taxonomy,
'field' => 'id',
'terms' => $term_id
)
)
));
}
if ( have_posts() ) : while ( have_posts() ) : the_post();
if ($casinos_archive_style == 2) {
get_template_part( '/aces/casino-item-style-2' );
} elseif ($casinos_archive_style == 3) {
get_template_part( '/aces/casino-item-style-3' );
} elseif ($casinos_archive_style == 4) {
get_template_part( '/aces/casino-item-style-4' );
} elseif ($casinos_archive_style == 5) {
get_template_part( '/aces/casino-item-style-5' );
} elseif ($casinos_archive_style == 6) {
get_template_part( '/aces/casino-item-style-6' );
} elseif ($casinos_archive_style == 7) {
get_template_part( '/aces/casino-item-style-7' );
} elseif ($casinos_archive_style == 8) {
get_template_part( '/aces/casino-item-style-8' );
} elseif ($casinos_archive_style == 9) {
get_template_part( '/aces/casino-item-style-9' );
} else {
get_template_part( '/aces/casino-item-style-1' );
}
endwhile; ?>
<!-- Archive Navigation Start -->
<?php
the_posts_pagination( array(
'end_size' => 2,
'prev_text' => esc_html__('«', 'mercury'),
'next_text' => esc_html__('»', 'mercury'),
));
?>
<!-- Archive Navigation End -->
<?php else : ?>
<!-- Posts not found Start -->
<div class="space-page-content-wrap relative">
<div class="space-page-content page-template box-100 relative">
<h2><?php esc_html_e( 'Posts not found', 'mercury' ); ?></h2>
<p>
<?php esc_html_e( 'No posts has been found. Please return to the homepage.', 'mercury' ); ?>
</p>
</div>
</div>
<!-- Posts not found End -->
<?php endif; ?>
<?php } elseif ( get_queried_object()->taxonomy == $game_tax_category_key ) { ?>
<?php
$games_archive_style = get_theme_mod('mercury_game_archive_style');
if ( have_posts() ) : while ( have_posts() ) : the_post();
if ($games_archive_style == 2) {
get_template_part( '/aces/game-item-style-2' );
} elseif ($games_archive_style == 3) {
get_template_part( '/aces/game-item-style-3' );
} else {
get_template_part( '/aces/game-item-style-1' );
}
endwhile;
?>
<!-- Archive Navigation Start -->
<?php
the_posts_pagination( array(
'end_size' => 2,
'prev_text' => esc_html__('«', 'mercury'),
'next_text' => esc_html__('»', 'mercury'),
));
?>
<!-- Archive Navigation End -->
<?php else : ?>
<!-- Posts not found Start -->
<div class="space-page-content-wrap relative">
<div class="space-page-content page-template box-100 relative">
<h2><?php esc_html_e( 'Posts not found', 'mercury' ); ?></h2>
<p>
<?php esc_html_e( 'No posts has been found. Please return to the homepage.', 'mercury' ); ?>
</p>
</div>
</div>
<!-- Posts not found End -->
<?php endif; ?>
<?php } elseif ( get_queried_object()->taxonomy == $bonus_tax_category_key ) { ?>
<?php
$bonuses_archive_style = get_theme_mod('mercury_bonus_archive_style');
if ( have_posts() ) : while ( have_posts() ) : the_post();
if ($bonuses_archive_style == 2) {
get_template_part( '/aces/bonus-item-style-2' );
} else {
get_template_part( '/aces/bonus-item-style-1' );
}
endwhile; ?>
<!-- Archive Navigation Start -->
<?php
the_posts_pagination( array(
'end_size' => 2,
'prev_text' => esc_html__('«', 'mercury'),
'next_text' => esc_html__('»', 'mercury'),
));
?>
<!-- Archive Navigation End -->
<?php else : ?>
<!-- Posts not found Start -->
<div class="space-page-content-wrap relative">
<div class="space-page-content page-template box-100 relative">
<h2><?php esc_html_e( 'Posts not found', 'mercury' ); ?></h2>
<p>
<?php esc_html_e( 'No posts has been found. Please return to the homepage.', 'mercury' ); ?>
</p>
</div>
</div>
<!-- Posts not found End -->
<?php endif; ?>
<?php } ?>
</div>
<div class="space-taxonomy-description box-100 relative">
<?php if( !is_paged() ) {
if (term_description()) { ?>
<div class="space-page-content case-15 relative">
<?php echo term_description(); ?>
</div>
<?php }
} ?>
</div>
</div>
</div>
</div>
<!-- Archive Section End -->
<?php get_footer(); ?>