Example #1
0
    }
    ?>
        </div>
        <div class="inner">
            <p class="center"><?php 
    vp_page_link(array('slug' => 'signup', 'text' => __('Signup', 'v2press'), 'class' => 'btn'));
    ?>
</p>
            <p class="fade center"><?php 
    printf(__('Already signup? %s', 'v2press'), vp_page_link(array('slug' => 'signin', 'text' => __('Signin', 'v2press'), 'display' => false)));
    ?>
</p>
        </div>
        <?php 
}
// END if is_user_logged_in()
?>
    </div>

    <?php 
if (is_home()) {
    vp_get_template_part('sidebar', 'home');
} elseif (is_single() && !vp_is_edit() || is_category()) {
    vp_get_template_part('sidebar', 'category');
} elseif (is_page('new') || vp_is_edit()) {
    vp_get_template_part('sidebar', 'new');
}
?>

</aside><!--END #sidebar-->
Example #2
0
                <div class="heading">
                    <p class="xlarge"><?php 
vp_breadcrumb();
?>
</p>
                </div>

                <div class="topics-list">
                <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        vp_get_template_part('content', 'topics-list');
    }
} else {
    vp_get_template_part('content', 'zero');
}
?>
                </div>

                <div class="footing">
                    <?php 
vp_page_navi();
?>
                </div>
            </section>
        </div><!--END #main-->

        <?php 
get_sidebar();
?>
Example #3
0
<?php

if (isset($_GET['edit']) && 'true' == $_GET['edit']) {
    vp_get_template_part('content', 'edit');
} else {
    vp_get_template_part('content', 'single');
}