function weaver_page_content() { // display page content with featured image thumbnail /* Check if it has a thumbnail, and if it's a small one */ global $post; global $weaverii_header; if (has_post_thumbnail() && !weaver_getopt_checked('ttw_hide_page_featured') && ($image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'post-thumbnail')) && $image[1] < $weaverii_header['width']) { the_post_thumbnail('thumbnail'); } weaver_the_content(); }
<?php /** * Template Name: Blank - (see Adv Opts admin) * * A custom page template without sidebar. * * The "Template Name:" bit above allows this to be selectable * from a dropdown menu on the edit page screen. */ get_header(); ?> <!-- Weaver Wrapper Only --> <?php if (have_posts()) { the_post(); weaver_the_content(); edit_post_link(__('Edit', WEAVER_TRANS), '<span class="edit-link">', '</span>'); } get_footer();
function weaver_the_excerpt_featured($always_excerpt = false, $force_featured = false) { if (weaver_getopt('ttw_show_featured_image_excerptedposts') || weaver_is_checked_post_opt('ttw-show-featured') || $force_featured) { ?> <span class='featured-image'><a href="<?php the_permalink(); ?> " title="<?php printf(esc_attr__('Permalink to %s', WEAVER_TRANS), the_title_attribute('echo=0')); ?> " rel="bookmark"><?php the_post_thumbnail('thumbnail'); ?> </a><span> <?php } if ((weaver_getopt('ttw_always_fullpost') || weaver_is_checked_post_opt('ttw-force-post-full')) && !$always_excerpt) { global $more; $more = false; // need this to make it act like regular blog page $m = weaver_continue_reading_link(false); weaver_the_content($m); echo "<div class=\"clear-cols\"></div>"; } else { the_excerpt(); } }