Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*-----------------------------------------------------------------------------------*/
- /* You can add custom functions below */
- /*-----------------------------------------------------------------------------------*/
- add_filter( 'woo_header_inside', 'woo_custom_social_links', 10 );
- function woo_custom_social_links () {
- global $woo_options;
- $html = '';
- // Open DIV tag.
- $html .= '
- <div id="social-links" class="social-links fr">' . "\n";
- // Add "heading" text.
- $html .= '<span class="heading-text">' . __( 'Follow', 'woothemes' ) . '→ </span>';
- $template_directory = get_template_directory_uri();
- $profiles = array(
- 'twitter' => __( 'Follow us on Twitter' , 'woothemes' ),
- 'facebook' => __( 'Connect on Facebook' , 'woothemes' ),
- 'youtube' => __( 'Watch on YouTube' , 'woothemes' ),
- 'flickr' => __( 'See photos on Flickr' , 'woothemes' ),
- 'linkedin' => __( 'Connect on LinkedIn' , 'woothemes' ),
- 'delicious' => __( 'Discover on Delicious' , 'woothemes' ),
- 'googleplus' => __( 'View Google+ profile' , 'woothemes' )
- );
- foreach ( $profiles as $key => $text ) {
- if ( isset( $woo_options['woo_connect_' . $key] ) && $woo_options['woo_connect_' . $key] != '' ) {
- $html .= '<span id="social-icon-' . $key . '" class="social-icon social-icon-' . $key . '"><a href="' . $woo_options['woo_connect_' . $key] . '" title="' . esc_attr( $text ) . '">' . '<img src="' . $template_directory . '/images/ico-social-' . $key . '.png" title="' . esc_attr( $text ) . '" alt="">' . '</a></span>' . "\n";
- }
- }
- $html .= '</div><!--/#social-links-->' . "\n";
- echo $html;
- } // End woo_custom_social_links()
- </div>
- // Add header container
- add_action( 'woo_header_before', 'header_container_start' );
- function header_container_start() { ?>
- <!--#header-container-->
- <div id="header-container">
- <?php
- }
- add_action( 'woo_header_after', 'header_container_end', 8 );
- function header_container_end() { ?>
- </div><!--/#header-container-->
- <?php
- }
- // Add navigation container
- add_action( 'woo_nav_before', 'nav_container_start' );
- function nav_container_start() { ?>
- <!--#nav-container-->
- <div id="nav-container">
- <?php
- }
- add_action( 'woo_nav_after', 'nav_container_end' );
- function nav_container_end() { ?>
- </div><!--/#nav-container-->
- <?php
- }
- // Add footer widget container
- add_action( 'woo_footer_top', 'footer_widgets_container_start', 8 );
- function footer_widgets_container_start() { ?>
- <!--#footer-widgets-container-->
- <div id="footer-widgets-container">
- <?php
- }
- add_action( 'woo_footer_before', 'footer_widgets_container_end' );
- function footer_widgets_container_end() { ?>
- </div><!--/#footer_widgets_container_end-->
- <?php
- }
- // Add footer container
- add_action( 'woo_footer_before', 'footer_container_start' );
- function footer_container_start() { ?>
- <!--#footer_container_start-->
- <div id="footer-container">
- <?php
- }
- add_action( 'woo_footer_after', 'footer_container_end' );
- function footer_container_end() { ?>
- </div><!--/#footer_container_end-->
- <?php
- }
- /*-----------------------------------------------------------------------------------*/
- /* Don't add any code below here or the sky will fall down */
- /*-----------------------------------------------------------------------------------*/
- ?>
Add Comment
Please, Sign In to add comment