示例#1
0
 * of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query,
 * e.g., it puts together the home page when no home.php file exists.
 *
 * @link http://codex.wordpress.org/Template_Hierarchy
 *
 */
get_header();
?>

<div class="main-container max-width center-block">

	<div class="row blogroll">
		<!-- Content -->
		<div class="<?php 
echo Majale::grid_number()['blog-area'];
?>
 blog-area">

		<?php 
if (have_posts()) {
    // showing category title
    ?>
				<section class="blog-post-area">
					<header class="article-header">
						<div class="date-author"></div>
						<h2 class="blog-post-title padding-15">
							<i class="fa fa-folder"></i> <?php 
    printf(__('Category Archives: %s', 'majale'), single_cat_title('', false));
    ?>
						</h2>
示例#2
0
            ?>
				<?php 
            dynamic_sidebar('sidebar-2');
            ?>
			
			<?php 
        }
        ?>
		</div>

	<?php 
    }
} else {
    ?>
	<div id="sidebar-2" class="<?php 
    echo Majale::grid_number()['sidebar-2'];
    ?>
 sidebar-2" role="complementary">
		<?php 
    if (is_active_sidebar('sidebar-2')) {
        ?>
			<?php 
        dynamic_sidebar('sidebar-2');
        ?>
			
		<?php 
    }
    ?>
	</div>
<?php 
}