} elseif ($weaver_loop == 'excerpt') { ?> <div class="entry-summary"> <?php weaver_the_excerpt_featured(); ?> <?php wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', WEAVER_TRANS), 'after' => '</div>')); ?> </div><!-- .entry-summary --> <?php } else { ?> <?php } if (!weaver_is_checked_page_opt('ttw_hide_pp_infobot')) { weaver_posted_in('blog'); } else { echo '<div style="clear:both;"></div>'; } ?> </div><!-- #post-## --> <?php comments_template('', true); ?> <?php } /* end gallery if-else */ if ($left) {
<?php /* Weaver: Top - Menu bar */ if (!weaver_getopt('ttw_hide_menu') && !weaver_is_checked_page_opt('ttw-hide-menus')) { if (weaver_getopt('ttw_move_menu')) { /* TTW: move menu */ ?> <div id="nav-top-menu"><div id="access" role="navigation"> <?php /* add html to menu left */ $add_html = weaver_getopt('ttw_menu_addhtml-left'); if (!empty($add_html)) { echo '<div class="menu-add-left">'; echo do_shortcode($add_html); echo '</div>'; } /* NAVIGATION MENUS: If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ if (weaver_getopt('ttw_use_superfish')) { wp_nav_menu(array('container_class' => 'menu', 'theme_location' => 'primary', 'menu_class' => 'sf-menu', 'fallback_cb' => 'weaver_page_menu')); } else { wp_nav_menu(array('container_class' => 'menu', 'theme_location' => 'primary')); } /* add html/search to menu */ $add_div = true; $add_enddiv = false; $add_html = weaver_getopt('ttw_menu_addhtml'); if (!empty($add_html)) { echo '<div class="menu-add">';
// put here... ?> </div><!-- #post-<?php the_ID(); ?> --> <?php } } $args = array('orderby' => 'date', 'order' => 'DESC', 'paged' => $paged); $args = weaver_setup_post_args($args); // setup custom fields for this page $wp_query = new WP_Query(); query_posts($args); $weaver_loop = 'title'; get_template_part('loop', 'twocol'); } ?> </div><!-- #content --> <?php weaver_put_wvr_widgetarea('bottom-widget-area', 'ttw-bot-widget', 'ttw_hide_widg_posts'); ?> <?php weaver_put_wvr_widgetarea('sitewide-bottom-widget-area', 'ttw-site-bot-widget'); ?> </div><!-- #container --> <?php if (!weaver_is_checked_page_opt('ttw_hide_sidebars')) { get_sidebar(); } get_footer();
/** * The template used to display the footer * * Contains the closing of the id=main div and all content * after. Calls sidebar-footer.php for bottom widgets * */ ?> </div><!-- #main --> <?php if (weaver_getopt_checked('ttw_footer_last')) { echo "</div><!-- #wrapper -->\n"; } ?> <?php if (!weaver_is_checked_page_opt('ttw-hide-footer')) { weaver_put_area('prefooter'); if (!weaver_getopt('ttw_hide_footer')) { ?> <div id="footer"> <div id="colophon"> <?php get_sidebar('footer'); echo do_shortcode(weaver_getopt('ttw_footer_opts')); /* here is where the footer options get inserted */ do_action('wvrx_extended_footer'); /* anything in the extended footer */ do_action('wvrx_plus_footer'); /* after ttw_footer_opts added */ $date = getdate(); $year = $date['year'];
function weaver_hide_site_title() { if (weaver_getopt('ttw_hide_site_title') || weaver_is_checked_page_opt('ttw-hide-site-title')) { return 'style="display:none;"'; } return ''; }
<?php /* ======== SITE TITLE ======== */ if (!weaver_is_checked_page_opt('ttw-hide-site-title')) { ?> <div id="ttw-site-logo"></div> <div id="ttw-site-logo-link" onclick="location.href='<?php echo home_url('/'); ?> ';" style="cursor:pointer;"></div> <?php } $heading_tag = is_home() || is_front_page() ? 'h1' : 'div'; ?> <<?php echo $heading_tag; ?> id="site-title" <?php echo weaver_hide_site_title(); ?> > <span> <a href="<?php echo home_url('/'); ?> " title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?> " rel="home"><?php bloginfo('name'); ?>
<?php /* ======== HEADER IMAGE ======== */ global $weaverii_header; if (!weaver_is_checked_page_opt('ttw-hide-header-image')) { if ($weaverii_header['height'] > 0 && !(weaver_getopt('ttw_header_frontpage_only') && is_front_page())) { if (weaver_getopt('ttw_link_site_image')) { ?> <a href="<?php echo home_url('/'); ?> " title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?> " rel="home"> <?php } /* Check if this is a post or page, if it has a thumbnail, and if it's a big one */ if (is_singular() && !weaver_getopt('ttw_hide_featured_header') && has_post_thumbnail($post->ID) && ($image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'post-thumbnail')) && $image[1] >= $weaverii_header['width']) { /* Houston, we have a new header image! */ echo get_the_post_thumbnail($post->ID, 'post-thumbnail'); } else { $hdr_url = get_header_image(); if ($hdr_url != '') { ?> <img src="<?php header_image(); ?> " width="<?php echo $weaverii_header['width']; ?>
<div class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">' . _x('←', 'Previous post link', WEAVER_TRANS) . '</span> %title'); ?> </div> <div class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">' . _x('→', 'Next post link', WEAVER_TRANS) . '</span>'); ?> </div> </div><!-- #nav-below --> <?php comments_template('', true); ?> <?php } } // end of the loop. ?> </div><!-- #content --> <?php weaver_put_wvr_widgetarea('sitewide-bottom-widget-area', 'ttw-site-bot-widget'); ?> </div><!-- #container --> <?php if (!weaver_getopt('ttw_hide_single_sidebars') && !weaver_is_checked_page_opt('ttw_hide_sidebars')) { get_sidebar(); } get_footer();
function weaver_the_content($m = '') { if (weaver_is_checked_page_opt('wvr_raw_html') || weaver_is_checked_post_opt('wvr_raw_html')) { echo do_shortcode(get_the_content($m)); } else { the_content($m); } }
?> <li><?php wp_loginout(); ?> </li> </ul> </li> <?php } // end primary widget area ?> </ul> </div><!-- #primary .widget-area --> <?php } /* now the secondary area */ if (!weaver_is_checked_page_opt('hide-secondary-widget-area') && !weaver_replace_secondary()) { // The Secondary Widget Area if (is_active_sidebar('secondary-widget-area')) { ?> <div id="secondary" class="widget-area" role="complementary"> <ul class="xoxo"> <?php dynamic_sidebar('secondary-widget-area'); ?> </ul> </div><!-- #secondary .widget-area --> <?php } }