-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·49 lines (39 loc) · 1.93 KB
/
Copy pathindex.php
File metadata and controls
executable file
·49 lines (39 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/*
* Index Page
*
*/
get_header(); ?>
<div id="blog">
<div class="content-wrapper-outer">
<div class="content-wrapper" data-sticky_parent>
<?php get_sidebar('docs_top'); ?>
<div id="primary" class="content-area">
<?php get_sidebar('pageleft'); ?>
<main id="main" class="site-main">
<?php
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
else { $paged = 1; }
$number_default = get_theme_mod('wise_def_posts');
query_posts( array('post_type' => 'post', 'post_status' => 'publish', 'orderby' => 'date', /* 'posts_per_page' => $number_default, */ 'paged' => $paged ) ); ?>
<?php if ( have_posts() ) : ?>
<?php if(get_theme_mod('wise_def_name')) { echo '<header class="page-header"><h1 class="page-title-archive">' . esc_html(get_theme_mod('wise_def_name')) . '</h1></header>'; } ?>
<?php if(get_theme_mod('wise_posts_layout') == 'grid') { echo '<div class="index-wrapper-outer">'; } ?>
<div id="index-lists<?php if (get_theme_mod('wise_posts_layout')) { echo '-' . esc_attr(get_theme_mod('wise_posts_layout')); } ?>" class="index-wrapper<?php if (get_theme_mod('wise_posts_layout')) { echo '-' . esc_attr(get_theme_mod('wise_posts_layout')); } ?>">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'templates/content', get_post_format() ); ?>
<?php endwhile; ?>
</div>
<?php if(get_theme_mod('wise_posts_layout') == 'grid') { echo '</div>'; } ?>
<?php wise_paging_nav(); ?>
<?php else : ?>
<?php get_template_part( 'templates/content', 'none' ); ?>
<?php endif; ?>
</main><!-- End of #main -->
</div><!-- End of #primary -->
<?php get_sidebar(); ?>
</div><!-- End of #content-wrapper -->
</div><!-- End of #content-wrapper-outer -->
</div><!-- #blog Smooth Scrolling -->
<?php get_footer(); ?>