<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Template Name: iframe - full content width */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('page'); // and next the content area. weaverx_sb_precontent('iframe'); // generate page content while (have_posts()) { weaverx_post_count_clear(); the_post(); get_template_part('templates/content', 'page'); comments_template('', true); } weaverx_sb_postcontent('iframe'); weaverx_page_tail('iframe', $sb_layout); // end of page wrap
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Template Name: Blank * */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('page-blank'); // and next the content area. weaverx_sb_precontent('page-blank'); // generate page content while (have_posts()) { weaverx_post_count_clear(); the_post(); get_template_part('templates/content', 'blank'); comments_template('', true); } weaverx_sb_postcontent('page-blank'); weaverx_page_tail('page-blank', $sb_layout); // end of page wrap
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Template Name: Sitemap */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('sitemap'); // and next the content area. weaverx_sb_precontent('sitemap'); // generate page content while (have_posts()) { weaverx_post_count_clear(); the_post(); get_template_part('templates/content', 'sitemap'); comments_template('', true); } weaverx_sb_postcontent('sitemap'); weaverx_page_tail('sitemap', $sb_layout); // end of page wrap
// build infobar front part - replace get_template_part('infobar'); with local code // we need to build it in a buffer weaverx_container_div('pwp'); // #container ob_start(); // generate the stuff that comes AFTER the infobar for pwp since we can't generate page nav until later $sb_layout = weaverx_sb_layout('blog'); // ********* get_template_part('templates/infobar'); // put the info bar weaverx_sidebar_before($sb_layout, 'blog'); // sidebars if top-stacking do_action('weaverx_per_page'); $paged = weaverx_get_page(); // and next the content area. echo '<div id="content" role="main" ' . weaverx_content_class($sb_layout, 'pwp', false) . ">\n"; weaverx_inject_area('precontent'); weaverx_sb_precontent('blog'); weaverx_post_count_clear(); the_post(); if (!is_front_page()) { $GLOBALS['weaverx_pwp_title'] = get_the_title(); // Make breadcrumbs work a bit better } if ($paged == 1) { // only show on the first page // If we have content for this page, let's display it. if (get_the_content() != '' || get_the_title() != '' && !weaverx_is_checked_page_opt('_pp_hide_page_title')) { get_template_part('templates/content', 'page'); } else { weaverx_edit_link(); } }
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * The template for displaying Author Archive pages. */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('author', true); // and next the content area. weaverx_sb_precontent('author'); // generate page content if (have_posts()) { /* Queue the first post, that way we know * what author we're dealing with (if that is the case). * * We reset this later so we can run the loop * properly with a call to rewind_posts(). */ the_post(); $msg = apply_filters('weaverx_author_archives', __('Author Archives: %s', 'weaver-xtreme')); $title = '<span class="author-title-label">' . sprintf($msg, '</span><span class="vcard archive-info"><a class="url fn n" href="' . esc_url(get_author_posts_url(get_the_author_meta("ID"))) . '" title="' . esc_attr(get_the_author()) . '" rel="me">' . get_the_author() . '</a></span>'); ?> <header class="page-header archive-title"> <?php weaverx_archive_title($title, 'author', ' author'); ?>
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Woo Commerce Page Template */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('woocommerce'); // and next the content area. weaverx_sb_precontent('page'); // generate page content if (function_exists('woocommerce_content')) { woocommerce_content(); } else { while (have_posts()) { weaverx_post_count_clear(); the_post(); get_template_part('templates/content', 'page'); comments_template('', true); } } weaverx_sb_postcontent('page'); weaverx_page_tail('page', $sb_layout); // end of page wrap
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Specific page output template */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('archive', true); // and next the content area. weaverx_sb_precontent('archive'); // content for archive page if (have_posts()) { $archive = 'Archive'; if (is_day()) { $msg = apply_filters('weaverx_daily_archives', __('Daily Archives: %s', 'weaver-xtreme')); $archive = '<span class="title-archive-label">' . sprintf($msg, '</span><span class="archive-info">' . get_the_date()) . '</span>'; } else { if (is_month()) { $msg = apply_filters('weaverx_monthly_archives', __('Monthly Archives: %s', 'weaver-xtreme')); $archive = '<span class="title-archive-label">' . sprintf($msg, '</span><span class="archive-info">' . get_the_date('F Y')) . '</span>'; } else { if (is_year()) { $msg = apply_filters('weaverx_yearly_archives', __('Yearly Archives: %s', 'weaver-xtreme')); $archive = '<span class="title-archive-label">' . sprintf($msg, '</span><span class="archive-info">' . get_the_date('Y')) . '</span>'; } else { if (is_tax()) { // these improve presentation of custom tax titles $archive = single_term_title('', false);
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Specific page output template */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('search', true); // and next the content area. weaverx_sb_precontent('search'); if (have_posts()) { $msg = apply_filters('weaverx_search_results', __('Search Results for: %s', 'weaver-xtreme')); $title = '<span class="title-search-label">' . sprintf($msg, '</span><span class="archive-info">' . '"' . get_search_query() . '"</span>'); ?> <header class="page-header"> <?php weaverx_archive_title($title, 'search'); ?> </header> <?php weaverx_content_nav('nav-above', true); /* Start the Loop */ weaverx_post_count_clear(); weaverx_masonry('begin-posts'); while (have_posts()) { the_post();
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Tag page output template */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('tag', true); // and next the content area. weaverx_sb_precontent('tag'); if (have_posts()) { ?> <header class="page-header"> <?php $tt = apply_filters('weaverx_tag_archives', __('Tag Archives: %s', 'weaver-xtreme')); $title = '<span class="title-tag-label">' . sprintf($tt, '</span><span class="archive-info">' . single_tag_title('', false) . '</span>'); weaverx_archive_title($title, 'tag'); $tag_description = tag_description(); if (!empty($tag_description)) { echo apply_filters('tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>'); } ?> </header> <?php weaverx_content_nav('nav-above'); /* The Loop */
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Specific page output template */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('404', true); weaverx_sb_precontent('404'); // and next the content area. ?> <article id="post-0" class="post error404 not-found"> <?php $msg = apply_filters('weaverx_404_title', __('Sorry, no such page.', 'weaver-xtreme')); weaverx_page_title($msg); if (!weaverx_getopt('_hide_not_found_search')) { ?> <div class="entry-content clearfix"> <p><?php echo __('It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.', 'weaver-xtreme'); ?> </p> <?php get_search_form(); echo "<p></p>\n"; the_widget('WP_Widget_Recent_Posts', array('number' => 10), array('widget_id' => '404')); ?>
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Images / Attachments content template */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('image'); // and next the content area. weaverx_sb_precontent('image'); // content for images (Attachments, really) weaverx_post_count_clear(); the_post(); ?> <nav id="nav-above"> <h3 class="assistive-text"><?php echo __('Image navigation', 'weaver-xtreme'); ?> </h3> <span class="nav-previous"><?php previous_image_link(false, __('← Previous', 'weaver-xtreme')); ?> </span> <span class="nav-next"><?php next_image_link(false, __('Next →', 'weaver-xtreme')); ?> </span> </nav><!-- #nav-above -->
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * The Template for displaying all single posts. */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ global $weaverx_cur_page_ID; $weaverx_cur_page_ID = get_the_ID(); $sb_layout = weaverx_page_lead('single'); // and next the content area. weaverx_sb_precontent('single'); // generate page content $cats = weaverx_getopt_checked('single_nav_link_cats'); while (have_posts()) { weaverx_post_count_clear(); the_post(); ?> <nav id="nav-above" class="navigation"> <h3 class="assistive-text"><?php echo __('Post navigation', 'weaver-xtreme'); ?> </h3> <?php if (weaverx_getopt('single_nav_style') == 'prev_next') { ?> <div class="nav-previous"><?php previous_post_link('%link', __('<span class="meta-nav">←</span> Previous', 'weaver-xtreme'), $cats);
<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly /** * Category page template */ /*! ** DO NOT EDIT THIS FILE! It will be overwritten when the theme is updated! ** */ $sb_layout = weaverx_page_lead('category', true); // and next the content area. weaverx_sb_precontent('category'); if (have_posts()) { $msg = apply_filters('weaverx_category_archives', __('Category Archives: %s', 'weaver-xtreme')); $title = '<span class="category-title-label">' . sprintf($msg, '</span><span class="archive-info">' . single_cat_title('', false) . '</span>'); ?> <header class="page-header"> <?php weaverx_archive_title($title, 'category'); $category_description = category_description(); if (!empty($category_description)) { echo apply_filters('category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>'); } ?> </header> <?php weaverx_content_nav('nav-above'); /* The Loop */