Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #8 from chipbennett/master

Make tha-example-index.php more template-file like
  • Loading branch information...
commit 7532966e2f846de2809d8494a99c914531bfc552 2 parents 1a48386 + c3a8de4
Doug Stewart authored
Showing with 29 additions and 27 deletions.
  1. +29 −27 tha-example-index.php
56 tha-example-index.php
View
@@ -1,57 +1,59 @@
<html>
<head>
<?php tha_head_top(); ?>
- <title>This is an example page</title>
+ <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>
+<body <?php body_class(); ?>>
+
<?php tha_header_before(); ?>
<div id="header">
<?php tha_header_top(); ?>
- <h1>This is an example page</h1>
- <p class="dscription">This is to demonstrate a simple implementation of Theme Hook Alliance hooks.</p>
+ <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(); ?>
+ <?php tha_content_top(); ?>
<!-- This roughly encapsulates The Loop portion of the layout -->
- <?php tha_entry_before(); ?>
- <div class="entry">
- <?php tha_entry_top(); ?>
- <h2>This is the title</h2>
- <div class="itemtext">
- Lorem ipsum and all that rot.
- </div><!-- .itemtext -->
- <?php tha_entry_bottom(); ?>
- </div>
- <?php tha_entry_after(); ?>
+ <?php if ( have_posts() ) : 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 the_content(); ?>
+ </div><!-- .itemtext -->
+ <?php tha_entry_bottom(); ?>
+ </div>
+ <!-- Post Entry End -->
+ <?php tha_entry_after(); ?>
+
+ <?php endwhile; endif; ?>
<!-- Close The Loop -->
<?php tha_comments_before(); ?>
-
- <!-- comments_form() or similar goes here -->
-
+ <!-- Post Comments Begin -->
+ <?php comments_template(); ?>
+ <!-- post Comments End -->
<?php tha_comments_after(); ?>
- <?php tha_content_bottom(); ?>
+
+ <?php tha_content_bottom(); ?>
</div><!-- #content -->
<?php tha_content_after(); ?>
<?php tha_sidebars_before(); ?>
<div id="sidebar">
<?php tha_sidebar_top(); ?>
- <ul>
- <li><h4>Sidebar Widget #1</h4>
- <p>Widget #1 content</p>
- </li>
- <li><h4>Sidebar Widget #2</h4>
- <p>Widget #2 content</p>
- </li>
- </ul>
+ <?php dynamic_sidebar( 'sidebar' ); ?>
<?php tha_sidebar_bottom(); ?>
</div><!-- #sidebar-->
<?php tha_sidebars_after(); ?>
Please sign in to comment.
Something went wrong with that request. Please try again.