forked from zamoose/themehookalliance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tha-example-index.php
84 lines (70 loc) · 2.13 KB
/
tha-example-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
73
74
75
76
77
78
79
80
81
82
83
84
<?php tha_html_before(); ?><html>
<head>
<?php tha_head_top(); ?>
<title><?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="all" />
<?php tha_head_bottom(); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php tha_body_top(); ?>
<?php tha_header_before(); ?>
<div id="header">
<?php tha_header_top(); ?>
<h1><?php bloginfo( 'name' ); ?></h1>
<p class="dscription"><?php bloginfo( 'description' ); ?></p>
<?php tha_header_bottom(); ?>
</div><!-- #header -->
<?php tha_header_after(); ?>
<?php tha_content_before(); ?>
<div id="content">
<?php tha_content_top(); ?>
<!-- This roughly encapsulates The Loop portion of the layout -->
<?php if ( have_posts() ) : ?>
<?php tha_content_while_before(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php tha_entry_before(); ?>
<!-- Post Entry Begin -->
<div <?php post_class( 'entry' ); ?>>
<?php tha_entry_top(); ?>
<h2><?php the_title(); ?></h2>
<div class="itemtext">
<?php tha_entry_content_before(); ?>
<?php the_content(); ?>
<?php tha_entry_content_after(); ?>
</div><!-- .itemtext -->
<?php tha_entry_bottom(); ?>
</div>
<!-- Post Entry End -->
<?php tha_entry_after(); ?>
<?php endwhile; ?>
<?php tha_content_while_after(); ?>
<?php endif; ?>
<!-- Close The Loop -->
<?php tha_comments_before(); ?>
<!-- Post Comments Begin -->
<?php comments_template(); ?>
<!-- post Comments End -->
<?php tha_comments_after(); ?>
<?php tha_content_bottom(); ?>
</div><!-- #content -->
<?php tha_content_after(); ?>
<?php tha_sidebars_before(); ?>
<div id="sidebar">
<?php tha_sidebar_top(); ?>
<?php dynamic_sidebar( 'sidebar' ); ?>
<?php tha_sidebar_bottom(); ?>
</div><!-- #sidebar-->
<?php tha_sidebars_after(); ?>
<?php tha_footer_before(); ?>
<div id="footer">
<?php tha_footer_top(); ?>
<h3>Footer</h3>
<p>This is some sample footer text.</p>
<?php tha_footer_bottom(); ?>
</div><!-- #footer -->
<?php tha_footer_after(); ?>
<?php tha_body_bottom(); ?>
<?php wp_footer(); ?>
</body>
</html>