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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/popup-bu.../com/helpers
File: ConfigDataHelper.php
'America/Guatemala' => '(GMT-06:00) Guatemala',
[1000] Fix | Delete
'America/Managua' => '(GMT-06:00) Managua',
[1001] Fix | Delete
'America/Mexico_City' => '(GMT-06:00) Central Time - Mexico City',
[1002] Fix | Delete
'America/Regina' => '(GMT-06:00) Central Time - Regina',
[1003] Fix | Delete
'America/Tegucigalpa' => '(GMT-06:00) Central Time - Tegucigalpa',
[1004] Fix | Delete
'America/Winnipeg' => '(GMT-06:00) Central Time - Winnipeg',
[1005] Fix | Delete
'Pacific/Easter' => '(GMT-06:00) Easter Island',
[1006] Fix | Delete
'Pacific/Galapagos' => '(GMT-06:00) Galapagos',
[1007] Fix | Delete
'America/Bogota' => '(GMT-05:00) Bogota',
[1008] Fix | Delete
'America/Cayman' => '(GMT-05:00) Cayman',
[1009] Fix | Delete
'America/Guayaquil' => '(GMT-05:00) Guayaquil',
[1010] Fix | Delete
'America/Havana' => '(GMT-05:00) Havana',
[1011] Fix | Delete
'America/Iqaluit' => '(GMT-05:00) Eastern Time - Iqaluit',
[1012] Fix | Delete
'America/Jamaica' => '(GMT-05:00) Jamaica',
[1013] Fix | Delete
'America/Lima' => '(GMT-05:00) Lima',
[1014] Fix | Delete
'America/Montreal' => '(GMT-05:00) Eastern Time - Montreal',
[1015] Fix | Delete
'America/Nassau' => '(GMT-05:00) Nassau',
[1016] Fix | Delete
'America/New_York' => '(GMT-05:00) Eastern Time',
[1017] Fix | Delete
'America/Panama' => '(GMT-05:00) Panama',
[1018] Fix | Delete
'America/Port-au-Prince' => '(GMT-05:00) Port-au-Prince',
[1019] Fix | Delete
'America/Rio_Branco' => '(GMT-05:00) Rio Branco',
[1020] Fix | Delete
'America/Toronto' => '(GMT-05:00) Eastern Time - Toronto',
[1021] Fix | Delete
'America/Caracas' => '(GMT-04:30) Caracas',
[1022] Fix | Delete
'America/Antigua' => '(GMT-04:00) Antigua',
[1023] Fix | Delete
'America/Asuncion' => '(GMT-04:00) Asuncion',
[1024] Fix | Delete
'America/Barbados' => '(GMT-04:00) Barbados',
[1025] Fix | Delete
'America/Boa_Vista' => '(GMT-04:00) Boa Vista',
[1026] Fix | Delete
'America/Campo_Grande' => '(GMT-04:00) Campo Grande',
[1027] Fix | Delete
'America/Cuiaba' => '(GMT-04:00) Cuiaba',
[1028] Fix | Delete
'America/Curacao' => '(GMT-04:00) Curacao',
[1029] Fix | Delete
'America/Grand_Turk' => '(GMT-04:00) Grand Turk',
[1030] Fix | Delete
'America/Guyana' => '(GMT-04:00) Guyana',
[1031] Fix | Delete
'America/Halifax' => '(GMT-04:00) Atlantic Time - Halifax',
[1032] Fix | Delete
'America/La_Paz' => '(GMT-04:00) La Paz',
[1033] Fix | Delete
'America/Manaus' => '(GMT-04:00) Manaus',
[1034] Fix | Delete
'America/Martinique' => '(GMT-04:00) Martinique',
[1035] Fix | Delete
'America/Port_of_Spain' => '(GMT-04:00) Port of Spain',
[1036] Fix | Delete
'America/Porto_Velho' => '(GMT-04:00) Porto Velho',
[1037] Fix | Delete
'America/Puerto_Rico' => '(GMT-04:00) Puerto Rico',
[1038] Fix | Delete
'America/Santiago' => '(GMT-04:00) Santiago',
[1039] Fix | Delete
'America/Santo_Domingo' => '(GMT-04:00) Santo Domingo',
[1040] Fix | Delete
'America/Thule' => '(GMT-04:00) Thule',
[1041] Fix | Delete
'Antarctica/Palmer' => '(GMT-04:00) Palmer',
[1042] Fix | Delete
'Atlantic/Bermuda' => '(GMT-04:00) Bermuda',
[1043] Fix | Delete
'America/St_Johns' => '(GMT-03:30) Newfoundland Time - St. Johns',
[1044] Fix | Delete
'America/Araguaina' => '(GMT-03:00) Araguaina',
[1045] Fix | Delete
'America/Argentina/Buenos_Aires' => '(GMT-03:00) Buenos Aires',
[1046] Fix | Delete
'America/Bahia' => '(GMT-03:00) Salvador',
[1047] Fix | Delete
'America/Belem' => '(GMT-03:00) Belem',
[1048] Fix | Delete
'America/Cayenne' => '(GMT-03:00) Cayenne',
[1049] Fix | Delete
'America/Fortaleza' => '(GMT-03:00) Fortaleza',
[1050] Fix | Delete
'America/Godthab' => '(GMT-03:00) Godthab',
[1051] Fix | Delete
'America/Maceio' => '(GMT-03:00) Maceio',
[1052] Fix | Delete
'America/Miquelon' => '(GMT-03:00) Miquelon',
[1053] Fix | Delete
'America/Montevideo' => '(GMT-03:00) Montevideo',
[1054] Fix | Delete
'America/Paramaribo' => '(GMT-03:00) Paramaribo',
[1055] Fix | Delete
'America/Recife' => '(GMT-03:00) Recife',
[1056] Fix | Delete
'America/Sao_Paulo' => '(GMT-03:00) Sao Paulo',
[1057] Fix | Delete
'Antarctica/Rothera' => '(GMT-03:00) Rothera',
[1058] Fix | Delete
'Atlantic/Stanley' => '(GMT-03:00) Stanley',
[1059] Fix | Delete
'America/Noronha' => '(GMT-02:00) Noronha',
[1060] Fix | Delete
'Atlantic/South_Georgia' => '(GMT-02:00) South Georgia',
[1061] Fix | Delete
'America/Scoresbysund' => '(GMT-01:00) Scoresbysund',
[1062] Fix | Delete
'Atlantic/Azores' => '(GMT-01:00) Azores',
[1063] Fix | Delete
'Atlantic/Cape_Verde' => '(GMT-01:00) Cape Verde',
[1064] Fix | Delete
'Africa/Abidjan' => '(GMT+00:00) Abidjan',
[1065] Fix | Delete
'Africa/Accra' => '(GMT+00:00) Accra',
[1066] Fix | Delete
'Africa/Bissau' => '(GMT+00:00) Bissau',
[1067] Fix | Delete
'Africa/Casablanca' => '(GMT+00:00) Casablanca',
[1068] Fix | Delete
'Africa/El_Aaiun' => '(GMT+00:00) El Aaiun',
[1069] Fix | Delete
'Africa/Monrovia' => '(GMT+00:00) Monrovia',
[1070] Fix | Delete
'America/Danmarkshavn' => '(GMT+00:00) Danmarkshavn',
[1071] Fix | Delete
'Atlantic/Canary' => '(GMT+00:00) Canary Islands',
[1072] Fix | Delete
'Atlantic/Faroe' => '(GMT+00:00) Faeroe',
[1073] Fix | Delete
'Atlantic/Reykjavik' => '(GMT+00:00) Reykjavik',
[1074] Fix | Delete
'Etc/GMT' => '(GMT+00:00) GMT (no daylight saving)',
[1075] Fix | Delete
'Europe/Dublin' => '(GMT+00:00) Dublin',
[1076] Fix | Delete
'Europe/Lisbon' => '(GMT+00:00) Lisbon',
[1077] Fix | Delete
'Europe/London' => '(GMT+00:00) London',
[1078] Fix | Delete
'Africa/Algiers' => '(GMT+01:00) Algiers',
[1079] Fix | Delete
'Africa/Ceuta' => '(GMT+01:00) Ceuta',
[1080] Fix | Delete
'Africa/Lagos' => '(GMT+01:00) Lagos',
[1081] Fix | Delete
'Africa/Ndjamena' => '(GMT+01:00) Ndjamena',
[1082] Fix | Delete
'Africa/Tunis' => '(GMT+01:00) Tunis',
[1083] Fix | Delete
'Africa/Windhoek' => '(GMT+01:00) Windhoek',
[1084] Fix | Delete
'Europe/Amsterdam' => '(GMT+01:00) Amsterdam',
[1085] Fix | Delete
'Europe/Andorra' => '(GMT+01:00) Andorra',
[1086] Fix | Delete
'Europe/Belgrade' => '(GMT+01:00) Central European Time - Belgrade',
[1087] Fix | Delete
'Europe/Berlin' => '(GMT+01:00) Berlin',
[1088] Fix | Delete
'Europe/Brussels' => '(GMT+01:00) Brussels',
[1089] Fix | Delete
'Europe/Budapest' => '(GMT+01:00) Budapest',
[1090] Fix | Delete
'Europe/Copenhagen' => '(GMT+01:00) Copenhagen',
[1091] Fix | Delete
'Europe/Gibraltar' => '(GMT+01:00) Gibraltar',
[1092] Fix | Delete
'Europe/Luxembourg' => '(GMT+01:00) Luxembourg',
[1093] Fix | Delete
'Europe/Madrid' => '(GMT+01:00) Madrid',
[1094] Fix | Delete
'Europe/Malta' => '(GMT+01:00) Malta',
[1095] Fix | Delete
'Europe/Monaco' => '(GMT+01:00) Monaco',
[1096] Fix | Delete
'Europe/Oslo' => '(GMT+01:00) Oslo',
[1097] Fix | Delete
'Europe/Paris' => '(GMT+01:00) Paris',
[1098] Fix | Delete
'Europe/Prague' => '(GMT+01:00) Central European Time - Prague',
[1099] Fix | Delete
'Europe/Rome' => '(GMT+01:00) Rome',
[1100] Fix | Delete
'Europe/Stockholm' => '(GMT+01:00) Stockholm',
[1101] Fix | Delete
'Europe/Tirane' => '(GMT+01:00) Tirane',
[1102] Fix | Delete
'Europe/Vienna' => '(GMT+01:00) Vienna',
[1103] Fix | Delete
'Europe/Warsaw' => '(GMT+01:00) Warsaw',
[1104] Fix | Delete
'Europe/Zurich' => '(GMT+01:00) Zurich',
[1105] Fix | Delete
'Africa/Cairo' => '(GMT+02:00) Cairo',
[1106] Fix | Delete
'Africa/Johannesburg' => '(GMT+02:00) Johannesburg',
[1107] Fix | Delete
'Africa/Maputo' => '(GMT+02:00) Maputo',
[1108] Fix | Delete
'Africa/Tripoli' => '(GMT+02:00) Tripoli',
[1109] Fix | Delete
'Asia/Amman' => '(GMT+02:00) Amman',
[1110] Fix | Delete
'Asia/Beirut' => '(GMT+02:00) Beirut',
[1111] Fix | Delete
'Asia/Damascus' => '(GMT+02:00) Damascus',
[1112] Fix | Delete
'Asia/Gaza' => '(GMT+02:00) Gaza',
[1113] Fix | Delete
'Asia/Jerusalem' => '(GMT+02:00) Jerusalem',
[1114] Fix | Delete
'Asia/Nicosia' => '(GMT+02:00) Nicosia',
[1115] Fix | Delete
'Europe/Athens' => '(GMT+02:00) Athens',
[1116] Fix | Delete
'Europe/Bucharest' => '(GMT+02:00) Bucharest',
[1117] Fix | Delete
'Europe/Chisinau' => '(GMT+02:00) Chisinau',
[1118] Fix | Delete
'Europe/Helsinki' => '(GMT+02:00) Helsinki',
[1119] Fix | Delete
'Europe/Istanbul' => '(GMT+02:00) Istanbul',
[1120] Fix | Delete
'Europe/Kaliningrad' => '(GMT+02:00) Moscow-01 - Kaliningrad',
[1121] Fix | Delete
'Europe/Kiev' => '(GMT+02:00) Kiev',
[1122] Fix | Delete
'Europe/Riga' => '(GMT+02:00) Riga',
[1123] Fix | Delete
'Europe/Sofia' => '(GMT+02:00) Sofia',
[1124] Fix | Delete
'Europe/Tallinn' => '(GMT+02:00) Tallinn',
[1125] Fix | Delete
'Europe/Vilnius' => '(GMT+02:00) Vilnius',
[1126] Fix | Delete
'Africa/Addis_Ababa' => '(GMT+03:00) Addis Ababa',
[1127] Fix | Delete
'Africa/Asmara' => '(GMT+03:00) Asmera',
[1128] Fix | Delete
'Africa/Dar_es_Salaam' => '(GMT+03:00) Dar es Salaam',
[1129] Fix | Delete
'Africa/Djibouti' => '(GMT+03:00) Djibouti',
[1130] Fix | Delete
'Africa/Kampala' => '(GMT+03:00) Kampala',
[1131] Fix | Delete
'Africa/Khartoum' => '(GMT+03:00) Khartoum',
[1132] Fix | Delete
'Africa/Mogadishu' => '(GMT+03:00) Mogadishu',
[1133] Fix | Delete
'Africa/Nairobi' => '(GMT+03:00) Nairobi',
[1134] Fix | Delete
'Antarctica/Syowa' => '(GMT+03:00) Syowa',
[1135] Fix | Delete
'Asia/Aden' => '(GMT+03:00) Aden',
[1136] Fix | Delete
'Asia/Baghdad' => '(GMT+03:00) Baghdad',
[1137] Fix | Delete
'Asia/Bahrain' => '(GMT+03:00) Bahrain',
[1138] Fix | Delete
'Asia/Kuwait' => '(GMT+03:00) Kuwait',
[1139] Fix | Delete
'Asia/Qatar' => '(GMT+03:00) Qatar',
[1140] Fix | Delete
'Asia/Riyadh' => '(GMT+03:00) Riyadh',
[1141] Fix | Delete
'Europe/Minsk' => '(GMT+03:00) Minsk',
[1142] Fix | Delete
'Europe/Moscow' => '(GMT+03:00) Moscow+00',
[1143] Fix | Delete
'Indian/Antananarivo' => '(GMT+03:00) Antananarivo',
[1144] Fix | Delete
'Indian/Comoro' => '(GMT+03:00) Comoro',
[1145] Fix | Delete
'Indian/Mayotte' => '(GMT+03:00) Mayotte',
[1146] Fix | Delete
'Asia/Tehran' => '(GMT+03:30) Tehran',
[1147] Fix | Delete
'Asia/Baku' => '(GMT+04:00) Baku',
[1148] Fix | Delete
'Asia/Dubai' => '(GMT+04:00) Dubai',
[1149] Fix | Delete
'Asia/Muscat' => '(GMT+04:00) Muscat',
[1150] Fix | Delete
'Asia/Tbilisi' => '(GMT+04:00) Tbilisi',
[1151] Fix | Delete
'Asia/Yerevan' => '(GMT+04:00) Yerevan',
[1152] Fix | Delete
'Europe/Samara' => '(GMT+04:00) Moscow+00 - Samara',
[1153] Fix | Delete
'Indian/Mahe' => '(GMT+04:00) Mahe',
[1154] Fix | Delete
'Indian/Mauritius' => '(GMT+04:00) Mauritius',
[1155] Fix | Delete
'Indian/Reunion' => '(GMT+04:00) Reunion',
[1156] Fix | Delete
'Asia/Kabul' => '(GMT+04:30) Kabul',
[1157] Fix | Delete
'Antarctica/Mawson' => '(GMT+05:00) Mawson',
[1158] Fix | Delete
'Asia/Aqtau' => '(GMT+05:00) Aqtau',
[1159] Fix | Delete
'Asia/Aqtobe' => '(GMT+05:00) Aqtobe',
[1160] Fix | Delete
'Asia/Ashgabat' => '(GMT+05:00) Ashgabat',
[1161] Fix | Delete
'Asia/Dushanbe' => '(GMT+05:00) Dushanbe',
[1162] Fix | Delete
'Asia/Karachi' => '(GMT+05:00) Karachi',
[1163] Fix | Delete
'Asia/Tashkent' => '(GMT+05:00) Tashkent',
[1164] Fix | Delete
'Asia/Yekaterinburg' => '(GMT+05:00) Moscow+02 - Yekaterinburg',
[1165] Fix | Delete
'Indian/Kerguelen' => '(GMT+05:00) Kerguelen',
[1166] Fix | Delete
'Indian/Maldives' => '(GMT+05:00) Maldives',
[1167] Fix | Delete
'Asia/Calcutta' => '(GMT+05:30) India Standard Time',
[1168] Fix | Delete
'Asia/Colombo' => '(GMT+05:30) Colombo',
[1169] Fix | Delete
'Asia/Katmandu' => '(GMT+05:45) Katmandu',
[1170] Fix | Delete
'Antarctica/Vostok' => '(GMT+06:00) Vostok',
[1171] Fix | Delete
'Asia/Almaty' => '(GMT+06:00) Almaty',
[1172] Fix | Delete
'Asia/Bishkek' => '(GMT+06:00) Bishkek',
[1173] Fix | Delete
'Asia/Dhaka' => '(GMT+06:00) Dhaka',
[1174] Fix | Delete
'Asia/Omsk' => '(GMT+06:00) Moscow+03 - Omsk, Novosibirsk',
[1175] Fix | Delete
'Asia/Thimphu' => '(GMT+06:00) Thimphu',
[1176] Fix | Delete
'Indian/Chagos' => '(GMT+06:00) Chagos',
[1177] Fix | Delete
'Asia/Rangoon' => '(GMT+06:30) Rangoon',
[1178] Fix | Delete
'Indian/Cocos' => '(GMT+06:30) Cocos',
[1179] Fix | Delete
'Antarctica/Davis' => '(GMT+07:00) Davis',
[1180] Fix | Delete
'Asia/Bangkok' => '(GMT+07:00) Bangkok',
[1181] Fix | Delete
'Asia/Hovd' => '(GMT+07:00) Hovd',
[1182] Fix | Delete
'Asia/Jakarta' => '(GMT+07:00) Jakarta',
[1183] Fix | Delete
'Asia/Krasnoyarsk' => '(GMT+07:00) Moscow+04 - Krasnoyarsk',
[1184] Fix | Delete
'Asia/Saigon' => '(GMT+07:00) Hanoi',
[1185] Fix | Delete
'Indian/Christmas' => '(GMT+07:00) Christmas',
[1186] Fix | Delete
'Antarctica/Casey' => '(GMT+08:00) Casey',
[1187] Fix | Delete
'Asia/Brunei' => '(GMT+08:00) Brunei',
[1188] Fix | Delete
'Asia/Choibalsan' => '(GMT+08:00) Choibalsan',
[1189] Fix | Delete
'Asia/Hong_Kong' => '(GMT+08:00) Hong Kong',
[1190] Fix | Delete
'Asia/Irkutsk' => '(GMT+08:00) Moscow+05 - Irkutsk',
[1191] Fix | Delete
'Asia/Kuala_Lumpur' => '(GMT+08:00) Kuala Lumpur',
[1192] Fix | Delete
'Asia/Macau' => '(GMT+08:00) Macau',
[1193] Fix | Delete
'Asia/Makassar' => '(GMT+08:00) Makassar',
[1194] Fix | Delete
'Asia/Manila' => '(GMT+08:00) Manila',
[1195] Fix | Delete
'Asia/Shanghai' => '(GMT+08:00) China Time - Beijing',
[1196] Fix | Delete
'Asia/Singapore' => '(GMT+08:00) Singapore',
[1197] Fix | Delete
'Asia/Taipei' => '(GMT+08:00) Taipei',
[1198] Fix | Delete
'Asia/Ulaanbaatar' => '(GMT+08:00) Ulaanbaatar',
[1199] Fix | Delete
'Australia/Perth' => '(GMT+08:00) Western Time - Perth',
[1200] Fix | Delete
'Asia/Dili' => '(GMT+09:00) Dili',
[1201] Fix | Delete
'Asia/Jayapura' => '(GMT+09:00) Jayapura',
[1202] Fix | Delete
'Asia/Pyongyang' => '(GMT+09:00) Pyongyang',
[1203] Fix | Delete
'Asia/Seoul' => '(GMT+09:00) Seoul',
[1204] Fix | Delete
'Asia/Tokyo' => '(GMT+09:00) Tokyo',
[1205] Fix | Delete
'Asia/Yakutsk' => '(GMT+09:00) Moscow+06 - Yakutsk',
[1206] Fix | Delete
'Pacific/Palau' => '(GMT+09:00) Palau',
[1207] Fix | Delete
'Australia/Adelaide' => '(GMT+09:30) Central Time - Adelaide',
[1208] Fix | Delete
'Australia/Darwin' => '(GMT+09:30) Central Time - Darwin',
[1209] Fix | Delete
'Antarctica/DumontDUrville' => '(GMT+10:00) Dumont D\'Urville',
[1210] Fix | Delete
'Asia/Magadan' => '(GMT+10:00) Moscow+08 - Magadan',
[1211] Fix | Delete
'Asia/Vladivostok' => '(GMT+10:00) Moscow+07 - Yuzhno-Sakhalinsk',
[1212] Fix | Delete
'Australia/Brisbane' => '(GMT+10:00) Eastern Time - Brisbane',
[1213] Fix | Delete
'Australia/Hobart' => '(GMT+10:00) Eastern Time - Hobart',
[1214] Fix | Delete
'Australia/Sydney' => '(GMT+10:00) Eastern Time - Melbourne, Sydney',
[1215] Fix | Delete
'Pacific/Chuuk' => '(GMT+10:00) Truk',
[1216] Fix | Delete
'Pacific/Guam' => '(GMT+10:00) Guam',
[1217] Fix | Delete
'Pacific/Port_Moresby' => '(GMT+10:00) Port Moresby',
[1218] Fix | Delete
'Pacific/Saipan' => '(GMT+10:00) Saipan',
[1219] Fix | Delete
'Pacific/Efate' => '(GMT+11:00) Efate',
[1220] Fix | Delete
'Pacific/Guadalcanal' => '(GMT+11:00) Guadalcanal',
[1221] Fix | Delete
'Pacific/Kosrae' => '(GMT+11:00) Kosrae',
[1222] Fix | Delete
'Pacific/Noumea' => '(GMT+11:00) Noumea',
[1223] Fix | Delete
'Pacific/Pohnpei' => '(GMT+11:00) Ponape',
[1224] Fix | Delete
'Pacific/Norfolk' => '(GMT+11:30) Norfolk',
[1225] Fix | Delete
'Asia/Kamchatka' => '(GMT+12:00) Moscow+08 - Petropavlovsk-Kamchatskiy',
[1226] Fix | Delete
'Pacific/Auckland' => '(GMT+12:00) Auckland',
[1227] Fix | Delete
'Pacific/Fiji' => '(GMT+12:00) Fiji',
[1228] Fix | Delete
'Pacific/Funafuti' => '(GMT+12:00) Funafuti',
[1229] Fix | Delete
'Pacific/Kwajalein' => '(GMT+12:00) Kwajalein',
[1230] Fix | Delete
'Pacific/Majuro' => '(GMT+12:00) Majuro',
[1231] Fix | Delete
'Pacific/Nauru' => '(GMT+12:00) Nauru',
[1232] Fix | Delete
'Pacific/Tarawa' => '(GMT+12:00) Tarawa',
[1233] Fix | Delete
'Pacific/Wake' => '(GMT+12:00) Wake',
[1234] Fix | Delete
'Pacific/Wallis' => '(GMT+12:00) Wallis',
[1235] Fix | Delete
'Pacific/Apia' => '(GMT+13:00) Apia',
[1236] Fix | Delete
'Pacific/Enderbury' => '(GMT+13:00) Enderbury',
[1237] Fix | Delete
'Pacific/Fakaofo' => '(GMT+13:00) Fakaofo',
[1238] Fix | Delete
'Pacific/Tongatapu' => '(GMT+13:00) Tongatapu',
[1239] Fix | Delete
'Pacific/Kiritimati' => '(GMT+14:00) Kiritimati'
[1240] Fix | Delete
);
[1241] Fix | Delete
}
[1242] Fix | Delete
[1243] Fix | Delete
public static function getJsLocalizedData()
[1244] Fix | Delete
{
[1245] Fix | Delete
$translatedData = array(
[1246] Fix | Delete
'imageSupportAlertMessage' => __('Only image files supported', 'popup-builder'),
[1247] Fix | Delete
'pdfSupportAlertMessage' => __('Only pdf files supported', 'popup-builder'),
[1248] Fix | Delete
'areYouSure' => __('Are you sure?', 'popup-builder'),
[1249] Fix | Delete
'addButtonSpinner' => __('L', 'popup-builder'),
[1250] Fix | Delete
'audioSupportAlertMessage' => __('Only audio files supported (e.g.: mp3, wav, m4a, ogg)', 'popup-builder'),
[1251] Fix | Delete
'publishPopupBeforeElementor' => __('Please, publish the popup before starting to use Elementor with it!', 'popup-builder'),
[1252] Fix | Delete
'publishPopupBeforeDivi' => __('Please, publish the popup before starting to use Divi Builder with it!', 'popup-builder'),
[1253] Fix | Delete
'closeButtonAltText' => __('Close', 'popup-builder')
[1254] Fix | Delete
);
[1255] Fix | Delete
[1256] Fix | Delete
return $translatedData;
[1257] Fix | Delete
}
[1258] Fix | Delete
[1259] Fix | Delete
public static function getCurrentDateTime()
[1260] Fix | Delete
{
[1261] Fix | Delete
return gmdate('Y-m-d H:i', strtotime(' +1 day'));
[1262] Fix | Delete
}
[1263] Fix | Delete
[1264] Fix | Delete
public static function getDefaultTimezone()
[1265] Fix | Delete
{
[1266] Fix | Delete
$timezone = get_option('timezone_string');
[1267] Fix | Delete
if (!$timezone) {
[1268] Fix | Delete
$timezone = 'America/New_York';
[1269] Fix | Delete
}
[1270] Fix | Delete
[1271] Fix | Delete
return $timezone;
[1272] Fix | Delete
}
[1273] Fix | Delete
}
[1274] Fix | Delete
[1275] Fix | Delete
// We will keep this class to make sure all Popup Extension Add-ons are still working fine.
[1276] Fix | Delete
// In the future, we will remove it when you update all code in Add-ons to use NEW class above.
[1277] Fix | Delete
class ConfigDataHelper
[1278] Fix | Delete
{
[1279] Fix | Delete
public static $customPostType;
[1280] Fix | Delete
public static $allCustomPosts = array();
[1281] Fix | Delete
[1282] Fix | Delete
public static function getPostTypeData($args = array())
[1283] Fix | Delete
{
[1284] Fix | Delete
$query = self::getQueryDataByArgs($args);
[1285] Fix | Delete
[1286] Fix | Delete
$posts = array();
[1287] Fix | Delete
foreach ($query->posts as $post) {
[1288] Fix | Delete
$posts[$post->ID] = $post->post_title;
[1289] Fix | Delete
}
[1290] Fix | Delete
[1291] Fix | Delete
return $posts;
[1292] Fix | Delete
}
[1293] Fix | Delete
[1294] Fix | Delete
public static function getQueryDataByArgs($args = array())
[1295] Fix | Delete
{
[1296] Fix | Delete
$defaultArgs = array(
[1297] Fix | Delete
'offset' => '',
[1298] Fix | Delete
'orderby' => 'date',
[1299] Fix | Delete
'order' => 'DESC',
[1300] Fix | Delete
'post_status' => 'publish',
[1301] Fix | Delete
'suppress_filters' => false,
[1302] Fix | Delete
'post_type' => 'post',
[1303] Fix | Delete
'posts_per_page' => 1000
[1304] Fix | Delete
);
[1305] Fix | Delete
$args = wp_parse_args($args, $defaultArgs);
[1306] Fix | Delete
$query = new WP_Query($args);
[1307] Fix | Delete
[1308] Fix | Delete
return $query;
[1309] Fix | Delete
}
[1310] Fix | Delete
[1311] Fix | Delete
/**
[1312] Fix | Delete
* this method is used for to get all other post types
[1313] Fix | Delete
* that may created by another plugins or theme or website owner!
[1314] Fix | Delete
*
[1315] Fix | Delete
* example: download from EDD, product from Woocommerce!
[1316] Fix | Delete
*/
[1317] Fix | Delete
public static function getAllCustomPosts()
[1318] Fix | Delete
{
[1319] Fix | Delete
$args = array(
[1320] Fix | Delete
'public' => true,
[1321] Fix | Delete
'_builtin' => false
[1322] Fix | Delete
);
[1323] Fix | Delete
[1324] Fix | Delete
$allCustomPosts = get_post_types($args);
[1325] Fix | Delete
[1326] Fix | Delete
if (isset($allCustomPosts[SG_POPUP_POST_TYPE])) {
[1327] Fix | Delete
unset($allCustomPosts[SG_POPUP_POST_TYPE]);
[1328] Fix | Delete
}
[1329] Fix | Delete
self::$allCustomPosts = $allCustomPosts;
[1330] Fix | Delete
return $allCustomPosts; // TODO check for usages and remove this line
[1331] Fix | Delete
}
[1332] Fix | Delete
[1333] Fix | Delete
public static function addFilters()
[1334] Fix | Delete
{
[1335] Fix | Delete
self::addPostTypeToFilters();
[1336] Fix | Delete
}
[1337] Fix | Delete
[1338] Fix | Delete
private static function addPostTypeToFilters()
[1339] Fix | Delete
{
[1340] Fix | Delete
self::getAllCustomPosts();
[1341] Fix | Delete
add_filter('sgPopupTargetParams', array(__CLASS__, 'addPopupTargetParams'), 1, 1);
[1342] Fix | Delete
add_filter('sgPopupTargetData', array(__CLASS__, 'addPopupTargetData'), 1, 1);
[1343] Fix | Delete
add_filter('sgPopupTargetTypes', array(__CLASS__, 'addPopupTargetTypes'), 1, 1);
[1344] Fix | Delete
add_filter('sgPopupTargetAttrs', array(__CLASS__, 'addPopupTargetAttrs'), 1, 1);
[1345] Fix | Delete
add_filter('sgPopupPageTemplates', array(__CLASS__, 'addPopupPageTemplates'), 1, 1);
[1346] Fix | Delete
add_filter('sgPopupTargetPostType', array(__CLASS__, 'getAllCustomPostTypes'), 1, 1);
[1347] Fix | Delete
add_filter('sgPopupTargetPageType', array(__CLASS__, 'getPageTypes'), 1, 1);
[1348] Fix | Delete
}
[1349] Fix | Delete
[1350] Fix | Delete
public static function addPopupTargetParams($targetParams)
[1351] Fix | Delete
{
[1352] Fix | Delete
$allCustomPostTypes = self::$allCustomPosts;
[1353] Fix | Delete
// for conditions, to exclude other post types, tags etc.
[1354] Fix | Delete
if (isset($targetParams['select_role'])) {
[1355] Fix | Delete
return $targetParams;
[1356] Fix | Delete
}
[1357] Fix | Delete
[1358] Fix | Delete
foreach ($allCustomPostTypes as $customPostType) {
[1359] Fix | Delete
$targetParams[$customPostType] = array(
[1360] Fix | Delete
$customPostType.'_all' => 'All '.ucfirst($customPostType).'s',
[1361] Fix | Delete
$customPostType.'_archive' => 'Archives '.ucfirst($customPostType).'s',
[1362] Fix | Delete
$customPostType.'_selected' => 'Select '.ucfirst($customPostType).'s',
[1363] Fix | Delete
$customPostType.'_categories' => 'Select '.ucfirst($customPostType).' categories'
[1364] Fix | Delete
);
[1365] Fix | Delete
}
[1366] Fix | Delete
[1367] Fix | Delete
return $targetParams;
[1368] Fix | Delete
}
[1369] Fix | Delete
[1370] Fix | Delete
public static function addPopupTargetData($targetData)
[1371] Fix | Delete
{
[1372] Fix | Delete
$allCustomPostTypes = self::$allCustomPosts;
[1373] Fix | Delete
[1374] Fix | Delete
foreach ($allCustomPostTypes as $customPostType) {
[1375] Fix | Delete
$targetData[$customPostType.'_all'] = null;
[1376] Fix | Delete
$targetData[$customPostType.'_selected'] = '';
[1377] Fix | Delete
$targetData[$customPostType.'_categories'] = self::getCustomPostCategories($customPostType);
[1378] Fix | Delete
}
[1379] Fix | Delete
[1380] Fix | Delete
return $targetData;
[1381] Fix | Delete
}
[1382] Fix | Delete
[1383] Fix | Delete
public static function getCustomPostCategories($postTypeName)
[1384] Fix | Delete
{
[1385] Fix | Delete
$taxonomyObjects = get_object_taxonomies($postTypeName);
[1386] Fix | Delete
if ($postTypeName == 'product') {
[1387] Fix | Delete
$taxonomyObjects = array('product_cat');
[1388] Fix | Delete
}
[1389] Fix | Delete
$categories = self::getPostsAllCategories($postTypeName, $taxonomyObjects);
[1390] Fix | Delete
[1391] Fix | Delete
return $categories;
[1392] Fix | Delete
}
[1393] Fix | Delete
[1394] Fix | Delete
public static function addPopupTargetTypes($targetTypes)
[1395] Fix | Delete
{
[1396] Fix | Delete
$allCustomPostTypes = self::$allCustomPosts;
[1397] Fix | Delete
[1398] Fix | Delete
foreach ($allCustomPostTypes as $customPostType) {
[1399] Fix | Delete
$targetTypes[$customPostType.'_selected'] = 'select';
[1400] Fix | Delete
$targetTypes[$customPostType.'_categories'] = 'select';
[1401] Fix | Delete
}
[1402] Fix | Delete
[1403] Fix | Delete
return $targetTypes;
[1404] Fix | Delete
}
[1405] Fix | Delete
[1406] Fix | Delete
public static function addPopupTargetAttrs($targetAttrs)
[1407] Fix | Delete
{
[1408] Fix | Delete
$allCustomPostTypes = self::$allCustomPosts;
[1409] Fix | Delete
[1410] Fix | Delete
foreach ($allCustomPostTypes as $customPostType) {
[1411] Fix | Delete
$targetAttrs[$customPostType.'_selected']['htmlAttrs'] = array('class' => 'js-sg-select2 js-select-ajax', 'data-select-class' => 'js-select-ajax', 'data-select-type' => 'ajax', 'data-value-param' => $customPostType, 'multiple' => 'multiple');
[1412] Fix | Delete
$targetAttrs[$customPostType.'_selected']['infoAttrs'] = array('label' => __('Select ', 'popup-builder').$customPostType);
[1413] Fix | Delete
[1414] Fix | Delete
$targetAttrs[$customPostType.'_categories']['htmlAttrs'] = array('class' => 'js-sg-select2 js-select-ajax', 'data-select-class' => 'js-select-ajax', 'isNotPostType' => true, 'data-value-param' => $customPostType, 'multiple' => 'multiple');
[1415] Fix | Delete
$targetAttrs[$customPostType.'_categories']['infoAttrs'] = array('label' => __('Select ', 'popup-builder').$customPostType.' categories');
[1416] Fix | Delete
}
[1417] Fix | Delete
[1418] Fix | Delete
return $targetAttrs;
[1419] Fix | Delete
}
[1420] Fix | Delete
[1421] Fix | Delete
public static function addPopupPageTemplates($templates)
[1422] Fix | Delete
{
[1423] Fix | Delete
$pageTemplates = self::getPageTemplates();
[1424] Fix | Delete
[1425] Fix | Delete
$pageTemplates += $templates;
[1426] Fix | Delete
[1427] Fix | Delete
return $pageTemplates;
[1428] Fix | Delete
}
[1429] Fix | Delete
[1430] Fix | Delete
public static function getAllCustomPostTypes()
[1431] Fix | Delete
{
[1432] Fix | Delete
$args = array(
[1433] Fix | Delete
'public' => true,
[1434] Fix | Delete
'_builtin' => false
[1435] Fix | Delete
);
[1436] Fix | Delete
[1437] Fix | Delete
$allCustomPosts = get_post_types($args);
[1438] Fix | Delete
if (!empty($allCustomPosts[SG_POPUP_POST_TYPE])) {
[1439] Fix | Delete
unset($allCustomPosts[SG_POPUP_POST_TYPE]);
[1440] Fix | Delete
}
[1441] Fix | Delete
[1442] Fix | Delete
return $allCustomPosts;
[1443] Fix | Delete
}
[1444] Fix | Delete
[1445] Fix | Delete
public static function getPostsAllCategories($postType = 'post', $taxonomies = array(), $search_text = '')
[1446] Fix | Delete
{
[1447] Fix | Delete
$cats = get_terms(
[1448] Fix | Delete
array(
[1449] Fix | Delete
'taxonomy' => $taxonomies,
[1450] Fix | Delete
'hide_empty' => false,
[1451] Fix | Delete
'type' => $postType,
[1452] Fix | Delete
'orderby' => 'name',
[1453] Fix | Delete
'order' => 'ASC',
[1454] Fix | Delete
'number' => 200,
[1455] Fix | Delete
'offset' => 0,
[1456] Fix | Delete
'name__like' => $search_text
[1457] Fix | Delete
)
[1458] Fix | Delete
);
[1459] Fix | Delete
[1460] Fix | Delete
$supportedTaxonomies = array('category');
[1461] Fix | Delete
if (!empty($taxonomies)) {
[1462] Fix | Delete
$supportedTaxonomies = $taxonomies;
[1463] Fix | Delete
}
[1464] Fix | Delete
[1465] Fix | Delete
$catsParams = array();
[1466] Fix | Delete
foreach ($cats as $cat) {
[1467] Fix | Delete
if (isset($cat->taxonomy)) {
[1468] Fix | Delete
if (!in_array($cat->taxonomy, $supportedTaxonomies)) {
[1469] Fix | Delete
continue;
[1470] Fix | Delete
}
[1471] Fix | Delete
}
[1472] Fix | Delete
$id = $cat->term_id;
[1473] Fix | Delete
$name = $cat->name;
[1474] Fix | Delete
$catsParams[$id] = $name;
[1475] Fix | Delete
}
[1476] Fix | Delete
[1477] Fix | Delete
return $catsParams;
[1478] Fix | Delete
}
[1479] Fix | Delete
[1480] Fix | Delete
public static function getPageTypes()
[1481] Fix | Delete
{
[1482] Fix | Delete
$postTypes = array();
[1483] Fix | Delete
[1484] Fix | Delete
$postTypes['is_home_page'] = __('Home Page', 'popup-builder');
[1485] Fix | Delete
$postTypes['is_home'] = __('Posts Page', 'popup-builder');
[1486] Fix | Delete
$postTypes['is_search'] = __('Search Pages', 'popup-builder');
[1487] Fix | Delete
$postTypes['is_404'] = __('404 Pages', 'popup-builder');
[1488] Fix | Delete
if (function_exists('is_shop')) {
[1489] Fix | Delete
$postTypes['is_shop'] = __('Shop Page', 'popup-builder');
[1490] Fix | Delete
}
[1491] Fix | Delete
if (function_exists('is_archive')) {
[1492] Fix | Delete
$postTypes['is_archive'] = __('Archive Page', 'popup-builder');
[1493] Fix | Delete
}
[1494] Fix | Delete
[1495] Fix | Delete
return $postTypes;
[1496] Fix | Delete
}
[1497] Fix | Delete
[1498] Fix | Delete
public static function getPageTemplates()
[1499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function