示例#1
0
 * @author WPinProgress
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * It is also available at this URL: http://www.gnu.org/licenses/gpl-3.0.txt
 */
get_header();
diarjolite_header_content();
?>
 

<div class="container content">
	
    <div class="row">
       
        <div class="<?php 
echo diarjolite_template('span') . " " . diarjolite_template('sidebar');
?>
">
        	
            <div class="row">
        
                <article <?php 
post_class();
?>
 >
                
                    <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
示例#2
0
?>
        
	<?php 
if (diarjolite_template('sidebar') == "left-sidebar" || diarjolite_template('sidebar') == "right-sidebar") {
    ?>
        
        </div>
        
    </div>
        
    <?php 
}
?>

	<?php 
if (diarjolite_template('span') == "col-md-8") {
    ?>

        <section id="sidebar" class="post-container col-md-4">
            
            <div class="sidebar-box">
            
				<?php 
    if (is_active_sidebar('search-sidebar-area')) {
        dynamic_sidebar('search-sidebar-area');
    } else {
        the_widget('WP_Widget_Archives', '', array('before_widget' => '<div class="post-article">', 'after_widget' => '</div>', 'before_title' => '<h3 class="title">', 'after_title' => '</h3>'));
        the_widget('WP_Widget_Calendar', array("title" => __('Calendar', "diarjolite")), array('before_widget' => '<div class="post-article">', 'after_widget' => '</div>', 'before_title' => '<h3 class="title">', 'after_title' => '</h3>'));
        the_widget('WP_Widget_Categories', '', array('before_widget' => '<div class="post-article">', 'after_widget' => '</div>', 'before_title' => '<h3 class="title">', 'after_title' => '</h3>'));
    }
    ?>