<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[109] sites/trunk/wordpress.org/public_html/wp-content: P2 Post Categories plugin and theme mods for make-community.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://meta.trac.wordpress.org/changeset/109">109</a></dd>
<dt>Author</dt> <dd>Otto42</dd>
<dt>Date</dt> <dd>2013-10-23 16:31:06 +0000 (Wed, 23 Oct 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>P2 Post Categories plugin and theme mods for make-community. See <a href="http://meta.trac.wordpress.org/ticket/187">#187</a>. props iandunn</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2functionsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2stylecss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>sites/trunk/wordpress.org/public_html/wp-content/plugins/p2-new-post-categories/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsp2newpostcategoriesp2newpostcategoriesphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/p2-new-post-categories/p2-new-post-categories.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2categoryphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/category.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2entryphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/entry.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2tagphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/tag.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsp2newpostcategoriesp2newpostcategoriesphp"></a>
<div class="addfile"><h4>Added: sites/trunk/wordpress.org/public_html/wp-content/plugins/p2-new-post-categories/p2-new-post-categories.php (0 => 109)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/p2-new-post-categories/p2-new-post-categories.php                               (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/p2-new-post-categories/p2-new-post-categories.php  2013-10-23 16:31:06 UTC (rev 109)
</span><span class="lines">@@ -0,0 +1,143 @@
</span><ins>+<?php
+/*
+Plugin Name: P2 New Post Categories
+Description: Adds a category dropdown to P2s new post form.
+Version:     0.1
+License:     GPLv2 or Later
+*/
+
+/*
+ * Note: This has been forked from the original version to conform to WordPress.org conventions.
+ */
+
+
+class P2NewPostCategories {
+       protected $new_category;
+       const VERSION = '0.1';
+       const REGEX_CATEGORY_IN_TAG_LIST = '/\[category=(.*)\]/i';
+
+       /*
+        * Register hook callbacks
+        */
+       public function __construct() {
+               add_action( 'wp_head',        array( $this, 'print_css' ) );
+               add_action( 'wp_footer',      array( $this, 'print_javascript' ) );
+
+               add_action( 'p2_post_form',   array( $this, 'add_new_post_category_dropdown' ) );
+               add_action( 'p2_ajax',        array( $this, 'parse_new_post_category' ) );
+               add_action( 'wp_insert_post', array( $this, 'assign_new_post_to_category' ) );
+       }
+
+       /*
+        * Print our CSS
+        */
+       public function print_css() {
+               ?>
+
+               <!-- Begin P2 New Post Categories -->
+               <style type="text/css">
+                       #new_post {
+                               position: relative;
+                               padding-bottom: 2.25em;
+                       }
+
+                       #p2-new-post-category {
+                               position: absolute;
+                               left: 0;
+                               bottom: 0;
+                       }
+               </style>
+               <!-- End P2 New Post Categories -->
+
+               <?php
+       }
+
+       /*
+        * Print our JavaScript
+        */
+       public function print_javascript() {
+               ?>
+
+               <!-- Begin P2 New Post Categories -->
+               <script type="text/javascript">
+                       ( function( $ ) {
+
+                               var P2NewPostCategories = {
+
+                                       /*
+                                        * Initialization
+                                        */
+                                       construct : function() {
+                                               $( '#p2-new-post-category' ).change( this.appendCategoryToTagList );
+                                       },
+
+                                       /*
+                                        * Adds the name of the selected category to the #tags input field
+                                        * See the comments in parse_new_post_category() for details.
+                                        */
+                                       appendCategoryToTagList : function( event ) {
+                                               var optionalComma = '',
+                                                       tags          = $( '#tags' ).val(),
+                                                       category      = $( this ).children( 'option:selected' ).text();
+
+                                               tags = tags.replace( /Tag it,?/, '' ).replace( /,?\[category=(.*)\]/, '' );
+                                               if ( tags.length > 0 && ',' != tags.slice( -1 ) ) {
+                                                       optionalComma = ',';
+                                               }
+
+                                               if ( 'Uncategorized' != category ) {
+                                                       tags += optionalComma + '[category=' + category + ']';
+                                               }
+
+                                               if ( ',' == tags.substring( 0, 1 ) ) {
+                                                       tags = tags.substring( 1, tags.length );
+                                               }
+
+                                               $( '#tags' ).val( tags );
+                                       }
+                               }
+
+                               P2NewPostCategories.construct();
+
+                       } )( jQuery );
+               </script>
+               <!-- End P2 New Post Categories -->
+
+               <?php
+       }
+
+       public function add_new_post_category_dropdown() {
+               $params = apply_filters( 'p2npc_category_dropdown_params', array(
+                       'orderby'    => 'name',
+                       'id'         => 'p2-new-post-category',
+                       'hide_empty' => false,
+               ) );
+
+               wp_dropdown_categories( $params );
+       }
+
+       /*
+        * Since we can't hook into p2.posts.submit() and add a category parameter to the $.ajax() call,
+        * we append the category to the tags list and then parse it out before P2 processes it.
+        */
+       public function parse_new_post_category( $action ) {
+               if ( 'new_post' == $action ) {
+                       if ( preg_match( self::REGEX_CATEGORY_IN_TAG_LIST, $_POST['tags'], $matches ) ) {
+                               $this->new_category = get_term_by( 'name', $matches[1], 'category' );
+                               $_POST['tags'] = preg_replace( self::REGEX_CATEGORY_IN_TAG_LIST, '', $_POST['tags'] );
+                       }
+               }
+       }
+
+       /*
+        * When the new post is being saved, we assign the category that we parsed out in parse_new_post_category()
+        */
+       public function assign_new_post_to_category( $post_id ) {
+               if ( isset( $this->new_category->term_id ) && $this->new_category->term_id ) {
+                       wp_set_object_terms( $post_id, $this->new_category->slug, 'category' );
+               }
+       }
+
+} // end P2NewPostCategories
+
+$GLOBALS['P2NewPostCategories'] = new P2NewPostCategories();
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2categoryphp"></a>
<div class="addfile"><h4>Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/category.php (0 => 109)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/category.php                                (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/category.php   2013-10-23 16:31:06 UTC (rev 109)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+<?php
+/**
+ * Category Archive Template.
+ */
+?>
+<?php get_header(); ?>
+<?php $tag_obj = $wp_query->get_queried_object(); ?>
+
+<div class="sleeve_main">
+
+       <?php if ( 30 == get_current_blog_id() && p2_user_can_post() ) : // 30 is /community ?>
+               <?php locate_template( array( 'post-form.php' ), true ); ?>
+       <?php endif; ?>
+
+       <div id="main">
+               <h2><?php printf( __( 'Category: %s', 'p2' ), single_cat_title( '', false) ); ?>
+                       <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>
+
+               <?php if ( 30 == get_current_blog_id() ) : // 30 is /community ?>
+                       <div id="category-description"><?php echo category_description(); ?></div>
+               <?php endif; ?>
+
+               <?php if ( have_posts() ) : ?>
+
+                       <ul id="postlist">
+                       <?php while ( have_posts() ) : the_post(); ?>
+
+                               <?php p2_load_entry(); ?>
+
+                       <?php endwhile; ?>
+                       </ul>
+
+               <?php else : ?>
+
+                       <div class="no-posts">
+                           <h3><?php _e( 'No posts found!', 'p2' ); ?></h3>
+                       </div>
+
+               <?php endif ?>
+
+               <div class="navigation">
+                       <p class="nav-older"><?php next_posts_link( __( '&larr; Older posts', 'p2' ) ); ?></p>
+                       <p class="nav-newer"><?php previous_posts_link( __( 'Newer posts &rarr;', 'p2' ) ); ?></p>
+               </div>
+
+       </div> <!-- main -->
+
+</div> <!-- sleeve -->
+
+<?php get_footer(); ?>
</ins><span class="cx">\ No newline at end of file
</span><span class="cx">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/category.php
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<ins>+native
</ins><span class="cx">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2entryphp"></a>
<div class="addfile"><h4>Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/entry.php (0 => 109)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/entry.php                           (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/entry.php      2013-10-23 16:31:06 UTC (rev 109)
</span><span class="lines">@@ -0,0 +1,145 @@
</span><ins>+<?php
+/**
+ * Displays the content and meta information for a post object.
+ *
+ * @package P2
+ */
+?>
+<li id="prologue-<?php the_ID(); ?>" <?php post_class(); ?>>
+       <?php
+
+       /*
+        * Post meta
+        */
+
+       if ( ! is_page() ):
+               $author_posts_url = get_author_posts_url( get_the_author_meta( 'ID' ) );
+               $posts_by_title   = sprintf(
+                       __( 'Posts by %1$s ( @%2$s )', 'p2' ),
+                       get_the_author_meta( 'display_name' ),
+                       get_the_author_meta( 'user_nicename' )
+               ); ?>
+
+               <a href="<?php echo esc_attr( $author_posts_url ); ?>" title="<?php echo esc_attr( $posts_by_title ); ?>" class="post-avatar">
+                       <?php echo get_avatar( get_the_author_meta('user_email'), 48 ); ?>
+               </a>
+       <?php endif; ?>
+       <h4>
+               <?php if ( ! is_page() ): ?>
+                       <a href="<?php echo esc_attr( $author_posts_url ); ?>" title="<?php echo esc_attr( $posts_by_title ); ?>"><?php the_author(); ?></a>
+               <?php endif; ?>
+               <span class="meta">
+                       <?php
+                       if ( ! is_page() ) {
+                               echo p2_date_time_with_microformat();
+                       } ?>
+                       <span class="actions">
+                               <a href="<?php the_permalink(); ?>" class="thepermalink<?php if ( is_singular() ) { ?> printer-only<?php } ?>" title="<?php esc_attr_e( 'Permalink', 'p2' ); ?>"><?php _e( 'Permalink', 'p2' ); ?></a>
+                               <?php
+                               if ( ! is_singular() )
+                                       $before_reply_link = ' | ';
+
+                               if ( comments_open() && ! post_password_required() ) {
+                                               echo post_reply_link( array(
+                                                       'before'        => isset( $before_reply_link ) ? $before_reply_link : '',
+                                                       'after'         => '',
+                                                       'reply_text'    => __( 'Reply', 'p2' ),
+                                                       'add_below'     => 'comments'
+                                               ), get_the_ID() );
+                               }
+
+                               if ( current_user_can( 'edit_post', get_the_ID() ) ) : ?> | <a href="<?php echo ( get_edit_post_link( get_the_ID() ) ); ?>" class="edit-post-link" rel="<?php the_ID(); ?>" title="<?php esc_attr_e( 'Edit', 'p2' ); ?>"><?php _e( 'Edit', 'p2' ); ?></a>
+                               <?php endif; ?>
+
+                               <?php do_action( 'p2_action_links' ); ?>
+                       </span>
+
+                       <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : ?>
+                               <span class="tags">
+                                       <?php tags_with_count( '', __( '<br />Tags:' , 'p2' ) .' ', ', ', ' &nbsp;' ); ?>&nbsp;
+                               </span>
+                       <?php endif; ?>
+
+                       <?php if ( 30 == get_current_blog_id() && is_object_in_taxonomy( get_post_type(), 'category' ) ) : // 30 is /community ?>
+                               <span class="categories">
+                                       <?php echo wporg_p2_get_cats_with_count( $post, '', __( '<br />Categories: ' , 'p2' ), ', ', '' ); ?>
+                               </span>
+                       <?php endif; ?>
+               </span>
+       </h4>
+
+       <?php
+       /*
+        * Content
+        */
+       ?>
+
+       <div id="content-<?php the_ID(); ?>" class="postcontent">
+       <?php
+       /*
+        * Check the post format and display content accordingly.
+        * The value should be a valid post format or one of the back compat categories.
+        */
+       switch ( p2_get_post_format( $post->ID ) ) {
+               case 'status':
+               case 'link':
+                       the_content( __( '(More ...)' , 'p2' ) );
+                       break;
+               case 'quote':
+                       p2_quote_content();
+                       break;
+               case 'post':
+               case 'standard':
+               default:
+                       p2_title();
+                       the_content( __( '(More ...)' , 'p2' ) );
+                       break;
+       } ?>
+       </div>
+
+       <?php
+       /*
+        * Comments
+        */
+
+       $comment_field = '<div class="form"><textarea id="comment" class="expand50-100" name="comment" cols="45" rows="3"></textarea></div> <label class="post-error" for="comment" id="commenttext_error"></label>';
+
+       $comment_notes_before = '<p class="comment-notes">' . ( get_option( 'require_name_email' ) ? sprintf( ' ' . __( 'Required fields are marked %s', 'p2' ), '<span class="required">*</span>' ) : '' ) . '</p>';
+
+       $p2_comment_args = array(
+               'title_reply'           => __( 'Reply', 'p2' ),
+               'comment_field'         => $comment_field,
+               'comment_notes_before'  => $comment_notes_before,
+               'comment_notes_after'   => '<span class="progress spinner-comment-new"></span>',
+               'label_submit'          => __( 'Reply', 'p2' ),
+               'id_submit'             => 'comment-submit',
+       );
+
+       ?>
+
+       <?php if ( get_comments_number() > 0 && ! post_password_required() ) : ?>
+               <div class="discussion" style="display: none">
+                       <p>
+                               <?php p2_discussion_links(); ?>
+                               <a href="#" class="show-comments"><?php _e( 'Toggle Comments', 'p2' ); ?></a>
+                       </p>
+               </div>
+       <?php endif;
+
+       wp_link_pages( array( 'before' => '<p class="page-nav">' . __( 'Pages:', 'p2' ) ) ); ?>
+
+       <div class="bottom-of-entry">&nbsp;</div>
+
+       <?php if ( p2_is_ajax_request() ) : ?>
+               <ul id="comments-<?php the_ID(); ?>" class="commentlist inlinecomments"></ul>
+       <?php else :
+               comments_template();
+               $pc = 0;
+               if ( p2_show_comment_form() && $pc == 0 && ! post_password_required() ) :
+                       $pc++; ?>
+                       <div class="respond-wrap" <?php echo ( ! is_singular() ) ? 'style="display: none; "' : ''; ?>>
+                               <?php comment_form( $p2_comment_args ); ?>
+                       </div><?php
+               endif;
+       endif; ?>
+</li>
</ins><span class="cx">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/entry.php
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<ins>+native
</ins><span class="cx">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2functionsphp"></a>
<div class="modfile"><h4>Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php (108 => 109)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php       2013-10-22 21:48:08 UTC (rev 108)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php  2013-10-23 16:31:06 UTC (rev 109)
</span><span class="lines">@@ -23,3 +23,34 @@
</span><span class="cx">  return $url;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+// Return a list of link categories applied to the current post, unless it is uncategorized
+function wporg_p2_get_cats_with_count( $post, $format = 'list', $before = '', $sep = '', $after = '' ) {
+       $cat_links = array();
+       $post_cats = get_the_terms( $post->ID, 'category' );
+
+       if ( ! $post_cats )
+               return '';
+
+       foreach ( $post_cats as $cat ) {
+               if ( 'uncategorized' == $cat->slug ) {
+                       continue;
+               }
+
+               if ( $cat->count > 1 && ! is_category( $cat->slug ) ) {
+                       $cat_link = '<a href="' . get_term_link( $cat, 'category' ) . '" rel="category">' . $cat->name . ' ( ' . number_format_i18n( $cat->count ) . ' )</a>';
+               } else {
+                       $cat_link = $cat->name;
+               }
+
+               if ( $format == 'list' )
+                       $cat_link = '<li>' . $cat_link . '</li>';
+
+               $cat_links[] = $cat_link;
+       }
+
+       if ( empty( $cat_links ) ) {
+               return '';
+       }
+
+       return apply_filters( 'cats_with_count', $before . join( $sep, $cat_links ) . $after, $post );
+}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2stylecss"></a>
<div class="modfile"><h4>Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css (108 => 109)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css   2013-10-22 21:48:08 UTC (rev 108)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css      2013-10-23 16:31:06 UTC (rev 109)
</span><span class="lines">@@ -171,6 +171,12 @@
</span><span class="cx">  vertical-align: top;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/* Add some space below tag/category descriptions */
+#tag-description,
+#category-description {
+       margin-bottom: 2em;
+}
+
</ins><span class="cx"> /*- bbPress Specific Styles ----------*/
</span><span class="cx"> body.bbPress #main ul#postlist li {
</span><span class="cx">  border-top-style: none;
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgp2tagphp"></a>
<div class="addfile"><h4>Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/tag.php (0 => 109)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/tag.php                             (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/tag.php        2013-10-23 16:31:06 UTC (rev 109)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+<?php
+/**
+ * Tag Archive Template.
+ *
+ * @package P2
+ */
+?>
+<?php get_header(); ?>
+<?php $tag_obj = $wp_query->get_queried_object(); ?>
+
+<div class="sleeve_main">
+
+       <div id="main">
+               <h2><?php printf( __( 'Tagged: %s', 'p2' ), single_tag_title( '', false) ); ?>
+                       <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>
+
+               <?php if ( 30 == get_current_blog_id() ) : // 30 is /community ?>
+                       <div id="tag-description"><?php echo tag_description(); ?></div>
+               <?php endif; ?>
+
+               <?php if ( have_posts() ) : ?>
+
+                       <ul id="postlist">
+                       <?php while ( have_posts() ) : the_post(); ?>
+
+                               <?php p2_load_entry(); ?>
+
+                       <?php endwhile; ?>
+                       </ul>
+
+               <?php else : ?>
+
+                       <div class="no-posts">
+                           <h3><?php _e( 'No posts found!', 'p2' ); ?></h3>
+                       </div>
+
+               <?php endif ?>
+
+               <div class="navigation">
+                       <p class="nav-older"><?php next_posts_link( __( '&larr; Older posts', 'p2' ) ); ?></p>
+                       <p class="nav-newer"><?php previous_posts_link( __( 'Newer posts &rarr;', 'p2' ) ); ?></p>
+               </div>
+
+       </div> <!-- main -->
+
+</div> <!-- sleeve -->
+
+<?php get_footer(); ?>
</ins><span class="cx">\ No newline at end of file
</span><span class="cx">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/tag.php
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<ins>+native
</ins><span class="cx">\ No newline at end of property
</span></div>

</body>
</html>