Permalink
Browse files

Correct package declaration, use the_widget() instead of custom

implementation
  • Loading branch information...
1 parent 72be0a5 commit fcec12d8d8c7e250460a8c216ccaef9fa7b37365 @obenland committed Apr 18, 2012
View
@@ -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
*/
View
@@ -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
*/
View
@@ -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
*/
View
@@ -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
*/
@@ -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
View
@@ -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
*/
View
@@ -2,8 +2,7 @@
/** footer.php
*
* @author Konstantin Obenland
- * @package WordPress
- * @subpackage The Bootstrap
+ * @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/
?>
View
@@ -2,8 +2,7 @@
/** functions.php
*
* @author Konstantin Obenland
- * @package WordPress
- * @subpackage The Bootstrap
+ * @package The Bootstrap
* @since 1.0.0 - 05.02.2012
*/
View
@@ -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
*/
View
@@ -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
*/
View
@@ -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
*/
@@ -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
*/
View
@@ -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
*/
View
@@ -9,8 +9,7 @@
* different template.
*
* @author Konstantin Obenland
- * @package WordPress
- * @subpackage The Bootstrap
+ * @package The Bootstrap
* @since 1.0.0 - 07.02.2012
*/
@@ -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
*/
?>
@@ -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
*/
@@ -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
*/
?>
@@ -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
*/
?>
@@ -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
*/
@@ -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
*/
?>
@@ -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
*/
?>
@@ -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
*/
@@ -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">
@@ -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
*/
?>
@@ -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
*/
View
@@ -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
*/
?>
View
@@ -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
*/
View
@@ -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
*/
?>
View
@@ -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
*/
?>
@@ -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>',
) );
View
@@ -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
View
@@ -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
*/
View
11 tag.php
@@ -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
*/
@@ -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

0 comments on commit fcec12d

Please sign in to comment.