-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Page Template - no more "Updates from xxx" on pages
- Loading branch information
Jay Versluis
authored and
Jay Versluis
committed
Nov 22, 2013
1 parent
4c3fe63
commit 09ebafd
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
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,53 @@ | ||
<?php | ||
/** | ||
* P2 Categories | ||
* Page Template | ||
* since @1.5 | ||
* | ||
* Learn more: http://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package P2 | ||
*/ | ||
?> | ||
<?php get_header(); ?> | ||
|
||
<div class="sleeve_main"> | ||
<?php if ( p2_user_can_post() && !is_archive() ) : ?> | ||
<?php locate_template( array( 'post-form.php' ), true ); ?> | ||
<?php endif; ?> | ||
<div id="main"> | ||
<h2> | ||
|
||
<?php echo get_the_title(); ?> | ||
|
||
<span class="controls"> | ||
<a href="#" id="togglecomments"> <?php _e( 'Toggle Comment Threads', 'p2' ); ?></a> | <a href="#directions" id="directions-keyboard"><?php _e( 'Keyboard Shortcuts', 'p2' ); ?></a> | ||
</span> | ||
</h2> | ||
|
||
<ul id="postlist"> | ||
<?php if ( have_posts() ) : ?> | ||
|
||
<?php while ( have_posts() ) : the_post(); ?> | ||
<?php p2_load_entry(); ?> | ||
<?php endwhile; ?> | ||
|
||
<?php else : ?> | ||
|
||
<li class="no-posts"> | ||
<h3><?php _e( 'No posts yet!', 'p2' ); ?></h3> | ||
</li> | ||
|
||
<?php endif; ?> | ||
</ul> | ||
|
||
<div class="navigation"> | ||
<p class="nav-older"><?php next_posts_link( __( '← Older posts', 'p2' ) ); ?></p> | ||
<p class="nav-newer"><?php previous_posts_link( __( 'Newer posts →', 'p2' ) ); ?></p> | ||
</div> | ||
|
||
</div> <!-- main --> | ||
|
||
</div> <!-- sleeve --> | ||
|
||
<?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