" . __( 'Social Widgets Options', SW_DEF_STRING) . ""; if($_POST['sw_hidden'] == 'Y') { $facebook = $_POST['sw_facebook']; $twitter = $_POST['sw_twitter']; $google = $_POST['sw_google']; $displayonposts = $_POST['sw_displayonposts']; $displayonpages = $_POST['sw_displayonpages']; $displayonhomepage = $_POST['sw_displayonhomepage']; $displayoncategories = $_POST['sw_displayoncategories']; $displayontags = $_POST['sw_displayontags']; $displayontaxonomies = $_POST['sw_displayontaxonomies']; $displayondates = $_POST['sw_displayondates']; $displayonauthors = $_POST['sw_displayonauthors']; $displayonsearches = $_POST['sw_displayonsearches']; $displayonattachments = $_POST['sw_displayonattachments']; $displayabovepost = $_POST['sw_displayabovepost']; $displaybelowpost = $_POST['sw_displaybelowpost']; $cssstyleall = $_POST['sw_cssstyleall']; $cssstylewidget = $_POST['sw_cssstylewidget']; $supportplugin = $_POST['sw_supportplugin']; ?>

' . __('Error while saving options.', SW_DEF_STRING) . '
'; _e('Please make sure that each position for a widget is only chosen once!', SW_DEF_STRING); } elseif ($facebook == 0 && $twitter == 0 && $google == 0) { echo '' . __('Error while saving options.', SW_DEF_STRING) . '
'; _e('At least one widget needs to be displayed!', SW_DEF_STRING); } elseif ($displayonposts != 1 && $displayonpages != 1 && $displayonhomepage != 1 && $displayoncategories != 1 && $displayontags != 1 && $displayontaxonomies != 1 && $displayondates != 1 && $displayonauthors != 1 && $displayonsearches != 1 && $displayonattachments != 1) { echo '' . __('Error while saving options.', SW_DEF_STRING) . '
'; _e('The widgets need to be displayed at least on one page!', SW_DEF_STRING); } elseif ($displayabovepost != 1 && $displaybelowpost != 1) { echo '' . __('Error while saving options.', SW_DEF_STRING) . '
'; _e('The widgets need to be displayed either above the posts, below them or both!', SW_DEF_STRING); } else { update_option('sw_facebook', $facebook); update_option('sw_twitter', $twitter); update_option('sw_google', $google); update_option('sw_displayonposts', $displayonposts); update_option('sw_displayonpages', $displayonpages); update_option('sw_displayonhomepage', $displayonhomepage); update_option('sw_displayoncategories', $displayoncategories); update_option('sw_displayontags', $displayontags); update_option('sw_displayontaxonomies', $displayontaxonomies); update_option('sw_displayondates', $displayondates); update_option('sw_displayonauthors', $displayonauthors); update_option('sw_displayonsearches', $displayonsearches); update_option('sw_displayonattachments', $displayonattachments); update_option('sw_displayabovepost', $displayabovepost); update_option('sw_displaybelowpost', $displaybelowpost); update_option('sw_cssstyleall', $cssstyleall); update_option('sw_cssstylewidget', $cssstylewidget); update_option('sw_supportplugin', $supportplugin); ?>

consider a donation to keep it free. Thank you!', SW_DEF_STRING), 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=donation%40breitschopp.de&item_name=Donation%20for%20Social%20Widgets%20WordPress%20Plug-In&no_shipping=0&no_note=1&tax=0¤cy_code=EUR&lc=CA&bn=PP%2dDonationsBF&charset=UTF%2d8'); ?>

" . __( 'Display Order of Social Widgets', SW_DEF_STRING) . ""; ?>

" . __( 'Display social widgets on these pages', SW_DEF_STRING) . ""; ?>
>
>
>
>
>
>
>
>
>
>


" . __( 'Display position of social widgets', SW_DEF_STRING) . ""; ?>
>
>

" . __( 'Other Settings', SW_DEF_STRING) . ""; ?>
>

' . __('Settings', SW_DEF_STRING) . ''; array_unshift($links, $settingslink); } return $links; } add_filter('plugin_action_links', 'sw_plugin_action_links', 10, 2); ?>