Skip to content
Browse files

Code clean up.

  • Loading branch information...
1 parent 636e746 commit ad78f8cce8003236529080e9837f4a8689dea4ca @JeremyEnglert committed Feb 9, 2014
Showing with 40 additions and 49 deletions.
  1. +21 −25 footer.php
  2. +1 −1 library/joints.php
  3. +1 −1 page-custom.php
  4. +1 −1 page-full-width.php
  5. +1 −1 page.php
  6. +1 −2 partials/loop-single.php
  7. +1 −3 search.php
  8. +10 −10 sidebar.php
  9. +1 −1 single.php
  10. +2 −4 taxonomy-custom_cat.php
View
46 footer.php
@@ -1,28 +1,24 @@
- <footer class="footer" role="contentinfo">
-
- <div id="inner-footer" class="row clearfix">
-
- <div class="large-12 medium-12 columns">
- <nav role="navigation">
- <?php joints_footer_links(); ?>
- </nav>
- </div>
-
- <div class="large-12 medium-12 columns">
- <p class="source-org copyright">&copy; <?php echo date('Y'); ?> <?php bloginfo('name'); ?>.</p>
- </div>
-
- </div> <!-- end #inner-footer -->
-
- </footer> <!-- end footer -->
-
- </div> <!-- end #container -->
- </div>
- </div>
-
- <!-- all js scripts are loaded in library/joints.php -->
- <?php wp_footer(); ?>
-
+ <footer class="footer" role="contentinfo">
+
+ <div id="inner-footer" class="row clearfix">
+
+ <div class="large-12 medium-12 columns">
+ <nav role="navigation">
+ <?php joints_footer_links(); ?>
+ </nav>
+ </div>
+
+ <div class="large-12 medium-12 columns">
+ <p class="source-org copyright">&copy; <?php echo date('Y'); ?> <?php bloginfo('name'); ?>.</p>
+ </div>
+ </div> <!-- end #inner-footer -->
+ </footer> <!-- end .footer -->
+ </div> <!-- end #container -->
+ </div> <!-- end .inner-wrap -->
+ </div> <!-- end .off-canvas-wrap -->
+
+ <!-- all js scripts are loaded in library/joints.php -->
+ <?php wp_footer(); ?>
</body>
</html> <!-- end page -->
View
2 library/joints.php
@@ -122,7 +122,7 @@ function joints_scripts_and_styles() {
if (!is_admin()) {
// modernizr (without media query polyfill)
- wp_register_script( 'joints-modernizr', get_stylesheet_directory_uri() . '/library/js/vendor/custom.modernizr.js', array(), '2.5.3', false );
+ wp_register_script( 'joints-modernizr', get_stylesheet_directory_uri() . '/library/js/vendor/modernizr.js', array(), '2.5.3', false );
// adding Foundation scripts file in the footer
wp_register_script( 'foundation-js', get_template_directory_uri() . '/library/js/foundation.min.js', array( 'jquery' ), '', true );
View
2 page-custom.php
@@ -18,7 +18,7 @@
<?php endwhile; else : ?>
- <?php get_template_part( 'partials/missing', 'content' ); ?>
+ <?php get_template_part( 'partials/content', 'missing' ); ?>
<?php endif; ?>
View
2 page-full-width.php
@@ -18,7 +18,7 @@
<?php endwhile; else : ?>
- <?php get_template_part( 'partials/missing', 'content' ); ?>
+ <?php get_template_part( 'partials/content', 'missing' ); ?>
<?php endif; ?>
View
2 page.php
@@ -12,7 +12,7 @@
<?php endwhile; else : ?>
- <?php get_template_part( 'partials/not', 'found' ); ?>
+ <?php get_template_part( 'partials/content', 'missing' ); ?>
<?php endif; ?>
View
3 partials/loop-single.php
@@ -2,8 +2,7 @@
<header class="article-header">
<h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
- <p class="byline"><?php printf(__('Posted by <span class="author">%3$s</span> on <time class="updated" datetime="%1$s" pubdate>%2$s</time>. -- %4$s', 'jointstheme'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), joints_get_the_author_posts_link(), get_the_category_list(', '));?>
- </p>
+ <?php get_template_part( 'partials/content', 'byline' ); ?>
</header> <!-- end article header -->
<section class="entry-content clearfix" itemprop="articleBody">
View
4 search.php
@@ -14,9 +14,7 @@
<header class="article-header">
<h3 class="search-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
- <p class="byline vcard"><?php
- printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'jointstheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'jointstheme')), joints_get_the_author_posts_link(), get_the_category_list(', '));
- ?></p>
+ <?php get_template_part( 'partials/content', 'byline' ); ?>
</header> <!-- end article header -->
View
20 sidebar.php
@@ -1,17 +1,17 @@
- <div id="sidebar1" class="sidebar large-4 medium-4 columns" role="complementary">
+<div id="sidebar1" class="sidebar large-4 medium-4 columns" role="complementary">
- <?php if ( is_active_sidebar( 'sidebar1' ) ) : ?>
+ <?php if ( is_active_sidebar( 'sidebar1' ) ) : ?>
- <?php dynamic_sidebar( 'sidebar1' ); ?>
+ <?php dynamic_sidebar( 'sidebar1' ); ?>
- <?php else : ?>
+ <?php else : ?>
- <!-- This content shows up if there are no widgets defined in the backend. -->
+ <!-- This content shows up if there are no widgets defined in the backend. -->
- <div class="alert help">
- <p><?php _e("Please activate some Widgets.", "jointstheme"); ?></p>
- </div>
+ <div class="alert help">
+ <p><?php _e("Please activate some Widgets.", "jointstheme"); ?></p>
+ </div>
- <?php endif; ?>
+ <?php endif; ?>
- </div>
+</div>
View
2 single.php
@@ -12,7 +12,7 @@
<?php endwhile; else : ?>
- <?php get_template_part( 'partials/missing', 'content' ); ?>
+ <?php get_template_part( 'partials/content', 'missing' ); ?>
<?php endif; ?>
View
6 taxonomy-custom_cat.php
@@ -30,9 +30,7 @@
<header class="article-header">
<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
- <p class="byline vcard"><?php
- printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'jointstheme'), get_the_time('Y-m-j'), get_the_time(__('F js, Y', 'jointstheme')), joints_get_the_author_posts_link(), get_the_term_list( get_the_ID(), 'custom_cat', "" ));
- ?></p>
+ <?php get_template_part( 'partials/content', 'byline' ); ?>
</header> <!-- end article header -->
@@ -62,7 +60,7 @@
<?php else : ?>
- <?php get_template_part( 'partials/missing', 'content' ); ?>
+ <?php get_template_part( 'partials/content', 'missing' ); ?>
<?php endif; ?>

0 comments on commit ad78f8c

Please sign in to comment.
Something went wrong with that request. Please try again.