Commits

Doug Stewart committed ee4bf20

Adding latest THA rev.

  • Participants
  • Parent commits b713e03
  • Branches 1.4-develop

Comments (0)

Files changed (1)

File includes/functions/tha-theme-hooks.php

 * Theme Hook Alliance hook stub list.
 *
 * @package 		themehookalliance
-* @version		1.0-draft
-* @since		1.0-draft
+* @version		1.0
+* @since		1.0
 * @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
 *
 * This program is free software; you can redistribute it and/or modify
 * GNU General Public License for more details.
 */
 
-/**
- * Define the version of THA support, in case that becomes useful down the road.
- */
+/**
+ * Define the version of THA support, in case that becomes useful down the road.
+ */
 define( 'THA_HOOKS_VERSION', '1.0-draft' );
 
 /** 
 	 * When the 'all' parameter was set, specific hook types do not need to be
 	 * added explicitly.
 	 */
+	'html',
+	'body',
 	'head',
 	'header',
 	'content',
 	'sidebar',
 	'footer',
 	
-	/**
+	/**
 	 * If/when WordPress Core implements similar methodology, Themes and Plugins
 	 * will be able to check whether the version of THA supplied by the theme
 	 * supports Core hooks.
 ) );
 
 /**
- * Determines, whether the specific hook type is actually supported.
+ * Determines whether the specific hook type is actually supported.
  * 
  * Plugin developers should always check for the support of a <strong>specific</strong>
  * hook type before hooking a callback function to a hook of this type.
 add_filter( 'current_theme_supports-tha_hooks', 'tha_current_theme_supports', 10, 3 );
 
 /**
-* HTML <head> hooks
-* 
-* $tha_supports[] = 'head';
-*/
+ * HTML <html> hook
+ * Special case, useful for <DOCTYPE>, etc.
+ * $tha_supports[] = 'html;
+ */
+ function tha_html_before() {
+	 do_action( 'tha_html_before' );
+ }
+/**
+ * HTML <body> hooks
+ * $tha_supports[] = 'body';
+ */
+ function tha_body_top() {
+	 do_action( 'tha_body_top' );
+ }
+
+ function tha_body_bottom() {
+	 do_action( 'tha_body_bottom' );
+ }
+ 
+/**
+ * HTML <head> hooks
+ * 
+ * $tha_supports[] = 'head';
+ */
 function tha_head_top() {
 	do_action( 'tha_head_top' );
 }
 	do_action( 'tha_head_bottom' );
 }
 
-
 /**
 * Semantic <header> hooks
 *