예제 #1
0
    ?>
			<aside id="sidebar1" >
				<div class="sidebar-container">			
					<?php 
    dynamic_sidebar('sidebar-1');
    ?>
					<div class="clear"></div>
				</div>
			</aside>
		<?php 
}
?>
		<div id="content">
		<?php 
if ('posts' == get_option('show_on_front')) {
    news_magazine_frontend_functions::top_posts();
    news_magazine_frontend_functions::content_posts();
    news_magazine_frontend_functions::categories_vertical_tabs();
} elseif ('page' == get_option('show_on_front')) {
    news_magazine_frontend_functions::content_posts_for_home();
}
?>
		
		</div>
	   <?php 
if (is_active_sidebar('sidebar-2')) {
    ?>
		<aside id="sidebar2">
			<div class="sidebar-container">
			  <?php 
    dynamic_sidebar('sidebar-2');
예제 #2
0
function wdwt_front_pages()
{
    global $wdwt_options;
    global $wdwt_front;
    require_once 'inc/front/front_params_output.php';
    $wdwt_front = new news_magazine_front($wdwt_options);
    $action = $_REQUEST['action'];
    $paged = isset($_REQUEST['paged']) ? intval($_REQUEST['paged']) : 0;
    if ($action == "wdwt_front_content_posts_section") {
        require_once 'inc/front/front_functions.php';
        news_magazine_frontend_functions::content_posts($paged);
    }
    if ($action == "wdwt_front_top_posts_section") {
        require_once 'inc/front/front_functions.php';
        news_magazine_frontend_functions::top_posts($paged);
    }
    die;
}