__('Display archives with some options','archives-widget-extended') ) ); register_widget_control('uc_archives','widget_uc_archives_control'); load_plugin_textdomain( 'archives-widget-extended', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); //Now create the webitect_widget_control function: function widget_uc_archives_control(){ if( isset($_POST['uc_archives_title']) ){ update_option('uc_archives_title', $_POST['uc_archives_title']); update_option('uc_archives_limit', $_POST['uc_archives_limit']); update_option('uc_archives_freq', $_POST['uc_archives_freq']); update_option('uc_archives_count', $_POST['uc_archives_count']); echo __('Options saved').'
'; } $uc_archives_title= get_option('uc_archives_title'); $uc_archives_limit= get_option('uc_archives_limit'); $uc_archives_freq= get_option('uc_archives_freq'); $uc_archives_count= get_option('uc_archives_count'); echo "

"; } function uc_display_archives($params){ $uc_archives_title= get_option('uc_archives_title'); $uc_archives_limit= get_option('uc_archives_limit'); $uc_archives_freq= get_option('uc_archives_freq'); $uc_archives_count= get_option('uc_archives_count'); ?>