-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
84 lines (71 loc) · 2.24 KB
/
index.php
File metadata and controls
84 lines (71 loc) · 2.24 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package TheWebSolver\Codegarage\Template
* @since 1.0.0
*/
use function TheWebSolver\Codegarage\number_pagination;
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body itemtype="https://schema.org/WebPage" itemscope="itemscope" <?php body_class(); ?>>
<?php wp_body_open(); ?>
<a class="skip-link screen-reader-text" href="#content"><?php echo esc_html__( 'Skip to content', 'tws-codegarage' ); ?></a>
<div id="content" class="site-content">
<div class="tws-whitelabel-container">
<div id="primary">
<?php
/**
* WPHOOK: Action -> fires before the main content.
*/
do_action( 'tws_codegarage_primary_content_top' );
?>
<main id="main" class="site-main">
<?php
if ( have_posts() ) :
/**
* WPHOOK: Action -> fires before the content loop.
*/
do_action( 'tws_codegarage_template_parts_content_top' );
while ( have_posts() ) :
the_post();
endwhile;
/**
* WPHOOK: Action -> fires after the content loop.
*/
do_action( 'tws_codegarage_template_parts_content_bottom' );
else :
/**
* WPHOOK: Action -> fires if there is no content.
*/
do_action( 'tws_codegarage_template_parts_content_none' );
endif;
?>
</main><!-- #main -->
<?php number_pagination(); ?>
<?php
/**
* WPHOOK: Action -> fires after the main content.
*/
do_action( 'tws_codegarage_primary_content_bottom' );
?>
</div><!-- #primary -->
</div> <!-- .tws-whitelabel-container -->
</div><!-- #content -->
<?php wp_footer(); ?>
</body>
</html>