Skip to content

Commit

Permalink
Original
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonPadbury authored and SimonPadbury committed Sep 27, 2013
0 parents commit 2fbc76d
Show file tree
Hide file tree
Showing 37 changed files with 10,474 additions and 0 deletions.
31 changes: 31 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php get_template_part('parts/header'); ?>

<div class="container">

<div class="row visible-xs">
<div class="col-xs-12">
<button style="margin-bottom: 20px;" type="button" class="pull-right btn btn-default" data-toggle="offcanvas">Off-canvas sidebar <i class="glyphicon glyphicon-arrow-right"></i>
</button>
</div>
</div>
<div class="row row-offcanvas row-offcanvas-right">

<div class="col-xs-12 col-sm-8">
<div id="content" role="main">
<div class="alert alert-warning">
<h1><i class="glyphicon glyphicon-warning-sign"></i> Error 404</h1>
<p>The page you were looking for does not exist.</p>
</div>
</div><!-- #content -->
</div>

<div class="col-xs-6 col-sm-4 sidebar-offcanvas" id="sidebar" role="navigation">
<div class="panel panel-default">
<?php get_template_part('parts/sidebar'); ?>
</div>
</div>

</div><!-- .row -->
</div><!-- .container -->

<?php get_template_part('parts/footer'); ?>
57 changes: 57 additions & 0 deletions category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php get_template_part('parts/header'); ?>

<div class="container">

<div class="row visible-xs">
<div class="col-xs-12">
<button style="margin-bottom: 20px;" type="button" class="pull-right btn btn-default" data-toggle="offcanvas">Off-canvas sidebar <i class="glyphicon glyphicon-arrow-right"></i>
</button>
</div>
</div>
<div class="row row-offcanvas row-offcanvas-right">

<div class="col-xs-12 col-sm-8">
<div id="content" role="main">
<header class="archive-header">
<h3>Blog Category: <?php single_cat_title(''); ?></h3>
<hr/>
<?php if(have_posts()): while(have_posts()): the_post();?>
<article role="article" id="post_<?php the_ID()?>">
<header>
<h2><a href="<?php the_permalink(); ?>"><?php the_title()?></a></h2>
<h4>
<em>
<span class="text-muted" class="author">By <?php the_author() ?>,</span>
<time class="text-muted" datetime="<?php the_time('d-m-Y')?>"><?php the_time('jS F Y') ?></time>
</em>
</h4>
</header>
<?php the_post_thumbnail(); ?>
<?php the_content( __( '&hellip; Continue reading <i class="glyphicon glyphicon-arrow-right"></i>', 'bst' ) ); ?>
<p class="text-muted" style="margin-bottom: 20px;">
<i class="glyphicon glyphicon-folder-open"></i>&nbsp; Filed under: <?php _e(''); ?> <?php the_category(', ') ?><br/>
<i class="glyphicon glyphicon-comment"></i>&nbsp; Comments: <?php comments_popup_link('None', '1', '%'); ?>
</p>
<hr/>
</article>
<?php endwhile; ?>
<ul class="pagination">
<li class="older"><?php next_posts_link('&laquo; Older') ?></li>
<li class="newer"><?php previous_posts_link('Newer &raquo;') ?></li>
</ul>
<?php else: ?>
<?php wp_redirect(get_bloginfo('siteurl').'/404', 404); exit; ?>
<?php endif;?>
</div><!-- #content -->
</div>

<div class="col-xs-6 col-sm-4 sidebar-offcanvas" id="sidebar" role="navigation">
<div class="panel panel-default">
<?php get_template_part('parts/sidebar'); ?>
</div>
</div>

</div><!-- .row -->
</div><!-- .container -->

<?php get_template_part('parts/footer'); ?>
Loading

0 comments on commit 2fbc76d

Please sign in to comment.