Ejemplo n.º 1
0
 private static function get_default_values()
 {
     $default_values = array('skype_id' => 'echo123', 'user_name' => __('Skype Test Call', 'skype-online-status'), 'button_theme' => 'transparent_dropdown', 'button_template' => '', 'use_voicemail' => '', 'use_function' => 'on', 'use_buttonsnap' => 'on', 'local_images' => is_ssl() ? 'on' : '', 'seperator1_text' => __(' - ', 'skype-online-status'), 'use_getskype' => 'on', 'getskype_newline' => 'on', 'getskype_text' => __('» Get Skype, call free!', 'skype-online-status'), 'getskype_link' => '', 'getskype_custom_link' => '', 'skype_status_version' => SOSVERSION, 'installed' => true);
     /*		// Available status message languages as provided by Skype,
     		// e.g. http://mystatus.skype.com/yourusername.txt.pt-br will
     		// show your online status message in Brazilian Portuguese. If
     		// there are new languages available, they can be added to this
     		// array to make them optional on the Skype Settings page.
     		self::$avail_languages = array ( 
     			'en' => __('English', 'skype-online-status'),
     			'fr' => __('French', 'skype-online-status'),
     			'de' => __('German', 'skype-online-status'),
     			'ja' => __('Japanese', 'skype-online-status'),
     			'zh-tw' => __('Taiwanese', 'skype-online-status'),
     			'zh' => __('Chinese', 'skype-online-status'),
     			'pt-br' => __('Brazilian', 'skype-online-status'),
     			'pt' => __('Portuguese', 'skype-online-status'),
     			'it' => __('Italian', 'skype-online-status'),
     			'es' => __('Spanish', 'skype-online-status'),
     			'pl' => __('Polish', 'skype-online-status'),
     			'se' => __('Swedish', 'skype-online-status'),
     		);
     
     		// Available status messages as provided by Skype to replace {status} in template files
     		self::$avail_statusmsg = array ( 
     			'0' => __('Offline', 'skype-online-status'), 		// when status is unknown (0)
     			'1' => __('Offline', 'skype-online-status'), 		// when status is offline (1)
     			'2' => __('Online', 'skype-online-status'), 		// when status is online (2)
     			'3' => __('Away', 'skype-online-status'), 		// when status is away (3)
     			'4' => __('Not available', 'skype-online-status'), 	// when status is not available (4)
     			'5' => __('Do not disturb', 'skype-online-status'),	// when status is do not disturb (5)
     			//"6" => __('Invisible', 'skype-online-status'), 	// when status is invisible (6)
     			'7' => __('Skype me!', 'skype-online-status'), 		// when status is skype me! (7)
     		);
     */
     self::$avail_functions = array('call' => __('Call me!', 'skype-online-status'), 'add' => __('Add me to Skype', 'skype-online-status'), 'chat' => __('Chat with me', 'skype-online-status'), 'userinfo' => __('View my profile', 'skype-online-status'), 'voicemail' => __('Leave me voicemail', 'skype-online-status'), 'sendfile' => __('Send me a file', 'skype-online-status'));
     //build status texts
     /*		foreach (self::$avail_statusmsg as $key => $value) {
     			$fullkey = "status_".$key."_text";
     			$default_values[$fullkey] = $value;
     		}
     		unset($value);
     */
     //build function texts
     foreach (self::$avail_functions as $key => $value) {
         $fullkey = $key . "_text";
         $default_values[$fullkey] = $value;
     }
     unset($value);
     /*		// set language to blogs WPLANG (or leave unchanged)
     		if (constant("SOSREMOTE")) {
     			if (!defined("WPLANG") || WPLANG=='') {
     				$default_values['use_status'] = "en";
     			} else {
     				$conv = strtolower(str_replace("_","-",WPLANG));
     				$first_two = substr(WPLANG,0,2);
     				foreach (self::$avail_languages as $key => $value) {
     					if ( $conv == $key ) { // get full language/country match
     						$default_values['use_status'] = $key;
     						break;
     					} elseif ( $first_two == $key ) { // or try to get language only match
     						$default_values['use_status'] = $key;
     						break;
     					}
     				}
     			}
     		} else { $default_values['use_status'] = ""; }
     */
     return $default_values;
 }