/** * 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: thematic_post_thumbs <br> * Filter: thematic_post_thumb_size <br> * Filter: thematic_post_thumb_attr <br> * Filter: thematic_post */ function thematic_content() { global $thematic_content_length; if (strtolower($thematic_content_length) == 'full') { $post = get_the_content(thematic_more_text()); $post = apply_filters('the_content', $post); $post = str_replace(']]>', ']]>', $post); } elseif (strtolower($thematic_content_length) == 'excerpt') { $post = ''; $post .= get_the_excerpt(); $post = apply_filters('the_excerpt', $post); if (apply_filters('thematic_post_thumbs', TRUE)) { $post_title = get_the_title(); $size = apply_filters('thematic_post_thumb_size', array(100, 100)); $attr = apply_filters('thematic_post_thumb_attr', array('title' => sprintf(esc_attr__('Permalink to %s', 'thematic'), the_title_attribute('echo=0')))); if (has_post_thumbnail()) { $post = sprintf('<a class="entry-thumb" href="%s" title="%s">%s</a>', get_permalink(), sprintf(esc_attr__('Permalink to %s', 'thematic'), the_title_attribute('echo=0')), get_the_post_thumbnail(get_the_ID(), $size, $attr)) . $post; } } } elseif (strtolower($thematic_content_length) == 'none') { } else { $post = get_the_content(thematic_more_text()); $post = apply_filters('the_content', $post); $post = str_replace(']]>', ']]>', $post); } echo apply_filters('thematic_post', $post); }
/** * 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: thematic_post_thumbs <br> * Filter: thematic_post_thumb_size <br> * Filter: thematic_post_thumb_attr <br> * Filter: thematic_post */ function thematic_content() { global $thematic_content_length; if (strtolower($thematic_content_length) == 'full') { $post = get_the_content(thematic_more_text()); $post = apply_filters('the_content', $post); $post = str_replace(']]>', ']]>', $post); } elseif (strtolower($thematic_content_length) == 'excerpt') { $post = ''; $post .= get_the_excerpt(); $post = apply_filters('the_excerpt', $post); if (apply_filters('thematic_post_thumbs', TRUE)) { $post_title = get_the_title(); $size = apply_filters('thematic_post_thumb_size', array(100, 100)); $attr = apply_filters('thematic_post_thumb_attr', array('title' => 'Permalink to ' . $post_title)); if (has_post_thumbnail()) { $post = '<a class="entry-thumb" href="' . get_permalink() . '" title="Permalink to ' . get_the_title() . '" >' . get_the_post_thumbnail(get_the_ID(), $size, $attr) . '</a>' . $post; } } } elseif (strtolower($thematic_content_length) == 'none') { } else { $post = get_the_content(thematic_more_text()); $post = apply_filters('the_content', $post); $post = str_replace(']]>', ']]>', $post); } echo apply_filters('thematic_post', $post); }
thematic_post_class(); echo '">'; } // creating the post header thematic_postheader(); ?> <div class="entry-content"> <div class="entry-attachment"><?php the_attachment_link($post->ID, true); ?> </div> <?php the_content(thematic_more_text()); wp_link_pages('before=<div class="page-link">' . __('Pages:', 'thematic') . '&after=</div>'); ?> </div><!-- .entry-content --> <?php // creating the post footer thematic_postfooter(); ?> </div><!-- #post --> <?php // action hook for placing contentbelow #post thematic_belowpost();
/** * Generates the Thematic "Read more" text for excerpts * * Removed for namespacing * * @deprecated 1.0 */ function more_text() { _deprecated_function(__FUNCTION__, '1.0', 'thematic_more_text()'); thematic_more_text(); }