Пример #1
0
weaver_put_wvr_widgetarea('sitewide-top-widget-area', 'ttw-site-top-widget');
weaver_put_wvr_widgetarea('top-widget-area', 'ttw-top-widget', 'ttw_hide_widg_posts');
weaver_put_perpage_widgetarea();
?>
        <div id="content">
<?php 
// First, put any content from the static page (code derived from page.php template)
if (have_posts()) {
    the_post();
    if ($paged == 1) {
        // only show on the first page
        ob_start();
        if (is_front_page()) {
            weaver_put_page_title('h2');
        } else {
            weaver_put_page_title('h1');
        }
        weaver_page_content();
        // get the page content, but don't display
        $page_content = ob_get_clean();
        // get the output
        // now, behave differently if empty.
        if (strlen($page_content) > 0) {
            ?>
	<div id="post-<?php 
            the_ID();
            ?>
" <?php 
            post_class();
            ?>
>
Пример #2
0
>
	<?php 
        weaver_put_page_title('h2');
        ?>
		<div class="entry-content">
		    <?php 
        echo "{$page_content}";
        ?>
		</div><!-- .entry-content -->
	</div><!-- #post-<?php 
        the_ID();
        ?>
 -->
<?php 
    } else {
        weaver_put_page_title('h2', 'style="margin-bottom:10px;"');
    }
    echo "<div id=\"wvr-sitemap\">\n";
    echo "<h3>" . __('Pages', WEAVER_TRANS) . "</h3><ul class='xoxo sitemap-pages'>\n";
    wp_list_pages(array('title_li' => false));
    echo "</ul>\n";
    echo "<h3>" . __('Posts', WEAVER_TRANS) . "</h3><ul class='xoxo sitemap-pages-month'>\n";
    wp_get_archives(array('type' => 'monthly', 'show_post_count' => true));
    echo "</ul>\n";
    if (!weaver_getopt('ttw_post_hide_cats')) {
        echo "<h3>" . __('Categories', WEAVER_TRANS) . "</h3><ul class='xoxo sitemap-categories'>\n";
        wp_list_categories(array('show_count' => true, 'use_desc_for_title' => true, 'title_li' => false));
        echo "</ul>\n";
        // If you want to show authors, simply uncomment the next 3 lines
        // echo("<h3>" . __('Authors') ."</h3><ul class='xoxo sitemap-authors'>\n");
        // wp_list_authors(array('exclude_admin' => false, 'optioncount' => true, 'title_li' => false));