Advertisement
pixedelic

geode.content.1.6.9.php

Nov 11th, 2015
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.77 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage Geode
  5.  * @since Geode 1.6.9
  6.  */
  7.  
  8. ?>
  9. <?php global $shortcodelic_blog, $shortcodelic_blog_masonry, $more; $old_more = $more; $gridder = geode_check_gridder(get_the_id()); ?>
  10.  
  11. <?php
  12.     if ( has_post_thumbnail() && is_search() ) {
  13.         $has_thumb = ' has_thumb';
  14.     } else {
  15.         $has_thumb = '';
  16.     }
  17. ?>
  18. <article id="post-<?php the_ID(); ?>" <?php post_class($classes[]=$has_thumb); ?>>
  19.  
  20.         <div class="row">
  21.             <div class="row-inside">
  22.         <?php
  23.             $thumb_id = get_post_thumbnail_id(get_the_id());
  24.             $postTh = wp_get_attachment_image_src( $thumb_id, 'full' );
  25.  
  26.             $thumbnail = get_the_post_thumbnail(get_the_id(),'full');
  27.  
  28.             if ( has_post_thumbnail() && ( !is_singular('team') ) ) {
  29.                 echo apply_filters( 'geode_print_thumb' , $thumbnail);
  30.             }
  31.             if ( !is_single() && get_post_format() != 'quote' ) get_template_part( 'title', 'post' );
  32.         ?>
  33.  
  34.         <?php if ( is_search() || geode_is_related() || geode_blog_layout_class('')!='' || $shortcodelic_blog_masonry ) : ?>
  35.         <div class="entry-summary">
  36.             <?php if ( !isset($gridder) || $gridder!=true ) { ?>
  37.                 <div class="row">
  38.                     <div class="row-inside">
  39.             <?php } ?>
  40.                         <?php
  41.                             //$posted_on = (geode_blog_layout_class('')=='' && $shortcodelic_blog!=true) ? 'date' : 'category';
  42.                             if ( is_search() ) {
  43.                                 $post_type = get_post_type_object( get_post_type() );
  44.                                 echo '<small class="post-type">'.$post_type->labels->singular_name.'</small>';
  45.                             } else {
  46.                                 if ( !geode_is_related() && get_post_format() != 'quote' ) { ?>
  47.  
  48.                                     <div class="entry-meta">
  49.  
  50.                                         <?php
  51.                                             geode_posted_on('date');
  52.  
  53.                                             if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { ?>
  54.                                                 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'geode' ), __( '1 Comment', 'geode' ), __( '% Comments', 'geode' ) ); ?></span>
  55.                                             <?php }
  56.                                             geode_posted_on('category');
  57.                                         ?>
  58.  
  59.                                     </div><!-- .entry-meta -->
  60.  
  61.                                 <?php }
  62.                             }
  63.  
  64.                             if ( get_post_format() != 'aside' && get_post_format() != 'status' && get_post_format() != 'quote' ) {
  65.                                 the_excerpt();
  66.                             } else {
  67.                                 the_content();
  68.                             }
  69.                             if ( (geode_blog_layout_class('')!='' || $shortcodelic_blog_masonry) && get_post_format() != 'quote' ) echo geode_remove_more_link();
  70.                         ?>
  71.             <?php if ( !isset($gridder) || $gridder!=true ) { ?>
  72.                     </div><!-- .row-inside -->
  73.                 </div><!-- .row -->
  74.             <?php } ?>
  75.         </div><!-- .entry-summary -->
  76.         <?php else : ?>
  77.         <div class="entry-content">
  78.             <?php if ( !isset($gridder) || $gridder!=true ) { ?>
  79.                 <div class="row">
  80.                     <div class="row-inside">
  81.             <?php } ?>
  82.                         <div class="entry-text">
  83.                         <?php if ( !geode_is_related() ) {
  84.                             if ( is_single() ) geode_posted_on('date');
  85.  
  86.                             the_content( __( 'View more', 'geode' ) );
  87.  
  88.                         } ?>
  89.                         </div><!-- .entry-text -->
  90.  
  91.                         <?php if ( is_single() && !geode_is_related() && get_post_type() == 'post' && !($shortcodelic_blog == true || is_array($shortcodelic_blog)) ) { ?>
  92.  
  93.                             <footer class="entry-meta"><span class="cat-links"><strong><?php _e('Categories','geode'); ?>: </strong><?php the_category( ', '); ?></span></footer>
  94.                             <?php the_tags( '<footer class="entry-meta"><span class="tag-links"><strong>'.__('Tags','geode').': </strong>', ', ', '</span></footer>' ); ?>
  95.  
  96.                         <?php } ?>
  97.             <?php if ( !isset($gridder) || $gridder!=true ) { ?>
  98.                     </div><!-- .row-inside -->
  99.                 </div><!-- .row -->
  100.             <?php } ?>
  101.         </div><!-- .entry-content -->
  102.         <?php endif; ?>
  103.  
  104.         <?php if ( is_single() ) edit_post_link( __( 'Edit', 'geode' ), '<span class="edit-link">', '</span>' ); ?>
  105.  
  106.         </div><!-- .row-inside -->
  107.     </div><!-- .row -->
  108.  
  109. </article><!-- #post-## -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement