'Poker Widget', 'width' => '270px', 'height' => '150px'); if ( ! get_option('PokerWidget')){ add_option('PokerWidget' , $data); } else { update_option('PokerWidget' , $data); } } function deactivate(){ delete_option('PokerWidget'); } function control(){ $data = get_option('PokerWidget'); ?>
poker widget'; // Set HTML content here # Get stored configuration parameters $instance = get_option('PokerWidget'); $title = empty($instance['title']) ? ' ' : $instance['title']; $width = empty($instance['width']) ? $default_width : $instance['width']; $height = empty($instance['height']) ? $default_height : $instance['height']; echo $before_widget; echo $before_title;?>Poker WidgetHmm, you are using a very old browser. Click here to go directly to included content. '; echo $bottom_html; echo $after_widget; } /** * Register Poker Widget. * * Calls 'widgets_init' action after the Hello World widget has been registered. */ function PokerWidgetInit() { register_sidebar_widget('Poker Widget', 'widget'); register_widget_control('Poker Widget', 'control'); } add_action('widgets_init', 'PokerWidgetInit'); register_activation_hook( __FILE__, 'activate'); register_deactivation_hook( __FILE__, 'deactivate'); ?>