Skip to content

Commit

Permalink
fix include external files
Browse files Browse the repository at this point in the history
  • Loading branch information
hugosolar committed Mar 5, 2019
1 parent 339e728 commit 1be9e1e
Show file tree
Hide file tree
Showing 17 changed files with 53 additions and 53 deletions.
8 changes: 4 additions & 4 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
the_archive_description('<div class="taxonomy-description">', '</div>');
?>
</header><!-- .page-header -->
<?php get_template_part('template-parts/sidebar/content-above-mobile'); ?>
<?php get_template_part('template-parts/sidebar/content-above'); ?>
<?php get_template_part('template-parts/sidebar/sidebar','content-above-mobile'); ?>
<?php get_template_part('template-parts/sidebar/sidebar','content-above'); ?>
<?php
// Start the Loop.
while (have_posts()) :
Expand Down Expand Up @@ -69,14 +69,14 @@
endif;
?>
</main><!-- .site-main -->
<?php get_template_part('template-parts/sidebar/content-bottom'); ?>
<?php get_template_part('template-parts/sidebar/sidebar','content-bottom'); ?>
</div>
<div id="wrapper-sidebar" class="wrapper-sidebar">
<?php get_sidebar(); ?>
</div>
</div><!-- .content-area -->
<!-- content-below -->
<?php get_template_part('template-parts/sidebar/content-below'); ?>
<?php get_template_part('template-parts/sidebar/sidebar','content-below'); ?>
<!-- END content-below -->

<?php get_footer(); ?>
10 changes: 5 additions & 5 deletions author.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
?>

