コード例 #1
0
ファイル: author.php プロジェクト: mystified7545/MyBlog
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 
if (have_posts()) {
    ?>

				<?php 
    /* 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();
コード例 #2
0
ファイル: paget-blank.php プロジェクト: mystified7545/MyBlog
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 
while (have_posts()) {
    weaverii_post_count_clear();
    the_post();
    get_template_part('content', 'blank');
    comments_template('', true);
}
?>
			</div><!-- #content -->
<?php 
weaverii_get_sidebar_bottom('page-blank');
?>
コード例 #3
0
ファイル: index.php プロジェクト: mystified7545/MyBlog
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 
if (have_posts()) {
    $paged = weaverii_get_page();
    weaverii_content_nav('nav-above');
    $col = 0;
    $num_cols = weaverii_use_mobile('mobile') ? 1 : weaverii_getopt('wii_blog_cols');
    if (!$num_cols || $num_cols > 3) {
        $num_cols = 1;
    }
    $sticky_one = weaverii_getopt_checked('wii_blog_sticky_one') && $paged <= 1;
    $first_one = weaverii_getopt_checked('wii_blog_first_one') && $paged <= 1;
    $masonry_wrap = false;
コード例 #4
0
ファイル: paget-iframe.php プロジェクト: mystified7545/MyBlog
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 
while (have_posts()) {
    weaverii_post_count_clear();
    the_post();
    get_template_part('content', 'page');
    comments_template('', true);
}
?>
			</div><!-- #content -->
<?php 
weaverii_get_sidebar_bottom('iframe');
?>
コード例 #5
0
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 
while (have_posts()) {
    weaverii_post_count_clear();
    the_post();
    get_template_part('content', 'sitemap');
    comments_template('', true);
}
?>
		</div><!-- #content -->
<?php 
weaverii_get_sidebar_bottom('sitemap');
?>
コード例 #6
0
$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 
weaverii_post_count_clear();
$cats = weaverii_getopt_checked('wii_single_nav_link_cats');
while (have_posts()) {
    the_post();
    ?>
				<nav id="nav-above" class="navigation">
				<h3 class="assistive-text"><?php 
    echo __('Post navigation', 'weaver-ii');
    ?>
</h3>
<?php 
コード例 #7
0
ファイル: category.php プロジェクト: uwmadisoncals/weaver2pro
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 
if (have_posts()) {
    ?>

				<header class="page-header">
					<h1 class="page-title category-title"><span class="category-title-label"><?php 
    printf(__('Category Archives: %s', 'weaver-ii'), '</span><span>' . single_cat_title('', false) . '</span>');
    ?>
</h1>

					<?php 
    $category_description = category_description();
コード例 #8
0
ファイル: archive.php プロジェクト: uwmadisoncals/weaver2pro
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 
if (have_posts()) {
    ?>

			<header class="page-header">
			    <h1 class="page-title archive-title"><span class="archive-title-label">
<?php 
    if (is_day()) {
        printf(__('Daily Archives: %s', 'weaver-ii'), '</span><span>' . get_the_date());
    } else {
        if (is_month()) {
            printf(__('Monthly Archives: %s', 'weaver-ii'), '</span><span>' . get_the_date('F Y'));
コード例 #9
0
ファイル: tag.php プロジェクト: mystified7545/MyBlog
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 
if (have_posts()) {
    ?>

				<header class="page-header">
					<h1 class="page-title tag-title"><span class="tag-title-label"><?php 
    printf(__('Tag Archives: %s', 'weaver-ii'), '</span><span>' . single_tag_title('', false) . '</span>');
    ?>
</h1>

					<?php 
    $tag_description = tag_description();
コード例 #10
0
ファイル: search.php プロジェクト: uwmadisoncals/weaver2pro
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()) {
    ?>

				<header class="page-header">
					<h1 class="page-title search-results"><span class="search-results-label"><?php 
    printf(__('Search Results for: "%s"', 'weaver-ii'), '</span><span>' . get_search_query() . '</span>');
    ?>
</h1>
				</header>

				<?php 
コード例 #11
0
ファイル: paget-posts.php プロジェクト: mystified7545/MyBlog
$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">
<?php 
weaverii_post_count_clear();
the_post();
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() != '' && !weaverii_is_checked_page_opt('ttw-hide-page-title')) {
        get_template_part('content', 'pwp');
    }
}
$page_part2 = ob_get_clean();
if (weaverii_getopt('wii_pwp_comments')) {
コード例 #12
0
ファイル: paget-html.php プロジェクト: mystified7545/MyBlog
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('html_source');
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('page', 'container-pagehtml');
?>
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<div id="container">
<?php 
weaverii_get_sidebar_top('html_source');
?>

			<div id="content" role="main">
<?php 
while (have_posts()) {
    weaverii_post_count_clear();
    the_post();
    get_template_part('content', 'html');
    comments_template('', true);
}
?>
			</div><!-- #content -->
<?php 
weaverii_get_sidebar_bottom('html_source');
?>