Exemplo n.º 1
0
	<?php 
/**
 * CONTENT
 */
?>

	<div id="content-<?php 
the_ID();
?>
" class="postcontent">
		<?php 
if ('status' == p2_get_the_category() || 'link' == p2_get_the_category()) {
    the_content(__('(More ...)', 'p2'));
} elseif ('quote' == p2_get_the_category()) {
    echo "<blockquote>";
    p2_quote_content();
    echo "</blockquote>";
} elseif ('post' == p2_get_the_category()) {
    p2_title();
    the_content(__('(More ...)', 'p2'));
} else {
    p2_title();
    the_content(__('(More ...)', 'p2'));
}
?>
	</div>

	<?php 
/**
 * COMMENTS
 */
Exemplo n.º 2
0
								
								<div class="bread-crumbs">
									<?php if ( !is_page() ) : ?>
										<p class="date"><?php the_time('F j, Y') ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink($post->post_author) ) ?></em></p>
													
									<?php endif; ?>
									
								</div>
								
								<div class="entry postcontent<?php if ( current_user_can( 'edit_post', get_the_id() ) ) : ?> editarea<?php endif ?>" id="content-<?php the_ID(); ?>">
								<?php if ( 'post' == p2_get_the_category() || 'link' == p2_get_the_category() ) : ?>
								<?php the_content( __( '(More ...)' , 'p2' ) ); ?>
								<?php elseif ( 'quote' == p2_get_the_category() ) : ?>

									<blockquote>
										<?php p2_quote_content(); ?>
									</blockquote>

								<?php elseif ( 'post' == p2_get_the_category() ) : ?>

								
								<?php the_content( __( '(More ...)' , 'p2' ) ); ?>

								<?php else : ?>

								
								<?php the_content( __( '(More ...)' , 'p2' ) ); ?>

								<?php endif; ?>
								<?php if ( !is_page() ) : ?>
									<span class="tags">