diff --git a/inc/sidebars.php b/inc/sidebars.php
index 52ec6c5e6..aaff5ca96 100644
--- a/inc/sidebars.php
+++ b/inc/sidebars.php
@@ -354,9 +354,30 @@ function largo_sidebar_span_class() {
return 'span4';
}
+/**
+ * Output the "Header Widget" sidebar
+ *
+ * @action largo_header_after_largo_header
+ * @since 0.5.5
+ */
function largo_header_widget_sidebar() {
if ( of_get_option('header_widget_enabled') ) {
dynamic_sidebar('header-widget');
}
}
add_action('largo_header_after_largo_header', 'largo_header_widget_sidebar');
+
+/**
+ * Output the "Article Bottom" sidebar
+ *
+ * @action largo_header_after_largo_header
+ * @since 0.5.5
+ */
+function largo_post_bottom_widget_area() {
+ if ( is_active_sidebar( 'article-bottom' ) ) {
+ echo '
';
+ dynamic_sidebar( 'article-bottom' );
+ echo '
';
+ }
+}
+add_action('largo_post_bottom_widget_area', 'largo_post_bottom_widget_area');
diff --git a/single-one-column.php b/single-one-column.php
index 3f48ca6b3..15b033d10 100644
--- a/single-one-column.php
+++ b/single-one-column.php
@@ -26,17 +26,12 @@
get_template_part( 'partials/content', $partial );
if ( $partial === 'single' ) {
- if ( is_active_sidebar( 'article-bottom' ) ) {
- do_action( 'largo_before_post_bottom_widget_area' );
+ do_action( 'largo_before_post_bottom_widget_area' );
- echo '';
- dynamic_sidebar( 'article-bottom' );
- echo '
';
+ do_action( 'largo_post_bottom_widget_area' );
- do_action( 'largo_after_post_bottom_widget_area' );
-
- }
+ do_action( 'largo_after_post_bottom_widget_area' );
do_action( 'largo_before_comments' );
diff --git a/single-two-column.php b/single-two-column.php
index 74eb47193..415a7b354 100644
--- a/single-two-column.php
+++ b/single-two-column.php
@@ -16,10 +16,9 @@
?>
-
';
- dynamic_sidebar( 'article-bottom' );
- echo '
';
+ do_action( 'largo_before_post_bottom_widget_area' );
- do_action( 'largo_after_post_bottom_widget_area' );
+ do_action( 'largo_post_bottom_widget_area' );
- }
+ do_action( 'largo_after_post_bottom_widget_area' );
- do_action('largo_before_comments');
+ do_action( 'largo_before_comments' );
comments_template( '', true );
- do_action('largo_after_comments');
+ do_action( 'largo_after_comments' );
}
endwhile;