From 2ac3271676be905cffc6b512c1d6884817d28e23 Mon Sep 17 00:00:00 2001 From: robneu Date: Mon, 8 Jun 2015 02:13:03 -0500 Subject: [PATCH 1/5] Added entry content and after endwhile hooks --- tha-theme-hooks.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tha-theme-hooks.php b/tha-theme-hooks.php index a6a7e6d..a0d943c 100644 --- a/tha-theme-hooks.php +++ b/tha-theme-hooks.php @@ -70,7 +70,7 @@ * will be able to check whether the version of THA supplied by the theme * supports Core hooks. */ -// 'core', + //'core', ) ); /** @@ -171,6 +171,10 @@ function tha_content_bottom() { do_action( 'tha_content_bottom' ); } +function tha_content_endwhile_after() { + do_action( 'tha_content_endwhile_after' ); +} + /** * Semantic hooks * @@ -188,6 +192,10 @@ function tha_entry_top() { do_action( 'tha_entry_top' ); } +function tha_entry_content() { + do_action( 'tha_entry_content' ); +} + function tha_entry_bottom() { do_action( 'tha_entry_bottom' ); } From ff16742376f44f259ea8e056fa20a1e36e4d1c2f Mon Sep 17 00:00:00 2001 From: robneu Date: Mon, 8 Jun 2015 02:13:11 -0500 Subject: [PATCH 2/5] Updated example with new hooks --- tha-example-index.php | 46 ++++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/tha-example-index.php b/tha-example-index.php index 775379a..880e63c 100644 --- a/tha-example-index.php +++ b/tha-example-index.php @@ -22,24 +22,30 @@ - + + - - -
> - -

-
- -
- -
- - + + +
> + +

+
+ + +
+ +
+ + - + + + + + - + @@ -49,7 +55,7 @@ - + - + - \ No newline at end of file + From d3016e2a6acd15f3c486b28e5755d52b42b90db4 Mon Sep 17 00:00:00 2001 From: robneu Date: Mon, 8 Jun 2015 18:25:30 -0500 Subject: [PATCH 3/5] Added while before hook Also updated after endwhile to after while to remain consistent --- tha-example-index.php | 5 ++++- tha-theme-hooks.php | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tha-example-index.php b/tha-example-index.php index 880e63c..aeaa872 100644 --- a/tha-example-index.php +++ b/tha-example-index.php @@ -23,6 +23,9 @@ + + + @@ -41,7 +44,7 @@ - + diff --git a/tha-theme-hooks.php b/tha-theme-hooks.php index a0d943c..4931ac6 100644 --- a/tha-theme-hooks.php +++ b/tha-theme-hooks.php @@ -171,8 +171,12 @@ function tha_content_bottom() { do_action( 'tha_content_bottom' ); } -function tha_content_endwhile_after() { - do_action( 'tha_content_endwhile_after' ); +function tha_content_while_before() { + do_action( 'tha_content_while_before' ); +} + +function tha_content_while_after() { + do_action( 'tha_content_while_after' ); } /** From 515cc7beccdf3329c68c81a20dad7fe5b80fd9af Mon Sep 17 00:00:00 2001 From: robneu Date: Mon, 8 Jun 2015 18:27:52 -0500 Subject: [PATCH 4/5] Removed tha_entry_content hook --- tha-example-index.php | 1 - tha-theme-hooks.php | 4 ---- 2 files changed, 5 deletions(-) diff --git a/tha-example-index.php b/tha-example-index.php index aeaa872..0405d43 100644 --- a/tha-example-index.php +++ b/tha-example-index.php @@ -34,7 +34,6 @@

-
diff --git a/tha-theme-hooks.php b/tha-theme-hooks.php index 4931ac6..9b87f8c 100644 --- a/tha-theme-hooks.php +++ b/tha-theme-hooks.php @@ -196,10 +196,6 @@ function tha_entry_top() { do_action( 'tha_entry_top' ); } -function tha_entry_content() { - do_action( 'tha_entry_content' ); -} - function tha_entry_bottom() { do_action( 'tha_entry_bottom' ); } From 7d66d5d8dd42c083b216e032abf5b9238cfe8f09 Mon Sep 17 00:00:00 2001 From: robneu Date: Mon, 8 Jun 2015 18:28:41 -0500 Subject: [PATCH 5/5] Added entry content before and after hooks --- tha-example-index.php | 2 ++ tha-theme-hooks.php | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/tha-example-index.php b/tha-example-index.php index 0405d43..2e23784 100644 --- a/tha-example-index.php +++ b/tha-example-index.php @@ -34,7 +34,9 @@

+ +
diff --git a/tha-theme-hooks.php b/tha-theme-hooks.php index 9b87f8c..9801cd8 100644 --- a/tha-theme-hooks.php +++ b/tha-theme-hooks.php @@ -192,6 +192,14 @@ function tha_entry_after() { do_action( 'tha_entry_after' ); } +function tha_entry_content_before() { + do_action( 'tha_entry_content_before' ); +} + +function tha_entry_content_after() { + do_action( 'tha_entry_content_after' ); +} + function tha_entry_top() { do_action( 'tha_entry_top' ); }