Skip to content

Commit

Permalink
experiment (fixing scope)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeojonathan committed Sep 29, 2014
1 parent 3493f35 commit 5267c95
Show file tree
Hide file tree
Showing 19 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion 404.php
Expand Up @@ -6,5 +6,5 @@
*/

get_header();
get_template_part('error-snippet');
require(locate_template('error-snippet'));
get_footer();
4 changes: 2 additions & 2 deletions archive.php
Expand Up @@ -50,7 +50,7 @@
</section>
<section class="container post">
<?php
get_template_part('advert');
require(locate_template('advert'));
?>
</section>
<div class="container post">
Expand All @@ -66,7 +66,7 @@
?>
<div class="container post">
<?php
get_template_part('error-snippet');
require(locate_template('error-snippet'));
?>
</div>
<?php
Expand Down
4 changes: 2 additions & 2 deletions author.php
Expand Up @@ -48,7 +48,7 @@
?>
</section>
<section class="container post">
<?php get_template_part('advert');?>
<?php require(locate_template('advert'));?>
</section>
<div class="container post">
<nav class="navitems text-center">
Expand All @@ -60,7 +60,7 @@
</div>
<?php } else { ?>
<div class="container post">
<?php get_template_part('error-snippet');?>
<?php require(locate_template('error-snippet'));?>
</div>
<?php
}
Expand Down
2 changes: 1 addition & 1 deletion breadcrumb.php
Expand Up @@ -9,7 +9,7 @@
<ul class="breadcrumb clearfix">
<?php
echo $multiloquent->multiloquent_breadcrumbs();
get_template_part('metadata');
require(locate_template('metadata'));
?>
</ul>
</nav>
4 changes: 2 additions & 2 deletions category.php
Expand Up @@ -27,7 +27,7 @@
?>
</section>
<section class="container post">
<?php get_template_part('advert');?>
<?php require(locate_template('advert'));?>
</section>
<div class="container post">
<nav class="navitems text-center">
Expand All @@ -39,7 +39,7 @@
</div>
<?php } else { ?>
<div class="container post">
<?php get_template_part('error-snippet');?>
<?php require(locate_template('error-snippet'));?>
</div>
<?php
}
Expand Down
4 changes: 2 additions & 2 deletions error-snippet.php
Expand Up @@ -7,7 +7,7 @@
*/

