mirror of
https://ghproxy.net/https://github.com/AlxMedia/airl.git
synced 2025-08-27 01:09:59 +08:00
Add blog layout options
This commit is contained in:
parent
843c7822de
commit
b34776d661
11 changed files with 344 additions and 137 deletions
26
index.php
26
index.php
|
@ -10,10 +10,30 @@
|
|||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<?php while ( have_posts() ): the_post(); ?>
|
||||
<?php get_template_part('content'); ?>
|
||||
<?php endwhile; ?>
|
||||
<?php if ( get_theme_mod('blog-layout','blog-standard') == 'blog-grid' ) : ?>
|
||||
|
||||
<div class="article-grid">
|
||||
<?php while ( have_posts() ): the_post(); ?>
|
||||
<?php get_template_part('content-grid'); ?>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
|
||||
<?php elseif ( get_theme_mod('blog-layout','blog-standard') == 'blog-list' ) : ?>
|
||||
|
||||
<div class="article-list">
|
||||
<?php while ( have_posts() ): the_post(); ?>
|
||||
<?php get_template_part('content-list'); ?>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php while ( have_posts() ): the_post(); ?>
|
||||
<?php get_template_part('content'); ?>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php get_template_part('inc/front-widgets-bottom'); ?>
|
||||
<?php get_template_part('inc/pagination'); ?>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue