Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F15171819
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Unknown
Size
6 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/functions.php b/functions.php
old mode 100755
new mode 100644
index 0cde6a7..3b1704a
--- a/functions.php
+++ b/functions.php
@@ -1,69 +1,69 @@
<?php
/**
* OnAir2 Child theme
* custom functions.php file
*/
-//wp_register_script('borderradio-custom', get_template_directory_uri() . '/script.js' );
+//wp_register_style( 'borderradio-custom', get_template_directory_uri() . '/script.css' );
/**
* Add parent and child stylesheets
*/
add_action( 'wp_enqueue_scripts', 'qantumthemes_child_enqueue_styles' );
if(!function_exists('qantumthemes_child_enqueue_styles')) {
function qantumthemes_child_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_uri() );
// wp_enqueue_script( 'borderradio-custom' );
}}
/**
* Upon activation flush the rewrite rules to avoid 404 on custom post types
*/
add_action( 'after_switch_theme', 'qantumthemes_child_rewrite_flush_child' );
if(!function_exists('qantumthemes_child_rewrite_flush_child')) {
function qantumthemes_child_rewrite_flush_child() {
flush_rewrite_rules();
}}
/**
* Setup Onair2 Child Theme's textdomain.
*
* Declare textdomain for this child theme.
* Translations can be filed in the /languages/ directory.
*/
function qantumthemes_child_theme_setup() {
load_child_theme_textdomain( 'onair2-child', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'qantumthemes_child_theme_setup' );
/**
* Customize how posts are queried
*/
add_filter( 'pre_get_posts', function( $query ) {
if( !is_admin() && $query->is_main_query() ) {
/**
* Display all the Speakers in one single page
*
* See https://gitpull.it/T162
* See https://gitpull.it/T178
*/
if ( is_tax( 'membertype' ) ) {
$query->set( 'nopaging', true );
/**
* Increase Podcasts per page
*
* See https://gitpull.it/T160
* See https://gitpull.it/T178
*
*/
} elseif( is_post_type_archive( 'podcast' ) || is_tax( 'podcastfilter' ) ) {
$query->set( 'posts_per_archive_page', 16 );
}
}
} );
diff --git a/index.php b/index.php
index b642f8b..b749bb0 100644
--- a/index.php
+++ b/index.php
@@ -1,123 +1,123 @@
<?php
/*
Package: OnAir2
Description: Standard blog index
Version: 0.0.0
Author: QantumThemes
Author URI: http://qantumthemes.com
*/
?>
-<?php get_header(); ?>
- <?php
+<?php get_header(); ?>
+ <?php
get_template_part ('phpincludes/menu');
- get_template_part ('phpincludes/part-searchbar');
+ get_template_part ('phpincludes/part-searchbar');
?>
<div id="maincontent" class="qt-main">
- <?php
+ <?php
/**
* From V 2.5
*/
if (get_theme_mod( 'qt_playerbar_version', '1' ) === '2'){ ?>
<hr class="qt-header-player-spacer">
<?php } ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- ======================= HEADER SECTION ======================= -->
<?php get_template_part( 'phpincludes/part-header-caption-archive'); ?>
<!-- ======================= CONTENT SECTION ======================= -->
<div class="qt-container qt-vertical-padding-l ">
<div class="row">
<div class="col s12 m8 push-m2">
- <?php
+ <?php
/**
* [$args Query arguments]
* @var array
*/
$args = array(
'post_type' => 'post',
'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' );
}
?>
<?php
endwhile; else: ?>
<h3><?php echo esc_attr__("Sorry, nothing here","onair2")?></h3>
<?php endif;
wp_reset_postdata();
?>
<hr class="qt-spacer-m">
</div>
</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_template_part ( 'phpincludes/part-player-sidebar' ); ?>
<?php get_footer(); ?>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Nov 19, 00:47 (13 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263584
Default Alt Text
(6 KB)
Attached To
Mode
R26 Border Radio OnAir2 child theme
Attached
Detach File
Event Timeline