-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
72 lines (53 loc) · 1.87 KB
/
index.php
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* @package Fluidity
* @subpackage Main
* @since 20161206
* @author Richard Coffee <[email protected]>
* @copyright Copyright (c) 2018, Richard Coffee
*/
defined( 'ABSPATH' ) || exit;
$mypage = get_page_slug();
$page_sidebar = fluid_sidebar();
get_header();
who_am_i();
do_action( 'fluid_page_top', $mypage ); ?>
<div id="fluid-content" class="fluid-<?php e_esc_attr( $mypage); ?> <?php e_esc_attr( container_type( $mypage ) ); ?>" <?php microdata()->Blog(); ?>>
<?php do_action( 'fluid_inside_page', $mypage ); ?>
<div class="row">
<?php do_action( 'fluid_before_main', $mypage ); ?>
<main id="content" class="<?php e_esc_attr( $page_sidebar->main_tag_css( $mypage, '' ) ); ?>" tabindex="-1"><?php
do_action( 'fluid_before_posts', $mypage );
if ( have_posts() ) {
do_action( 'fluid_before_loop', $mypage );
$dir = apply_filters( 'fluid_loop_template_dir', 'template-parts', $mypage );
$root = ( is_singular() ) ? 'content' : get_theme_mod( 'content_excerpt', 'excerpt' );
$root = apply_filters( 'fluid_loop_template_root', $root, $mypage );
while ( have_posts () ) { ?>
<div class="post-loop"><?php
the_post();
$stem = fluid_content_slug( $mypage );
get_template_part( "$dir/$root", $stem );
if ( ! is_singular() ) {
fluid_post_separator( $mypage );
} ?>
</div><?php
}
if ( ! is_singular() ) { ?>
<div class="row">
<div class="text-wide text-center"><?php
fluid_pagination(); ?>
</div>
</div><?php
}
do_action( 'fluid_after_loop', $mypage );
} else {
do_action( 'fluid_no_loop', $mypage );
}
do_action( 'fluid_after_posts', $mypage ); ?>
</main><!-- #content -->
<?php do_action( 'fluid_after_main', $mypage ); ?>
</div>
</div><!-- #fluid-content --><?php
do_action( 'fluid_page_bottom', $mypage );
get_footer();