mirror of
https://ghproxy.net/https://github.com/AlxMedia/blogside.git
synced 2025-08-27 01:21:23 +08:00
Initial commit
This commit is contained in:
commit
1559ebf611
149 changed files with 49510 additions and 0 deletions
42
index.php
Normal file
42
index.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
<section class="content">
|
||||
|
||||
<?php get_template_part('inc/page-title'); ?>
|
||||
<?php get_template_part('inc/featured'); ?>
|
||||
<?php get_template_part('inc/front-widgets-top'); ?>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<?php if ( ot_get_option('blog-layout') == 'blog-grid' ) : ?>
|
||||
|
||||
<div class="post-grid group">
|
||||
<?php $i = 1; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?>
|
||||
<?php get_template_part('content-grid'); ?>
|
||||
<?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>
|
||||
</div><!--/.post-list-->
|
||||
|
||||
<?php elseif ( ot_get_option('blog-layout') == 'blog-list' ) : ?>
|
||||
|
||||
<?php while ( have_posts() ): the_post(); ?>
|
||||
<?php get_template_part('content-list'); ?>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?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'); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</section><!--/.content-->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
|
||||
<?php get_footer(); ?>
|
Loading…
Add table
Add a link
Reference in a new issue