Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F15175899
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/archive-shows.php b/archive-shows.php
new file mode 100644
index 0000000..17d9500
--- /dev/null
+++ b/archive-shows.php
@@ -0,0 +1,100 @@
+<?php
+/*
+Template Name: Archive shows
+Package: OnAir2
+Description: Archive for qtvideo
+Version: 0.0.0
+Author: QantumThemes
+Author URI: http://qantumthemes.com
+*/
+
+/**
+ * [$paged current paged number]
+ * @var [int]
+ */
+$paged = qantumthemes_get_paged();
+
+?>
+<?php get_header(); ?>
+ <?php
+ get_template_part ('phpincludes/menu');
+ get_template_part ('phpincludes/part-searchbar');
+ ?>
+ <div id="maincontent" class="qt-main">
+ <?php
+ /**
+ * From V 2.5
+ */
+ if (get_theme_mod( 'qt_playerbar_version', '1' ) === '2'){ ?>
+ <hr class="qt-header-player-spacer">
+ <?php } ?>
+ <!-- ======================= HEADER SECTION ======================= -->
+ <?php get_template_part( 'phpincludes/part-header-caption-archive'); ?>
+ <?php
+ /**
+ * This template can be used also as page template.
+ * In this case we show the page content only if is a page and is page 1
+ */
+ if(is_page()){
+ if($paged == 1){
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
+ the_content();
+ endwhile; endif;
+ }
+ }
+ ?>
+ <!-- ======================= CONTENT SECTION ======================= -->
+ <div class="qt-container qt-archive-events qt-vertical-padding-l ">
+ <div class="row">
+ <?php
+ if(is_page()){
+ /**
+ * [$args Query arguments]
+ * @var array
+ */
+ $args = array(
+ 'post_type' => 'shows',
+ 'posts_per_page' => 9,
+ 'post_status' => 'publish',
+ 'suppress_filters' => false,
+ 'paged' => $paged,
+ 'orderby' => array ( 'menu_order' => 'ASC', 'date' => 'DESC')
+ );
+
+ /**
+ * [$wp_query execution of the query]
+ * @var WP_Query
+ */
+ $wp_query = new WP_Query( $args );
+ if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post();
+ ?>
+ <div id="post-<?php the_ID(); ?>" <?php post_class( "col s12 m6 l4" ); ?>>
+ <?php get_template_part ( 'phpincludes/part-archive-item-shows' ); ?>
+ </div>
+ <?php
+ endwhile; else: ?>
+ <h3><?php echo esc_attr__("Sorry, nothing here","onair2")?></h3>
+ <?php endif;
+ wp_reset_postdata();
+ } else {
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
+ setup_postdata( $post );
+ ?>
+ <div id="post-<?php the_ID(); ?>" <?php post_class( "col s12 m6 l4" ); ?>>
+ <?php get_template_part ( 'phpincludes/part-archive-item-shows' ); ?>
+ </div>
+ <?php
+ endwhile; else: ?>
+ <h3><?php echo esc_attr__("Sorry, nothing here","onair2")?></h3>
+ <?php endif;
+ }
+ ?>
+ </div>
+ </div>
+ <div class="qt-pagination qt-content-primary">
+ <?php get_template_part ( 'phpincludes/part-pagination' ); ?>
+ </div>
+ </div><!-- .qt-main end -->
+ <?php get_template_part ( 'phpincludes/footerwidgets' ); ?>
+ <?php get_template_part ( 'phpincludes/part-player-sidebar' ); ?>
+<?php get_footer(); ?>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Nov 19, 03:09 (14 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263385
Default Alt Text
(3 KB)
Attached To
Mode
R26 Border Radio OnAir2 child theme
Attached
Detach File
Event Timeline