Пример #1
0
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_get_header('404');
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('404');
// mimic search
?>
	<div id="container_wrap"<?php 
weaverii_get_page_class('404', 'container-404');
?>
>
	<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
?>
	<div id="container">
		<div id="content" role="main">

			<article id="post-0" class="post error404 not-found">

				<header class="entry-header">
					<h1 class="entry-title"><?php 
echo __('Sorry, no such page.', 'weaver-ii');
Пример #2
0
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Weaver II
 */
weaverii_get_header('index');
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('index');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('index', 'container-index');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<div id="container" class="cf index-posts">
<?php 
weaverii_get_sidebar_top('index');
?>
			<div id="content" class = "cf" role="main">

<?php 
Пример #3
0
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_get_header('author');
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('author');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('author', 'container-author');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<section id="container">
<?php 
weaverii_get_sidebar_top('author');
?>
			<div id="content" role="main">

			<?php 
Пример #4
0
// Exit if accessed directly
/**
 * Template Name: Sitemap
 *
 */
weaverii_get_header('sitemap', true);
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('sitemap');
?>
	<div id="container_wrap"<?php 
weaverii_get_page_class('sitemap', 'container-sitemap');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<div id="container">
<?php 
weaverii_get_sidebar_top('sitemap');
?>

		<div id="content" role="main">
<?php 
Пример #5
0
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_get_header('page-blank');
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('page-blank');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('page', 'container-pageblank');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<div id="container">
<?php 
weaverii_get_sidebar_top('page');
?>

			<div id="content" role="main">
<?php 
Пример #6
0
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_get_header('iframe');
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('iframe');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('page', 'container-pageiframe');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<div id="container" class="page-iframe">
<?php 
weaverii_get_sidebar_top('iframe');
?>

			<div id="content" role="main">
<?php 
Пример #7
0
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_get_header('page');
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('page');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('page', 'container-page2col');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<div id="container">
<?php 
weaverii_get_sidebar_top('page');
?>

			<div id="content" role="main">
<?php 
Пример #8
0
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_get_header('single');
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
global $weaverii_cur_post_id;
$weaverii_cur_post_id = get_the_ID();
weaverii_get_sidebar_left('single');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('single', 'container-single');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<div id="container">
<?php 
weaverii_get_sidebar_top('single');
?>
			<div id="content" role="main">

<?php 
Пример #9
0
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_get_header('category', true);
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('category');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('category', 'container-category');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<section id="container">
<?php 
weaverii_get_sidebar_top('category');
?>
			<div id="content" role="main">

			<?php 
Пример #10
0
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_get_header('archive', true);
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('archive');
?>
	<div id="container_wrap"<?php 
weaverii_get_page_class('archive', 'container-archive');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<section id="container">
<?php 
weaverii_get_sidebar_top('archive');
?>
            <div id="content" role="main">

<?php 
Пример #11
0
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_get_header('tag');
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('tag');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('tag', 'container-tag');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<section id="container">
<?php 
weaverii_get_sidebar_top('tag');
?>
			<div id="content" role="main">

			<?php 
Пример #12
0
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_get_header('image', true);
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('image');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('image', 'container-image');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<div id="container" class="image-attachment">
<?php 
weaverii_get_sidebar_top('image');
?>
			<div id="content" role="main">

			<?php 
Пример #13
0
 * @subpackage Weaver II
 * @since Weaver II 1.0
 *
 * changed 1.0.25 - paged navi doesn't work right on multipage search result, so skip infobar and force prev/next
 */
weaverii_get_header('search', true);
if (weaverii_getopt('wii_infobar_location') == 'top') {
    get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('search');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('search', 'container-search');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
?>
		<section id="container">
<?php 
weaverii_get_sidebar_top('search');
?>
			<div id="content" role="main">

			<?php 
if (have_posts()) {
Пример #14
0
if (!weaverii_getopt_checked('wii_infobar_hide') && !weaverii_is_checked_page_opt('wvr-hide-page-infobar')) {
    // let's really not include it rather than display:none.
    if (!weaverii_getopt_checked('wii_info_hide_breadcrumbs')) {
        $weaverii_crumbs = weaverii_breadcrumb(false);
    }
}
ob_start();
// now build the page part of the PwP
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('pwp');
$paged = weaverii_get_page();
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('pwp', 'container-pagewithposts');
?>
>

<?php 
$page_part1 = ob_get_clean();
// need to split to handle infobar location
ob_start();
weaverii_inject_area('precontent');
?>
		<div id="container" class="page-with-posts">
<?php 
weaverii_get_sidebar_top('pwp');
?>

		<div id="content" role="main">