weaverii_post_title('<div class="entry-hdr"><h2 class="entry-title">', "</h2></div>\n"); } if ('page' != get_post_type()) { ?> <div class="entry-meta"> <?php weaverii_post_top_info(); ?> </div><!-- .entry-meta --> <?php } weaverii_comments_popup_link(); ?> </header><!-- .entry-header --> <?php if (weaverii_get_per_page_value('wvr_pwp_type') == 'title_featured' && !weaverii_sc_getopt('showposts') || weaverii_sc_getopt('show') == 'title_featured') { // title has been displayed - add the featured image after for these special cases echo '<div class="entry-content cf">'; weaverii_use_fi_in_content(); echo '</div>'; } if (weaverii_show_only_title()) { return; } if (weaverii_do_excerpt()) { ?> <div class="entry-summary"> <!-- EXCERPT --> <?php weaverii_the_excerpt_featured(); ?> </div><!-- .entry-summary -->
function weaverii_do_excerpt() { // return true if this kind of post should be excerpted if (weaverii_sc_getopt('show') == 'excerpt') { return true; } if (weaverii_sc_getopt('show') == 'full') { // fixed 6/25/13 return false; } if (weaverii_is_checked_post_opt('ttw-force-post-excerpt')) { return true; } if (weaverii_is_checked_post_opt('ttw-force-post-full')) { return false; } $n1 = weaverii_get_per_page_value('wvr_fullposts'); if (!$n1) { $n1 = weaverii_getopt('wii_fullpost_first'); } if ($n1) { global $page, $paged; if (!($paged >= 2 || $page >= 2) && weaverii_post_count() <= $n1) { return false; } } $pwp = weaverii_get_per_page_value('wvr_pwp_type'); if ($pwp == 'full') { // need to check before archive/search return false; } // override global setting if ($pwp == 'excerpt') { return true; } // override global setting if (is_search()) { return !weaverii_getopt_checked('wii_fullpost_search'); } if (is_archive()) { return !weaverii_getopt_checked('wii_fullpost_archive'); } return weaverii_getopt_checked('wii_excerpt_blog') || weaverii_excerpt_mobile(); }
function atw_trans_get($opt) { if (function_exists('weaverii_sc_getopt')) { weaverii_sc_getopt($opt); } return isset($GLOBALS['aspen_temp_opts'][$opt]) ? $GLOBALS['aspen_temp_opts'][$opt] : ''; }