From 6a0dfbba0af68cdaf8bdf55d9d1addef7b0b4e03 Mon Sep 17 00:00:00 2001 From: Nico Mollet Date: Fri, 6 Oct 2017 11:49:16 +0200 Subject: [PATCH] * **New** - Hooks before content and after content * **Tweak** - Yoast breadcrumb now hooked to before content hook --- 404.php | 17 ++++++++++++++++- archive.php | 15 ++++++++++++++- inc/front/helpers.php | 11 +++++++++-- page-fullwidth.php | Bin 578 -> 773 bytes page-fullwidthnotitle.php | 16 +++++++++++++++- page-sitemap.php | 16 +++++++++++++++- page-styles.php | 15 ++++++++++++++- page-timeline.php | 16 +++++++++++++++- page.php | 16 +++++++++++++++- search.php | 16 +++++++++++++++- single.php | 16 +++++++++++++++- woocommerce.php | 16 +++++++++++++++- 12 files changed, 158 insertions(+), 12 deletions(-) diff --git a/404.php b/404.php index ed61bce..bdea286 100644 --- a/404.php +++ b/404.php @@ -12,12 +12,27 @@
- + + + +
diff --git a/archive.php b/archive.php index 8b2957c..9770baa 100644 --- a/archive.php +++ b/archive.php @@ -10,7 +10,12 @@
- +
diff --git a/inc/front/helpers.php b/inc/front/helpers.php index 0a6e5b7..027bc83 100644 --- a/inc/front/helpers.php +++ b/inc/front/helpers.php @@ -53,5 +53,12 @@ function stormbringer_bootstrap_grid(&$counter_posts = 0, $args = array(), $elem return $clearfix; } - - +/** + * Display Yoast Breadcrumb + * + * @hooked stormbringer_content_before + */ +function stormbringer_breadcrumb(){ + if ( function_exists( 'yoast_breadcrumb' ) ) : yoast_breadcrumb(); endif; +} +add_action('stormbringer_content_before', 'stormbringer_breadcrumb', 10); diff --git a/page-fullwidth.php b/page-fullwidth.php index c47c23ba5daed7be27c08964f5fcf739cab72e2d..b4d9f75f07691f7f8f2ff1cc40f3d5a6e289ed00 100644 GIT binary patch delta 299 zcmX@a(#p2MjIo}Vi<47dOAACPXektz+QV_%R_0OAsGWnx-MY7w#{aoUMuC0HBGMteJ6E}&I5`YD-ZKqjY+ J;$(3qZ2<3uS5g1~ delta 91 zcmZo=JH)cVjL};mGfhE5A+0noxg;|`FFv&*v$&*KLqWYVKe4zZKB*`*F(tXEG&f0I fK@$kA6wt*rG_4g<^HMU?tQ96-VCy diff --git a/page-fullwidthnotitle.php b/page-fullwidthnotitle.php index 985487d..d25e998 100644 --- a/page-fullwidthnotitle.php +++ b/page-fullwidthnotitle.php @@ -15,7 +15,14 @@
- + @@ -25,6 +32,13 @@ + +
diff --git a/page-sitemap.php b/page-sitemap.php index 2204902..26698c4 100644 --- a/page-sitemap.php +++ b/page-sitemap.php @@ -14,7 +14,14 @@
- + @@ -75,6 +82,13 @@ + +
diff --git a/page-styles.php b/page-styles.php index 769568f..6118c09 100644 --- a/page-styles.php +++ b/page-styles.php @@ -14,7 +14,14 @@
- + @@ -7611,6 +7618,12 @@ classes (e.g.,
+ diff --git a/page-timeline.php b/page-timeline.php index 6845bc4..4e46c20 100644 --- a/page-timeline.php +++ b/page-timeline.php @@ -14,7 +14,14 @@
- + @@ -97,6 +104,13 @@ + +
diff --git a/page.php b/page.php index e0f895f..29ef188 100644 --- a/page.php +++ b/page.php @@ -14,7 +14,14 @@
- + @@ -31,6 +38,13 @@ + +
diff --git a/search.php b/search.php index fce9fee..7488bbf 100644 --- a/search.php +++ b/search.php @@ -10,7 +10,14 @@
- +
diff --git a/single.php b/single.php index 20aeee7..27719e4 100644 --- a/single.php +++ b/single.php @@ -10,7 +10,14 @@
- + @@ -32,6 +39,13 @@ + +
diff --git a/woocommerce.php b/woocommerce.php index 48b63de..2706fd6 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -12,10 +12,24 @@
- + + +