Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Footer widgets */
- // Register sidebar
- register_sidebar(array(
- 'name' => 'Footer Widgets 1',
- 'id' => 'footer-widget-1',
- 'before_widget' => '<div id="%1$s" class="footer-item %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<span class="widget-title">',
- 'after_title' => '</span>',
- ));
- register_sidebar(array(
- 'name' => 'Footer Widgets 2',
- 'id' => 'footer-widget-2',
- 'before_widget' => '<div id="%1$s" class="footer-item %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<span class="widget-title">',
- 'after_title' => '</span>',
- ));
- register_sidebar(array(
- 'name' => 'Footer Widgets 3',
- 'id' => 'footer-widget-3',
- 'before_widget' => '<div id="%1$s" class="footer-item %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<span class="widget-title">',
- 'after_title' => '</span>',
- ));
- // inject widget areas into footer
- add_action('headway_before_footer', 'click_widgetized_footer');
- function click_widgetized_footer() {
- ?>
- <div id="footer-widgets-wrapper" class="clearfix">
- <!-- Back to top link -->
- <a id="more" href="#whitewrap">⇧ Back to top</a>
- <div id="footer-widgets">
- <div id="footer-widgets-1" class="footer-widgets-column">
- <?php
- if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-widget-1') ) echo '<p align="center">Footer Widget Area 1</p>';
- ?>
- </div>
- <div id="footer-widgets-2" class="footer-widgets-column">
- <?php
- if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-widget-2') ) echo '<p align="center">Footer Widget Area 2</p>';
- ?>
- </div>
- <div id="footer-widgets-3" class="footer-widgets-column">
- <?php
- if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-widget-3') ) echo '<p align="center">Footer Widget Area 3</p>';
- ?>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <?php
- }
- /* WooTumblog stuff */
- add_action('headway_before_post_title', 'mytumblog_before_title');
- add_action('headway_before_excerpt_title', 'mytumblog_before_title');
- function mytumblog_before_title(){
- woo_tumblog_the_title("entry-title");
- echo "<!--";
- }
- add_action('headway_after_post_title', 'mytumblog_after_title');
- add_action('headway_after_excerpt_title', 'mytumblog_after_title');
- function mytumblog_after_title(){
- echo "-->";
- }
- add_action('headway_entry_content_open', 'mytumblog_content');
- function mytumblog_content(){
- woo_tumblog_content();
- }
Add Comment
Please, Sign In to add comment