This repository has been archived by the owner. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
andrewmbacon
committed
Jul 29, 2014
1 parent
24f5768
commit 92ecf20
Showing
10 changed files
with
330 additions
and
110 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
/* | ||
Template Name: Blog | ||
*/ | ||
get_header(); ?> | ||
<?php include('inc/sidebar-check.php')?> | ||
|
||
<div class="row" id="primary"> | ||
<div class="col-sm-<?php echo (is_active_sidebar( $sidebar )?9:12); ?>"> | ||
|
||
<?php | ||
/* | ||
function getCategory(){ | ||
$thePost = get_the_ID(); | ||
$theCategory = get_post_meta($thePost, 'category', true); | ||
return $theCategory; | ||
} | ||
<?php query_posts('post_type=post&post_status=publish&cat=news-2&paged='. get_query_var('paged')); ?> | ||
*/ | ||
?> | ||
<?php query_posts('post_type=post&post_status=publish&paged='. get_query_var('paged')); ?> | ||
<?php if( have_posts() ): ?> | ||
<?php while( have_posts() ): the_post(); ?> | ||
<div class="post content clearfix"> | ||
<div class="post-header"> | ||
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> | ||
<?php the_title(); ?> | ||
</a></h2> | ||
</div> | ||
<div class="post-content clearfix"> | ||
<?php the_content(); ?> | ||
</div> | ||
<div class="post-meta"> | ||
<?php the_date( 'F j, Y', '<span class="post-date"><i class="icon-calendar"></i>', '</span>' ); ?> | ||
<span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="icon-user"></i> | ||
<?php the_author_meta( 'display_name' ); ?> | ||
</a></span> | ||
<?php | ||
// PHP Request: If the_tags is empty, do not generate the HTML. I don't want the labels and markup making empty space when there are no tags. | ||
the_tags( '<span class="post-tags"><i class="icon-tags"></i>', ', ', '</span>' ); | ||
?> | ||
</div> | ||
</div> | ||
<?php endwhile; ?> | ||
<div class="navigation"> <span class="older"> | ||
<?php next_posts_link(__('« Older','example')) ?> | ||
</span> <span class="newer"> | ||
<?php previous_posts_link(__('Newer »','example')) ?> | ||
</span> </div> | ||
<!-- /.navigation --> | ||
|
||
<?php else: ?> | ||
<div id="post-404" class="noposts"> | ||
<p> | ||
<?php _e('None found.','example'); ?> | ||
</p> | ||
</div> | ||
<!-- /#post-404 --> | ||
|
||
<?php endif; wp_reset_query(); ?> | ||
</div> | ||
<!-- /col9/12 --> | ||
<?php include('inc/sidebar-if-active.php')?> | ||
</div> | ||
<!-- /row --> | ||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.