Syndication tab */ $syndication_providers = array( 'google' => 'Google', 'facebook' => 'Facebook', 'twitter' => 'Twitter', 'bing' => 'Bing Places', 'linkedin' => 'LinkedIn', 'bbb' => 'BBB', 'yahoo' => 'Yahoo Local', 'amazon' => 'Amazon', 'yelp' => 'Yelp', 'zillow' => 'Zillow', 'angie' => 'Angie\'s List', 'consumer' => 'Consumer Reports', 'citysearch' => 'City Search', 'dexknows' => 'Dex Knows', 'realself' => 'RealSelf', 'trustpilot' => 'Trustpilot', 'tripadvisor' => 'Tripadvisor', 'g2crowd' => 'G2 Crowd', 'trustradius' => 'TrustRadius', 'glassdoor' => 'GlassDoor', 'wordpress' => 'Wordpress', ); if (isset($_POST['save_swiftreviews_syndication_settings']) && wp_verify_nonce($_POST['save_swiftreviews_syndication_settings'], 'save_swiftreviews_syndication_settings')) { $update_flag = false; foreach ($syndication_providers as $syn_key => $syn_val): $syn_prov_key = "syn_" . $syn_key; $syn_prov_url = "syn_" . $syn_key . "_url"; $syn_prov = (isset($_POST[$syn_prov_key]) && !empty($_POST[$syn_prov_key])) ? 1 : 0; $syn_prov_url_val = (isset($_POST[$syn_prov_url]) && !empty($_POST[$syn_prov_url])) ? esc_url_raw($_POST[$syn_prov_url]) : ""; $update_prov = update_option('swiftreviews_' . $syn_prov_key, sanitize_text_field($syn_prov)); $update_url = update_option('swiftreviews_' . $syn_prov_url, $syn_prov_url_val); if ($update_prov || $update_url) { $update_flag = true; } endforeach; if ($update_flag) { wp_redirect(admin_url("admin.php?page=swift-reviews&tab=sr-syndication-settings&update=1")); die; } } ?>
$syn_val): ?>
Providers Status URL to your profile / review page
name="" id="" />