/** * Returns Mail button. * * @since 1.0.0 * * @return button */ public static function mail_button($url, $more = '', $name) { wp_enqueue_script('jquery-magnific-popup'); global $us_popup_form; $name = $name ? '<div class="us_name"><span>' . $name . '</span></div>' : ''; $names_class = $name ? ' us_names' : ''; $random_string = UltimateSocialDeux::random_string(5); $body = UltimateSocialDeux::mail_replace_vars(UltimateSocialDeux::opt('us_mail_body', __('I read this article and found it very interesting, thought it might be something for you. The article is called', 'ultimate-social-deux') . ' ' . '{post_title} ' . ' ' . __('and is located at', 'ultimate-social-deux') . ' ' . ' {post_url}.'), $url, '', ''); $captcha_enable = UltimateSocialDeux::opt('us_mail_captcha_enable', 'yes'); $captcha = UltimateSocialDeux::opt('us_mail_captcha_question', __('What is the sum of 7 and 2?', 'ultimate-social-deux')); $us_share = UltimateSocialDeux::opt('us_mail_header', __('Share with your friends', 'ultimate-social-deux')); $your_name = __('Your Name', 'ultimate-social-deux'); $your_email = __('Your Email', 'ultimate-social-deux'); $recipient_email = __('Recipient Email', 'ultimate-social-deux'); $your_message = __('Enter a Message', 'ultimate-social-deux'); $captcha_label = __('Captcha', 'ultimate-social-deux'); $form = sprintf('<div class="us_wrapper us_modal mfp-hide" id="us-modal-%s">', $random_string); $form .= '<div class="us_heading">'; $form .= $us_share; $form .= '</div>'; $form .= '<div class="us_mail_response"></div>'; $form .= '<div class="us_mail_form_holder">'; $form .= '<form role="form" id="ajaxcontactform" class="form-group contact" action="" method="post" enctype="multipart/form-data">'; $form .= '<div class="form-group">'; $form .= sprintf('<label class="label" for="ajaxcontactyour_name">%s</label><br>', $your_name); $form .= sprintf('<input type="text" id="ajaxcontactyour_name" class="border-box form-control us_mail_your_name" name="%s" placeholder="%s"><br>', $your_name, $your_name); $form .= sprintf('<label class="label" for="ajaxcontactyour_email">%s</label><br>', $your_email); $form .= sprintf('<input type="email" id="ajaxcontactyour_email" class="border-box form-control us_mail_your_email" name="%s" placeholder="%s"><br>', $your_email, $your_email); $form .= sprintf('<label class="label" for="ajaxcontactrecipient_email">%s</label><br>', $recipient_email); $form .= sprintf('<input type="email" id="ajaxcontactrecipient_email" class="border-box form-control us_mail_recipient_email" name="%s" placeholder="%s"><br>', $recipient_email, $recipient_email); $form .= sprintf('<label class="label" for="ajaxcontactmessage">%s</label><br>', $your_message); $form .= sprintf('<textarea class="border-box form-control border-us_box us_mail_message" id="ajaxcontactmessage" name="%s" placeholder="%s">%s</textarea>', $your_message, $your_message, $body); $form .= sprintf('<input type="email" id="ajaxcontactrecipient_url" class="border-box form-control us_mail_url" style="display:none;" name="%s" placeholder="%s"><br>', $url, $url); $form .= '</div>'; if ($captcha_enable == 'yes') { $form .= '<div class="form-group">'; $form .= sprintf('<label class="label" for="ajaxcontactcaptcha">%s</label><br>', $captcha_label); $form .= sprintf('<input type="text" id="ajaxcontactcaptcha" class="border-box form-control us_mail_captcha" name="%s" placeholder="%s"><br>', $captcha_label, $captcha); $form .= '</div>'; } $form .= '</form>'; $form .= sprintf('<a class="btn btn-success us_mail_send">%s</a>', __('Submit', 'ultimate-social-deux')); $form .= '</div>'; $form .= '</div>'; $button = sprintf('<div class="us_mail%s%s us_button us_no_count"><a class="us_box" href="#us-modal-%s"><div class="us_share"><i class="us-icon-mail"></i></div>%s</a></div>', $more, $names_class, $random_string, $name); $button .= $form; return $button; }
public function us_fan_counts() { header('content-type: application/json'); $ajax_debug = UltimateSocialDeux::opt('us_ajax_debug', false); if (wp_verify_nonce($_REQUEST['nonce'], 'us_nonce') || $ajax_debug) { if (!class_exists('Requests')) { require_once plugin_dir_path(__FILE__) . '/includes/Requests.php'; Requests::register_autoloader(); } $args = $_REQUEST['args'] ? $_REQUEST['args'] : die('Args not set'); $args = urldecode(stripslashes($args)); $args = json_decode($args, true); $option = maybe_unserialize(get_option('us_fan_counts', array())); $json = array(); $networks = explode(',', $args['networks']); $networks = array_keys(array_flip($networks)); $timestamp = time(); foreach ($networks as $key => $network) { $option[$network]['count'] = isset($option[$network]['count']) ? $option[$network]['count'] : 0; $json[$network]['count'] = $option[$network]['count']; $option[$network]['timestamp'] = $timestamp; $id = ''; $key = ''; $secret = ''; $api = ''; $app = ''; $user = ''; $name = ''; $username = ''; switch ($network) { case 'facebook': $app_token = UltimateSocialDeux::opt('us_facebook_token'); $fb_token = $app_token ? "?access_token=" . $app_token : ''; $id = UltimateSocialDeux::opt('us_facebook_id'); if ($id) { $requests[$network] = array('url' => "https://graph.facebook.com/" . $id . $fb_token); } break; case 'twitter': $id = UltimateSocialDeux::opt('us_twitter_id'); $key = UltimateSocialDeux::opt('us_twitter_key'); $secret = UltimateSocialDeux::opt('us_twitter_secret'); if ($id && $key && $secret) { $token = get_option('us_fan_count_twitter_token'); if (!$token) { $credentials = $key . ':' . $secret; $encode = base64_encode($credentials); $args = array('method' => 'POST', 'httpversion' => '1.1', 'blocking' => true, 'headers' => array('Authorization' => 'Basic ' . $encode, 'Content-Type' => 'application/x-www-form-urlencoded;charset=UTF-8'), 'body' => array('grant_type' => 'client_credentials')); add_filter('https_ssl_verify', '__return_false'); $response = wp_remote_post('https://api.twitter.com/oauth2/token', $args); $keys = json_decode(wp_remote_retrieve_body($response)); if (!isset($keys->errors) && $keys) { update_option('us_fan_count_twitter_token', $keys->access_token); $token = $keys->access_token; } } $requests[$network] = array('url' => 'https://api.twitter.com/1.1/users/show.json?screen_name=' . $id, 'headers' => array('Authorization' => "Bearer {$token}")); } break; case 'google': $id = UltimateSocialDeux::opt('us_google_id'); $key = UltimateSocialDeux::opt('us_google_key'); if ($key && $id) { $requests[$network] = array('url' => "https://www.googleapis.com/plus/v1/people/" . $id . "?key=" . $key); } break; case 'behance': $id = UltimateSocialDeux::opt('us_behance_id'); $api = UltimateSocialDeux::opt('us_behance_api'); if ($id && $api) { $requests[$network] = array('url' => "http://www.behance.net/v2/users/" . $id . "?api_key=" . $api); } break; case 'delicious': $id = UltimateSocialDeux::opt('us_delicious_id'); if ($id) { $requests[$network] = array('url' => "http://feeds.delicious.com/v2/json/userinfo/" . $id); } break; case 'linkedin': $id = UltimateSocialDeux::opt('us_linkedin_id'); $app = UltimateSocialDeux::opt('us_linkedin_app'); $api = UltimateSocialDeux::opt('us_linkedin_api'); if (!class_exists('LinkedIn')) { require_once plugin_dir_path(__FILE__) . 'includes/linkedin/linkedin.php'; } if (!class_exists('OAuthServer')) { require_once plugin_dir_path(__FILE__) . 'includes/OAuth/OAuth.php'; } if ($id && $api && $id) { $count = 0; $opt = array('appKey' => $app, 'appSecret' => $api, 'callbackUrl' => ''); $api_call = new LinkedIn($opt); $response = $api_call->company(trim('universal-name=' . $id . ':(num-followers)')); if ($ajax_debug) { print_r($response); } if (false !== $response['success']) { $company = new SimpleXMLElement($response['linkedin']); if (isset($company->{'num-followers'})) { $count = intval(current($company->{'num-followers'})); } } $option[$network]['count'] = $count; $json[$network]['count'] = $count; } break; case 'youtube': $id = UltimateSocialDeux::opt('us_youtube_id'); if ($id) { $requests[$network] = array('url' => "http://gdata.youtube.com/feeds/api/users/" . $id . "?alt=json"); } break; case 'soundcloud': $id = UltimateSocialDeux::opt('us_soundcloud_id'); $user = UltimateSocialDeux::opt('us_soundcloud_username'); if ($id && $user) { $requests[$network] = array('url' => 'http://api.soundcloud.com/users/' . $user . '.json?client_id=' . $id); } break; case 'vimeo': $id = UltimateSocialDeux::opt('us_vimeo_id'); if ($id) { $requests[$network] = array('url' => "http://vimeo.com/api/v2/channel/" . $id . "/info.json"); } break; case 'dribbble': $id = UltimateSocialDeux::opt('us_dribbble_id'); if ($id) { $requests[$network] = array('url' => "http://api.dribbble.com/" . $id); } break; case 'github': $id = UltimateSocialDeux::opt('us_github_id'); if ($id) { $requests[$network] = array('url' => "https://api.github.com/users/" . $id); } break; case 'envato': $id = UltimateSocialDeux::opt('us_envato_id'); if ($id) { $requests[$network] = array('url' => "http://marketplace.envato.com/api/edge/user:"******".json"); } break; case 'instagram': $api = UltimateSocialDeux::opt('us_instagram_api'); $id = explode(".", $api); if ($api && $id) { $requests[$network] = array('url' => "https://api.instagram.com/v1/users/" . $id[0] . "/?access_token=" . $api); } break; case 'mailchimp': $name = UltimateSocialDeux::opt('us_mailchimp_name'); $api = UltimateSocialDeux::opt('us_mailchimp_api'); $count = 0; if ($name && $api) { if (!class_exists('MCAPI')) { require_once plugin_dir_path(__FILE__) . 'includes/MCAPI.class.php'; } $api = new MCAPI($api); $retval = $api->lists(); if ($ajax_debug) { print_r($retval); } if (count($retval['data']) > 0) { foreach ($retval['data'] as $list) { if ($list['name'] == $name) { $count = intval($list['stats']['member_count']); break; } } } } $option[$network]['count'] = intval($count); $json[$network]['count'] = intval($count); break; case 'vkontakte': $id = UltimateSocialDeux::opt('us_vkontakte_id'); if ($id) { $requests[$network] = array('url' => "http://api.vk.com/method/groups.getById?gid=" . $id . "&fields=members_count"); } break; case 'pinterest': $username = UltimateSocialDeux::opt('us_pinterest_username'); if ($username) { $requests[$network] = array('url' => 'http://www.pinterest.com/' . $username . '/'); } break; case 'flickr': $id = UltimateSocialDeux::opt('us_flickr_id'); $api = UltimateSocialDeux::opt('us_flickr_api'); if ($id && $api) { $requests[$network] = array('url' => "https://api.flickr.com/services/rest/?method=flickr.groups.getInfo&api_key=" . $api . "&group_id=" . $id . "&format=json&nojsoncallback=1"); } break; case 'feedpress': $manual = intval(UltimateSocialDeux::opt('us_feedpress_manual', 0)); $url = UltimateSocialDeux::opt('us_feedpress_url'); if (filter_var($url, FILTER_VALIDATE_URL)) { $requests[$network] = array('url' => $url); } if ($manual) { $option[$network]['count'] = $manual; $json[$network]['count'] = $manual; } break; default: unset($option[$network]); unset($json[$network]); break; } } $responses = !empty($requests) ? Requests::request_multiple($requests) : die('No requests sent.'); foreach ($responses as $network => $data) { switch ($network) { case 'facebook': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['likes']); $json[$network]['count'] = intval($content['likes']); } break; case 'twitter': case 'soundcloud': case 'dribbble': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['followers_count']); $json[$network]['count'] = intval($content['followers_count']); } break; case 'google': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['circledByCount']); $json[$network]['count'] = intval($content['circledByCount']); } break; case 'behance': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['user']['stats']['followers']); $json[$network]['count'] = intval($content['user']['stats']['followers']); } break; case 'delicious': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content[2]['n']); $json[$network]['count'] = intval($content[2]['n']); } break; case 'youtube': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['entry']['yt$statistics']['subscriberCount']); $json[$network]['count'] = intval($content['entry']['yt$statistics']['subscriberCount']); } break; case 'vimeo': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['total_subscribers']); $json[$network]['count'] = intval($content['total_subscribers']); } break; case 'github': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['followers']); $json[$network]['count'] = intval($content['followers']); } break; case 'envato': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['user']['followers']); $json[$network]['count'] = intval($content['user']['followers']); } break; case 'instagram': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['data']['counts']['followed_by']); $json[$network]['count'] = intval($content['data']['counts']['followed_by']); } break; case 'vkontakte': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['response'][0]['members_count']); $json[$network]['count'] = intval($content['response'][0]['members_count']); } break; case 'pinterest': if (isset($responses[$network]->body)) { $html = $responses[$network]->body; if ($ajax_debug) { print_r($html); } $doc = new DOMDocument(); @$doc->loadHTML($html); $metas = $doc->getElementsByTagName('meta'); for ($i = 0; $i < $metas->length; $i++) { $meta = $metas->item($i); if ($meta->getAttribute('name') == 'pinterestapp:followers') { $count = intval($meta->getAttribute('content')); break; } } $option[$network]['count'] = $count; $json[$network]['count'] = $count; } break; case 'flickr': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['group']['members']['_content']); $json[$network]['count'] = intval($content['group']['members']['_content']); } break; case 'feedpress': if (isset($responses[$network]->body)) { $content = $responses[$network]->body; if ($ajax_debug) { print_r($content); } $content = json_decode($content, true); $option[$network]['count'] = intval($content['subscribers']) + $manuel; $json[$network]['count'] = intval($content['subscribers']) + $manuel; } break; } } maybe_serialize(update_option('us_fan_counts', $option)); echo str_replace('\\/', '/', json_encode($json)); } else { die('Nonce not verified'); } die; }
define('ULTIMATE_SOCIAL_DEUX_VERSION', '5.1.2'); require_once plugin_dir_path(__FILE__) . 'public/class-ultimate-social-deux-public.php'; require_once plugin_dir_path(__FILE__) . 'public/class-ultimate-social-deux-buttons.php'; require_once plugin_dir_path(__FILE__) . 'public/class-ultimate-social-deux-shortcodes.php'; require_once plugin_dir_path(__FILE__) . 'public/class-ultimate-social-deux-placement.php'; require_once plugin_dir_path(__FILE__) . 'public/class-ultimate-social-deux-widget.php'; require_once plugin_dir_path(__FILE__) . 'public/class-ultimate-social-deux-visual-composer.php'; require_once plugin_dir_path(__FILE__) . 'public/class-ultimate-social-deux-fan-count.php'; require_once plugin_dir_path(__FILE__) . 'public/class-ultimate-social-deux-ajax.php'; register_activation_hook(__FILE__, array('UltimateSocialDeux', 'activate')); register_deactivation_hook(__FILE__, array('UltimateSocialDeux', 'deactivate')); add_action('plugins_loaded', array('UltimateSocialDeux', 'get_instance')); add_action('plugins_loaded', array('UltimateSocialDeuxButtons', 'get_instance')); add_action('plugins_loaded', array('UltimateSocialDeuxShortcodes', 'get_instance')); add_action('plugins_loaded', array('UltimateSocialDeuxPlacement', 'get_instance')); add_action('plugins_loaded', array('UltimateSocialDeuxFanCount', 'get_instance')); add_action('plugins_loaded', array('UltimateSocialDeuxAjax', 'get_instance')); /*----------------------------------------------------------------------------* * Dashboard and Administrative Functionality *----------------------------------------------------------------------------*/ if (is_admin() && (!defined('DOING_AJAX') || !DOING_AJAX)) { require_once plugin_dir_path(__FILE__) . 'admin/class-ultimate-social-deux-admin.php'; add_action('plugins_loaded', array('UltimateSocialDeuxAdmin', 'get_instance')); if (!class_exists('UltimateUpdater')) { require_once plugin_dir_path(__FILE__) . 'admin/includes/class.ultimate-updater.php'; } if (UltimateSocialDeux::opt('us_license', '')) { $updater = new UltimateUpdater('http://api.ultimate-wp.com/update-check', __FILE__, array('item' => 'Ultimate Social Deux', 'version' => ULTIMATE_SOCIAL_DEUX_VERSION, 'unique' => 'WoqUdWkA64w3Iy3A', 'license' => trim(UltimateSocialDeux::opt('us_license', '')))); } } require_once plugin_dir_path(__FILE__) . 'admin/includes/titan-framework/titan-framework-embedder.php';
public function options() { $titan = TitanFramework::getInstance('ultimate-social-deux'); require_once plugin_dir_path(__FILE__) . 'includes/class-option-us-license.php'; // Create an admin page with a menu $panel = $titan->createAdminPanel(array('name' => 'Ultimate Social', 'icon' => plugin_dir_url(__FILE__) . 'assets/img/icon.png')); $panelPlacement = $panel->createAdminPanel(array('name' => __('Placement', 'ultimate-social-deux'))); $panelStyling = $panel->createAdminPanel(array('name' => __('Styling', 'ultimate-social-deux'))); $panelMail = $panel->createAdminPanel(array('name' => __('Mail', 'ultimate-social-deux'))); $panelFanCount = $panel->createAdminPanel(array('name' => __('Fan Count', 'ultimate-social-deux'))); $panelLicense = $panel->createAdminPanel(array('name' => __('License', 'ultimate-social-deux'))); /** * Basic settings. */ $basicTab = $panel->createTab(array('name' => __('Basic', 'ultimate-social-deux'))); $basicTab->createOption(array('name' => __('Basic', 'ultimate-social-deux') . ' ' . __('Settings', 'ultimate-social-deux'), 'type' => 'heading')); $basicTab->createOption(array('id' => 'us_tweet_via', 'name' => __('Tweet via: @', 'ultimate-social-deux'), 'desc' => __('Write your Twitter username here to be mentioned in visitors tweets', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_tweet_via', 'us_basic', ''))); $basicTab->createOption(array('id' => 'us_vkontakte_appid', 'name' => __('VKontakte', 'ultimate-social-deux') . ' ' . __('App ID', 'ultimate-social-deux'), 'desc' => __('You need to register your site at vk.com to use the native vk.com button. Register your app abd obtain your ID', 'ultimate-social-deux') . ' ' . '<a href="http://vk.com/dev/Like" target="_blank">' . __('here', 'ultimate-social-deux') . '</a>.', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_vkontakte_appid', 'us_basic', ''))); $basicTab->createOption(array('id' => 'us_facebook_appid', 'name' => __('Facebook', 'ultimate-social-deux') . ' ' . __('App ID', 'ultimate-social-deux'), 'desc' => __('This is used for insights of how people are sharing your content.', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_facebook_appid', 'us_basic', ''))); $basicTab->createOption(array('id' => 'us_facebook_token', 'name' => __('Facebook', 'ultimate-social-deux') . ' ' . __('App Token', 'ultimate-social-deux'), 'desc' => __('If Facebook share counts are not updating, please set the App Token. You can get your App Token by going to', 'ultimate-social-deux') . ' <a href="https://developers.facebook.com/tools/explorer/" target="_blank">https://developers.facebook.com/tools/explorer/</a>, ' . __('selecting your Application and "Get App Token".', 'ultimate-social-deux'), 'type' => 'text', 'default' => '')); $basicTab->createOption(array('id' => 'us_total_shares_text', 'name' => __('Total Shares Button Text', 'ultimate-social-deux'), 'desc' => __('The text you want for the total shares button', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_total_shares_text', 'us_basic', 'Shares'))); $basicTab->createOption(array('id' => 'us_pinterest_include_galleries', 'name' => __('Include galleries for Pinterest?', 'ultimate-social-deux'), 'desc' => __('Include post/page galleries for the Pinterest sharer?', 'ultimate-social-deux'), 'type' => 'checkbox', 'default' => false)); $basicTab->createOption(array('id' => 'us_open_graph', 'name' => __('Add Open Graph tags', 'ultimate-social-deux'), 'desc' => __('This is used for some social networks to fetch data from your site', 'ultimate-social-deux'), 'type' => 'checkbox', 'default' => UltimateSocialDeux::opt_old('us_open_graph', 'us_basic', ''))); $basicTab->createOption(array('id' => 'us_bitly_access_token', 'name' => __('Bit.ly access token', 'ultimate-social-deux'), 'desc' => __('Bit.ly link shortener is available for Twitter and Buffer URLs. Get your access token by going to:', 'ultimate-social-deux') . ' ' . 'https://bitly.com/a/oauth_apps', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_bitly_access_token', 'us_basic', ''))); $basicTab->createOption(array('id' => 'us_counts_transient', 'name' => __('Caching for share buttons', 'ultimate-social-deux'), 'desc' => __("in seconds.", 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_counts_transient', 'us_basic', '600'))); $basicTab->createOption(array('id' => 'us_enqueue', 'name' => __('Style and script enqueuing', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_enqueue', 'us_basic', 'all_pages'), 'desc' => __("Some themes need to have the styles and scripts loaded on 'All Pages', some can load the styles and scripts on 'Individual Pages' where the buttons are visual.", 'ultimate-social-deux'), 'options' => array('all_pages' => __('All Pages', 'ultimate-social-deux'), 'individual' => __('Individual Pages', 'ultimate-social-deux'), 'manually' => __('Manually - no styles or scripts will load', 'ultimate-social-deux')))); $basicTab->createOption(array('id' => 'us_minified', 'name' => __('Minified Scripts', 'ultimate-social-deux'), 'desc' => __('Load minified scripts?', 'ultimate-social-deux'), 'type' => 'checkbox', 'default' => true)); $basicTab->createOption(array('id' => 'us_ajax_debug', 'name' => __('Debug AJAX?', 'ultimate-social-deux'), 'desc' => __('Do not turn this on if counts are being displayed', 'ultimate-social-deux'), 'type' => 'checkbox', 'default' => false)); $basicTab->createOption(array('type' => 'save', 'use_reset' => false)); $stickyTab = $panel->createTab(array('name' => __('Sticky', 'ultimate-social-deux'))); $stickyTab->createOption(array('id' => 'us_sticky_get_width_from', 'name' => __('Sticky get width from this element', 'ultimate-social-deux'), 'desc' => __('If using the sticky option from Placements Settings, you can set the width of the sticky container to match the parent element. Default: ".entry-content"', 'ultimate-social-deux'), 'type' => 'text', 'default' => '.entry-content')); $stickyTab->createOption(array('id' => 'us_sticky_offset', 'name' => __('Sticky offset from top of page', 'ultimate-social-deux'), 'desc' => __('Some sites have a fixed navbar. Preventing our sticky sharebar from showing. You can offset with this option. In px.', 'ultimate-social-deux'), 'type' => 'text', 'default' => '0')); $stickyTab->createOption(array('id' => 'us_sticky_background_color', 'name' => __('Background color for sticky container', 'ultimate-social-deux'), 'type' => 'color', 'default' => '#ffffff')); $stickyTab->createOption(array('type' => 'save', 'use_reset' => false)); $namesTab = $panel->createTab(array('name' => __('Names', 'ultimate-social-deux'))); $namesTab->createOption(array('name' => __('Names', 'ultimate-social-deux') . ' ' . __('Settings', 'ultimate-social-deux'), 'type' => 'heading')); $namesTab->createOption(array('id' => 'us_facebook_name', 'name' => __('Facebook', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Facebook', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Facebook', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_twitter_name', 'name' => __('Twitter', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Twitter', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Twitter', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_google_name', 'name' => __('Google Plus', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Google Plus', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Google+', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_pinterest_name', 'name' => __('Pinterest', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Pinterest', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Pinterest', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_linkedin_name', 'name' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('LinkedIn', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_delicious_name', 'name' => __('Delicious', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Delicious', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Delicious', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_stumble_name', 'name' => __('StumbleUpon', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('StumbleUpon', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('StumbleUpon', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_buffer_name', 'name' => __('Buffer', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Buffer', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Buffer', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_reddit_name', 'name' => __('Reddit', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Reddit', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Reddit', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_vkontakte_name', 'name' => __('VKontakte', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('VKontakte', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('VKontakte', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_mail_name', 'name' => __('Mail', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Mail', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Mail', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_love_name', 'name' => __('Love', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Love', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Love', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_pocket_name', 'name' => __('Pocket', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Pocket', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Pocket', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_print_name', 'name' => __('Printfriendly', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Printfriendly', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Print', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_flipboard_name', 'name' => __('Flipboard', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Flipboard', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Flipboard', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_ok_name', 'name' => __('Odnoklassniki', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Odnoklassniki', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Odnoklassniki', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_tumblr_name', 'name' => __('Tumblr', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Tumblr', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Tumblr', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_weibo_name', 'name' => __('Weibo', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Weibo', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Weibo', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_managewp_name', 'name' => __('ManageWP', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('ManageWP', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('ManageWP', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_xing_name', 'name' => __('Xing', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Xing', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Xing', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_whatsapp_name', 'name' => __('WhatsApp', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('WhatsApp', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('WhatsApp', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_meneame_name', 'name' => __('Meneame', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Meneame', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Meneame', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_digg_name', 'name' => __('Digg', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Digg', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Digg', 'ultimate-social-deux'))); $namesTab->createOption(array('id' => 'us_comments_name', 'name' => __('Comments', 'ultimate-social-deux') . ' ' . __('name', 'ultimate-social-deux'), 'desc' => __('Comments', 'ultimate-social-deux') . ' ' . __('button name', 'ultimate-social-deux'), 'type' => 'text', 'default' => __('Comments', 'ultimate-social-deux'))); $namesTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Styling settings. */ $colorTab = $panelStyling->createTab(array('name' => __('Color control', 'ultimate-social-deux'))); $customCssTab = $panelStyling->createTab(array('name' => __('Custom CSS', 'ultimate-social-deux'))); $colorTab->createOption(array('name' => __('Color control', 'ultimate-social-deux'), 'type' => 'heading')); $colorTab->createOption(array('id' => 'us_facebook_color', 'name' => __('Facebook', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Facebook', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_facebook_color', 'us_styling', '#3b5998'))); $colorTab->createOption(array('id' => 'us_facebook_color_hover', 'name' => __('Facebook', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Facebook', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_twitter_color', 'name' => __('Twitter', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Twitter', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_twitter_color', 'us_styling', '#00ABF0'))); $colorTab->createOption(array('id' => 'us_twitter_color_hover', 'name' => __('Twitter', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Twitter', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_googleplus_color', 'name' => __('Google Plus', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Google Plus', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_googleplus_color', 'us_styling', '#D95232'))); $colorTab->createOption(array('id' => 'us_googleplus_color_hover', 'name' => __('Google Plus', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Google Plus', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_pinterest_color', 'name' => __('Pinterest', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Pinterest', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_pinterest_color', 'us_styling', '#AE181F'))); $colorTab->createOption(array('id' => 'us_pinterest_color_hover', 'name' => __('Pinterest', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Pinterest', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_linkedin_color', 'name' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_linkedin_color', 'us_styling', '#1C86BC'))); $colorTab->createOption(array('id' => 'us_linkedin_color_hover', 'name' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_delicious_color', 'name' => __('Delicious', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Delicious', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_delicious_color', 'us_styling', '#66B2FD'))); $colorTab->createOption(array('id' => 'us_delicious_color_hover', 'name' => __('Delicious', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Delicious', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_stumble_color', 'name' => __('StumbleUpon', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('StumbleUpon', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_stumble_color', 'us_styling', '#E94B24'))); $colorTab->createOption(array('id' => 'us_stumble_color_hover', 'name' => __('StumbleUpon', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('StumbleUpon', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_buffer_color', 'name' => __('Buffer', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Buffer', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_buffer_color', 'us_styling', '#000000'))); $colorTab->createOption(array('id' => 'us_buffer_color_hover', 'name' => __('Buffer', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Buffer', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_reddit_color', 'name' => __('Reddit', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Reddit', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_reddit_color', 'us_styling', '#CEE3F8'))); $colorTab->createOption(array('id' => 'us_reddit_color_hover', 'name' => __('Reddit', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Reddit', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_vkontakte_color', 'name' => __('VKontakte', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('VKontakte', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_vkontakte_color', 'us_styling', '#537599'))); $colorTab->createOption(array('id' => 'us_vkontakte_color_hover', 'name' => __('VKontakte', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('VKontakte', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_mail_color', 'name' => __('Mail', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Mail', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_mail_color', 'us_styling', '#666666'))); $colorTab->createOption(array('id' => 'us_mail_color_hover', 'name' => __('Mail', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Mail', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_love_color', 'name' => __('Love', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Love', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_love_color', 'us_styling', '#FF0000'))); $colorTab->createOption(array('id' => 'us_love_color_hover', 'name' => __('Love', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Love', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_pocket_color', 'name' => __('Pocket', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Pocket', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_pocket_color', 'us_styling', '#ee4056'))); $colorTab->createOption(array('id' => 'us_pocket_color_hover', 'name' => __('Pocket', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Pocket', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_print_color', 'name' => __('Printfriendlyfriendly', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Printfriendlyfriendly', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_print_color', 'us_styling', '#60d0d4'))); $colorTab->createOption(array('id' => 'us_print_color_hover', 'name' => __('Printfriendlyfriendly', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Printfriendlyfriendly', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_flipboard_color', 'name' => __('Flipboard', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Flipboard', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_flipboard_color', 'us_styling', '#c10000'))); $colorTab->createOption(array('id' => 'us_flipboard_color_hover', 'name' => __('Flipboard', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Flipboard', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_ok_color', 'name' => __('Odnoklassniki', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Odnoklassniki', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_ok_color', 'us_styling', '#f2720c'))); $colorTab->createOption(array('id' => 'us_ok_color_hover', 'name' => __('Odnoklassniki', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Odnoklassniki', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_weibo_color', 'name' => __('Weibo', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Weibo', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_weibo_color', 'us_styling', '#e64141'))); $colorTab->createOption(array('id' => 'us_weibo_color_hover', 'name' => __('Weibo', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Weibo', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_managewp_color', 'name' => __('ManageWP', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('ManageWP', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_managewp_color', 'us_styling', '#098ae0'))); $colorTab->createOption(array('id' => 'us_managewp_color_hover', 'name' => __('ManageWP', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('ManageWP', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_xing_color', 'name' => __('Xing', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Xing', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_xing_color', 'us_styling', '#026466'))); $colorTab->createOption(array('id' => 'us_xing_color_hover', 'name' => __('Xing', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Xing', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_whatsapp_color', 'name' => __('WhatsApp', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('WhatsApp', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_whatsapp_color', 'us_styling', '#34af23'))); $colorTab->createOption(array('id' => 'us_whatsapp_color_hover', 'name' => __('WhatsApp', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('WhatsApp', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_meneame_color', 'name' => __('Meneame', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Meneame', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_meneame_color', 'us_styling', '#ff6400'))); $colorTab->createOption(array('id' => 'us_meneame_color_hover', 'name' => __('Meneame', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Meneame', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_digg_color', 'name' => __('Digg', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Digg', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_digg_color', 'us_styling', '#000000'))); $colorTab->createOption(array('id' => 'us_digg_color_hover', 'name' => __('Digg', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Digg', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_comments_color', 'name' => __('Comments', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Comments', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_comments_color', 'us_styling', '#b69823'))); $colorTab->createOption(array('id' => 'us_comments_color_hover', 'name' => __('Comments', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Comments', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_more_color', 'name' => __('More', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('More', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => '#53B27C')); $colorTab->createOption(array('id' => 'us_more_color_hover', 'name' => __('More', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('More', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_tumblr_color', 'name' => __('Tumblr', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Tumblr', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_tumblr_color', 'us_styling', '#529ecc'))); $colorTab->createOption(array('id' => 'us_tumblr_color_hover', 'name' => __('Tumblr', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Tumblr', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_feedly_color', 'name' => __('Feedly', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Feedly', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_feedly_color', 'us_styling', '#414141'))); $colorTab->createOption(array('id' => 'us_feedly_color_hover', 'name' => __('Feedly', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Feedly', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_youtube_color', 'name' => __('Youtube', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Youtube', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_youtube_color', 'us_styling', '#cc181e'))); $colorTab->createOption(array('id' => 'us_youtube_color_hover', 'name' => __('Youtube', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Youtube', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_vimeo_color_hover', 'name' => __('Vimeo', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Vimeo', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_dribbble_color', 'name' => __('Dribbble', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Dribbble', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_dribbble_color', 'us_styling', '#f72b7f'))); $colorTab->createOption(array('id' => 'us_dribbble_color_hover', 'name' => __('Dribbble', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Dribbble', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_envato_color', 'name' => __('Envato', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Envato', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_envato_color', 'us_styling', '#82b540'))); $colorTab->createOption(array('id' => 'us_envato_color_hover', 'name' => __('Envato', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Envato', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_github_color', 'name' => __('Github', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Github', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_github_color', 'us_styling', '#201e1f'))); $colorTab->createOption(array('id' => 'us_github_color_hover', 'name' => __('Github', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Github', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_soundcloud_color', 'name' => __('SoundCloud', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('SoundCloud', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_soundcloud_color', 'us_styling', '#ff6f00'))); $colorTab->createOption(array('id' => 'us_soundcloud_color_hover', 'name' => __('SoundCloud', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('SoundCloud', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_behance_color', 'name' => __('Behance', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Behance', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_behance_color', 'us_styling', '#1769ff'))); $colorTab->createOption(array('id' => 'us_behance_color_hover', 'name' => __('Behance', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Behance', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_instagram_color', 'name' => __('Instagram', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Instagram', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_instagram_color', 'us_styling', '#48769c'))); $colorTab->createOption(array('id' => 'us_instagram_color_hover', 'name' => __('Instagram', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Instagram', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_feedpress_color', 'name' => __('Feedpress', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Feedpress', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_feedpress_color', 'us_styling', '#ffafaf'))); $colorTab->createOption(array('id' => 'us_feedpress_color_hover', 'name' => __('Feedpress', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Feedpress', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_mailchimp_color', 'name' => __('Mailchimp', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Mailchimp', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_mailchimp_color', 'us_styling', '#6dc5dc'))); $colorTab->createOption(array('id' => 'us_mailchimp_color_hover', 'name' => __('Mailchimp', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Mailchimp', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_flickr_color', 'name' => __('Flickr', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Flickr', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_flickr_color', 'us_styling', '#0062dd'))); $colorTab->createOption(array('id' => 'us_flickr_color_hover', 'name' => __('Flickr', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Flickr', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_members_color', 'name' => __('Members', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Members', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_members_color', 'us_styling', '#0ab071'))); $colorTab->createOption(array('id' => 'us_members_color_hover', 'name' => __('Members', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Members', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('id' => 'us_posts_color', 'name' => __('Posts', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Posts', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt_old('us_posts_color', 'us_styling', '#924e2a'))); $colorTab->createOption(array('id' => 'us_posts_color_hover', 'name' => __('Posts', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('Color', 'ultimate-social-deux'), 'desc' => __('Posts', 'ultimate-social-deux') . ' ' . __('hover', 'ultimate-social-deux') . ' ' . __('button color', 'ultimate-social-deux'), 'type' => 'color', 'default' => UltimateSocialDeux::opt('us_hover_color', '#008000'))); $colorTab->createOption(array('type' => 'save', 'use_reset' => false)); $customCssTab->createOption(array('name' => __('Custom CSS', 'ultimate-social-deux'), 'type' => 'heading')); $customCssTab->createOption(array('id' => 'us_custom_css', 'name' => __('Custom CSS field', 'ultimate-social-deux'), 'type' => 'code', 'default' => UltimateSocialDeux::opt_old('us_custom_css', 'us_styling'))); $customCssTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Mail settings. */ $panelMail->createOption(array('name' => __('Mail', 'ultimate-social-deux') . ' ' . __('Settings', 'ultimate-social-deux'), 'type' => 'heading')); $panelMail->createOption(array('id' => 'us_mail_header', 'name' => __('Popup header:', 'ultimate-social-deux'), 'desc' => __('The heading of the mail popup', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_mail_header', 'us_mail', __('Share with your friends', 'ultimate-social-deux')))); $panelMail->createOption(array('id' => 'us_mail_from_email', 'name' => __('Mail From:', 'ultimate-social-deux'), 'desc' => __('Email address that mail form will email from', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_mail_from_email', 'us_mail', get_bloginfo('admin_email')))); $panelMail->createOption(array('id' => 'us_mail_from_name', 'name' => __('Mail From Name:', 'ultimate-social-deux'), 'desc' => __('Name that mail form will email with', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_mail_from_name', 'us_mail', get_bloginfo('name')))); $panelMail->createOption(array('id' => 'us_mail_subject', 'name' => __('Mail Subject:', 'ultimate-social-deux'), 'desc' => __('Subject of email.', 'ultimate-social-deux') . '<br>' . __('Available tags is:', 'ultimate-social-deux') . '<br>{post_title} -> ' . __('Outputs title of the post or page', 'ultimate-social-deux') . '<br>{post_url} -> ' . __('Outputs url of the post or page', 'ultimate-social-deux') . '<br>{post_author} -> ' . __('Outputs the author of the post or page', 'ultimate-social-deux') . '<br>{site_title} -> ' . __('Outputs the title of the Wordpress Install', 'ultimate-social-deux') . '<br>{site_url} -> ' . __('Outputs the url of the Wordpress Install', 'ultimate-social-deux') . '<br>{sender_name} -> ' . __('Outputs the senders name', 'ultimate-social-deux') . '<br>{sender_email} -> ' . __('Outputs the senders email', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_mail_subject', 'us_mail', __('A visitor of', 'ultimate-social-deux') . ' ' . '{site_title}' . ' ' . __('shared', 'ultimate-social-deux') . ' ' . '{post_title}' . ' ' . __('with you.', 'ultimate-social-deux')))); $panelMail->createOption(array('id' => 'us_mail_body', 'name' => __('Mail Message:', 'ultimate-social-deux'), 'desc' => __('Body of email.', 'ultimate-social-deux') . ' ' . __('Available tags is:', 'ultimate-social-deux') . '<br>{post_title} -> ' . __('Outputs title of the post or page', 'ultimate-social-deux') . '<br>{post_url} -> ' . __('Outputs url of the post or page', 'ultimate-social-deux') . '<br>{post_author} -> ' . __('Outputs the author of the post or page', 'ultimate-social-deux') . '<br>{site_title} -> ' . __('Outputs the title of the Wordpress Install', 'ultimate-social-deux') . '<br>{site_url} -> ' . __('Outputs the url of the Wordpress Install', 'ultimate-social-deux'), 'type' => 'textarea', 'default' => UltimateSocialDeux::opt_old('us_mail_body', 'us_mail', __('I read this article and found it very interesting, thought it might be something for you. The article is called', 'ultimate-social-deux') . ' ' . '{post_title}' . ' ' . __('and is located at', 'ultimate-social-deux') . ' ' . '{post_url}.'))); $panelMail->createOption(array('id' => 'us_mail_bcc_enable', 'name' => __('Send copy to admin?', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_mail_bcc_enable', 'us_mail', 'no'), 'options' => array('yes' => __('Yes', 'ultimate-social-deux'), 'no' => __('No', 'ultimate-social-deux')))); $panelMail->createOption(array('id' => 'us_mail_captcha_enable', 'name' => __('Enable Captcha?', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_mail_captcha_enable', 'us_mail', 'yes'), 'options' => array('yes' => __('Yes', 'ultimate-social-deux'), 'no' => __('No', 'ultimate-social-deux')))); $panelMail->createOption(array('id' => 'us_mail_captcha_question', 'name' => __('Captcha Question', 'ultimate-social-deux'), 'desc' => __('Your captcha question', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_mail_captcha_question', 'us_mail', __('What is the sum of 7 and 2?', 'ultimate-social-deux')))); $panelMail->createOption(array('id' => 'us_mail_captcha_answer', 'name' => __('Captcha Answer', 'ultimate-social-deux'), 'desc' => __('Your captcha answer', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_mail_captcha_answer', 'us_mail', '9'))); $panelMail->createOption(array('id' => 'us_mail_try', 'name' => __('Try message', 'ultimate-social-deux'), 'desc' => __('Before the message has been sent', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_mail_try', 'us_mail', __('Trying to send email...', 'ultimate-social-deux')))); $panelMail->createOption(array('id' => 'us_mail_success', 'name' => __('Success message', 'ultimate-social-deux'), 'desc' => __('For successful sent email', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_mail_success', 'us_mail', __('Great work! Your message was sent.', 'ultimate-social-deux')))); $panelMail->createOption(array('type' => 'save', 'use_reset' => false)); /** * Placement settings. */ $floatingTab = $panelPlacement->createTab(array('name' => __('Floating', 'ultimate-social-deux'))); /** * Floating placement. */ $floatingTab->createOption(array('name' => __('Floating', 'ultimate-social-deux'), 'type' => 'heading')); $floatingTab->createOption(array('id' => 'us_floating_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => $this->unset_names(UltimateSocialDeux::buttons_array()), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_floating', 'us_placement', array())))); $floatingTab->createOption(array('id' => 'us_floating_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $floatingTab->createOption(array('id' => 'us_floating_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_frontpage' => __('Hide on frontpage?', 'ultimate-social-deux'), 'hide_blogpage' => __('Hide on blog page?', 'ultimate-social-deux'), 'hide_posts' => __('Hide on posts?', 'ultimate-social-deux'), 'hide_pages' => __('Hide on pages?', 'ultimate-social-deux'), 'hide_archive' => __('Hide on archive pages?', 'ultimate-social-deux'), 'hide_search' => __('Hide on search pages?', 'ultimate-social-deux'), 'hide_mobile' => __('Hide on mobile?', 'ultimate-social-deux'), 'hide_desktop' => __('Hide on desktop?', 'ultimate-social-deux'), 'hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_floating', 'us_placement', array())))); $floatingTab->createOption(array('id' => 'us_floating_url', 'name' => __('Custom URL', 'ultimate-social-deux'), 'desc' => __('You might want a static URL for your floating buttons across your site.', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_floating_url', 'us_placement'))); $floatingTab->createOption(array('id' => 'us_floating_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Floating buttons on posts/pages with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'default' => UltimateSocialDeux::opt_old('us_floating_exclude', 'us_placement'))); $floatingTab->createOption(array('id' => 'us_floating_speed', 'name' => __('Floating animation speed', 'ultimate-social-deux'), 'desc' => __('in ms', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_floating_speed', 'us_placement', '1000'))); $floatingTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Pages top placement. */ $pagesTab = $panelPlacement->createTab(array('name' => __('Pages', 'ultimate-social-deux'))); $pagesTab->createOption(array('name' => __('Top of Pages', 'ultimate-social-deux'), 'type' => 'heading')); $pagesTab->createOption(array('id' => 'us_pages_top_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_pages_top', 'us_placement', array())))); $pagesTab->createOption(array('id' => 'us_pages_top_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux'), 'sticky' => __('Make sticky?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_pages_top', 'us_placement', array())))); $pagesTab->createOption(array('id' => 'us_pages_top_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $pagesTab->createOption(array('id' => 'us_pages_top_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_pages_top_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $pagesTab->createOption(array('id' => 'us_pages_top_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of pages with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pages_top_exclude', 'us_placement'))); $pagesTab->createOption(array('id' => 'us_pages_top_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pages_top_share_text', 'us_placement'))); $pagesTab->createOption(array('id' => 'us_pages_top_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pages_top_margin_top', 'us_placement'))); $pagesTab->createOption(array('id' => 'us_pages_top_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pages_top_margin_bottom', 'us_placement'))); $pagesTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Pages bottom placement. */ $pagesTab->createOption(array('name' => __('Bottom of Pages', 'ultimate-social-deux'), 'type' => 'heading')); $pagesTab->createOption(array('id' => 'us_pages_bottom_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_pages_bottom', 'us_placement', array())))); $pagesTab->createOption(array('id' => 'us_pages_bottom_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $pagesTab->createOption(array('id' => 'us_pages_bottom_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_pages_bottom', 'us_placement', array())))); $pagesTab->createOption(array('id' => 'us_pages_bottom_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_pages_bottom_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $pagesTab->createOption(array('id' => 'us_pages_bottom_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on bottom of pages with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pages_bottom_exclude', 'us_placement'))); $pagesTab->createOption(array('id' => 'us_pages_bottom_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pages_bottom_share_text', 'us_placement'))); $pagesTab->createOption(array('id' => 'us_pages_bottom_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pages_bottom_margin_top', 'us_placement'))); $pagesTab->createOption(array('id' => 'us_pages_bottom_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pages_bottom_margin_bottom', 'us_placement'))); $pagesTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Post excerpts top placement. */ $excerptsTab = $panelPlacement->createTab(array('name' => __('Excerpts', 'ultimate-social-deux'))); $excerptsTab->createOption(array('name' => __('Top of Post excerpts', 'ultimate-social-deux') . ' - ' . __('Your theme may not support this.', 'ultimate-social-deux'), 'type' => 'heading')); $excerptsTab->createOption(array('id' => 'us_excerpts_top_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_excerpts_top', 'us_placement', array())))); $excerptsTab->createOption(array('id' => 'us_excerpts_top_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $excerptsTab->createOption(array('id' => 'us_excerpts_top_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_excerpts_top', 'us_placement', array())))); $excerptsTab->createOption(array('id' => 'us_excerpts_top_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_excerpts_top_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $excerptsTab->createOption(array('id' => 'us_excerpts_top_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of post excerpts with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_excerpts_top_exclude', 'us_placement'))); $excerptsTab->createOption(array('id' => 'us_excerpts_top_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_excerpts_top_share_text', 'us_placement'))); $excerptsTab->createOption(array('id' => 'us_excerpts_top_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_excerpts_top_margin_top', 'us_placement'))); $excerptsTab->createOption(array('id' => 'us_excerpts_top_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_excerpts_top_margin_bottom', 'us_placement'))); $excerptsTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Post excerpts bottom placement. */ $excerptsTab->createOption(array('name' => __('Bottom of Post excerpts', 'ultimate-social-deux') . ' - ' . __('Your theme may not support this.', 'ultimate-social-deux'), 'type' => 'heading')); $excerptsTab->createOption(array('id' => 'us_excerpts_bottom', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_excerpts_bottom', 'us_placement', array())))); $excerptsTab->createOption(array('id' => 'us_excerpts_bottom_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $excerptsTab->createOption(array('id' => 'us_excerpts_bottom_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_excerpts_bottom', 'us_placement', array())))); $excerptsTab->createOption(array('id' => 'us_excerpts_bottom_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_excerpts_bottom_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $excerptsTab->createOption(array('id' => 'us_excerpts_bottom_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on bottom of post excerpts with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_excerpts_bottom_exclude', 'us_placement'))); $excerptsTab->createOption(array('id' => 'us_excerpts_bottom_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_excerpts_bottom_share_text', 'us_placement'))); $excerptsTab->createOption(array('id' => 'us_excerpts_bottom_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_excerpts_bottom_margin_top', 'us_placement'))); $excerptsTab->createOption(array('id' => 'us_excerpts_bottom_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_excerpts_bottom_margin_bottom', 'us_placement'))); $excerptsTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Posts top placement. */ $postsTab = $panelPlacement->createTab(array('name' => __('Posts', 'ultimate-social-deux'))); $postsTab->createOption(array('name' => __('Top of Posts', 'ultimate-social-deux'), 'type' => 'heading')); $postsTab->createOption(array('id' => 'us_posts_top_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_posts_top', 'us_placement', array())))); $postsTab->createOption(array('id' => 'us_posts_top_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $postsTab->createOption(array('id' => 'us_posts_top_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux'), 'hide_blogpage' => __('Hide on blog page?', 'ultimate-social-deux'), 'hide_archive' => __('Hide on archive pages?', 'ultimate-social-deux'), 'hide_search' => __('Hide on search pages?', 'ultimate-social-deux'), 'hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux'), 'sticky' => __('Make sticky?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_posts_top', 'us_placement', array())))); $postsTab->createOption(array('id' => 'us_posts_top_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_posts_top_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $postsTab->createOption(array('id' => 'us_posts_top_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of posts with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_posts_top_exclude', 'us_placement'))); $postsTab->createOption(array('id' => 'us_posts_top_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_posts_top_share_text', 'us_placement'))); $postsTab->createOption(array('id' => 'us_posts_top_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_posts_top_margin_top', 'us_placement'))); $postsTab->createOption(array('id' => 'us_posts_top_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_posts_top_margin_bottom', 'us_placement'))); $postsTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Posts bottom placement. */ $postsTab->createOption(array('name' => __('Bottom of Posts', 'ultimate-social-deux'), 'type' => 'heading')); $postsTab->createOption(array('id' => 'us_posts_bottom_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_posts_bottom', 'us_placement', array())))); $postsTab->createOption(array('id' => 'us_posts_bottom_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $postsTab->createOption(array('id' => 'us_posts_bottom_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux'), 'hide_blogpage' => __('Hide on blog page?', 'ultimate-social-deux'), 'hide_archive' => __('Hide on archive pages?', 'ultimate-social-deux'), 'hide_search' => __('Hide on search pages?', 'ultimate-social-deux'), 'hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_posts_bottom', 'us_placement', array())))); $postsTab->createOption(array('id' => 'us_posts_bottom_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_posts_bottom_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $postsTab->createOption(array('id' => 'us_posts_bottom_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on bottom of posts with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_posts_bottom_exclude', 'us_placement'))); $postsTab->createOption(array('id' => 'us_posts_bottom_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_posts_bottom_share_text', 'us_placement'))); $postsTab->createOption(array('id' => 'us_posts_bottom_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_posts_bottom_margin_top', 'us_placement'))); $postsTab->createOption(array('id' => 'us_posts_bottom_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_posts_bottom_margin_bottom', 'us_placement'))); $postsTab->createOption(array('type' => 'save', 'use_reset' => false)); if (class_exists('Woocommerce')) { /** * WooCommerce top placement. */ $woocommerceTab = $panelPlacement->createTab(array('name' => __('WooCommerce', 'ultimate-social-deux'))); $woocommerceTab->createOption(array('name' => __('WooCommerce Top', 'ultimate-social-deux'), 'type' => 'heading')); $woocommerceTab->createOption(array('id' => 'us_woocommerce_top_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_woocommerce_top', 'us_placement', array())))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_top_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $woocommerceTab->createOption(array('id' => 'us_woocommerce_top_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_woocommerce_top', 'us_placement', array())))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_top_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_woocommerce_top_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_top_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of WooCommerce products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_woocommerce_top_exclude', 'us_placement'))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_top_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_woocommerce_top_share_text', 'us_placement'))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_top_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_woocommerce_top_margin_top', 'us_placement'))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_top_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_woocommerce_top_margin_bottom', 'us_placement'))); $woocommerceTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * WooCommerce bottom placement. */ $woocommerceTab->createOption(array('name' => __('WooCommerce Bottom', 'ultimate-social-deux'), 'type' => 'heading')); $woocommerceTab->createOption(array('id' => 'us_woocommerce_bottom_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_woocommerce_bottom', 'us_placement', array())))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_bottom_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $woocommerceTab->createOption(array('id' => 'us_woocommerce_bottom_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_woocommerce_bottom', 'us_placement', array())))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_bottom_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_woocommerce_bottom_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_bottom_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on bottom of WooCommerce products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_woocommerce_bottom_exclude', 'us_placement'))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_bottom_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_woocommerce_bottom_share_text', 'us_placement'))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_bottom_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_woocommerce_bottom_margin_top', 'us_placement'))); $woocommerceTab->createOption(array('id' => 'us_woocommerce_bottom_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_woocommerce_bottom_margin_bottom', 'us_placement'))); $woocommerceTab->createOption(array('type' => 'save', 'use_reset' => false)); } if (class_exists('Jigoshop')) { /** * Jigoshop top placement. */ $jigoshopTab = $panelPlacement->createTab(array('name' => __('Jigoshop', 'ultimate-social-deux'))); $jigoshopTab->createOption(array('name' => __('Jigoshop Top', 'ultimate-social-deux'), 'type' => 'heading')); $jigoshopTab->createOption(array('id' => 'us_jigoshop_top_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_jigoshop_top', 'us_placement', array())))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_top_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $jigoshopTab->createOption(array('id' => 'us_jigoshop_top_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_jigoshop_top', 'us_placement', array())))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_top_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_jigoshop_top_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_top_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of Jigoshop products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_jigoshop_top_exclude', 'us_placement'))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_top_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_jigoshop_top_share_text', 'us_placement'))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_top_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_jigoshop_top_margin_top', 'us_placement'))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_top_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_jigoshop_top_margin_bottom', 'us_placement'))); $jigoshopTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Jigoshop bottom placement. */ $jigoshopTab->createOption(array('name' => __('Jigoshop Bottom', 'ultimate-social-deux'), 'type' => 'heading')); $jigoshopTab->createOption(array('id' => 'us_jigoshop_bottom_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_jigoshop_bottom', 'us_placement', array())))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_bottom_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $jigoshopTab->createOption(array('id' => 'us_jigoshop_bottom_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_jigoshop_bottom', 'us_placement', array())))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_bottom_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_jigoshop_bottom_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_bottom_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on bottom of Jigoshop products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_jigoshop_bottom_exclude', 'us_placement'))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_bottom_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_jigoshop_bottom_share_text', 'us_placement'))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_bottom_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_jigoshop_bottom_margin_top', 'us_placement'))); $jigoshopTab->createOption(array('id' => 'us_jigoshop_bottom_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_jigoshop_bottom_margin_bottom', 'us_placement'))); $jigoshopTab->createOption(array('type' => 'save', 'use_reset' => false)); } if (class_exists('IT_Exchange')) { /** * iThemes Exchange top placement. */ $exchangeTab = $panelPlacement->createTab(array('name' => __('iThemes Exchange', 'ultimate-social-deux'))); $exchangeTab->createOption(array('name' => __('iThemes Exchange Top', 'ultimate-social-deux'), 'type' => 'heading')); $exchangeTab->createOption(array('id' => 'us_exchange_top_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => array())); $exchangeTab->createOption(array('id' => 'us_exchange_top_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $exchangeTab->createOption(array('id' => 'us_exchange_top_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => array())); $exchangeTab->createOption(array('id' => 'us_exchange_top_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => 'center', 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $exchangeTab->createOption(array('id' => 'us_exchange_top_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of iThemes Exchange products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text')); $exchangeTab->createOption(array('id' => 'us_exchange_top_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text')); $exchangeTab->createOption(array('id' => 'us_exchange_top_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $exchangeTab->createOption(array('id' => 'us_exchange_top_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $exchangeTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * iThemes Exchange bottom placement. */ $exchangeTab->createOption(array('name' => __('iThemes Exchange Bottom', 'ultimate-social-deux'), 'type' => 'heading')); $exchangeTab->createOption(array('id' => 'us_exchange_bottom_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => array())); $exchangeTab->createOption(array('id' => 'us_exchange_bottom_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $exchangeTab->createOption(array('id' => 'us_exchange_bottom_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => array())); $exchangeTab->createOption(array('id' => 'us_exchange_bottom_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => 'center', 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $exchangeTab->createOption(array('id' => 'us_exchange_bottom_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on bottom of iThemes Exchange products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text')); $exchangeTab->createOption(array('id' => 'us_exchange_bottom_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text')); $exchangeTab->createOption(array('id' => 'us_exchange_bottom_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $exchangeTab->createOption(array('id' => 'us_exchange_bottom_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $exchangeTab->createOption(array('type' => 'save', 'use_reset' => false)); } if (class_exists('Easy_Digital_Downloads')) { /** * Easy Digital Downloads top placement. */ $eddTab = $panelPlacement->createTab(array('name' => __('Easy Digital Downloads', 'ultimate-social-deux'))); $eddTab->createOption(array('name' => __('Easy Digital Downloads Top', 'ultimate-social-deux'), 'type' => 'heading')); $eddTab->createOption(array('id' => 'us_edd_top_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_edd_top', 'us_placement', array())))); $eddTab->createOption(array('id' => 'us_edd_top_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $eddTab->createOption(array('id' => 'us_edd_top_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_edd_top', 'us_placement', array())))); $eddTab->createOption(array('id' => 'us_edd_top_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_edd_top_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $eddTab->createOption(array('id' => 'us_edd_top_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of Easy Digital Downloads products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_edd_top_exclude', 'us_placement'))); $eddTab->createOption(array('id' => 'us_edd_top_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_edd_top_share_text', 'us_placement'))); $eddTab->createOption(array('id' => 'us_edd_top_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_edd_top_margin_top', 'us_placement'))); $eddTab->createOption(array('id' => 'us_edd_top_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_edd_top_margin_bottom', 'us_placement'))); $eddTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Easy Digital Downloads bottom placement. */ $eddTab->createOption(array('name' => __('Easy Digital Downloads Bottom', 'ultimate-social-deux'), 'type' => 'heading')); $eddTab->createOption(array('id' => 'us_edd_bottom_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_edd_bottom', 'us_placement', array())))); $eddTab->createOption(array('id' => 'us_edd_bottom_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $eddTab->createOption(array('id' => 'us_edd_bottom_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_edd_bottom', 'us_placement', array())))); $eddTab->createOption(array('id' => 'us_edd_bottom_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_edd_bottom_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $eddTab->createOption(array('id' => 'us_edd_bottom_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on bottom of Easy Digital Downloads products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_edd_bottom_exclude', 'us_placement'))); $eddTab->createOption(array('id' => 'us_edd_bottom_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_edd_bottom_share_text', 'us_placement'))); $eddTab->createOption(array('id' => 'us_edd_bottom_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_edd_bottom_margin_top', 'us_placement'))); $eddTab->createOption(array('id' => 'us_edd_bottom_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_edd_bottom_margin_bottom', 'us_placement'))); $eddTab->createOption(array('type' => 'save', 'use_reset' => false)); } if (class_exists('bbPress')) { /** * bbPress before topic placement. */ $bbpressTab = $panelPlacement->createTab(array('name' => __('bbPress', 'ultimate-social-deux'))); $bbpressTab->createOption(array('name' => __('bbPress Before Topics', 'ultimate-social-deux'), 'type' => 'heading')); $bbpressTab->createOption(array('id' => 'us_bbpress_before_topics_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => array())); $bbpressTab->createOption(array('id' => 'us_bbpress_before_topics_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $bbpressTab->createOption(array('id' => 'us_bbpress_before_topics_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => array())); $bbpressTab->createOption(array('id' => 'us_bbpress_before_topics_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => 'center', 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $bbpressTab->createOption(array('id' => 'us_bbpress_before_topics_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of bbPress products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_before_topics_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_before_topics_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_before_topics_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * bbPress after replies placement. */ $bbpressTab->createOption(array('name' => __('bbPress After Topics', 'ultimate-social-deux'), 'type' => 'heading')); $bbpressTab->createOption(array('id' => 'us_bbpress_after_topics_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => array())); $bbpressTab->createOption(array('id' => 'us_bbpress_after_topics_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $bbpressTab->createOption(array('id' => 'us_bbpress_after_topics_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => array())); $bbpressTab->createOption(array('id' => 'us_bbpress_after_topics_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => 'center', 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $bbpressTab->createOption(array('id' => 'us_bbpress_after_topics_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of bbPress products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_after_topics_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_after_topics_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_after_topics_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * bbPress before replies placement. */ $bbpressTab->createOption(array('name' => __('bbPress Before Replies', 'ultimate-social-deux'), 'type' => 'heading')); $bbpressTab->createOption(array('id' => 'us_bbpress_before_replies_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => array())); $bbpressTab->createOption(array('id' => 'us_bbpress_before_replies_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $bbpressTab->createOption(array('id' => 'us_bbpress_before_replies_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => array())); $bbpressTab->createOption(array('id' => 'us_bbpress_before_replies_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => 'center', 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $bbpressTab->createOption(array('id' => 'us_bbpress_before_replies_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of bbPress products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_before_replies_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_before_replies_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_before_replies_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * bbPress after replies placement. */ $bbpressTab->createOption(array('name' => __('bbPress After Replies', 'ultimate-social-deux'), 'type' => 'heading')); $bbpressTab->createOption(array('id' => 'us_bbpress_after_replies_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => array())); $bbpressTab->createOption(array('id' => 'us_bbpress_after_replies_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $bbpressTab->createOption(array('id' => 'us_bbpress_after_replies_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => array())); $bbpressTab->createOption(array('id' => 'us_bbpress_after_replies_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => 'center', 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $bbpressTab->createOption(array('id' => 'us_bbpress_after_replies_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of bbPress products with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_after_replies_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_after_replies_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('id' => 'us_bbpress_after_replies_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $bbpressTab->createOption(array('type' => 'save', 'use_reset' => false)); } if (class_exists('BuddyPress')) { /** * BuddyPress top placement. */ $buddypressTab = $panelPlacement->createTab(array('name' => __('BuddyPress', 'ultimate-social-deux'))); $buddypressTab->createOption(array('name' => __('BuddyPress Group', 'ultimate-social-deux'), 'type' => 'heading')); $buddypressTab->createOption(array('id' => 'us_buddypress_top_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => array())); $buddypressTab->createOption(array('id' => 'us_buddypress_top_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $buddypressTab->createOption(array('id' => 'us_buddypress_top_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => array())); $buddypressTab->createOption(array('id' => 'us_buddypress_top_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => 'center', 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $buddypressTab->createOption(array('id' => 'us_buddypress_top_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text')); $buddypressTab->createOption(array('id' => 'us_buddypress_top_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $buddypressTab->createOption(array('id' => 'us_buddypress_top_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $buddypressTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * BuddyPress Activity placement. */ $buddypressTab->createOption(array('name' => __('BuddyPress Activity', 'ultimate-social-deux'), 'type' => 'heading')); $buddypressTab->createOption(array('id' => 'us_buddypress_activity_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => array())); $buddypressTab->createOption(array('id' => 'us_buddypress_activity_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $buddypressTab->createOption(array('id' => 'us_buddypress_activity_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => array())); $buddypressTab->createOption(array('id' => 'us_buddypress_activity_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => 'center', 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $buddypressTab->createOption(array('id' => 'us_buddypress_activity_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text')); $buddypressTab->createOption(array('id' => 'us_buddypress_activity_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $buddypressTab->createOption(array('id' => 'us_buddypress_activity_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text')); $buddypressTab->createOption(array('type' => 'save', 'use_reset' => false)); } /** * Custom Post Types top placement. */ $cptTab = $panelPlacement->createTab(array('name' => __('Custom Post Types', 'ultimate-social-deux'))); $cptTab->createOption(array('name' => __('Top of Custom Post Types', 'ultimate-social-deux'), 'type' => 'heading')); $cptTab->createOption(array('id' => 'us_cpt_top_cpt', 'name' => __('CPT Slugs', 'ultimate-social-deux'), 'desc' => __('Add the slugs of the CPT\'s that you want the buttons to display on. Comma seperated: "books, movies, links"', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cpt_top_cpt', 'us_placement'))); $cptTab->createOption(array('id' => 'us_cpt_top_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_cpt_top', 'us_placement', array())))); $cptTab->createOption(array('id' => 'us_cpt_top_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $cptTab->createOption(array('id' => 'us_cpt_top_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_cpt_top', 'us_placement', array())))); $cptTab->createOption(array('id' => 'us_cpt_top_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_cpt_top_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $cptTab->createOption(array('id' => 'us_cpt_top_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on top of custom post types with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cpt_top_exclude', 'us_placement'))); $cptTab->createOption(array('id' => 'us_cpt_top_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cpt_top_share_text', 'us_placement'))); $cptTab->createOption(array('id' => 'us_cpt_top_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cpt_top_margin_top', 'us_placement'))); $cptTab->createOption(array('id' => 'us_cpt_top_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cpt_top_margin_bottom', 'us_placement'))); $cptTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Custom Post Types bottom placement. */ $cptTab->createOption(array('name' => __('Bottom of Custom Post Types', 'ultimate-social-deux'), 'type' => 'heading')); $cptTab->createOption(array('id' => 'us_cpt_bottom_cpt', 'name' => __('CPT Slugs', 'ultimate-social-deux'), 'desc' => __('Add the slugs of the CPT\'s that you want the buttons to display on. Comma seperated: "books, movies, links"', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cpt_bottom_cpt', 'us_placement'))); $cptTab->createOption(array('id' => 'us_cpt_bottom_buttons', 'name' => __('Buttons', 'ultimate-social-deux'), 'type' => 'sortable', 'options' => UltimateSocialDeux::buttons_array(), 'default' => self::unset_options(UltimateSocialDeux::opt_old('us_cpt_bottom', 'us_placement', array())))); $cptTab->createOption(array('id' => 'us_cpt_bottom_skin', 'name' => __('Skin', 'ultimate-social-deux'), 'type' => 'select', 'options' => UltimateSocialDeux::skins_array())); $cptTab->createOption(array('id' => 'us_cpt_bottom_options', 'name' => __('Options', 'ultimate-social-deux'), 'type' => 'multicheck', 'options' => array('hide_count' => __('Hide count numbers?', 'ultimate-social-deux'), 'native' => __('Native buttons on hover for Facebook, Google+ and VKontakte?', 'ultimate-social-deux')), 'default' => self::unset_buttons(UltimateSocialDeux::opt_old('us_cpt_bottom', 'us_placement', array())))); $cptTab->createOption(array('id' => 'us_cpt_bottom_align', 'name' => __('Align', 'ultimate-social-deux'), 'type' => 'radio', 'default' => UltimateSocialDeux::opt_old('us_cpt_bottom_align', 'us_placement', 'center'), 'options' => array('left' => __('Left', 'ultimate-social-deux'), 'center' => __('Center', 'ultimate-social-deux'), 'right' => __('Right', 'ultimate-social-deux')))); $cptTab->createOption(array('id' => 'us_cpt_bottom_exclude', 'name' => __('Exclude', 'ultimate-social-deux'), 'desc' => __('Exclude Buttons on bottom of custom post types with these IDs? Comma seperated:', 'ultimate-social-deux') . ' "42, 12, 4"', 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cpt_bottom_exclude', 'us_placement'))); $cptTab->createOption(array('id' => 'us_cpt_bottom_share_text', 'name' => __('Share text', 'ultimate-social-deux'), 'desc' => __('Text to be added left of the buttons', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cpt_bottom_share_text', 'us_placement'))); $cptTab->createOption(array('id' => 'us_cpt_bottom_margin_top', 'name' => __('Margin above buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cpt_bottom_margin_top', 'us_placement'))); $cptTab->createOption(array('id' => 'us_cpt_bottom_margin_bottom', 'name' => __('Margin below buttons', 'ultimate-social-deux'), 'desc' => __('In pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cpt_bottom_margin_bottom', 'us_placement'))); $cptTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * Fan Count settings. */ $panelFanCount->createOption(array('name' => __('Cache', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_cache', 'name' => __('How long should we cache the counts?', 'ultimate-social-deux'), 'desc' => __('in hours', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_cache', 'us_fan_count', '2'))); $panelFanCount->createOption(array('name' => __('Facebook', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_facebook_id', 'name' => __('Facebook', 'ultimate-social-deux') . ' ' . __('Page ID', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Your ID is what comes after', 'ultimate-social-deux') . ' ' . 'http://facebook.com/', 'default' => UltimateSocialDeux::opt_old('us_facebook_id', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Twitter', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_twitter_id', 'name' => __('Twitter', 'ultimate-social-deux') . ' ' . __('handle', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_twitter_id', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_twitter_key', 'name' => __('Twitter', 'ultimate-social-deux') . ' ' . __('App key', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Register your App at', 'ultimate-social-deux') . ' ' . 'https://apps.twitter.com/', 'default' => UltimateSocialDeux::opt_old('us_twitter_key', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_twitter_secret', 'name' => __('Twitter', 'ultimate-social-deux') . ' ' . __('App secret', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_twitter_secret', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Google Plus', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_google_id', 'name' => __('Google Plus', 'ultimate-social-deux') . ' ' . __('Page ID', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Your ID is what comes after', 'ultimate-social-deux') . ' ' . 'https://plus.google.com/', 'default' => UltimateSocialDeux::opt_old('us_google_id', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_google_key', 'name' => __('Google', 'ultimate-social-deux') . ' ' . __('API key', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Register your App at', 'ultimate-social-deux') . ' ' . 'https://console.developers.google.com/project' . '. ' . __('You need enable the Google+ API in your App.', 'ultimate-social-deux'), 'default' => UltimateSocialDeux::opt_old('us_google_key', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('LinkedIn', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_linkedin_id', 'name' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('Company ID', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Your ID is what comes after', 'ultimate-social-deux') . ' ' . 'https://linkedin.com/company/', 'default' => UltimateSocialDeux::opt_old('us_linkedin_id', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_linkedin_app', 'name' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('API key', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Register your App at', 'ultimate-social-deux') . ' ' . 'https://www.linkedin.com/secure/developer', 'default' => UltimateSocialDeux::opt_old('us_linkedin_app', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_linkedin_api', 'name' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('App Secret', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_linkedin_api', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('YouTube', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_youtube_type', 'name' => __('YouTube', 'ultimate-social-deux') . ' ' . __('Type', 'ultimate-social-deux'), 'type' => 'radio', 'default' => 'user', 'options' => array('user' => __('User', 'ultimate-social-deux'), 'channel' => __('Channel', 'ultimate-social-deux')))); $panelFanCount->createOption(array('id' => 'us_youtube_id', 'name' => __('YouTube', 'ultimate-social-deux') . ' ' . __('ID', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('You need to enter your Google API key in the Google+ settings above and enable the YouTube Data API in your App.', 'ultimate-social-deux'), 'default' => UltimateSocialDeux::opt_old('us_youtube_id', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Vimeo', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_vimeo_id', 'name' => __('Vimeo', 'ultimate-social-deux') . ' ' . __('Channel ID', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Your ID is what comes after', 'ultimate-social-deux') . ' ' . 'http://vimeo.com/channels/', 'default' => UltimateSocialDeux::opt_old('us_vimeo_id', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Behance', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_behance_id', 'name' => __('Behance', 'ultimate-social-deux') . ' ' . __('username', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Your ID is what comes after', 'ultimate-social-deux') . ' ' . 'http://behance.net/', 'default' => UltimateSocialDeux::opt_old('us_behance_id', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_behance_api', 'name' => __('Behance', 'ultimate-social-deux') . ' ' . __('API key', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Register your App at', 'ultimate-social-deux') . ' ' . 'https://www.behance.net/dev/register', 'default' => UltimateSocialDeux::opt_old('us_behance_api', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('SoundCloud', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_soundcloud_id', 'name' => __('SoundCloud', 'ultimate-social-deux') . ' ' . __('Client ID', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Register your App at', 'ultimate-social-deux') . ' ' . 'http://soundcloud.com/you/apps', 'default' => UltimateSocialDeux::opt_old('us_soundcloud_id', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_soundcloud_username', 'name' => __('SoundCloud username', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_soundcloud_username', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Dribbble', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_dribbble_id', 'name' => __('Dribbble', 'ultimate-social-deux') . ' ' . __('Page ID', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Your ID is what comes after', 'ultimate-social-deux') . ' ' . 'https://dribbble.com/', 'default' => UltimateSocialDeux::opt_old('us_dribbble_id', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Github', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_github_id', 'name' => __('Github', 'ultimate-social-deux') . ' ' . __('username', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_github_id', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Envato', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_envato_id', 'name' => __('Envato', 'ultimate-social-deux') . ' ' . __('username', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_envato_id', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Delicious', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_delicious_id', 'name' => __('Delicious', 'ultimate-social-deux') . ' ' . __('username', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_delicious_id', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Instagram', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_instagram_api', 'name' => __('Instagram', 'ultimate-social-deux') . ' ' . __('Access Token', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Find your access token by following', 'ultimate-social-deux') . ' ' . '<a href="http://www.pinceladasdaweb.com.br/instagram/access-token/" target="_blank">' . __('this link.', 'ultimate-social-deux') . '</a>', 'default' => UltimateSocialDeux::opt_old('us_instagram_api', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_instagram_username', 'name' => __('Instagram', 'ultimate-social-deux') . ' ' . __('username', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_instagram_username', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('VKontakte', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_vkontakte_id', 'name' => __('VKontakte', 'ultimate-social-deux') . ' ' . __('Group ID', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Your ID is what comes after', 'ultimate-social-deux') . ' ' . 'http://vk.com/.' . ' ' . __('Make sure that you are getting a group ID and not a page ID.', 'ultimate-social-deux'), 'default' => UltimateSocialDeux::opt_old('us_vkontakte_id', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Pinterest', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_pinterest_username', 'name' => __('Pinterest', 'ultimate-social-deux') . ' ' . __('username', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pinterest_username', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Flickr', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_flickr_id', 'name' => __('Flickr', 'ultimate-social-deux') . ' ' . __('Group ID', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('You can find your ID here:', 'ultimate-social-deux') . ' ' . 'http://idgettr.com/', 'default' => UltimateSocialDeux::opt_old('us_flickr_id', 'us_placement'))); $panelFanCount->createOption(array('id' => 'us_flickr_api', 'name' => __('Flickr', 'ultimate-social-deux') . ' ' . __('API key', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Register your App at', 'ultimate-social-deux') . ' ' . 'https://www.flickr.com/services/apps/create/apply', 'default' => UltimateSocialDeux::opt_old('us_flickr_api', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Mailchimp', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_mailchimp_name', 'name' => __('Mailchimp', 'ultimate-social-deux') . ' ' . __('list name', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Get your list name from', 'ultimate-social-deux') . ' ' . 'https://admin.mailchimp.com/lists/', 'default' => UltimateSocialDeux::opt_old('us_mailchimp_name', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_mailchimp_api', 'name' => __('Mailchimp', 'ultimate-social-deux') . ' ' . __('API key', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Register your App at', 'ultimate-social-deux') . ' ' . 'https://admin.mailchimp.com/account/api/', 'default' => UltimateSocialDeux::opt_old('us_mailchimp_api', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_mailchimp_link', 'name' => __('Mailchimp', 'ultimate-social-deux') . ' ' . __('subscription link', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Use your own or build one with Mailchimp', 'ultimate-social-deux'), 'default' => UltimateSocialDeux::opt_old('us_mailchimp_link', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Feedpress', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_feedpress_url', 'name' => __('Feedpress', 'ultimate-social-deux') . ' ' . __('JSON url', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Link yo your feeds .json file. First go to', 'ultimate-social-deux') . ' ' . 'http://feedpress.it/feeds/YOUR-FEED-ID.' . ' ' . __('Then choose JSON File from the Miscellaneous dropdown menu. You must have a Premium Feedpress account to do use this.', 'ultimate-social-deux'), 'default' => UltimateSocialDeux::opt_old('us_feedpress_url', 'us_fan_count'))); $panelFanCount->createOption(array('id' => 'us_feedpress_manual', 'name' => __('Manual RSS count', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Add a manual count if you do not have a Premium Feedpress account.', 'ultimate-social-deux'), 'default' => UltimateSocialDeux::opt_old('us_feedpress_manual', 'us_fan_count'))); $panelFanCount->createOption(array('name' => __('Members', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_members_link', 'name' => __('Members', 'ultimate-social-deux') . ' ' . __('Link', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Do you want the members count to link anywhere?', 'ultimate-social-deux'), 'default' => '')); $panelFanCount->createOption(array('name' => __('Posts', 'ultimate-social-deux'), 'type' => 'heading')); $panelFanCount->createOption(array('id' => 'us_posts_link', 'name' => __('Posts', 'ultimate-social-deux') . ' ' . __('Link', 'ultimate-social-deux'), 'type' => 'text', 'desc' => __('Do you want the post count to link anywhere?', 'ultimate-social-deux'), 'default' => '')); $panelFanCount->createOption(array('type' => 'save', 'use_reset' => false)); /** * Advanced settings. */ $popupTab = $panel->createTab(array('name' => __('Popup', 'ultimate-social-deux'))); $popupTab->createOption(array('name' => __('Popup Settings', 'ultimate-social-deux'), 'type' => 'heading')); $popupTab->createOption(array('id' => 'us_facebook_height', 'name' => __('Facebook', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_facebook_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_facebook_width', 'name' => __('Facebook', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_facebook_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_twitter_height', 'name' => __('Twitter', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_twitter_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_twitter_width', 'name' => __('Twitter', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_twitter_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_googleplus_height', 'name' => __('Google Plus', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_googleplus_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_googleplus_width', 'name' => __('Google Plus', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_googleplus_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_delicious_height', 'name' => __('Delicious', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_delicious_height', 'us_advanced', '550'))); $popupTab->createOption(array('id' => 'us_delicious_width', 'name' => __('Delicious', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => '550')); $popupTab->createOption(array('id' => 'us_stumble_height', 'name' => __('StumbleUpon', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_stumble_height', 'us_advanced', '550'))); $popupTab->createOption(array('id' => 'us_stumble_width', 'name' => __('StumbleUpon', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_stumble_width', 'us_advanced', '550'))); $popupTab->createOption(array('id' => 'us_linkedin_height', 'name' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_linkedin_height', 'us_advanced', '550'))); $popupTab->createOption(array('id' => 'us_linkedin_width', 'name' => __('LinkedIn', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_linkedin_width', 'us_advanced', '550'))); $popupTab->createOption(array('id' => 'us_pinterest_height', 'name' => __('Pinterest', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pinterest_height', 'us_advanced', '320'))); $popupTab->createOption(array('id' => 'us_pinterest_width', 'name' => __('Pinterest', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pinterest_width', 'us_advanced', '720'))); $popupTab->createOption(array('id' => 'us_buffer_height', 'name' => __('Buffer', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_buffer_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_buffer_width', 'name' => __('Buffer', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_buffer_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_reddit_height', 'name' => __('Reddit', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_reddit_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_reddit_width', 'name' => __('Reddit', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_reddit_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_vkontakte_height', 'name' => __('VKontakte', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_vkontakte_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_vkontakte_width', 'name' => __('VKontakte', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_vkontakte_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_printfriendly_height', 'name' => __('Printfriendlyfriendly', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_printfriendly_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_printfriendly_width', 'name' => __('Printfriendlyfriendly', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_printfriendly_width', 'us_advanced', '1045'))); $popupTab->createOption(array('id' => 'us_pocket_height', 'name' => __('Pocket', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pocket_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_pocket_width', 'name' => __('Pocket', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_pocket_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_tumblr_height', 'name' => __('Tumblr', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_tumblr_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_tumblr_width', 'name' => __('Tumblr', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_tumblr_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_flipboard_height', 'name' => __('Flipboard', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_flipboard_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_flipboard_width', 'name' => __('Flipboard', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_flipboard_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_ok_height', 'name' => __('Odnoklassniki', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_ok_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_ok_width', 'name' => __('Odnoklassniki', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_ok_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_weibo_height', 'name' => __('Weibo', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_weibo_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_weibo_width', 'name' => __('Weibo', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_weibo_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_xing_height', 'name' => __('Xing', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_xing_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_xing_width', 'name' => __('Xing', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_xing_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_managewp_height', 'name' => __('Managewp', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_managewp_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_managewp_width', 'name' => __('Managewp', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_managewp_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_meneame_height', 'name' => __('Meneame', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_meneame_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_meneame_width', 'name' => __('Meneame', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_meneame_width', 'us_advanced', '900'))); $popupTab->createOption(array('id' => 'us_digg_height', 'name' => __('Digg', 'ultimate-social-deux') . ' ' . __('Popup Height', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_digg_height', 'us_advanced', '500'))); $popupTab->createOption(array('id' => 'us_digg_width', 'name' => __('Digg', 'ultimate-social-deux') . ' ' . __('Popup Width', 'ultimate-social-deux'), 'desc' => __('in pixels', 'ultimate-social-deux'), 'type' => 'text', 'default' => UltimateSocialDeux::opt_old('us_digg_width', 'us_advanced', '900'))); $popupTab->createOption(array('type' => 'save', 'use_reset' => false)); /** * License settings. */ $panelLicense->createOption(array('name' => __('License', 'ultimate-social-deux'), 'type' => 'heading')); $panelLicense->createOption(array('id' => 'us_license', 'name' => __('Enter your CodeCanyon Purchase Code', 'ultimate-social-deux'), 'desc' => __('This enables automatic updates.', 'ultimate-social-deux') . ' <a href="' . admin_url('update-core.php?force-check=1') . '">' . __('Check for updates.', 'ultimate-social-deux') . '</a>', 'type' => 'us-license', 'is_password' => false, 'default' => UltimateSocialDeux::opt_old('us_license', 'us_license'))); $panelLicense->createOption(array('id' => 'us_license_help', 'name' => __('To access your Purchase Code for an item:', 'ultimate-social-deux'), 'desc' => '<ol><li>' . __('Log into your CodeCanyon account.', 'ultimate-social-deux') . '</li><li>' . __('From your account dropdown links, select "Downloads".', 'ultimate-social-deux') . '</li><li>' . __('Click the "Download" button that corresponds with your purchase.', 'ultimate-social-deux') . '</li><li>' . __('Select the "License certificate & purchase code" download link. Your Purchase Code will be displayed within the License Certificate.', 'ultimate-social-deux') . '</li></ol>', 'type' => 'note')); $panelLicense->createOption(array('type' => 'save', 'use_reset' => false)); }
/** * Return fan counters * * @since 1.0.0 * * @return count */ public static function fan_count_output($networks = '', $rows = '1', $skin = '') { wp_enqueue_script('jquery-fittext'); UltimateSocialDeux::enqueue_stuff(); global $us_fan_count_data; $skin = $skin ? sprintf(' us_skin_%s', $skin) : ' us_skin_default'; $networks = str_replace(' ', '', $networks); $networks = explode(',', $networks); global $us_fan_counts; $us_fan_counts = !isset($us_fan_counts) ? maybe_unserialize(get_option('us_fan_counts', array())) : $us_fan_counts; $ajaxnetworks = ''; foreach ($networks as $network) { if (array_key_exists($network, self::ajax_count()) && (!array_key_exists($network, $us_fan_counts) || isset($us_fan_counts[$network]['timestamp']) && $us_fan_counts[$network]['timestamp'] + intval(UltimateSocialDeux::opt('us_cache', 2)) * 3600 < time())) { $ajaxnetworks .= $network . ','; } } $ajaxnetworks = $ajaxnetworks ? sprintf(' data-ajaxnetworks="%s"', substr($ajaxnetworks, 0, -1)) : ''; $output = sprintf('<div class="us_wrapper us_fan_count_wrapper%s"%s>', $skin, $ajaxnetworks); foreach ($networks as &$network) { $count = isset($us_fan_counts[$network]['count']) ? UltimateSocialDeux::number_format($us_fan_counts[$network]['count']) : 0; switch ($network) { case "facebook": $desc = __('Fans', 'ultimate-social-deux'); $link = sprintf('https://facebook.com/%s', UltimateSocialDeux::opt('us_facebook_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "twitter": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('https://twitter.com/%s', UltimateSocialDeux::opt('us_twitter_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "google": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('https://plus.google.com/%s/', UltimateSocialDeux::opt('us_google_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "youtube": $desc = __('Subscribers', 'ultimate-social-deux'); $youtube_type = UltimateSocialDeux::opt('youtube_type', 'user'); if ($youtube_type == 'user') { $link = sprintf('https://www.youtube.com/user/%s/', UltimateSocialDeux::opt('us_youtube_id', '')); } else { $link = sprintf('https://www.youtube.com/channel/%s/', UltimateSocialDeux::opt('us_youtube_id', '')); } $output .= self::counter($network, $count, $desc, $rows, $link); break; case "love": $count = UltimateSocialDeux::number_format(self::love_count()); $desc = __('Total loves', 'ultimate-social-deux'); $link = ''; $output .= self::counter($network, $count, $desc, $rows, $link, ''); break; case "delicious": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('https://delicious.com/%s/', UltimateSocialDeux::opt('us_delicious_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "linkedin": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('https://linkedin.com/company/%s', UltimateSocialDeux::opt('us_linkedin_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "behance": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('https://www.behance.net/%s', UltimateSocialDeux::opt('us_behance_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "vimeo": $desc = __('Subscribers', 'ultimate-social-deux'); $link = sprintf('http://vimeo.com/channels/%s', UltimateSocialDeux::opt('us_vimeo_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "dribbble": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('https://dribbble.com/%s', UltimateSocialDeux::opt('us_dribbble_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "envato": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('http://codecanyon.net/user/%s/follow', UltimateSocialDeux::opt('us_envato_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "github": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('https://github.com/%s', UltimateSocialDeux::opt('us_github_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "soundcloud": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('https://soundcloud.com/%s', UltimateSocialDeux::opt('us_soundcloud_username', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "instagram": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('http://instagram.com/%s', UltimateSocialDeux::opt('us_instagram_username', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "vkontakte": $desc = __('Members', 'ultimate-social-deux'); $link = sprintf('http://vk.com/%s', UltimateSocialDeux::opt('us_vkontakte_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "feedpress": $desc = __('Subscribers', 'ultimate-social-deux'); $link = sprintf('%s', UltimateSocialDeux::opt('us_feedpress_url', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "pinterest": $desc = __('Followers', 'ultimate-social-deux'); $link = sprintf('http://www.pinterest.com/%s', UltimateSocialDeux::opt('us_pinterest_username', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "mailchimp": $desc = __('Subscribers', 'ultimate-social-deux'); $link = sprintf('%s', UltimateSocialDeux::opt('us_mailchimp_link', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "flickr": $desc = __('Members', 'ultimate-social-deux'); $link = sprintf('https://www.flickr.com/groups/%s/', UltimateSocialDeux::opt('us_flickr_id', '')); $output .= self::counter($network, $count, $desc, $rows, $link); break; case "members": $count = UltimateSocialDeux::number_format(self::members_count()); $desc = __('Members', 'ultimate-social-deux'); $link = sprintf('%s', UltimateSocialDeux::opt('us_members_link', '')); $output .= self::counter($network, $count, $desc, $rows, $link, 'false'); break; case "posts": $count = UltimateSocialDeux::number_format(self::posts_count()); $desc = __('Posts', 'ultimate-social-deux'); $link = sprintf('%s', UltimateSocialDeux::opt('us_posts_link', '')); $output .= self::counter($network, $count, $desc, $rows, $link, 'false'); break; case "comments": $count = UltimateSocialDeux::number_format(self::comments_count()); $desc = __('Comments', 'ultimate-social-deux'); $link = ''; $output .= self::counter($network, $count, $desc, $rows, $link, 'false'); break; } } $output .= '</div>'; if ($us_fan_count_data) { self::update_count($us_fan_count_data); } return $output; }
/** * Returns social buttons. * * @since 4.0.0 * * @return buttons */ public function bbpress_after_topics() { $networks = maybe_unserialize(UltimateSocialDeux::opt('us_bbpress_after_topics_buttons')); if (is_array($networks) && !empty($networks)) { $options = maybe_unserialize(UltimateSocialDeux::opt('us_bbpress_after_topics_options')); $sharetext = UltimateSocialDeux::opt('us_bbpress_after_topics_share_text'); $count = in_array('hide_count', $options) ? false : true; $native = in_array('native', $options) ? true : false; $align = UltimateSocialDeux::opt('us_bbpress_after_topics_align', 'center'); $margin_top = intval(UltimateSocialDeux::opt('us_bbpress_after_topics_margin_top', '0')); $margin_bottom = intval(UltimateSocialDeux::opt('us_bbpress_after_topics_margin_bottom', '0')); $skin = UltimateSocialDeux::opt('us_bbpress_after_topics_skin'); $custom_content = sprintf('<div class="us_bbpress_after_topics" style="margin-top:%spx;margin-bottom:%spx;">', $margin_top, $margin_bottom); $custom_content .= UltimateSocialDeuxButtons::buttons($sharetext, $networks, '', $align, $count, $native, $skin); $custom_content .= '</div>'; echo $custom_content; } }