__('Tabber Tabs Widget Area', 'slipfire'), 'id' => 'tabber_tabs', 'description' => __('Build your tabbed area by placing widgets here. !! IMPORTANT: DO NOT PLACE THE TABBER TABS WIDGET IN THIS AREA. BAD THINGS WILL HAPPEN !! Place the TABBER TABS widget in another widget area. ', 'slipfire'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); } // Load the widget area last so we don't effect other widget areas. add_action( 'wp_loaded', 'tabber_tabs_register_sidebar' ); /** * Register the widget. * * @uses register_widget() Registers individual widgets. * @link http://codex.wordpress.org/WordPress_Widgets_Api */ function tabber_tabs_load_widget() { //Load widget file. require_once( 'tabber-widget.php' ); // Register widget. register_widget( 'Slipfire_Widget_Tabber' ); } /** * Tabber css */ function tabber_tabs_css(){ echo ''; } /** * Temporarily hide the "tabber" class so it does not "flash" * on the page as plain HTML. After tabber runs, the class is changed * to "tabberlive" and it will appear. */ function tabber_tabs_temp_hide(){ echo ''; } /** * Admin notice */ // Function to check if there are widgets in the Tabber Tabs widget area // Thanks to Themeshaper: http://themeshaper.com/collapsing-wordpress-widget-ready-areas-sidebars/ function is_tabber_tabs_area_active( $index ){ global $wp_registered_sidebars; $widgetcolums = wp_get_sidebars_widgets(); if ($widgetcolums[$index]) return true; return false; } // Show the admin notice if there are no widgets in Tabber Tabs widget area if ( !is_tabber_tabs_area_active('tabber_tabs') ) { add_action( 'admin_notices', 'tabber_tabs_admin_notice' ); } // Here's the admin notice function tabber_tabs_admin_notice() { echo '

' . sprintf( __('Tabber Tabs Widget is activated. To start using, add some widgets to the Tabber Tabs Widget Area.', 'slipfire' ), admin_url( 'widgets.php' ) ) . '

'; } ?>