} static function get_sanitize_method($type) { $settings = self::$networks[$type]; return $settings['sanitize']; } static function sanitize_default($username) { return sanitize_user($username, true); } static function get_support() { $networks = array_keys(self::$networks); return apply_filters('appthemes_social_networks', $networks); } } APP_Social_Networks::register_network('facebook', array('title' => __('Facebook', APP_TD))); APP_Social_Networks::register_network('twitter', array('title' => __('Twitter', APP_TD))); APP_Social_Networks::register_network('linkedin', array('title' => __('LinkedIn', APP_TD), 'user_url' => 'http://linkedin.com/in/%s/')); APP_Social_Networks::register_network('google-plus', array('title' => __('Google+', APP_TD), 'base_url' => 'http://plus.google.com/', 'user_url' => 'http://plus.google.com/%s/', 'sanitize' => 'appthemes_numbers_only', 'tip' => sprintf(__('Enter your Google+ ID here. The URL will look like this: %s where the number is your ID.', APP_TD), 'http://plus.google.com/108097040296611426034/'))); APP_Social_Networks::register_network('youtube', array('title' => __('YouTube', APP_TD), 'user_url' => 'http://youtube.com/user/%s/')); APP_Social_Networks::register_network('instagram', array('title' => __('Instagram', APP_TD))); APP_Social_Networks::register_network('pinterest', array('title' => __('Pinterest', APP_TD))); APP_Social_Networks::register_network('github', array('title' => __('Github', APP_TD))); APP_Social_Networks::register_network('path', array('title' => __('Path', APP_TD))); APP_Social_Networks::register_network('vimeo', array('title' => __('Vimeo', APP_TD))); APP_Social_Networks::register_network('flickr', array('title' => __('Flickr', APP_TD))); APP_Social_Networks::register_network('picassa', array('title' => __('Picassa', APP_TD))); APP_Social_Networks::register_network('foursquare', array('title' => __('Foursquare', APP_TD))); APP_Social_Networks::register_network('wordpress', array('title' => __('WordPress', APP_TD), 'user_url' => 'http://%s.wordpress.com/'));