<!-- header-below -->
<?php get_template_part( 'template-parts/sidebar/header-below' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','header-below' ); ?>
<!-- END header-below -->
<div id="primary" class="content-area">
<div id="wrapper-main" class="wrapper-main">
Expand Down Expand Up @@ -75,8 +75,8 @@
</div>
</header><!-- .page-header -->

<?php get_template_part( 'template-parts/sidebar/content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/content-above' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above' ); ?>

<div class="bio">
<span class="author-first-last"><?php print $author->first_name . ' ' . $author->last_name; ?></span>
Expand Down Expand Up @@ -113,14 +113,14 @@
?>

</main><!-- .site-main -->
<?php get_template_part( 'template-parts/sidebar/content-bottom' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-bottom' ); ?>
</div>
<div id="wrapper-sidebar" class="wrapper-sidebar">
<?php get_sidebar(); ?>
</div>
</div><!-- .content-area -->
<!-- content-below -->
<?php get_template_part( 'template-parts/sidebar/content-below' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-below' ); ?>
<!-- END content-below -->

<?php get_footer(); ?>
6 changes: 3 additions & 3 deletions category.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
?>
</header><!-- .page-header -->

<?php get_template_part( 'template-parts/sidebar/content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/content-above' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above' ); ?>

<?php
// Start the Loop.
Expand Down Expand Up @@ -71,7 +71,7 @@
endif;
?>
</main><!-- .site-main -->
<?php get_template_part( 'template-parts/sidebar/content-bottom' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-bottom' ); ?>
</div>
<div id="wrapper-sidebar" class="wrapper-sidebar">
<?php get_sidebar(); ?>
Expand Down
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>

<div class="column cc-footer-contact">
<?php get_sidebar( 'footer-center' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','footer-center' ); ?>
</div>

<div class="column cc-footer-license">
Expand Down
6 changes: 3 additions & 3 deletions front-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
get_header(); ?>

<!-- header-below -->
<?php get_template_part( 'template-parts/sidebar/header-below' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','header-below' ); ?>
<!-- END header-below -->
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
Expand All @@ -29,10 +29,10 @@

</main><!-- .site-main -->

<?php get_template_part( 'template-parts/sidebar/content-bottom' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-bottom' ); ?>

</div><!-- .content-area -->
<!-- home-content-below -->
<?php get_template_part( 'template-parts/sidebar/homepage-content-widgets' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','homepage-content-widgets' ); ?>
<!-- END home-content-below -->
<?php get_footer(); ?>
6 changes: 3 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
/**
* Include telated files
*/
require TEMPLATEPATH . '/inc/taxonomies.php';
require TEMPLATEPATH . '/inc/widgets.php';
require TEMPLATEPATH . '/inc/blog_install.php';
require STYLESHEETPATH . '/inc/taxonomies.php';
require STYLESHEETPATH . '/inc/widgets.php';
require STYLESHEETPATH . '/inc/blog_install.php';

function twentysixteen_entry_meta() {

Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</span>
</div>
<div class="header-right-col">
<?php get_sidebar( 'header-widget' ); ?>
<?php get_template_part( 'template-part/sidebar/sidebar','header-widget' ); ?>
<?php if ( has_nav_menu( 'secondary' ) ) : ?>
<nav id="secondary-navigation" class="secondary-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Secondary Menu' ); ?>">
<?php
Expand Down
14 changes: 7 additions & 7 deletions inc/widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
/**
* THEME WIDGETS
*/
require TEMPLATEPATH . '/inc/widgets/cc-links.php';
require TEMPLATEPATH . '/inc/widgets/cc-programs.php';
require TEMPLATEPATH . '/inc/widgets/cc-works.php';
require TEMPLATEPATH . '/inc/widgets/cc-videos.php';
require TEMPLATEPATH . '/inc/widgets/cc-news.php';
require TEMPLATEPATH . '/inc/widgets/cc-header-links.php';
require TEMPLATEPATH . '/inc/widgets/cc-footer-links.php';
require STYLESHEETPATH . '/inc/widgets/cc-links.php';
require STYLESHEETPATH . '/inc/widgets/cc-programs.php';
require STYLESHEETPATH . '/inc/widgets/cc-works.php';
require STYLESHEETPATH . '/inc/widgets/cc-videos.php';
require STYLESHEETPATH . '/inc/widgets/cc-news.php';
require STYLESHEETPATH . '/inc/widgets/cc-header-links.php';
require STYLESHEETPATH . '/inc/widgets/cc-footer-links.php';

class cc_widgets {
private static $instance;
Expand Down
2 changes: 1 addition & 1 deletion inc/widgets/cc-news.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function widget( $args, $instance ) {
// If we have a special feature, then it is 3 featured and 1 special feature.
// Otherwise, it is 4 features.
$have_special_feature = false;
$the_special_query = cc_widgets_get_homepage_features_query( 'program', 0 );
$the_special_query = cc_widgets::get_homepage_features_query( 'program', 0 );
if ( $the_special_query->have_posts() ) {
$have_special_feature = true;
}
Expand Down
4 changes: 2 additions & 2 deletions inc/widgets/cc-programs.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function widget( $args, $instance ) {
<?php

// The other features
$the_query = cc_widgets_get_featured_posts_by_taxonomy_query( 'program', 'highlight', $cc_programs_numposts );
$the_query = cc_widgets::get_featured_posts_by_taxonomy_query( 'program', 'highlight', $cc_programs_numposts );
while ( $the_query->have_posts() ) {
$the_query->the_post();
$hero_post_id = get_the_ID();
Expand Down Expand Up @@ -115,7 +115,7 @@ function widget( $args, $instance ) {
// If we have a special feature, then it is 3 featured and 1 special feature.
// Otherwise, it is 4 features.
$have_special_feature = false;
$the_special_query = cc_widgets_get_homepage_features_query( 'program', 0 );
$the_special_query = cc_widgets::get_homepage_features_query( 'program', 0 );
if ( $the_special_query->have_posts() ) {
$have_special_feature = true;
}
Expand Down
4 changes: 2 additions & 2 deletions inc/widgets/cc-videos.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function widget( $args, $instance ) {
<?php

// The other features
$the_query = cc_widgets_get_featured_posts_by_taxonomy_query( 'video', 'highlight', $cc_video_numposts );
$the_query = cc_widgets::get_featured_posts_by_taxonomy_query( 'video', 'highlight', $cc_video_numposts );
while ( $the_query->have_posts() ) {
$the_query->the_post();
$hero_post_id = get_the_ID();
Expand Down Expand Up @@ -101,7 +101,7 @@ function widget( $args, $instance ) {
// If we have a special feature, then it is 3 featured and 1 special feature.
// Otherwise, it is 4 features.
$have_special_feature = false;
$the_special_query = cc_widgets_get_homepage_features_query( 'program', 0 );
$the_special_query = cc_widgets::get_homepage_features_query( 'program', 0 );
if ( $the_special_query->have_posts() ) {
$have_special_feature = true;
}
Expand Down
2 changes: 1 addition & 1 deletion inc/widgets/cc-works.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function widget( $args, $instance ) {
// If we have a special feature, then it is 3 featured and 1 special feature.
// Otherwise, it is 4 features.
$have_special_feature = false;
$the_special_query = cc_widgets_get_homepage_features_query( 'program', 0 );
$the_special_query = cc_widgets::get_homepage_features_query( 'program', 0 );
if ( $the_special_query->have_posts() ) {
$have_special_feature = true;
}
Expand Down
8 changes: 4 additions & 4 deletions page-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
?>
</div>
<main id="main" class="site-main" role="main">
<?php get_template_part( 'template-parts/sidebar/content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/content-above' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above' ); ?>
<?php
// Start the loop.
while ( have_posts() ) :
Expand All @@ -42,7 +42,7 @@
endwhile;
?>
</main><!-- .site-main -->
<?php get_template_part( 'template-parts/sidebar/content-bottom' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-bottom' ); ?>
</div>
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div id="wrapper-sidebar" class="wrapper-sidebar">
Expand All @@ -51,7 +51,7 @@
<?php endif; ?>
</div><!-- .content-area -->
<!-- content-below -->
<?php get_template_part( 'template-parts/sidebar/content-below' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-below' ); ?>
<!-- END content-below -->

<?php get_footer(); ?>
10 changes: 5 additions & 5 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
get_header(); ?>

<!-- header-below -->
<?php get_template_part( 'template-parts/sidebar/header-below' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','header-below' ); ?>
<!-- END header-below -->
<div id="primary" class="content-area">
<div id="wrapper-main" class="wrapper-main">
Expand All @@ -26,8 +26,8 @@
?>
</div>
<main id="main" class="site-main" role="main">
<?php get_template_part( 'template-parts/sidebar/content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/content-above' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above' ); ?>
<?php
// Start the loop.
while ( have_posts() ) :
Expand All @@ -45,7 +45,7 @@
endwhile;
?>
</main><!-- .site-main -->
<?php get_template_part( 'template-parts/sidebar/content-bottom' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-bottom' ); ?>
</div>
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div id="wrapper-sidebar" class="wrapper-sidebar">
Expand All @@ -54,7 +54,7 @@
<?php endif; ?>
</div><!-- .content-area -->
<!-- content-below -->
<?php get_template_part( 'template-parts/sidebar/content-below' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-below' ); ?>
<!-- END content-below -->

<?php get_footer(); ?>
4 changes: 2 additions & 2 deletions page_program.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
?>

</main><!-- .site-main -->
<?php get_template_part( 'template-parts/sidebar/content-bottom' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-bottom' ); ?>
</div>
<div id="wrapper-sidebar" class="wrapper-sidebar">
<?php get_sidebar(); ?>
</div>
</div><!-- .content-area -->
<!-- content-below -->
<?php get_template_part( 'template-parts/sidebar/content-below' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-below' ); ?>
<!-- END content-below -->

<?php get_footer(); ?>
10 changes: 5 additions & 5 deletions single-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
get_header(); ?>

<!-- header-below -->
<?php get_template_part( 'template-parts/sidebar/header-below' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','header-below' ); ?>
<!-- END header-below -->

<div id="primary" class="content-area">
Expand All @@ -23,8 +23,8 @@
?>
</div>
<main id="main" class="site-main" role="main">
<?php get_template_part( 'template-parts/sidebar/content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/content-above' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above' ); ?>

<?php
// Start the loop.
Expand Down Expand Up @@ -52,14 +52,14 @@
endwhile;
?>
</main><!-- .site-main -->
<?php get_template_part( 'template-parts/sidebar/content-bottom' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-bottom' ); ?>
</div>
<div id="wrapper-sidebar" class="wrapper-sidebar">
<?php get_sidebar(); ?>
</div>
</div><!-- .content-area -->
<!-- content-below -->
<?php get_template_part( 'template-parts/sidebar/content-below' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-below' ); ?>
<!-- END content-below -->

<?php get_footer(); ?>
8 changes: 4 additions & 4 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
?>
</div>
<main id="main" class="site-main" role="main">
<?php get_template_part( 'template-parts/sidebar/content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/content-above' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above-mobile' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-above' ); ?>

<?php
// Start the loop.
Expand Down Expand Up @@ -60,14 +60,14 @@
endwhile;
?>
</main><!-- .site-main -->
<?php get_template_part( 'template-parts/sidebar/content-bottom' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-bottom' ); ?>
</div>
<div id="wrapper-sidebar" class="wrapper-sidebar">
<?php get_sidebar(); ?>
</div>
</div><!-- .content-area -->
<!-- content-below -->
<?php get_template_part( 'template-parts/sidebar/content-below' ); ?>
<?php get_template_part( 'template-parts/sidebar/sidebar','content-below' ); ?>
<!-- END content-below -->

<?php get_footer(); ?>

0 comments on commit 1be9e1e

Please sign in to comment.