PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/newexitinggames.kerihosting.com/wp-content/themes/spacebox/
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
Choose File :

Url:
Dir : /home/trave494/newexitinggames.kerihosting.com/wp-content/themes/spacebox/contest-promo.php

<?php // Display contest promo box if enabled
if ( (get_option('spacebox_contest_box') == 'enable') && function_exists('myarcadecontest_init') ) {
  
  $ids = get_option('spacebox_contest_ids');
  
  if ( empty($ids) ) {
    // Get two latest opened contests
    $query_arg =  array ( 'post_type'       => 'contest', 
                        'post_status'     => 'publish',
                        'orderby'         => 'date',
                        'order'           => 'DESC',
                        'posts_per_page'  => '2',
                        'meta_query'      => array(
                                          'relation' => 'AND',
                                          array(
                                          'key'     => 'startdate',
                                          'value'   => date( "Y-m-d" ),
                                          'compare' => '<='
                                          ),
                                          array(
                                          'key'     => 'enddate',
                                          'value'   => date( "Y-m-d" ),
                                          'compare' => '>='
                                          ),
                                          array(
                                          'key'     => 'complete',
                                          'value'   => 'yes',
                                          'compare' => '!='
                                          )
                                        )
                        );
  }
  else {
    // Get specific contests
    $query_arg = array( 'post_type' => 'contest', 'post__in'  => array ($ids), 'posts_per_page'  => '2' );
  }
  
  $contests = new WP_Query( $query_arg ); 
  
  if ( $contests->have_posts() ) {
    do_action('spacebox_before_contest_promo');
    ?>
    <div id="promo-contests" class="fullcontent">
      <h2><?php echo get_option('spacebox_contest_promo_title'); ?></h2>
      <ul>
      <?php  
      while ($contests->have_posts()): $contests->the_post();
        ?>
        <li>
          <?php if (has_post_thumbnail()): ?>
          <div class="thumb">
            <a href="<?php the_permalink(); ?>" title="<?php echo the_title_attribute(); ?>">
              <?php the_post_thumbnail('contest-promo') ?>
            </a>
          </div>
          <?php endif; ?>
          <div class="name">
            <a href="<?php the_permalink(); ?>" title="<?php echo the_title_attribute(); ?>">
              <?php the_title('<h3>','</h3>'); ?>
            </a>
          </div>
        </li>      
        <?php
      endwhile;
      ?>
      </ul>
    </div>
    <?php
    do_action('spacebox_after_contest_promo');
  }
  
  wp_reset_query();
}
?>