'widget_feedreading_blogroll', 'description' => __('widget_feedreading_blogroll widget description ') ); wp_register_sidebar_widget('widget_feedreading_blogroll', 'Live Blogroll', 'widget_feedreading_blogroll', $widget_ops); register_widget_control('widget_feedreading_blogroll', 'widget_feedreading_blogroll_control'); } /** * Register with options-page */ function feedreading_register_with_options() { if (function_exists('add_options_page')) { add_options_page('Feed reading Blogroll', 'Feed reading Blogroll', 8, basename(__FILE__), 'feedreading_options_subpanel'); } } /* * read http-data and set options. */ function feedreading_setOptions() { $feedreading_blogroll_settings = get_option('feedreading_blogroll_settings'); $linkCssClass = $feedreading_blogroll_settings['linkCssClass']; $bookmarkArgs = $feedreading_blogroll_settings['getBookmarkArgs']; $feedreadingTitle = $feedreading_blogroll_settings['feedreadingTitle']; $defaultIcon = $feedreading_blogroll_settings['defaultIcon']; $showLastUpdated = $feedreading_blogroll_settings['showLastUpdated']; $showIcon = $feedreading_blogroll_settings['showIcon']; $googleAPIKey = $feedreading_blogroll_settings['googleAPIKey']; if (isset($_POST['linkCssClass']) or isset($_POST['getBookmarkArgs']) or isset($_POST['showLastUpdated']) or isset($_POST['feedreadingTitle']) or isset($_POST['showIcon']) or isset($_POST['defaultIcon']) or isset($_POST['googleAPIKey'])) { $feedreading_blogroll_settings['linkCssClass'] = strip_tags(stripslashes($_POST['linkCssClass'])); $feedreading_blogroll_settings['getBookmarkArgs'] = strip_tags(stripslashes($_POST['getBookmarkArgs'])); $feedreading_blogroll_settings['showLastUpdated'] = strip_tags(stripslashes($_POST['showLastUpdated'])); $feedreading_blogroll_settings['feedreadingTitle'] = strip_tags(stripslashes($_POST['feedreadingTitle'])); $feedreading_blogroll_settings['defaultIcon'] = strip_tags(stripslashes($_POST['defaultIcon'])); $feedreading_blogroll_settings['showIcon'] = strip_tags(stripslashes($_POST['showIcon'])); $feedreading_blogroll_settings['googleAPIKey'] = strip_tags(stripslashes($_POST['googleAPIKey'])); update_option('feedreading_blogroll_settings', $feedreading_blogroll_settings); $feedreading_blogroll_settings['flash'] = __('Settings saved.'); } return $feedreading_blogroll_settings; } /* * render the option-panel */ function feedreading_options_subpanel(){ $feedreading_blogroll_settings = feedreading_setOptions(); $linkCssClass = $feedreading_blogroll_settings['linkCssClass']; $bookmarkArgs = $feedreading_blogroll_settings['getBookmarkArgs']; $feedreadingTitle = $feedreading_blogroll_settings['feedreadingTitle']; $showLastUpdated = $feedreading_blogroll_settings['showLastUpdated']; $showIcon = $feedreading_blogroll_settings['showIcon']; $defaultIcon = $feedreading_blogroll_settings['defaultIcon']; $feedreading_blogroll_flash = $feedreading_blogroll_settings['flash']; $googleAPIKey = $feedreading_blogroll_settings['googleAPIKey']; if ($feedreading_blogroll_flash != ''){ ?>

Feed Reading Blogroll


/>
/>