forked from Beit-Hatfutsot/wp-bh-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
49 lines (37 loc) · 882 Bytes
/
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
<?php
/**
* The Template for displaying default post/category/archive/page
*
* @author Beit Hatfutsot
* @package bh
* @version 2.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
get_header(); ?>
<?php
/**
* BH_before_main_content hook
*
* @hooked BH_theme_wrapper_start - 10 (outputs opening section and divs for the content)
*/
do_action('BH_before_main_content');
?>
<?php
// content
if (have_posts()) :
while (have_posts()) : the_post();
get_template_part('views/page/loop');
endwhile;
else :
get_template_part('views/components/not-found');
endif;
?>
<?php
/**
* BH_after_main_content hook
*
* @hooked BH_theme_wrapper_end - 10 (outputs closing section and divs for the content)
*/
do_action('BH_after_main_content');
?>
<?php get_footer(); ?>