function foundation_social_links_settings($page_options) { if (wptouch_can_show_page('social_media')) { wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Social Media Links', 'wptouch-pro'), 'footer-social-links', array(wptouch_add_setting('url', 'social_facebook_url', 'Facebook', __('Full URL to your Facebook page', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_twitter_url', 'Twitter', __('Full URL to your Twitter profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_google_url', 'Google+', __('Full URL to your Google+ profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_instagram_url', 'Instagram', __('Full URL to your Instagram profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_tumblr_url', __('Tumblr', 'wptouch-pro'), __('Full URL to your Tumblr profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '2.0.1'), wptouch_add_pro_setting('url', 'social_pinterest_url', 'Pinterest', __('Full URL to your Pinterest page', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0.2'), wptouch_add_pro_setting('url', 'social_vimeo_url', 'Vimeo', __('Full URL to your Vimeo page', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0.2'), wptouch_add_pro_setting('url', 'social_youtube_url', 'YouTube', sprintf(__('Full URL to your %s profile', 'wptouch-pro'), 'YouTube'), WPTOUCH_SETTING_BASIC, '1.0.5'), wptouch_add_pro_setting('url', 'social_linkedin_url', __('LinkedIn', 'wptouch-pro'), __('Full URL to your LinkedIn profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0.2'), wptouch_add_setting('url', 'social_yelp_url', 'Yelp', __('Full URL to your Yelp profile', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_email_url', __('E-Mail', 'wptouch-pro'), __('E-Mail address', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0'), wptouch_add_setting('url', 'social_rss_url', 'RSS', __('Full URL to your RSS feed', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '1.0.2')), $page_options, FOUNDATION_SETTING_DOMAIN, true); } return $page_options; }
function foundation_sharing_settings($page_options) { if (wptouch_can_show_page('social_sharing')) { wptouch_add_page_section(FOUNDATION_PAGE_BRANDING, __('Social Sharing', 'wptouch-pro'), 'social-sharing', array(wptouch_add_setting('checkbox', 'show_share', __('Show sharing links on posts', 'wptouch-pro'), __('Will show Facebook, Twitter, Pinterest and Email buttons.', 'wptouch-pro'), WPTOUCH_SETTING_BASIC, '2.0'), wptouch_add_setting('checkbox', 'share_on_pages', __('Also show on pages', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0'), wptouch_add_setting('radiolist', 'share_location', __('Sharing links location', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0', array('top' => __('Above post content', 'wptouch-pro'), 'bottom' => __('Below post content', 'wptouch-pro'))), wptouch_add_setting('radiolist', 'share_colour_scheme', __('Color scheme', 'wptouch-pro'), false, WPTOUCH_SETTING_BASIC, '2.0', array('default' => __('Theme colors', 'wptouch-pro'), 'vibrant' => __('Social network colors', 'wptouch-pro')))), $page_options, FOUNDATION_SETTING_DOMAIN, true); } return $page_options; }
<input type="hidden" <?php $this->link(); ?> value="<?php echo esc_attr(implode(',', $multi_values)); ?> " /> <?php } } // Prepare to set defaults; we'll need Foundation defaults for sure, but we'll load others as needed. $defaults = array('foundation' => $wptouch_pro->get_setting_defaults('foundation')); require_once WPTOUCH_DIR . '/core/admin-load.php'; // Allow other areas of the plugin to perform actions before we get set up. These might be 'first load'-type calls do_action('wptouch_customizer_start_setup'); if (wptouch_can_show_page('colors')) { // Again, colours are a special case and are handled separately if (foundation_has_theme_colors()) { $colors = foundation_get_theme_colors(); foreach ($colors as $color) { if (!array_key_exists($color->domain, $defaults)) { $defaults[$color->domain] = $wptouch_pro->get_setting_defaults($color->domain); } $setting_name = $color->setting; $args = array('default' => $defaults[$color->domain]->{$setting_name}); if ($color->live_preview) { $args['transport'] = 'postMessage'; } // The Customizer constructs things in two parts $wp_customize->add_setting('wptouch_' . $setting_name, $args); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'wptouch_' . $setting_name, array('label' => __($color->desc, 'wptouch-pro'), 'section' => 'colors')));
_e('Customize Theme', 'wptouch-pro'); ?> </a></li> <?php } ?> <?php } ?> </ul> <?php } ?> <?php if (wptouch_can_show_page('extensions')) { ?> <h2><?php _e('Extensions', 'wptouch-pro'); ?> </h2> <ul> <li><a href="#" class="<?php wptouch_multisite_page_classes('extensions'); ?> setup-addons-browser<?php if (isset($_COOKIE['wptouch-4-admin-menu']) && $_COOKIE['wptouch-4-admin-menu'] == 'setup-addons-browser') { echo ' active'; } ?> " data-page-slug="setup-addons-browser"><?php