-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathindex.php
59 lines (48 loc) · 1.6 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
<?php
/**
* Index Template
*
* @file index.php
* @package Responsive
* @author CyberChimps
* @copyright 2020 CyberChimps
* @license license.txt
* @version Release: 1.0
* @filesource wp-content/themes/responsive/index.php
* @link http://codex.wordpress.org/Theme_Development#Index_.28index.php.29
* @since available since Release 1.0
*/
/**
* Exit if accessed directly.
*
* @package Responsive
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
get_header();
Responsive\responsive_wrapper_top(); // before wrapper content hook.
// Elementor `archive` location.
if ( ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'archive' ) ) && ! ( function_exists( 'rea_theme_template_render_at_location' ) && rea_theme_template_render_at_location( 'archive' ) ) ) {
Responsive\responsive_wrapper();
if ( have_posts() ) {
while ( have_posts() ) :
the_post();
get_template_part( 'partials/entry/layout', get_post_type() );
endwhile;
get_template_part( 'loop-nav', get_post_type() );
} else {
// Elementor `404` location.
if ( ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'single' ) ) && ! ( function_exists( 'rea_theme_template_render_at_location' ) && rea_theme_template_render_at_location( 'single' ) ) ) {
get_template_part( 'partials/page/layout', get_post_type() );
}
}
?>
</main><!-- end of #primary -->
<?php
get_sidebar();
Responsive\responsive_wrapper_close();
}
Responsive\responsive_wrapper_end(); // after wrapper hook.
get_footer();
?>