PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/bettingbin.com/wp-content/themes/mercury/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/bettingbin.com/wp-content/themes/mercury/single-game.php |
<?php get_header(); ?> <?php $game_allowed_html = array( 'a' => array( 'href' => true, 'title' => true, 'target' => true, 'rel' => true ), 'br' => array(), 'em' => array(), 'strong' => array(), 'span' => array(), 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(), ); $game_pros_desc = wp_kses( get_post_meta( get_the_ID(), 'game_pros_desc', true ), $game_allowed_html ); $game_cons_desc = wp_kses( get_post_meta( get_the_ID(), 'game_cons_desc', true ), $game_allowed_html ); $game_short_desc = wp_kses( get_post_meta( get_the_ID(), 'game_short_desc', true ), $game_allowed_html ); $game_external_link = esc_url( get_post_meta( get_the_ID(), 'game_external_link', true ) ); $game_button_title = esc_html( get_post_meta( get_the_ID(), 'game_button_title', true ) ); $game_button_notice = wp_kses( get_post_meta( get_the_ID(), 'game_button_notice', true ), $game_allowed_html ); if ($game_button_title) { $button_title = $game_button_title; } else { if ( get_option( 'games_play_now_title') ) { $button_title = esc_html__( get_option( 'games_play_now_title') ); } else { $button_title = esc_html__( 'Play Now', 'mercury' ); } } ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="space-single-game relative"> <!-- Breadcrumbs Start --> <?php get_template_part( '/theme-parts/breadcrumbs' ); ?> <!-- Breadcrumbs End --> <!-- Single Game Page Section Start --> <div class="space-page-section box-100 relative"> <div class="space-page-section-ins space-page-wrapper relative"> <div class="space-content-section box-75 left relative"> <div class="space-aces-content-section box-100 relative"> <div class="space-aces-content-meta box-33 left relative space-sidebar-section-left"> <div class="space-aces-content-meta-ins relative"> <h1><?php the_title(); ?></h1> <!-- Vendors Start --> <?php $vendors = get_the_terms( $post->ID , 'vendor' ); if ($vendors) { ?> <div class="space-vendors box-100 relative"> <span> <?php echo esc_html( 'by', 'mercury' ); ?> </span> <div class="space-vendors-items box-100 relative"> <?php foreach ( $vendors as $vendor ) { ?> <?php $vendor_logo = get_term_meta($vendor->term_id, 'taxonomy-image-id', true); if ($vendor_logo) { ?> <a href="<?php echo esc_url (get_term_link( (int)$vendor->term_id, $vendor->taxonomy )); ?>" title="<?php echo esc_attr($vendor->name); ?>" class="space-vendors-item"> <?php echo wp_get_attachment_image( $vendor_logo, 'mercury-9999-32', "", array( "class" => "space-vendor-logo" ) ); ?> </a> <?php } else { ?> <a href="<?php echo esc_url (get_term_link( (int)$vendor->term_id, $vendor->taxonomy )); ?>" title="<?php echo esc_attr($vendor->name); ?>" class="space-vendors-item name"> <?php echo esc_html($vendor->name); ?> </a> <?php } ?> <?php } ?> </div> </div> <?php } ?> <!-- Vendors End --> <?php if ($game_short_desc) { ?> <div class="space-game-content-short-desc relative"> <?php echo wp_kses( $game_short_desc, $game_allowed_html ); ?> </div> <?php } ?> <?php if(has_excerpt()) { ?> <div class="space-game-content-excerpt relative"> <?php the_excerpt(); ?> </div> <?php } ?> <?php if ($game_external_link) { ?> <div class="space-game-content-button-wrap text-center relative"> <div class="space-game-content-button relative"> <a href="<?php echo esc_url( $game_external_link ); ?>" title="<?php echo esc_html( $button_title ); ?>" target="_blank" rel="nofollow"><?php echo esc_html( $button_title ); ?> <i class="fas fa-arrow-alt-circle-right"></i></a> </div> <?php if ($game_button_notice) { ?> <!-- The notice below of the button Start --> <div class="space-casino-header-button-notice relative"> <?php echo wp_kses( $game_button_notice, $game_allowed_html ); ?> </div> <!-- The notice below of the button End --> <?php } ?> </div> <?php } ?> </div> </div> <div class="space-aces-content-box box-66 right relative"> <div class="space-page-content-wrap relative"> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <?php if(function_exists('spacethemes_set_post_views')) { spacethemes_set_post_views(get_the_ID()); } ?> <?php $src = wp_get_attachment_image_src(get_post_thumbnail_id(), 'mercury-994-559'); $src_mobile = wp_get_attachment_image_src(get_post_thumbnail_id(), 'mercury-450-254'); if ($src) { ?> <div class="space-page-content-featured-img box-100 relative"> <img src="<?php echo esc_url($src[0]); ?>" alt="<?php the_title_attribute(); ?>" class="space-desktop-view"> <img src="<?php echo esc_url($src_mobile[0]); ?>" alt="<?php the_title_attribute(); ?>" class="space-mobile-view"> <?php $caption = get_the_post_thumbnail_caption(); if ($caption) { ?><span class="text-right"><?php echo esc_html($caption); ?></span><?php } ?> </div> <?php } ?> <!-- Pros/Cons Start --> <?php if ($game_pros_desc || $game_cons_desc) { ?> <div class="space-pros-cons box-100 relative"> <?php if ($game_pros_desc) { ?> <div class="space-pros <?php if (!$game_cons_desc) { ?>box-100<?php } else { ?>box-50<?php } ?> relative"> <div class="space-pros-ins relative"> <div class="space-pros-title box-100 relative"> <?php if ( get_option( 'games_pros_title') ) { echo esc_html__( get_option( 'games_pros_title') ); } else { echo esc_html( 'Pros', 'mercury' ); } ?> </div> <div class="space-pros-description box-100 relative"> <?php echo wp_kses( $game_pros_desc, $game_allowed_html ); ?> </div> </div> </div> <?php } ?> <?php if ($game_cons_desc) { ?> <div class="space-cons <?php if (!$game_pros_desc) { ?>box-100<?php } else { ?>box-50<?php } ?> relative"> <div class="space-cons-ins relative"> <div class="space-cons-title box-100 relative"> <?php if ( get_option( 'games_cons_title') ) { echo esc_html__( get_option( 'games_cons_title') ); } else { echo esc_html( 'Cons', 'mercury' ); } ?> </div> <div class="space-cons-description box-100 relative"> <?php echo wp_kses( $game_cons_desc, $game_allowed_html ); ?> </div> </div> </div> <?php } ?> </div> <?php } ?> <!-- Pros/Cons End --> <div class="space-page-content-box-wrap relative"> <div class="space-page-content box-100 relative"> <?php the_content(); wp_link_pages( array( 'before' => '<div class="clear"></div><nav class="navigation pagination-post">' . esc_html__( 'Pages:', 'mercury' ), 'after' => '</nav>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ) ); ?> </div> </div> <!-- Author Info Start --> <?php if(!get_theme_mod('mercury_author_info_block')) { get_template_part('/theme-parts/author-info'); } ?> <!-- Author Info End --> <?php endwhile; ?> <?php endif; ?> </div> </div> </div> <!-- Related Games Start --> <?php $game_args = get_posts( array( 'posts_per_page' => 6, 'post_type' => 'game', 'category__in' => wp_get_post_categories($post->ID), 'exclude' => $post->ID) ); if( $game_args ){ ?> <div class="space-related-items box-100 read-more-block relative"> <div class="space-related-items-ins space-page-wrapper relative"> <div class="space-block-title relative"> <span><?php esc_html_e( 'More Games', 'mercury' ); ?></span> </div> <div class="space-games-archive-items box-100 relative"> <?php foreach( $game_args as $post ){ setup_postdata($post); // connect the game loop item style get_template_part( '/aces/related/game-item-style-1' ); } wp_reset_postdata(); ?> </div> </div> </div> <?php } ?> <!-- Related Games End --> <?php if ( comments_open() || get_comments_number() ) :?> <!-- Comments Start --> <?php comments_template(); ?> <!-- Comments End --> <?php endif; ?> </div> <div class="space-sidebar-section box-25 right relative"> <?php get_sidebar(); ?> </div> </div> </div> <!-- Single Game Page Section End --> </div> </div> <?php get_footer(); ?>