?><div class="container">
<?php get_template_part('advert');?>
<?php require(locate_template('advert'));?>
<!-- google_ad_section_start-->
</div>
<article class="container">
Expand All @@ -16,5 +16,5 @@
</article>
<div class="container">
<!-- google_ad_section_end-->
<?php get_template_part('advert');?>
<?php require(locate_template('advert'));?>
</div>
2 changes: 1 addition & 1 deletion footer.php
Expand Up @@ -11,7 +11,7 @@
?>
</div>
<?php
get_template_part('navigation');
require(locate_template('navigation'));
if (empty($hide_the_footer_links)) {
?>
<footer class="well">
Expand Down
2 changes: 1 addition & 1 deletion front-page.php
Expand Up @@ -25,7 +25,7 @@
<p class="lead text-center">Featured Posts</p>
<?php echo $multiloquent->multiloquent_paralax_slider();?>
<div class="container">
<?php get_template_part('advert');?>
<?php require(locate_template('advert'));?>
</div>
<?php
get_footer();
Expand Down
4 changes: 2 additions & 2 deletions home.php
Expand Up @@ -29,7 +29,7 @@
?>
</section>
<section class="container post">
<?php get_template_part('advert');?>
<?php require(locate_template('advert'));?>
</section>
<div class="container post">
<nav class="navitems text-center">
Expand All @@ -41,7 +41,7 @@
</div>
<?php } else { ?>
<div class="container post">
<?php get_template_part('error-snippet');?>
<?php require(locate_template('error-snippet'));?>
</div>
<?php
}
Expand Down
4 changes: 2 additions & 2 deletions index.php
Expand Up @@ -50,7 +50,7 @@
?>
</section>
<section class="container post">
<?php get_template_part('advert');?>
<?php require(locate_template('advert'));?>
</section>
<div class="container post">
<nav class="navitems text-center">
Expand All @@ -62,7 +62,7 @@
</div>
<?php } else { ?>
<div class="container post">
<?php get_template_part('error-snippet');?>
<?php require(locate_template('error-snippet'));?>
</div>
<?php
}
Expand Down
12 changes: 6 additions & 6 deletions page.php
Expand Up @@ -11,11 +11,11 @@
while (have_posts()) {
the_post();
echo $multiloquent->multiloquent_paralax_featured_sliders();
get_template_part('featuredimage');
require(locate_template('featuredimage'));
echo '<div id="post-' . get_the_ID() . '" ';
echo post_class('post');
echo '>';
get_template_part('breadcrumb');
require(locate_template('breadcrumb'));
?>
<div class="container">
<div class="col-sm-12 col-md-12 col-lg-12">
Expand All @@ -32,20 +32,20 @@
?>
</div>
<?php
get_template_part('advert');
require(locate_template('advert'));
?>
</div>
<?php

get_template_part('social');
require(locate_template('social'));
if (comments_open()) {
?>
<section class="container">
<div class="col-sm-12 col-md-12 col-lg-12">
<h3 class="hidden-lg">Comments for <?php echo multiloquent_post_title(); ?></h3>
<?php
comments_template();
get_template_part('advert');
require(locate_template('advert'));
?>
</div>
</section>
Expand All @@ -58,7 +58,7 @@
?>
<section class="container">
<?php
get_template_part('advert');
require(locate_template('advert'));
?>
</section>
<?php
Expand Down
4 changes: 2 additions & 2 deletions search.php
Expand Up @@ -9,11 +9,11 @@
// 404 ?
get_header();
echo '<div class="container post"> ';
get_template_part('error-snippet');
require(locate_template('error-snippet'));
echo '</div>';
get_footer();
exit;
} else {
// process form data
get_template_part('archive');
require(locate_template('archive'));
}
12 changes: 6 additions & 6 deletions single.php
Expand Up @@ -14,8 +14,8 @@
echo '<article id="post-' . get_the_ID() . '" ';
echo post_class('post');
echo '>';
get_template_part('featuredimage');
get_template_part('breadcrumb');
require(locate_template('featuredimage'));
require(locate_template('breadcrumb'));
?>
<div class="container">
<?php
Expand All @@ -33,7 +33,7 @@
remove_filter('the_excerpt', 'sharing_display', 19);
the_content('<p class="serif">' . 'Read the rest of this page' . ' &raquo;</p>');
wp_link_pages('<p><strong>Pages:</strong>', '</p>', 'number');
get_template_part('advert');
require(locate_template('advert'));
?>
<section class="row">
<div class="tagcloud clearfix mb">
Expand All @@ -50,10 +50,10 @@
if (comments_open()) {
echo '<div class="col-sm-12 col-md-6 col-lg-5 comments breadcrumb">';
comments_template();
get_template_part('advert');
require(locate_template('advert'));
echo '</div>';
}
get_template_part('advert');
require(locate_template('advert'));
?>
</div>
<?php
Expand All @@ -69,5 +69,5 @@
echo '<p>Sorry, no posts matched your criteria.<p>';
}
echo '<!-- google_ad_section_end-->';
get_template_part('social');
require(locate_template('social'));
get_footer();
4 changes: 2 additions & 2 deletions tag.php
Expand Up @@ -33,7 +33,7 @@
?>
</section>
<section class="container post">
<?php get_template_part('advert');?>
<?php require(locate_template('advert'));?>
</section>
<div class="container post">
<nav class="navitems text-center">
Expand All @@ -45,7 +45,7 @@
</div>
<?php } else { ?>
<div class="container post">
<?php get_template_part('error-snippet');?>
<?php require(locate_template('error-snippet'));?>
</div>
<?php
}
Expand Down
6 changes: 3 additions & 3 deletions template-adventures-single.php
Expand Up @@ -8,8 +8,8 @@
if (have_posts()) {
while (have_posts()) {
the_post();
get_template_part('featuredposts');
get_template_part('featuredimage');
require(locate_template('featuredposts'));
require(locate_template('featuredimage'));
echo '<div id="post-' . get_the_ID() . '" ';
echo post_class('post');
echo '>';
Expand All @@ -24,7 +24,7 @@
$title_string = preg_replace('(\d+)', '', $title_string);
$title_string = trim($title_string);
$locations = explode(' to ', $title_string);
get_template_part('breadcrumb');
require(locate_template('breadcrumb'));
?>
<div class="container">
<div class="col-sm-12 col-md-12 col-lg-12">
Expand Down
2 changes: 1 addition & 1 deletion template-category-index.php
Expand Up @@ -16,6 +16,6 @@
<?php echo $multiloquent->multiloquent_category_list_as_hierarchy('0'); ?>
</article>
<!-- google_ad_section_end-->
<?php get_template_part('advert'); ?>
<?php require(locate_template('advert')); ?>
</div>
<?php get_footer();
2 changes: 1 addition & 1 deletion template-full-width-no-header-single.php
Expand Up @@ -30,7 +30,7 @@
echo '<!-- google_ad_section_end-->';
?></div><?php
get_sidebar();
get_template_part('navigation');
require(locate_template('navigation'));
wp_footer();
?>
</body>
Expand Down
14 changes: 7 additions & 7 deletions template-full-width-single.php
Expand Up @@ -8,13 +8,13 @@
if (have_posts()) {
while (have_posts()) {
the_post();
get_template_part('featuredposts');
get_template_part('featuredimage');
require(locate_template('featuredposts'));
require(locate_template('featuredimage'));
echo '<div id="post-' . get_the_ID() . '" ';
echo post_class('post');
echo '>';

get_template_part('breadcrumb');
require(locate_template('breadcrumb'));
?>
<div class="container">
<div class="col-sm-12 col-md-12 col-lg-12">
Expand All @@ -31,19 +31,19 @@
?>
</div>
<?php
get_template_part('advert');
require(locate_template('advert'));
?>
</div>
<?php
get_template_part('social');
require(locate_template('social'));
if (comments_open()) {
?>
<section class="container">
<div class="col-sm-12 col-md-12 col-lg-12">
<h3 class="hidden-lg">Comments for <?php echo $multiloquent->multiloquent_post_title(); ?></h3>
<?php
comments_template();
get_template_part('advert');
require(locate_template('advert'));
?>
</div>
</section>
Expand Down Expand Up @@ -76,7 +76,7 @@
?>
<section class="container">
<?php
get_template_part('advert');
require(locate_template('advert'));
?>
</section>
<?php
Expand Down
2 changes: 1 addition & 1 deletion template-tag-index.php
Expand Up @@ -84,6 +84,6 @@
?>
</article>
<!-- google_ad_section_end-->
<?php get_template_part('advert');?>
<?php require(locate_template('advert'));?>
</div>
<?php get_footer();

0 comments on commit 5267c95

Please sign in to comment.