$value){ $settings[$method]['value'] = intval($value); } } $rssWidgetDisplay = (isset($_POST['chk_rss_wgt_display']) ? intval($_POST['chk_rss_wgt_display']) : 0); // rss widget if(empty($rssWidgetDisplay)){ // hide $rssWidgetChecked = false; WpsOption::updateOption('WSD-RSS-WGT-DISPLAY', 'no'); } else { // show $rssWidgetChecked = true; WpsOption::updateOption('WSD-RSS-WGT-DISPLAY', 'yes'); } // live traffic $liveTrafficEnabled = (isset($_POST['chk_lt_display']) ? intval($_POST['chk_lt_display']) : 0); if(empty($liveTrafficEnabled)){ // hide $enableLiveTraffic = false; WpsOption::updateOption(WpsSettings::ENABLE_LIVE_TRAFFIC, false); } else { // show $enableLiveTraffic = true; WpsOption::updateOption(WpsSettings::ENABLE_LIVE_TRAFFIC, true); wssLog("Live traffic tool enabled."); } WpsOption::updateOption(WpsSettings::PLUGIN_SETTINGS_OPTION_NAME, $settings); $settings = WpsOption::getOption(WpsSettings::PLUGIN_SETTINGS_OPTION_NAME); } //#! DELETE OPTIONS elseif(isset($_POST['deleteRssDataButton'])) { WpsOption::deleteOption(WpsSettings::FEED_DATA_OPTION_NAME); } } ?>