-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
45 lines (41 loc) · 1.08 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
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
get_header();
/**
* @hooked ascend_archive_title - 20
*/
do_action('ascend_archive_title_container');
?>
<div id="content" class="container">
<div class="row">
<div class="main <?php echo esc_attr(ascend_main_class()); ?>" id="ktmain" role="main">
<?php
if (!have_posts()) : ?>
<div class="alert">
<?php esc_html_e( 'Sorry, no results were found.', 'ascend' ); ?>
</div>
<?php
get_search_form();
endif;
while (have_posts()) : the_post();
get_template_part('templates/content', get_post_format());
endwhile;
/**
* @hooked ascend_pagination - 20
*/
do_action('ascend_pagination');
?>
</div><!-- /.main -->
<?php
/**
* Sidebar
*/
if (ascend_display_sidebar()) :
get_sidebar();
endif; ?>
</div><!-- /.row-->
</div><!-- /.content -->
<?php
get_footer();