Permalink
Browse files

updating new grid syntax

  • Loading branch information...
1 parent c20a343 commit 04a56907fa9dd907c7b89d879ea92bac18a206be Eddie Machado committed Mar 24, 2014
Showing with 254 additions and 166 deletions.
  1. +3 −3 404.php
  2. +23 −18 archive-custom_type.php
  3. +10 −19 archive.php
  4. +15 −3 footer.php
  5. +15 −2 header.php
  6. +24 −25 index.php
  7. +46 −11 page-custom.php
  8. +37 −16 page.php
  9. +14 −18 search.php
  10. +9 −5 sidebar.php
  11. +43 −21 single-custom_type.php
  12. +15 −25 taxonomy-custom_cat.php
View
@@ -2,11 +2,11 @@
<div id="content">
- <div id="inner-content" class="wrap clearfix">
+ <div id="inner-content" class="wrap cf">
- <div id="main" class="eightcol first clearfix" role="main">
+ <div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
- <article id="post-not-found" class="hentry clearfix">
+ <article id="post-not-found" class="hentry cf">
<header class="article-header">
@@ -1,27 +1,41 @@
+<?php
+/*
+ * CUSTOM POST TYPE ARCHIVE TEMPLATE
+ *
+ * This is the custom post type archive template. If you edit the custom post type name,
+ * you've got to change the name of this template to reflect that name change.
+ *
+ * For Example, if your custom post type is called "register_post_type( 'bookmarks')",
+ * then your template name should be archive-bookmarks.php
+ *
+ * For more info: http://codex.wordpress.org/Post_Type_Templates
+*/
+?>
+
<?php get_header(); ?>
<div id="content">
- <div id="inner-content" class="wrap clearfix">
+ <div id="inner-content" class="wrap cf">
- <div id="main" class="eightcol first clearfix" role="main">
+ <div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
<h1 class="archive-title h2"><?php post_type_archive_title(); ?></h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?> role="article">
+ <article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article">
<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>.', 'bonestheme' ), get_the_time( 'Y-m-j' ), get_the_time( __( 'F jS, Y', 'bonestheme' ) ), bones_get_the_author_posts_link());
+ printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', 'bonestheme' ), get_the_time( 'Y-m-j' ), get_the_time( __( 'F jS, Y', 'bonestheme' ) ), get_author_posts_url( get_the_author_meta( 'ID' ) ));
?></p>
</header>
- <section class="entry-content clearfix">
+ <section class="entry-content cf">
<?php the_excerpt(); ?>
@@ -35,20 +49,11 @@
<?php endwhile; ?>
- <?php if ( function_exists( 'bones_page_navi' ) ) { ?>
- <?php bones_page_navi(); ?>
- <?php } else { ?>
- <nav class="wp-prev-next">
- <ul class="clearfix">
- <li class="prev-link"><?php next_posts_link( __( '&laquo; Older Entries', 'bonestheme' )) ?></li>
- <li class="next-link"><?php previous_posts_link( __( 'Newer Entries &raquo;', 'bonestheme' )) ?></li>
- </ul>
- </nav>
- <?php } ?>
+ <?php bones_page_navi(); ?>
<?php else : ?>
- <article id="post-not-found" class="hentry clearfix">
+ <article id="post-not-found" class="hentry cf">
<header class="article-header">
<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
</header>
@@ -64,9 +69,9 @@
</div>
- <?php get_sidebar(); ?>
+ <?php get_sidebar(); ?>
- </div>
+ </div>
</div>
View
@@ -2,9 +2,9 @@
<div id="content">
- <div id="inner-content" class="wrap clearfix">
+ <div id="inner-content" class="wrap cf">
- <div id="main" class="eightcol first clearfix" role="main">
+ <div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
<?php if (is_category()) { ?>
<h1 class="archive-title h2">
@@ -43,18 +43,18 @@
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?> role="article">
+ <article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article">
<header class="article-header">
- <h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
+ <h3 class="h2 entry-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.', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(__( 'F jS, Y', 'bonestheme' )), bones_get_the_author_posts_link(), get_the_category_list(', '));
+ 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.', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(__( 'F jS, Y', 'bonestheme' )), get_author_posts_url( get_the_author_meta( 'ID' ) ), get_the_category_list(', '));
?></p>
</header>
- <section class="entry-content clearfix">
+ <section class="entry-content cf">
<?php the_post_thumbnail( 'bones-thumb-300' ); ?>
@@ -70,20 +70,11 @@
<?php endwhile; ?>
- <?php if ( function_exists( 'bones_page_navi' ) ) { ?>
- <?php bones_page_navi(); ?>
- <?php } else { ?>
- <nav class="wp-prev-next">
- <ul class="clearfix">
- <li class="prev-link"><?php next_posts_link( __( '&laquo; Older Entries', 'bonestheme' )) ?></li>
- <li class="next-link"><?php previous_posts_link( __( 'Newer Entries &raquo;', 'bonestheme' )) ?></li>
- </ul>
- </nav>
- <?php } ?>
+ <?php bones_page_navi(); ?>
<?php else : ?>
- <article id="post-not-found" class="hentry clearfix">
+ <article id="post-not-found" class="hentry cf">
<header class="article-header">
<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
</header>
@@ -99,9 +90,9 @@
</div>
- <?php get_sidebar(); ?>
+ <?php get_sidebar(); ?>
- </div>
+ </div>
</div>
View
@@ -1,9 +1,21 @@
<footer class="footer" role="contentinfo">
- <div id="inner-footer" class="wrap clearfix">
+ <div id="inner-footer" class="wrap cf">
<nav role="navigation">
- <?php bones_footer_links(); ?>
+ <?php wp_nav_menu(array(
+ 'container' => '', // remove nav container
+ 'container_class' => 'footer-links cf', // class of container (should you choose to use it)
+ 'menu' => __( 'Footer Links', 'bonestheme' ), // nav name
+ 'menu_class' => 'nav footer-nav cf', // adding custom nav class
+ 'theme_location' => 'footer-links', // where it's located in the theme
+ 'before' => '', // before the menu
+ 'after' => '', // after the menu
+ 'link_before' => '', // before each link
+ 'link_after' => '', // after each link
+ 'depth' => 0, // limit the depth of the nav
+ 'fallback_cb' => 'bones_footer_links_fallback' // fallback function
+ )); ?>
</nav>
<p class="source-org copyright">&copy; <?php echo date('Y'); ?> <?php bloginfo( 'name' ); ?>.</p>
@@ -19,4 +31,4 @@
</body>
-</html>
+</html> <!-- end of site. what a ride! -->
View
@@ -45,7 +45,7 @@
<header class="header" role="banner">
- <div id="inner-header" class="wrap clearfix">
+ <div id="inner-header" class="wrap cf">
<?php // to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> ?>
<p id="logo" class="h1"><a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></p>
@@ -55,7 +55,20 @@
<nav role="navigation">
- <?php bones_main_nav(); ?>
+ <?php wp_nav_menu(array(
+ 'container' => false, // remove nav container
+ 'container_class' => 'menu cf', // class of container (should you choose to use it)
+ 'menu' => __( 'The Main Menu', 'bonestheme' ), // nav name
+ 'menu_class' => 'nav top-nav cf', // adding custom nav class
+ 'theme_location' => 'main-nav', // where it's located in the theme
+ 'before' => '', // before the menu
+ 'after' => '', // after the menu
+ 'link_before' => '', // before each link
+ 'link_after' => '', // after each link
+ 'depth' => 0, // limit the depth of the nav
+ 'fallback_cb' => '' // fallback function (if there is one)
+ )); ?>
+
</nav>
</div>
View
@@ -1,53 +1,50 @@
<?php get_header(); ?>
- <div id="content">
+ <div id="content" class="wrap">
- <div id="inner-content" class="wrap clearfix">
+ <div id="inner-content" class="cf">
- <div id="main" class="eightcol first clearfix" role="main">
+ <div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?> role="article">
+ <article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article">
<header class="article-header">
- <h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
- <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.', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), bones_get_the_author_posts_link(), get_the_category_list(', '));
- ?></p>
+ <h1 class="h2 entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
+ <p class="byline vcard">
+ <?php printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+ </p>
</header>
- <section class="entry-content clearfix">
+ <section class="entry-content cf">
<?php the_content(); ?>
</section>
- <footer class="article-footer">
- <p class="tags"><?php the_tags( '<span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '' ); ?></p>
+ <footer class="article-footer cf">
+ <p class="footer-comment-count">
+ <?php comments_number( __( '<span>No</span> Comments', 'bonestheme' ), __( '<span>One</span> Comment', 'bonestheme' ), _n( '<span>%</span> Comments', '<span>%</span> Comments', get_comments_number(), 'bonestheme' ) );?>
+ </p>
- </footer>
- <?php // comments_template(); // uncomment if you want to use them ?>
+ <?php printf( __( '<p class="footer-category">Filed under: %1$s</p>', 'bonestheme' ), get_the_category_list(', ') ); ?>
+
+ <?php the_tags( '<p class="footer-tags tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
+
+
+ </footer>
</article>
<?php endwhile; ?>
- <?php if ( function_exists( 'bones_page_navi' ) ) { ?>
- <?php bones_page_navi(); ?>
- <?php } else { ?>
- <nav class="wp-prev-next">
- <ul class="clearfix">
- <li class="prev-link"><?php next_posts_link( __( '&laquo; Older Entries', 'bonestheme' )) ?></li>
- <li class="next-link"><?php previous_posts_link( __( 'Newer Entries &raquo;', 'bonestheme' )) ?></li>
- </ul>
- </nav>
- <?php } ?>
+ <?php bones_page_navi(); ?>
<?php else : ?>
- <article id="post-not-found" class="hentry clearfix">
+ <article id="post-not-found" class="hentry cf">
<header class="article-header">
<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
</header>
@@ -61,12 +58,14 @@
<?php endif; ?>
+
</div>
- <?php get_sidebar(); ?>
+ <?php get_sidebar(); ?>
</div>
</div>
+
<?php get_footer(); ?>
Oops, something went wrong.

0 comments on commit 04a5690

Please sign in to comment.