diff --git a/CHANGELOG.md b/CHANGELOG.md index db764c4..b5fe5e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ### HEAD +* Replace ID's with classes * Add support for dynamic sidebar templates * Fix PHP notice on search with no results * Update to jQuery 1.9.0 diff --git a/assets/css/app.css b/assets/css/app.css index e075905..7446a03 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -10,7 +10,7 @@ body { } Header ========================================================================== */ -#banner { } +.banner { } /* Fixed Topbar Navigation */ body.top-navbar { padding-top: 60px; } @@ -22,7 +22,7 @@ body.admin-bar .navbar-fixed-top { top: 28px; } Content ========================================================================== */ -#content { } +.content { } @@ -30,7 +30,7 @@ body.admin-bar .navbar-fixed-top { top: 28px; } Primary Content ========================================================================== */ -#main { } +.main { } @@ -38,7 +38,7 @@ body.admin-bar .navbar-fixed-top { top: 28px; } Sidebar ========================================================================== */ -#sidebar { } +.sidebar { } @@ -48,7 +48,7 @@ body.admin-bar .navbar-fixed-top { top: 28px; } .hentry header { } .hentry time { } -.hentry p.byline { } +.hentry .byline { } .hentry .entry-content { } .hentry footer { } @@ -58,7 +58,7 @@ body.admin-bar .navbar-fixed-top { top: 28px; } Footer ========================================================================== */ -#content-info { } +.content-info { } diff --git a/base.php b/base.php index 89d618b..5a661b7 100644 --- a/base.php +++ b/base.php @@ -12,18 +12,18 @@ } ?> -
-
-
+
+
+
-
+
- -
-
+
+
diff --git a/doc/lib.md b/doc/lib.md index 0eac4cb..73c3cd1 100644 --- a/doc/lib.md +++ b/doc/lib.md @@ -13,7 +13,7 @@ This file handles the various WordPress clean up. [About the clean up](cleanup.m ### config.php -This file is used to enable various theme features, define which pages get the sidebar, set the CSS classes for `#main` and `#sidebar`, set a Google Analytics ID, and set the post excerpt length. +This file is used to enable various theme features, define which pages get the sidebar, set the CSS classes for `.main` and `.sidebar`, set a Google Analytics ID, and set the post excerpt length. #### Enable theme features @@ -107,7 +107,7 @@ The theme wrapper is used to serve all of the template files. [About the theme w This file registers the custom sidebars and custom widgets. There are two initial sidebars: -1. Primary Sidebar (used by `templates/sidebar.php`, included from `base.php` within `#sidebar`) +1. Primary Sidebar (used by `templates/sidebar.php`, included from `base.php` within `.sidebar`) 2. Footer (used by `templates/footer.php`) The included vCard widget can be used to build additional, custom widgets. diff --git a/lib/widgets.php b/lib/widgets.php index 98e7c6b..ec654dd 100644 --- a/lib/widgets.php +++ b/lib/widgets.php @@ -5,7 +5,7 @@ function roots_widgets_init() { register_sidebar(array( 'name' => __('Primary Sidebar', 'roots'), 'id' => 'sidebar-primary', - 'before_widget' => '
', + 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', @@ -14,7 +14,7 @@ function roots_widgets_init() { register_sidebar(array( 'name' => __('Footer', 'roots'), 'id' => 'sidebar-footer', - 'before_widget' => '
', + 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', diff --git a/templates/comments.php b/templates/comments.php index 5a0f346..27a74cd 100644 --- a/templates/comments.php +++ b/templates/comments.php @@ -1,7 +1,7 @@
  • > -
    +
    %s', 'roots'), get_comment_author_link()); ?> @@ -43,7 +43,7 @@ 1 && get_option('page_comments')) : // are there comments to navigate through ?> -
  • - '')); ?> + '')); ?>
  • ','
  • ','
  • '); ?>
    diff --git a/templates/content.php b/templates/content.php index fc4084e..befb633 100644 --- a/templates/content.php +++ b/templates/content.php @@ -7,7 +7,7 @@ -
    > +
    >

    @@ -22,7 +22,7 @@ max_num_pages > 1) : ?> -