Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/custom-t.../admin/Traits
File: CTF_Settings.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The Settings Trait
[2] Fix | Delete
*
[3] Fix | Delete
* @since 2.0
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
namespace TwitterFeed\Admin\Traits;
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
[8] Fix | Delete
[9] Fix | Delete
[10] Fix | Delete
trait CTF_Settings {
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Return the locales
[14] Fix | Delete
*
[15] Fix | Delete
* @since 2.0
[16] Fix | Delete
*
[17] Fix | Delete
* @return array
[18] Fix | Delete
*/
[19] Fix | Delete
public static function locales() {
[20] Fix | Delete
return array(
[21] Fix | Delete
'af_ZA' => 'Afrikaans',
[22] Fix | Delete
'ar_AR' => 'Arabic',
[23] Fix | Delete
'az_AZ' => 'Azerbaijani',
[24] Fix | Delete
'be_BY' => 'Belarusian',
[25] Fix | Delete
'bg_BG' => 'Bulgarian',
[26] Fix | Delete
'bn_IN' => 'Bengali',
[27] Fix | Delete
'bs_BA' => 'Bosnian',
[28] Fix | Delete
'ca_ES' => 'Catalan',
[29] Fix | Delete
'cs_CZ' => 'Czech',
[30] Fix | Delete
'cy_GB' => 'Welsh',
[31] Fix | Delete
'da_DK' => 'Danish',
[32] Fix | Delete
'de_DE' => 'German',
[33] Fix | Delete
'el_GR' => 'Greek',
[34] Fix | Delete
'en_GB' => 'English (UK',
[35] Fix | Delete
'en_PI' => 'English (Pirate)',
[36] Fix | Delete
'en_US' => 'English (US)',
[37] Fix | Delete
'eo_EO' => 'Esperanto',
[38] Fix | Delete
'es_ES' => 'Spanish (Spain)',
[39] Fix | Delete
'es_LA' => 'Spanish',
[40] Fix | Delete
'et_EE' => 'Estonian',
[41] Fix | Delete
'eu_ES' => 'Basque',
[42] Fix | Delete
'fa_IR' => 'Persian',
[43] Fix | Delete
'fb_LT' => 'Leet Speak',
[44] Fix | Delete
'fi_FI' => 'Finnish',
[45] Fix | Delete
'fo_FO' => 'Faroese',
[46] Fix | Delete
'fr_CA' => 'French (Canada)',
[47] Fix | Delete
'fr_FR' => 'French (France)',
[48] Fix | Delete
'fy_NL' => 'Frisian',
[49] Fix | Delete
'ga_IE' => 'Irish',
[50] Fix | Delete
'gl_ES' => 'Galician',
[51] Fix | Delete
'he_IL' => 'Hebrew',
[52] Fix | Delete
'hi_IN' => 'Hindi',
[53] Fix | Delete
'hr_HR' => 'Croatian',
[54] Fix | Delete
'hu_HU' => 'Hungarian',
[55] Fix | Delete
'hy_AM' => 'Armenian',
[56] Fix | Delete
'id_ID' => 'Indonesian',
[57] Fix | Delete
'is_IS' => 'Icelandic',
[58] Fix | Delete
'it_IT' => 'Italian',
[59] Fix | Delete
'ja_JP' => 'Japanese',
[60] Fix | Delete
'ka_GE' => 'Georgian',
[61] Fix | Delete
'km_KH' => 'Khmer',
[62] Fix | Delete
'ko_KR' => 'Korean',
[63] Fix | Delete
'ku_TR' => 'Kurdish',
[64] Fix | Delete
'la_VA' => 'Latin',
[65] Fix | Delete
'lt_LT' => 'Lithuanian',
[66] Fix | Delete
'lv_LV' => 'Latvian',
[67] Fix | Delete
'mk_MK' => 'Macedonian',
[68] Fix | Delete
'ml_IN' => 'Malayalam',
[69] Fix | Delete
'ms_MY' => 'Malay',
[70] Fix | Delete
'nb_NO' => 'Norwegian (bokmal)',
[71] Fix | Delete
'ne_NP' => 'Nepali',
[72] Fix | Delete
'nl_NL' => 'Dutch',
[73] Fix | Delete
'nn_NO' => 'Norwegian (nynorsk)',
[74] Fix | Delete
'pa_IN' => 'Punjabi',
[75] Fix | Delete
'pl_PL' => 'Polish',
[76] Fix | Delete
'ps_AF' => 'Pashto',
[77] Fix | Delete
'pt_BR' => 'Portuguese (Brazil)',
[78] Fix | Delete
'pt_PT' => 'Portuguese (Portugal)',
[79] Fix | Delete
'ro_RO' => 'Romanian',
[80] Fix | Delete
'ru_RU' => 'Russian',
[81] Fix | Delete
'sk_SK' => 'Slovak',
[82] Fix | Delete
'sl_SI' => 'Slovenian',
[83] Fix | Delete
'sq_AL' => 'Albanian',
[84] Fix | Delete
'sr_RS' => 'Serbian',
[85] Fix | Delete
'sv_SE' => 'Swedish',
[86] Fix | Delete
'sw_KE' => 'Swahili',
[87] Fix | Delete
'ta_IN' => 'Tamil',
[88] Fix | Delete
'te_IN' => 'Telugu',
[89] Fix | Delete
'th_TH' => 'Thai',
[90] Fix | Delete
'tl_PH' => 'Filipino',
[91] Fix | Delete
'tr_TR' => 'Turkish',
[92] Fix | Delete
'uk_UA' => 'Ukrainian',
[93] Fix | Delete
'vi_VN' => 'Vietnamese',
[94] Fix | Delete
'zh_CN' => 'Simplified Chinese (China)',
[95] Fix | Delete
'zh_HK' => 'Traditional Chinese (Hong Kong)',
[96] Fix | Delete
'zh_TW' => 'Traditional Chinese (Taiwan)',
[97] Fix | Delete
);
[98] Fix | Delete
}
[99] Fix | Delete
[100] Fix | Delete
/**
[101] Fix | Delete
* Return the timezones
[102] Fix | Delete
*
[103] Fix | Delete
* @since 2.0
[104] Fix | Delete
*
[105] Fix | Delete
* @return array
[106] Fix | Delete
*/
[107] Fix | Delete
public static function timezones() {
[108] Fix | Delete
return array(
[109] Fix | Delete
'Pacific/Midway' => '(GMT-11:00) Midway Island, Samoa',
[110] Fix | Delete
'America/Adak' => '(GMT-10:00) Hawaii-Aleutian',
[111] Fix | Delete
'Etc/GMT+10' => '(GMT-10:00) Hawaii',
[112] Fix | Delete
'Pacific/Marquesas' => '(GMT-09:30) Marquesas Islands',
[113] Fix | Delete
'Pacific/Gambier' => '(GMT-09:00) Gambier Islands',
[114] Fix | Delete
'America/Anchorage' => '(GMT-09:00) Alaska',
[115] Fix | Delete
'America/Ensenada' => '(GMT-08:00) Tijuana, Baja California',
[116] Fix | Delete
'Etc/GMT+8' => '(GMT-08:00) Pitcairn Islands',
[117] Fix | Delete
'America/Los_Angeles' => '(GMT-08:00) Pacific Time (US & Canada',
[118] Fix | Delete
'America/Denver' => '(GMT-07:00) Mountain Time (US & Canada',
[119] Fix | Delete
'America/Chihuahua' => '(GMT-07:00) Chihuahua, La Paz, Mazatlan',
[120] Fix | Delete
'America/Dawson_Creek' => '(GMT-07:00) Arizona',
[121] Fix | Delete
'America/Belize' => '(GMT-06:00) Saskatchewan, Central America',
[122] Fix | Delete
'America/Cancun' => '(GMT-06:00) Guadalajara, Mexico City, Monterrey',
[123] Fix | Delete
'Chile/EasterIsland' => '(GMT-06:00) Easter Island',
[124] Fix | Delete
'America/Chicago' => '(GMT-06:00) Central Time (US & Canada)',
[125] Fix | Delete
'America/New_York' => '(GMT-05:00) Eastern Time (US & Canada)',
[126] Fix | Delete
'America/Havana' => '(GMT-05:00) Cuba',
[127] Fix | Delete
'America/Bogota' => '(GMT-05:00) Bogota, Lima, Quito, Rio Branco',
[128] Fix | Delete
'America/Caracas' => '(GMT-04:30) Caracas',
[129] Fix | Delete
'America/Santiago' => '(GMT-04:00) Santiago',
[130] Fix | Delete
'America/La_Paz' => '(GMT-04:00) La Paz',
[131] Fix | Delete
'Atlantic/Stanley' => '(GMT-04:00) Faukland Islands',
[132] Fix | Delete
'America/Campo_Grande' => '(GMT-04:00) Brazil',
[133] Fix | Delete
'America/Goose_Bay' => '(GMT-04:00) Atlantic Time (Goose Bay)',
[134] Fix | Delete
'America/Glace_Bay' => '(GMT-04:00) Atlantic Time (Canada)',
[135] Fix | Delete
'America/St_Johns' => '(GMT-03:30) Newfoundland',
[136] Fix | Delete
'America/Araguaina' => '(GMT-03:00) UTC-3',
[137] Fix | Delete
'America/Montevideo' => '(GMT-03:00) Montevideo',
[138] Fix | Delete
'America/Miquelon' => '(GMT-03:00) Miquelon, St. Pierre',
[139] Fix | Delete
'America/Godthab' => '(GMT-03:00) Greenland',
[140] Fix | Delete
'America/Argentina/Buenos_Aires' => '(GMT-03:00) Buenos Aires',
[141] Fix | Delete
'America/Sao_Paulo' => '(GMT-03:00) Brasilia',
[142] Fix | Delete
'America/Noronha' => '(GMT-02:00) Mid-Atlantic',
[143] Fix | Delete
'Atlantic/Cape_Verde' => '(GMT-01:00) Cape Verde Is',
[144] Fix | Delete
'Atlantic/Azores' => '(GMT-01:00) Azores',
[145] Fix | Delete
'Europe/Belfast' => '(GMT) Greenwich Mean Time : Belfast',
[146] Fix | Delete
'Europe/Dublin' => '(GMT) Greenwich Mean Time : Dublin',
[147] Fix | Delete
'Europe/Lisbon' => '(GMT) Greenwich Mean Time : Lisbon',
[148] Fix | Delete
'Europe/London' => '(GMT) Greenwich Mean Time : London',
[149] Fix | Delete
'Africa/Abidjan' => '(GMT) Monrovia, Reykjavik',
[150] Fix | Delete
'Europe/Amsterdam' => '(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',
[151] Fix | Delete
'Europe/Belgrade' => '(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague',
[152] Fix | Delete
'Europe/Brussels' => '(GMT+01:00) Brussels, Copenhagen, Madrid, Paris',
[153] Fix | Delete
'Africa/Algiers' => '(GMT+01:00) West Central Africa',
[154] Fix | Delete
'Africa/Windhoek' => '(GMT+01:00) Windhoek',
[155] Fix | Delete
'Asia/Beirut' => '(GMT+02:00) Beirut',
[156] Fix | Delete
'Africa/Cairo' => '(GMT+02:00) Cairo',
[157] Fix | Delete
'Asia/Gaza' => '(GMT+02:00) Gaza',
[158] Fix | Delete
'Africa/Blantyre' => '(GMT+02:00) Harare, Pretoria',
[159] Fix | Delete
'Asia/Jerusalem' => '(GMT+02:00) Jerusalem',
[160] Fix | Delete
'Europe/Helsinki' => '(GMT+02:00) Helsinki',
[161] Fix | Delete
'Europe/Minsk' => '(GMT+02:00) Minsk',
[162] Fix | Delete
'Asia/Damascus' => '(GMT+02:00) Syria',
[163] Fix | Delete
'Europe/Moscow' => '(GMT+03:00) Moscow, St. Petersburg, Volgograd',
[164] Fix | Delete
'Africa/Addis_Ababa' => '(GMT+03:00) Nairobi',
[165] Fix | Delete
'Asia/Tehran' => '(GMT+03:30) Tehran',
[166] Fix | Delete
'Asia/Dubai' => '(GMT+04:00) Abu Dhabi, Muscat',
[167] Fix | Delete
'Asia/Yerevan' => '(GMT+04:00) Yerevan',
[168] Fix | Delete
'Asia/Kabul' => '(GMT+04:30) Kabul',
[169] Fix | Delete
'Asia/Yekaterinburg' => '(GMT+05:00) Ekaterinburg',
[170] Fix | Delete
'Asia/Tashkent' => '(GMT+05:00) Tashkent',
[171] Fix | Delete
'Asia/Kolkata' => '(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi',
[172] Fix | Delete
'Asia/Katmandu' => '(GMT+05:45) Kathmandu',
[173] Fix | Delete
'Asia/Dhaka' => '(GMT+06:00) Astana, Dhaka',
[174] Fix | Delete
'Asia/Novosibirsk' => '(GMT+06:00) Novosibirsk',
[175] Fix | Delete
'Asia/Rangoon' => '(GMT+06:30) Yangon (Rangoon',
[176] Fix | Delete
'Asia/Bangkok' => '(GMT+07:00) Bangkok, Hanoi, Jakarta',
[177] Fix | Delete
'Asia/Krasnoyarsk' => '(GMT+07:00) Krasnoyarsk',
[178] Fix | Delete
'Asia/Hong_Kong' => '(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi',
[179] Fix | Delete
'Asia/Irkutsk' => '(GMT+08:00) Irkutsk, Ulaan Bataar',
[180] Fix | Delete
'Australia/Perth' => '(GMT+08:00) Perth',
[181] Fix | Delete
'Australia/Eucla' => '(GMT+08:45) Eucla',
[182] Fix | Delete
'Asia/Tokyo' => '(GMT+09:00) Osaka, Sapporo, Tokyo',
[183] Fix | Delete
'Asia/Seoul' => '(GMT+09:00) Seoul',
[184] Fix | Delete
'Asia/Yakutsk' => '(GMT+09:00) Yakutsk',
[185] Fix | Delete
'Australia/Adelaide' => '(GMT+09:30) Adelaide',
[186] Fix | Delete
'Australia/Darwin' => '(GMT+09:30) Darwin',
[187] Fix | Delete
'Australia/Brisbane' => '(GMT+10:00) Brisbane',
[188] Fix | Delete
'Australia/Hobart' => '(GMT+10:00) Sydney',
[189] Fix | Delete
'Asia/Vladivostok' => '(GMT+10:00) Vladivostok',
[190] Fix | Delete
'Australia/Lord_Howe' => '(GMT+10:30) Lord Howe Island',
[191] Fix | Delete
'Etc/GMT-11' => '(GMT+11:00) Solomon Is., New Caledonia',
[192] Fix | Delete
'Asia/Magadan' => '(GMT+11:00) Magadan',
[193] Fix | Delete
'Pacific/Norfolk' => '(GMT+11:30) Norfolk Island',
[194] Fix | Delete
'Asia/Anadyr' => '(GMT+12:00) Anadyr, Kamchatka',
[195] Fix | Delete
'Pacific/Auckland' => '(GMT+12:00) Auckland, Wellington',
[196] Fix | Delete
'Etc/GMT-12' => 'GMT+12:00) Fiji, Kamchatka, Marshall Is',
[197] Fix | Delete
'Pacific/Chatham' => '(GMT+12:45) Chatham Islands',
[198] Fix | Delete
'Pacific/Tongatapu' => '(GMT+13:00) Nuku\'alofa',
[199] Fix | Delete
'Pacific/Kiritimati' => '(GMT+14:00) Kiritimati'
[200] Fix | Delete
);
[201] Fix | Delete
}
[202] Fix | Delete
}
[203] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function