Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <article <?php sempress_post_id(); ?> <?php post_class(); ?><?php sempress_semantics("post"); ?>>
- <?php if ( is_search() ) : // Only display Excerpts for search pages ?>
- <div class="entry-summary p-summary entry-title p-name" itemprop="name description">
- <?php the_excerpt(); ?>
- </div><!-- .entry-summary -->
- <?php else : ?>
- <?php if(in_array("contextTarget",get_post_custom_keys(get_the_ID()))){
- $customfields = get_post_custom(get_the_ID());
- $verbs = array();
- echo '<div class="';
- if(array_key_exists("contextLike",$customfields) && $customfields['contextLike'][0] == true){
- echo "p-like p-like-of ";
- $verbs[] = "liked";
- }
- if(strlen(get_the_content()) < 1){
- if(array_key_exists("context",$customfields) && strlen(implode($customfields["context"],"")) > 0){
- $verbs[] = "reposted";
- echo "p-repost p-repost-of";
- }
- }else{
- $verbs[] = "commented";
- echo "p-in-reply-to";
- if(array_key_exists("context",$customfields) && strlen(implode($customfields["context"],"")) > 0){
- echo " h-cite";
- $verbs[] = "reposted";
- }
- }
- echo '">';
- $contextbox = "";
- if(array_key_exists("context",$customfields) && strlen(implode($customfields["context"],"")) > 0){
- $contextbox = '<blockquote class="p-content"><p>'.$contextbox . implode("</p><p>",$customfields["context"]).'</p></blockquote>';
- }
- if(array_key_exists("contextTitle",$customfields)){
- $contextbox = '<p>'.$contextbox.' '.implode($verbs," and ").' <a class="u-url" href="'.$customfields['contextTarget'][0].'">@'.$customfields['contextTitle'][0].'</a></p>';
- }
- echo $contextbox.'</div>'; }?>
- <div class="entry-content e-content p-summary" itemprop="name headline description articleBody">
- <?php sempress_the_post_thumbnail('<p>', '</p>'); ?>
- <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'sempress' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'sempress' ), 'after' => '</div>' ) ); ?>
- </div><!-- .entry-content -->
- <?php endif; ?>
- <?php get_template_part( 'entry', 'footer' ); ?>
- </article><!-- #post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement