Skip to content

Commit

Permalink
Correct package declaration, use the_widget() instead of custom
Browse files Browse the repository at this point in the history
implementation
  • Loading branch information
obenland committed Apr 18, 2012
1 parent 72be0a5 commit fcec12d
Show file tree
Hide file tree
Showing 31 changed files with 54 additions and 94 deletions.
3 changes: 1 addition & 2 deletions 404.php
Expand Up @@ -4,8 +4,7 @@
* The template for displaying 404 pages (Not Found).
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions archive.php
Expand Up @@ -9,8 +9,7 @@
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions author.php
Expand Up @@ -4,8 +4,7 @@
* The template for displaying Author Archive pages.
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/

Expand Down
11 changes: 4 additions & 7 deletions category.php
Expand Up @@ -4,8 +4,7 @@
* The template for displaying Category Archive pages.
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/

Expand All @@ -21,11 +20,9 @@
printf( __( 'Category Archives: %s', 'the-bootstrap' ), '<span>' . single_cat_title( '', false ) . '</span>' );
?></h1>

<?php
if ( $category_description = category_description() ) {
echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
}
?>
<?php if ( $category_description = category_description() ) {
echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
} ?>
</header>

<?php
Expand Down
3 changes: 1 addition & 2 deletions comments.php
Expand Up @@ -9,8 +9,7 @@
* located in the functions.php file.
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions footer.php
Expand Up @@ -2,8 +2,7 @@
/** footer.php
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/
?>
Expand Down
3 changes: 1 addition & 2 deletions functions.php
Expand Up @@ -2,8 +2,7 @@
/** functions.php
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions header.php
Expand Up @@ -6,8 +6,7 @@
* Displays all of the <head> section and everything up till <div id="main">
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0 - 05.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions image.php
Expand Up @@ -4,8 +4,7 @@
* The template for displaying image attachments.
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions inc/custom-header.php
Expand Up @@ -5,8 +5,7 @@
* http://codex.wordpress.org/Custom_Headers
*
* @author Automattic, Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.2.0 - 05.04.2012
*/

Expand Down
3 changes: 2 additions & 1 deletion inc/the-bootstrap-image-meta-widget.php
Expand Up @@ -2,7 +2,8 @@
/** image-meta-widget.php
*
* @author Konstantin Obenland
* @since 1.1.0
* @package The Bootstrap
* @since 1.1.0 - 08.03.2012
*/


Expand Down
3 changes: 1 addition & 2 deletions index.php
Expand Up @@ -10,8 +10,7 @@
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions page.php
Expand Up @@ -9,8 +9,7 @@
* different template.
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions partials/content-aside.php
Expand Up @@ -6,8 +6,7 @@
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0 - 07.02.2012
*/
?>
Expand Down
3 changes: 1 addition & 2 deletions partials/content-chat.php
Expand Up @@ -6,8 +6,7 @@
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions partials/content-gallery.php
Expand Up @@ -6,8 +6,7 @@
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/
?>
Expand Down
3 changes: 1 addition & 2 deletions partials/content-image.php
Expand Up @@ -6,8 +6,7 @@
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/
?>
Expand Down
3 changes: 1 addition & 2 deletions partials/content-link.php
Expand Up @@ -6,8 +6,7 @@
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions partials/content-no-results.php
Expand Up @@ -4,8 +4,7 @@
* The template for displaying a 'Noting found' message.
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/
?>
Expand Down
3 changes: 1 addition & 2 deletions partials/content-page.php
Expand Up @@ -4,8 +4,7 @@
* The template for displaying page content in the page.php template
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/
?>
Expand Down
3 changes: 1 addition & 2 deletions partials/content-quote.php
Expand Up @@ -6,8 +6,7 @@
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/

Expand Down
7 changes: 2 additions & 5 deletions partials/content-single.php
Expand Up @@ -4,17 +4,14 @@
* The template for displaying content in the single.php template
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="page-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<div class="entry-meta">
<?php the_bootstrap_posted_on(); ?>
</div><!-- .entry-meta -->
<div class="entry-meta"><?php the_bootstrap_posted_on(); ?></div><!-- .entry-meta -->
</header><!-- .entry-header -->

<div class="entry-content clearfix">
Expand Down
3 changes: 1 addition & 2 deletions partials/content-status.php
Expand Up @@ -6,8 +6,7 @@
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/
?>
Expand Down
3 changes: 1 addition & 2 deletions partials/content-video.php
Expand Up @@ -6,8 +6,7 @@
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.1 - 07.03.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions partials/content.php
Expand Up @@ -4,8 +4,7 @@
* The default template for displaying content
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/
?>
Expand Down
3 changes: 1 addition & 2 deletions search.php
Expand Up @@ -4,8 +4,7 @@
* The template for displaying Search Results pages.
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/

Expand Down
3 changes: 1 addition & 2 deletions searchform.php
Expand Up @@ -4,8 +4,7 @@
* The template for displaying search forms
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/
?>
Expand Down
5 changes: 2 additions & 3 deletions sidebar-image.php
Expand Up @@ -2,8 +2,7 @@
/** sidebar-image.php
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/
?>
Expand All @@ -12,7 +11,7 @@
if ( ! dynamic_sidebar( 'image' ) ) {
the_widget( 'The_Bootstrap_Image_Meta_Widget', array(), array(
'before_widget' => '<aside id="the-bootstrap-image-meta" class="widget well the-bootstrap-image-meta">',
'after_widget' => "</aside>",
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
Expand Down
36 changes: 15 additions & 21 deletions sidebar.php
Expand Up @@ -2,31 +2,25 @@
/** sidebar.php
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/
?>
<section id="secondary" class="widget-area span4" role="complementary">
<?php if ( ! dynamic_sidebar( 'main' ) ) : ?>

<aside id="archives" class="widget well">
<h2 class="widget-title"><?php _e( 'Archives', 'the-bootstrap' ); ?></h2>
<ul>
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
</ul>
</aside>

<aside id="meta" class="widget well">
<h2 class="widget-title"><?php _e( 'Meta', 'the-bootstrap' ); ?></h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</aside>

<?php endif; // end sidebar widget area ?>
<?php if ( ! dynamic_sidebar( 'main' ) ) {
the_widget( 'WP_Widget_Archives', array(), array(
'before_widget' => '<aside id="archives" class="widget well widget_archives">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
the_widget( 'WP_Widget_Meta', array(), array(
'before_widget' => '<aside id="meta" class="widget well widget_meta">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
} // end sidebar widget area ?>
</section><!-- #secondary .widget-area -->
<?php

Expand Down
3 changes: 1 addition & 2 deletions single.php
Expand Up @@ -4,8 +4,7 @@
* The Template for displaying all single posts.
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/

Expand Down
11 changes: 4 additions & 7 deletions tag.php
Expand Up @@ -4,8 +4,7 @@
* The template used to display Tag Archive pages
*
* @author Konstantin Obenland
* @package WordPress
* @subpackage The Bootstrap
* @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/

Expand All @@ -21,11 +20,9 @@
printf( __( 'Tag Archives: %s', 'the-bootstrap' ), '<span>' . single_tag_title( '', false ) . '</span>' );
?></h1>

<?php
$tag_description = tag_description();
if ( ! empty( $tag_description ) ) {
echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
} ?>
<?php if ( $tag_description = tag_description() ) ) {
echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
} ?>
</header>

<?php
Expand Down

0 comments on commit fcec12d

Please sign in to comment.