Skip to content
Browse files

Adding skeleton files.

  • Loading branch information...
1 parent 4af1908 commit cfd7aab763bb634dc9089a5d9fe46b9155027493 @zamoose committed Jul 2, 2012
Showing with 35 additions and 3 deletions.
  1. +4 −3 README.md
  2. +21 −0 tha-example-index.php
  3. +10 −0 tha-theme-hooks.php
View
7 README.md
@@ -1,4 +1,5 @@
-themehookalliance
-=================
+= Theme Hook Alliance =
-Theme Hooks -- Let's get on it!
+Let's all come together and agree on a nice standard set of theme hooks.
+
+Original idea here: http://literalbarrage.org/blog/2012/06/29/wordpress-theme-hook-alliance
View
21 tha-example-index.php
@@ -0,0 +1,21 @@
+<html>
+<head>
+ <?php tha_head_top(); ?>
+ <title>This is an example page</title>
+ <?php tha_head_bottom(); ?>
+ <?php wp_head(); ?>
+</head>
+<body>
+ <?php tha_header_before(); ?>
+ <div id="header">
+
+ </div><!-- #header -->
+ <?php tha_header_after(); ?>
+
+ <div id="content">
+ <?php tha_content_top(); ?>
+
+ <?php tha_content_bottom(); ?>
+ </div><!-- #content -->
+</body>
+</html>
View
10 tha-theme-hooks.php
@@ -0,0 +1,10 @@
+<?php
+
+function tha_head_top() {
+ do_action( 'tha_head_top' );
+}
+
+function tha_head_bottom() {
+ do_action( 'tha_head_bottom' );
+}
+

0 comments on commit cfd7aab

Please sign in to comment.
Something went wrong with that request. Please try again.