Created
October 5, 2012 03:26
-
-
Save scottnix/3837878 to your computer and use it in GitHub Desktop.
Thematic Fourth Subsidiary Widget, above subs though.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // add 4th subsidiary aside widget, currently set up to be a footer widget underneath the 3 subs | |
| function childtheme_add_subsidiary($content) { | |
| $content['Footer Widget Aside'] = array( | |
| 'admin_menu_order' => 250, | |
| 'args' => array ( | |
| 'name' => 'Banner Aside', | |
| 'id' => '4th-subsidiary-aside', | |
| 'description' => __('The 4th bottom widget area in the footer.', 'thematic'), | |
| 'before_widget' => thematic_before_widget(), | |
| 'after_widget' => thematic_after_widget(), | |
| 'before_title' => thematic_before_title(), | |
| 'after_title' => thematic_after_title(), | |
| ), | |
| 'action_hook' => 'thematic_footer', | |
| 'function' => 'childtheme_4th_subsidiary_aside', | |
| 'priority' => 1 | |
| ); | |
| return $content; | |
| } | |
| add_filter('thematic_widgetized_areas', 'childtheme_add_subsidiary', 50); | |
| // set structure for the 4th subsidiary aside | |
| function childtheme_4th_subsidiary_aside() { | |
| if ( is_active_sidebar('4th-subsidiary-aside') ) { | |
| echo thematic_before_widget_area('footer-widget'); | |
| dynamic_sidebar('4th-subsidiary-aside'); | |
| echo thematic_after_widget_area('footer-widget'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment