mirror of
https://ghproxy.net/https://github.com/AlxMedia/agnar.git
synced 2025-08-27 01:25:45 +08:00
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
|
<?php get_header(); ?>
|
||
|
<?php get_template_part('inc/featured'); ?>
|
||
|
|
||
|
<div class="container-inner">
|
||
|
<div class="flex-wrapper">
|
||
|
<div class="flex-group flex-left">
|
||
|
|
||
|
<?php get_template_part('inc/page-title'); ?>
|
||
|
<?php get_template_part('inc/front-widgets-top'); ?>
|
||
|
|
||
|
<?php if ( have_posts() ) : ?>
|
||
|
|
||
|
<?php if ( get_theme_mod('blog-layout','blog-grid') == 'blog-grid' ) : ?>
|
||
|
<ul class="flex-contain group">
|
||
|
<?php while ( have_posts() ): the_post(); ?>
|
||
|
<?php get_template_part('content'); ?>
|
||
|
<?php endwhile; ?>
|
||
|
</ul><!--/.flex-contain-->
|
||
|
<?php elseif ( get_theme_mod('blog-layout','blog-grid') == 'blog-list' ) : ?>
|
||
|
<ul class="flex-list group">
|
||
|
<?php while ( have_posts() ): the_post(); ?>
|
||
|
<?php get_template_part('content-list'); ?>
|
||
|
<?php endwhile; ?>
|
||
|
</ul><!--/.flex-list-->
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<?php get_template_part('inc/front-widgets-bottom'); ?>
|
||
|
<?php get_template_part('inc/pagination'); ?>
|
||
|
|
||
|
<?php endif; ?>
|
||
|
|
||
|
</div><!--/.flex-group-->
|
||
|
|
||
|
<?php get_sidebar(); ?>
|
||
|
|
||
|
</div><!--/.flex-wrapper-->
|
||
|
</div>
|
||
|
|
||
|
<?php get_footer(); ?>
|