Esempio n. 1
0
				<?php 
    // creating the post header
    cleanyetibasic_postheader();
    ?>
						</div>

					</div>
					<div class="entry-content">

						<div class="entry-attachment text-center panel radius"><?php 
    the_attachment_link($post->ID, true);
    ?>
</div>

	                        <?php 
    the_content(cleanyetibasic_more_text());
    cleanyetibasic_numerical_link_pages(array('before' => sprintf('<div class="pagination-centered"><ul class="page-numbers">%s', __('<li class="unavailable">Pages:<li>', 'cleanyetibasic')), 'after' => '</ul></div>'));
    ?>

						<div class="row">
							<div class="large-12 columns">
								<ul id="image-nav-below" class="image-nav small-block-grid-2">
									<li><div class="image-previous left"><?php 
    previous_image_link();
    ?>
<p><?php 
    previous_image_link('thumbnail', '&laquo; Previous');
    ?>
</p></div></li>
									<li><div class="image-next right"><?php 
    next_image_link();
 /**
  * Create the post content
  *
  * Detects whether to use the full length or excerpt of a post and displays it. Post thumbnails are included on
  * excerpt posts.
  *
  * Override: childtheme_override_content <br>
  * Filter: cleanyetibasic_post_thumbs <br>
  * Filter: cleanyetibasic_post_thumb_size <br>
  * Filter: cleanyetibasic_post_thumb_attr <br>
  * Filter: cleanyetibasic_post
  */
 function cleanyetibasic_content()
 {
     global $cleanyetibasic_content_length;
     $posttype = get_post_type();
     if (strtolower($cleanyetibasic_content_length) == 'full') {
         $post = get_the_content(cleanyetibasic_more_text());
         $post = apply_filters('the_content', $post);
         // Display edit link
         if (current_user_can('edit_posts')) {
             $post .= cleanyetibasic_postfooter_posteditlink();
         }
     } elseif (strtolower($cleanyetibasic_content_length) == 'excerpt') {
         if (get_post_format() == 'gallery') {
             $post = '<div class="small-12 columns">';
             $post .= cleanyetibasic_attachment_gallery_data();
             $post .= '</div>';
         } elseif (get_post_format() == 'image' && !has_post_thumbnail()) {
             $post = cleanyetibasic_image_attachments();
         } elseif (get_post_format() == 'video') {
             $post = '<div class="row">';
             $post .= '<div class="large-6 columns">';
             $post .= cleanyetibasic_get_first_video();
             $post .= '</div>';
             $post .= '<div class="large-6 columns"><p>';
             $post .= get_the_excerpt();
             $post .= '</p></div>';
             $post .= '</div>';
             $post = apply_filters('the_excerpt', $post);
         } elseif (get_post_format() == 'quote') {
             $post = get_the_content(cleanyetibasic_more_text());
             $post = apply_filters('the_content', $post);
             $post = str_replace(']]>', ']]&gt;', $post);
         } else {
             if (apply_filters('cleanyetibasic_post_thumbs', TRUE)) {
                 $post_title = get_the_title();
                 $size = apply_filters('cleanyetibasic_post_thumb_size', array(400, 300));
                 $attr = apply_filters('cleanyetibasic_post_thumb_attr', array('title' => sprintf(esc_attr__('Permalink to %s', 'cleanyetibasic'), the_title_attribute('echo=0')), 'class' => 'th'));
                 if (has_post_thumbnail()) {
                     $post = '<div class="medium-8 columns"><p>';
                     $post .= get_the_excerpt();
                     $post .= '</p>';
                     $post .= '</div>';
                     $post = apply_filters('the_excerpt', $post);
                     $post = sprintf('<div class="medium-4 columns"><a class="entry-thumb" href="%s" title="%s">%s</a></div>', get_permalink(), sprintf(esc_attr__('Permalink to %s', 'cleanyetibasic'), the_title_attribute('echo=0')), get_the_post_thumbnail(get_the_ID(), $size, $attr)) . $post;
                 } else {
                     $post = '<div class="large-12 columns"><p>';
                     $post .= get_the_excerpt();
                     $post .= '</p>';
                     if ($posttype == 'page') {
                         $post .= '<a href="' . get_permalink() . '" class="tiny button secondary radius">' . __('View Page', 'cleanyetibasic') . '</a>';
                     }
                     $post .= '</div>';
                     $post = apply_filters('the_excerpt', $post);
                 }
             }
         }
     } elseif (strtolower($cleanyetibasic_content_length) == 'none') {
         $post = '';
     } else {
         $post = '<div class="small-12 columns">';
         $post .= get_the_content();
         $post .= '</div>';
         $post = apply_filters('the_content', $post);
         $post = str_replace(']]>', ']]&gt;', $post);
     }
     echo apply_filters('cleanyetibasic_post', $post);
 }