Skip to content

Commit

Permalink
Add Glyphicons
Browse files Browse the repository at this point in the history
Add support for the Theme Hook Alliance project
  • Loading branch information
obenland committed Jul 9, 2012
1 parent 3a430d8 commit 0c98561
Show file tree
Hide file tree
Showing 33 changed files with 1,152 additions and 215 deletions.
17 changes: 13 additions & 4 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@

get_header(); ?>

<div id="primary" class="span8">
<div id="content" role="main">
<section id="primary" class="span8">

<?php tha_content_before(); ?>
<div id="content" role="main">
<?php tha_content_top(); ?>

<?php tha_entry_before(); ?>
<article id="post-0" class="post error404 not-found">
<?php tha_entry_top(); ?>
<header class="page-header">
<h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'the-bootstrap' ); ?></h1>
</header><!-- .page-header -->
Expand Down Expand Up @@ -41,10 +46,14 @@
the_widget( 'WP_Widget_Tag_Cloud' ); ?>

</div><!-- .entry-content -->
<?php tha_entry_bottom(); ?>
</article><!-- #post-0 .post .error404 .not-found -->

<?php tha_entry_after(); ?>

<?php tha_content_bottom(); ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php tha_content_after(); ?>
</section><!-- #primary -->

<?php
get_sidebar();
Expand Down
69 changes: 37 additions & 32 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,43 @@

get_header(); ?>

<section id="primary" class="span8">
<div id="content" role="main">

<?php if ( have_posts() ) : ?>

<header class="page-header">
<h1 class="page-title">
<?php
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'the-bootstrap' ), '<span>' . get_the_date() . '</span>' );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'the-bootstrap' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'the-bootstrap' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
else :
_e( 'Blog Archives', 'the-bootstrap' );
endif; ?>
</h1>
</header><!-- .page-header -->

<?php
while ( have_posts() ) {
the_post();
get_template_part( '/partials/content', get_post_format() );
}
the_bootstrap_content_nav();
else :
get_template_part( '/partials/content', 'not-found' );
endif; ?>

</div><!-- #content -->
</section><!-- #primary -->
<section id="primary" class="span8">

<?php tha_content_before(); ?>
<div id="content" role="main">
<?php tha_content_top();

if ( have_posts() ) : ?>

<header class="page-header">
<h1 class="page-title">
<?php
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'the-bootstrap' ), '<span>' . get_the_date() . '</span>' );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'the-bootstrap' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'the-bootstrap' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
else :
_e( 'Blog Archives', 'the-bootstrap' );
endif; ?>
</h1>
</header><!-- .page-header -->

<?php
while ( have_posts() ) {
the_post();
get_template_part( '/partials/content', get_post_format() );
}
the_bootstrap_content_nav();
else :
get_template_part( '/partials/content', 'not-found' );
endif;

tha_content_bottom(); ?>
</div><!-- #content -->
<?php tha_content_after(); ?>
</section><!-- #primary -->

<?php
get_sidebar();
Expand Down
77 changes: 41 additions & 36 deletions author.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,47 @@

get_header(); ?>

<section id="primary" class="span8">
<div id="content" role="main">

<?php if ( have_posts() ) :
the_post(); ?>

<header class="page-header">
<h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'the-bootstrap' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
</header><!-- .page-header -->

<?php
rewind_posts();
// If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta( 'description' ) ) : ?>
<div id="author-info" class="row">
<h2 class="span8"><?php printf( __( 'About %s', 'the-bootstrap' ), get_the_author() ); ?></h2>
<div id="author-avatar" class="span1">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'the-bootstrap_author_bio_avatar_size', 70 ) ); ?>
</div><!-- #author-avatar -->
<div id="author-description" class="span7">
<?php the_author_meta( 'description' ); ?>
</div><!-- #author-description -->
</div><!-- #author-info -->
<?php endif;

while ( have_posts() ) {
the_post();
get_template_part( '/partials/content', get_post_format() );
}
the_bootstrap_content_nav();
else :
get_template_part( '/partials/content', 'no-results' );
endif; ?>

</div><!-- #content -->
</section><!-- #primary -->
<section id="primary" class="span8">

<?php tha_content_before(); ?>
<div id="content" role="main">
<?php tha_content_top();

if ( have_posts() ) :
the_post(); ?>

<header class="page-header">
<h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'the-bootstrap' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
</header><!-- .page-header -->

<?php
rewind_posts();
// If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta( 'description' ) ) : ?>
<div id="author-info" class="row">
<h2 class="span8"><?php printf( __( 'About %s', 'the-bootstrap' ), get_the_author() ); ?></h2>
<div id="author-avatar" class="span1">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'the-bootstrap_author_bio_avatar_size', 70 ) ); ?>
</div><!-- #author-avatar -->
<div id="author-description" class="span7">
<?php the_author_meta( 'description' ); ?>
</div><!-- #author-description -->
</div><!-- #author-info -->
<?php endif;

while ( have_posts() ) {
the_post();
get_template_part( '/partials/content', get_post_format() );
}
the_bootstrap_content_nav();
else :
get_template_part( '/partials/content', 'not-found' );
endif;

tha_content_bottom(); ?>
</div><!-- #content -->
<?php tha_content_after(); ?>
</section><!-- #primary -->

<?php
get_sidebar();
Expand Down
53 changes: 28 additions & 25 deletions category.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,36 @@
get_header(); ?>

<section id="primary" class="span8">
<div id="content" role="main">

<?php if ( have_posts() ) { ?>

<header class="page-header">
<h1 class="page-title"><?php
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>' );
} ?>
</header><!-- .page-header -->

<?php
while ( have_posts() ) {
the_post();
get_template_part( '/partials/content', get_post_format() );
}
the_bootstrap_content_nav();
}
else {
get_template_part( '/partials/content', 'not-found' );
}
?>

<?php tha_content_before(); ?>
<div id="content" role="main">
<?php tha_content_top();

if ( have_posts() ) : ?>

<header class="page-header">
<h1 class="page-title"><?php
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>' );
} ?>
</header><!-- .page-header -->

<?php
while ( have_posts() ) {
the_post();
get_template_part( '/partials/content', get_post_format() );
}
the_bootstrap_content_nav();
else :
get_template_part( '/partials/content', 'not-found' );
endif;

tha_content_bottom(); ?>
</div><!-- #content -->
<?php tha_content_after(); ?>
</section><!-- #primary -->

<?php
Expand Down
3 changes: 3 additions & 0 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
* @since 1.0.0 - 05.02.2012
*/

tha_comments_before();

comment_form();

tha_comments_after();


/* End of file comments.php */
/* Location: ./wp-content/themes/the-bootstrap/comments.php */
Loading

0 comments on commit 0c98561

Please sign in to comment.