Page MenuHomeGitPull.it

No OneTemporary

Authored By
Unknown
Size
5 KB
Referenced Files
None
Subscribers
None
diff --git a/index.php b/index.php
index 635e2f3..1f8935c 100644
--- a/index.php
+++ b/index.php
@@ -1,120 +1,121 @@
<?php
/*
Package: OnAir2
Description: Standard blog index
Version: 0.0.0
Author: QantumThemes
Author URI: http://qantumthemes.com
*/
?>
<?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'); ?>
<!-- ======================= CONTENT SECTION ======================= -->
- <div class="qt-container qt-vertical-padding-l ">
+ <!-- start podcasts -->
+ <div class="qt-container qt-vertical-padding-l qt-archive-team">
+ <h3>Ultimi Podcast</h3>
+ <div class="row">
+ <?php
+ /**
+ * [$args Query arguments]
+ * @var array
+ */
+ $args = array(
+ 'post_type' => 'podcast',
+ 'posts_per_page' => 9,
+ 'post_status' => 'publish',
+ 'suppress_filters' => false,
+ 'orderby' => 'meta_value',
+ 'order' => 'DESC',
+ 'meta_key' => '_podcast_date',
+ 'paged' => $paged
+ );
+ /**
+ * [$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-podcast' ); ?>
+ </div>
+ <?php
+ endwhile; else: ?>
+ <h3><?php echo esc_attr__("Sorry, nothing here","onair2")?></h3>
+ <?php endif;
+
+ wp_reset_postdata();
+ ?>
+ </div>
+ </div>
+ <!-- /end podcasts -->
+ <div class="qt-container qt-vertical-padding-l ">
<div class="row">
<?php
/**
* [$args Query arguments]
* @var array
*/
$args = array(
'post_type' => 'post',
'posts_per_page' => 6,
'post_status' => 'publish',
'suppress_filters' => false,
'paged' => $paged
);
/**
* [$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();
$post = $wp_query->post;
setup_postdata( $post );
if(is_sticky()){
get_template_part ( 'phpincludes/part-archive-item-post-featured' );
} else {
get_template_part ( 'phpincludes/part-archive-item-post' );
}
endwhile; else: ?>
<h3><?php echo esc_attr__("Sorry, nothing here","onair2")?></h3>
<?php endif;
wp_reset_postdata();
?>
</div>
<hr class="qt-spacer-m">
</div>
</div>
<?php
/**
* Homepage redesign
*
* This block was imported from:
* /wp-content/themes/onair2/archive-podcast.php
* See https://gitpull.it/T166
*/
?>
- <!-- start podcasts -->
- <div class="qt-container qt-vertical-padding-l qt-archive-team">
- <h3>Ultimi Podcast</h3>
- <div class="row">
- <?php
- /**
- * [$args Query arguments]
- * @var array
- */
- $args = array(
- 'post_type' => 'podcast',
- 'posts_per_page' => 9,
- 'post_status' => 'publish',
- 'suppress_filters' => false,
- 'orderby' => 'meta_value',
- 'order' => 'DESC',
- 'meta_key' => '_podcast_date',
- 'paged' => $paged
- );
- /**
- * [$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-podcast' ); ?>
- </div>
- <?php
- endwhile; else: ?>
- <h3><?php echo esc_attr__("Sorry, nothing here","onair2")?></h3>
- <?php endif;
-
- wp_reset_postdata();
- ?>
- </div>
- </div>
- <!-- /end podcasts -->
+
</div>
</div><!-- .qt-main end -->
<?php get_template_part ( 'phpincludes/part-sponsors' ); ?>
<?php get_template_part ( 'phpincludes/footerwidgets' ); ?>
<?php get_template_part ( 'phpincludes/part-player-sidebar' ); ?>
<?php get_footer(); ?>

File Metadata

Mime Type
text/x-diff
Expires
Thu, Nov 19, 04:27 (17 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264742
Default Alt Text
(5 KB)

Event Timeline