Version Description
Current Version of Popup Builder is 3.0.5
Download this release
Release Info
Developer | Sygnoos |
Plugin | Popup Builder – Responsive WordPress Pop up |
Version | 3.0.8 |
Comparing to | |
See all releases |
Code changes from version 3.0.7 to 3.0.8
- com/classes/Actions.php +12 -14
- com/classes/Ajax.php +64 -2
- com/classes/ConditionBuilder.php +18 -1
- com/classes/ConditionCreator.php +61 -1
- com/classes/Filters.php +40 -15
- com/classes/Installer.php +0 -1
- com/classes/PopupChecker.php +5 -131
- com/classes/PopupGroupFilter.php +1 -26
- com/classes/RegisterPostType.php +0 -13
- com/classes/ScriptsLoader.php +2 -1
- com/classes/extension/SgpbPopupExtension.php +6 -3
- com/classes/popups/ImagePopup.php +4 -2
- com/classes/popups/SGPopup.php +25 -3
- com/classes/popups/SubscriptionPopup.php +1 -1
- com/config/config.php +26 -25
- com/config/configPackage.php +1 -1
- com/config/dataConfig.php +262 -85
- com/helpers/AdminHelper.php +48 -1
- com/helpers/ConfigDataHelper.php +339 -29
- com/helpers/Functions.php +23 -37
- com/helpers/PopupBuilderActivePackage.php +11 -3
- popup-builder.php +1 -1
- public/css/ResetFormStyle.css +1 -0
- public/css/popupAdminStyles.css +125 -14
- public/css/theme.css +169 -6
- public/img/advancedTargeting.png +0 -0
- public/img/advancesClosing.png +0 -0
- public/img/geoTypeIcon.png +0 -0
- public/img/inactivity.png +0 -0
- public/img/loginTypeIcon.png +0 -0
- public/img/random.png +0 -0
- public/img/schedulingTypeIcon.png +0 -0
- public/img/scroll.png +0 -0
- public/js/Backend.js +18 -49
- public/js/ExtensionsNotification.js +3 -0
- public/js/MediaButton.js +23 -1
- public/js/Popup.js +237 -1
- public/js/PopupBuilder.js +43 -57
- public/js/PopupConfig.js +9 -1
- public/js/Subscription.js +44 -1
- public/js/sgpbSelect2.js +10 -1
- public/views/closeSettingsView.php +1 -1
- public/views/eventsView.php +1 -1
- public/views/optionsView.php +1 -40
- public/views/popupDesignView.php +1 -1
- public/views/settings.php +1 -1
- readme.txt +9 -1
com/classes/Actions.php
CHANGED
@@ -30,8 +30,7 @@ class Actions
|
|
30 |
add_action('admin_enqueue_scripts', array($this, 'adminLoadPopups'));
|
31 |
add_action('admin_action_popupSaveAsNew', array($this, 'popupSaveAsNew'));
|
32 |
add_action('dp_duplicate_post', array($this, 'popupCopyPostMetaInfo'), 10, 2);
|
33 |
-
add_filter('sgpbOtherConditions', array($this ,'conditionsSatisfy'));
|
34 |
-
add_filter(SG_POPUP_CATEGORY_TAXONOMY.'_row_actions' , array($this, 'taxonomyRowActions'), 2, 2);
|
35 |
add_filter('post_updated_messages', array($this, 'popupPublishedMessage'), 1, 1);
|
36 |
add_action('admin_post_csv_file', array($this, 'getSubscribersCsvFile'));
|
37 |
add_action('before_delete_post', array($this, 'deleteSubscribersWithPopup'), 1, 1);
|
@@ -178,7 +177,7 @@ class Actions
|
|
178 |
if (!$unsubscribeColumnFixed) {
|
179 |
AdminHelper::addUnsubscribeColumn();
|
180 |
update_option('sgpbUnsubscribeColumnFixed', 1);
|
181 |
-
delete_option('sgpbUnsubscribeColumn'
|
182 |
}
|
183 |
|
184 |
if ($versionPopup && !$convert) {
|
@@ -470,15 +469,6 @@ class Actions
|
|
470 |
AdminHelper::deleteUserFromSubscribers($params);
|
471 |
}
|
472 |
|
473 |
-
public function taxonomyRowActions($actions, $row)
|
474 |
-
{
|
475 |
-
if ($row->slug == SG_RANDOM_TAXONOMY_SLUG) {
|
476 |
-
return array();
|
477 |
-
}
|
478 |
-
|
479 |
-
return $actions;
|
480 |
-
}
|
481 |
-
|
482 |
public function enqueuePopupBuilderScripts()
|
483 |
{
|
484 |
// for old popups
|
@@ -526,6 +516,9 @@ class Actions
|
|
526 |
|
527 |
public function collectUnsubscriberArgs()
|
528 |
{
|
|
|
|
|
|
|
529 |
$args = array();
|
530 |
if (isset($_GET['sgpbUnsubscribe'])) {
|
531 |
$args['token'] = $_GET['sgpbUnsubscribe'];
|
@@ -635,9 +628,14 @@ class Actions
|
|
635 |
* @return bool
|
636 |
*
|
637 |
*/
|
638 |
-
public function conditionsSatisfy($args)
|
639 |
{
|
640 |
-
|
|
|
|
|
|
|
|
|
|
|
641 |
}
|
642 |
|
643 |
public function popupsTableColumnsValues($column, $postId)
|
30 |
add_action('admin_enqueue_scripts', array($this, 'adminLoadPopups'));
|
31 |
add_action('admin_action_popupSaveAsNew', array($this, 'popupSaveAsNew'));
|
32 |
add_action('dp_duplicate_post', array($this, 'popupCopyPostMetaInfo'), 10, 2);
|
33 |
+
add_filter('sgpbOtherConditions', array($this ,'conditionsSatisfy'), 11, 1);
|
|
|
34 |
add_filter('post_updated_messages', array($this, 'popupPublishedMessage'), 1, 1);
|
35 |
add_action('admin_post_csv_file', array($this, 'getSubscribersCsvFile'));
|
36 |
add_action('before_delete_post', array($this, 'deleteSubscribersWithPopup'), 1, 1);
|
177 |
if (!$unsubscribeColumnFixed) {
|
178 |
AdminHelper::addUnsubscribeColumn();
|
179 |
update_option('sgpbUnsubscribeColumnFixed', 1);
|
180 |
+
delete_option('sgpbUnsubscribeColumn');
|
181 |
}
|
182 |
|
183 |
if ($versionPopup && !$convert) {
|
469 |
AdminHelper::deleteUserFromSubscribers($params);
|
470 |
}
|
471 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
472 |
public function enqueuePopupBuilderScripts()
|
473 |
{
|
474 |
// for old popups
|
516 |
|
517 |
public function collectUnsubscriberArgs()
|
518 |
{
|
519 |
+
if (!isset($_GET['sgpbUnsubscribe'])) {
|
520 |
+
return false;
|
521 |
+
}
|
522 |
$args = array();
|
523 |
if (isset($_GET['sgpbUnsubscribe'])) {
|
524 |
$args['token'] = $_GET['sgpbUnsubscribe'];
|
628 |
* @return bool
|
629 |
*
|
630 |
*/
|
631 |
+
public function conditionsSatisfy($args = array())
|
632 |
{
|
633 |
+
if (isset($args['status']) && $args['status'] === false) {
|
634 |
+
return $args;
|
635 |
+
}
|
636 |
+
$args['status'] = PopupChecker::checkOtherConditionsActions($args);
|
637 |
+
|
638 |
+
return $args;
|
639 |
}
|
640 |
|
641 |
public function popupsTableColumnsValues($column, $postId)
|
com/classes/Ajax.php
CHANGED
@@ -51,7 +51,9 @@ class Ajax
|
|
51 |
add_action('wp_ajax_sgpb_subscription_submission', array($this, 'subscriptionSubmission'));
|
52 |
add_action('wp_ajax_nopriv_sgpb_subscription_submission', array($this, 'subscriptionSubmission'));
|
53 |
add_action('wp_ajax_change_popup_status', array($this, 'changePopupStatus'));
|
54 |
-
//
|
|
|
|
|
55 |
add_action('wp_ajax_sgpb_subscribers_delete', array($this, 'deleteSubscribers'));
|
56 |
add_action('wp_ajax_sgpb_add_subscribers', array($this, 'addSubscribers'));
|
57 |
add_action('wp_ajax_sgpb_send_newsletter', array($this, 'sendNewsletter'));
|
@@ -200,7 +202,50 @@ class Ajax
|
|
200 |
wp_die();
|
201 |
}
|
202 |
|
203 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
|
205 |
public function changePopupStatus()
|
206 |
{
|
@@ -358,6 +403,7 @@ class Ajax
|
|
358 |
$conditionConfig = $SGPB_DATA_CONFIG_ARRAY[$targetType];
|
359 |
$groupId = (int)$_POST['groupId'];
|
360 |
$ruleId = (int)$_POST['ruleId'];
|
|
|
361 |
$paramName = sanitize_text_field($_POST['paramName']);
|
362 |
|
363 |
$savedData = array(
|
@@ -375,9 +421,25 @@ class Ajax
|
|
375 |
$savedData['tempParam'] = sanitize_text_field($_POST['paramValue']);
|
376 |
$savedData['operator'] = $paramName;
|
377 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
$savedData['value'] = @$conditionConfig['paramsData'][$paramName];
|
379 |
$savedData['hiddenOption'] = @$conditionConfig['hiddenOptionData'][$paramName];
|
380 |
|
|
|
381 |
$builderObj->setGroupId($groupId);
|
382 |
$builderObj->setRuleId($ruleId);
|
383 |
$builderObj->setSavedData($savedData);
|
51 |
add_action('wp_ajax_sgpb_subscription_submission', array($this, 'subscriptionSubmission'));
|
52 |
add_action('wp_ajax_nopriv_sgpb_subscription_submission', array($this, 'subscriptionSubmission'));
|
53 |
add_action('wp_ajax_change_popup_status', array($this, 'changePopupStatus'));
|
54 |
+
// proStartGold
|
55 |
+
add_action('wp_ajax_check_same_origin', array($this, 'checkSameOrigin'));
|
56 |
+
// proEndGold
|
57 |
add_action('wp_ajax_sgpb_subscribers_delete', array($this, 'deleteSubscribers'));
|
58 |
add_action('wp_ajax_sgpb_add_subscribers', array($this, 'addSubscribers'));
|
59 |
add_action('wp_ajax_sgpb_send_newsletter', array($this, 'sendNewsletter'));
|
202 |
wp_die();
|
203 |
}
|
204 |
|
205 |
+
// proStartGold
|
206 |
+
public function checkSameOrigin()
|
207 |
+
{
|
208 |
+
check_ajax_referer(SG_AJAX_NONCE, 'nonce');
|
209 |
+
|
210 |
+
$url = esc_url($_POST['iframeUrl']);
|
211 |
+
$status = SGPB_AJAX_STATUS_FALSE;
|
212 |
+
|
213 |
+
$remoteGet = wp_remote_get($url);
|
214 |
+
|
215 |
+
if (is_array($remoteGet) && !empty($remoteGet['headers']['x-frame-options'])) {
|
216 |
+
$siteUrl = esc_url($_POST['siteUrl']);
|
217 |
+
$xFrameOptions = $remoteGet['headers']['x-frame-options'];
|
218 |
+
$mayNotShow = false;
|
219 |
+
|
220 |
+
if ($xFrameOptions == 'deny') {
|
221 |
+
$mayNotShow = true;
|
222 |
+
}
|
223 |
+
else if ($xFrameOptions == 'SAMEORIGIN') {
|
224 |
+
if (strpos($url, $siteUrl) === false) {
|
225 |
+
$mayNotShow = true;
|
226 |
+
}
|
227 |
+
}
|
228 |
+
else {
|
229 |
+
if (strpos($xFrameOptions, $siteUrl) === false) {
|
230 |
+
$mayNotShow = true;;
|
231 |
+
}
|
232 |
+
}
|
233 |
+
|
234 |
+
if ($mayNotShow) {
|
235 |
+
echo $status;
|
236 |
+
wp_die();
|
237 |
+
}
|
238 |
+
}
|
239 |
+
|
240 |
+
// $remoteGet['response']['code'] < 400 it's mean correct status
|
241 |
+
if (is_array($remoteGet) && isset($remoteGet['response']['code']) && $remoteGet['response']['code'] < 400) {
|
242 |
+
$status = SGPB_AJAX_STATUS_TRUE;
|
243 |
+
}
|
244 |
+
|
245 |
+
echo $status;
|
246 |
+
wp_die();
|
247 |
+
}
|
248 |
+
// proEndGold
|
249 |
|
250 |
public function changePopupStatus()
|
251 |
{
|
403 |
$conditionConfig = $SGPB_DATA_CONFIG_ARRAY[$targetType];
|
404 |
$groupId = (int)$_POST['groupId'];
|
405 |
$ruleId = (int)$_POST['ruleId'];
|
406 |
+
$popupId = (int)$_POST['popupId'];
|
407 |
$paramName = sanitize_text_field($_POST['paramName']);
|
408 |
|
409 |
$savedData = array(
|
421 |
$savedData['tempParam'] = sanitize_text_field($_POST['paramValue']);
|
422 |
$savedData['operator'] = $paramName;
|
423 |
}
|
424 |
+
// change operator value related to condition value
|
425 |
+
if (!empty($conditionConfig['operatorAllowInConditions']) && in_array($paramName, $conditionConfig['operatorAllowInConditions'])) {
|
426 |
+
$conditionConfig['paramsData']['operator'] = array();
|
427 |
+
|
428 |
+
if (!empty($conditionConfig['paramsData'][$paramName.'Operator'])) {
|
429 |
+
$operatorData = $conditionConfig['paramsData'][$paramName.'Operator'];
|
430 |
+
$SGPB_DATA_CONFIG_ARRAY[$targetType]['paramsData']['operator'] = $operatorData;
|
431 |
+
// change take value related to condition value
|
432 |
+
$operatorDataKeys = array_keys($operatorData);
|
433 |
+
if (!empty($operatorDataKeys[0])) {
|
434 |
+
$savedData['operator'] = $operatorDataKeys[0];
|
435 |
+
$builderObj->setTakeValueFrom('operator');
|
436 |
+
}
|
437 |
+
}
|
438 |
+
}
|
439 |
$savedData['value'] = @$conditionConfig['paramsData'][$paramName];
|
440 |
$savedData['hiddenOption'] = @$conditionConfig['hiddenOptionData'][$paramName];
|
441 |
|
442 |
+
$builderObj->setPopupId($popupId);
|
443 |
$builderObj->setGroupId($groupId);
|
444 |
$builderObj->setRuleId($ruleId);
|
445 |
$builderObj->setSavedData($savedData);
|
com/classes/ConditionBuilder.php
CHANGED
@@ -7,6 +7,7 @@ class ConditionBuilder
|
|
7 |
private $ruleId;
|
8 |
private $conditionName;
|
9 |
private $groupTotal;
|
|
|
10 |
private $takeValueFrom = 'param';
|
11 |
|
12 |
public function setSavedData($savedData)
|
@@ -29,6 +30,16 @@ class ConditionBuilder
|
|
29 |
return $this->groupTotal;
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
public function setGroupId($groupId)
|
33 |
{
|
34 |
$this->groupId = $groupId;
|
@@ -111,7 +122,8 @@ class ConditionBuilder
|
|
111 |
if(empty($groupData)) {
|
112 |
continue;
|
113 |
}
|
114 |
-
|
|
|
115 |
foreach($groupData as $ruleId => $ruleData) {
|
116 |
$builderObj = new ConditionBuilder();
|
117 |
$builderObj->setGroupId($groupId);
|
@@ -120,6 +132,11 @@ class ConditionBuilder
|
|
120 |
$builderObj->setSavedData($ruleData);
|
121 |
$builderObj->setConditionName('events');
|
122 |
|
|
|
|
|
|
|
|
|
|
|
123 |
$builderObj->setGroupTotal(sizeof($groupData) - 1);
|
124 |
$eventsDataObj[] = $builderObj;
|
125 |
}
|
7 |
private $ruleId;
|
8 |
private $conditionName;
|
9 |
private $groupTotal;
|
10 |
+
private $popupId;
|
11 |
private $takeValueFrom = 'param';
|
12 |
|
13 |
public function setSavedData($savedData)
|
30 |
return $this->groupTotal;
|
31 |
}
|
32 |
|
33 |
+
public function setPopupId($popupId)
|
34 |
+
{
|
35 |
+
$this->popupId = $popupId;
|
36 |
+
}
|
37 |
+
|
38 |
+
public function getPopupId()
|
39 |
+
{
|
40 |
+
return $this->popupId;
|
41 |
+
}
|
42 |
+
|
43 |
public function setGroupId($groupId)
|
44 |
{
|
45 |
$this->groupId = $groupId;
|
122 |
if(empty($groupData)) {
|
123 |
continue;
|
124 |
}
|
125 |
+
global $SGPB_DATA_CONFIG_ARRAY;
|
126 |
+
$eventsData = $SGPB_DATA_CONFIG_ARRAY['events']['operatorAllowInConditions'];
|
127 |
foreach($groupData as $ruleId => $ruleData) {
|
128 |
$builderObj = new ConditionBuilder();
|
129 |
$builderObj->setGroupId($groupId);
|
132 |
$builderObj->setSavedData($ruleData);
|
133 |
$builderObj->setConditionName('events');
|
134 |
|
135 |
+
// in some cases value data must take from operator
|
136 |
+
if (is_array($eventsData) && in_array($ruleData['param'], $eventsData)) {
|
137 |
+
$builderObj->setTakeValueFrom('operator');
|
138 |
+
}
|
139 |
+
|
140 |
$builderObj->setGroupTotal(sizeof($groupData) - 1);
|
141 |
$eventsDataObj[] = $builderObj;
|
142 |
}
|
com/classes/ConditionCreator.php
CHANGED
@@ -91,8 +91,9 @@ class ConditionCreator
|
|
91 |
$hideStatus = self::getParamRowHideStatus($conditionDataObj, $conditionName);
|
92 |
$ruleElementData = self::getRuleElementData($conditionDataObj, 'param');
|
93 |
$ruleSavedData = $ruleElementData['saved'];
|
|
|
94 |
|
95 |
-
if (
|
96 |
$hideStatus = true;
|
97 |
}
|
98 |
$showRowStatusClass = ($hideStatus) ? 'sg-hide-condition-row' : $showRowStatusClass;
|
@@ -121,6 +122,40 @@ class ConditionCreator
|
|
121 |
return $targetOptionRow;
|
122 |
}
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
public static function createConditionOperators($conditionDataObj, $idHiddenDiv = '')
|
125 |
{
|
126 |
global $SGPB_DATA_CONFIG_ARRAY;
|
@@ -332,11 +367,36 @@ class ConditionCreator
|
|
332 |
$attr['type'] = $type;
|
333 |
$rowField .= AdminHelper::createCheckBox($ruleElementData['data'], $ruleElementData['saved'], $attr);
|
334 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
}
|
336 |
|
337 |
return $rowField;
|
338 |
}
|
339 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
public static function createElementHeader($ruleElementData)
|
341 |
{
|
342 |
$labelAttributes = '';
|
91 |
$hideStatus = self::getParamRowHideStatus($conditionDataObj, $conditionName);
|
92 |
$ruleElementData = self::getRuleElementData($conditionDataObj, 'param');
|
93 |
$ruleSavedData = $ruleElementData['saved'];
|
94 |
+
$currentArgs = array('savedData' => $ruleSavedData, 'conditionName' => $conditionName);
|
95 |
|
96 |
+
if (!self::allowToShowOperatorColumn($conditionDataObj, $currentArgs)) {
|
97 |
$hideStatus = true;
|
98 |
}
|
99 |
$showRowStatusClass = ($hideStatus) ? 'sg-hide-condition-row' : $showRowStatusClass;
|
122 |
return $targetOptionRow;
|
123 |
}
|
124 |
|
125 |
+
private static function allowToShowOperatorColumn($conditionDataObj, $currentArgs = array())
|
126 |
+
{
|
127 |
+
global $SGPB_DATA_CONFIG_ARRAY;
|
128 |
+
$conditionName = $conditionDataObj->getConditionName();
|
129 |
+
$conditionData = $SGPB_DATA_CONFIG_ARRAY[$conditionName];
|
130 |
+
$operatorAllowInConditions = @$conditionData['operatorAllowInConditions'];
|
131 |
+
$savedData = $conditionDataObj->getSavedData();
|
132 |
+
|
133 |
+
$status = true;
|
134 |
+
|
135 |
+
if ($currentArgs['conditionName'] == 'operator') {
|
136 |
+
$currentSavedData = $currentArgs['savedData'];
|
137 |
+
|
138 |
+
if (($currentSavedData == 'not_rule' || $currentSavedData == 'select_role' || $currentSavedData == 'select_event')) {
|
139 |
+
$status = false;
|
140 |
+
}
|
141 |
+
|
142 |
+
if (is_array($operatorAllowInConditions)) {
|
143 |
+
if (in_array($savedData['param'], $operatorAllowInConditions)) {
|
144 |
+
$SGPB_DATA_CONFIG_ARRAY[$conditionName]['paramsData']['operator'] = $conditionData['paramsData'][$savedData['param'].'Operator'];
|
145 |
+
}
|
146 |
+
else if (!empty($savedData['tempParam']) && in_array($savedData['tempParam'], $operatorAllowInConditions)) {
|
147 |
+
$SGPB_DATA_CONFIG_ARRAY[$conditionName]['paramsData']['operator'] = $conditionData['paramsData'][$savedData['tempParam'].'Operator'];
|
148 |
+
}
|
149 |
+
}
|
150 |
+
|
151 |
+
if (empty($SGPB_DATA_CONFIG_ARRAY[$conditionName]['paramsData']['operator'])) {
|
152 |
+
$status = false;
|
153 |
+
}
|
154 |
+
}
|
155 |
+
|
156 |
+
return $status;
|
157 |
+
}
|
158 |
+
|
159 |
public static function createConditionOperators($conditionDataObj, $idHiddenDiv = '')
|
160 |
{
|
161 |
global $SGPB_DATA_CONFIG_ARRAY;
|
367 |
$attr['type'] = $type;
|
368 |
$rowField .= AdminHelper::createCheckBox($ruleElementData['data'], $ruleElementData['saved'], $attr);
|
369 |
break;
|
370 |
+
case 'conditionalText':
|
371 |
+
$popupId = self::getPopupId($conditionObj);
|
372 |
+
if(!empty($popupId)) {
|
373 |
+
$attr['value'] = $attr['value'].$popupId;
|
374 |
+
$rowField .= AdminHelper::createInput($ruleElementData['data'], $ruleElementData['saved'].$popupId, $attr);
|
375 |
+
}
|
376 |
+
else {
|
377 |
+
$rowField .= '<div class="sgpb-show-alert-before-save">'.$attr['beforeSaveLabel'].'</div>';
|
378 |
+
}
|
379 |
+
break;
|
380 |
}
|
381 |
|
382 |
return $rowField;
|
383 |
}
|
384 |
|
385 |
+
public static function getPopupId($conditionObj)
|
386 |
+
{
|
387 |
+
$popupId = 0;
|
388 |
+
$conditionPopupId = $conditionObj->getPopupId();
|
389 |
+
|
390 |
+
if (!empty($conditionPopupId)) {
|
391 |
+
$popupId = $conditionObj->getPopupId();
|
392 |
+
}
|
393 |
+
else if(!empty($_GET['post'])) {
|
394 |
+
$popupId = $_GET['post'];
|
395 |
+
}
|
396 |
+
|
397 |
+
return $popupId;
|
398 |
+
}
|
399 |
+
|
400 |
public static function createElementHeader($ruleElementData)
|
401 |
{
|
402 |
$labelAttributes = '';
|
com/classes/Filters.php
CHANGED
@@ -14,7 +14,6 @@ class Filters
|
|
14 |
add_filter('admin_menu', array($this, 'removeAddNewSubmenu'), 10, 2);
|
15 |
add_filter('manage_'.SG_POPUP_POST_TYPE.'_posts_columns', array($this, 'popupsTableColumns'));
|
16 |
add_filter('post_row_actions', array($this, 'quickRowLinksManager'), 10, 2);
|
17 |
-
add_filter('sgpbPopupRenderOptions', array($this, 'renderOptions'), 10, 1);
|
18 |
add_filter('sgpbAdminJs', array($this, 'adminJsFilter'), 1, 1);
|
19 |
add_filter('sgpbAdminCssFiles', array($this, 'sgpbAdminCssFiles'), 1, 1);
|
20 |
add_filter('sgpbPopupContentLoadToPage', array($this, 'filterPopupContent'), 10, 1);
|
@@ -25,6 +24,29 @@ class Filters
|
|
25 |
add_filter('sgpbSavedPostData', array($this, 'savedPostData'), 10, 1);
|
26 |
add_filter('sgpbPopupEvents', array($this, 'popupEvents'), 10, 1);
|
27 |
add_filter('sgpbAdditionalMetaboxes', array($this, 'metaboxes'), 10, 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
public function metaboxes($metaboxes)
|
@@ -39,7 +61,7 @@ class Filters
|
|
39 |
$otherConditionsProLabel = '';
|
40 |
$otherConditionsCanBeUsed = PopupBuilderActivePackage::canUseSection('popupOtherConditionsSection');
|
41 |
if (!$otherConditionsCanBeUsed) {
|
42 |
-
$otherConditionsProLabel .= '<a href="'.
|
43 |
$otherConditionsProLabel .= __('Upgrade to PRO', SG_POPUP_TEXT_DOMAIN).'</a>';
|
44 |
}
|
45 |
$metaboxes['targetMetaboxView'] = array(
|
@@ -111,14 +133,22 @@ class Filters
|
|
111 |
public function popupEvents($events)
|
112 |
{
|
113 |
foreach ($events as $eventKey => $eventData) {
|
114 |
-
if (isset($eventData['param'])
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
}
|
123 |
}
|
124 |
}
|
@@ -243,11 +273,6 @@ class Filters
|
|
243 |
return do_shortcode($content);
|
244 |
}
|
245 |
|
246 |
-
public function renderOptions($options = array())
|
247 |
-
{
|
248 |
-
return $options;
|
249 |
-
}
|
250 |
-
|
251 |
public function addNewPostUrl($url, $path)
|
252 |
{
|
253 |
if ($path == 'post-new.php?post_type='.SG_POPUP_POST_TYPE) {
|
14 |
add_filter('admin_menu', array($this, 'removeAddNewSubmenu'), 10, 2);
|
15 |
add_filter('manage_'.SG_POPUP_POST_TYPE.'_posts_columns', array($this, 'popupsTableColumns'));
|
16 |
add_filter('post_row_actions', array($this, 'quickRowLinksManager'), 10, 2);
|
|
|
17 |
add_filter('sgpbAdminJs', array($this, 'adminJsFilter'), 1, 1);
|
18 |
add_filter('sgpbAdminCssFiles', array($this, 'sgpbAdminCssFiles'), 1, 1);
|
19 |
add_filter('sgpbPopupContentLoadToPage', array($this, 'filterPopupContent'), 10, 1);
|
24 |
add_filter('sgpbSavedPostData', array($this, 'savedPostData'), 10, 1);
|
25 |
add_filter('sgpbPopupEvents', array($this, 'popupEvents'), 10, 1);
|
26 |
add_filter('sgpbAdditionalMetaboxes', array($this, 'metaboxes'), 10, 1);
|
27 |
+
add_filter('sgpbOptionAvailable', array($this, 'filterOption'), 10, 1);
|
28 |
+
}
|
29 |
+
|
30 |
+
public function filterOption($filterOption)
|
31 |
+
{
|
32 |
+
$extensionOptionsData = AdminHelper::getExtensionAvaliabilityOptions();
|
33 |
+
|
34 |
+
if (empty($extensionOptionsData)) {
|
35 |
+
return $filterOption;
|
36 |
+
}
|
37 |
+
|
38 |
+
foreach ($extensionOptionsData as $extensionKey => $extensionOptions) {
|
39 |
+
$isAdvancedClosingActive = is_plugin_active($extensionKey);
|
40 |
+
if (isset($filterOption['name']) && !$isAdvancedClosingActive) {
|
41 |
+
$name = $filterOption['name'];
|
42 |
+
|
43 |
+
if (in_array($name, $extensionOptions)) {
|
44 |
+
$filterOption['status'] = false;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
+
return $filterOption;
|
50 |
}
|
51 |
|
52 |
public function metaboxes($metaboxes)
|
61 |
$otherConditionsProLabel = '';
|
62 |
$otherConditionsCanBeUsed = PopupBuilderActivePackage::canUseSection('popupOtherConditionsSection');
|
63 |
if (!$otherConditionsCanBeUsed) {
|
64 |
+
$otherConditionsProLabel .= '<a href="'.SG_POPUP_SCHEDULING_URL.'" target="_blank" class="sgpb-pro-label-metabox">';
|
65 |
$otherConditionsProLabel .= __('Upgrade to PRO', SG_POPUP_TEXT_DOMAIN).'</a>';
|
66 |
}
|
67 |
$metaboxes['targetMetaboxView'] = array(
|
133 |
public function popupEvents($events)
|
134 |
{
|
135 |
foreach ($events as $eventKey => $eventData) {
|
136 |
+
if (isset($eventData['param'])) {
|
137 |
+
if ($eventData['param'] == SGPB_CSS_CLASS_ACTIONS_KEY) {
|
138 |
+
unset($events[$eventKey]);
|
139 |
+
$events[] = array('param' => 'click');
|
140 |
+
$events[] = array('param' => 'hover');
|
141 |
+
$events[] = array('param' => 'confirm');
|
142 |
+
|
143 |
+
if (SGPB_POPUP_PKG > SGPB_POPUP_PKG_FREE) {
|
144 |
+
$events[] = array('param' => 'iframe');
|
145 |
+
}
|
146 |
+
}
|
147 |
+
else if ($eventData['param'] == SGPB_CLICK_ACTION_KEY) {
|
148 |
+
$events[$eventKey]['param'] = 'click';
|
149 |
+
}
|
150 |
+
else if ($eventData['param'] == SGPB_HOVER_ACTION_KEY) {
|
151 |
+
$events[$eventKey]['param'] = 'hover';
|
152 |
}
|
153 |
}
|
154 |
}
|
273 |
return do_shortcode($content);
|
274 |
}
|
275 |
|
|
|
|
|
|
|
|
|
|
|
276 |
public function addNewPostUrl($url, $path)
|
277 |
{
|
278 |
if ($path == 'post-new.php?post_type='.SG_POPUP_POST_TYPE) {
|
com/classes/Installer.php
CHANGED
@@ -111,7 +111,6 @@ class Installer
|
|
111 |
do_action('sgpbDeletePopupData');
|
112 |
|
113 |
self::deletePopups();
|
114 |
-
self::deleteCustomTerms(SG_POPUP_CATEGORY_TAXONOMY);
|
115 |
self::deleteCustomTables();
|
116 |
|
117 |
if (is_multisite()) {
|
111 |
do_action('sgpbDeletePopupData');
|
112 |
|
113 |
self::deletePopups();
|
|
|
114 |
self::deleteCustomTables();
|
115 |
|
116 |
if (is_multisite()) {
|
com/classes/PopupChecker.php
CHANGED
@@ -174,43 +174,14 @@ class PopupChecker
|
|
174 |
return true;
|
175 |
}
|
176 |
|
177 |
-
if ($paramName == 'groups_devices' && !empty($option['value'])) {
|
178 |
-
|
179 |
-
if (is_array($option['value'])) {
|
180 |
-
$device = Functions::getUserDevice();
|
181 |
-
if (in_array($device, $option['value'])) {
|
182 |
-
return true;
|
183 |
-
}
|
184 |
-
}
|
185 |
-
}
|
186 |
-
// proEndSilver
|
187 |
-
|
188 |
-
// proStartPlatinum
|
189 |
-
else if ($paramName == 'groups_countries' && !empty($option['value'])) {
|
190 |
-
if (is_array($option['value'])) {
|
191 |
-
$ipAddress = Functions::getIpAddress();
|
192 |
-
$country = Functions::getCountryName($ipAddress);
|
193 |
-
|
194 |
-
if (in_array($country, $option['value'])) {
|
195 |
-
return true;
|
196 |
-
}
|
197 |
-
}
|
198 |
-
|
199 |
-
}
|
200 |
-
// proEndPlatinum
|
201 |
-
// proStartSilver
|
202 |
-
else if ($paramName == 'groups_user_role' && !empty($option['value'])) {
|
203 |
-
$userStatus = is_user_logged_in();
|
204 |
-
|
205 |
-
if ($userStatus) {
|
206 |
-
return true;
|
207 |
-
}
|
208 |
-
}
|
209 |
-
|
210 |
if (!$defaultStatus && do_action('isAllowedForConditions', $option, $post)) {
|
211 |
$defaultStatus = true;
|
212 |
}
|
213 |
// proEndSilver
|
|
|
|
|
|
|
|
|
214 |
|
215 |
return $defaultStatus;
|
216 |
}
|
@@ -518,7 +489,7 @@ class PopupChecker
|
|
518 |
|
519 |
$dontAlowOpenPopup = apply_filters('sgpbOtherConditions', array('id' => $popupId, 'popupOptions' => $popupOptions, 'popupObj' => $popup));
|
520 |
|
521 |
-
return $dontAlowOpenPopup;
|
522 |
}
|
523 |
|
524 |
public static function checkUserStatus($savedStatus)
|
@@ -533,65 +504,6 @@ class PopupChecker
|
|
533 |
return $equalStatus;
|
534 |
}
|
535 |
|
536 |
-
public static function popupInSchedule($popupOptions)
|
537 |
-
{
|
538 |
-
$scheduleStartWeeks = $popupOptions['sgpb-schedule-weeks'];
|
539 |
-
$outInSchedule = false;
|
540 |
-
|
541 |
-
$scheduleStartTime = $popupOptions['sgpb-schedule-start-time'];
|
542 |
-
$scheduleEndTime = $popupOptions['sgpb-schedule-end-time'];
|
543 |
-
|
544 |
-
$currentWeekDayName = date('D');
|
545 |
-
if (in_array($currentWeekDayName, $scheduleStartWeeks)) {
|
546 |
-
|
547 |
-
$timezone = get_option('timezone_string');
|
548 |
-
if (!$timezone) {
|
549 |
-
$timezone = SG_POPUP_DEFAULT_TIME_ZONE;
|
550 |
-
}
|
551 |
-
|
552 |
-
$date = new DateTime('now', new DateTimeZone($timezone));
|
553 |
-
$currentHour = $date->format('H:i');
|
554 |
-
|
555 |
-
$currentHour = strtotime($currentHour);
|
556 |
-
$startTime = strtotime($scheduleStartTime);
|
557 |
-
$endTime = strtotime($scheduleEndTime);
|
558 |
-
|
559 |
-
if (empty($scheduleEndTime)) {
|
560 |
-
$endTime = strtotime('23:59:59');
|
561 |
-
}
|
562 |
-
|
563 |
-
if ($currentHour >= $startTime && $currentHour <= $endTime) {
|
564 |
-
return true;
|
565 |
-
}
|
566 |
-
}
|
567 |
-
|
568 |
-
return $outInSchedule;
|
569 |
-
}
|
570 |
-
|
571 |
-
public static function popupInTimeRange($popupOptions)
|
572 |
-
{
|
573 |
-
$finishDate = false;
|
574 |
-
|
575 |
-
$startDate = strtotime($popupOptions['sgpb-popup-start-timer']);
|
576 |
-
|
577 |
-
if (!empty($popupOptions['sgpb-popup-end-timer'])) {
|
578 |
-
$finishDate = strtotime($popupOptions['sgpb-popup-end-timer']);
|
579 |
-
}
|
580 |
-
|
581 |
-
$timezone = ConfigDataHelper::getPopupDefaultTimeZone();
|
582 |
-
$timeDate = new DateTime('now', new DateTimeZone($timezone));
|
583 |
-
$timeNow = strtotime($timeDate->format('Y-m-d H:i:s'));
|
584 |
-
|
585 |
-
if ($finishDate != false && $timeNow > $startDate && $timeNow < $finishDate) {
|
586 |
-
return true;
|
587 |
-
}
|
588 |
-
else if ($finishDate == false && $timeNow > $startDate) {
|
589 |
-
return true;
|
590 |
-
}
|
591 |
-
|
592 |
-
return false;
|
593 |
-
}
|
594 |
-
|
595 |
public static function checkOtherConditionsActions($args)
|
596 |
{
|
597 |
if (empty($args['id']) || empty($args['popupOptions'])) {
|
@@ -610,47 +522,9 @@ class PopupChecker
|
|
610 |
}
|
611 |
}
|
612 |
|
613 |
-
//schedule checking
|
614 |
-
if (!empty($popupOptions['sgpb-schedule-status'])) {
|
615 |
-
$isInSchedule = PopupChecker::popupInSchedule($popupOptions);
|
616 |
-
|
617 |
-
if ($isInSchedule === false) {
|
618 |
-
return $isInSchedule;
|
619 |
-
}
|
620 |
-
}
|
621 |
-
|
622 |
-
/*Date range checking*/
|
623 |
-
if (!empty($popupOptions['sgpb-popup-timer-status'])) {
|
624 |
-
$inTimeRange = PopupChecker::popupInTimeRange($popupOptions);
|
625 |
-
|
626 |
-
if ($inTimeRange === false) {
|
627 |
-
return $inTimeRange;
|
628 |
-
}
|
629 |
-
}
|
630 |
// proEndSilver
|
631 |
|
632 |
// proStartPlatinum
|
633 |
-
if (!empty($popupOptions['sgpb-popup-country-status'])) {
|
634 |
-
$ipAddress = Functions::getIpAddress();
|
635 |
-
|
636 |
-
$country = Functions::getCountryName($ipAddress);
|
637 |
-
$countriesIso = $popupOptions['sgpb-countries-iso'];
|
638 |
-
$allowCountries = $popupOptions['sgpb-allow-countries'];
|
639 |
-
$countriesIsoArray = explode(',', $countriesIso);
|
640 |
-
|
641 |
-
if ($allowCountries == 'allow') {
|
642 |
-
$isInArray = in_array($country, $countriesIsoArray);
|
643 |
-
if ($isInArray === false) {
|
644 |
-
return $isInArray;
|
645 |
-
}
|
646 |
-
}
|
647 |
-
if ($allowCountries == 'disallow') {
|
648 |
-
$isInArray = in_array($country, $countriesIsoArray);
|
649 |
-
if ($isInArray === true) {
|
650 |
-
return false;
|
651 |
-
}
|
652 |
-
}
|
653 |
-
}
|
654 |
// proEndPlatinum
|
655 |
|
656 |
// checking by popup type
|
174 |
return true;
|
175 |
}
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
if (!$defaultStatus && do_action('isAllowedForConditions', $option, $post)) {
|
178 |
$defaultStatus = true;
|
179 |
}
|
180 |
// proEndSilver
|
181 |
+
$isAllowedConditionFilters = apply_filters('isAllowedConditionFilters', array($option));
|
182 |
+
if (isset($isAllowedConditionFilters['status']) && $isAllowedConditionFilters['status'] === true) {
|
183 |
+
$defaultStatus = true;
|
184 |
+
}
|
185 |
|
186 |
return $defaultStatus;
|
187 |
}
|
489 |
|
490 |
$dontAlowOpenPopup = apply_filters('sgpbOtherConditions', array('id' => $popupId, 'popupOptions' => $popupOptions, 'popupObj' => $popup));
|
491 |
|
492 |
+
return $dontAlowOpenPopup['status'];
|
493 |
}
|
494 |
|
495 |
public static function checkUserStatus($savedStatus)
|
504 |
return $equalStatus;
|
505 |
}
|
506 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
public static function checkOtherConditionsActions($args)
|
508 |
{
|
509 |
if (empty($args['id']) || empty($args['popupOptions'])) {
|
522 |
}
|
523 |
}
|
524 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
525 |
// proEndSilver
|
526 |
|
527 |
// proStartPlatinum
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
// proEndPlatinum
|
529 |
|
530 |
// checking by popup type
|
com/classes/PopupGroupFilter.php
CHANGED
@@ -109,33 +109,12 @@ class PopupGroupFilter
|
|
109 |
{
|
110 |
$popups = $this->getPopups();
|
111 |
$groups = array();
|
112 |
-
$randomPopups = SGPopup::getPopupsByTermSlug(SG_RANDOM_TAXONOMY_SLUG);
|
113 |
|
114 |
if (empty($popups)) {
|
115 |
return $popups;
|
116 |
}
|
117 |
|
118 |
-
|
119 |
-
if (in_array($popup->getId(), $randomPopups)) {
|
120 |
-
$groups['randomPopups'][] = $popup;
|
121 |
-
}
|
122 |
-
}
|
123 |
-
$staticPopups = $popups;
|
124 |
-
|
125 |
-
if (!empty($groups['randomPopups'])) {
|
126 |
-
$staticPopups = array();
|
127 |
-
$randomPopupIds = array_map(function ($randomPopup) {
|
128 |
-
return $randomPopup->getId();
|
129 |
-
}, $groups['randomPopups']);
|
130 |
-
foreach ($popups as $popup) {
|
131 |
-
if (empty($popup)) {
|
132 |
-
continue;
|
133 |
-
}
|
134 |
-
if (!in_array($popup->getId(), $randomPopupIds)) {
|
135 |
-
$staticPopups[] = $popup;
|
136 |
-
}
|
137 |
-
}
|
138 |
-
}
|
139 |
|
140 |
$groups['staticPopups'] = $staticPopups;
|
141 |
|
@@ -148,10 +127,6 @@ class PopupGroupFilter
|
|
148 |
{
|
149 |
$groups = $this->getGroups();
|
150 |
|
151 |
-
if (!empty($groups['randomPopups'])) {
|
152 |
-
$groups = $this->filterRandomPopups($groups);
|
153 |
-
}
|
154 |
-
|
155 |
$this->setGroups($groups);
|
156 |
|
157 |
return $groups;
|
109 |
{
|
110 |
$popups = $this->getPopups();
|
111 |
$groups = array();
|
|
|
112 |
|
113 |
if (empty($popups)) {
|
114 |
return $popups;
|
115 |
}
|
116 |
|
117 |
+
$staticPopups = $popups;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
$groups['staticPopups'] = $staticPopups;
|
120 |
|
127 |
{
|
128 |
$groups = $this->getGroups();
|
129 |
|
|
|
|
|
|
|
|
|
130 |
$this->setGroups($groups);
|
131 |
|
132 |
return $groups;
|
com/classes/RegisterPostType.php
CHANGED
@@ -143,19 +143,6 @@ class RegisterPostType
|
|
143 |
|
144 |
register_taxonomy(SG_POPUP_CATEGORY_TAXONOMY, SG_POPUP_POST_TYPE, $args);
|
145 |
register_taxonomy_for_object_type(SG_POPUP_CATEGORY_TAXONOMY, SG_POPUP_POST_TYPE);
|
146 |
-
|
147 |
-
if (SGPB_POPUP_PKG >= SGPB_POPUP_PKG_SILVER) {
|
148 |
-
wp_insert_term(
|
149 |
-
__('Random popups', SG_POPUP_TEXT_DOMAIN),
|
150 |
-
SG_POPUP_CATEGORY_TAXONOMY, // the taxonomy
|
151 |
-
array(
|
152 |
-
'description' => __('Random popups', SG_POPUP_TEXT_DOMAIN),
|
153 |
-
'slug' => SG_RANDOM_TAXONOMY_SLUG,
|
154 |
-
'parent' => '',
|
155 |
-
'can_disable_terms' => false,
|
156 |
-
)
|
157 |
-
);
|
158 |
-
}
|
159 |
}
|
160 |
|
161 |
public function postTypeSupportForPopupTypes($supports)
|
143 |
|
144 |
register_taxonomy(SG_POPUP_CATEGORY_TAXONOMY, SG_POPUP_POST_TYPE, $args);
|
145 |
register_taxonomy_for_object_type(SG_POPUP_CATEGORY_TAXONOMY, SG_POPUP_POST_TYPE);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
}
|
147 |
|
148 |
public function postTypeSupportForPopupTypes($supports)
|
com/classes/ScriptsLoader.php
CHANGED
@@ -43,9 +43,10 @@ class ScriptsLoader
|
|
43 |
$extraOptions = $popup->getExtraRenderOptions();
|
44 |
$popupOptions = $popup->getOptions();
|
45 |
$popupOptions = apply_filters('sgpbPopupRenderOptions', $popupOptions);
|
|
|
46 |
|
47 |
$popupOptions = array_merge($popupOptions, $extraOptions);
|
48 |
-
|
49 |
// These two lines have been added in order to not use the json_econde and to support PHP 5.3 version.
|
50 |
$popupOptions = AdminHelper::serializeData($popupOptions);
|
51 |
$popupOptions = base64_encode($popupOptions);
|
43 |
$extraOptions = $popup->getExtraRenderOptions();
|
44 |
$popupOptions = $popup->getOptions();
|
45 |
$popupOptions = apply_filters('sgpbPopupRenderOptions', $popupOptions);
|
46 |
+
$popupCondition = $popup->getConditions();
|
47 |
|
48 |
$popupOptions = array_merge($popupOptions, $extraOptions);
|
49 |
+
$popupOptions['sgpbConditions'] = apply_filters('sgpbRenderCondtions', $popupCondition);
|
50 |
// These two lines have been added in order to not use the json_econde and to support PHP 5.3 version.
|
51 |
$popupOptions = AdminHelper::serializeData($popupOptions);
|
52 |
$popupOptions = base64_encode($popupOptions);
|
com/classes/extension/SgpbPopupExtension.php
CHANGED
@@ -49,7 +49,6 @@ class SgpbPopupExtension implements SgpbIPopupExtension
|
|
49 |
$jsFiles[] = array('folderUrl'=> '', 'filename' => 'wp-color-picker');
|
50 |
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'select2.min.js', 'dep' => '', 'ver' => '3.86', 'inFooter' => '');
|
51 |
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'sgpbSelect2.js');
|
52 |
-
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'jquery.datetimepicker.full.min.js');
|
53 |
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'bootstrap.min.js');
|
54 |
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'sgPopupRangeSlider.js');
|
55 |
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'Backend.js');
|
@@ -76,7 +75,11 @@ class SgpbPopupExtension implements SgpbIPopupExtension
|
|
76 |
'silver' => SGPB_POPUP_PKG_SILVER,
|
77 |
'gold' => SGPB_POPUP_PKG_GOLD,
|
78 |
'platinum' => SGPB_POPUP_PKG_PLATINUM
|
79 |
-
)
|
|
|
|
|
|
|
|
|
80 |
)
|
81 |
);
|
82 |
|
@@ -222,7 +225,7 @@ class SgpbPopupExtension implements SgpbIPopupExtension
|
|
222 |
'handle' => 'PopupBuilder.js',
|
223 |
'name' => 'SGPB_POPUP_PARAMS',
|
224 |
'data' => array(
|
225 |
-
'popupTypeAgeRestriction' =>
|
226 |
'defaultThemeImages' => array(
|
227 |
1 => AdminHelper::defaultButtonImage('sgpb-theme-1'),
|
228 |
2 => AdminHelper::defaultButtonImage('sgpb-theme-2'),
|
49 |
$jsFiles[] = array('folderUrl'=> '', 'filename' => 'wp-color-picker');
|
50 |
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'select2.min.js', 'dep' => '', 'ver' => '3.86', 'inFooter' => '');
|
51 |
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'sgpbSelect2.js');
|
|
|
52 |
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'bootstrap.min.js');
|
53 |
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'sgPopupRangeSlider.js');
|
54 |
$jsFiles[] = array('folderUrl'=> SG_POPUP_JS_URL, 'filename' => 'Backend.js');
|
75 |
'silver' => SGPB_POPUP_PKG_SILVER,
|
76 |
'gold' => SGPB_POPUP_PKG_GOLD,
|
77 |
'platinum' => SGPB_POPUP_PKG_PLATINUM
|
78 |
+
),
|
79 |
+
'extensions' => array(
|
80 |
+
'geo-targeting' => AdminHelper::isPluginActive('geo-targeting')
|
81 |
+
),
|
82 |
+
'proEvents' => apply_filters('sgpbProEvents', array('inactivity', 'onScroll'))
|
83 |
)
|
84 |
);
|
85 |
|
225 |
'handle' => 'PopupBuilder.js',
|
226 |
'name' => 'SGPB_POPUP_PARAMS',
|
227 |
'data' => array(
|
228 |
+
'popupTypeAgeRestriction' => SGPB_POPUP_TYPE_RESTRICTION,
|
229 |
'defaultThemeImages' => array(
|
230 |
1 => AdminHelper::defaultButtonImage('sgpb-theme-1'),
|
231 |
2 => AdminHelper::defaultButtonImage('sgpb-theme-2'),
|
com/classes/popups/ImagePopup.php
CHANGED
@@ -43,10 +43,12 @@ class ImagePopup extends SGPopup
|
|
43 |
'sgpb-reopen-after-form-submission' => 1,
|
44 |
'sgpb-background-image' => 1,
|
45 |
'sgpb-background-image-mode' => 1,
|
46 |
-
'sgpb-force-rtl' => 1
|
|
|
47 |
);
|
|
|
48 |
|
49 |
-
return $removeOptions;
|
50 |
}
|
51 |
|
52 |
public function getPopupTypeMainView()
|
43 |
'sgpb-reopen-after-form-submission' => 1,
|
44 |
'sgpb-background-image' => 1,
|
45 |
'sgpb-background-image-mode' => 1,
|
46 |
+
'sgpb-force-rtl' => 1,
|
47 |
+
'sgpb-content-padding' => 1
|
48 |
);
|
49 |
+
$parentOptions = parent::getRemoveOptions();
|
50 |
|
51 |
+
return $removeOptions + $parentOptions;
|
52 |
}
|
53 |
|
54 |
public function getPopupTypeMainView()
|
com/classes/popups/SGPopup.php
CHANGED
@@ -577,7 +577,7 @@ abstract class SGPopup
|
|
577 |
$hiddenOptions = array();
|
578 |
$currentData = array();
|
579 |
foreach ($ruleData as $name => $value) {
|
580 |
-
if ($name == 'param' || $name == 'value') {
|
581 |
$currentData[$name] = $value;
|
582 |
}
|
583 |
else {
|
@@ -1202,7 +1202,29 @@ abstract class SGPopup
|
|
1202 |
public static function getPopupsByTermSlug($popupTermSlug)
|
1203 |
{
|
1204 |
$popupIds = array();
|
1205 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1206 |
return $popupIds;
|
1207 |
}
|
1208 |
|
@@ -1281,7 +1303,7 @@ abstract class SGPopup
|
|
1281 |
{
|
1282 |
$removeOptions = array();
|
1283 |
|
1284 |
-
return $removeOptions;
|
1285 |
}
|
1286 |
|
1287 |
public static function createPopupTypeObjById($popupId)
|
577 |
$hiddenOptions = array();
|
578 |
$currentData = array();
|
579 |
foreach ($ruleData as $name => $value) {
|
580 |
+
if ($name == 'param' || $name == 'value' || $name == 'operator') {
|
581 |
$currentData[$name] = $value;
|
582 |
}
|
583 |
else {
|
1202 |
public static function getPopupsByTermSlug($popupTermSlug)
|
1203 |
{
|
1204 |
$popupIds = array();
|
1205 |
+
// proStartSilver
|
1206 |
+
$termPopups = get_posts(
|
1207 |
+
array(
|
1208 |
+
'post_type' => 'popupbuilder',
|
1209 |
+
'numberposts' => -1,
|
1210 |
+
'tax_query' => array(
|
1211 |
+
array(
|
1212 |
+
'taxonomy' => SG_POPUP_CATEGORY_TAXONOMY,
|
1213 |
+
'field' => 'slug',
|
1214 |
+
'terms' => $popupTermSlug
|
1215 |
+
)
|
1216 |
+
)
|
1217 |
+
)
|
1218 |
+
);
|
1219 |
+
|
1220 |
+
if (empty($termPopups)) {
|
1221 |
+
return $popupIds;
|
1222 |
+
}
|
1223 |
+
|
1224 |
+
foreach ($termPopups as $termPopup) {
|
1225 |
+
$popupIds[] = $termPopup->ID;
|
1226 |
+
}
|
1227 |
+
// proEndSilver
|
1228 |
return $popupIds;
|
1229 |
}
|
1230 |
|
1303 |
{
|
1304 |
$removeOptions = array();
|
1305 |
|
1306 |
+
return apply_filters('sgpbRemoveOptions', $removeOptions);
|
1307 |
}
|
1308 |
|
1309 |
public static function createPopupTypeObjById($popupId)
|
com/classes/popups/SubscriptionPopup.php
CHANGED
@@ -271,7 +271,7 @@ class SubscriptionPopup extends SGPopup
|
|
271 |
$formData['gdpr'] = array(
|
272 |
'isShow' => $isShow,
|
273 |
'attrs' => array(
|
274 |
-
'type' => '
|
275 |
'data-required' => $gdprRequired,
|
276 |
'name' => 'sgpb-subs-gdpr',
|
277 |
'class' => 'js-subs-gdpr-inputs js-subs-gdpr-label',
|
271 |
$formData['gdpr'] = array(
|
272 |
'isShow' => $isShow,
|
273 |
'attrs' => array(
|
274 |
+
'type' => 'customCheckbox',
|
275 |
'data-required' => $gdprRequired,
|
276 |
'name' => 'sgpb-subs-gdpr',
|
277 |
'class' => 'js-subs-gdpr-inputs js-subs-gdpr-label',
|
com/config/config.php
CHANGED
@@ -22,6 +22,8 @@ class SgpbPopupConfig
|
|
22 |
self::addDefine('SG_POPUP_SUPPORT_URL', 'https://wordpress.org/support/plugin/popup-builder');
|
23 |
self::addDefine('SG_POPUP_TICKET_URL', 'https://sygnoos.ladesk.com/submit_ticket');
|
24 |
self::addDefine('SG_POPUP_RATE_US_URL', 'https://wordpress.org/support/plugin/popup-builder/reviews/?filter=5');
|
|
|
|
|
25 |
self::addDefine('SG_POPUP_AD_BLOCK_URL', 'https://popup-builder.com/downloads/adblock/');
|
26 |
self::addDefine('SG_POPUP_ANALYTICS_URL', 'https://popup-builder.com/downloads/analytics/');
|
27 |
self::addDefine('SG_POPUP_EXIT_INTENT_URL', 'https://popup-builder.com/downloads/exit-intent/');
|
@@ -29,6 +31,18 @@ class SgpbPopupConfig
|
|
29 |
self::addDefine('SG_POPUP_AWEBER_URL', 'https://popup-builder.com/downloads/aweber/');
|
30 |
self::addDefine('SG_POPUP_WOOCOMMERCE_URL', 'https://popup-builder.com/downloads/woocommerce/');
|
31 |
self::addDefine('SG_POPUP_RECENT_SALES_URL', 'https://popup-builder.com/downloads/recent-sales/');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
self::addDefine('SG_POPUP_ADMIN_URL', admin_url());
|
33 |
self::addDefine('SG_POPUP_BUILDER_URL', plugins_url().'/'.SG_POPUP_FOLDER_NAME.'/');
|
34 |
self::addDefine('SG_POPUP_BUILDER_PATH', WP_PLUGIN_DIR.'/'.SG_POPUP_FOLDER_NAME.'/');
|
@@ -53,7 +67,6 @@ class SgpbPopupConfig
|
|
53 |
self::addDefine('SG_POPUP_SOUND_URL', SG_POPUP_PUBLIC_URL.'sound/');
|
54 |
self::addDefine('SG_POPUP_DEFAULT_TIME_ZONE', 'UTC');
|
55 |
self::addDefine('SG_POPUP_CATEGORY_TAXONOMY', 'popup-categories');
|
56 |
-
self::addDefine('SG_RANDOM_TAXONOMY_SLUG', 'randompopupslug');
|
57 |
self::addDefine('SG_POPUP_MINIMUM_PHP_VERSION', '5.3.3');
|
58 |
self::addDefine('SG_POPUP_POST_TYPE', 'popupbuilder');
|
59 |
self::addDefine('SG_POPUP_NEWSLETTER_PAGE', 'newsletter');
|
@@ -69,20 +82,26 @@ class SgpbPopupConfig
|
|
69 |
self::addDefine('SG_CONDITION_FIRST_RULE', 0);
|
70 |
self::addDefine('SGPB_AJAX_STATUS_FALSE', 0);
|
71 |
self::addDefine('SGPB_AJAX_STATUS_TRUE', 1);
|
72 |
-
self::addDefine('SG_COUNTDOWN_COUNTER_SECONDS_SHOW', 1);
|
73 |
-
self::addDefine('SG_COUNTDOWN_COUNTER_SECONDS_HIDE', 2);
|
74 |
self::addDefine('SGPB_SUBSCRIBERS_TABLE_NAME', 'sgpb_subscribers');
|
75 |
self::addDefine('SGPB_POSTS_TABLE_NAME', 'posts');
|
76 |
self::addDefine('SGPB_APP_POPUP_TABLE_LIMIT', 15);
|
77 |
self::addDefine('SGPB_SUBSCRIBERS_ERROR_TABLE_NAME', 'sgpb_subscription_error_log');
|
78 |
self::addDefine('SGPB_CRON_REPEAT_INTERVAL', 1);
|
79 |
self::addDefine('SGPB_FACEBOOK_APP_ID', 1725074220856984);
|
80 |
-
self::addDefine('
|
81 |
self::addDefine('SGPB_POPUP_DEFAULT_SOUND', 'popupOpenSound.wav');
|
82 |
self::addDefine('SGPB_POPUP_EXTENSIONS_PATH', SG_POPUP_COM_PATH.'extensions/');
|
|
|
83 |
self::addDefine('SGPB_DONT_SHOW_POPUP_EXPIRY', 365);
|
84 |
self::addDefine('SGPB_CONTACT_FORM_7_BEHAVIOR_KEY', 'contact-form-7');
|
85 |
self::addDefine('SGPB_CSS_CLASS_ACTIONS_KEY', 'setByCssClass');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
self::popupTypesInit();
|
87 |
}
|
88 |
|
@@ -94,39 +113,21 @@ class SgpbPopupConfig
|
|
94 |
'image' => SGPB_POPUP_PKG_FREE,
|
95 |
'html' => SGPB_POPUP_PKG_FREE,
|
96 |
'fblike' => SGPB_POPUP_PKG_FREE,
|
97 |
-
'subscription' => SGPB_POPUP_PKG_FREE
|
98 |
-
'iframe' => SGPB_POPUP_PKG_SILVER,
|
99 |
-
'video' => SGPB_POPUP_PKG_SILVER,
|
100 |
-
SGPB_POPUP_TYPE_AGE_RESTRICTION => SGPB_POPUP_PKG_GOLD,
|
101 |
-
'countdown' => SGPB_POPUP_PKG_GOLD,
|
102 |
-
'social' => SGPB_POPUP_PKG_GOLD,
|
103 |
-
'contactForm' => SGPB_POPUP_PKG_GOLD
|
104 |
));
|
105 |
|
106 |
$SGPB_POPUP_TYPES['typePath'] = apply_filters('sgpbAddPopupTypePath', array(
|
107 |
'image' => SG_POPUP_CLASSES_POPUPS_PATH,
|
108 |
'html' => SG_POPUP_CLASSES_POPUPS_PATH,
|
109 |
'fblike' => SG_POPUP_CLASSES_POPUPS_PATH,
|
110 |
-
'
|
111 |
-
'video' => SG_POPUP_CLASSES_POPUPS_PATH,
|
112 |
-
'ageRestriction' => SG_POPUP_CLASSES_POPUPS_PATH,
|
113 |
-
'countdown' => SG_POPUP_CLASSES_POPUPS_PATH,
|
114 |
-
'social' => SG_POPUP_CLASSES_POPUPS_PATH,
|
115 |
-
'subscription' => SG_POPUP_CLASSES_POPUPS_PATH,
|
116 |
-
'contactForm' => SG_POPUP_CLASSES_POPUPS_PATH
|
117 |
));
|
118 |
|
119 |
$SGPB_POPUP_TYPES['typeLabels'] = apply_filters('sgpbAddPopupTypeLabels', array(
|
120 |
'image' => __('Image', SG_POPUP_TEXT_DOMAIN),
|
121 |
'html' => __('HTML', SG_POPUP_TEXT_DOMAIN),
|
122 |
'fblike' => __('Facebook', SG_POPUP_TEXT_DOMAIN),
|
123 |
-
'
|
124 |
-
'video' => __('Video', SG_POPUP_TEXT_DOMAIN),
|
125 |
-
'ageRestriction' => __('Restriction', SG_POPUP_TEXT_DOMAIN),
|
126 |
-
'countdown' => __('Countdown', SG_POPUP_TEXT_DOMAIN),
|
127 |
-
'social' => __('Social', SG_POPUP_TEXT_DOMAIN),
|
128 |
-
'subscription' => __('Subscription', SG_POPUP_TEXT_DOMAIN),
|
129 |
-
'contactForm' => __('Contact form', SG_POPUP_TEXT_DOMAIN)
|
130 |
));
|
131 |
}
|
132 |
}
|
22 |
self::addDefine('SG_POPUP_SUPPORT_URL', 'https://wordpress.org/support/plugin/popup-builder');
|
23 |
self::addDefine('SG_POPUP_TICKET_URL', 'https://sygnoos.ladesk.com/submit_ticket');
|
24 |
self::addDefine('SG_POPUP_RATE_US_URL', 'https://wordpress.org/support/plugin/popup-builder/reviews/?filter=5');
|
25 |
+
self::addDefine('SG_POPUP_IFRAME_URL', 'https://popup-builder.com/downloads/iframe/');
|
26 |
+
self::addDefine('SG_POPUP_SCROLL_URL', 'https://popup-builder.com/downloads/scroll/');
|
27 |
self::addDefine('SG_POPUP_AD_BLOCK_URL', 'https://popup-builder.com/downloads/adblock/');
|
28 |
self::addDefine('SG_POPUP_ANALYTICS_URL', 'https://popup-builder.com/downloads/analytics/');
|
29 |
self::addDefine('SG_POPUP_EXIT_INTENT_URL', 'https://popup-builder.com/downloads/exit-intent/');
|
31 |
self::addDefine('SG_POPUP_AWEBER_URL', 'https://popup-builder.com/downloads/aweber/');
|
32 |
self::addDefine('SG_POPUP_WOOCOMMERCE_URL', 'https://popup-builder.com/downloads/woocommerce/');
|
33 |
self::addDefine('SG_POPUP_RECENT_SALES_URL', 'https://popup-builder.com/downloads/recent-sales/');
|
34 |
+
self::addDefine('SG_POPUP_VIDEO_URL', 'https://popup-builder.com/downloads/video/');
|
35 |
+
self::addDefine('SG_POPUP_SOCIAL_URL', 'https://popup-builder.com/downloads/social/');
|
36 |
+
self::addDefine('SG_POPUP_COUNTDOWN_URL', 'https://popup-builder.com/downloads/countdown/');
|
37 |
+
self::addDefine('SG_POPUP_RESTRICTION_URL', 'https://popup-builder.com/downloads/restriction/');
|
38 |
+
self::addDefine('SG_POPUP_CONTACT_FORM_URL', 'https://popup-builder.com/downloads/contact-form/');
|
39 |
+
self::addDefine('SG_POPUP_INACTIVITY_URL', 'https://popup-builder.com/downloads/inactivity/');
|
40 |
+
self::addDefine('SG_POPUP_SCHEDULING_URL', 'https://popup-builder.com/downloads/scheduling/');
|
41 |
+
self::addDefine('SG_POPUP_GEO_TARGETING_URL', 'https://popup-builder.com/downloads/geo-targeting/');
|
42 |
+
self::addDefine('SG_POPUP_RANDOM_URL', 'https://popup-builder.com/downloads/random/');
|
43 |
+
self::addDefine('SG_POPUP_ADVANCED_CLOSING_URL', 'https://popup-builder.com/downloads/advanced-closing/');
|
44 |
+
self::addDefine('SG_POPUP_ADVANCED_TARGETING_URL', 'https://popup-builder.com/downloads/advanced-targeting/');
|
45 |
+
self::addDefine('SG_POPUP_LOGIN_URL', 'https://popup-builder.com/downloads/login-popup/');
|
46 |
self::addDefine('SG_POPUP_ADMIN_URL', admin_url());
|
47 |
self::addDefine('SG_POPUP_BUILDER_URL', plugins_url().'/'.SG_POPUP_FOLDER_NAME.'/');
|
48 |
self::addDefine('SG_POPUP_BUILDER_PATH', WP_PLUGIN_DIR.'/'.SG_POPUP_FOLDER_NAME.'/');
|
67 |
self::addDefine('SG_POPUP_SOUND_URL', SG_POPUP_PUBLIC_URL.'sound/');
|
68 |
self::addDefine('SG_POPUP_DEFAULT_TIME_ZONE', 'UTC');
|
69 |
self::addDefine('SG_POPUP_CATEGORY_TAXONOMY', 'popup-categories');
|
|
|
70 |
self::addDefine('SG_POPUP_MINIMUM_PHP_VERSION', '5.3.3');
|
71 |
self::addDefine('SG_POPUP_POST_TYPE', 'popupbuilder');
|
72 |
self::addDefine('SG_POPUP_NEWSLETTER_PAGE', 'newsletter');
|
82 |
self::addDefine('SG_CONDITION_FIRST_RULE', 0);
|
83 |
self::addDefine('SGPB_AJAX_STATUS_FALSE', 0);
|
84 |
self::addDefine('SGPB_AJAX_STATUS_TRUE', 1);
|
|
|
|
|
85 |
self::addDefine('SGPB_SUBSCRIBERS_TABLE_NAME', 'sgpb_subscribers');
|
86 |
self::addDefine('SGPB_POSTS_TABLE_NAME', 'posts');
|
87 |
self::addDefine('SGPB_APP_POPUP_TABLE_LIMIT', 15);
|
88 |
self::addDefine('SGPB_SUBSCRIBERS_ERROR_TABLE_NAME', 'sgpb_subscription_error_log');
|
89 |
self::addDefine('SGPB_CRON_REPEAT_INTERVAL', 1);
|
90 |
self::addDefine('SGPB_FACEBOOK_APP_ID', 1725074220856984);
|
91 |
+
self::addDefine('SGPB_POPUP_TYPE_RESTRICTION', 'ageRestriction');
|
92 |
self::addDefine('SGPB_POPUP_DEFAULT_SOUND', 'popupOpenSound.wav');
|
93 |
self::addDefine('SGPB_POPUP_EXTENSIONS_PATH', SG_POPUP_COM_PATH.'extensions/');
|
94 |
+
self::addDefine('SGPB_POPUP_ADVANCED_CLOSING_PLUGIN_KEY', 'popupbuilder-advanced-closing/PopupBuilderAdvancedClosing.php');
|
95 |
self::addDefine('SGPB_DONT_SHOW_POPUP_EXPIRY', 365);
|
96 |
self::addDefine('SGPB_CONTACT_FORM_7_BEHAVIOR_KEY', 'contact-form-7');
|
97 |
self::addDefine('SGPB_CSS_CLASS_ACTIONS_KEY', 'setByCssClass');
|
98 |
+
self::addDefine('SGPB_CLICK_ACTION_KEY', 'setByClick');
|
99 |
+
self::addDefine('SGPB_HOVER_ACTION_KEY', 'setByHover');
|
100 |
+
self::addDefine('SG_COUNTDOWN_COUNTER_SECONDS_SHOW', 1);
|
101 |
+
self::addDefine('SG_COUNTDOWN_COUNTER_SECONDS_HIDE', 2);
|
102 |
+
self::addDefine('SGPB_POPUP_SCHEDULING_EXTENSION_KEY', 'popupbuilder-scheduling/PopupBuilderScheduling.php');
|
103 |
+
self::addDefine('SGPB_POPUP_GEO_TARGETING_EXTENSION_KEY', 'popupbuilder-geo-targeting/PopupBuilderGeoTargeting.php');
|
104 |
+
self::addDefine('SGPB_POPUP_ADVANCED_TARGETING_EXTENSION_KEY', 'popupbuilder-advanced-targeting/PopupBuilderAdvancedTargeting.php');
|
105 |
self::popupTypesInit();
|
106 |
}
|
107 |
|
113 |
'image' => SGPB_POPUP_PKG_FREE,
|
114 |
'html' => SGPB_POPUP_PKG_FREE,
|
115 |
'fblike' => SGPB_POPUP_PKG_FREE,
|
116 |
+
'subscription' => SGPB_POPUP_PKG_FREE
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
));
|
118 |
|
119 |
$SGPB_POPUP_TYPES['typePath'] = apply_filters('sgpbAddPopupTypePath', array(
|
120 |
'image' => SG_POPUP_CLASSES_POPUPS_PATH,
|
121 |
'html' => SG_POPUP_CLASSES_POPUPS_PATH,
|
122 |
'fblike' => SG_POPUP_CLASSES_POPUPS_PATH,
|
123 |
+
'subscription' => SG_POPUP_CLASSES_POPUPS_PATH
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
));
|
125 |
|
126 |
$SGPB_POPUP_TYPES['typeLabels'] = apply_filters('sgpbAddPopupTypeLabels', array(
|
127 |
'image' => __('Image', SG_POPUP_TEXT_DOMAIN),
|
128 |
'html' => __('HTML', SG_POPUP_TEXT_DOMAIN),
|
129 |
'fblike' => __('Facebook', SG_POPUP_TEXT_DOMAIN),
|
130 |
+
'subscription' => __('Subscription', SG_POPUP_TEXT_DOMAIN)
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
));
|
132 |
}
|
133 |
}
|
com/config/configPackage.php
CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
|
|
3 |
exit();
|
4 |
}
|
5 |
|
6 |
-
define('SG_POPUP_VERSION', '3.0.
|
7 |
define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
|
8 |
define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
|
3 |
exit();
|
4 |
}
|
5 |
|
6 |
+
define('SG_POPUP_VERSION', '3.0.8');
|
7 |
define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
|
8 |
define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
|
com/config/dataConfig.php
CHANGED
@@ -223,19 +223,25 @@ class SgpbDataConfig
|
|
223 |
|
224 |
$eventsRowTypes = array(
|
225 |
'param' => 'select',
|
|
|
226 |
'value' => 'text',
|
227 |
'load' => 'number',
|
228 |
-
'onScroll' => 'number',
|
229 |
-
'inactivity' => 'number',
|
230 |
'repetitive' => 'checkbox',
|
231 |
'repetitivePeriod' => 'text',
|
|
|
|
|
|
|
|
|
|
|
232 |
);
|
233 |
|
234 |
$params = array(
|
235 |
'load' => 'On load',
|
236 |
-
|
237 |
-
|
238 |
-
|
|
|
|
|
239 |
);
|
240 |
|
241 |
$hiddenOptionData['load'] = array(
|
@@ -245,14 +251,17 @@ class SgpbDataConfig
|
|
245 |
);
|
246 |
|
247 |
$onLoadData = 0;
|
248 |
-
$inactivityData = 0;
|
249 |
-
$onScroll = 0;
|
250 |
|
251 |
$eventsDataParams['param'] = $params;
|
|
|
252 |
$eventsDataParams['load'] = $onLoadData;
|
253 |
-
$eventsDataParams['
|
254 |
-
$eventsDataParams['
|
|
|
|
|
255 |
$eventsDataParams[SGPB_CSS_CLASS_ACTIONS_KEY] = null;
|
|
|
|
|
256 |
/*Hidden params data*/
|
257 |
$eventsDataParams['repetitive'] = '';
|
258 |
$eventsDataParams['repetitivePeriod'] = 0;
|
@@ -286,8 +295,8 @@ class SgpbDataConfig
|
|
286 |
'data-select-type' => 'basic'
|
287 |
),
|
288 |
'infoAttrs' => array(
|
289 |
-
'label' => '
|
290 |
-
'info' => __('
|
291 |
)
|
292 |
),
|
293 |
'load' => array(
|
@@ -297,18 +306,66 @@ class SgpbDataConfig
|
|
297 |
'info' => __('Specify how long the popup appearance should be delayed after loading the page (in sec).', SG_POPUP_TEXT_DOMAIN)
|
298 |
)
|
299 |
),
|
300 |
-
|
301 |
-
'htmlAttrs' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
'infoAttrs' => array(
|
303 |
-
'label' => '
|
304 |
'info' => __('Specify the part of the page, in percentages, where the popup should appear after scrolling.', SG_POPUP_TEXT_DOMAIN)
|
305 |
)
|
306 |
),
|
307 |
-
'
|
308 |
'htmlAttrs' => array('class' => 'js-sg-inactivity-text', 'min' => 0),
|
309 |
'infoAttrs' => array(
|
310 |
-
'label' => '
|
311 |
-
'info' => __('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
)
|
313 |
),
|
314 |
'repetitive' => array(
|
@@ -343,6 +400,9 @@ class SgpbDataConfig
|
|
343 |
$popupEvents['hiddenOptionData'] = apply_filters('sgEventsHiddenData', $hiddenOptionData);
|
344 |
$popupEvents['attrs'] = apply_filters('sgPopupEventAttrs', $eventsAttrs);
|
345 |
|
|
|
|
|
|
|
346 |
$SGPB_DATA_CONFIG_ARRAY['events'] = $popupEvents;
|
347 |
|
348 |
/*Target condition config*/
|
@@ -351,18 +411,12 @@ class SgpbDataConfig
|
|
351 |
'param' => 'select',
|
352 |
'operator' => 'select',
|
353 |
'value' => 'select',
|
354 |
-
'groups_user_role' => 'select',
|
355 |
'select_role' => 'select',
|
356 |
-
'groups_countries' => 'select',
|
357 |
-
'groups_devices' => 'select'
|
358 |
);
|
359 |
|
360 |
$targetParams = array(
|
361 |
'select_role' => __('Select role', SG_POPUP_TEXT_DOMAIN),
|
362 |
'Groups' => array(
|
363 |
-
'groups_user_role' => __('User status', SG_POPUP_TEXT_DOMAIN),
|
364 |
-
'groups_countries' => __('Countries', SG_POPUP_TEXT_DOMAIN),
|
365 |
-
'groups_devices' => __('Devices', SG_POPUP_TEXT_DOMAIN)
|
366 |
)
|
367 |
);
|
368 |
|
@@ -380,21 +434,10 @@ class SgpbDataConfig
|
|
380 |
array('param' => 'select_role', 'operator' => '==', 'value' => '')
|
381 |
);
|
382 |
|
383 |
-
$userStatus = array(
|
384 |
-
'loggedIn' => __('logged in', SG_POPUP_TEXT_DOMAIN)
|
385 |
-
);
|
386 |
-
$userStatusCanBeUsed = PopupBuilderActivePackage::canUseSection('userStatus');
|
387 |
-
if (!$userStatusCanBeUsed) {
|
388 |
-
unset($targetParams['Groups']['groups_user_role']);
|
389 |
-
$userStatus = array();
|
390 |
-
}
|
391 |
-
|
392 |
$targetDataParams['param'] = apply_filters('sgPopupTargetParams', $targetParams);
|
393 |
$targetDataParams['operator'] = apply_filters('sgPopupTargetOperator', $targetDataOperator);
|
|
|
394 |
$targetDataParams['select_role'] = null;
|
395 |
-
$targetDataParams['groups_user_role'] = apply_filters('sgPopupConditionsUserStatus', $userStatus);
|
396 |
-
$targetDataParams['groups_countries'] = apply_filters('sgPopupConditionsCountries', ConfigDataHelper::countriesIsoData());
|
397 |
-
$targetDataParams['groups_devices'] = apply_filters('sgPopupConditionsDevices', ConfigDataHelper::getDevices());
|
398 |
|
399 |
$targetAttrs = array(
|
400 |
'param' => array(
|
@@ -419,41 +462,6 @@ class SgpbDataConfig
|
|
419 |
'label' => 'Page operator',
|
420 |
'info' => __('Allow or Disallow popup showing for the selected conditions.', SG_POPUP_TEXT_DOMAIN)
|
421 |
)
|
422 |
-
),
|
423 |
-
'groups_user_role' => array(
|
424 |
-
'htmlAttrs' => array(
|
425 |
-
'class' => 'js-sg-select2 js-select-basic',
|
426 |
-
'data-select-class' => 'js-select-basic',
|
427 |
-
'data-select-type' => 'basic'
|
428 |
-
),
|
429 |
-
'infoAttrs' => array(
|
430 |
-
'label' => 'Select user role',
|
431 |
-
'info' => __('Set up the popup to allow it for logged-in or logged-out users.', SG_POPUP_TEXT_DOMAIN)
|
432 |
-
)
|
433 |
-
),
|
434 |
-
'groups_countries' => array(
|
435 |
-
'htmlAttrs' => array(
|
436 |
-
'class' => 'js-sg-select2 js-select-basic',
|
437 |
-
'data-select-class' => 'js-select-basic',
|
438 |
-
'data-select-type' => 'basic',
|
439 |
-
'multiple' => 'multiple'
|
440 |
-
),
|
441 |
-
'infoAttrs' => array(
|
442 |
-
'label' => 'Select countries',
|
443 |
-
'info' => __('Select the countries for which the popup will be shown or hidden.', SG_POPUP_TEXT_DOMAIN)
|
444 |
-
)
|
445 |
-
),
|
446 |
-
'groups_devices' => array(
|
447 |
-
'htmlAttrs' => array(
|
448 |
-
'class' => 'js-sg-select2 js-select-basic',
|
449 |
-
'data-select-class' => 'js-select-basic',
|
450 |
-
'data-select-type' => 'basic',
|
451 |
-
'multiple' => 'multiple'
|
452 |
-
),
|
453 |
-
'infoAttrs' => array(
|
454 |
-
'label' => 'Select user devices',
|
455 |
-
'info' => __('Select the device for which the popup will be available.', SG_POPUP_TEXT_DOMAIN)
|
456 |
-
)
|
457 |
)
|
458 |
);
|
459 |
|
@@ -464,6 +472,9 @@ class SgpbDataConfig
|
|
464 |
$popupConditions['operators'] = apply_filters('sgPopupConditionsOperators', $targetOperators);
|
465 |
$popupConditions['attrs'] = apply_filters('sgPopupConditionsAttrs', $targetAttrs);
|
466 |
|
|
|
|
|
|
|
467 |
$SGPB_DATA_CONFIG_ARRAY['conditions'] = $popupConditions;
|
468 |
|
469 |
$SGPB_DATA_CONFIG_ARRAY['behavior-after-special-events'] = self::getBehaviorAfterSpecialEventsConfig();
|
@@ -474,18 +485,84 @@ class SgpbDataConfig
|
|
474 |
{
|
475 |
$keys = array();
|
476 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
$keys[] = array(
|
478 |
'label' => __('AdBlock', SG_POPUP_TEXT_DOMAIN),
|
479 |
'pluginKey' => 'popupbuilder-adblock/PopupBuilderAdBlock.php',
|
480 |
'key' => 'sgpbAdBlock',
|
481 |
'url' => SG_POPUP_AD_BLOCK_URL
|
482 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
$keys[] = array(
|
484 |
'label' => __('Analytics', SG_POPUP_TEXT_DOMAIN),
|
485 |
'pluginKey' => 'popupbuilder-analytics/PopupBuilderAnalytics.php',
|
486 |
'key' => 'sgpbAnalitics',
|
487 |
'url' => SG_POPUP_ANALYTICS_URL
|
488 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
489 |
$keys[] = array(
|
490 |
'label' => __('Exit Intent',SG_POPUP_TEXT_DOMAIN),
|
491 |
'pluginKey' => 'popupbuilder-exit-intent/PopupBuilderExitIntent.php',
|
@@ -504,6 +581,12 @@ class SgpbDataConfig
|
|
504 |
'key' => 'sgpbAWeber',
|
505 |
'url' => SG_POPUP_AWEBER_URL
|
506 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
$keys[] = array(
|
508 |
'label' => __('WooCommerce', SG_POPUP_TEXT_DOMAIN),
|
509 |
'pluginKey' => 'popupbuilder-woocommerce/popupbuilderWoocommerce.php',
|
@@ -516,6 +599,18 @@ class SgpbDataConfig
|
|
516 |
'key' => 'sgpbRecentSales',
|
517 |
'url' => SG_POPUP_RECENT_SALES_URL
|
518 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
519 |
|
520 |
return apply_filters('sgpbExtensionsKeys', $keys);
|
521 |
}
|
@@ -680,10 +775,6 @@ class SgpbDataConfig
|
|
680 |
$options[] = array('name' => 'sgpb-max-height', 'type' => 'text', 'defaultValue' => '');
|
681 |
$options[] = array('name' => 'sgpb-min-width', 'type' => 'text', 'defaultValue' => '120');
|
682 |
$options[] = array('name' => 'sgpb-min-height', 'type' => 'text', 'defaultValue' => '');
|
683 |
-
$options[] = array('name' => 'sgpb-schedule-status', 'type' => 'checkbox', 'defaultValue' => '');
|
684 |
-
$options[] = array('name' => 'sgpb-schedule-weeks', 'type' => 'array', 'defaultValue' => '');
|
685 |
-
$options[] = array('name' => 'sgpb-schedule-start-time', 'type' => 'text', 'defaultValue' => '');
|
686 |
-
$options[] = array('name' => 'sgpb-schedule-end-time', 'type' => 'text', 'defaultValue' => '');
|
687 |
$options[] = array('name' => 'sgpb-popup-timer-status', 'type' => 'checkbox', 'defaultValue' => '');
|
688 |
$options[] = array('name' => 'sgpb-popup-start-timer', 'type' => 'text', 'defaultValue' => '');
|
689 |
$options[] = array('name' => 'sgpb-popup-end-timer', 'type' => 'text', 'defaultValue' => '');
|
@@ -711,10 +802,6 @@ class SgpbDataConfig
|
|
711 |
$options[] = array('name' => 'sgpb-background-color', 'type' => 'text', 'defaultValue' => '');
|
712 |
$options[] = array('name' => 'sgpb-overlay-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
713 |
$options[] = array('name' => 'sgpb-content-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
714 |
-
$options[] = array('name' => 'sgpb-iframe-url', 'type' => 'text', 'defaultValue' => '');
|
715 |
-
$options[] = array('name' => 'sgpb-iframe-invalid-url', 'type' => 'text', 'defaultValue' => __('Invalid URL.', SG_POPUP_TEXT_DOMAIN));
|
716 |
-
$options[] = array('name' => 'sgpb-iframe-protocol-warning', 'type' => 'text', 'defaultValue' => __('This url may not work, as it is HTTP and you are running HTTPS.', SG_POPUP_TEXT_DOMAIN));
|
717 |
-
$options[] = array('name' => 'sgpb-iframe-same-origin-warning', 'type' => 'text', 'defaultValue' => __('This url may not work, as it doesn\'t allow embedding in iframes.', SG_POPUP_TEXT_DOMAIN));
|
718 |
$options[] = array('name' => 'sgpb-background-image', 'type' => 'text', 'defaultValue' => '');
|
719 |
$options[] = array('name' => 'sgpb-show-background', 'type' => 'checkbox', 'defaultValue' => '');
|
720 |
$options[] = array('name' => 'sgpb-force-rtl', 'type' => 'checkbox', 'defaultValue' => '');
|
@@ -724,11 +811,37 @@ class SgpbDataConfig
|
|
724 |
$options[] = array('name' => 'sgpb-button-image', 'type' => 'text', 'defaultValue' => '');
|
725 |
$options[] = array('name' => 'sgpb-button-image-width', 'type' => 'text', 'defaultValue' => 21);
|
726 |
$options[] = array('name' => 'sgpb-button-image-height', 'type' => 'text', 'defaultValue' => 21);
|
727 |
-
$options[] = array('name' => 'sgpb-video-autoplay', 'type' => 'checkbox', 'defaultValue' => '');
|
728 |
-
$options[] = array('name' => 'sgpb-video-invalid-url', 'type' => 'text', 'defaultValue' => __('Invalid URL', SG_POPUP_TEXT_DOMAIN).'.');
|
729 |
-
$options[] = array('name' => 'sgpb-video-not-supported-url', 'type' => 'text', 'defaultValue' => __('This video URL is not supported', SG_POPUP_TEXT_DOMAIN).'.');
|
730 |
$options[] = array('name' => 'sgpb-is-active', 'type' => 'checkbox', 'defaultValue' => 'on');
|
731 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
732 |
$options[] = array('name' => 'sgpb-subs-form-bg-color', 'type' => 'text', 'defaultValue' => '#FFFFFF');
|
733 |
$options[] = array('name' => 'sgpb-subs-form-bg-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
734 |
$options[] = array('name' => 'sgpb-subs-form-padding', 'type' => 'number', 'defaultValue' => 2);
|
@@ -762,7 +875,73 @@ class SgpbDataConfig
|
|
762 |
$options[] = array('name' => 'sgpb-subs-gdpr-status', 'type' => 'checkbox', 'defaultValue' => '');
|
763 |
$options[] = array('name' => 'sgpb-subs-gdpr-label', 'type' => 'text', 'defaultValue' => __('Accept Terms', SG_POPUP_TEXT_DOMAIN));
|
764 |
$options[] = array('name' => 'sgpb-subs-gdpr-text', 'type' => 'text', 'defaultValue' => __(get_bloginfo().' will use the information you provide on this form to be in touch with you and to provide updates and marketing.', SG_POPUP_TEXT_DOMAIN));
|
765 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
766 |
$options[] = array('name' => 'sgpb-fblike-like-url', 'type' => 'text', 'defaultValue' => '');
|
767 |
$options[] = array('name' => 'sgpb-fblike-layout', 'type' => 'text', 'defaultValue' => 'standard');
|
768 |
$options[] = array('name' => 'sgpb-fblike-dont-show-share-button', 'type' => 'checkbox', 'defaultValue' => '');
|
@@ -774,8 +953,6 @@ class SgpbDataConfig
|
|
774 |
$options[] = array('name' => 'sgpb-show-popup-same-user-count', 'type' => 'number', 'defaultValue' => 1);
|
775 |
$options[] = array('name' => 'sgpb-show-popup-same-user-expiry', 'type' => 'number', 'defaultValue' => 1);
|
776 |
$options[] = array('name' => 'sgpb-show-popup-same-user-page-level', 'type' => 'checkbox', 'defaultValue' => '');
|
777 |
-
$options[] = array('name' => 'sgpb-show-popup-after-x-pages', 'type' => 'checkbox', 'defaultValue' => '', 'min-pkg' => SGPB_POPUP_PKG_SILVER);
|
778 |
-
$options[] = array('name' => 'sgpb-show-popup-after-x-pages-count', 'type' => 'number', 'defaultValue' => '1');
|
779 |
|
780 |
$SGPB_OPTIONS = apply_filters('sgpbPopupDefaultOptions', $options);
|
781 |
}
|
223 |
|
224 |
$eventsRowTypes = array(
|
225 |
'param' => 'select',
|
226 |
+
'operator' => 'select',
|
227 |
'value' => 'text',
|
228 |
'load' => 'number',
|
|
|
|
|
229 |
'repetitive' => 'checkbox',
|
230 |
'repetitivePeriod' => 'text',
|
231 |
+
SGPB_CLICK_ACTION_KEY => 'select',
|
232 |
+
'clickActionCustomClass' => 'text',
|
233 |
+
'hoverActionCustomClass' => 'text',
|
234 |
+
'defaultClickClassName' => 'conditionalText',
|
235 |
+
'defaultHoverClassName' => 'conditionalText'
|
236 |
);
|
237 |
|
238 |
$params = array(
|
239 |
'load' => 'On load',
|
240 |
+
SGPB_CSS_CLASS_ACTIONS_KEY => __('Set by CSS class', SG_POPUP_TEXT_DOMAIN),
|
241 |
+
SGPB_CLICK_ACTION_KEY => __('On Click', SG_POPUP_TEXT_DOMAIN),
|
242 |
+
SGPB_HOVER_ACTION_KEY => __('On Hover', SG_POPUP_TEXT_DOMAIN),
|
243 |
+
'inactivity' => __('Inactivity', SG_POPUP_TEXT_DOMAIN),
|
244 |
+
'onScroll' => __('On Scroll', SG_POPUP_TEXT_DOMAIN)
|
245 |
);
|
246 |
|
247 |
$hiddenOptionData['load'] = array(
|
251 |
);
|
252 |
|
253 |
$onLoadData = 0;
|
|
|
|
|
254 |
|
255 |
$eventsDataParams['param'] = $params;
|
256 |
+
$eventsDataParams['operator'] = array();
|
257 |
$eventsDataParams['load'] = $onLoadData;
|
258 |
+
$eventsDataParams['clickActionCustomClass'] = '';
|
259 |
+
$eventsDataParams['hoverActionCustomClass'] = '';
|
260 |
+
$eventsDataParams['defaultClickClassName'] = 'sg-popup-id-';
|
261 |
+
$eventsDataParams['defaultHoverClassName'] = 'sg-popup-hover-';
|
262 |
$eventsDataParams[SGPB_CSS_CLASS_ACTIONS_KEY] = null;
|
263 |
+
$eventsDataParams[SGPB_CLICK_ACTION_KEY.'Operator'] = ConfigDataHelper::getClickActionOptions();
|
264 |
+
$eventsDataParams[SGPB_HOVER_ACTION_KEY.'Operator'] = ConfigDataHelper::getHoverActionOptions();
|
265 |
/*Hidden params data*/
|
266 |
$eventsDataParams['repetitive'] = '';
|
267 |
$eventsDataParams['repetitivePeriod'] = 0;
|
295 |
'data-select-type' => 'basic'
|
296 |
),
|
297 |
'infoAttrs' => array(
|
298 |
+
'label' => 'Options',
|
299 |
+
'info' => __('Select the condition for the current event.', SG_POPUP_TEXT_DOMAIN)
|
300 |
)
|
301 |
),
|
302 |
'load' => array(
|
306 |
'info' => __('Specify how long the popup appearance should be delayed after loading the page (in sec).', SG_POPUP_TEXT_DOMAIN)
|
307 |
)
|
308 |
),
|
309 |
+
SGPB_CLICK_ACTION_KEY => array(
|
310 |
+
'htmlAttrs' => array(
|
311 |
+
'class' => 'js-sg-select2 js-select-basic',
|
312 |
+
'data-select-class' => 'js-select-basic',
|
313 |
+
'data-select-type' => 'basic'
|
314 |
+
),
|
315 |
+
'infoAttrs' => array(
|
316 |
+
'label' => 'Click Event',
|
317 |
+
'info' => __('Specify the part of the page, in percentages, where the popup should appear after scrolling.', SG_POPUP_TEXT_DOMAIN)
|
318 |
+
)
|
319 |
+
),
|
320 |
+
SGPB_HOVER_ACTION_KEY => array(
|
321 |
+
'htmlAttrs' => array(
|
322 |
+
'class' => 'js-sg-select2 js-select-basic',
|
323 |
+
'data-select-class' => 'js-select-basic',
|
324 |
+
'data-select-type' => 'basic'
|
325 |
+
),
|
326 |
'infoAttrs' => array(
|
327 |
+
'label' => 'Hover Event',
|
328 |
'info' => __('Specify the part of the page, in percentages, where the popup should appear after scrolling.', SG_POPUP_TEXT_DOMAIN)
|
329 |
)
|
330 |
),
|
331 |
+
'clickActionCustomClass' => array(
|
332 |
'htmlAttrs' => array('class' => 'js-sg-inactivity-text', 'min' => 0),
|
333 |
'infoAttrs' => array(
|
334 |
+
'label' => 'Custom Class',
|
335 |
+
'info' => __('Add the CSS class name of your HTML element which will trigger this popup after click.', SG_POPUP_TEXT_DOMAIN)
|
336 |
+
)
|
337 |
+
),
|
338 |
+
'hoverActionCustomClass' => array(
|
339 |
+
'htmlAttrs' => array('class' => 'js-sg-inactivity-text', 'min' => 0),
|
340 |
+
'infoAttrs' => array(
|
341 |
+
'label' => 'Custom Class',
|
342 |
+
'info' => __('Add the CSS class name of your HTML element which will trigger this popup after click.', SG_POPUP_TEXT_DOMAIN)
|
343 |
+
)
|
344 |
+
),
|
345 |
+
'defaultClickClassName' => array(
|
346 |
+
'htmlAttrs' => array(
|
347 |
+
'class' => 'js-sg-click-event',
|
348 |
+
'min' => 0,
|
349 |
+
'readonly' => '',
|
350 |
+
'value' => 'sg-popup-id-',
|
351 |
+
'beforeSaveLabel' => __('Please save popup to generate class name.', SG_POPUP_TEXT_DOMAIN)
|
352 |
+
),
|
353 |
+
'infoAttrs' => array(
|
354 |
+
'label' => 'Default Class',
|
355 |
+
'info' => __('Add the following CSS class into your HTML element.', SG_POPUP_TEXT_DOMAIN)
|
356 |
+
)
|
357 |
+
),
|
358 |
+
'defaultHoverClassName' => array(
|
359 |
+
'htmlAttrs' => array(
|
360 |
+
'class' => 'js-sg-hover-event',
|
361 |
+
'min' => 0,
|
362 |
+
'readonly' => '',
|
363 |
+
'value' => 'sg-popup-hover-',
|
364 |
+
'beforeSaveLabel' => __('Please save popup to generate class name.', SG_POPUP_TEXT_DOMAIN)
|
365 |
+
),
|
366 |
+
'infoAttrs' => array(
|
367 |
+
'label' => 'Default Class',
|
368 |
+
'info' => __('Add the following CSS class into your HTML element.', SG_POPUP_TEXT_DOMAIN)
|
369 |
)
|
370 |
),
|
371 |
'repetitive' => array(
|
400 |
$popupEvents['hiddenOptionData'] = apply_filters('sgEventsHiddenData', $hiddenOptionData);
|
401 |
$popupEvents['attrs'] = apply_filters('sgPopupEventAttrs', $eventsAttrs);
|
402 |
|
403 |
+
$popupEvents['specialDefaultOperator'] = apply_filters('sgPopupEventsOperators', ' ');
|
404 |
+
$popupEvents['operatorAllowInConditions'] = apply_filters('sgPopupEventsOperatorAllowInConditions', array(SGPB_CLICK_ACTION_KEY, SGPB_HOVER_ACTION_KEY));
|
405 |
+
|
406 |
$SGPB_DATA_CONFIG_ARRAY['events'] = $popupEvents;
|
407 |
|
408 |
/*Target condition config*/
|
411 |
'param' => 'select',
|
412 |
'operator' => 'select',
|
413 |
'value' => 'select',
|
|
|
414 |
'select_role' => 'select',
|
|
|
|
|
415 |
);
|
416 |
|
417 |
$targetParams = array(
|
418 |
'select_role' => __('Select role', SG_POPUP_TEXT_DOMAIN),
|
419 |
'Groups' => array(
|
|
|
|
|
|
|
420 |
)
|
421 |
);
|
422 |
|
434 |
array('param' => 'select_role', 'operator' => '==', 'value' => '')
|
435 |
);
|
436 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
$targetDataParams['param'] = apply_filters('sgPopupTargetParams', $targetParams);
|
438 |
$targetDataParams['operator'] = apply_filters('sgPopupTargetOperator', $targetDataOperator);
|
439 |
+
|
440 |
$targetDataParams['select_role'] = null;
|
|
|
|
|
|
|
441 |
|
442 |
$targetAttrs = array(
|
443 |
'param' => array(
|
462 |
'label' => 'Page operator',
|
463 |
'info' => __('Allow or Disallow popup showing for the selected conditions.', SG_POPUP_TEXT_DOMAIN)
|
464 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
465 |
)
|
466 |
);
|
467 |
|
472 |
$popupConditions['operators'] = apply_filters('sgPopupConditionsOperators', $targetOperators);
|
473 |
$popupConditions['attrs'] = apply_filters('sgPopupConditionsAttrs', $targetAttrs);
|
474 |
|
475 |
+
$popupConditions['specialDefaultOperator'] = apply_filters('sgPopupConditionsOperators', $targetDataOperator);
|
476 |
+
$popupConditions['operatorAllowInConditions'] = apply_filters('sgPopupConditionsOperatorAllowInConditions', array());
|
477 |
+
|
478 |
$SGPB_DATA_CONFIG_ARRAY['conditions'] = $popupConditions;
|
479 |
|
480 |
$SGPB_DATA_CONFIG_ARRAY['behavior-after-special-events'] = self::getBehaviorAfterSpecialEventsConfig();
|
485 |
{
|
486 |
$keys = array();
|
487 |
|
488 |
+
$keys[] = array(
|
489 |
+
'label' => __('Scheduling', SG_POPUP_TEXT_DOMAIN),
|
490 |
+
'pluginKey' => 'popupbuilder-scheduling/PopupBuilderScheduling.php',
|
491 |
+
'key' => 'scheduling',
|
492 |
+
'url' => SG_POPUP_SCHEDULING_URL
|
493 |
+
);
|
494 |
+
$keys[] = array(
|
495 |
+
'label' => __('Geo Targeting', SG_POPUP_TEXT_DOMAIN),
|
496 |
+
'pluginKey' => 'popupbuilder-geo-targeting/PopupBuilderGeoTargeting.php',
|
497 |
+
'key' => 'geo-targeting',
|
498 |
+
'url' => SG_POPUP_GEO_TARGETING_URL
|
499 |
+
);
|
500 |
+
$keys[] = array(
|
501 |
+
'label' => __('Iframe', SG_POPUP_TEXT_DOMAIN),
|
502 |
+
'pluginKey' => 'popupbuilder-iframe/PopupBuilderIframe.php',
|
503 |
+
'key' => 'iframe',
|
504 |
+
'url' => SG_POPUP_IFRAME_URL
|
505 |
+
);
|
506 |
+
$keys[] = array(
|
507 |
+
'label' => __('Social', SG_POPUP_TEXT_DOMAIN),
|
508 |
+
'pluginKey' => 'popupbuilder-social/PopupBuilderSocial.php',
|
509 |
+
'key' => 'social',
|
510 |
+
'url' => SG_POPUP_SOCIAL_URL
|
511 |
+
);
|
512 |
+
$keys[] = array(
|
513 |
+
'label' => __('Video', SG_POPUP_TEXT_DOMAIN),
|
514 |
+
'pluginKey' => 'popupbuilder-video/PopupBuilderVideo.php',
|
515 |
+
'key' => 'video',
|
516 |
+
'url' => SG_POPUP_VIDEO_URL
|
517 |
+
);
|
518 |
+
$keys[] = array(
|
519 |
+
'label' => __('Countdown', SG_POPUP_TEXT_DOMAIN),
|
520 |
+
'pluginKey' => 'popupbuilder-countdown/PopupBuilderCountdown.php',
|
521 |
+
'key' => 'countdown',
|
522 |
+
'url' => SG_POPUP_COUNTDOWN_URL
|
523 |
+
);
|
524 |
+
$keys[] = array(
|
525 |
+
'label' => __('Restriction', SG_POPUP_TEXT_DOMAIN),
|
526 |
+
'pluginKey' => 'popupbuilder-restriction/PopupBuilderRestriction.php',
|
527 |
+
'key' => 'ageRestriction',
|
528 |
+
'url' => SG_POPUP_RESTRICTION_URL
|
529 |
+
);
|
530 |
+
$keys[] = array(
|
531 |
+
'label' => __('Contact Form', SG_POPUP_TEXT_DOMAIN),
|
532 |
+
'pluginKey' => 'popupbuilder-contact-form/PopupBuilderContactForm.php',
|
533 |
+
'key' => 'contactForm',
|
534 |
+
'url' => SG_POPUP_CONTACT_FORM_URL
|
535 |
+
);
|
536 |
$keys[] = array(
|
537 |
'label' => __('AdBlock', SG_POPUP_TEXT_DOMAIN),
|
538 |
'pluginKey' => 'popupbuilder-adblock/PopupBuilderAdBlock.php',
|
539 |
'key' => 'sgpbAdBlock',
|
540 |
'url' => SG_POPUP_AD_BLOCK_URL
|
541 |
);
|
542 |
+
$keys[] = array(
|
543 |
+
'label' => __('Scroll', SG_POPUP_TEXT_DOMAIN),
|
544 |
+
'pluginKey' => 'popupbuilder-scroll/PopupBuilderScroll.php',
|
545 |
+
'key' => 'sgpbScroll',
|
546 |
+
'url' => SG_POPUP_SCROLL_URL
|
547 |
+
);
|
548 |
+
$keys[] = array(
|
549 |
+
'label' => __('Advanced Closing', SG_POPUP_TEXT_DOMAIN),
|
550 |
+
'pluginKey' => 'popupbuilder-advanced-closing/PopupBuilderAdvancedClosing.php',
|
551 |
+
'key' => 'advancedClosing',
|
552 |
+
'url' => SG_POPUP_ADVANCED_CLOSING_URL
|
553 |
+
);
|
554 |
$keys[] = array(
|
555 |
'label' => __('Analytics', SG_POPUP_TEXT_DOMAIN),
|
556 |
'pluginKey' => 'popupbuilder-analytics/PopupBuilderAnalytics.php',
|
557 |
'key' => 'sgpbAnalitics',
|
558 |
'url' => SG_POPUP_ANALYTICS_URL
|
559 |
);
|
560 |
+
$keys[] = array(
|
561 |
+
'label' => __('Inactivity', SG_POPUP_TEXT_DOMAIN),
|
562 |
+
'pluginKey' => 'popupbuilder-inactivity/PopupBuilderInactivity.php',
|
563 |
+
'key' => 'sgpbInactivity',
|
564 |
+
'url' => SG_POPUP_INACTIVITY_URL
|
565 |
+
);
|
566 |
$keys[] = array(
|
567 |
'label' => __('Exit Intent',SG_POPUP_TEXT_DOMAIN),
|
568 |
'pluginKey' => 'popupbuilder-exit-intent/PopupBuilderExitIntent.php',
|
581 |
'key' => 'sgpbAWeber',
|
582 |
'url' => SG_POPUP_AWEBER_URL
|
583 |
);
|
584 |
+
$keys[] = array(
|
585 |
+
'label' => __('Random', SG_POPUP_TEXT_DOMAIN),
|
586 |
+
'pluginKey' => 'popupbuilder-random/PopupBuilderRandom.php',
|
587 |
+
'key' => 'sgpbRandom',
|
588 |
+
'url' => SG_POPUP_RANDOM_URL
|
589 |
+
);
|
590 |
$keys[] = array(
|
591 |
'label' => __('WooCommerce', SG_POPUP_TEXT_DOMAIN),
|
592 |
'pluginKey' => 'popupbuilder-woocommerce/popupbuilderWoocommerce.php',
|
599 |
'key' => 'sgpbRecentSales',
|
600 |
'url' => SG_POPUP_RECENT_SALES_URL
|
601 |
);
|
602 |
+
$keys[] = array(
|
603 |
+
'label' => __('Advanced Targeting', SG_POPUP_TEXT_DOMAIN),
|
604 |
+
'pluginKey' => 'popupbuilder-advanced-targeting/PopupBuilderAdvancedTargeting.php',
|
605 |
+
'key' => 'sgpbAdvancedTargeting',
|
606 |
+
'url' => SG_POPUP_ADVANCED_TARGETING_URL
|
607 |
+
);
|
608 |
+
$keys[] = array(
|
609 |
+
'label' => __('Log In', SG_POPUP_TEXT_DOMAIN),
|
610 |
+
'pluginKey' => 'popupbuilder-login/PopupBuilderLogin.php',
|
611 |
+
'key' => 'login',
|
612 |
+
'url' => SG_POPUP_LOGIN_URL
|
613 |
+
);
|
614 |
|
615 |
return apply_filters('sgpbExtensionsKeys', $keys);
|
616 |
}
|
775 |
$options[] = array('name' => 'sgpb-max-height', 'type' => 'text', 'defaultValue' => '');
|
776 |
$options[] = array('name' => 'sgpb-min-width', 'type' => 'text', 'defaultValue' => '120');
|
777 |
$options[] = array('name' => 'sgpb-min-height', 'type' => 'text', 'defaultValue' => '');
|
|
|
|
|
|
|
|
|
778 |
$options[] = array('name' => 'sgpb-popup-timer-status', 'type' => 'checkbox', 'defaultValue' => '');
|
779 |
$options[] = array('name' => 'sgpb-popup-start-timer', 'type' => 'text', 'defaultValue' => '');
|
780 |
$options[] = array('name' => 'sgpb-popup-end-timer', 'type' => 'text', 'defaultValue' => '');
|
802 |
$options[] = array('name' => 'sgpb-background-color', 'type' => 'text', 'defaultValue' => '');
|
803 |
$options[] = array('name' => 'sgpb-overlay-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
804 |
$options[] = array('name' => 'sgpb-content-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
|
|
|
|
|
|
|
|
805 |
$options[] = array('name' => 'sgpb-background-image', 'type' => 'text', 'defaultValue' => '');
|
806 |
$options[] = array('name' => 'sgpb-show-background', 'type' => 'checkbox', 'defaultValue' => '');
|
807 |
$options[] = array('name' => 'sgpb-force-rtl', 'type' => 'checkbox', 'defaultValue' => '');
|
811 |
$options[] = array('name' => 'sgpb-button-image', 'type' => 'text', 'defaultValue' => '');
|
812 |
$options[] = array('name' => 'sgpb-button-image-width', 'type' => 'text', 'defaultValue' => 21);
|
813 |
$options[] = array('name' => 'sgpb-button-image-height', 'type' => 'text', 'defaultValue' => 21);
|
|
|
|
|
|
|
814 |
$options[] = array('name' => 'sgpb-is-active', 'type' => 'checkbox', 'defaultValue' => 'on');
|
815 |
+
// proStartSilver
|
816 |
+
$options[] = array('name' => 'sgpb-restriction-cookie-level', 'type' => 'checkbox', 'defaultValue' => '');
|
817 |
+
$options[] = array('name' => 'sgpb-restriction-yes-btn-radius', 'type' => 'number', 'defaultValue' => '');
|
818 |
+
$options[] = array('name' => 'sgpb-restriction-no-btn-radius', 'type' => 'number', 'defaultValue' => '');
|
819 |
+
$options[] = array('name' => 'sgpb-restriction-yes-btn-radius-type', 'type' => 'text', 'defaultValue' => '');
|
820 |
+
$options[] = array('name' => 'sgpb-restriction-no-btn-radius-type', 'type' => 'text', 'defaultValue' => '');
|
821 |
+
$options[] = array('name' => 'sgpb-restriction-yes-btn-bg-color', 'type' => 'text', 'defaultValue' => '#222222');
|
822 |
+
$options[] = array('name' => 'sgpb-restriction-no-btn-bg-color', 'type' => 'text', 'defaultValue' => '#222222');
|
823 |
+
$options[] = array('name' => 'sgpb-restriction-yes-btn-text-color', 'type' => 'text', 'defaultValue' => '#ffffff');
|
824 |
+
$options[] = array('name' => 'sgpb-restriction-yes-btn-border-color', 'type' => 'text', 'defaultValue' => '#222222');
|
825 |
+
$options[] = array('name' => 'sgpb-restriction-yes-btn-border-width', 'type' => 'number', 'defaultValue' => 2);
|
826 |
+
$options[] = array('name' => 'sgpb-restriction-no-btn-border-color', 'type' => 'text', 'defaultValue' => '#222222');
|
827 |
+
$options[] = array('name' => 'sgpb-restriction-no-btn-border-width', 'type' => 'number', 'defaultValue' => 2);
|
828 |
+
$options[] = array('name' => 'sgpb-restriction-no-btn-text-color', 'type' => 'text', 'defaultValue' => '#ffffff');
|
829 |
+
$options[] = array('name' => 'sgpb-restriction-yes-expiration-time', 'type' => 'number', 'defaultValue' => 365);
|
830 |
+
$options[] = array('name' => 'sgpb-restriction-save-choice', 'type' => 'checkbox', 'defaultValue' => 'on');
|
831 |
+
$options[] = array('name' => 'sgpb-restriction-yes-btn', 'type' => 'text', 'defaultValue' => __('Yes', SG_POPUP_TEXT_DOMAIN));
|
832 |
+
$options[] = array('name' => 'sgpb-restriction-to-bottom', 'type' => 'checkbox', 'defaultValue' => '');
|
833 |
+
$options[] = array('name' => 'sgpb-restriction-no-btn', 'type' => 'text', 'defaultValue' => __('No', SG_POPUP_TEXT_DOMAIN));
|
834 |
+
$options[] = array('name' => 'sgpb-countdown-show-on-top', 'type' => 'checkbox', 'defaultValue' => 'on');
|
835 |
+
$options[] = array('name' => 'sgpb-countdown-close-timeout', 'type' => 'checkbox', 'defaultValue' => 'on');
|
836 |
+
$options[] = array('name' => 'sgpb-counter-background-color', 'type' => 'text', 'defaultValue' => '#333333');
|
837 |
+
$options[] = array('name' => 'sgpb-counter-text-color', 'type' => 'text', 'defaultValue' => '#cccccc');
|
838 |
+
$options[] = array('name' => 'sgpb-countdown-timezone', 'type' => 'text', 'defaultValue' => ConfigDataHelper::getDefaultTimezone());
|
839 |
+
$options[] = array('name' => 'sgpb-countdown-due-date', 'type' => 'text', 'defaultValue' => ConfigDataHelper::getCurrentDateTime());
|
840 |
+
$options[] = array('name' => 'sgpb-countdown-date-format', 'type' => 'text', 'defaultValue' => 'date');
|
841 |
+
$options[] = array('name' => 'sgpb-countdown-date-days', 'type' => 'text', 'defaultValue' => '1');
|
842 |
+
$options[] = array('name' => 'sgpb-countdown-date-hours', 'type' => 'number', 'defaultValue' => '0');
|
843 |
+
$options[] = array('name' => 'sgpb-countdown-date-minutes', 'type' => 'number', 'defaultValue' => '0');
|
844 |
+
// proEndSilver
|
845 |
$options[] = array('name' => 'sgpb-subs-form-bg-color', 'type' => 'text', 'defaultValue' => '#FFFFFF');
|
846 |
$options[] = array('name' => 'sgpb-subs-form-bg-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
847 |
$options[] = array('name' => 'sgpb-subs-form-padding', 'type' => 'number', 'defaultValue' => 2);
|
875 |
$options[] = array('name' => 'sgpb-subs-gdpr-status', 'type' => 'checkbox', 'defaultValue' => '');
|
876 |
$options[] = array('name' => 'sgpb-subs-gdpr-label', 'type' => 'text', 'defaultValue' => __('Accept Terms', SG_POPUP_TEXT_DOMAIN));
|
877 |
$options[] = array('name' => 'sgpb-subs-gdpr-text', 'type' => 'text', 'defaultValue' => __(get_bloginfo().' will use the information you provide on this form to be in touch with you and to provide updates and marketing.', SG_POPUP_TEXT_DOMAIN));
|
878 |
+
// proStartSilver
|
879 |
+
$options[] = array('name' => 'sgpb-contact-form-bg-color', 'type' => 'text', 'defaultValue' => '#FFFFFF');
|
880 |
+
$options[] = array('name' => 'sgpb-contact-form-bg-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
881 |
+
$options[] = array('name' => 'sgpb-contact-form-padding', 'type' => 'number', 'defaultValue' => 2);
|
882 |
+
$options[] = array('name' => 'sgpb-contact-show-form-to-top', 'type' => 'checkbox', 'defaultValue' => '');
|
883 |
+
$options[] = array('name' => 'sgpb-contact-field-name', 'type' => 'checkbox', 'defaultValue' => 'on');
|
884 |
+
$options[] = array('name' => 'sgpb-contact-name-placeholder', 'type' => 'text', 'defaultValue' => __('Name *', SG_POPUP_TEXT_DOMAIN));
|
885 |
+
$options[] = array('name' => 'sgpb-contact-name-required', 'type' => 'checkbox', 'defaultValue' => 'on');
|
886 |
+
$options[] = array('name' => 'sgpb-contact-field-subject', 'type' => 'checkbox', 'defaultValue' => 'on');
|
887 |
+
$options[] = array('name' => 'sgpb-contact-subject-placeholder', 'type' => 'text', 'defaultValue' => __('Subject *', SG_POPUP_TEXT_DOMAIN));
|
888 |
+
$options[] = array('name' => 'sgpb-contact-subject-required', 'type' => 'checkbox', 'defaultValue' => 'on');
|
889 |
+
$options[] = array('name' => 'sgpb-contact-email-placeholder', 'type' => 'text', 'defaultValue' => __('E-mail *', SG_POPUP_TEXT_DOMAIN));
|
890 |
+
$options[] = array('name' => 'sgpb-contact-message-placeholder', 'type' => 'text', 'defaultValue' => __('Message *', SG_POPUP_TEXT_DOMAIN));
|
891 |
+
$options[] = array('name' => 'sgpb-contact-receiver-email', 'type' => 'text', 'defaultValue' => get_option('admin_email'));
|
892 |
+
$options[] = array('name' => 'sgpb-contact-error-message', 'type' => 'text', 'defaultValue' => __('Unable to send.', SG_POPUP_TEXT_DOMAIN));
|
893 |
+
$options[] = array('name' => 'sgpb-contact-required-message', 'type' => 'text', 'defaultValue' => __('This field is required.', SG_POPUP_TEXT_DOMAIN));
|
894 |
+
$options[] = array('name' => 'sgpb-contact-invalid-email-message', 'type' => 'text', 'defaultValue' => __('Please enter a valid email.', SG_POPUP_TEXT_DOMAIN));
|
895 |
+
$options[] = array('name' => 'sgpb-contact-inputs-width', 'type' => 'text', 'defaultValue' => '300px');
|
896 |
+
$options[] = array('name' => 'sgpb-contact-inputs-height', 'type' => 'text', 'defaultValue' => '40px');
|
897 |
+
$options[] = array('name' => 'sgpb-contact-inputs-border-width', 'type' => 'text', 'defaultValue' => '2px');
|
898 |
+
$options[] = array('name' => 'sgpb-contact-inputs-bg-color', 'type' => 'text', 'defaultValue' => '#ffffff');
|
899 |
+
$options[] = array('name' => 'sgpb-contact-inputs-border-color', 'type' => 'text', 'defaultValue' => '#CCCCCC');
|
900 |
+
$options[] = array('name' => 'sgpb-contact-inputs-text-color', 'type' => 'text', 'defaultValue' => '#000000');
|
901 |
+
$options[] = array('name' => 'sgpb-contact-inputs-placeholder-color', 'type' => 'text', 'defaultValue' => '#CCCCCC');
|
902 |
+
$options[] = array('name' => 'sgpb-contact-message-width', 'type' => 'text', 'defaultValue' => '300px');
|
903 |
+
$options[] = array('name' => 'sgpb-contact-message-height', 'type' => 'text', 'defaultValue' => '50px');
|
904 |
+
$options[] = array('name' => 'sgpb-contact-message-resize', 'type' => 'text', 'defaultValue' => 'both');
|
905 |
+
$options[] = array('name' => 'sgpb-contact-message-border-width', 'type' => 'text', 'defaultValue' => '2px');
|
906 |
+
$options[] = array('name' => 'sgpb-contact-message-border-color', 'type' => 'text', 'defaultValue' => '#CCCCCC');
|
907 |
+
$options[] = array('name' => 'sgpb-contact-submit-width', 'type' => 'text', 'defaultValue' => '300px');
|
908 |
+
$options[] = array('name' => 'sgpb-contact-submit-height', 'type' => 'text', 'defaultValue' => '40px');
|
909 |
+
$options[] = array('name' => 'sgpb-contact-submit-title', 'type' => 'text', 'defaultValue' => __('Submit', SG_POPUP_TEXT_DOMAIN));
|
910 |
+
$options[] = array('name' => 'sgpb-contact-submit-title-progress', 'type' => 'text', 'defaultValue' => __('Please wait...', SG_POPUP_TEXT_DOMAIN));
|
911 |
+
$options[] = array('name' => 'sgpb-contact-submit-bg-color', 'type' => 'text', 'defaultValue' => '#4CAF50');
|
912 |
+
$options[] = array('name' => 'sgpb-contact-submit-text-color', 'type' => 'text', 'defaultValue' => '#FFFFFF');
|
913 |
+
$options[] = array('name' => 'sgpb-contact-message-placeholder-color', 'type' => 'text', 'defaultValue' => '#CCCCCC');
|
914 |
+
$options[] = array('name' => 'sgpb-contact-message-text-color', 'type' => 'text', 'defaultValue' => '#000000');
|
915 |
+
$options[] = array('name' => 'sgpb-contact-message-bg-color', 'type' => 'text', 'defaultValue' => '#ffffff');
|
916 |
+
$options[] = array('name' => 'sgpb-contact-success-behavior', 'type' => 'text', 'defaultValue' => 'showMessage');
|
917 |
+
$options[] = array('name' => 'sgpb-contact-hide-for-contacted-users', 'type' => 'checkbox', 'defaultValue' => '');
|
918 |
+
$options[] = array('name' => 'sgpb-contact-success-message', 'type' => 'text', 'defaultValue' => __('Your message has been successfully sent', SG_POPUP_TEXT_DOMAIN));
|
919 |
+
$options[] = array('name' => 'sgpb-contact-success-redirect-URL', 'type' => 'text', 'defaultValue' => '');
|
920 |
+
$options[] = array('name' => 'sgpb-contact-success-redirect-new-tab', 'type' => 'checkbox', 'defaultValue' => '');
|
921 |
+
$options[] = array('name' => 'sgpb-contact-gdpr-status', 'type' => 'checkbox', 'defaultValue' => '');
|
922 |
+
$options[] = array('name' => 'sgpb-contact-gdpr-label', 'type' => 'text', 'defaultValue' => __('Accept Terms', SG_POPUP_TEXT_DOMAIN));
|
923 |
+
$options[] = array('name' => 'sgpb-contact-gdpr-text', 'type' => 'text', 'defaultValue' => __(get_bloginfo().' will use the information you provide on this form to be in touch with you and to provide updates and marketing.', SG_POPUP_TEXT_DOMAIN));
|
924 |
+
$options[] = array('name' => 'sgpb-social-share-url-type', 'type' => 'text', 'defaultValue' => 'shareUrl');
|
925 |
+
$options[] = array('name' => 'sgpb-social-share-url', 'type' => 'text', 'defaultValue' => '');
|
926 |
+
$options[] = array('name' => 'sgpb-social-share-theme', 'type' => 'text', 'defaultValue' => 'classic');
|
927 |
+
$options[] = array('name' => 'sgpb-social-theme-size', 'type' => 'text', 'defaultValue' => 14);
|
928 |
+
$options[] = array('name' => 'sgpb-social-show-labels', 'type' => 'checkbox', 'defaultValue' => 'on');
|
929 |
+
$options[] = array('name' => 'sgpb-social-share-count', 'type' => 'text', 'defaultValue' => 'true');
|
930 |
+
$options[] = array('name' => 'sgpb-social-round-buttons', 'type' => 'checkbox', 'defaultValue' => '');
|
931 |
+
$options[] = array('name' => 'sgpb-social-status-email', 'type' => 'checkbox', 'defaultValue' => 'on');
|
932 |
+
$options[] = array('name' => 'sgpb-social-label-email', 'type' => 'text', 'defaultValue' => __('E-mail', SG_POPUP_TEXT_DOMAIN));
|
933 |
+
$options[] = array('name' => 'sgpb-social-status-facebook', 'type' => 'checkbox', 'defaultValue' => 'on');
|
934 |
+
$options[] = array('name' => 'sgpb-social-label-facebook', 'type' => 'text', 'defaultValue' => __('Share', SG_POPUP_TEXT_DOMAIN));
|
935 |
+
$options[] = array('name' => 'sgpb-social-status-linkedin', 'type' => 'checkbox', 'defaultValue' => 'on');
|
936 |
+
$options[] = array('name' => 'sgpb-social-label-linkedin', 'type' => 'text', 'defaultValue' => __('Share', SG_POPUP_TEXT_DOMAIN));
|
937 |
+
$options[] = array('name' => 'sgpb-social-status-googleplus', 'type' => 'checkbox', 'defaultValue' => 'on');
|
938 |
+
$options[] = array('name' => 'sgpb-social-label-googleplus', 'type' => 'text', 'defaultValue' => __('+1', SG_POPUP_TEXT_DOMAIN));
|
939 |
+
$options[] = array('name' => 'sgpb-social-status-twitter', 'type' => 'checkbox', 'defaultValue' => 'on');
|
940 |
+
$options[] = array('name' => 'sgpb-social-label-twitter', 'type' => 'text', 'defaultValue' => __('Tweet', SG_POPUP_TEXT_DOMAIN));
|
941 |
+
$options[] = array('name' => 'sgpb-social-status-pinterest', 'type' => 'checkbox', 'defaultValue' => 'on');
|
942 |
+
$options[] = array('name' => 'sgpb-social-label-pinterest', 'type' => 'text', 'defaultValue' => __('Pin it', SG_POPUP_TEXT_DOMAIN));
|
943 |
+
$options[] = array('name' => 'sgpb-social-to-bottom', 'type' => 'checkbox', 'defaultValue' => '');
|
944 |
+
// proEndSilver
|
945 |
$options[] = array('name' => 'sgpb-fblike-like-url', 'type' => 'text', 'defaultValue' => '');
|
946 |
$options[] = array('name' => 'sgpb-fblike-layout', 'type' => 'text', 'defaultValue' => 'standard');
|
947 |
$options[] = array('name' => 'sgpb-fblike-dont-show-share-button', 'type' => 'checkbox', 'defaultValue' => '');
|
953 |
$options[] = array('name' => 'sgpb-show-popup-same-user-count', 'type' => 'number', 'defaultValue' => 1);
|
954 |
$options[] = array('name' => 'sgpb-show-popup-same-user-expiry', 'type' => 'number', 'defaultValue' => 1);
|
955 |
$options[] = array('name' => 'sgpb-show-popup-same-user-page-level', 'type' => 'checkbox', 'defaultValue' => '');
|
|
|
|
|
956 |
|
957 |
$SGPB_OPTIONS = apply_filters('sgpbPopupDefaultOptions', $options);
|
958 |
}
|
com/helpers/AdminHelper.php
CHANGED
@@ -6,6 +6,38 @@ use \SgpbDataConfig;
|
|
6 |
|
7 |
class AdminHelper
|
8 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
public static function buildCreatePopupUrl($popupType)
|
10 |
{
|
11 |
$isAvailable = $popupType->isAvailable();
|
@@ -959,8 +991,23 @@ class AdminHelper
|
|
959 |
{
|
960 |
global $wpdb;
|
961 |
|
962 |
-
|
963 |
$wpdb->query($sql);
|
964 |
}
|
965 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
966 |
}
|
6 |
|
7 |
class AdminHelper
|
8 |
{
|
9 |
+
/**
|
10 |
+
* Get extension options data which are included inside the free version
|
11 |
+
*
|
12 |
+
* @since 3.0.8
|
13 |
+
*
|
14 |
+
* @return assoc array $extensionOptions
|
15 |
+
*/
|
16 |
+
public static function getExtensionAvaliabilityOptions()
|
17 |
+
{
|
18 |
+
$extensionOptions = array();
|
19 |
+
// advanced closing option
|
20 |
+
$extensionOptions[SGPB_POPUP_ADVANCED_CLOSING_PLUGIN_KEY] = array(
|
21 |
+
'sgpb-auto-close',
|
22 |
+
'sgpb-enable-popup-overlay',
|
23 |
+
'sgpb-disable-popup-closing'
|
24 |
+
);
|
25 |
+
// schedule extension
|
26 |
+
$extensionOptions[SGPB_POPUP_SCHEDULING_EXTENSION_KEY] = array(
|
27 |
+
'otherConditionsMetaBoxView'
|
28 |
+
);
|
29 |
+
// geo targeting extension
|
30 |
+
$extensionOptions[SGPB_POPUP_GEO_TARGETING_EXTENSION_KEY] = array(
|
31 |
+
'popupConditionsSection'
|
32 |
+
);
|
33 |
+
// advanced targeting extension
|
34 |
+
$extensionOptions[SGPB_POPUP_ADVANCED_TARGETING_EXTENSION_KEY] = array(
|
35 |
+
'popupConditionsSection'
|
36 |
+
);
|
37 |
+
|
38 |
+
return $extensionOptions;
|
39 |
+
}
|
40 |
+
|
41 |
public static function buildCreatePopupUrl($popupType)
|
42 |
{
|
43 |
$isAvailable = $popupType->isAvailable();
|
991 |
{
|
992 |
global $wpdb;
|
993 |
|
994 |
+
$sql = 'ALTER TABLE '.$wpdb->prefix.SGPB_SUBSCRIBERS_TABLE_NAME.' ADD COLUMN unsubscribed INT NOT NULL DEFAULT 0 ';
|
995 |
$wpdb->query($sql);
|
996 |
}
|
997 |
|
998 |
+
public static function isPluginActive($key)
|
999 |
+
{
|
1000 |
+
$allExtensions = SgpbDataConfig::allExtensionsKeys();
|
1001 |
+
$isActive = false;
|
1002 |
+
foreach ($allExtensions as $extension) {
|
1003 |
+
if (isset($extension['key']) && $extension['key'] == $key) {
|
1004 |
+
if (is_plugin_active($extension['pluginKey'])) {
|
1005 |
+
$isActive = true;
|
1006 |
+
}
|
1007 |
+
}
|
1008 |
+
}
|
1009 |
+
$isActive = true;
|
1010 |
+
|
1011 |
+
return $isActive;
|
1012 |
+
}
|
1013 |
}
|
com/helpers/ConfigDataHelper.php
CHANGED
@@ -172,18 +172,6 @@ class ConfigDataHelper
|
|
172 |
return $postTypes;
|
173 |
}
|
174 |
|
175 |
-
public static function getDevices()
|
176 |
-
{
|
177 |
-
$devices = array();
|
178 |
-
|
179 |
-
$devices['is_desktop'] = __('Desktop', SG_POPUP_TEXT_DOMAIN);
|
180 |
-
$devices['is_tablet'] = __('Tablet', SG_POPUP_TEXT_DOMAIN);
|
181 |
-
$devices['is_mobile'] = __('Mobile', SG_POPUP_TEXT_DOMAIN);
|
182 |
-
$devices['is_bot'] = __('Bots', SG_POPUP_TEXT_DOMAIN);
|
183 |
-
|
184 |
-
return $devices;
|
185 |
-
}
|
186 |
-
|
187 |
public static function getPageTemplates()
|
188 |
{
|
189 |
$pageTemplates = array(
|
@@ -395,8 +383,11 @@ class ConfigDataHelper
|
|
395 |
SG_COUNTDOWN_COUNTER_SECONDS_HIDE => 'DD:HH:MM'
|
396 |
);
|
397 |
|
398 |
-
//
|
|
|
|
|
399 |
|
|
|
400 |
$data['countdownLanguage'] = array(
|
401 |
'English' => 'English',
|
402 |
'German' => 'Deutsche',
|
@@ -411,6 +402,7 @@ class ConfigDataHelper
|
|
411 |
'Czech' => 'Čeština',
|
412 |
'Chinese' => '中文'
|
413 |
);
|
|
|
414 |
|
415 |
$data['weekDaysArray'] = array(
|
416 |
'Mon' => __('Monday', SG_POPUP_TEXT_DOMAIN),
|
@@ -750,6 +742,340 @@ class ConfigDataHelper
|
|
750 |
return $rulesArray;
|
751 |
}
|
752 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
753 |
public static function countriesIsoData()
|
754 |
{
|
755 |
$countries = array (
|
@@ -1002,20 +1328,4 @@ class ConfigDataHelper
|
|
1002 |
|
1003 |
return $countries;
|
1004 |
}
|
1005 |
-
|
1006 |
-
// proStartSilverproEndSilver
|
1007 |
-
|
1008 |
-
// proStartGoldproEndGold
|
1009 |
-
|
1010 |
-
public static function getJsLocalizedData()
|
1011 |
-
{
|
1012 |
-
$translatedData = array(
|
1013 |
-
'imageSupportAlertMessage' => __('Only image files supported', SG_POPUP_TEXT_DOMAIN),
|
1014 |
-
'areYouSure' => __('Are you sure?', SG_POPUP_TEXT_DOMAIN),
|
1015 |
-
'addButtonSpinner' => __('Add', SG_POPUP_TEXT_DOMAIN),
|
1016 |
-
'audioSupportAlertMessage' => __('Only audio files supported (e.g.: mp3, wav, m4a, ogg)', SG_POPUP_TEXT_DOMAIN)
|
1017 |
-
);
|
1018 |
-
|
1019 |
-
return $translatedData;
|
1020 |
-
}
|
1021 |
}
|
172 |
return $postTypes;
|
173 |
}
|
174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
public static function getPageTemplates()
|
176 |
{
|
177 |
$pageTemplates = array(
|
383 |
SG_COUNTDOWN_COUNTER_SECONDS_HIDE => 'DD:HH:MM'
|
384 |
);
|
385 |
|
386 |
+
// proStartGold
|
387 |
+
$data['countdownTimezone'] = self::getPopupTimeZone();
|
388 |
+
// proEndGold
|
389 |
|
390 |
+
// proStartGold
|
391 |
$data['countdownLanguage'] = array(
|
392 |
'English' => 'English',
|
393 |
'German' => 'Deutsche',
|
402 |
'Czech' => 'Čeština',
|
403 |
'Chinese' => '中文'
|
404 |
);
|
405 |
+
// proEndGold
|
406 |
|
407 |
$data['weekDaysArray'] = array(
|
408 |
'Mon' => __('Monday', SG_POPUP_TEXT_DOMAIN),
|
742 |
return $rulesArray;
|
743 |
}
|
744 |
|
745 |
+
public static function getClickActionOptions()
|
746 |
+
{
|
747 |
+
$settings = array(
|
748 |
+
'defaultClickClassName' => __('Default', SG_POPUP_TEXT_DOMAIN),
|
749 |
+
'clickActionCustomClass' => __('Custom class', SG_POPUP_TEXT_DOMAIN)
|
750 |
+
);
|
751 |
+
|
752 |
+
return $settings;
|
753 |
+
}
|
754 |
+
|
755 |
+
public static function getHoverActionOptions()
|
756 |
+
{
|
757 |
+
$settings = array(
|
758 |
+
'defaultHoverClassName' => __('Default', SG_POPUP_TEXT_DOMAIN),
|
759 |
+
'hoverActionCustomClass' => __('Custom class', SG_POPUP_TEXT_DOMAIN)
|
760 |
+
);
|
761 |
+
|
762 |
+
return $settings;
|
763 |
+
}
|
764 |
+
|
765 |
+
// proStartSilver
|
766 |
+
public static function getPopupDefaultTimeZone()
|
767 |
+
{
|
768 |
+
$timeZone = get_option('timezone_string');
|
769 |
+
if (!$timeZone) {
|
770 |
+
$timeZone = SG_POPUP_DEFAULT_TIME_ZONE;
|
771 |
+
}
|
772 |
+
|
773 |
+
return $timeZone;
|
774 |
+
}
|
775 |
+
// proEndSilver
|
776 |
+
|
777 |
+
// proStartGold
|
778 |
+
private static function getPopupTimeZone()
|
779 |
+
{
|
780 |
+
return array(
|
781 |
+
'Pacific/Midway' => '(GMT-11:00) Midway',
|
782 |
+
'Pacific/Niue' => '(GMT-11:00) Niue',
|
783 |
+
'Pacific/Pago_Pago' => '(GMT-11:00) Pago Pago',
|
784 |
+
'Pacific/Honolulu' => '(GMT-10:00) Hawaii Time',
|
785 |
+
'Pacific/Rarotonga' => '(GMT-10:00) Rarotonga',
|
786 |
+
'Pacific/Tahiti' => '(GMT-10:00) Tahiti',
|
787 |
+
'Pacific/Marquesas' => '(GMT-09:30) Marquesas',
|
788 |
+
'America/Anchorage' => '(GMT-09:00) Alaska Time',
|
789 |
+
'Pacific/Gambier' => '(GMT-09:00) Gambier',
|
790 |
+
'America/Los_Angeles' => '(GMT-08:00) Pacific Time',
|
791 |
+
'America/Tijuana' => '(GMT-08:00) Pacific Time - Tijuana',
|
792 |
+
'America/Vancouver' => '(GMT-08:00) Pacific Time - Vancouver',
|
793 |
+
'America/Whitehorse' => '(GMT-08:00) Pacific Time - Whitehorse',
|
794 |
+
'Pacific/Pitcairn' => '(GMT-08:00) Pitcairn',
|
795 |
+
'America/Dawson_Creek' => '(GMT-07:00) Mountain Time - Dawson Creek',
|
796 |
+
'America/Denver' => '(GMT-07:00) Mountain Time',
|
797 |
+
'America/Edmonton' => '(GMT-07:00) Mountain Time - Edmonton',
|
798 |
+
'America/Hermosillo' => '(GMT-07:00) Mountain Time - Hermosillo',
|
799 |
+
'America/Mazatlan' => '(GMT-07:00) Mountain Time - Chihuahua, Mazatlan',
|
800 |
+
'America/Phoenix' => '(GMT-07:00) Mountain Time - Arizona',
|
801 |
+
'America/Yellowknife' => '(GMT-07:00) Mountain Time - Yellowknife',
|
802 |
+
'America/Belize' => '(GMT-06:00) Belize',
|
803 |
+
'America/Chicago' => '(GMT-06:00) Central Time',
|
804 |
+
'America/Costa_Rica' => '(GMT-06:00) Costa Rica',
|
805 |
+
'America/El_Salvador' => '(GMT-06:00) El Salvador',
|
806 |
+
'America/Guatemala' => '(GMT-06:00) Guatemala',
|
807 |
+
'America/Managua' => '(GMT-06:00) Managua',
|
808 |
+
'America/Mexico_City' => '(GMT-06:00) Central Time - Mexico City',
|
809 |
+
'America/Regina' => '(GMT-06:00) Central Time - Regina',
|
810 |
+
'America/Tegucigalpa' => '(GMT-06:00) Central Time - Tegucigalpa',
|
811 |
+
'America/Winnipeg' => '(GMT-06:00) Central Time - Winnipeg',
|
812 |
+
'Pacific/Easter' => '(GMT-06:00) Easter Island',
|
813 |
+
'Pacific/Galapagos' => '(GMT-06:00) Galapagos',
|
814 |
+
'America/Bogota' => '(GMT-05:00) Bogota',
|
815 |
+
'America/Cayman' => '(GMT-05:00) Cayman',
|
816 |
+
'America/Guayaquil' => '(GMT-05:00) Guayaquil',
|
817 |
+
'America/Havana' => '(GMT-05:00) Havana',
|
818 |
+
'America/Iqaluit' => '(GMT-05:00) Eastern Time - Iqaluit',
|
819 |
+
'America/Jamaica' => '(GMT-05:00) Jamaica',
|
820 |
+
'America/Lima' => '(GMT-05:00) Lima',
|
821 |
+
'America/Montreal' => '(GMT-05:00) Eastern Time - Montreal',
|
822 |
+
'America/Nassau' => '(GMT-05:00) Nassau',
|
823 |
+
'America/New_York' => '(GMT-05:00) Eastern Time',
|
824 |
+
'America/Panama' => '(GMT-05:00) Panama',
|
825 |
+
'America/Port-au-Prince' => '(GMT-05:00) Port-au-Prince',
|
826 |
+
'America/Rio_Branco' => '(GMT-05:00) Rio Branco',
|
827 |
+
'America/Toronto' => '(GMT-05:00) Eastern Time - Toronto',
|
828 |
+
'America/Caracas' => '(GMT-04:30) Caracas',
|
829 |
+
'America/Antigua' => '(GMT-04:00) Antigua',
|
830 |
+
'America/Asuncion' => '(GMT-04:00) Asuncion',
|
831 |
+
'America/Barbados' => '(GMT-04:00) Barbados',
|
832 |
+
'America/Boa_Vista' => '(GMT-04:00) Boa Vista',
|
833 |
+
'America/Campo_Grande' => '(GMT-04:00) Campo Grande',
|
834 |
+
'America/Cuiaba' => '(GMT-04:00) Cuiaba',
|
835 |
+
'America/Curacao' => '(GMT-04:00) Curacao',
|
836 |
+
'America/Grand_Turk' => '(GMT-04:00) Grand Turk',
|
837 |
+
'America/Guyana' => '(GMT-04:00) Guyana',
|
838 |
+
'America/Halifax' => '(GMT-04:00) Atlantic Time - Halifax',
|
839 |
+
'America/La_Paz' => '(GMT-04:00) La Paz',
|
840 |
+
'America/Manaus' => '(GMT-04:00) Manaus',
|
841 |
+
'America/Martinique' => '(GMT-04:00) Martinique',
|
842 |
+
'America/Port_of_Spain' => '(GMT-04:00) Port of Spain',
|
843 |
+
'America/Porto_Velho' => '(GMT-04:00) Porto Velho',
|
844 |
+
'America/Puerto_Rico' => '(GMT-04:00) Puerto Rico',
|
845 |
+
'America/Santiago' => '(GMT-04:00) Santiago',
|
846 |
+
'America/Santo_Domingo' => '(GMT-04:00) Santo Domingo',
|
847 |
+
'America/Thule' => '(GMT-04:00) Thule',
|
848 |
+
'Antarctica/Palmer' => '(GMT-04:00) Palmer',
|
849 |
+
'Atlantic/Bermuda' => '(GMT-04:00) Bermuda',
|
850 |
+
'America/St_Johns' => '(GMT-03:30) Newfoundland Time - St. Johns',
|
851 |
+
'America/Araguaina' => '(GMT-03:00) Araguaina',
|
852 |
+
'America/Argentina/Buenos_Aires' => '(GMT-03:00) Buenos Aires',
|
853 |
+
'America/Bahia' => '(GMT-03:00) Salvador',
|
854 |
+
'America/Belem' => '(GMT-03:00) Belem',
|
855 |
+
'America/Cayenne' => '(GMT-03:00) Cayenne',
|
856 |
+
'America/Fortaleza' => '(GMT-03:00) Fortaleza',
|
857 |
+
'America/Godthab' => '(GMT-03:00) Godthab',
|
858 |
+
'America/Maceio' => '(GMT-03:00) Maceio',
|
859 |
+
'America/Miquelon' => '(GMT-03:00) Miquelon',
|
860 |
+
'America/Montevideo' => '(GMT-03:00) Montevideo',
|
861 |
+
'America/Paramaribo' => '(GMT-03:00) Paramaribo',
|
862 |
+
'America/Recife' => '(GMT-03:00) Recife',
|
863 |
+
'America/Sao_Paulo' => '(GMT-03:00) Sao Paulo',
|
864 |
+
'Antarctica/Rothera' => '(GMT-03:00) Rothera',
|
865 |
+
'Atlantic/Stanley' => '(GMT-03:00) Stanley',
|
866 |
+
'America/Noronha' => '(GMT-02:00) Noronha',
|
867 |
+
'Atlantic/South_Georgia' => '(GMT-02:00) South Georgia',
|
868 |
+
'America/Scoresbysund' => '(GMT-01:00) Scoresbysund',
|
869 |
+
'Atlantic/Azores' => '(GMT-01:00) Azores',
|
870 |
+
'Atlantic/Cape_Verde' => '(GMT-01:00) Cape Verde',
|
871 |
+
'Africa/Abidjan' => '(GMT+00:00) Abidjan',
|
872 |
+
'Africa/Accra' => '(GMT+00:00) Accra',
|
873 |
+
'Africa/Bissau' => '(GMT+00:00) Bissau',
|
874 |
+
'Africa/Casablanca' => '(GMT+00:00) Casablanca',
|
875 |
+
'Africa/El_Aaiun' => '(GMT+00:00) El Aaiun',
|
876 |
+
'Africa/Monrovia' => '(GMT+00:00) Monrovia',
|
877 |
+
'America/Danmarkshavn' => '(GMT+00:00) Danmarkshavn',
|
878 |
+
'Atlantic/Canary' => '(GMT+00:00) Canary Islands',
|
879 |
+
'Atlantic/Faroe' => '(GMT+00:00) Faeroe',
|
880 |
+
'Atlantic/Reykjavik' => '(GMT+00:00) Reykjavik',
|
881 |
+
'Etc/GMT' => '(GMT+00:00) GMT (no daylight saving)',
|
882 |
+
'Europe/Dublin' => '(GMT+00:00) Dublin',
|
883 |
+
'Europe/Lisbon' => '(GMT+00:00) Lisbon',
|
884 |
+
'Europe/London' => '(GMT+00:00) London',
|
885 |
+
'Africa/Algiers' => '(GMT+01:00) Algiers',
|
886 |
+
'Africa/Ceuta' => '(GMT+01:00) Ceuta',
|
887 |
+
'Africa/Lagos' => '(GMT+01:00) Lagos',
|
888 |
+
'Africa/Ndjamena' => '(GMT+01:00) Ndjamena',
|
889 |
+
'Africa/Tunis' => '(GMT+01:00) Tunis',
|
890 |
+
'Africa/Windhoek' => '(GMT+01:00) Windhoek',
|
891 |
+
'Europe/Amsterdam' => '(GMT+01:00) Amsterdam',
|
892 |
+
'Europe/Andorra' => '(GMT+01:00) Andorra',
|
893 |
+
'Europe/Belgrade' => '(GMT+01:00) Central European Time - Belgrade',
|
894 |
+
'Europe/Berlin' => '(GMT+01:00) Berlin',
|
895 |
+
'Europe/Brussels' => '(GMT+01:00) Brussels',
|
896 |
+
'Europe/Budapest' => '(GMT+01:00) Budapest',
|
897 |
+
'Europe/Copenhagen' => '(GMT+01:00) Copenhagen',
|
898 |
+
'Europe/Gibraltar' => '(GMT+01:00) Gibraltar',
|
899 |
+
'Europe/Luxembourg' => '(GMT+01:00) Luxembourg',
|
900 |
+
'Europe/Madrid' => '(GMT+01:00) Madrid',
|
901 |
+
'Europe/Malta' => '(GMT+01:00) Malta',
|
902 |
+
'Europe/Monaco' => '(GMT+01:00) Monaco',
|
903 |
+
'Europe/Oslo' => '(GMT+01:00) Oslo',
|
904 |
+
'Europe/Paris' => '(GMT+01:00) Paris',
|
905 |
+
'Europe/Prague' => '(GMT+01:00) Central European Time - Prague',
|
906 |
+
'Europe/Rome' => '(GMT+01:00) Rome',
|
907 |
+
'Europe/Stockholm' => '(GMT+01:00) Stockholm',
|
908 |
+
'Europe/Tirane' => '(GMT+01:00) Tirane',
|
909 |
+
'Europe/Vienna' => '(GMT+01:00) Vienna',
|
910 |
+
'Europe/Warsaw' => '(GMT+01:00) Warsaw',
|
911 |
+
'Europe/Zurich' => '(GMT+01:00) Zurich',
|
912 |
+
'Africa/Cairo' => '(GMT+02:00) Cairo',
|
913 |
+
'Africa/Johannesburg' => '(GMT+02:00) Johannesburg',
|
914 |
+
'Africa/Maputo' => '(GMT+02:00) Maputo',
|
915 |
+
'Africa/Tripoli' => '(GMT+02:00) Tripoli',
|
916 |
+
'Asia/Amman' => '(GMT+02:00) Amman',
|
917 |
+
'Asia/Beirut' => '(GMT+02:00) Beirut',
|
918 |
+
'Asia/Damascus' => '(GMT+02:00) Damascus',
|
919 |
+
'Asia/Gaza' => '(GMT+02:00) Gaza',
|
920 |
+
'Asia/Jerusalem' => '(GMT+02:00) Jerusalem',
|
921 |
+
'Asia/Nicosia' => '(GMT+02:00) Nicosia',
|
922 |
+
'Europe/Athens' => '(GMT+02:00) Athens',
|
923 |
+
'Europe/Bucharest' => '(GMT+02:00) Bucharest',
|
924 |
+
'Europe/Chisinau' => '(GMT+02:00) Chisinau',
|
925 |
+
'Europe/Helsinki' => '(GMT+02:00) Helsinki',
|
926 |
+
'Europe/Istanbul' => '(GMT+02:00) Istanbul',
|
927 |
+
'Europe/Kaliningrad' => '(GMT+02:00) Moscow-01 - Kaliningrad',
|
928 |
+
'Europe/Kiev' => '(GMT+02:00) Kiev',
|
929 |
+
'Europe/Riga' => '(GMT+02:00) Riga',
|
930 |
+
'Europe/Sofia' => '(GMT+02:00) Sofia',
|
931 |
+
'Europe/Tallinn' => '(GMT+02:00) Tallinn',
|
932 |
+
'Europe/Vilnius' => '(GMT+02:00) Vilnius',
|
933 |
+
'Africa/Addis_Ababa' => '(GMT+03:00) Addis Ababa',
|
934 |
+
'Africa/Asmara' => '(GMT+03:00) Asmera',
|
935 |
+
'Africa/Dar_es_Salaam' => '(GMT+03:00) Dar es Salaam',
|
936 |
+
'Africa/Djibouti' => '(GMT+03:00) Djibouti',
|
937 |
+
'Africa/Kampala' => '(GMT+03:00) Kampala',
|
938 |
+
'Africa/Khartoum' => '(GMT+03:00) Khartoum',
|
939 |
+
'Africa/Mogadishu' => '(GMT+03:00) Mogadishu',
|
940 |
+
'Africa/Nairobi' => '(GMT+03:00) Nairobi',
|
941 |
+
'Antarctica/Syowa' => '(GMT+03:00) Syowa',
|
942 |
+
'Asia/Aden' => '(GMT+03:00) Aden',
|
943 |
+
'Asia/Baghdad' => '(GMT+03:00) Baghdad',
|
944 |
+
'Asia/Bahrain' => '(GMT+03:00) Bahrain',
|
945 |
+
'Asia/Kuwait' => '(GMT+03:00) Kuwait',
|
946 |
+
'Asia/Qatar' => '(GMT+03:00) Qatar',
|
947 |
+
'Asia/Riyadh' => '(GMT+03:00) Riyadh',
|
948 |
+
'Europe/Minsk' => '(GMT+03:00) Minsk',
|
949 |
+
'Europe/Moscow' => '(GMT+03:00) Moscow+00',
|
950 |
+
'Indian/Antananarivo' => '(GMT+03:00) Antananarivo',
|
951 |
+
'Indian/Comoro' => '(GMT+03:00) Comoro',
|
952 |
+
'Indian/Mayotte' => '(GMT+03:00) Mayotte',
|
953 |
+
'Asia/Tehran' => '(GMT+03:30) Tehran',
|
954 |
+
'Asia/Baku' => '(GMT+04:00) Baku',
|
955 |
+
'Asia/Dubai' => '(GMT+04:00) Dubai',
|
956 |
+
'Asia/Muscat' => '(GMT+04:00) Muscat',
|
957 |
+
'Asia/Tbilisi' => '(GMT+04:00) Tbilisi',
|
958 |
+
'Asia/Yerevan' => '(GMT+04:00) Yerevan',
|
959 |
+
'Europe/Samara' => '(GMT+04:00) Moscow+00 - Samara',
|
960 |
+
'Indian/Mahe' => '(GMT+04:00) Mahe',
|
961 |
+
'Indian/Mauritius' => '(GMT+04:00) Mauritius',
|
962 |
+
'Indian/Reunion' => '(GMT+04:00) Reunion',
|
963 |
+
'Asia/Kabul' => '(GMT+04:30) Kabul',
|
964 |
+
'Antarctica/Mawson' => '(GMT+05:00) Mawson',
|
965 |
+
'Asia/Aqtau' => '(GMT+05:00) Aqtau',
|
966 |
+
'Asia/Aqtobe' => '(GMT+05:00) Aqtobe',
|
967 |
+
'Asia/Ashgabat' => '(GMT+05:00) Ashgabat',
|
968 |
+
'Asia/Dushanbe' => '(GMT+05:00) Dushanbe',
|
969 |
+
'Asia/Karachi' => '(GMT+05:00) Karachi',
|
970 |
+
'Asia/Tashkent' => '(GMT+05:00) Tashkent',
|
971 |
+
'Asia/Yekaterinburg' => '(GMT+05:00) Moscow+02 - Yekaterinburg',
|
972 |
+
'Indian/Kerguelen' => '(GMT+05:00) Kerguelen',
|
973 |
+
'Indian/Maldives' => '(GMT+05:00) Maldives',
|
974 |
+
'Asia/Calcutta' => '(GMT+05:30) India Standard Time',
|
975 |
+
'Asia/Colombo' => '(GMT+05:30) Colombo',
|
976 |
+
'Asia/Katmandu' => '(GMT+05:45) Katmandu',
|
977 |
+
'Antarctica/Vostok' => '(GMT+06:00) Vostok',
|
978 |
+
'Asia/Almaty' => '(GMT+06:00) Almaty',
|
979 |
+
'Asia/Bishkek' => '(GMT+06:00) Bishkek',
|
980 |
+
'Asia/Dhaka' => '(GMT+06:00) Dhaka',
|
981 |
+
'Asia/Omsk' => '(GMT+06:00) Moscow+03 - Omsk, Novosibirsk',
|
982 |
+
'Asia/Thimphu' => '(GMT+06:00) Thimphu',
|
983 |
+
'Indian/Chagos' => '(GMT+06:00) Chagos',
|
984 |
+
'Asia/Rangoon' => '(GMT+06:30) Rangoon',
|
985 |
+
'Indian/Cocos' => '(GMT+06:30) Cocos',
|
986 |
+
'Antarctica/Davis' => '(GMT+07:00) Davis',
|
987 |
+
'Asia/Bangkok' => '(GMT+07:00) Bangkok',
|
988 |
+
'Asia/Hovd' => '(GMT+07:00) Hovd',
|
989 |
+
'Asia/Jakarta' => '(GMT+07:00) Jakarta',
|
990 |
+
'Asia/Krasnoyarsk' => '(GMT+07:00) Moscow+04 - Krasnoyarsk',
|
991 |
+
'Asia/Saigon' => '(GMT+07:00) Hanoi',
|
992 |
+
'Indian/Christmas' => '(GMT+07:00) Christmas',
|
993 |
+
'Antarctica/Casey' => '(GMT+08:00) Casey',
|
994 |
+
'Asia/Brunei' => '(GMT+08:00) Brunei',
|
995 |
+
'Asia/Choibalsan' => '(GMT+08:00) Choibalsan',
|
996 |
+
'Asia/Hong_Kong' => '(GMT+08:00) Hong Kong',
|
997 |
+
'Asia/Irkutsk' => '(GMT+08:00) Moscow+05 - Irkutsk',
|
998 |
+
'Asia/Kuala_Lumpur' => '(GMT+08:00) Kuala Lumpur',
|
999 |
+
'Asia/Macau' => '(GMT+08:00) Macau',
|
1000 |
+
'Asia/Makassar' => '(GMT+08:00) Makassar',
|
1001 |
+
'Asia/Manila' => '(GMT+08:00) Manila',
|
1002 |
+
'Asia/Shanghai' => '(GMT+08:00) China Time - Beijing',
|
1003 |
+
'Asia/Singapore' => '(GMT+08:00) Singapore',
|
1004 |
+
'Asia/Taipei' => '(GMT+08:00) Taipei',
|
1005 |
+
'Asia/Ulaanbaatar' => '(GMT+08:00) Ulaanbaatar',
|
1006 |
+
'Australia/Perth' => '(GMT+08:00) Western Time - Perth',
|
1007 |
+
'Asia/Dili' => '(GMT+09:00) Dili',
|
1008 |
+
'Asia/Jayapura' => '(GMT+09:00) Jayapura',
|
1009 |
+
'Asia/Pyongyang' => '(GMT+09:00) Pyongyang',
|
1010 |
+
'Asia/Seoul' => '(GMT+09:00) Seoul',
|
1011 |
+
'Asia/Tokyo' => '(GMT+09:00) Tokyo',
|
1012 |
+
'Asia/Yakutsk' => '(GMT+09:00) Moscow+06 - Yakutsk',
|
1013 |
+
'Pacific/Palau' => '(GMT+09:00) Palau',
|
1014 |
+
'Australia/Adelaide' => '(GMT+09:30) Central Time - Adelaide',
|
1015 |
+
'Australia/Darwin' => '(GMT+09:30) Central Time - Darwin',
|
1016 |
+
'Antarctica/DumontDUrville' => '(GMT+10:00) Dumont D\'Urville',
|
1017 |
+
'Asia/Magadan' => '(GMT+10:00) Moscow+08 - Magadan',
|
1018 |
+
'Asia/Vladivostok' => '(GMT+10:00) Moscow+07 - Yuzhno-Sakhalinsk',
|
1019 |
+
'Australia/Brisbane' => '(GMT+10:00) Eastern Time - Brisbane',
|
1020 |
+
'Australia/Hobart' => '(GMT+10:00) Eastern Time - Hobart',
|
1021 |
+
'Australia/Sydney' => '(GMT+10:00) Eastern Time - Melbourne, Sydney',
|
1022 |
+
'Pacific/Chuuk' => '(GMT+10:00) Truk',
|
1023 |
+
'Pacific/Guam' => '(GMT+10:00) Guam',
|
1024 |
+
'Pacific/Port_Moresby' => '(GMT+10:00) Port Moresby',
|
1025 |
+
'Pacific/Saipan' => '(GMT+10:00) Saipan',
|
1026 |
+
'Pacific/Efate' => '(GMT+11:00) Efate',
|
1027 |
+
'Pacific/Guadalcanal' => '(GMT+11:00) Guadalcanal',
|
1028 |
+
'Pacific/Kosrae' => '(GMT+11:00) Kosrae',
|
1029 |
+
'Pacific/Noumea' => '(GMT+11:00) Noumea',
|
1030 |
+
'Pacific/Pohnpei' => '(GMT+11:00) Ponape',
|
1031 |
+
'Pacific/Norfolk' => '(GMT+11:30) Norfolk',
|
1032 |
+
'Asia/Kamchatka' => '(GMT+12:00) Moscow+08 - Petropavlovsk-Kamchatskiy',
|
1033 |
+
'Pacific/Auckland' => '(GMT+12:00) Auckland',
|
1034 |
+
'Pacific/Fiji' => '(GMT+12:00) Fiji',
|
1035 |
+
'Pacific/Funafuti' => '(GMT+12:00) Funafuti',
|
1036 |
+
'Pacific/Kwajalein' => '(GMT+12:00) Kwajalein',
|
1037 |
+
'Pacific/Majuro' => '(GMT+12:00) Majuro',
|
1038 |
+
'Pacific/Nauru' => '(GMT+12:00) Nauru',
|
1039 |
+
'Pacific/Tarawa' => '(GMT+12:00) Tarawa',
|
1040 |
+
'Pacific/Wake' => '(GMT+12:00) Wake',
|
1041 |
+
'Pacific/Wallis' => '(GMT+12:00) Wallis',
|
1042 |
+
'Pacific/Apia' => '(GMT+13:00) Apia',
|
1043 |
+
'Pacific/Enderbury' => '(GMT+13:00) Enderbury',
|
1044 |
+
'Pacific/Fakaofo' => '(GMT+13:00) Fakaofo',
|
1045 |
+
'Pacific/Tongatapu' => '(GMT+13:00) Tongatapu',
|
1046 |
+
'Pacific/Kiritimati' => '(GMT+14:00) Kiritimati'
|
1047 |
+
);
|
1048 |
+
}
|
1049 |
+
|
1050 |
+
// use in countdown popup
|
1051 |
+
public static function getCurrentDateTime()
|
1052 |
+
{
|
1053 |
+
return date('Y-m-d H:i', strtotime(' +1 day'));
|
1054 |
+
}
|
1055 |
+
|
1056 |
+
public static function getDefaultTimezone()
|
1057 |
+
{
|
1058 |
+
$timezone = get_option('timezone_string');
|
1059 |
+
if (!$timezone) {
|
1060 |
+
$timezone = 'America/New_York';
|
1061 |
+
}
|
1062 |
+
|
1063 |
+
return $timezone;
|
1064 |
+
}
|
1065 |
+
// proEndGold
|
1066 |
+
|
1067 |
+
public static function getJsLocalizedData()
|
1068 |
+
{
|
1069 |
+
$translatedData = array(
|
1070 |
+
'imageSupportAlertMessage' => __('Only image files supported', SG_POPUP_TEXT_DOMAIN),
|
1071 |
+
'areYouSure' => __('Are you sure?', SG_POPUP_TEXT_DOMAIN),
|
1072 |
+
'addButtonSpinner' => __('Add', SG_POPUP_TEXT_DOMAIN),
|
1073 |
+
'audioSupportAlertMessage' => __('Only audio files supported (e.g.: mp3, wav, m4a, ogg)', SG_POPUP_TEXT_DOMAIN)
|
1074 |
+
);
|
1075 |
+
|
1076 |
+
return $translatedData;
|
1077 |
+
}
|
1078 |
+
|
1079 |
public static function countriesIsoData()
|
1080 |
{
|
1081 |
$countries = array (
|
1328 |
|
1329 |
return $countries;
|
1330 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1331 |
}
|
com/helpers/Functions.php
CHANGED
@@ -1,33 +1,8 @@
|
|
1 |
<?php
|
2 |
namespace sgpb;
|
3 |
-
use \SxGeo;
|
4 |
|
5 |
class Functions
|
6 |
{
|
7 |
-
public static function getIpAddress()
|
8 |
-
{
|
9 |
-
if (getenv('HTTP_CLIENT_IP'))
|
10 |
-
$ipAddress = getenv('HTTP_CLIENT_IP');
|
11 |
-
else if (getenv('HTTP_X_FORWARDED_FOR'))
|
12 |
-
$ipAddress = getenv('HTTP_X_FORWARDED_FOR');
|
13 |
-
else if (getenv('HTTP_X_FORWARDED'))
|
14 |
-
$ipAddress = getenv('HTTP_X_FORWARDED');
|
15 |
-
else if (getenv('HTTP_FORWARDED_FOR'))
|
16 |
-
$ipAddress = getenv('HTTP_FORWARDED_FOR');
|
17 |
-
else if (getenv('HTTP_FORWARDED'))
|
18 |
-
$ipAddress = getenv('HTTP_FORWARDED');
|
19 |
-
else if (getenv('REMOTE_ADDR'))
|
20 |
-
$ipAddress = getenv('REMOTE_ADDR');
|
21 |
-
else
|
22 |
-
$ipAddress = 'UNKNOWN';
|
23 |
-
|
24 |
-
return $ipAddress;
|
25 |
-
}
|
26 |
-
|
27 |
-
// proStartPlatinumproEndPlatinum
|
28 |
-
|
29 |
-
// proStartSilverproEndSilver
|
30 |
-
|
31 |
public static function renderForm($formFields)
|
32 |
{
|
33 |
$form = '';
|
@@ -38,6 +13,7 @@ class Functions
|
|
38 |
$simpleElements = array(
|
39 |
'text',
|
40 |
'email',
|
|
|
41 |
'hidden',
|
42 |
'submit',
|
43 |
'button'
|
@@ -46,12 +22,16 @@ class Functions
|
|
46 |
$form = '<form class="sgpb-form" id="sgpb-form" method="post">';
|
47 |
$fields = '<div class="sgpb-form-wrapper">';
|
48 |
foreach ($formFields as $fieldKey => $formField) {
|
|
|
49 |
$htmlElement = '';
|
50 |
$hideClassName = '';
|
51 |
$type = 'text';
|
52 |
|
53 |
if (!empty($formField['attrs']['type'])) {
|
54 |
$type = $formField['attrs']['type'];
|
|
|
|
|
|
|
55 |
}
|
56 |
|
57 |
$styles = '';
|
@@ -102,19 +82,23 @@ class Functions
|
|
102 |
}
|
103 |
|
104 |
if (in_array($type, $simpleElements)) {
|
105 |
-
|
|
|
|
|
|
|
106 |
}
|
107 |
else if ($type == 'checkbox') {
|
108 |
$htmlElement = self::createCheckbox($attrs, $styles);
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
$
|
115 |
-
$gdprWrapperStyles = 'style="color:'.@$formField['style']['color'].'"';
|
116 |
-
$htmlElement = self::createGdprCheckbox($attrs, $styles, $label, $gdprWrapperStyles, $gdprText);
|
117 |
}
|
|
|
|
|
|
|
118 |
}
|
119 |
else if ($type == 'textarea') {
|
120 |
$htmlElement = self::createTextArea($attrs, $styles, $errorWrapperClassName);
|
@@ -137,10 +121,12 @@ class Functions
|
|
137 |
return $form;
|
138 |
}
|
139 |
|
140 |
-
public static function createInputElement($attrs, $styles = '', $errorWrapperClassName = '')
|
141 |
{
|
142 |
$inputElement = "<input $attrs $styles>";
|
143 |
-
|
|
|
|
|
144 |
if (!empty($errorWrapperClassName)) {
|
145 |
$inputElement .= "<div class='$errorWrapperClassName'></div>";
|
146 |
}
|
@@ -158,7 +144,7 @@ class Functions
|
|
158 |
public static function createGdprCheckbox($attrs, $styles, $label = '', $gdprWrapperStyles = '', $text = '')
|
159 |
{
|
160 |
$inputElement = "<input $attrs>";
|
161 |
-
$inputElement = '<div class="sgpb-gdpr-label-wrapper" '.$styles.'>'.$inputElement.'<label for="sgpb-gdpr-field-label">'.$label.'</label><div class="sgpb-gdpr-error-message"></div></div>';
|
162 |
if ($text == '') {
|
163 |
return $inputElement;
|
164 |
}
|
1 |
<?php
|
2 |
namespace sgpb;
|
|
|
3 |
|
4 |
class Functions
|
5 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
public static function renderForm($formFields)
|
7 |
{
|
8 |
$form = '';
|
13 |
$simpleElements = array(
|
14 |
'text',
|
15 |
'email',
|
16 |
+
'password',
|
17 |
'hidden',
|
18 |
'submit',
|
19 |
'button'
|
22 |
$form = '<form class="sgpb-form" id="sgpb-form" method="post">';
|
23 |
$fields = '<div class="sgpb-form-wrapper">';
|
24 |
foreach ($formFields as $fieldKey => $formField) {
|
25 |
+
$params = $formField;
|
26 |
$htmlElement = '';
|
27 |
$hideClassName = '';
|
28 |
$type = 'text';
|
29 |
|
30 |
if (!empty($formField['attrs']['type'])) {
|
31 |
$type = $formField['attrs']['type'];
|
32 |
+
if ($type == 'customCheckbox') {
|
33 |
+
$formField['attrs']['type'] = 'checkbox';
|
34 |
+
}
|
35 |
}
|
36 |
|
37 |
$styles = '';
|
82 |
}
|
83 |
|
84 |
if (in_array($type, $simpleElements)) {
|
85 |
+
if (!isset($formField['attrs']['hasLabel']) || !$formField['attrs']['hasLabel']) {
|
86 |
+
$params = array();
|
87 |
+
}
|
88 |
+
$htmlElement = self::createInputElement($attrs, $styles, $errorWrapperClassName, $errorMessageBoxStyles, $params);
|
89 |
}
|
90 |
else if ($type == 'checkbox') {
|
91 |
$htmlElement = self::createCheckbox($attrs, $styles);
|
92 |
+
|
93 |
+
}
|
94 |
+
else if ($type == 'customCheckbox') {
|
95 |
+
$label = $formField['label'];
|
96 |
+
if (isset($formField['text'])) {
|
97 |
+
$gdprText = $formField['text'];
|
|
|
|
|
98 |
}
|
99 |
+
$formField['style'] = array('color' => @$formField['style']['color'], 'width' => @$formField['style']['width']);
|
100 |
+
$gdprWrapperStyles = 'style="color:'.@$formField['style']['color'].'"';
|
101 |
+
$htmlElement = self::createGdprCheckbox($attrs, $styles, $label, $gdprWrapperStyles, $gdprText);
|
102 |
}
|
103 |
else if ($type == 'textarea') {
|
104 |
$htmlElement = self::createTextArea($attrs, $styles, $errorWrapperClassName);
|
121 |
return $form;
|
122 |
}
|
123 |
|
124 |
+
public static function createInputElement($attrs, $styles = '', $errorWrapperClassName = '', $errorMessageBoxStyles = '', $labelArgs = array())
|
125 |
{
|
126 |
$inputElement = "<input $attrs $styles>";
|
127 |
+
if (!empty($labelArgs)) {
|
128 |
+
$inputElement = '<label for="'.@$labelArgs['attrs']['sgpb-login-username'].'"><p class="sgpb-login-input-label '.@$labelArgs['attrs']['labelClass'].'">'.@$labelArgs['attrs']['hasLabel'].'</p>'.$inputElement.'</label>';
|
129 |
+
}
|
130 |
if (!empty($errorWrapperClassName)) {
|
131 |
$inputElement .= "<div class='$errorWrapperClassName'></div>";
|
132 |
}
|
144 |
public static function createGdprCheckbox($attrs, $styles, $label = '', $gdprWrapperStyles = '', $text = '')
|
145 |
{
|
146 |
$inputElement = "<input $attrs>";
|
147 |
+
$inputElement = '<div class="sgpb-gdpr-label-wrapper" '.$styles.'>'.$inputElement.'<label class="js-login-remember-me-label-edit" for="sgpb-gdpr-field-label">'.$label.'</label><div class="sgpb-gdpr-error-message"></div></div>';
|
148 |
if ($text == '') {
|
149 |
return $inputElement;
|
150 |
}
|
com/helpers/PopupBuilderActivePackage.php
CHANGED
@@ -9,9 +9,9 @@ class PopupBuilderActivePackage
|
|
9 |
public static function init()
|
10 |
{
|
11 |
self::$sections = array(
|
12 |
-
'userStatus' => array('min-version' => SGPB_POPUP_PRO_MIN_VERSION, 'min-pkg' => SGPB_POPUP_PKG_SILVER),
|
13 |
-
'popupConditionsSection' => array('min-version' => SGPB_POPUP_PRO_MIN_VERSION, 'min-pkg' => SGPB_POPUP_PKG_SILVER),
|
14 |
-
'popupOtherConditionsSection' => array('min-version' => SGPB_POPUP_PRO_MIN_VERSION, 'min-pkg' => SGPB_POPUP_PKG_SILVER)
|
15 |
);
|
16 |
}
|
17 |
|
@@ -27,10 +27,12 @@ class PopupBuilderActivePackage
|
|
27 |
public static function canUseOption($optionName)
|
28 |
{
|
29 |
global $SGPB_OPTIONS;
|
|
|
30 |
|
31 |
foreach ($SGPB_OPTIONS as $option) {
|
32 |
if ($option['name'] == $optionName) {
|
33 |
$currentOption = $option;
|
|
|
34 |
}
|
35 |
}
|
36 |
|
@@ -48,6 +50,12 @@ class PopupBuilderActivePackage
|
|
48 |
if (isset($option['min-pkg'])) {
|
49 |
$currentOptionSupportedMinPackage = $option['min-pkg'];
|
50 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
if ($currentOptionSupportedMinVersion <= SG_POPUP_VERSION) {
|
53 |
if ($currentOptionSupportedMinPackage <= SGPB_POPUP_PKG) {
|
9 |
public static function init()
|
10 |
{
|
11 |
self::$sections = array(
|
12 |
+
'userStatus' => array('min-version' => SGPB_POPUP_PRO_MIN_VERSION, 'min-pkg' => SGPB_POPUP_PKG_SILVER, 'name' => 'userStatus'),
|
13 |
+
'popupConditionsSection' => array('min-version' => SGPB_POPUP_PRO_MIN_VERSION, 'min-pkg' => SGPB_POPUP_PKG_SILVER, 'name' => 'popupConditionsSection'),
|
14 |
+
'popupOtherConditionsSection' => array('min-version' => SGPB_POPUP_PRO_MIN_VERSION, 'min-pkg' => SGPB_POPUP_PKG_SILVER, 'name' => 'popupOtherConditionsSection')
|
15 |
);
|
16 |
}
|
17 |
|
27 |
public static function canUseOption($optionName)
|
28 |
{
|
29 |
global $SGPB_OPTIONS;
|
30 |
+
$currentOption = array();
|
31 |
|
32 |
foreach ($SGPB_OPTIONS as $option) {
|
33 |
if ($option['name'] == $optionName) {
|
34 |
$currentOption = $option;
|
35 |
+
break;
|
36 |
}
|
37 |
}
|
38 |
|
50 |
if (isset($option['min-pkg'])) {
|
51 |
$currentOptionSupportedMinPackage = $option['min-pkg'];
|
52 |
}
|
53 |
+
$optionAvailable = apply_filters('sgpbOptionAvailable', $option);
|
54 |
+
|
55 |
+
// it can change option availability from extensions
|
56 |
+
if (isset($optionAvailable['status'])) {
|
57 |
+
return $optionAvailable['status'];
|
58 |
+
}
|
59 |
|
60 |
if ($currentOptionSupportedMinVersion <= SG_POPUP_VERSION) {
|
61 |
if ($currentOptionSupportedMinPackage <= SGPB_POPUP_PKG) {
|
popup-builder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Popup Builder
|
4 |
* Plugin URI: https://popup-builder.com
|
5 |
* Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
|
6 |
-
* Version: 3.0.
|
7 |
* Author: Sygnoos
|
8 |
* Author URI: https://sygnoos.com
|
9 |
* License: GPLv2
|
3 |
* Plugin Name: Popup Builder
|
4 |
* Plugin URI: https://popup-builder.com
|
5 |
* Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
|
6 |
+
* Version: 3.0.8
|
7 |
* Author: Sygnoos
|
8 |
* Author URI: https://sygnoos.com
|
9 |
* License: GPLv2
|
public/css/ResetFormStyle.css
CHANGED
@@ -113,6 +113,7 @@ Super Form Reset
|
|
113 |
|
114 |
/*Our reset styles*/
|
115 |
.sgpb-form-wrapper input[type="text"],
|
|
|
116 |
.sgpb-form-wrapper input[type="email"],
|
117 |
.sgpb-form-wrapper input[type="submit"],
|
118 |
.sgpb-form-wrapper input[type="button"] {
|
113 |
|
114 |
/*Our reset styles*/
|
115 |
.sgpb-form-wrapper input[type="text"],
|
116 |
+
.sgpb-form-wrapper input[type="password"],
|
117 |
.sgpb-form-wrapper input[type="email"],
|
118 |
.sgpb-form-wrapper input[type="submit"],
|
119 |
.sgpb-form-wrapper input[type="button"] {
|
public/css/popupAdminStyles.css
CHANGED
@@ -322,6 +322,10 @@
|
|
322 |
background-color: #d4a6e0 !important;
|
323 |
}
|
324 |
|
|
|
|
|
|
|
|
|
325 |
.video-popup {
|
326 |
background-image: url("../img/videoTypeIcon.png");
|
327 |
}
|
@@ -334,6 +338,10 @@
|
|
334 |
background-color: #f34133 !important;
|
335 |
}
|
336 |
|
|
|
|
|
|
|
|
|
337 |
.ageRestriction-popup {
|
338 |
background-image: url("../img/restrictionTyoeIcon.png");
|
339 |
}
|
@@ -346,6 +354,10 @@
|
|
346 |
background-color: #ffdd73 !important;
|
347 |
}
|
348 |
|
|
|
|
|
|
|
|
|
349 |
.countdown-popup {
|
350 |
background-image: url("../img/CountdownTypeIcon.png");
|
351 |
}
|
@@ -358,6 +370,10 @@
|
|
358 |
background-color: #cef398 !important;
|
359 |
}
|
360 |
|
|
|
|
|
|
|
|
|
361 |
.social-popup {
|
362 |
background-image: url("../img/socialTypeIcon.png");
|
363 |
}
|
@@ -370,6 +386,10 @@
|
|
370 |
background-color: #2da9ed !important;
|
371 |
}
|
372 |
|
|
|
|
|
|
|
|
|
373 |
.sg-exit-intent {
|
374 |
background-image: url("../img/ExitIntent.png");
|
375 |
}
|
@@ -419,6 +439,18 @@
|
|
419 |
background-image: url("../img/aweberTypeIcon.png") !important;
|
420 |
}
|
421 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
422 |
.sgpb-sgpbAWeber-div {
|
423 |
background-color: rgba(0, 121, 193, 0.4);
|
424 |
}
|
@@ -427,11 +459,36 @@
|
|
427 |
background-color: rgba(0, 121, 193, 0.4);
|
428 |
}
|
429 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
.sgpbMailchimp-popup-pro,
|
431 |
.mailchimp-popup {
|
432 |
background-image: url("../img/mailchimpTypeIcon.png") !important;
|
433 |
}
|
434 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
.sgpb-sgpbMailchimp-div {
|
436 |
background-color: rgba(63, 189, 214, 0.4);
|
437 |
}
|
@@ -452,6 +509,66 @@
|
|
452 |
background-color: rgba(249, 61, 62, 0.4);
|
453 |
}
|
454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
.sgpbAnalitics-popup-pro {
|
456 |
background-image: url("../img/analyticsTypeIcon.png") !important;
|
457 |
}
|
@@ -583,6 +700,10 @@
|
|
583 |
background-color: #cb7fbb !important;
|
584 |
}
|
585 |
|
|
|
|
|
|
|
|
|
586 |
.sgpb-popup-type-pro-ribbon {
|
587 |
background-image: url(../img/probadge.png);
|
588 |
position: absolute;
|
@@ -1347,20 +1468,6 @@ input:checked + .sgpb-slider:before {
|
|
1347 |
padding-left: 27px !important;
|
1348 |
}
|
1349 |
|
1350 |
-
#sgpb-popup-end-timer,
|
1351 |
-
#sgpb-popup-start-timer {
|
1352 |
-
max-width: 308px !important;
|
1353 |
-
}
|
1354 |
-
|
1355 |
-
#sgpb-schedule-start-time,
|
1356 |
-
#sgpb-schedule-end-time {
|
1357 |
-
max-width: 76px !important;
|
1358 |
-
}
|
1359 |
-
|
1360 |
-
.sgpb-schedule-from-start {
|
1361 |
-
padding-left: 0;
|
1362 |
-
}
|
1363 |
-
|
1364 |
#sgpb-subs-gdpr-text {
|
1365 |
padding: 6px 12px !important;
|
1366 |
width: 100% !important;
|
@@ -1836,6 +1943,10 @@ input:checked + .sgpb-slider:before {
|
|
1836 |
height: 17px;
|
1837 |
}
|
1838 |
|
|
|
|
|
|
|
|
|
1839 |
@media (max-width: 840px) {
|
1840 |
.sgpb-rate-us-banner-1 {
|
1841 |
display: none;
|
322 |
background-color: #d4a6e0 !important;
|
323 |
}
|
324 |
|
325 |
+
.sgpb-extensions-wrapper .sgpb-iframe-div {
|
326 |
+
background-color: rgba(212, 166, 224, 0.4) !important;
|
327 |
+
}
|
328 |
+
|
329 |
.video-popup {
|
330 |
background-image: url("../img/videoTypeIcon.png");
|
331 |
}
|
338 |
background-color: #f34133 !important;
|
339 |
}
|
340 |
|
341 |
+
.sgpb-extensions-wrapper .sgpb-video-div {
|
342 |
+
background-color: rgba(243, 65, 51, 0.4) !important;
|
343 |
+
}
|
344 |
+
|
345 |
.ageRestriction-popup {
|
346 |
background-image: url("../img/restrictionTyoeIcon.png");
|
347 |
}
|
354 |
background-color: #ffdd73 !important;
|
355 |
}
|
356 |
|
357 |
+
.sgpb-extensions-wrapper .sgpb-ageRestriction-div {
|
358 |
+
background-color: #ffdd73 !important;
|
359 |
+
}
|
360 |
+
|
361 |
.countdown-popup {
|
362 |
background-image: url("../img/CountdownTypeIcon.png");
|
363 |
}
|
370 |
background-color: #cef398 !important;
|
371 |
}
|
372 |
|
373 |
+
.sgpb-extensions-wrapper .sgpb-countdown-div {
|
374 |
+
background-color: #cef398 !important;
|
375 |
+
}
|
376 |
+
|
377 |
.social-popup {
|
378 |
background-image: url("../img/socialTypeIcon.png");
|
379 |
}
|
386 |
background-color: #2da9ed !important;
|
387 |
}
|
388 |
|
389 |
+
.sgpb-extensions-wrapper .sgpb-social-div {
|
390 |
+
background-color: rgba(45, 169, 237, 0.4) !important;
|
391 |
+
}
|
392 |
+
|
393 |
.sg-exit-intent {
|
394 |
background-image: url("../img/ExitIntent.png");
|
395 |
}
|
439 |
background-image: url("../img/aweberTypeIcon.png") !important;
|
440 |
}
|
441 |
|
442 |
+
.scheduling-popup-pro {
|
443 |
+
background-image: url("../img/schedulingTypeIcon.png") !important;
|
444 |
+
}
|
445 |
+
|
446 |
+
.geo-targeting-popup-pro {
|
447 |
+
background-image: url("../img/geoTypeIcon.png") !important;
|
448 |
+
}
|
449 |
+
|
450 |
+
.sgpb-geo-targeting-div {
|
451 |
+
background-color: rgba(73, 185, 173, 0.4) !important;
|
452 |
+
}
|
453 |
+
|
454 |
.sgpb-sgpbAWeber-div {
|
455 |
background-color: rgba(0, 121, 193, 0.4);
|
456 |
}
|
459 |
background-color: rgba(0, 121, 193, 0.4);
|
460 |
}
|
461 |
|
462 |
+
.sgpb-login-div {
|
463 |
+
background-color: #7accc8 !important;
|
464 |
+
}
|
465 |
+
|
466 |
+
.sgpb-login-div:hover {
|
467 |
+
background-color: #87ddd9 !important;
|
468 |
+
}
|
469 |
+
|
470 |
+
.login-popup-pro,
|
471 |
+
.login-popup {
|
472 |
+
background-image: url("../img/loginTypeIcon.png") !important;
|
473 |
+
}
|
474 |
+
|
475 |
.sgpbMailchimp-popup-pro,
|
476 |
.mailchimp-popup {
|
477 |
background-image: url("../img/mailchimpTypeIcon.png") !important;
|
478 |
}
|
479 |
|
480 |
+
.sgpb-scheduling-div {
|
481 |
+
background-color: #1976d3;
|
482 |
+
}
|
483 |
+
|
484 |
+
.sgpb-scheduling-div:hover {
|
485 |
+
background-color: #308ee8;
|
486 |
+
}
|
487 |
+
|
488 |
+
.sgpb-extensions-wrapper .sgpb-scheduling-div {
|
489 |
+
background-color: rgba(48, 142, 232, 0.4) !important;
|
490 |
+
}
|
491 |
+
|
492 |
.sgpb-sgpbMailchimp-div {
|
493 |
background-color: rgba(63, 189, 214, 0.4);
|
494 |
}
|
509 |
background-color: rgba(249, 61, 62, 0.4);
|
510 |
}
|
511 |
|
512 |
+
.sgpbScroll-popup-pro {
|
513 |
+
background-image: url("../img/scroll.png") !important;
|
514 |
+
}
|
515 |
+
|
516 |
+
.sgpb-sgpbScroll-div {
|
517 |
+
background-color: rgba(73,185,173, 0.4);
|
518 |
+
}
|
519 |
+
|
520 |
+
.sgpb-sgpbScroll-div:hover {
|
521 |
+
background-color: rgba(73,185,173, 0.4);
|
522 |
+
}
|
523 |
+
|
524 |
+
.sgpbInactivity-popup-pro {
|
525 |
+
background-image: url("../img/inactivity.png") !important;
|
526 |
+
}
|
527 |
+
|
528 |
+
.sgpb-sgpbInactivity-div {
|
529 |
+
background-color: rgba(197,212,61, 0.4);
|
530 |
+
}
|
531 |
+
|
532 |
+
.sgpb-sgpbInactivity-div:hover {
|
533 |
+
background-color: rgba(197,212,61, 0.4);
|
534 |
+
}
|
535 |
+
|
536 |
+
.sgpbRandom-popup-pro {
|
537 |
+
background-image: url("../img/random.png") !important;
|
538 |
+
}
|
539 |
+
|
540 |
+
.sgpb-sgpbRandom-div {
|
541 |
+
background-color: rgba(225,240,85, 0.4);
|
542 |
+
}
|
543 |
+
|
544 |
+
.sgpb-sgpbRandom-div:hover {
|
545 |
+
background-color: rgba(225,240,85, 0.4);
|
546 |
+
}
|
547 |
+
|
548 |
+
.advancedClosing-popup-pro {
|
549 |
+
background-image: url("../img/advancesClosing.png") !important;
|
550 |
+
}
|
551 |
+
|
552 |
+
.sgpb-advancedClosing-div {
|
553 |
+
background-color: rgba(241,139,64, 0.4);
|
554 |
+
}
|
555 |
+
|
556 |
+
.sgpb-advancedClosing-div:hover {
|
557 |
+
background-color: rgba(241,139,64, 0.4);
|
558 |
+
}
|
559 |
+
|
560 |
+
.sgpbAdvancedTargeting-popup-pro {
|
561 |
+
background-image: url("../img/advancedTargeting.png") !important;
|
562 |
+
}
|
563 |
+
|
564 |
+
.sgpb-sgpbAdvancedTargeting-div {
|
565 |
+
background-color: rgba(245,110,107, 0.4);
|
566 |
+
}
|
567 |
+
|
568 |
+
.sgpb-sgpbAdvancedTargeting-div:hover {
|
569 |
+
background-color: rgba(245,110,107, 0.4);
|
570 |
+
}
|
571 |
+
|
572 |
.sgpbAnalitics-popup-pro {
|
573 |
background-image: url("../img/analyticsTypeIcon.png") !important;
|
574 |
}
|
700 |
background-color: #cb7fbb !important;
|
701 |
}
|
702 |
|
703 |
+
.sgpb-extensions-wrapper .sgpb-sgpbWOO-div {
|
704 |
+
background-color: #cb7fbb !important;
|
705 |
+
}
|
706 |
+
|
707 |
.sgpb-popup-type-pro-ribbon {
|
708 |
background-image: url(../img/probadge.png);
|
709 |
position: absolute;
|
1468 |
padding-left: 27px !important;
|
1469 |
}
|
1470 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1471 |
#sgpb-subs-gdpr-text {
|
1472 |
padding: 6px 12px !important;
|
1473 |
width: 100% !important;
|
1943 |
height: 17px;
|
1944 |
}
|
1945 |
|
1946 |
+
.sgpb-sgpbAdvancedTargeting-div p {
|
1947 |
+
font-size: 20px;
|
1948 |
+
}
|
1949 |
+
|
1950 |
@media (max-width: 840px) {
|
1951 |
.sgpb-rate-us-banner-1 {
|
1952 |
display: none;
|
public/css/theme.css
CHANGED
@@ -1,6 +1,169 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
*/.sg-animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:none;animation-fill-mode:none}.sg-animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.sg-animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}.sg-animated.bounceIn,.sg-animated.bounceOut,.sg-animated.flipOutX,.sg-animated.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes bounce{20%,53%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.050,.855,.060);animation-timing-function:cubic-bezier(.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.050,.855,.060);animation-timing-function:cubic-bezier(.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}@keyframes bounce{20%,53%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.050,.855,.060);animation-timing-function:cubic-bezier(.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.050,.855,.060);animation-timing-function:cubic-bezier(.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}.sgpb-bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{50%,from,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{50%,from,to{opacity:1}25%,75%{opacity:0}}.sgpb-flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}}@keyframes pulse{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}}.sgpb-pulse{-webkit-animation-name:pulse;animation-name:pulse}@-webkit-keyframes rubberBand{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}}@keyframes rubberBand{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}}.sgpb-rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shake{from,to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shake{from,to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.sgpb-shake{-webkit-animation-name:shake;animation-name:shake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}.sgpb-swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}}@keyframes tada{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}}.sgpb-tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{from,to{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}}@keyframes wobble{from,to{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}}.sgpb-wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{11.1%,from,to{-webkit-transform:none;transform:none}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skewX(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skewX(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{11.1%,from,to{-webkit-transform:none;transform:none}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skewX(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skewX(-.1953125deg) skewY(-.1953125deg)}}.sgpb-jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes bounceIn{20%,40%,60%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes bounceIn{20%,40%,60%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.sgpb-bounceIn{-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}to{-webkit-transform:none;transform:none}}@keyframes bounceInDown{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}to{-webkit-transform:none;transform:none}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}to{-webkit-transform:none;transform:none}}@keyframes bounceInLeft{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}to{-webkit-transform:none;transform:none}}.sgpb-bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}from{opacity:0;-webkit-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}to{-webkit-transform:none;transform:none}}@keyframes bounceInRight{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}from{opacity:0;-webkit-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}to{-webkit-transform:none;transform:none}}.sgpb-bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}from{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes bounceInUp{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}from{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.sgpb-bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.sgpb-bounceOut{-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.sgpb-bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.sgpb-fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{from{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDownBig{from{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{from{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeft{from{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{from{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeftBig{from{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{from{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRight{from{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{from{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRightBig{from{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{from{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUpBig{from{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeOut{from{opacity:1}to{opacity:0}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}.sgpb-fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes flip{from{-webkit-transform:perspective(400px) rotate3d(0,1,0,-360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{from{-webkit-transform:perspective(400px) rotate3d(0,1,0,-360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.sg-animated.sgpb-flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{from{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{from{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.sgpb-flipInX{backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}.flipInX,.flipInY{-webkit-backface-visibility:visible!important}.flipInY,.flipOutX{backface-visibility:visible!important}@-webkit-keyframes flipInY{from{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{from{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{from{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}@keyframes flipOutX{from{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}.flipOutX{-webkit-animation-name:flipOutX;animation-name:flipOutX}.flipOutX,.flipOutY{-webkit-backface-visibility:visible!important}@-webkit-keyframes flipOutY{from{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}@keyframes flipOutY{from{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}.flipOutY{backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedIn{from{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}to{-webkit-transform:none;transform:none;opacity:1}}@keyframes lightSpeedIn{from{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}to{-webkit-transform:none;transform:none;opacity:1}}.lightSpeedIn{-webkit-animation-name:lightSpeedIn;animation-name:lightSpeedIn;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOut{from{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}@keyframes lightSpeedOut{from{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}.lightSpeedOut{-webkit-animation-name:lightSpeedOut;animation-name:lightSpeedOut;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{from{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateIn{from{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}.sgpb-rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn}@-webkit-keyframes rotateInDownLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}.sgpb-rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft}@-webkit-keyframes rotateInDownRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight}@-webkit-keyframes rotateInUpLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft}@-webkit-keyframes rotateInUpRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight}@-webkit-keyframes rotateOut{from{-webkit-transform-origin:center;transform-origin:center;opacity:1}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{from{-webkit-transform-origin:center;transform-origin:center;opacity:1}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.sgpb-rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut}@-webkit-keyframes rotateOutDownLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft}@-webkit-keyframes rotateOutDownRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight}@-webkit-keyframes rotateOutUpLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft}@-webkit-keyframes rotateOutUpRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight}@-webkit-keyframes hinge{0%{-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-name:hinge;animation-name:hinge}@-webkit-keyframes rollIn{from{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes rollIn{from{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:none;transform:none}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{from{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{from{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{from{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{from{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{from{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{from{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{from{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{from{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{from{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{from{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{from{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{from{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;transform-origin:left center}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;transform-origin:left center}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;transform-origin:right center}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;transform-origin:right center}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp}@-webkit-keyframes slideInDown{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInDown{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.sgpb-slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInLeft{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInRight{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInUp{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.sgpb-slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.sgpb-slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.sgpb-slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.sgpb-iframe-spiner{background:url(data:image/gif;base64,R0lGODlh8ABAAaIHALa2tmNjY8XFxdbW1oyMjO/v7+bm5v///yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjY0QTk5QUJDNTA1RDExRTA4NTIwQzAwMjQyRkFEMkEyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjY0QTk5QUJENTA1RDExRTA4NTIwQzAwMjQyRkFEMkEyIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NjRBOTlBQkE1MDVEMTFFMDg1MjBDMDAyNDJGQUQyQTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NjRBOTlBQkI1MDVEMTFFMDg1MjBDMDAyNDJGQUQyQTIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4B//79/Pv6+fj39vX08/Lx8O/u7ezr6uno5+bl5OPi4eDf3t3c29rZ2NfW1dTT0tHQz87NzMvKycjHxsXEw8LBwL++vby7urm4t7a1tLOysbCvrq2sq6qpqKempaSjoqGgn56dnJuamZiXlpWUk5KRkI+OjYyLiomIh4aFhIOCgYB/fn18e3p5eHd2dXRzcnFwb25tbGtqaWhnZmVkY2JhYF9eXVxbWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkFAPz49PDs6OTg3NjU0MzIxMC8uLSwrKikoJyYlJCMiISAfHh0cGxoZGBcWFRQTEhEQDw4NDAsKCQgHBgUEAwIBAAAh+QQJCgAHACwAAAAA8ABAAQAD/3i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wADChxIsKDBgwgTKlzIsISAABAByINIESK8AhUpFng3IP8jRAHmChgw4KCjxwElUXIjwJKlA48BGjykCDJby5syM9ZUYLKiSmsFbrb8yZMi0QMwY14zIJTlTgpJsTFtelRCVGxNCWCY6VObUJIYMkrcNkBAVQsGAADY2LCt20oC4j4FUZEtNLlyRXi02wyvXLAeAMC86zcu3cHPChv+cNWZYsAdBHuMVlhvRr6O846o+7az50YFBkDGYEB0N78ZCqhdvU0xhtWwtT1GC3s15mkFZlcYUFvt7WmKMYcegDltb9mVGQxYzrxB77HZUCtnTt157G6/qVdvUOB3OO3NOYI/qw78vO2f06tfz769+/fw48ufT7++/fv48+vfz7+///9nAAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkkzwmAAAh+QQJCgAHACwAAAAA8ABAAQAD/3i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wADChxIsKDBgwgTKlzIsMQAAhAHyINIESK8AhUpFnhnIP9jxHMbHXT0KLHBgJLbBKhU6cAjgQYCAsgMIEDbypsmM6I8MGDmzJ3Vbq4MuWAkAQMNfPrEVkCoSqQWlM7M5lQA1ApSZVJ1iiGmUqBBcWZQCoBbAQNXMxgAAIBow7dwJ4kV4dOtM64hpNpdVjUtBwBZoVWt+SFrAMFVQRhGLNTvBsBSo+FVrHQvs7l5Z1qOy7mzobObKQgAAPbaydNqlW47zRpD4GysT4eGmdXxtNgnbT+A/BU2brsD2ALtqdd37AZsk5dl8Nr4SeTKkyddWi669AYGBszuZp0tvO7L31mfp9yz+fPo06tfz769+/fw48ufT7++/fv48+vfz7+///9jAAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJM7pgAACH5BAkKAAcALAAAAADwAEABAAP/eLrc/jDKSau9OOvNu/9gKI5kaZ5oqq5s675wLM90bd94ru987//AoHBILBqPyKRyyWw6n9CodEqtWq/YrHbL7Xq/4LB4TC6bz+i0es1uu9/wuHxOr9vv+Lx+z+/7/4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6SlpqeoqaqrrK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJysvMzc7P0NHS09TV1tfY2drb3N3e3+Dh4uPk5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7/AAMKHEiwoMGDCBMqXMiwhAEBEA3Ig0gRYryKFOEVwBjx/1yBBxs5fmxgQCI3jA44CmgwgIBLAgO0qSSJ0aSCli9d2rSmcuSCkAJ8KsiZExvQijsnEH2ZTWVSCUtdNuWIAWfOmFMzZiCKVVuBkhweDhDasKxZSQPSdg0RoG0Ass3UqhXh1i1cZXLV3s0AoK5baHnnfvD791ngtCAItwUceC+GvoSjBabr13EyuSTqWj7LufMgAwOeWhAAYG02AKhRbybpd1vq1xgUZyvwOrXoBwIU34ZGu3ZpC5D9mqbmG0BSyABYKl7drHiDyAxka6v9XPqC1t0KwFUcwAFo5tq4wxP/rgBh8OPM2/XMvr379/Djy59Pv779+/jz69/Pv7///2sABijggAQWaOCBCCao4IIMNujggxBGKOGEFFZo4YUYZqjhhhx26OGHIIYo4ogklmjiiSimqOKKLLbo4oswxijjjDTWaOONOOao44489ujjj0AGKeSQRBZp5JFIJqnkkkw26eSTUEYpJZAJAAAh+QQJCgAHACwAAAAA8ABAAQAD/3i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wADChxIsKDBgwgTKlzIsIQBARANyINIEWK8ihThFcAY8f/dRo4FHBQIyW2ASZMOOApo8JCixGwnY7LE+FLBx4okr8U8mdMmxZ4HVK7EttNkTQpCYRYFKiEp0aIYWuLUtlMDTW4FDDC9YOBow69gJwEYC4AEgbMEti4jS1YEWrRqkbElOwDEgLdooc1t+wFv3md7x4Lwe1bv3rof7vqNttct3rjJ2JqFG7ay5UYDAAy1CgDxtgCgQXudYCA06M+mT19IrfpaadabJwhgHWC0tAG0y1YAQNtztQK9G/AOoHsBbtaQn9FuwJp5c22pnT9fEB3rgNG0AzgwMCA5t+zwwHtEHg94aO+X06tfz769+/fw48ufT7++/fv48+vfz7+///9nAAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkkzEmAAAh+QQJCgAHACwAAAAA8ABAAQAD/3i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wADChxIsKDBgwgTKlzIsESBARALyINIEWK8ihQvYhwg0f9cgY4NNnJ08LEbgJMnHYhsYECASwEGtKGc2eBhRZAHCrx8ibPaTJQxQ1pssHMntgI/Tw64UPTl0aQAglZo6jIbVAwti/b0OXPrhKJSsxkYEDaDgbIN06qNVCCA2wAkjEZr+9atiKbR6r4FACJrUWh634KgKgBwYLgfCBvWy/eDX7nO6Na9+3fu5BGQ12revGgAgMIbBghYyk0vWgkGCKhWve0whtWwxR4GTWEA7NWnow043JiCgNuqc0OTXJf0AgBueyuwDdyrNNcMAjcATqD15QWHES+43e0h2uwOzjr/Bv5deXfE3Y5HR3w95/fw48ufT7++/fv48+vfz7+///9uAAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkk1BGKeWUVFaZYwIAIfkECQoABwAsAAAAAPAAQAEAA/94utz+MMpJq7046827/2AojmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/C4fE6v2+/4vH7P7/v/gIGCg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbHyMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8AAwocSLCgwYMIEypcyLCEAQAQB8iDSBFivIoU4RXACNH/gLkCAzw22MhR5LgAKFE64Ahg5ICXAwpoS0mzwcOKJg+AhPkyWwGaKSUyIAlAJgOePLENAIqypQWkMLEZYBpAwAWoPbFRxbCTp1GtNHNWQPo12wAAVjkYKNuwrVtJP1OSEEA3LbS4NUPUrRuNqlMPBvbyfUY1AAjBg50VPozYbjO/IAIjvstUxORoeA2P2Pu2s2dHZx1jMBCzG1CxFARv23qhcbapTEVHkKxaKeQKtPeynZY5aIMBBAgIXVDAdTbWC4IrJ9DA+PG8yZcrb86ZG0jU0qc72C0ue3B43pm/K5Cduzryys1/Xs++vfv38OPLn0+/vv37+PPr38+/v///aQAGKOCABBZo4IEIJqjgggw26OCDEEYo4YQUVmjhhRhmqOGGHHbo4YcghijiiCSWaOKJKKao4oostujiizDGKOOMNNZo44045qjjjjz26OOPQAYp5JBEFmnkkUgmqeSSTDbp5JNQRnljAgAh+QQJCgAHACwAAAAA8ABAAQAD/3i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wADChxIsKDBgwgTKlzIsISAABAByINIESK8AhUpFng3IP8jRAHmCgww4KCjxwEOCmzkltGBxwANDACYCYBktpcNHlYEuUAmzZkrrWE82cBkAJQMfv7EZrSiRAtKaWIz8JJnhagzb3rE4POnTWwZv0L9iVTbAABWM4gs27Ct20lDLY4YQJets7gURdStG+3lUw9r99pd9hLmB8F8nxUGgZguNL8gAu+FhlcuY8HS8JKY/Laz50YDBAy2YGBAUG0EUqcWW0GAa9fbVMvG8Lp2NgOyVY9+YKD269u5U6eV0Nu3gNPUCgQnYLc46wLGh1dbntN3deuoZzOIPhz7tgIGWB/g/gD5OPLv0Kf3Ds/25/fw48ufT7++/fv48+vfz7+///9uAAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkk1BGKeWUVFY5ZAIAIfkEBQoABwAsAAAAAPAAQAEAA/94utz+MMpJq7046827/2AojmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/C4fE6v2+/4vH7P7/v/gIGCg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbHyMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8AAwocSLCgwYMIEypcyLCEgAAQAciDSBEivAIVKRZ4NyD/I0QB5goMMOCgo8cBJVFyy+jAY4AGDymCzOYSZsaZCkxWVGkN48kGOnkqcPnyms6KEi0QxWbAJU4KS7HVvBBzp7aMJDFkTKptAICnGAwAALCxodmzlAoQWEuAxNix0tSyXSvi7dtoc9kK5eDVLtxnedmC8HsXcOC2Hwj/dXZ474a+fqHJnVs3crTJiCsvRsu58yKRWTUUMFB2m4DTpzUMWL3aNGrUGFjL1vYadegJImW3xlag9unbEgzo3o3Nt4DSCgz8bpBbN23fMGsDHe4aNgPjYJ13Q74AOzzv78CHly7vtefz6NOrX8++vfv38OPLn0+/vv37+PPr38+/v///ZAAGKOCABBZo4IEIJqjgggw26OCDEEYo4YQUVmjhhRhmqOGGHHbo4YcghijiiCSWaOKJKKao4oostujiizDGKOOMNNZo44045qjjjjz26OOPQAYp5JBEFmnkkUgmqeSSTDbJYwIAOw==) center center no-repeat}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.sg-popup-builder-content{height:100%}.sgpb-theme-1-overlay{background:url(data:image/image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAAAAAAeW/F+AAAAOklEQVR4Ae3QIQrAUADD0Lj2AIV//5uO+RE59asKz4U177rz9VAdqkU1qAbVoBpUg2pR3V/VbrVb7QHULigVcx3ZmQAAAABJRU5ErkJggg==)}.sgpb-theme-6-overlay{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpCMEM4NDgzQjlDRTNFMTExODE4NUVDOTdFQ0I0RDgxRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGREU5OEVCQzAzMjYxMUUyOTg5OURDMDlDRTJDMTc0RSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGREU5OEVCQjAzMjYxMUUyOTg5OURDMDlDRTJDMTc0RSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIxQzg0ODNCOUNFM0UxMTE4MTg1RUM5N0VDQjREODFFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIwQzg0ODNCOUNFM0UxMTE4MTg1RUM5N0VDQjREODFFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+s3YRAQAAABtJREFUeNpiFODh2cBABGBiIBKMKqSOQoAAAwBokQDs5F/8FAAAAABJRU5ErkJggg==)}#sgpb-popup-dialog-main-div-wrapper #sgpb-close-button{padding:0
|
2 |
+
!important;color:#444 !important;border:0
|
3 |
+
!important;margin:0
|
4 |
+
!important;overflow:visible !important;width:auto !important;background:none !important;text-shadow:0px 0px 2px #fff !important}#sgpb-popup-dialog-main-div-wrapper #sgpb-close-button:active{outline:0
|
5 |
+
!important}.sgpb-popup-dialog-main-div-wrapper
|
6 |
+
iframe{border:none !important}#popup-dialog-main-div
|
7 |
+
div{margin-bottom:43px}.popup-main-wrapper div:after{background-color:#E6E5E5;content:'';display:block;position:absolute;left:5px;right:5px;bottom:5px;z-index:99999999999999999999999999999999999999999;height:43px}#content-div{border:12px
|
8 |
+
solid #4B4B4B}.sgpb-theme-5-content{border-bottom:34px solid #E6E5E5 !important}.sgpb-scroll-wrapper{width:100%;height:100%;overflow:hidden;-webkit-overflow-scrolling:touch}.sgpb-scroll-wrapper
|
9 |
+
iframe{margin:0
|
10 |
+
!important;width:1px !important;min-width:100% !important;height:100% !important}.sgpb-video-iframe-wrapper{width:100%;height:100%;overflow:hidden;-webkit-overflow-scrolling:touch}.sgpb-video-iframe-wrapper
|
11 |
+
iframe{margin:0
|
12 |
+
!important;width:100%;height:100%;border:none}.sgpb-video-error-message-wrapper
|
13 |
+
h1{text-align:center}.sgpb-video-error-message-wrapper h3:last-child{padding:0}#sgpb-yes-button,#sgpb-no-button{text-transform:none !important}.sg-fb-buttons-wrapper{text-align:center;min-height:25px}@media only screen and (max-width: 600px){.sgpb-scroll-wrapper{overflow:auto !important}}@media (min-width: 600px){.sgpb-fb-wrapper-standard{min-width:450px !important;overflow:hidden}}@media (min-width: 521px) and (max-width: 599px){.sgpb-fb-wrapper-standard{min-width:450px !important;overflow:scroll}#sg-facebook-like{overflow:hidden}}@media (max-width: 520px){.sgpb-fb-wrapper-standard{min-width:380px !important;max-width:380px !important;overflow:hidden}.sgpb-fb-wrapper-standard .fb-like{max-width:380px !important}#sg-facebook-like{overflow:hidden}}@media (max-width: 420px){.sgpb-fb-wrapper-standard{min-width:350px !important;max-width:350px !important;overflow:hidden}}@media (max-width: 400px){.sgpb-fb-wrapper-standard{min-width:330px !important;max-width:330px !important;overflow:scroll}}@media (max-width: 320px){.sgpb-fb-wrapper-standard{min-width:270px !important;max-width:270px !important;overflow:scroll}}.sg-hide-element{display:none}a.sg-show-popup{cursor:pointer !important}.sgpb-cursor-pointer{cursor:pointer}/*/*/.sgpb-theme-1-content{border-radius:6px;padding-bottom:0;box-shadow:rgba(0, 0, 0, 0.6) 0px 0px 0px 14px !important;border-bottom-width:35px !important;border-bottom-color:#fff !important}.sgpb-theme-4-content{padding-bottom:0;border-radius:7px !important;border-bottom-width:35px !important;border-bottom-color:#fff !important}.sgpb-popup-close-button-4{height:auto !important}.sgpb-popup-dialog-main-div-theme-wrapper-5{border:8px
|
14 |
+
solid #555;outline:1px
|
15 |
+
solid #8A8A8A;background-color:#707070}.sgpb-theme-5-content{border-radius:3px !important;box-shadow:0 0 10px #222 !important}.sgpb-theme-6-content{box-shadow:#646161 0px 0px 8px 3px !important}.sgpb-popup-close-button-1:hover,.sgpb-popup-close-button-2:hover,.sgpb-popup-close-button-5:hover{opacity:0.8}.sgpb-popup-close-button-3:hover{opacity:0.9}.sgpb-popup-close-button-2{border-radius:2px}.sgpb-main-image-content-wrapper
|
16 |
+
img{height:auto;max-width:100%}.sgpb-overflow-hidden{overflow:hidden !important;height:100%}.sgpb-popup-content-direction-right{direction:rtl !important}.sgpb-popup-content-direction-right input[type="url"],
|
17 |
+
.sgpb-popup-content-direction-right input[type="email"],
|
18 |
+
.sgpb-popup-content-direction-right .sg-fb-buttons-wrapper,
|
19 |
+
.sgpb-popup-content-direction-right .sgpb-alert{text-align:right !important}/**/@charset "UTF-8";.sg-animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:none;animation-fill-mode:none}.sg-animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.sg-animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}.sg-animated.bounceIn,.sg-animated.bounceOut,.sg-animated.flipOutX,.sg-animated.flipOutY{-webkit-animation-duration: .75s;animation-duration: .75s}@-webkit-keyframes
|
20 |
+
bounce{20%,53%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.050,.855,.060);animation-timing-function:cubic-bezier(.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.050,.855,.060);animation-timing-function:cubic-bezier(.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0, -4px, 0);transform:translate3d(0, -4px, 0)}}@keyframes
|
21 |
+
bounce{20%,53%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.050,.855,.060);animation-timing-function:cubic-bezier(.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.050,.855,.060);animation-timing-function:cubic-bezier(.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}.sgpb-bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes
|
22 |
+
flash{50%,from,to{opacity:1}25%,75%{opacity:0}}@keyframes
|
23 |
+
flash{50%,from,to{opacity:1}25%,75%{opacity:0}}.sgpb-flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes
|
24 |
+
pulse{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05, 1.05, 1.05);transform:scale3d(1.05, 1.05, 1.05)}}@keyframes
|
25 |
+
pulse{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}}.sgpb-pulse{-webkit-animation-name:pulse;animation-name:pulse}@-webkit-keyframes
|
26 |
+
rubberBand{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05, .95, 1);transform:scale3d(1.05, .95, 1)}}@keyframes
|
27 |
+
rubberBand{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}}.sgpb-rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes
|
28 |
+
shake{from,to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px, 0, 0);transform:translate3d(10px, 0, 0)}}@keyframes
|
29 |
+
shake{from,to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.sgpb-shake{-webkit-animation-name:shake;animation-name:shake}@-webkit-keyframes
|
30 |
+
swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0, 0, 1, 0deg);transform:rotate3d(0, 0, 1, 0deg)}}@keyframes
|
31 |
+
swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}.sgpb-swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes
|
32 |
+
tada{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);transform:scale3d(.9, .9, .9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);transform:scale3d(1.1, 1.1, 1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);transform:scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)}}@keyframes
|
33 |
+
tada{from,to{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);transform:scale3d(.9, .9, .9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);transform:scale3d(1.1, 1.1, 1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);transform:scale3d(1.1, 1.1, 1.1) rotate3d(0,0,1,-3deg)}}.sgpb-tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes
|
34 |
+
wobble{from,to{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);transform:translate3d(-25%, 0, 0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);transform:translate3d(20%, 0, 0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);transform:translate3d(-15%, 0, 0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);transform:translate3d(10%, 0, 0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);transform:translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)}}@keyframes
|
35 |
+
wobble{from,to{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);transform:translate3d(-25%, 0, 0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);transform:translate3d(20%, 0, 0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);transform:translate3d(-15%, 0, 0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);transform:translate3d(10%, 0, 0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);transform:translate3d(-5%, 0, 0) rotate3d(0,0,1,-1deg)}}.sgpb-wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes
|
36 |
+
jello{11.1%,from,to{-webkit-transform:none;transform:none}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skewX(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skewX(-.1953125deg) skewY(-.1953125deg)}}@keyframes
|
37 |
+
jello{11.1%,from,to{-webkit-transform:none;transform:none}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skewX(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skewX(-.1953125deg) skewY(-.1953125deg)}}.sgpb-jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes
|
38 |
+
bounceIn{20%,40%,60%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}}@keyframes
|
39 |
+
bounceIn{20%,40%,60%,80%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.sgpb-bounceIn{-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes
|
40 |
+
bounceInDown{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}to{-webkit-transform:none;transform:none}}@keyframes
|
41 |
+
bounceInDown{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}to{-webkit-transform:none;transform:none}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes
|
42 |
+
bounceInLeft{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}to{-webkit-transform:none;transform:none}}@keyframes
|
43 |
+
bounceInLeft{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}to{-webkit-transform:none;transform:none}}.sgpb-bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes
|
44 |
+
bounceInRight{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}from{opacity:0;-webkit-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}to{-webkit-transform:none;transform:none}}@keyframes
|
45 |
+
bounceInRight{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}from{opacity:0;-webkit-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}to{-webkit-transform:none;transform:none}}.sgpb-bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes
|
46 |
+
bounceInUp{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}from{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes
|
47 |
+
bounceInUp{60%,75%,90%,from,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}from{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.sgpb-bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes
|
48 |
+
bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3, .3, .3);transform:scale3d(.3, .3, .3)}}@keyframes
|
49 |
+
bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.sgpb-bounceOut{-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes
|
50 |
+
bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:0;-webkit-transform:translate3d(0, 2000px, 0);transform:translate3d(0, 2000px, 0)}}@keyframes
|
51 |
+
bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes
|
52 |
+
bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}to{opacity:0;-webkit-transform:translate3d(-2000px, 0, 0);transform:translate3d(-2000px, 0, 0)}}@keyframes
|
53 |
+
bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.sgpb-bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes
|
54 |
+
bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}to{opacity:0;-webkit-transform:translate3d(2000px, 0, 0);transform:translate3d(2000px, 0, 0)}}@keyframes
|
55 |
+
bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes
|
56 |
+
bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}to{opacity:0;-webkit-transform:translate3d(0, -2000px, 0);transform:translate3d(0, -2000px, 0)}}@keyframes
|
57 |
+
bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes
|
58 |
+
fadeIn{from{opacity:0}to{opacity:1}}@keyframes
|
59 |
+
fadeIn{from{opacity:0}to{opacity:1}}.sgpb-fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes
|
60 |
+
fadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes
|
61 |
+
fadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes
|
62 |
+
fadeInDownBig{from{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes
|
63 |
+
fadeInDownBig{from{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes
|
64 |
+
fadeInLeft{from{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes
|
65 |
+
fadeInLeft{from{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes
|
66 |
+
fadeInLeftBig{from{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes
|
67 |
+
fadeInLeftBig{from{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes
|
68 |
+
fadeInRight{from{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes
|
69 |
+
fadeInRight{from{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes
|
70 |
+
fadeInRightBig{from{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes
|
71 |
+
fadeInRightBig{from{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes
|
72 |
+
fadeInUp{from{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes
|
73 |
+
fadeInUp{from{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes
|
74 |
+
fadeInUpBig{from{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes
|
75 |
+
fadeInUpBig{from{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes
|
76 |
+
fadeOut{from{opacity:1}to{opacity:0}}@keyframes
|
77 |
+
fadeOut{from{opacity:1}to{opacity:0}}.sgpb-fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes
|
78 |
+
fadeOutDown{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@keyframes
|
79 |
+
fadeOutDown{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes
|
80 |
+
fadeOutDownBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0, 2000px, 0);transform:translate3d(0, 2000px, 0)}}@keyframes
|
81 |
+
fadeOutDownBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes
|
82 |
+
fadeOutLeft{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0)}}@keyframes
|
83 |
+
fadeOutLeft{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes
|
84 |
+
fadeOutLeftBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px, 0, 0);transform:translate3d(-2000px, 0, 0)}}@keyframes
|
85 |
+
fadeOutLeftBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes
|
86 |
+
fadeOutRight{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0)}}@keyframes
|
87 |
+
fadeOutRight{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes
|
88 |
+
fadeOutRightBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px, 0, 0);transform:translate3d(2000px, 0, 0)}}@keyframes
|
89 |
+
fadeOutRightBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes
|
90 |
+
fadeOutUp{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0)}}@keyframes
|
91 |
+
fadeOutUp{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes
|
92 |
+
fadeOutUpBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0, -2000px, 0);transform:translate3d(0, -2000px, 0)}}@keyframes
|
93 |
+
fadeOutUpBig{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes
|
94 |
+
flip{from{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);transform:perspective(400px) translate3d(0, 0, 150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);transform:perspective(400px) translate3d(0, 0, 150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95, .95, .95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes
|
95 |
+
flip{from{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);transform:perspective(400px) translate3d(0, 0, 150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);transform:perspective(400px) translate3d(0, 0, 150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95, .95, .95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.sg-animated.sgpb-flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes
|
96 |
+
flipInX{from{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, 90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, -20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, 10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, -5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes
|
97 |
+
flipInX{from{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, 90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, -20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, 10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, -5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.sgpb-flipInX{backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}.flipInX,.flipInY{-webkit-backface-visibility:visible!important}@-webkit-keyframes
|
98 |
+
flipInY{from{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes
|
99 |
+
flipInY{from{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes
|
100 |
+
flipOutX{from{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, -20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, 90deg);transform:perspective(400px) rotate3d(1, 0, 0, 90deg);opacity:0}}@keyframes
|
101 |
+
flipOutX{from{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, -20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1, 0, 0, 90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}.flipOutX{-webkit-animation-name:flipOutX;animation-name:flipOutX;backface-visibility:visible!important}.flipOutX,.flipOutY{-webkit-backface-visibility:visible!important}@-webkit-keyframes
|
102 |
+
flipOutY{from{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);opacity:0}}@keyframes
|
103 |
+
flipOutY{from{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}.flipOutY{backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes
|
104 |
+
lightSpeedIn{from{-webkit-transform:translate3d(100%, 0, 0) skewX(-30deg);transform:translate3d(100%, 0, 0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}to{-webkit-transform:none;transform:none;opacity:1}}@keyframes
|
105 |
+
lightSpeedIn{from{-webkit-transform:translate3d(100%, 0, 0) skewX(-30deg);transform:translate3d(100%, 0, 0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}to{-webkit-transform:none;transform:none;opacity:1}}.lightSpeedIn{-webkit-animation-name:lightSpeedIn;animation-name:lightSpeedIn;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes
|
106 |
+
lightSpeedOut{from{opacity:1}to{-webkit-transform:translate3d(100%, 0, 0) skewX(30deg);transform:translate3d(100%, 0, 0) skewX(30deg);opacity:0}}@keyframes
|
107 |
+
lightSpeedOut{from{opacity:1}to{-webkit-transform:translate3d(100%, 0, 0) skewX(30deg);transform:translate3d(100%, 0, 0) skewX(30deg);opacity:0}}.lightSpeedOut{-webkit-animation-name:lightSpeedOut;animation-name:lightSpeedOut;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes
|
108 |
+
rotateIn{from{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}@keyframes
|
109 |
+
rotateIn{from{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}.sgpb-rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn}@-webkit-keyframes
|
110 |
+
rotateInDownLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes
|
111 |
+
rotateInDownLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}.sgpb-rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft}@-webkit-keyframes
|
112 |
+
rotateInDownRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes
|
113 |
+
rotateInDownRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight}@-webkit-keyframes
|
114 |
+
rotateInUpLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes
|
115 |
+
rotateInUpLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft}@-webkit-keyframes
|
116 |
+
rotateInUpRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes
|
117 |
+
rotateInUpRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight}@-webkit-keyframes
|
118 |
+
rotateOut{from{-webkit-transform-origin:center;transform-origin:center;opacity:1}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0, 0, 1, 200deg);transform:rotate3d(0, 0, 1, 200deg);opacity:0}}@keyframes
|
119 |
+
rotateOut{from{-webkit-transform-origin:center;transform-origin:center;opacity:1}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.sgpb-rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut}@-webkit-keyframes
|
120 |
+
rotateOutDownLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0, 0, 1, 45deg);transform:rotate3d(0, 0, 1, 45deg);opacity:0}}@keyframes
|
121 |
+
rotateOutDownLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft}@-webkit-keyframes
|
122 |
+
rotateOutDownRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0, 0, 1, -45deg);transform:rotate3d(0, 0, 1, -45deg);opacity:0}}@keyframes
|
123 |
+
rotateOutDownRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight}@-webkit-keyframes
|
124 |
+
rotateOutUpLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0, 0, 1, -45deg);transform:rotate3d(0, 0, 1, -45deg);opacity:0}}@keyframes
|
125 |
+
rotateOutUpLeft{from{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft}@-webkit-keyframes
|
126 |
+
rotateOutUpRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0, 0, 1, 90deg);transform:rotate3d(0, 0, 1, 90deg);opacity:0}}@keyframes
|
127 |
+
rotateOutUpRight{from{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight}@-webkit-keyframes
|
128 |
+
hinge{0%{-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0, 0, 1, 80deg);transform:rotate3d(0, 0, 1, 80deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0, 0, 1, 60deg);transform:rotate3d(0, 0, 1, 60deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0, 700px, 0);transform:translate3d(0, 700px, 0);opacity:0}}@keyframes
|
129 |
+
hinge{0%{-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0, 0, 1, 80deg);transform:rotate3d(0, 0, 1, 80deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0, 0, 1, 60deg);transform:rotate3d(0, 0, 1, 60deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-name:hinge;animation-name:hinge}@-webkit-keyframes
|
130 |
+
rollIn{from{opacity:0;-webkit-transform:translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);transform:translate3d(-100%, 0, 0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes
|
131 |
+
rollIn{from{opacity:0;-webkit-transform:translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);transform:translate3d(-100%, 0, 0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:none;transform:none}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes
|
132 |
+
rollOut{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);transform:translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)}}@keyframes
|
133 |
+
rollOut{from{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);transform:translate3d(100%, 0, 0) rotate3d(0,0,1,120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes
|
134 |
+
zoomIn{from{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes
|
135 |
+
zoomIn{from{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes
|
136 |
+
zoomInDown{from{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(0, -1000px, 0);transform:scale3d(.1, .1, .1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(0, 60px, 0);transform:scale3d(.475, .475, .475) translate3d(0, 60px, 0);-webkit-animation-timing-function:cubic-bezier(.175, .885, .32, 1);animation-timing-function:cubic-bezier(.175, .885, .32, 1)}}@keyframes
|
137 |
+
zoomInDown{from{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(0, -1000px, 0);transform:scale3d(.1, .1, .1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(0, 60px, 0);transform:scale3d(.475, .475, .475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes
|
138 |
+
zoomInLeft{from{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(-1000px, 0, 0);transform:scale3d(.1, .1, .1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(10px, 0, 0);transform:scale3d(.475, .475, .475) translate3d(10px, 0, 0);-webkit-animation-timing-function:cubic-bezier(.175, .885, .32, 1);animation-timing-function:cubic-bezier(.175, .885, .32, 1)}}@keyframes
|
139 |
+
zoomInLeft{from{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(-1000px, 0, 0);transform:scale3d(.1, .1, .1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(10px, 0, 0);transform:scale3d(.475, .475, .475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes
|
140 |
+
zoomInRight{from{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(1000px, 0, 0);transform:scale3d(.1, .1, .1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(-10px, 0, 0);transform:scale3d(.475, .475, .475) translate3d(-10px, 0, 0);-webkit-animation-timing-function:cubic-bezier(.175, .885, .32, 1);animation-timing-function:cubic-bezier(.175, .885, .32, 1)}}@keyframes
|
141 |
+
zoomInRight{from{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(1000px, 0, 0);transform:scale3d(.1, .1, .1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(-10px, 0, 0);transform:scale3d(.475, .475, .475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes
|
142 |
+
zoomInUp{from{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(0, 1000px, 0);transform:scale3d(.1, .1, .1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(0, -60px, 0);transform:scale3d(.475, .475, .475) translate3d(0, -60px, 0);-webkit-animation-timing-function:cubic-bezier(.175, .885, .32, 1);animation-timing-function:cubic-bezier(.175, .885, .32, 1)}}@keyframes
|
143 |
+
zoomInUp{from{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(0, 1000px, 0);transform:scale3d(.1, .1, .1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(0, -60px, 0);transform:scale3d(.475, .475, .475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes
|
144 |
+
zoomOut{from{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes
|
145 |
+
zoomOut{from{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes
|
146 |
+
zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(0, -60px, 0);transform:scale3d(.475, .475, .475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(0, 2000px, 0);transform:scale3d(.1, .1, .1) translate3d(0, 2000px, 0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(.175, .885, .32, 1);animation-timing-function:cubic-bezier(.175, .885, .32, 1)}}@keyframes
|
147 |
+
zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(0, -60px, 0);transform:scale3d(.475, .475, .475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(0, 2000px, 0);transform:scale3d(.1, .1, .1) translate3d(0, 2000px, 0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown}@-webkit-keyframes
|
148 |
+
zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(42px, 0, 0);transform:scale3d(.475, .475, .475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px, 0, 0);transform:scale(.1) translate3d(-2000px, 0, 0);-webkit-transform-origin:left center;transform-origin:left center}}@keyframes
|
149 |
+
zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(42px, 0, 0);transform:scale3d(.475, .475, .475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px, 0, 0);transform:scale(.1) translate3d(-2000px, 0, 0);-webkit-transform-origin:left center;transform-origin:left center}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft}@-webkit-keyframes
|
150 |
+
zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(-42px, 0, 0);transform:scale3d(.475, .475, .475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px, 0, 0);transform:scale(.1) translate3d(2000px, 0, 0);-webkit-transform-origin:right center;transform-origin:right center}}@keyframes
|
151 |
+
zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(-42px, 0, 0);transform:scale3d(.475, .475, .475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px, 0, 0);transform:scale(.1) translate3d(2000px, 0, 0);-webkit-transform-origin:right center;transform-origin:right center}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight}@-webkit-keyframes
|
152 |
+
zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(0, 60px, 0);transform:scale3d(.475, .475, .475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(0, -2000px, 0);transform:scale3d(.1, .1, .1) translate3d(0, -2000px, 0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(.175, .885, .32, 1);animation-timing-function:cubic-bezier(.175, .885, .32, 1)}}@keyframes
|
153 |
+
zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475, .475, .475) translate3d(0, 60px, 0);transform:scale3d(.475, .475, .475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1, .1, .1) translate3d(0, -2000px, 0);transform:scale3d(.1, .1, .1) translate3d(0, -2000px, 0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp}@-webkit-keyframes
|
154 |
+
slideInDown{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes
|
155 |
+
slideInDown{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.sgpb-slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes
|
156 |
+
slideInLeft{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes
|
157 |
+
slideInLeft{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes
|
158 |
+
slideInRight{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes
|
159 |
+
slideInRight{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes
|
160 |
+
slideInUp{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes
|
161 |
+
slideInUp{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.sgpb-slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes
|
162 |
+
slideOutDown{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@keyframes
|
163 |
+
slideOutDown{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.sgpb-slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes
|
164 |
+
slideOutLeft{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0)}}@keyframes
|
165 |
+
slideOutLeft{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes
|
166 |
+
slideOutRight{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0)}}@keyframes
|
167 |
+
slideOutRight{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes
|
168 |
+
slideOutUp{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0)}}@keyframes
|
169 |
+
slideOutUp{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.sgpb-slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.sgpb-iframe-spiner{background:url('data:image/gif;base64,R0lGODlh8ABAAaIHALa2tmNjY8XFxdbW1oyMjO/v7+bm5v///yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjY0QTk5QUJDNTA1RDExRTA4NTIwQzAwMjQyRkFEMkEyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjY0QTk5QUJENTA1RDExRTA4NTIwQzAwMjQyRkFEMkEyIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NjRBOTlBQkE1MDVEMTFFMDg1MjBDMDAyNDJGQUQyQTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NjRBOTlBQkI1MDVEMTFFMDg1MjBDMDAyNDJGQUQyQTIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4B//79/Pv6+fj39vX08/Lx8O/u7ezr6uno5+bl5OPi4eDf3t3c29rZ2NfW1dTT0tHQz87NzMvKycjHxsXEw8LBwL++vby7urm4t7a1tLOysbCvrq2sq6qpqKempaSjoqGgn56dnJuamZiXlpWUk5KRkI+OjYyLiomIh4aFhIOCgYB/fn18e3p5eHd2dXRzcnFwb25tbGtqaWhnZmVkY2JhYF9eXVxbWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkFAPz49PDs6OTg3NjU0MzIxMC8uLSwrKikoJyYlJCMiISAfHh0cGxoZGBcWFRQTEhEQDw4NDAsKCQgHBgUEAwIBAAAh+QQJCgAHACwAAAAA8ABAAQAD/3i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wADChxIsKDBgwgTKlzIsISAABAByINIESK8AhUpFng3IP8jRAHmChgw4KCjxwElUXIjwJKlA48BGjykCDJby5syM9ZUYLKiSmsFbrb8yZMi0QMwY14zIJTlTgpJsTFtelRCVGxNCWCY6VObUJIYMkrcNkBAVQsGAADY2LCt20oC4j4FUZEtNLlyRXi02wyvXLAeAMC86zcu3cHPChv+cNWZYsAdBHuMVlhvRr6O846o+7az50YFBkDGYEB0N78ZCqhdvU0xhtWwtT1GC3s15mkFZlcYUFvt7WmKMYcegDltb9mVGQxYzrxB77HZUCtnTt157G6/qVdvUOB3OO3NOYI/qw78vO2f06tfz769+/fw48ufT7++/fv48+vfz7+///9nAAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkkzwmAAAh+QQJCgAHACwAAAAA8ABAAQAD/3i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wADChxIsKDBgwgTKlzIsMQAAhAHyINIESK8AhUpFnhnIP9jxHMbHXT0KLHBgJLbBKhU6cAjgQYCAsgMIEDbypsmM6I8MGDmzJ3Vbq4MuWAkAQMNfPrEVkCoSqQWlM7M5lQA1ApSZVJ1iiGmUqBBcWZQCoBbAQNXMxgAAIBow7dwJ4kV4dOtM64hpNpdVjUtBwBZoVWt+SFrAMFVQRhGLNTvBsBSo+FVrHQvs7l5Z1qOy7mzobObKQgAAPbaydNqlW47zRpD4GysT4eGmdXxtNgnbT+A/BU2brsD2ALtqdd37AZsk5dl8Nr4SeTKkyddWi669AYGBszuZp0tvO7L31mfp9yz+fPo06tfz769+/fw48ufT7++/fv48+vfz7+///9jAAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJM7pgAACH5BAkKAAcALAAAAADwAEABAAP/eLrc/jDKSau9OOvNu/9gKI5kaZ5oqq5s675wLM90bd94ru987//AoHBILBqPyKRyyWw6n9CodEqtWq/YrHbL7Xq/4LB4TC6bz+i0es1uu9/wuHxOr9vv+Lx+z+/7/4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6SlpqeoqaqrrK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJysvMzc7P0NHS09TV1tfY2drb3N3e3+Dh4uPk5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7/AAMKHEiwoMGDCBMqXMiwhAEBEA3Ig0gRYryKFOEVwBjx/1yBBxs5fmxgQCI3jA44CmgwgIBLAgO0qSSJ0aSCli9d2rSmcuSCkAJ8KsiZExvQijsnEH2ZTWVSCUtdNuWIAWfOmFMzZiCKVVuBkhweDhDasKxZSQPSdg0RoG0Ass3UqhXh1i1cZXLV3s0AoK5baHnnfvD791ngtCAItwUceC+GvoSjBabr13EyuSTqWj7LufMgAwOeWhAAYG02AKhRbybpd1vq1xgUZyvwOrXoBwIU34ZGu3ZpC5D9mqbmG0BSyABYKl7drHiDyAxka6v9XPqC1t0KwFUcwAFo5tq4wxP/rgBh8OPM2/XMvr379/Djy59Pv779+/jz69/Pv7///2sABijggAQWaOCBCCao4IIMNujggxBGKOGEFFZo4YUYZqjhhhx26OGHIIYo4ogklmjiiSimqOKKLLbo4oswxijjjDTWaOONOOao44489ujjj0AGKeSQRBZp5JFIJqnkkkw26eSTUEYpJZAJAAAh+QQJCgAHACwAAAAA8ABAAQAD/3i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wADChxIsKDBgwgTKlzIsIQBARANyINIEWK8ihThFcAY8f/dRo4FHBQIyW2ASZMOOApo8JCixGwnY7LE+FLBx4okr8U8mdMmxZ4HVK7EttNkTQpCYRYFKiEp0aIYWuLUtlMDTW4FDDC9YOBow69gJwEYC4AEgbMEti4jS1YEWrRqkbElOwDEgLdooc1t+wFv3md7x4Lwe1bv3rof7vqNttct3rjJ2JqFG7ay5UYDAAy1CgDxtgCgQXudYCA06M+mT19IrfpaadabJwhgHWC0tAG0y1YAQNtztQK9G/AOoHsBbtaQn9FuwJp5c22pnT9fEB3rgNG0AzgwMCA5t+zwwHtEHg94aO+X06tfz769+/fw48ufT7++/fv48+vfz7+///9nAAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkkzEmAAAh+QQJCgAHACwAAAAA8ABAAQAD/3i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wADChxIsKDBgwgTKlzIsESBARALyINIEWK8ihQvYhwg0f9cgY4NNnJ08LEbgJMnHYhsYECASwEGtKGc2eBhRZAHCrx8ibPaTJQxQ1pssHMntgI/Tw64UPTl0aQAglZo6jIbVAwti/b0OXPrhKJSsxkYEDaDgbIN06qNVCCA2wAkjEZr+9atiKbR6r4FACJrUWh634KgKgBwYLgfCBvWy/eDX7nO6Na9+3fu5BGQ12revGgAgMIbBghYyk0vWgkGCKhWve0whtWwxR4GTWEA7NWnow043JiCgNuqc0OTXJf0AgBueyuwDdyrNNcMAjcATqD15QWHES+43e0h2uwOzjr/Bv5deXfE3Y5HR3w95/fw48ufT7++/fv48+vfz7+///9uAAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkk1BGKeWUVFaZYwIAIfkECQoABwAsAAAAAPAAQAEAA/94utz+MMpJq7046827/2AojmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/C4fE6v2+/4vH7P7/v/gIGCg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbHyMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8AAwocSLCgwYMIEypcyLCEAQAQB8iDSBFivIoU4RXACNH/gLkCAzw22MhR5LgAKFE64Ahg5ICXAwpoS0mzwcOKJg+AhPkyWwGaKSUyIAlAJgOePLENAIqypQWkMLEZYBpAwAWoPbFRxbCTp1GtNHNWQPo12wAAVjkYKNuwrVtJP1OSEEA3LbS4NUPUrRuNqlMPBvbyfUY1AAjBg50VPozYbjO/IAIjvstUxORoeA2P2Pu2s2dHZx1jMBCzG1CxFARv23qhcbapTEVHkKxaKeQKtPeynZY5aIMBBAgIXVDAdTbWC4IrJ9DA+PG8yZcrb86ZG0jU0qc72C0ue3B43pm/K5Cduzryys1/Xs++vfv38OPLn0+/vv37+PPr38+/v///aQAGKOCABBZo4IEIJqjgggw26OCDEEYo4YQUVmjhhRhmqOGGHHbo4YcghijiiCSWaOKJKKao4oostujiizDGKOOMNNZo44045qjjjjz26OOPQAYp5JBEFmnkkUgmqeSSTDbp5JNQRnljAgAh+QQJCgAHACwAAAAA8ABAAQAD/3i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wADChxIsKDBgwgTKlzIsISAABAByINIESK8AhUpFng3IP8jRAHmCgww4KCjxwEOCmzkltGBxwANDACYCYBktpcNHlYEuUAmzZkrrWE82cBkAJQMfv7EZrSiRAtKaWIz8JJnhagzb3rE4POnTWwZv0L9iVTbAABWM4gs27Ct20lDLY4YQJets7gURdStG+3lUw9r99pd9hLmB8F8nxUGgZguNL8gAu+FhlcuY8HS8JKY/Laz50YDBAy2YGBAUG0EUqcWW0GAa9fbVMvG8Lp2NgOyVY9+YKD269u5U6eV0Nu3gNPUCgQnYLc46wLGh1dbntN3deuoZzOIPhz7tgIGWB/g/gD5OPLv0Kf3Ds/25/fw48ufT7++/fv48+vfz7+///9uAAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkk1BGKeWUVFY5ZAIAIfkEBQoABwAsAAAAAPAAQAEAA/94utz+MMpJq7046827/2AojmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/C4fE6v2+/4vH7P7/v/gIGCg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbHyMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8AAwocSLCgwYMIEypcyLCEgAAQAciDSBEivAIVKRZ4NyD/I0QB5goMMOCgo8cBJVFyy+jAY4AGDymCzOYSZsaZCkxWVGkN48kGOnkqcPnyms6KEi0QxWbAJU4KS7HVvBBzp7aMJDFkTKptAICnGAwAALCxodmzlAoQWEuAxNix0tSyXSvi7dtoc9kK5eDVLtxnedmC8HsXcOC2Hwj/dXZ474a+fqHJnVs3crTJiCsvRsu58yKRWTUUMFB2m4DTpzUMWL3aNGrUGFjL1vYadegJImW3xlag9unbEgzo3o3Nt4DSCgz8bpBbN23fMGsDHe4aNgPjYJ13Q74AOzzv78CHly7vtefz6NOrX8++vfv38OPLn0+/vv37+PPr38+/v///ZAAGKOCABBZo4IEIJqjgggw26OCDEEYo4YQUVmjhhRhmqOGGHHbo4YcghijiiCSWaOKJKKao4oostujiizDGKOOMNNZo44045qjjjjz26OOPQAYp5JBEFmnkkUgmqeSSTDbJYwIAOw==') center center no-repeat}
|
public/img/advancedTargeting.png
ADDED
Binary file
|
public/img/advancesClosing.png
ADDED
Binary file
|
public/img/geoTypeIcon.png
ADDED
Binary file
|
public/img/inactivity.png
ADDED
Binary file
|
public/img/loginTypeIcon.png
ADDED
Binary file
|
public/img/random.png
ADDED
Binary file
|
public/img/schedulingTypeIcon.png
ADDED
Binary file
|
public/img/scroll.png
ADDED
Binary file
|
public/js/Backend.js
CHANGED
@@ -20,8 +20,6 @@ SGPBBackend.prototype.sgInit = function()
|
|
20 |
this.sgTabs();
|
21 |
this.accordion();
|
22 |
this.initRadioAccordions();
|
23 |
-
this.timePicker();
|
24 |
-
this.fullTimePicker();
|
25 |
this.fixedPositionSelection();
|
26 |
this.popupThemesPreview();
|
27 |
this.colorPicker();
|
@@ -595,6 +593,21 @@ SGPBBackend.prototype.removeRuleButton = function()
|
|
595 |
});
|
596 |
};
|
597 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
SGPBBackend.prototype.changeConditionParams = function()
|
599 |
{
|
600 |
var that = this;
|
@@ -627,6 +640,7 @@ SGPBBackend.prototype.changeConditionParams = function()
|
|
627 |
nonce_ajax: SGPB_JS_PARAMS.nonce,
|
628 |
conditionName: conditionName,
|
629 |
paramName: paramSavedValue,
|
|
|
630 |
ruleId: ruleId,
|
631 |
groupId: groupId
|
632 |
};
|
@@ -668,6 +682,7 @@ SGPBBackend.prototype.changeConditionParams = function()
|
|
668 |
conditionName: conditionName,
|
669 |
paramName: paramSavedValue,
|
670 |
paramValue: paramValue,
|
|
|
671 |
ruleId: ruleId,
|
672 |
groupId: groupId
|
673 |
};
|
@@ -736,52 +751,6 @@ SGPBBackend.prototype.popupSelect2 = function()
|
|
736 |
});
|
737 |
};
|
738 |
|
739 |
-
SGPBBackend.prototype.timePicker = function()
|
740 |
-
{
|
741 |
-
if (jQuery('.sg-time-picker').length == 0) {
|
742 |
-
return;
|
743 |
-
}
|
744 |
-
jQuery('.sg-time-picker').datetimepicker({
|
745 |
-
datepicker:false,
|
746 |
-
format:'H:i'
|
747 |
-
});
|
748 |
-
};
|
749 |
-
|
750 |
-
SGPBBackend.prototype.fullTimePicker = function()
|
751 |
-
{
|
752 |
-
var startTimerOptions = {
|
753 |
-
format:'M d y H:i',
|
754 |
-
minDate: 0
|
755 |
-
};
|
756 |
-
var finishTimerOptions = {
|
757 |
-
format:'M d y H:i',
|
758 |
-
minDate: 0
|
759 |
-
};
|
760 |
-
|
761 |
-
/* for escape javascript errors if element does not exist */
|
762 |
-
if (jQuery('.popup-start-timer').length == 0) {
|
763 |
-
return;
|
764 |
-
}
|
765 |
-
|
766 |
-
var startCalendar = jQuery('.popup-start-timer').datetimepicker(startTimerOptions);
|
767 |
-
var finishCalendar = jQuery('.popup-finish-timer').datetimepicker(finishTimerOptions);
|
768 |
-
|
769 |
-
/* Detect start change for disable finish date before current start date */
|
770 |
-
startCalendar.change(function() {
|
771 |
-
/* Current start date */
|
772 |
-
var currentStartDate = jQuery(this).val();
|
773 |
-
/*Start date to UTC for for minDate */
|
774 |
-
var startDate = new Date(currentStartDate);
|
775 |
-
|
776 |
-
var finishTimerOptions = {
|
777 |
-
format:'M d y H:i',
|
778 |
-
minDate: startDate
|
779 |
-
};
|
780 |
-
/*Change finish minimum date disabel days */
|
781 |
-
jQuery('.popup-finish-timer').datetimepicker(finishTimerOptions)
|
782 |
-
});
|
783 |
-
};
|
784 |
-
|
785 |
SGPBBackend.prototype.fixedPositionSelection = function()
|
786 |
{
|
787 |
jQuery(".js-fixed-position-style").bind("click",function() {
|
@@ -930,7 +899,7 @@ SGPBBackend.prototype.popupThemesPreview = function()
|
|
930 |
SGPBBackend.prototype.rangeSlider = function()
|
931 |
{
|
932 |
if (typeof Powerange != 'undefined') {
|
933 |
-
var powerRangeSelectors = ['js-popup-overlay-opacity', 'js-popup-content-opacity', 'js-subs-bg-opacity', 'js-contact-bg-opacity'];
|
934 |
|
935 |
for (var i in powerRangeSelectors) {
|
936 |
if (typeof powerRangeSelectors[i] != 'string') {
|
20 |
this.sgTabs();
|
21 |
this.accordion();
|
22 |
this.initRadioAccordions();
|
|
|
|
|
23 |
this.fixedPositionSelection();
|
24 |
this.popupThemesPreview();
|
25 |
this.colorPicker();
|
593 |
});
|
594 |
};
|
595 |
|
596 |
+
SGPBBackend.getParamFromUrl = function(param)
|
597 |
+
{
|
598 |
+
var url = window.location.href;
|
599 |
+
param = param.replace(/[\[\]]/g, "\\$&");
|
600 |
+
var regex = new RegExp("[?&]" + param + "(=([^&#]*)|&|#|$)"),
|
601 |
+
results = regex.exec(url);
|
602 |
+
if (!results) {
|
603 |
+
return null;
|
604 |
+
}
|
605 |
+
if (!results[2]) {
|
606 |
+
return '';
|
607 |
+
}
|
608 |
+
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
609 |
+
};
|
610 |
+
|
611 |
SGPBBackend.prototype.changeConditionParams = function()
|
612 |
{
|
613 |
var that = this;
|
640 |
nonce_ajax: SGPB_JS_PARAMS.nonce,
|
641 |
conditionName: conditionName,
|
642 |
paramName: paramSavedValue,
|
643 |
+
popupId: SGPBBackend.getParamFromUrl('post'),
|
644 |
ruleId: ruleId,
|
645 |
groupId: groupId
|
646 |
};
|
682 |
conditionName: conditionName,
|
683 |
paramName: paramSavedValue,
|
684 |
paramValue: paramValue,
|
685 |
+
popupId: SGPBBackend.getParamFromUrl('post'),
|
686 |
ruleId: ruleId,
|
687 |
groupId: groupId
|
688 |
};
|
751 |
});
|
752 |
};
|
753 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
754 |
SGPBBackend.prototype.fixedPositionSelection = function()
|
755 |
{
|
756 |
jQuery(".js-fixed-position-style").bind("click",function() {
|
899 |
SGPBBackend.prototype.rangeSlider = function()
|
900 |
{
|
901 |
if (typeof Powerange != 'undefined') {
|
902 |
+
var powerRangeSelectors = ['js-popup-overlay-opacity', 'js-popup-content-opacity', 'js-subs-bg-opacity', 'js-contact-bg-opacity', 'js-login-bg-opacity'];
|
903 |
|
904 |
for (var i in powerRangeSelectors) {
|
905 |
if (typeof powerRangeSelectors[i] != 'string') {
|
public/js/ExtensionsNotification.js
CHANGED
@@ -17,6 +17,9 @@ SGPBExtensionsNotification.prototype.init = function()
|
|
17 |
SGPBExtensionsNotification.prototype.addToPopupMenuLinkColor = function()
|
18 |
{
|
19 |
jQuery('a[href="edit.php?post_type='+SGPB_JS_EXTENSIONS_PARAMS.popupPostType+'&page='+SGPB_JS_EXTENSIONS_PARAMS.extendPage+'"]').css({color: "#55efc4"})
|
|
|
|
|
|
|
20 |
};
|
21 |
|
22 |
SGPBExtensionsNotification.prototype.closeProblemAlert = function()
|
17 |
SGPBExtensionsNotification.prototype.addToPopupMenuLinkColor = function()
|
18 |
{
|
19 |
jQuery('a[href="edit.php?post_type='+SGPB_JS_EXTENSIONS_PARAMS.popupPostType+'&page='+SGPB_JS_EXTENSIONS_PARAMS.extendPage+'"]').css({color: "#55efc4"})
|
20 |
+
jQuery('a[href="edit.php?post_type='+SGPB_JS_EXTENSIONS_PARAMS.popupPostType+'&page='+SGPB_JS_EXTENSIONS_PARAMS.extendPage+'"]').attr('href', 'https://popup-builder.com/#extensions');
|
21 |
+
/*support*/
|
22 |
+
jQuery('a[href="edit.php?post_type='+SGPB_JS_EXTENSIONS_PARAMS.popupPostType+'&page=support"]').attr('href', 'https://wordpress.org/support/plugin/popup-builder');
|
23 |
};
|
24 |
|
25 |
SGPBExtensionsNotification.prototype.closeProblemAlert = function()
|
public/js/MediaButton.js
CHANGED
@@ -1 +1,23 @@
|
|
1 |
-
function SGPBMediaButton(){}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function SGPBMediaButton(){}
|
2 |
+
SGPBMediaButton.prototype.init=function()
|
3 |
+
{this.openMediaButtonPopup();};SGPBMediaButton.prototype.openMediaButtonPopup=function()
|
4 |
+
{var that=this;var select2Init=1;jQuery('.sgpb-insert-media-button-js, .sgpb-insert-js-variable').bind('click',function(e){e.preventDefault();var hiddenDivId=jQuery(this).attr('data-id');var popupConfigObj=new PopupConfig();popupConfigObj.magicCall('setContentPadding',14);popupConfigObj.magicCall('setContentBorderRadius',4);popupConfigObj.magicCall('setContentBorderRadiusType','px');popupConfigObj.magicCall('setContentBorderWidth',5);popupConfigObj.magicCall('setContentBorderColor','#506274');popupConfigObj.magicCall('setShadowSpread',1);popupConfigObj.magicCall('setContentShadowBlur',4);popupConfigObj.magicCall('setContentShadowColor','#cccccc');popupConfigObj.magicCall('setMinWidth',400);popupConfigObj.magicCall('setSrcElement',hiddenDivId);popupConfigObj.magicCall('setOverlayColor','black');popupConfigObj.magicCall('setOverlayOpacity',40);var config=popupConfigObj.combineConfigObj();var popup=new SGPopup(config);popup.open();jQuery(window).bind('sgpbDidOpen',function(){jQuery('.sgpb-insert-popup').addClass('js-sg-select2');if(mediaButtonParams.currentPostType!=mediaButtonParams.popupBuilderPostType){jQuery('.sgpb-insert-popup-event').addClass('js-sg-select2');if(select2Init==1){that.popupSelect2();}
|
5 |
+
select2Init++;console.log(jQuery('.select2-container--below').length);jQuery('.select2-container--below').remove();that.popupSelect2();}
|
6 |
+
else{that.popupSelect2();jQuery('.select2-container--below').remove();}
|
7 |
+
that.closeMediaButtonPopup(popup);});that.insertPopup(popup);});};SGPBMediaButton.prototype.closeMediaButtonPopup=function(popup)
|
8 |
+
{jQuery('.sgpb-close-media-popup-js').on('click',function(){popup.close();});};SGPBMediaButton.prototype.insertPopup=function(popup)
|
9 |
+
{var insidePopup=false;if(mediaButtonParams.currentPostType==mediaButtonParams.popupBuilderPostType){insidePopup=true;}
|
10 |
+
jQuery('.sgpb-insert-popup-js').bind('click',function(){var selectedPopup=jQuery('.sgpb-insert-popup').val();var selectedPopupEvent=jQuery('.sgpb-insert-popup-event').val();if(typeof selectedPopupEvent!='undefined'){selectedPopupEvent=' event="'+selectedPopupEvent+'"';}
|
11 |
+
else{selectedPopupEvent='';if(insidePopup){selectedPopupEvent=' insidePopup="on"';}}
|
12 |
+
if(selectedPopup==''||selectedPopup==null){popup.close();return;}
|
13 |
+
if(selectedPopupEvent=='onLoad'&&!insidePopup){window.send_to_editor('[sg_popup id="'+selectedPopup+'"'+selectedPopupEvent+'][/sg_popup]');popup.close();return;}
|
14 |
+
if(typeof tinyMCE.editors.content!='undefined'&&(document.getElementById('content').offsetParent===null)){selectedContent=(tinyMCE.activeEditor.selection.getContent())?tinyMCE.activeEditor.selection.getContent():'';}
|
15 |
+
else{var content=document.getElementById('content');var selectedContent;if(typeof document.selection!='undefined'){content.focus();var sel=document.selection.createRange();selectedContent=sel.text;}
|
16 |
+
else if(typeof content.selectionStart!='undefined'){var startPos=content.selectionStart;var endPos=content.selectionEnd;selectedContent=content.value.substring(startPos,endPos)}}
|
17 |
+
window.send_to_editor('[sg_popup id="'+selectedPopup+'"'+selectedPopupEvent+']'+selectedContent+'[/sg_popup]');popup.close();});jQuery('.sgpb-insert-js-variable-to-editor').bind('click',function(){var jsVariableSelector=jQuery('.sgpb-js-variable-selector').val();var jsVariableAttribute=jQuery('.sgpb-js-variable-attribute').val();jQuery('.sgpb-js-variable-errors').addClass('sg-hide-element');var valid=true;if(jsVariableSelector==''){valid=false;jQuery('.sgpb-js-variable-selector-error').removeClass('sg-hide-element');}
|
18 |
+
if(jsVariableAttribute==''){valid=false;jQuery('.sgpb-js-variable-attribute-error').removeClass('sg-hide-element');}
|
19 |
+
if(!valid){return false;}
|
20 |
+
jQuery('.sgpb-js-variable-errors').addClass('sg-hide-element');window.send_to_editor('[pbvariable selector="'+jsVariableSelector+'" attribute="'+jsVariableAttribute+'"]');popup.close();});};SGPBMediaButton.prototype.popupSelect2=function()
|
21 |
+
{if(!jQuery('.js-sg-select2').length){return;}
|
22 |
+
jQuery('select.js-sg-select2').each(function(){var type=jQuery(this).attr('data-select-type');var className=jQuery(this).attr('data-select-class');var options={width:'100%'};if(type=='ajax'){options=jQuery.extend(options,{minimumInputLength:1,ajax:{url:SGPB_JS_PARAMS.url,dataType:'json',delay:250,type:'POST',data:function(params){var searchKey=jQuery(this).attr('data-value-param');return{action:'select2_search_data',nonce_ajax:SGPB_JS_PARAMS.nonce,searchTerm:params.term,searchKey:searchKey};},processResults:function(data){return{results:jQuery.map(data.items,function(item){return{text:item.text,id:item.id}})};}}});}
|
23 |
+
jQuery(this).sgpbselect2(options);});};jQuery(document).ready(function(){var mediaButton=new SGPBMediaButton();mediaButton.init();});
|
public/js/Popup.js
CHANGED
@@ -1 +1,237 @@
|
|
1 |
-
function SGPopup(u){u.integrations,u.popupName;var n=u.prefix||"sgpb",r=!1,h=null,y=null,a=null,o=!1,t=null,i=null,g=u.contentBox.zIndex||9999,w="640px",b=u.autoHeight,s=null,l=u.id,d=u.showOnce||!1,p=u.events||[],m=u.openDelay||0,k=(u.popupTheme,u.popupType,null),f=u.openAnimation||{type:"none",speed:0},c=u.closeAnimation||{type:"none",speed:0},v=u.closeBehavior||{allowed:!0,showButton:!0,buttonPosition:"topLeft",buttonInside:!0,autoclose:!1,overlayShouldClose:!0,contentShouldClose:!1,escShouldClose:!0},x=u.closeButton||{data:sgpbPublicUrl+"img/close.png",width:16,height:16,widthType:"px",heightType:"px",closeButtonType:"IMG",closeButtonText:"Close"},I=u.overlay||{visible:!0,color:"#000",opacity:.7},C=u.contentBox||{padding:8,showBackground:!0,backgroundColor:"#fff",borderStyle:"solid",borderColor:"#ccc",borderRadius:u.contentBox.borderRadius,borderRadiusType:u.contentBox.borderRadiusType,borderWidth:1,shadowColor:"#ccc",shadowSpread:0,shadowBlur:10,scrollingEnabled:!0},z=u.contents||"",S=u.inline||!1,e=(u.href,u.position||{left:"center",top:"center"});(void 0===e.left||isNaN(parseInt(e.left))&&"center"!=e.left)&&(void 0===e.right||isNaN(parseInt(e.right))&&"center"!=e.right)&&(e.left="center"),(void 0===e.top||isNaN(parseInt(e.top))&&"center"!=e.top)&&(void 0===e.bottom||isNaN(parseInt(e.bottom))&&"center"!=e.bottom)&&(e.top="center");var T=u.sizingRanges||[{screenFrom:{width:-1,height:-1},screenTo:{width:-1,height:-1},width:w,height:b,maxWidth:-1,maxHeight:-1,minWidth:-1,minHeight:-1}],P=u.shouldOpen||function(){return!0},W=u.willOpen||function(){},N=u.didOpen||function(){},E=u.shouldClose||function(){return!0},H=u.willClose||function(){},X=u.didClose||function(){};function B(){if(S){var t=document.getElementById(S);SGPopup.inlinePrevTarget.hasPreviousElement?SGPopup.inlinePrevTarget.parentNode.insertBefore(t,SGPopup.inlinePrevTarget.node.nextSibling):SGPopup.inlinePrevTarget.node.appendChild(t)}}SGPopup.inlinePrevTarget=SGPopup.inlinePrevTarget||{};var Y="@-webkit-keyframes popin{from{-webkit-transform:scale(.8);opacity:0}to{-webkit-transform:scale(1);opacity:1}}@-moz-keyframes popin{from{-moz-transform:scale(.8);opacity:0}to{-moz-transform:scale(1);opacity:1}}@keyframes popin{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}",O="@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@-moz-keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadein{from{opacity:0}to{opacity:1}}",L="@-webkit-keyframes flipintoright{from{-webkit-transform:rotateY(90deg) scale(.9)}to{-webkit-transform:rotateY(0)}}@-moz-keyframes flipintoright{from{-moz-transform:rotateY(90deg) scale(.9)}to{-moz-transform:rotateY(0)}}@keyframes flipintoright{from{transform:rotateY(90deg) scale(.9)}to{transform:rotateY(0)}}",G="@-webkit-keyframes slideinfromright{from{-webkit-transform:translate3d({start},0,0)}to{-webkit-transform:translate3d(0,0,0)}}@-moz-keyframes slideinfromright{from{-moz-transform:translateX({start})}to{-moz-transform:translateX(0)}}@keyframes slideinfromright{from{transform:translateX({start})}to{transform:translateX(0)}}",R="@-webkit-keyframes slideinfromleft{from{-webkit-transform:translate3d({start},0,0)}to{-webkit-transform:translate3d(0,0,0)}}@-moz-keyframes slideinfromleft{from{-moz-transform:translateX({start})}to{-moz-transform:translateX(0)}}@keyframes slideinfromleft{from{transform:translateX({start})}to{transform:translateX(0)}}",F="@-webkit-keyframes flowinfromright{0%{-webkit-transform:translateX(100%) scale(.7)}30%,40%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(0) scale(1)}}@-moz-keyframes flowinfromright{0%{-moz-transform:translateX(100%) scale(.7)}30%,40%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(0) scale(1)}}@keyframes flowinfromright{0%{transform:translateX(100%) scale(.7)}30%,40%{transform:translateX(0) scale(.7)}100%{transform:translateX(0) scale(1)}}",M="@-webkit-keyframes slideinfrombottom{from{-webkit-transform:translateY({start})}to{-webkit-transform:translateY(0)}}@-moz-keyframes slideinfrombottom{from{-moz-transform:translateY({start})}to{-moz-transform:translateY(0)}}@keyframes slideinfrombottom{from{transform:translateY({start})}to{transform:translateY(0)}}",A="@-webkit-keyframes slideinfromtop{from{-webkit-transform:translateY({start})}to{-webkit-transform:translateY(0)}}@-moz-keyframes slideinfromtop{from{-moz-transform:translateY({start})}to{-moz-transform:translateY(0)}}@keyframes slideinfromtop{from{transform:translateY({start})}to{transform:translateY(0)}}",D="@-webkit-keyframes slideouttoleft{from{-webkit-transform:translate3d(0,0,0)}to{-webkit-transform:translate3d({end},0,0)}}@-moz-keyframes slideouttoleft{from{-moz-transform:translateX(0)}to{-moz-transform:translateX({end})}}@keyframes slideouttoleft{from{transform:translateX(0)}to{transform:translateX({end})}}",q="@-webkit-keyframes slideouttoright{from{-webkit-transform:translate3d(0,0,0)}to{-webkit-transform:translate3d({end},0,0)}}@-moz-keyframes slideouttoright{from{-moz-transform:translateX(0)}to{-moz-transform:translateX({end})}}@keyframes slideouttoright{from{transform:translateX(0)}to{transform:translateX({end})}}",V="@-webkit-keyframes popout{from{-webkit-transform:scale(1);opacity:1}to{-webkit-transform:scale(.8);opacity:0}}@-moz-keyframes popout{from{-moz-transform:scale(1);opacity:1}to{-moz-transform:scale(.8);opacity:0}}@keyframes popout{from{transform:scale(1);opacity:1}to{transform:scale(.8);opacity:0}}",j="@-webkit-keyframes fadeout{from{opacity:1}to{opacity:0}}@-moz-keyframes fadeout{from{opacity:1}to{opacity:0}}@keyframes fadeout{from{opacity:1}to{opacity:0}}",U="@-webkit-keyframes flipouttoright{from{-webkit-transform:rotateY(0)}to{-webkit-transform:rotateY(90deg) scale(.9)}}@-moz-keyframes flipouttoright{from{-moz-transform:rotateY(0)}to{-moz-transform:rotateY(90deg) scale(.9)}}@keyframes flipouttoright{from{transform:rotateY(0)}to{transform:rotateY(90deg) scale(.9)}}",_="@-webkit-keyframes flowouttoright{0%{-webkit-transform:translateX(0) scale(1)}60%,70%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(100%) scale(.7)}}@-moz-keyframes flowouttoright{0%{-moz-transform:translateX(0) scale(1)}60%,70%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(100%) scale(.7)}}@keyframes flowouttoright{0%{transform:translateX(0) scale(1)}60%,70%{transform:translateX(0) scale(.7)}100%{transform:translateX(100%) scale(.7)}}",Q="@-webkit-keyframes slideouttotop{from{-webkit-transform:translateY(0)}to{-webkit-transform:translateY({end})}}@-moz-keyframes slideouttotop{from{-moz-transform:translateY(0)}to{-moz-transform:translateY({end})}}@keyframes slideouttotop{from{transform:translateY(0)}to{transform:translateY({end})}}",J="@-webkit-keyframes slideouttobottom{from{-webkit-transform:translateY(0)}to{-webkit-transform:translateY({end})}}@-moz-keyframes slideouttobottom{from{-moz-transform:translateY(0)}to{-moz-transform:translateY({end})}}@keyframes slideouttobottom{from{transform:translateY(0)}to{transform:translateY({end})}}";function K(t){var e=document.createElement("style");e.type="text/css",e.innerHTML=t,e.id=n+"-effect-custom-style",document.getElementsByTagName("head")[0].appendChild(e)}function Z(t){if(y.style.zIndex=g+10,h.style.boxSizing="content-box",-1!=t.minHeight){var e=t.minHeight;window.innerHeight;if("string"==typeof e&&-1!=e.indexOf("%")){var o=o/100*parseInt(e);h.style.minHeight=o+"px"}else h.style.minHeight=parseInt(e)+"px"}if(-1!=t.minWidth){var n=window.innerWidth,r=t.minWidth;if("string"==typeof r&&-1!=r.indexOf("%")){n=n/100*parseInt(r);h.style.minWidth=n+"px"}else h.style.minWidth=parseInt(r)+"px"}if(-1!=t.maxHeight&&t.maxHeight){var a=t.maxHeight,i=window.innerHeight;if(-1!=a.indexOf("%")){i=i/100*parseInt(a);h.style.maxHeight=et(i)}else h.style.maxHeight=et(parseInt(a))}else{i=window.innerHeight;h.style.maxHeight=et(i)}if(-1!=t.maxWidth&&t.maxWidth){var s=t.maxWidth,l=window.innerWidth;if(-1!=s.indexOf("%")){l=l/100*parseInt(s);h.style.maxWidth=$(l)}else h.style.maxWidth=$(parseInt(s))}else{l=window.innerWidth;h.style.maxWidth=$(l)}if(C.borderStyle&&(h.style.borderStyle=C.borderStyle),C.borderColor&&(h.style.borderColor=C.borderColor),C.borderRadius){var d="%";if(C.borderRadiusType)d=C.borderRadiusType;h.style.borderRadius=C.borderRadius+d}h.style.borderWidth=C.borderWidth+"px",C.padding&&(h.style.padding=C.padding+"px");var p=t.width||w;if(-1<p.indexOf("%")){var m=parseFloat(p),f=parseInt(x.width);0!=v.showButton&&"button"!=u.closeButton.type||(f=0),p=m/100*window.innerWidth-2*(C.padding?C.padding:0)-parseFloat(h.style.borderLeftWidth)-parseFloat(h.style.borderRightWidth)-parseFloat(C.shadowSpread)/2-f+"px"}else p=parseFloat(p)-2*(C.padding?C.padding:0)+"px";h.style.width=p,"image"==u.popupType&&(h.style.backgroundImage="url("+C.backgroundImage+")"),C.showBackground&&(C.backgroundImage&&(h.style.backgroundImage="url("+C.backgroundImage+")"),"cover"==C.backgroundMode?(h.style.backgroundSize="cover",h.style.backgroundRepeat="no-repeat"):"contain"==C.backgroundMode?(h.style.backgroundSize="contain",h.style.backgroundRepeat="no-repeat"):"repeat"==C.backgroundMode?h.style.backgroundRepeat="repeat":"fit"==C.backgroundMode?k||((k=document.createElement("img")).style.display="none",document.body.appendChild(k),k.onload=function(){tt(),yt(),ot(),rt(h),jQuery(window).trigger("sgpbPopupReload")},k.src=C.backgroundImage,h.style.backgroundSize="contain",h.style.backgroundRepeat="no-repeat"):h.style.backgroundRepeat="no-repeat");var c=t.height||b;void 0!==c&&-1<c.indexOf("%")?c=parseFloat(c)/100*window.innerHeight-2*(C.padding?C.padding:0)-parseInt(h.style.borderTopWidth)-parseInt(h.style.borderBottomWidth)+"px":c=parseInt(c)-2*(C.padding?C.padding:0)+"px";h.style.height=c,C.showBackground&&C.backgroundColor&&(h.style.backgroundColor=C.backgroundColor),C.shadowColor&&(h.style.boxShadow="0 0 "+C.shadowBlur+"px "+C.shadowSpread+"px "+C.shadowColor),C.scrollingEnabled?h.style.overflow="auto":h.style.overflow="hidden"}function $(t){var e=2*C.padding,o=2*C.shadowSpread,n=2*C.borderWidth,r=4*C.boxBorderWidth,a=2*parseInt(v.right),i=2*parseInt(v.left);return t-=e,t-=34,t-=o,t-=n,t-=r,v.buttonInside||(a&&(t-=Math.abs(a)),i&&(t-=Math.abs(i))),t<0?"30px":t+"px"}function tt(){if(k){var t=k.height,e=k.width,o=window.innerHeight,n=window.innerWidth,r=0,a=0;if(e<n-80&&t<o-80)r=e,a=t;else n-e<o-t?a=(r=n-80)*t/e:r=(a=o-80)*e/t;C.borderWidth,C.padding;var i=C.shadowSpread||0;r<a&&i&&(r-=parseFloat(3.6)),a=a;var s=nt();h.style.backgroundPosition="center",s.width=r+"px",s.height=a+"px"}}function et(t){var e=2*C.padding,o=4*C.shadowSpread,n=2*C.borderWidth,r=4*C.boxBorderWidth,a=2*parseInt(v.top),i=2*parseInt(v.bottom);return t-=e,o&&(t-=o,t-=35),t-=n,t-=r,v.buttonInside||(i&&(t-=Math.abs(i)),a&&(t-=Math.abs(a))),t<0?"30px":t+"px"}function ot(){y.style.position="fixed";var t=C.borderWidth||0;C.padding;void 0===e.left||isNaN(parseInt(e.left))&&"center"!=e.left?"center"==e.right?y.style.left=(window.innerWidth-parseInt(h.clientWidth)-2*t)/2+"px":y.style.left=window.innerWidth-parseInt(e.right)-parseInt(h.clientWidth)-2*t+"px":"center"==e.left?y.style.left=(window.innerWidth-parseInt(h.clientWidth)-2*t)/2+"px":y.style.left=parseInt(e.left)+"px",void 0===e.top||isNaN(parseInt(e.top))&&"center"!=e.top?"center"==e.bottom?y.style.top=(window.innerHeight-parseInt(h.clientHeight)-2*t)/2+"px":y.style.bottom=e.bottom+"px":"center"==e.top?y.style.top=(window.innerHeight-parseInt(h.clientHeight)-2*t)/2+"px":y.style.top=e.top+"px"}function nt(){for(var t=window.innerWidth,e=window.innerHeight,o=null,n=[],r=0;r<T.length;r++){(-1==(a=T[r]).screenFrom.width&&-1==a.screenTo.width||-1==a.screenFrom.width&&t<a.screenTo.width||-1==a.screenTo.width&&t>a.screenFrom.width||t<a.screenTo.width&&t>a.screenFrom.width)&&n.push(a)}for(r=0;r<n.length;r++){var a;-1==(a=n[r]).screenFrom.height&&-1==a.screenTo.height||-1==a.screenFrom.height&&e<a.screenTo.height||-1==a.screenTo.height&&e>a.screenFrom.height||e<a.screenTo.height&&e>a.screenFrom.height||(n.splice(r,1),r--)}return(o=n[0])||(o={screenFrom:{width:-1,height:-1},screenTo:{width:-1,height:-1},width:"640px",height:b,maxWidth:-1,maxHeight:-1,minWidth:-1,minHeight:-1}),o}function rt(t){if("left"==v.buttonPosition)s.style.left=x.width/2+parseFloat(v.leftPosition)+"px";else if("right"==v.buttonPosition){var e=C.borderWidth||0,o=0,n=t.style.width;t.style.maxWidth&&parseInt(n)>parseInt(t.style.maxWidth)&&(n=t.style.maxWidth),o=parseFloat(n)-Math.ceil(x.width/2)+2*C.padding+2*e,v.leftPosition&&(o-=parseFloat(v.leftPosition)),s.style.left=o+"px"}s.style.top=parseFloat(v.topPosition)+"px"}function at(){clearTimeout(t),t=setTimeout(function(){tt(),yt(),ot(),rt(h),jQuery(window).trigger("sgpbPopupReload")},500)}function it(t){switch(t.mode){case"soft":lt(t);break;case"agressive1":o=t,window.addEventListener("beforeunload",function(t){return(t||window.event).returnValue=o.message,o.message});break;case"agressive2":st(t);break;case"full":lt(e=t),st(e)}var e,o}function st(e){window.addEventListener("beforeunload",function(t){return ut(!1,"onExit"),t.returnValue=e.message,e.message})}function lt(t){document.addEventListener("mouseout",function(t){null==t.toElement&&null==t.relatedTarget&&ut(!1,"onExit")})}function dt(t){var e=parseInt(t.position);0<t.position.indexOf("%")&&(e=document.body.scrollHeight*(e/100)-window.innerHeight/2);var o=function(){(document.body.scrollTop>=e||document.documentElement.scrollTop>=e)&&(ut(!1,"onScroll"),window.removeEventListener("scroll",o))};window.addEventListener("scroll",o)}function pt(t){var e=t.target;if(e)for(var o=document.getElementsByClassName(e),n=0;n<o.length;n++)o[n].addEventListener("click",function(){ut(!1,"onClick")})}function mt(t){var e=t.target;if(e)for(var o=document.getElementsByClassName(e),n=0;n<o.length;n++)o[n].addEventListener("mouseover",function(){ut(!1,"onHover")})}function ft(t){var e,o=function(){e&&clearInterval(e),e=setInterval(function(){ut()},1e3*t.timeout)};document.addEventListener("mousemove",o),document.addEventListener("mousedown",o),document.addEventListener("keydown",o),document.addEventListener("scroll",o),o()}function ct(){(a=document.createElement("div")).id=n+"-popup-dialog-main-div-wrapper",a.className=n+"-popup-dialog-main-div-wrapper",(h=document.createElement("div")).id=n+"-popup-dialog-main-div";var t=nt();(y=document.createElement("div")).className=n+"-popup-dialog-main-div-theme-wrapper-"+u.popupTheme,Z(t),C.addClass&&(h.className=C.addClass),a.style.display="none";var e=function(){var t=document.createElement("div");if(t.innerHTML="",S){var e=document.getElementById(S);return e.previousElementSibling?SGPopup.inlinePrevTarget={hasPreviousElement:!0,node:e.previousElementSibling}:SGPopup.inlinePrevTarget={hasPreviousElement:!1,node:e.parentNode},t.appendChild(e),t}return t}();if(z){var o=document.createElement("div");o.setAttribute("style","height:100%;width:100%;overflow:"+(C.scrollingEnabled?"auto":"hidden")+";"),o.appendChild(z),h.appendChild(o)}else h.innerHTML='<div style="height:100%;width:100%;overflow:'+(C.scrollingEnabled?"auto":"hidden")+';">'+e.innerHTML+"</div>";s=void 0!==u.closeButton.type&&"button"==u.closeButton.type?document.createElement(u.closeButton.type):document.createElement("IMG"),!1!==u.closeBehavior.showButton&&(s.className=n+"-popup-close-button-"+u.popupTheme,y.appendChild(s)),y.appendChild(h),a.appendChild(y),document.body.appendChild(a),r=!0,function(){for(var t=0;t<p.length;t++){var e=p[t];switch(e.type){case"load":"complete"===document.readyState?ut(!1,"onLoad"):window.addEventListener("load",function(){ut(!1,"onLoad")},!1);break;case"click":pt(e);break;case"hover":mt(e);break;case"scroll":dt(e);break;case"exit":it(e);break;case"inactivity":ft(e)}}}()}function ut(t,e){if(!o&&(coockieValue=SGPopup.getCookie(l),!coockieValue&&(d&&SGPopup.setCookie(l,"true",parseInt(d)),t||!P||"function"!=typeof P||P()))){r||ct(),o=!0;window.addEventListener("resize",at),v.contentShouldClose&&(h.onclick=ht),setTimeout(function(){var t;W&&"function"==typeof W&&W(),I.visible&&((i=document.createElement("DIV")).style.zIndex=g,i.style.backgroundColor=I.color,i.style.opacity=I.opacity/100,i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.width="100%",i.style.height="100%",I.addClass&&(i.className=I.addClass),v.overlayShouldClose&&(i.onclick=ht),document.body.appendChild(i)),a.style.display="",ot(),function(){if(!f.status)return;y.style.animationTimingFunction="linear";var t=C.borderWidth||0,e=C.padding||0;if("slideleft"==f.type){var o=window.innerWidth-parseInt(y.style.left)+2*t;K(G.replace(/\{start\}/g,o+"px")),y.style.animationName="slideinfromright"}else"slideright"==f.type?(o=parseInt(h.style.width)+parseInt(y.style.left)+2*t+2*e,K(R.replace(/\{start\}/g,"-"+o+"px")),y.style.animationName="slideinfromleft"):"pop"==f.type?(K(Y),y.style.transform="scale(1)",y.style.animationName="popin",y.style.opacity="1"):"fade"==f.type?(K(O),y.style.animationName="fadein",y.style.opacity="1"):"flip"==f.type?(K(L),y.style.animationName="flipintoright",y.style.transform="translateX(0)"):"turn"==f.type?(K(L),y.style.animationName="flipintoright",y.style.transform="translateX(0)",y.style.transformOrigin="0"):"flow"==f.type?(K(F),y.style.animationName="flowinfromright",y.style.transformOrigin="50% 30%"):"slideup"==f.type?(o=y.style.bottom?parseInt(h.style.height)+2*t+parseInt(y.style.bottom)+2*e:window.innerHeight-parseInt(y.style.top)+2*t,K(M.replace(/\{start\}/g,o+"px")),y.style.animationName="slideinfrombottom"):"slidedown"==f.type?(o=(y.style.top?parseInt(y.style.top)+2*t+2*e:window.innerHeight-parseInt(y.style.bottom)-parseInt(h.style.height))+parseInt(h.style.height),K(A.replace(/\{start\}/g,"-"+o+"px")),y.style.animationName="slideinfromtop"):y.className+=" sg-animated "+f.type;y.style.animationDuration=f.speed+"ms"}(),t=h,x.data&&!1!==v.showButton&&(s.style.zIndex=g+20,s.style.position="absolute",s.style.float="left",s.style.top=v.top,s.style.right=v.right,s.style.bottom=v.bottom,s.style.left=v.left,"button"==x.type&&(s.id=n+"-close-button",s.innerHTML=u.closeButton.text),s.style.width=x.width+x.widthType,s.style.cursor="pointer",s.style.height=x.height+x.heightType,s.src=x.data,s.style.backgroundRepeat="no-repeat",s.style.backgroundSize="cover",s.onclick=ht,rt(t)),N&&"function"==typeof N&&N()},m),v.autoclose&&0<v.autoclose&&setTimeout(ht,1e3*v.autoclose),v.escShouldClose&&(document.onkeydown=function(t){27==(t=t||window.event).keyCode&&ht()})}}function ht(t){if((t||!E||"function"!=typeof E||E())&&(!1!==v.allowed||1==t)){H&&"function"==typeof H&&H(),window.removeEventListener("resize",at);var e=function(){a&&(a.style.display="none",i&&(i.style.display="none",document.body.removeChild(i),i=null),X&&"function"==typeof X&&(X(),o=!1),B())};"none"!=c.type&&0<c.speed?(!function(){y.style.animationTimingFunction="linear";var t=C.borderWidth||0,e=C.padding||0;if("slideleft"==c.type){var o=parseInt(h.style.width)+parseInt(y.style.left)+2*t+2*e;K(D.replace(/\{end\}/g,"-"+o+"px")),y.style.animationName="slideouttoleft"}else"slideright"==c.type?(o=window.innerWidth-parseInt(y.style.left)+2*t,K(q.replace(/\{end\}/g,o+"px")),y.style.animationName="slideouttoright"):"pop"==c.type?(K(V),y.style.animationName="popout",y.style.transform="scale(0)",y.style.opacity="0"):"fade"==c.type?(K(j),y.style.animationName="fadeout",y.style.opacity="0"):"flip"==c.type?(K(U),y.style.animationName="flipouttoright",y.style.transform="rotateY(-90deg) scale(.9)"):"turn"==c.type?(K(U),y.style.animationName="flipouttoright",y.style.transform="rotateY(-90deg) scale(.9)",y.style.transformOrigin="0"):"flow"==c.type?(K(_),y.style.animationName="flowouttoright",y.style.transformOrigin="50% 30%"):"slideup"==c.type?(o=(y.style.top?parseInt(y.style.top)+2*t+2*e:window.innerHeight-parseInt(y.style.bottom)-parseInt(h.style.height))+parseInt(h.style.height),K(Q.replace(/\{end\}/g,"-"+o+"px")),y.style.animationName="slideouttotop"):"slidedown"==c.type?(o=y.style.bottom?parseInt(h.style.height)+2*t+parseInt(y.style.bottom)+2*e:window.innerHeight-parseInt(y.style.top)+2*t,K(J.replace(/\{end\}/g,o+"px")),y.style.animationName="slideouttobottom"):y.className=n+"-popup-dialog-main-div-theme-wrapper-"+u.popupTheme+" sg-animated "+c.type;y.style.animationDuration=c.speed+"ms",window.setTimeout(function(){y.className=n+"-popup-dialog-main-div-theme-wrapper-"+u.popupTheme,y.style.animationName="",y.style.transform="",y.style.transformOrigin="",y.style.opacity=""},parseInt(c.speed)+10)}(),setTimeout(e,c.speed)):e()}}var yt=function(){Z(nt())};this.open=function(t){ut(t)},this.init=function(){ct()},this.close=function(t){ht(t)},this.resize=function(){yt()},this.setOpenDelay=function(t){m=t,r&&ct()},this.getOpenDelay=function(){return m},this.setOpenAnimation=function(t){f=t,r&&ct()},this.getOpenAnimation=function(){return f},this.setCloseAnimation=function(t){c=t,r&&ct()},this.getCloseAnimation=function(){return c},this.setCloseBehavior=function(t){v=t,r&&ct()},this.getCloseBehavior=function(){return v},this.setCloseButton=function(t){x=t},this.getCloseButton=function(){return x},this.setOverlay=function(t){I=t,r&&ct()},this.getOverlay=function(){return I},this.setContentBox=function(t){C=t,r&&ct()},this.getContentBox=function(){return C},this.setContents=function(t){z=t,r&&ct()},this.getContents=function(){return z},this.setPosition=function(t){e=t},this.getPosition=function(){return e},this.setSizingRanges=function(t){T=t,r&&ct()},this.getSizingRanges=function(){return T},this.setShouldOpen=function(t){P=t,r&&ct()},this.getShouldOpen=function(){return P},this.setWillOpen=function(t){W=t,r&&ct()},this.getWillOpen=function(){return W},this.setDidOpen=function(t){N=t,r&&ct()},this.getDidOpen=function(){return N},this.setShouldClose=function(t){E=t,r&&ct()},this.getShouldClose=function(){return E},this.setWillClose=function(t){H=t,r&&ct()},this.getWillClose=function(){return H},this.setDidClose=function(t){X=t,r&&ct()},this.getDidClose=function(){return X}}SGPopup.sendGetRequest=function(t,e,o){var n;window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n.onreadystatechange=function(){4==n.readyState&&n.status<400&&e(n,o)},n.open("GET",t,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.send(null)},SGPopup.getCookie=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var r=o[n];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(e))return r.substring(e.length,r.length)}return""},SGPopup.setCookie=function(t,e,o){var n=new Date;o&&!isNaN(o)||(o=18250),n.setDate(n.getDate()+o);var r=e+(null==o?";":"; expires="+n.toUTCString());document.cookie=t+"="+r},SGPopup.getPopup=function(t){for(var e=null;t&&t!=document;){if(t.hasAttribute("data-sg-popup-hash-id")){e=t.getAttribute("data-sg-popup-hash-id");break}t=t.parentNode}if(e)return SGPopupLoader.popups[e]},SGPopup.openSGPopup=function(){var t=SGPopupLoader.ids,e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.href=SG_APP_URL+"public/assets/lib/SGPopup.css",document.head.appendChild(e);for(var o=function(t,e){var o=new SGPopup(JSON.parse(t.responseText));(SGPopupLoader.popups[e]=o).init()},n=0;n<t.length;n++)SGPopup.sendGetRequest(SG_APP_URL+"api/popups/"+t[n],o,t[n])};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function SGPopup(config)
|
2 |
+
{var integrations=config.integrations;var popupName=config.popupName;var initialConfig=config;var prefix=config.prefix||'sgpb';var isInited=false;var mainDiv=null;var contentDiv=null;var DIV=null;var opened=false;var resizeTimeout=null;var overlayDiv=null;var defaultZIndex=config.contentBox.zIndex||9999;var defaultWidth="640px";var defaultHeight=config.autoHeight;var closeButtonImage=null;var popupId=config.id;var showOnce=config.showOnce||false;var events=config.events||[];var openDelay=config.openDelay||0;var popupTheme=config.popupTheme;var popupType=config.popupType;var fitBackgroundImg=null;var openAnimation=config.openAnimation||{type:"none",speed:0};var closeAnimation=config.closeAnimation||{type:"none",speed:0};var closeBehavior=config.closeBehavior||{allowed:true,showButton:true,buttonPosition:'topLeft',buttonInside:true,autoclose:false,overlayShouldClose:true,contentShouldClose:false,escShouldClose:true};var closeButton=config.closeButton||{data:sgpbPublicUrl+'img/close.png',width:16,height:16,widthType:'px',heightType:'px',closeButtonType:'IMG',closeButtonText:'Close'};var overlay=config.overlay||{visible:true,color:"#000",opacity:0.7};var contentBox=config.contentBox||{padding:8,showBackground:true,backgroundColor:"#fff",borderStyle:"solid",borderColor:"#ccc",borderRadius:config.contentBox.borderRadius,borderRadiusType:config.contentBox.borderRadiusType,borderWidth:1,shadowColor:"#ccc",shadowSpread:0,shadowBlur:10,scrollingEnabled:true};var contents=config.contents||"";var inline=config.inline||false;var href=config.href||false;var position=config.position||{left:"center",top:"center"};if((typeof position.left=="undefined"||(isNaN(parseInt(position.left))&&position.left!="center"))&&(typeof position.right=="undefined"||(isNaN(parseInt(position.right))&&position.right!="center"))){position.left="center";}
|
3 |
+
if((typeof position.top=="undefined"||(isNaN(parseInt(position.top))&&position.top!="center"))&&(typeof position.bottom=="undefined"||(isNaN(parseInt(position.bottom))&&position.bottom!="center"))){position.top="center";}
|
4 |
+
var sizingRanges=config.sizingRanges||[{screenFrom:{width:-1,height:-1},screenTo:{width:-1,height:-1},width:defaultWidth,height:defaultHeight,maxWidth:-1,maxHeight:-1,minWidth:-1,minHeight:-1}];var shouldOpen=config.shouldOpen||function(){return true;};var willOpen=config.willOpen||function(){};var didOpen=config.didOpen||function(){};var shouldClose=config.shouldClose||function(){return true;};var willClose=config.willClose||function(){};var didClose=config.didClose||function(){};SGPopup.inlinePrevTarget=SGPopup.inlinePrevTarget||{};function resetInlineContent()
|
5 |
+
{if(inline){var htmlElement=document.getElementById(inline);if(SGPopup.inlinePrevTarget.hasPreviousElement){SGPopup.inlinePrevTarget.parentNode.insertBefore(htmlElement,SGPopup.inlinePrevTarget.node.nextSibling);}
|
6 |
+
else{SGPopup.inlinePrevTarget.node.appendChild(htmlElement);}}}
|
7 |
+
var OPEN_ANIMATION_POP="@-webkit-keyframes popin{from{-webkit-transform:scale(.8);opacity:0}to{-webkit-transform:scale(1);opacity:1}}@-moz-keyframes popin{from{-moz-transform:scale(.8);opacity:0}to{-moz-transform:scale(1);opacity:1}}@keyframes popin{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}";var OPEN_ANIMATION_FADE="@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@-moz-keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadein{from{opacity:0}to{opacity:1}}";var OPEN_ANIMATION_FLIP="@-webkit-keyframes flipintoright{from{-webkit-transform:rotateY(90deg) scale(.9)}to{-webkit-transform:rotateY(0)}}@-moz-keyframes flipintoright{from{-moz-transform:rotateY(90deg) scale(.9)}to{-moz-transform:rotateY(0)}}@keyframes flipintoright{from{transform:rotateY(90deg) scale(.9)}to{transform:rotateY(0)}}";var OPEN_ANIMATION_SLIDELEFT="@-webkit-keyframes slideinfromright{from{-webkit-transform:translate3d({start},0,0)}to{-webkit-transform:translate3d(0,0,0)}}@-moz-keyframes slideinfromright{from{-moz-transform:translateX({start})}to{-moz-transform:translateX(0)}}@keyframes slideinfromright{from{transform:translateX({start})}to{transform:translateX(0)}}";var OPEN_ANIMATION_SLIDERIGHT="@-webkit-keyframes slideinfromleft{from{-webkit-transform:translate3d({start},0,0)}to{-webkit-transform:translate3d(0,0,0)}}@-moz-keyframes slideinfromleft{from{-moz-transform:translateX({start})}to{-moz-transform:translateX(0)}}@keyframes slideinfromleft{from{transform:translateX({start})}to{transform:translateX(0)}}";var OPEN_ANIMATION_FLOW="@-webkit-keyframes flowinfromright{0%{-webkit-transform:translateX(100%) scale(.7)}30%,40%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(0) scale(1)}}@-moz-keyframes flowinfromright{0%{-moz-transform:translateX(100%) scale(.7)}30%,40%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(0) scale(1)}}@keyframes flowinfromright{0%{transform:translateX(100%) scale(.7)}30%,40%{transform:translateX(0) scale(.7)}100%{transform:translateX(0) scale(1)}}";var OPEN_ANIMATION_SLIDEUP="@-webkit-keyframes slideinfrombottom{from{-webkit-transform:translateY({start})}to{-webkit-transform:translateY(0)}}@-moz-keyframes slideinfrombottom{from{-moz-transform:translateY({start})}to{-moz-transform:translateY(0)}}@keyframes slideinfrombottom{from{transform:translateY({start})}to{transform:translateY(0)}}";var OPEN_ANIMATION_SLIDEDOWN="@-webkit-keyframes slideinfromtop{from{-webkit-transform:translateY({start})}to{-webkit-transform:translateY(0)}}@-moz-keyframes slideinfromtop{from{-moz-transform:translateY({start})}to{-moz-transform:translateY(0)}}@keyframes slideinfromtop{from{transform:translateY({start})}to{transform:translateY(0)}}";var CLOSE_ANIMATION_SLIDELEFT="@-webkit-keyframes slideouttoleft{from{-webkit-transform:translate3d(0,0,0)}to{-webkit-transform:translate3d({end},0,0)}}@-moz-keyframes slideouttoleft{from{-moz-transform:translateX(0)}to{-moz-transform:translateX({end})}}@keyframes slideouttoleft{from{transform:translateX(0)}to{transform:translateX({end})}}";var CLOSE_ANIMATION_SLIDERIGHT="@-webkit-keyframes slideouttoright{from{-webkit-transform:translate3d(0,0,0)}to{-webkit-transform:translate3d({end},0,0)}}@-moz-keyframes slideouttoright{from{-moz-transform:translateX(0)}to{-moz-transform:translateX({end})}}@keyframes slideouttoright{from{transform:translateX(0)}to{transform:translateX({end})}}";var CLOSE_ANIMATION_POP="@-webkit-keyframes popout{from{-webkit-transform:scale(1);opacity:1}to{-webkit-transform:scale(.8);opacity:0}}@-moz-keyframes popout{from{-moz-transform:scale(1);opacity:1}to{-moz-transform:scale(.8);opacity:0}}@keyframes popout{from{transform:scale(1);opacity:1}to{transform:scale(.8);opacity:0}}";var CLOSE_ANIMATION_FADE="@-webkit-keyframes fadeout{from{opacity:1}to{opacity:0}}@-moz-keyframes fadeout{from{opacity:1}to{opacity:0}}@keyframes fadeout{from{opacity:1}to{opacity:0}}";var CLOSE_ANIMATION_FLIP="@-webkit-keyframes flipouttoright{from{-webkit-transform:rotateY(0)}to{-webkit-transform:rotateY(90deg) scale(.9)}}@-moz-keyframes flipouttoright{from{-moz-transform:rotateY(0)}to{-moz-transform:rotateY(90deg) scale(.9)}}@keyframes flipouttoright{from{transform:rotateY(0)}to{transform:rotateY(90deg) scale(.9)}}";var CLOSE_ANIMATION_FLOW="@-webkit-keyframes flowouttoright{0%{-webkit-transform:translateX(0) scale(1)}60%,70%{-webkit-transform:translateX(0) scale(.7)}100%{-webkit-transform:translateX(100%) scale(.7)}}@-moz-keyframes flowouttoright{0%{-moz-transform:translateX(0) scale(1)}60%,70%{-moz-transform:translateX(0) scale(.7)}100%{-moz-transform:translateX(100%) scale(.7)}}@keyframes flowouttoright{0%{transform:translateX(0) scale(1)}60%,70%{transform:translateX(0) scale(.7)}100%{transform:translateX(100%) scale(.7)}}";var CLOSE_ANIMATION_SLIDEUP="@-webkit-keyframes slideouttotop{from{-webkit-transform:translateY(0)}to{-webkit-transform:translateY({end})}}@-moz-keyframes slideouttotop{from{-moz-transform:translateY(0)}to{-moz-transform:translateY({end})}}@keyframes slideouttotop{from{transform:translateY(0)}to{transform:translateY({end})}}";var CLOSE_ANIMATION_SLIDEDOWN="@-webkit-keyframes slideouttobottom{from{-webkit-transform:translateY(0)}to{-webkit-transform:translateY({end})}}@-moz-keyframes slideouttobottom{from{-moz-transform:translateY(0)}to{-moz-transform:translateY({end})}}@keyframes slideouttobottom{from{transform:translateY(0)}to{transform:translateY({end})}}";function addAnimationClass(classString)
|
8 |
+
{var style=document.createElement('style');style.type='text/css';style.innerHTML=classString;style.id=prefix+"-effect-custom-style";document.getElementsByTagName('head')[0].appendChild(style);}
|
9 |
+
function setMainDivStyles(sizeConfig)
|
10 |
+
{contentDiv.style.zIndex=defaultZIndex+10;mainDiv.style.boxSizing='content-box';if(sizeConfig.minHeight!=-1){var minHeight=sizeConfig.minHeight;var popupMinHeight=window.innerHeight;if(typeof minHeight=='string'&&minHeight.indexOf('%')!=-1){var popupMinhHeight=(popupMinhHeight/100)*parseInt(minHeight);mainDiv.style.minHeight=popupMinhHeight+'px';}
|
11 |
+
else{mainDiv.style.minHeight=parseInt(minHeight)+'px';}}
|
12 |
+
if(sizeConfig.minWidth!=-1){var popupMinhWidth=window.innerWidth;var minWidth=sizeConfig.minWidth;if(typeof minWidth=='string'&&minWidth.indexOf('%')!=-1){var popupMinhWidth=(popupMinhWidth/100)*parseInt(minWidth);mainDiv.style.minWidth=popupMinhWidth+'px';}
|
13 |
+
else{mainDiv.style.minWidth=parseInt(minWidth)+'px';}}
|
14 |
+
if(sizeConfig.maxHeight!=-1&&sizeConfig.maxHeight){var maxHeight=sizeConfig.maxHeight;var popupMaxHeight=window.innerHeight;if(maxHeight.indexOf('%')!=-1){var popupMaxHeight=(popupMaxHeight/100)*parseInt(maxHeight);mainDiv.style.maxHeight=calculateMaxHeight(popupMaxHeight);}
|
15 |
+
else{mainDiv.style.maxHeight=calculateMaxHeight(parseInt(maxHeight));}}
|
16 |
+
else{var popupMaxHeight=window.innerHeight;mainDiv.style.maxHeight=calculateMaxHeight(popupMaxHeight);}
|
17 |
+
if(sizeConfig.maxWidth!=-1&&sizeConfig.maxWidth){var maxWidth=sizeConfig.maxWidth;var popupMaxWidth=window.innerWidth;if(maxWidth.indexOf('%')!=-1){var popupMaxWidth=(popupMaxWidth/100)*parseInt(maxWidth);mainDiv.style.maxWidth=calculateMaxWidth(popupMaxWidth);}
|
18 |
+
else{mainDiv.style.maxWidth=calculateMaxWidth(parseInt(maxWidth));}}
|
19 |
+
else{var popupMaxWidth=window.innerWidth;mainDiv.style.maxWidth=calculateMaxWidth(popupMaxWidth);}
|
20 |
+
if(contentBox.borderStyle){mainDiv.style.borderStyle=contentBox.borderStyle;}
|
21 |
+
if(contentBox.borderColor){mainDiv.style.borderColor=contentBox.borderColor;}
|
22 |
+
if(contentBox.borderRadius){var borderRadiusMeasure='%';if(contentBox.borderRadiusType){var borderRadiusMeasure=contentBox.borderRadiusType;}
|
23 |
+
mainDiv.style.borderRadius=contentBox.borderRadius+borderRadiusMeasure;}
|
24 |
+
mainDiv.style.borderWidth=contentBox.borderWidth+"px";if(contentBox.padding){mainDiv.style.padding=contentBox.padding+"px";}
|
25 |
+
var widthToSet=sizeConfig.width||defaultWidth;if(widthToSet.indexOf("%")>-1){var widthNum=parseFloat(widthToSet);var closeButtonWidthToSubtract=parseInt(closeButton.width);if(closeBehavior.showButton==false||config.closeButton.type=='button'){closeButtonWidthToSubtract=0;}
|
26 |
+
widthToSet=(((widthNum/100)*window.innerWidth)-(2*(contentBox.padding?contentBox.padding:0))-parseFloat(mainDiv.style.borderLeftWidth)-parseFloat(mainDiv.style.borderRightWidth)-(parseFloat(contentBox.shadowSpread)/2)-closeButtonWidthToSubtract)+'px';}
|
27 |
+
else{widthToSet=parseFloat(widthToSet)-2*(contentBox.padding?contentBox.padding:0)+'px';}
|
28 |
+
mainDiv.style.width=widthToSet;if(config.popupType=='image'){mainDiv.style.backgroundImage="url("+contentBox.backgroundImage+")";}
|
29 |
+
if(contentBox.showBackground){if(contentBox.backgroundImage){mainDiv.style.backgroundImage="url("+contentBox.backgroundImage+")";}
|
30 |
+
if(contentBox.backgroundMode=="cover"){mainDiv.style.backgroundSize="cover";mainDiv.style.backgroundRepeat="no-repeat";}
|
31 |
+
else if(contentBox.backgroundMode=="contain"){mainDiv.style.backgroundSize="contain";mainDiv.style.backgroundRepeat="no-repeat";}
|
32 |
+
else if(contentBox.backgroundMode=="repeat"){mainDiv.style.backgroundRepeat="repeat";}
|
33 |
+
else if(contentBox.backgroundMode=='fit'){if(!fitBackgroundImg){fitBackgroundImg=document.createElement('img');fitBackgroundImg.style.display='none';document.body.appendChild(fitBackgroundImg);fitBackgroundImg.onload=function(){windowResizeHandler();}
|
34 |
+
fitBackgroundImg.src=contentBox.backgroundImage;mainDiv.style.backgroundSize='contain';mainDiv.style.backgroundRepeat='no-repeat';}}
|
35 |
+
else{mainDiv.style.backgroundRepeat="no-repeat";}}
|
36 |
+
var heightToSet=sizeConfig.height||defaultHeight;if(typeof heightToSet!='undefined'&&heightToSet.indexOf("%")>-1){var heightNum=parseFloat(heightToSet);heightToSet=(((heightNum/100)*window.innerHeight)-(2*(contentBox.padding?contentBox.padding:0))-parseInt(mainDiv.style.borderTopWidth)-parseInt(mainDiv.style.borderBottomWidth))+"px";}
|
37 |
+
else{heightToSet=parseInt(heightToSet)-2*(contentBox.padding?contentBox.padding:0)+"px";}
|
38 |
+
mainDiv.style.height=heightToSet;if(contentBox.showBackground&&contentBox.backgroundColor){mainDiv.style.backgroundColor=contentBox.backgroundColor;}
|
39 |
+
if(contentBox.shadowColor){mainDiv.style.boxShadow="0 0 "+contentBox.shadowBlur+"px "+contentBox.shadowSpread+"px "+contentBox.shadowColor;}
|
40 |
+
if(contentBox.scrollingEnabled){mainDiv.style.overflow="auto";}
|
41 |
+
else{mainDiv.style.overflow="hidden";}}
|
42 |
+
function calculateMaxWidth(maxWidth)
|
43 |
+
{var contentPadding=contentBox.padding*2;var shadowSpread=contentBox.shadowSpread*2;var borderWidth=contentBox.borderWidth*2;var boxBorderWidth=contentBox.boxBorderWidth*4;var closeButtonRight=parseInt(closeBehavior.right)*2;var closeButtonLeft=parseInt(closeBehavior.left)*2;maxWidth-=contentPadding;maxWidth-=34;maxWidth-=shadowSpread;maxWidth-=borderWidth;maxWidth-=boxBorderWidth;if(!closeBehavior.buttonInside){if(closeButtonRight){maxWidth-=Math.abs(closeButtonRight);}
|
44 |
+
if(closeButtonLeft){maxWidth-=Math.abs(closeButtonLeft);}}
|
45 |
+
if(maxWidth<0){return'30px';}
|
46 |
+
return maxWidth+'px';}
|
47 |
+
function setFitBackground()
|
48 |
+
{if(!fitBackgroundImg)return;var imgHeight=fitBackgroundImg.height;var imgWidth=fitBackgroundImg.width;var winHeight=window.innerHeight;var winWidth=window.innerWidth;var minMargin=40;var popupWidth=0,popupHeight=0;if(imgWidth<(winWidth-2*minMargin)&&imgHeight<(winHeight-2*minMargin)){popupWidth=imgWidth;popupHeight=imgHeight;}else{var widthDif=winWidth-imgWidth;var heightDif=winHeight-imgHeight;if(widthDif<heightDif){popupWidth=winWidth-2*minMargin;popupHeight=popupWidth*imgHeight/imgWidth;}else{popupHeight=winHeight-2*minMargin;popupWidth=popupHeight*imgWidth/imgHeight;}}
|
49 |
+
var sizeConfig=getSizeConfig();var border=contentBox.borderWidth||0;var padding=contentBox.padding||0;var shadow=contentBox.shadowSpread||0;popupWidth=parseInt(popupWidth-2);if(popupWidth<=sizeConfig.minWidth){sizeConfig.minWidth=0;}
|
50 |
+
sizeConfig.width=popupWidth+'px';sizeConfig.height=popupHeight+'px';}
|
51 |
+
function calculateMaxHeight(maxHeight)
|
52 |
+
{var contentPadding=contentBox.padding*2;var shadowSpread=contentBox.shadowSpread*4;var borderHeight=contentBox.borderWidth*2;var boxBorderHeight=contentBox.boxBorderWidth*4;var closeButtonTop=parseInt(closeBehavior.top)*2;var closeButtonBottom=parseInt(closeBehavior.bottom)*2;maxHeight-=contentPadding;if(shadowSpread){maxHeight-=shadowSpread;maxHeight-=35;}
|
53 |
+
maxHeight-=borderHeight;maxHeight-=boxBorderHeight;if(!closeBehavior.buttonInside){if(closeButtonBottom){maxHeight-=Math.abs(closeButtonBottom);}
|
54 |
+
if(closeButtonTop){maxHeight-=Math.abs(closeButtonTop);}}
|
55 |
+
if(maxHeight<0){return'30px';}
|
56 |
+
return maxHeight+'px';}
|
57 |
+
function positionPopup()
|
58 |
+
{contentDiv.style.position="fixed";var border=contentBox.borderWidth||0;var padding=contentBox.padding||0;if(typeof position.left!="undefined"&&(!isNaN(parseInt(position.left))||position.left=="center")){if(position.left=="center"){contentDiv.style.left=(window.innerWidth-parseInt(mainDiv.clientWidth)-2*border)/2+"px";}
|
59 |
+
else{contentDiv.style.left=parseInt(position.left)+"px";}}
|
60 |
+
else{if(position.right=="center"){contentDiv.style.left=(window.innerWidth-parseInt(mainDiv.clientWidth)-2*border)/2+"px";}
|
61 |
+
else{contentDiv.style.left=(window.innerWidth-parseInt(position.right)-parseInt(mainDiv.clientWidth)-2*border)+"px";}}
|
62 |
+
if(typeof position.top!="undefined"&&(!isNaN(parseInt(position.top))||position.top=="center")){if(position.top=="center"){contentDiv.style.top=(window.innerHeight-parseInt(mainDiv.clientHeight)-2*border)/2+"px";}
|
63 |
+
else{contentDiv.style.top=position.top+"px";}}
|
64 |
+
else{if(position.bottom=="center"){contentDiv.style.top=(window.innerHeight-parseInt(mainDiv.clientHeight)-2*border)/2+"px";}
|
65 |
+
else{contentDiv.style.bottom=position.bottom+"px";}}}
|
66 |
+
function getSizeConfig()
|
67 |
+
{var windowWidth=window.innerWidth;var windowHeight=window.innerHeight;var config=null;var candidates=[];for(var i=0;i<sizingRanges.length;i++){var tmpConf=sizingRanges[i];if((tmpConf.screenFrom.width==-1&&tmpConf.screenTo.width==-1)||(tmpConf.screenFrom.width==-1&&windowWidth<tmpConf.screenTo.width)||(tmpConf.screenTo.width==-1&&windowWidth>tmpConf.screenFrom.width)||(windowWidth<tmpConf.screenTo.width&&windowWidth>tmpConf.screenFrom.width)){candidates.push(tmpConf);}}
|
68 |
+
for(var i=0;i<candidates.length;i++){var tmpConf=candidates[i];if((tmpConf.screenFrom.height==-1&&tmpConf.screenTo.height==-1)||(tmpConf.screenFrom.height==-1&&windowHeight<tmpConf.screenTo.height)||(tmpConf.screenTo.height==-1&&windowHeight>tmpConf.screenFrom.height)||(windowHeight<tmpConf.screenTo.height&&windowHeight>tmpConf.screenFrom.height)){continue;}
|
69 |
+
else{candidates.splice(i,1);i--;}}
|
70 |
+
config=candidates[0];if(!config){config={screenFrom:{width:-1,height:-1},screenTo:{width:-1,height:-1},width:"640px",height:defaultHeight,maxWidth:-1,maxHeight:-1,minWidth:-1,minHeight:-1}}
|
71 |
+
return config;}
|
72 |
+
function drawOverlay()
|
73 |
+
{if(!overlay.visible){return;}
|
74 |
+
overlayDiv=document.createElement("DIV");overlayDiv.style.zIndex=defaultZIndex;overlayDiv.style.backgroundColor=overlay.color;overlayDiv.style.opacity=overlay.opacity/100;overlayDiv.style.position="fixed";overlayDiv.style.left="0";overlayDiv.style.top="0";overlayDiv.style.width="100%";overlayDiv.style.height="100%";if(overlay.addClass){overlayDiv.className=overlay.addClass;}
|
75 |
+
if(closeBehavior.overlayShouldClose){overlayDiv.onclick=closePopup;}
|
76 |
+
document.body.appendChild(overlayDiv);}
|
77 |
+
function removeOverlay()
|
78 |
+
{if(overlayDiv){overlayDiv.style.display="none";document.body.removeChild(overlayDiv);overlayDiv=null;}}
|
79 |
+
function setCloseButton(mainDiv)
|
80 |
+
{if(!closeButton.data){return;}
|
81 |
+
if(closeBehavior.showButton===false){return;}
|
82 |
+
closeButtonImage.style.zIndex=defaultZIndex+20;closeButtonImage.style.position="absolute";closeButtonImage.style.float="left";closeButtonImage.style.top=closeBehavior.top;closeButtonImage.style.right=closeBehavior.right;closeButtonImage.style.bottom=closeBehavior.bottom;closeButtonImage.style.left=closeBehavior.left;if(closeButton.type=='button'){closeButtonImage.id=prefix+'-close-button';closeButtonImage.innerHTML=config.closeButton.text;}
|
83 |
+
closeButtonImage.style.width=closeButton.width+closeButton.widthType;closeButtonImage.style.cursor="pointer";closeButtonImage.style.height=closeButton.height+closeButton.heightType;closeButtonImage.src=closeButton.data;closeButtonImage.style.backgroundRepeat="no-repeat";closeButtonImage.style.backgroundSize="cover";closeButtonImage.onclick=closePopup;positionCloseButton(mainDiv);}
|
84 |
+
function positionCloseButton(mainDiv)
|
85 |
+
{if(closeBehavior.buttonPosition=="left"){closeButtonImage.style.left=(closeButton.width/2+parseFloat(closeBehavior.leftPosition))+"px";}
|
86 |
+
else if(closeBehavior.buttonPosition=="right"){var border=contentBox.borderWidth||0;var left=0;var mainDivWidth=mainDiv.style.width;if(mainDiv.style.maxWidth&&parseInt(mainDivWidth)>parseInt(mainDiv.style.maxWidth)){mainDivWidth=mainDiv.style.maxWidth;}
|
87 |
+
left=parseFloat(mainDivWidth)-Math.ceil(closeButton.width/2)+2*contentBox.padding+2*border;if(closeBehavior.leftPosition){left=left-parseFloat(closeBehavior.leftPosition);}
|
88 |
+
closeButtonImage.style.left=left+"px";}
|
89 |
+
closeButtonImage.style.top=parseFloat(closeBehavior.topPosition)+"px";}
|
90 |
+
function onWindowRsize()
|
91 |
+
{clearTimeout(resizeTimeout);resizeTimeout=setTimeout(function(){setFitBackground();resizeBox();positionPopup();positionCloseButton(mainDiv);jQuery(window).trigger('sgpbPopupReload')},500);}
|
92 |
+
function windowResizeHandler()
|
93 |
+
{setFitBackground();resizeBox();positionPopup();positionCloseButton(mainDiv);jQuery(window).trigger('sgpbPopupReload')}
|
94 |
+
function setOpenAnimation()
|
95 |
+
{if(!openAnimation.status){return false;}
|
96 |
+
contentDiv.style.animationTimingFunction="linear";var border=contentBox.borderWidth||0;var padding=contentBox.padding||0;if(openAnimation.type=="slideleft"){var start=window.innerWidth-parseInt(contentDiv.style.left)+2*border;addAnimationClass(OPEN_ANIMATION_SLIDELEFT.replace(/\{start\}/g,start+"px"));contentDiv.style.animationName="slideinfromright";}
|
97 |
+
else if(openAnimation.type=="slideright"){var start=parseInt(mainDiv.style.width)+parseInt(contentDiv.style.left)+2*border+2*padding;addAnimationClass(OPEN_ANIMATION_SLIDERIGHT.replace(/\{start\}/g,"-"+start+"px"));contentDiv.style.animationName="slideinfromleft";}
|
98 |
+
else if(openAnimation.type=="pop"){addAnimationClass(OPEN_ANIMATION_POP);contentDiv.style.transform="scale(1)";contentDiv.style.animationName="popin";contentDiv.style.opacity="1";}
|
99 |
+
else if(openAnimation.type=="fade"){addAnimationClass(OPEN_ANIMATION_FADE);contentDiv.style.animationName="fadein";contentDiv.style.opacity="1";}
|
100 |
+
else if(openAnimation.type=="flip"){addAnimationClass(OPEN_ANIMATION_FLIP);contentDiv.style.animationName="flipintoright";contentDiv.style.transform="translateX(0)";}
|
101 |
+
else if(openAnimation.type=="turn"){addAnimationClass(OPEN_ANIMATION_FLIP);contentDiv.style.animationName="flipintoright";contentDiv.style.transform="translateX(0)";contentDiv.style.transformOrigin="0";}
|
102 |
+
else if(openAnimation.type=="flow"){addAnimationClass(OPEN_ANIMATION_FLOW);contentDiv.style.animationName="flowinfromright";contentDiv.style.transformOrigin="50% 30%";}
|
103 |
+
else if(openAnimation.type=="slideup"){var bottom=0;if(contentDiv.style.bottom){bottom=parseInt(mainDiv.style.height)+2*border+parseInt(contentDiv.style.bottom)+2*padding;}
|
104 |
+
else{bottom=window.innerHeight-parseInt(contentDiv.style.top)+2*border;}
|
105 |
+
var start=bottom;addAnimationClass(OPEN_ANIMATION_SLIDEUP.replace(/\{start\}/g,start+"px"));contentDiv.style.animationName="slideinfrombottom";}
|
106 |
+
else if(openAnimation.type=="slidedown"){var top=0;if(contentDiv.style.top){top=parseInt(contentDiv.style.top)+2*border+2*padding;}
|
107 |
+
else{top=window.innerHeight-parseInt(contentDiv.style.bottom)-parseInt(mainDiv.style.height);}
|
108 |
+
var start=top+parseInt(mainDiv.style.height);addAnimationClass(OPEN_ANIMATION_SLIDEDOWN.replace(/\{start\}/g,"-"+start+"px"));contentDiv.style.animationName="slideinfromtop";}
|
109 |
+
else{contentDiv.className+=' sg-animated '+openAnimation.type;}
|
110 |
+
contentDiv.style.animationDuration=openAnimation.speed+"ms";}
|
111 |
+
function setCloseAnimation()
|
112 |
+
{contentDiv.style.animationTimingFunction="linear";var border=contentBox.borderWidth||0;var padding=contentBox.padding||0;if(closeAnimation.type=="slideleft"){var end=parseInt(mainDiv.style.width)+parseInt(contentDiv.style.left)+2*border+2*padding;addAnimationClass(CLOSE_ANIMATION_SLIDELEFT.replace(/\{end\}/g,"-"+end+"px"));contentDiv.style.animationName="slideouttoleft";}
|
113 |
+
else if(closeAnimation.type=="slideright"){var end=window.innerWidth-parseInt(contentDiv.style.left)+2*border;addAnimationClass(CLOSE_ANIMATION_SLIDERIGHT.replace(/\{end\}/g,end+"px"));contentDiv.style.animationName="slideouttoright";}
|
114 |
+
else if(closeAnimation.type=="pop"){addAnimationClass(CLOSE_ANIMATION_POP);contentDiv.style.animationName="popout";contentDiv.style.transform="scale(0)";contentDiv.style.opacity="0";}
|
115 |
+
else if(closeAnimation.type=="fade"){addAnimationClass(CLOSE_ANIMATION_FADE);contentDiv.style.animationName="fadeout";contentDiv.style.opacity="0";}
|
116 |
+
else if(closeAnimation.type=="flip"){addAnimationClass(CLOSE_ANIMATION_FLIP);contentDiv.style.animationName="flipouttoright";contentDiv.style.transform="rotateY(-90deg) scale(.9)";}
|
117 |
+
else if(closeAnimation.type=="turn"){addAnimationClass(CLOSE_ANIMATION_FLIP);contentDiv.style.animationName="flipouttoright";contentDiv.style.transform="rotateY(-90deg) scale(.9)";contentDiv.style.transformOrigin="0";}
|
118 |
+
else if(closeAnimation.type=="flow"){addAnimationClass(CLOSE_ANIMATION_FLOW);contentDiv.style.animationName="flowouttoright";contentDiv.style.transformOrigin="50% 30%";}
|
119 |
+
else if(closeAnimation.type=="slideup"){var top=0;if(contentDiv.style.top){top=parseInt(contentDiv.style.top)+2*border+2*padding;}
|
120 |
+
else{top=window.innerHeight-parseInt(contentDiv.style.bottom)-parseInt(mainDiv.style.height);}
|
121 |
+
var end=top+parseInt(mainDiv.style.height);addAnimationClass(CLOSE_ANIMATION_SLIDEUP.replace(/\{end\}/g,"-"+end+"px"));contentDiv.style.animationName="slideouttotop";}
|
122 |
+
else if(closeAnimation.type=="slidedown"){var bottom=0;if(contentDiv.style.bottom){bottom=parseInt(mainDiv.style.height)+2*border+parseInt(contentDiv.style.bottom)+2*padding;}
|
123 |
+
else{bottom=window.innerHeight-parseInt(contentDiv.style.top)+2*border;}
|
124 |
+
var end=bottom;addAnimationClass(CLOSE_ANIMATION_SLIDEDOWN.replace(/\{end\}/g,end+"px"));contentDiv.style.animationName="slideouttobottom";}
|
125 |
+
else{contentDiv.className=prefix+'-popup-dialog-main-div-theme-wrapper-'+config.popupTheme+' sg-animated '+closeAnimation.type;}
|
126 |
+
contentDiv.style.animationDuration=closeAnimation.speed+"ms";window.setTimeout(function(){contentDiv.className=prefix+'-popup-dialog-main-div-theme-wrapper-'+config.popupTheme;contentDiv.style.animationName="";contentDiv.style.transform="";contentDiv.style.transformOrigin="";contentDiv.style.opacity="";},parseInt(closeAnimation.speed)+10);}
|
127 |
+
function setOpenEvents()
|
128 |
+
{for(var i=0;i<events.length;i++){var event=events[i];switch(event.type){case"load":setOpenOnLoadEvent();break;case"click":setOpenOnClickEvent(event);break;case"hover":setOpenOnHoverEvent(event);break;case"scroll":setOpenOnScrollEvent(event);break;case"exit":setOpenOnExitEvent(event);break;case"inactivity":setOpenInactivityEvent(event);}}}
|
129 |
+
function setOpenOnExitEvent(config)
|
130 |
+
{switch(config.mode){case"soft":setSoftExitEvents(config);break;case"agressive1":setAgressive1ExitEvents(config);break;case"agressive2":setAgressive2ExitEvents(config);break;case"full":setFullExitEvents(config);break;}}
|
131 |
+
function setAgressive1ExitEvents(config)
|
132 |
+
{window.addEventListener("beforeunload",function(e){(e||window.event).returnValue=config.message;return config.message})}
|
133 |
+
function setAgressive2ExitEvents(config)
|
134 |
+
{window.addEventListener("beforeunload",function(e){openPopup(false,'onExit');e.returnValue=config.message;return config.message});}
|
135 |
+
function setFullExitEvents(config)
|
136 |
+
{setSoftExitEvents(config);setAgressive2ExitEvents(config);}
|
137 |
+
function setSoftExitEvents(config)
|
138 |
+
{document.addEventListener("mouseout",function(event){if(event.toElement==null&&event.relatedTarget==null){openPopup(false,'onExit');}})}
|
139 |
+
function setOpenOnScrollEvent(config)
|
140 |
+
{var scrollPos=parseInt(config.position);if(config.position.indexOf("%")>0){scrollPos=document.body.scrollHeight*(scrollPos/100)-window.innerHeight/2;}
|
141 |
+
var scrollEventFunction=function(){if(document.body.scrollTop>=scrollPos||document.documentElement.scrollTop>=scrollPos){openPopup(false,'onScroll');window.removeEventListener("scroll",scrollEventFunction);}};window.addEventListener("scroll",scrollEventFunction);}
|
142 |
+
function setOpenOnLoadEvent()
|
143 |
+
{if(document.readyState==="complete"){openPopup(false,'onLoad');}
|
144 |
+
else{window.addEventListener("load",function(){openPopup(false,'onLoad');},false);}}
|
145 |
+
function setOpenOnClickEvent(config)
|
146 |
+
{var target=config.target;if(!target){return;}
|
147 |
+
var elements=document.getElementsByClassName(target);for(var i=0;i<elements.length;i++){elements[i].addEventListener("click",function(){openPopup(false,'onClick');});}}
|
148 |
+
function setOpenOnHoverEvent(config)
|
149 |
+
{var target=config.target;if(!target){return;}
|
150 |
+
var elements=document.getElementsByClassName(target);for(var i=0;i<elements.length;i++){elements[i].addEventListener("mouseover",function(){openPopup(false,'onHover');});}}
|
151 |
+
function setOpenInactivityEvent(config)
|
152 |
+
{var timer;var handler=function(){if(timer){clearInterval(timer);}
|
153 |
+
timer=setInterval(function(){openPopup();},config.timeout*1000);};document.addEventListener("mousemove",handler);document.addEventListener("mousedown",handler);document.addEventListener("keydown",handler);document.addEventListener("scroll",handler);handler();}
|
154 |
+
function initPopup()
|
155 |
+
{DIV=document.createElement("div");DIV.id=prefix+"-popup-dialog-main-div-wrapper";DIV.className=prefix+"-popup-dialog-main-div-wrapper";mainDiv=document.createElement("div");mainDiv.id=prefix+"-popup-dialog-main-div";var sizeConfig=getSizeConfig();contentDiv=document.createElement("div");contentDiv.className=prefix+'-popup-dialog-main-div-theme-wrapper-'+config.popupTheme;setMainDivStyles(sizeConfig);if(contentBox.addClass){mainDiv.className=contentBox.addClass;}
|
156 |
+
DIV.style.display="none";var popupContent=getInlineContent();if(contents){var divElement=document.createElement('div');divElement.setAttribute('style','height:100%;width:100%;overflow:'+(contentBox.scrollingEnabled?'auto':'hidden')+';');divElement.appendChild(contents);mainDiv.appendChild(divElement);}
|
157 |
+
else{mainDiv.innerHTML='<div style="height:100%;width:100%;overflow:'+(contentBox.scrollingEnabled?"auto":"hidden")+';">'+popupContent.innerHTML+'</div>';}
|
158 |
+
if(typeof config.closeButton.type!=='undefined'&&config.closeButton.type=='button'){closeButtonImage=document.createElement(config.closeButton.type);}
|
159 |
+
else{closeButtonImage=document.createElement("IMG");}
|
160 |
+
if(config.closeBehavior.showButton!==false){closeButtonImage.className=prefix+"-popup-close-button-"+config.popupTheme;contentDiv.appendChild(closeButtonImage);}
|
161 |
+
contentDiv.appendChild(mainDiv);DIV.appendChild(contentDiv);document.body.appendChild(DIV);isInited=true;setOpenEvents();}
|
162 |
+
function getInlineContent()
|
163 |
+
{var divElement=document.createElement("div");divElement.innerHTML='';if(inline){var hrefHtml=document.getElementById(inline);if(hrefHtml.previousElementSibling){SGPopup.inlinePrevTarget={hasPreviousElement:true,node:hrefHtml.previousElementSibling}}
|
164 |
+
else{SGPopup.inlinePrevTarget={hasPreviousElement:false,node:hrefHtml.parentNode}}
|
165 |
+
divElement.appendChild(hrefHtml);return divElement;}
|
166 |
+
return divElement;}
|
167 |
+
function openPopup(forced,action)
|
168 |
+
{if(opened){return;}
|
169 |
+
coockieValue=SGPopup.getCookie(popupId);if(coockieValue){return;}
|
170 |
+
if(showOnce){SGPopup.setCookie(popupId,"true",parseInt(showOnce));}
|
171 |
+
if(!forced){if(shouldOpen&&typeof shouldOpen=="function"){if(!shouldOpen()){return;}}}
|
172 |
+
if(!isInited){initPopup();}
|
173 |
+
opened=true;var self=this;window.addEventListener("resize",onWindowRsize);if(closeBehavior.contentShouldClose){mainDiv.onclick=closePopup;}
|
174 |
+
setTimeout(function(){if(willOpen&&typeof willOpen=="function"){willOpen();}
|
175 |
+
drawOverlay();DIV.style.display="";positionPopup();setOpenAnimation();setCloseButton(mainDiv);if(didOpen){if(typeof didOpen=="function"){didOpen();}}},openDelay);if(closeBehavior.autoclose&&closeBehavior.autoclose>0){setTimeout(closePopup,closeBehavior.autoclose*1000);}
|
176 |
+
if(closeBehavior.escShouldClose){document.onkeydown=function(e){e=e||window.event;if(e.keyCode==27){closePopup();}};}}
|
177 |
+
function closePopup(forced)
|
178 |
+
{if(!forced){if(shouldClose&&typeof shouldClose=="function"){if(!shouldClose()){return;}}}
|
179 |
+
if(closeBehavior.allowed===false&&forced!=true){return;}
|
180 |
+
if(willClose&&typeof willClose=="function"){willClose();}
|
181 |
+
window.removeEventListener("resize",onWindowRsize);var closeFunction=function()
|
182 |
+
{if(!DIV){return;}
|
183 |
+
DIV.style.display="none";removeOverlay();if(didClose&&typeof didClose=="function"){didClose();opened=false;}
|
184 |
+
if(resetInlineContent&&typeof resetInlineContent=="function"){resetInlineContent();}};if(closeAnimation.type!="none"&&closeAnimation.speed>0){setCloseAnimation();setTimeout(closeFunction,closeAnimation.speed);}
|
185 |
+
else{closeFunction();}}
|
186 |
+
var resizeBox=function()
|
187 |
+
{var sizeConfig=getSizeConfig();setMainDivStyles(sizeConfig)};this.open=function(forced)
|
188 |
+
{openPopup(forced);};this.init=function()
|
189 |
+
{initPopup();};this.close=function(forced)
|
190 |
+
{closePopup(forced);};this.resize=function()
|
191 |
+
{resizeBox();};this.setOpenDelay=function(delay)
|
192 |
+
{openDelay=delay;if(isInited){initPopup();}};this.getOpenDelay=function()
|
193 |
+
{return openDelay;};this.setOpenAnimation=function(animation)
|
194 |
+
{openAnimation=animation;if(isInited){initPopup();}};this.getOpenAnimation=function()
|
195 |
+
{return openAnimation;};this.setCloseAnimation=function(animation)
|
196 |
+
{closeAnimation=animation;if(isInited){initPopup();}};this.getCloseAnimation=function()
|
197 |
+
{return closeAnimation;};this.setCloseBehavior=function(config)
|
198 |
+
{closeBehavior=config;if(isInited){initPopup();}};this.getCloseBehavior=function()
|
199 |
+
{return closeBehavior;};this.setCloseButton=function(button)
|
200 |
+
{closeButton=button;};this.getCloseButton=function()
|
201 |
+
{return closeButton;};this.setOverlay=function(config)
|
202 |
+
{overlay=config;if(isInited){initPopup();}};this.getOverlay=function()
|
203 |
+
{return overlay;};this.setContentBox=function(config)
|
204 |
+
{contentBox=config;if(isInited){initPopup();}};this.getContentBox=function()
|
205 |
+
{return contentBox;};this.setContents=function(content)
|
206 |
+
{contents=content;if(isInited){initPopup();}};this.getContents=function()
|
207 |
+
{return contents;};this.setPosition=function(config)
|
208 |
+
{position=config;};this.getPosition=function()
|
209 |
+
{return position;};this.setSizingRanges=function(ranges)
|
210 |
+
{sizingRanges=ranges;if(isInited){initPopup();}};this.getSizingRanges=function()
|
211 |
+
{return sizingRanges;};this.setShouldOpen=function(func)
|
212 |
+
{shouldOpen=func;if(isInited){initPopup();}};this.getShouldOpen=function()
|
213 |
+
{return shouldOpen;};this.setWillOpen=function(func)
|
214 |
+
{willOpen=func;if(isInited){initPopup();}};this.getWillOpen=function()
|
215 |
+
{return willOpen;};this.setDidOpen=function(func)
|
216 |
+
{didOpen=func;if(isInited){initPopup();}};this.getDidOpen=function()
|
217 |
+
{return didOpen;};this.setShouldClose=function(func)
|
218 |
+
{shouldClose=func;if(isInited){initPopup();}};this.getShouldClose=function()
|
219 |
+
{return shouldClose;};this.setWillClose=function(func)
|
220 |
+
{willClose=func;if(isInited){initPopup();}};this.getWillClose=function()
|
221 |
+
{return willClose;};this.setDidClose=function(func)
|
222 |
+
{didClose=func;if(isInited){initPopup();}};this.getDidClose=function()
|
223 |
+
{return didClose;};}
|
224 |
+
SGPopup.sendGetRequest=function(url,responseHandler,params)
|
225 |
+
{var req;if(window.XMLHttpRequest){req=new XMLHttpRequest();}
|
226 |
+
else if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP");}
|
227 |
+
req.onreadystatechange=function(){if(req.readyState==4){if(req.status<400){responseHandler(req,params);}else{}}};req.open("GET",url,true);req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');req.send(null);};SGPopup.getCookie=function(cname)
|
228 |
+
{var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1);}
|
229 |
+
if(c.indexOf(name)==0){return c.substring(name.length,c.length);}}
|
230 |
+
return"";};SGPopup.setCookie=function(cname,cvalue,exdays)
|
231 |
+
{var exdate=new Date();if(!exdays||isNaN(exdays)){exdays=365*50;}
|
232 |
+
exdate.setDate(exdate.getDate()+exdays);var value=cvalue+((exdays==null)?";":"; expires="+exdate.toUTCString());document.cookie=cname+"="+value;};SGPopup.getPopup=function(el)
|
233 |
+
{var id=null;while(el&&el!=document){if(el.hasAttribute("data-sg-popup-hash-id")){id=el.getAttribute("data-sg-popup-hash-id");break;}
|
234 |
+
el=el.parentNode;}
|
235 |
+
if(id){return SGPopupLoader.popups[id];}};SGPopup.openSGPopup=function()
|
236 |
+
{var ids=SGPopupLoader.ids;var linkTag=document.createElement("link");linkTag.rel="stylesheet";linkTag.type="text/css";linkTag.href=SG_APP_URL+'public/assets/lib/SGPopup.css';document.head.appendChild(linkTag);var responseFunction=function(response,id)
|
237 |
+
{var config=JSON.parse(response.responseText);var popup=new SGPopup(config);SGPopupLoader.popups[id]=popup;popup.init();};for(var i=0;i<ids.length;i++){SGPopup.sendGetRequest(SG_APP_URL+'api/popups/'+ids[i],responseFunction,ids[i]);}};
|
public/js/PopupBuilder.js
CHANGED
@@ -29,23 +29,25 @@ SGPBPopup.prototype.getCountPopupOpen = function()
|
|
29 |
{
|
30 |
return this.countPopupOpen;
|
31 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
SGPBPopup.prototype.initialsListeners = function()
|
34 |
{
|
35 |
window.SGPB_SOUND = [];
|
36 |
-
|
37 |
-
|
38 |
-
var popupId = parseInt(args.popupId);
|
39 |
-
var options = SGPBPopup.getPopupOptionsById(popupId);
|
40 |
-
var soundUrl = options['sgpb-sound-url'];
|
41 |
-
var soundStatus = options['sgpb-open-sound'];
|
42 |
-
|
43 |
-
if (soundStatus && soundUrl && !window.SGPB_SOUND[popupId]) {
|
44 |
-
var audio = new Audio(soundUrl);
|
45 |
-
audio.play();
|
46 |
-
window.SGPB_SOUND[popupId] = audio;
|
47 |
-
}
|
48 |
-
});
|
49 |
|
50 |
sgAddEvent(window, 'sgpbDidClose', function(e) {
|
51 |
var args = e.detail;
|
@@ -386,7 +388,7 @@ SGPBPopup.prototype.isAllowJsConditions = function() {
|
|
386 |
var obj = new className;
|
387 |
/* call allowToOpen function if exists */
|
388 |
if (typeof obj.allowToOpen === 'function') {
|
389 |
-
var allowToOpen = obj.allowToOpen(this.id);
|
390 |
if (!allowToOpen) {
|
391 |
isAllow = allowToOpen;
|
392 |
break;
|
@@ -490,6 +492,19 @@ SGPBPopup.prototype.themeCreator = function()
|
|
490 |
var contentClass = popupData['sgpb-content-custom-class'];
|
491 |
var closeButtonImage = popupConfig.closeButtonImage;
|
492 |
var themeNumber = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
493 |
if (forceRtl) {
|
494 |
forceRtlClass = ' sgpb-popup-content-direction-right';
|
495 |
}
|
@@ -512,19 +527,6 @@ SGPBPopup.prototype.themeCreator = function()
|
|
512 |
popupConfig.magicCall('setButtonPosition', closeButtonPosition);
|
513 |
}
|
514 |
|
515 |
-
var backgroundColor = 'black';
|
516 |
-
var recentSalesPopup = false;
|
517 |
-
if (typeof SgpbRecentSalesPopupType != 'undefined') {
|
518 |
-
if (popupType == SgpbRecentSalesPopupType) {
|
519 |
-
recentSalesPopup = true;
|
520 |
-
popupTheme = 'sgpb-theme-2';
|
521 |
-
closeButtonPosition = 'topRight';
|
522 |
-
backgroundColor = 'white';
|
523 |
-
popupConfig.magicCall('setShadowSpread', 3);
|
524 |
-
popupConfig.magicCall('setContentShadowBlur', 5);
|
525 |
-
}
|
526 |
-
}
|
527 |
-
|
528 |
if (popupTheme == 'sgpb-theme-1') {
|
529 |
themeNumber = 1;
|
530 |
popupConfig.magicCall('setShadowSpread', 14);
|
@@ -742,7 +744,8 @@ SGPBPopup.prototype.themeCustomizations = function()
|
|
742 |
popupConfig.magicCall('setOverlayVisible', SGPBPopup.varToBool(popupData['sgpb-enable-popup-overlay']));
|
743 |
}
|
744 |
popupConfig.magicCall('setOverlayAddClass', overlayClasses + ' ' + popupData['sgpb-overlay-custom-class']);
|
745 |
-
|
|
|
746 |
}
|
747 |
else {
|
748 |
if (SGPB_JS_PACKAGES.packages['current'] == SGPB_JS_PACKAGES.packages['free']) {
|
@@ -937,17 +940,11 @@ SGPBPopup.prototype.popupTriggeringListeners = function()
|
|
937 |
that.htmlIframeFilterForOpen(args.popupId, 'open');
|
938 |
that.replaceWithCustomShortcode(popupId);
|
939 |
that.sgpbDontShowPopup(popupId);
|
940 |
-
|
941 |
var closeButtonDelay = parseInt(popupData['sgpb-close-button-delay']);
|
942 |
if (closeButtonDelay) {
|
943 |
that.closeButtonDisplay(popupData['sgpb-post-id'], 'hide');
|
944 |
}
|
945 |
-
if (autoCloseStatus) {
|
946 |
-
var autoCloseTime = parseInt(popupData['sgpb-auto-close-time'])*1000;
|
947 |
-
setTimeout(function() {
|
948 |
-
SGPBPopup.closePopupById(that.getPopupId());
|
949 |
-
}, autoCloseTime);
|
950 |
-
}
|
951 |
});
|
952 |
|
953 |
sgAddEvent(window, 'sgpbShouldClose', function(e) {
|
@@ -1171,8 +1168,12 @@ SGPBPopup.prototype.contentCloseBehavior = function()
|
|
1171 |
if (popupId != e.detail.popupId || e.detail.popupData['sgpb-content-click'] == 'undefined') {
|
1172 |
return false;
|
1173 |
}
|
|
|
|
|
|
|
1174 |
jQuery('.sgpb-content-'+e.detail.popupId).on('click', function(event) {
|
1175 |
if (contentClickBehavior == 'redirect') {
|
|
|
1176 |
if (redirectToNewTab) {
|
1177 |
window.open(redirectUrl);
|
1178 |
SGPBPopup.closePopupById(that.getPopupId());
|
@@ -1966,28 +1967,6 @@ SgpbEventListener.prototype.timerIncrement = function(listenerObj , idleInterval
|
|
1966 |
SgpbEventListener.inactivityIdicator = 0;
|
1967 |
};
|
1968 |
|
1969 |
-
SgpbEventListener.prototype.sgpbOnScroll = function(listenerObj, eventData)
|
1970 |
-
{
|
1971 |
-
var that = this;
|
1972 |
-
var percent = parseInt(eventData.value);
|
1973 |
-
var scrollStatus = false;
|
1974 |
-
|
1975 |
-
jQuery(window).on('scroll', function() {
|
1976 |
-
|
1977 |
-
var scrollTop = jQuery(window).scrollTop();
|
1978 |
-
var docHeight = jQuery(document).height();
|
1979 |
-
var winHeight = jQuery(window).height();
|
1980 |
-
var scrollPercent = (scrollTop) / (docHeight - winHeight);
|
1981 |
-
var scrollPercentRounded = Math.round(scrollPercent*100);
|
1982 |
-
if (percent < scrollPercentRounded) {
|
1983 |
-
if (scrollStatus == false) {
|
1984 |
-
listenerObj.getPopupObj().prepareOpen();
|
1985 |
-
scrollStatus = true;
|
1986 |
-
}
|
1987 |
-
}
|
1988 |
-
});
|
1989 |
-
};
|
1990 |
-
|
1991 |
SgpbEventListener.prototype.sgpbInsideclick = function(listenerObj, eventData)
|
1992 |
{
|
1993 |
sgAddEvent(window, 'sgpbDidOpen', function(e) {
|
@@ -2028,6 +2007,9 @@ SgpbEventListener.prototype.sgpbClick = function(listenerObj, eventData)
|
|
2028 |
}
|
2029 |
var targetClick = jQuery('a[href*="#sg-popup-id-' + popupId + '"], .sg-popup-id-' + popupId + ', .sgpb-popup-id-' + popupId);
|
2030 |
|
|
|
|
|
|
|
2031 |
if (!targetClick.length) {
|
2032 |
continue;
|
2033 |
}
|
@@ -2073,6 +2055,10 @@ SgpbEventListener.prototype.sgpbHover = function(listenerObj, eventData)
|
|
2073 |
|
2074 |
var hoverSelector = jQuery('.sg-popup-hover-' + popupId + ', .sgpb-popup-id-' + popupId + '[data-popup-event="hover"]');
|
2075 |
|
|
|
|
|
|
|
|
|
2076 |
if (!hoverSelector) {
|
2077 |
return false;
|
2078 |
}
|
29 |
{
|
30 |
return this.countPopupOpen;
|
31 |
}
|
32 |
+
SGPBPopup.prototype.playMusic = function(e) {
|
33 |
+
var args = e.detail;
|
34 |
+
var popupId = parseInt(args.popupId);
|
35 |
+
var options = SGPBPopup.getPopupOptionsById(popupId);
|
36 |
+
var soundUrl = options['sgpb-sound-url'];
|
37 |
+
var soundStatus = options['sgpb-open-sound'];
|
38 |
+
|
39 |
+
if (soundStatus && soundUrl && !window.SGPB_SOUND[popupId]) {
|
40 |
+
var audio = new Audio(soundUrl);
|
41 |
+
audio.play();
|
42 |
+
window.SGPB_SOUND[popupId] = audio;
|
43 |
+
}
|
44 |
+
}
|
45 |
|
46 |
SGPBPopup.prototype.initialsListeners = function()
|
47 |
{
|
48 |
window.SGPB_SOUND = [];
|
49 |
+
var that = this;
|
50 |
+
sgAddEvent(window, 'sgpbDidOpen', function(e) {that.playMusic(e)});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
sgAddEvent(window, 'sgpbDidClose', function(e) {
|
53 |
var args = e.detail;
|
388 |
var obj = new className;
|
389 |
/* call allowToOpen function if exists */
|
390 |
if (typeof obj.allowToOpen === 'function') {
|
391 |
+
var allowToOpen = obj.allowToOpen(this.id, this);
|
392 |
if (!allowToOpen) {
|
393 |
isAllow = allowToOpen;
|
394 |
break;
|
492 |
var contentClass = popupData['sgpb-content-custom-class'];
|
493 |
var closeButtonImage = popupConfig.closeButtonImage;
|
494 |
var themeNumber = 1;
|
495 |
+
var backgroundColor = 'black';
|
496 |
+
var recentSalesPopup = false;
|
497 |
+
if (typeof SgpbRecentSalesPopupType != 'undefined') {
|
498 |
+
if (popupType == SgpbRecentSalesPopupType) {
|
499 |
+
recentSalesPopup = true;
|
500 |
+
popupTheme = 'sgpb-theme-2';
|
501 |
+
closeButtonPosition = 'topRight';
|
502 |
+
backgroundColor = 'white';
|
503 |
+
popupConfig.magicCall('setShadowSpread', 3);
|
504 |
+
popupConfig.magicCall('setContentShadowBlur', 5);
|
505 |
+
popupConfig.magicCall('setOverlayVisible', false);
|
506 |
+
}
|
507 |
+
}
|
508 |
if (forceRtl) {
|
509 |
forceRtlClass = ' sgpb-popup-content-direction-right';
|
510 |
}
|
527 |
popupConfig.magicCall('setButtonPosition', closeButtonPosition);
|
528 |
}
|
529 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
if (popupTheme == 'sgpb-theme-1') {
|
531 |
themeNumber = 1;
|
532 |
popupConfig.magicCall('setShadowSpread', 14);
|
744 |
popupConfig.magicCall('setOverlayVisible', SGPBPopup.varToBool(popupData['sgpb-enable-popup-overlay']));
|
745 |
}
|
746 |
popupConfig.magicCall('setOverlayAddClass', overlayClasses + ' ' + popupData['sgpb-overlay-custom-class']);
|
747 |
+
var overlayOpacity = popupData['sgpb-overlay-opacity'] || 0.8;
|
748 |
+
popupConfig.magicCall('setOverlayOpacity', overlayOpacity * 100);
|
749 |
}
|
750 |
else {
|
751 |
if (SGPB_JS_PACKAGES.packages['current'] == SGPB_JS_PACKAGES.packages['free']) {
|
940 |
that.htmlIframeFilterForOpen(args.popupId, 'open');
|
941 |
that.replaceWithCustomShortcode(popupId);
|
942 |
that.sgpbDontShowPopup(popupId);
|
943 |
+
|
944 |
var closeButtonDelay = parseInt(popupData['sgpb-close-button-delay']);
|
945 |
if (closeButtonDelay) {
|
946 |
that.closeButtonDisplay(popupData['sgpb-post-id'], 'hide');
|
947 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
948 |
});
|
949 |
|
950 |
sgAddEvent(window, 'sgpbShouldClose', function(e) {
|
1168 |
if (popupId != e.detail.popupId || e.detail.popupData['sgpb-content-click'] == 'undefined') {
|
1169 |
return false;
|
1170 |
}
|
1171 |
+
if (contentClickBehavior == 'redirect') {
|
1172 |
+
jQuery('.sgpb-content-'+popupId).addClass('sgpb-cursor-pointer');
|
1173 |
+
}
|
1174 |
jQuery('.sgpb-content-'+e.detail.popupId).on('click', function(event) {
|
1175 |
if (contentClickBehavior == 'redirect') {
|
1176 |
+
|
1177 |
if (redirectToNewTab) {
|
1178 |
window.open(redirectUrl);
|
1179 |
SGPBPopup.closePopupById(that.getPopupId());
|
1967 |
SgpbEventListener.inactivityIdicator = 0;
|
1968 |
};
|
1969 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1970 |
SgpbEventListener.prototype.sgpbInsideclick = function(listenerObj, eventData)
|
1971 |
{
|
1972 |
sgAddEvent(window, 'sgpbDidOpen', function(e) {
|
2007 |
}
|
2008 |
var targetClick = jQuery('a[href*="#sg-popup-id-' + popupId + '"], .sg-popup-id-' + popupId + ', .sgpb-popup-id-' + popupId);
|
2009 |
|
2010 |
+
if (typeof eventData.operator != 'undefined' && eventData.operator == 'clickActionCustomClass') {
|
2011 |
+
targetClick = jQuery('a[href*="#sg-popup-id-' + popupId + '"], .sg-popup-id-' + popupId + ', .sgpb-popup-id-' + popupId+', .'+eventData.value);
|
2012 |
+
}
|
2013 |
if (!targetClick.length) {
|
2014 |
continue;
|
2015 |
}
|
2055 |
|
2056 |
var hoverSelector = jQuery('.sg-popup-hover-' + popupId + ', .sgpb-popup-id-' + popupId + '[data-popup-event="hover"]');
|
2057 |
|
2058 |
+
if (typeof eventData.operator != 'undefined' && eventData.operator == 'hoverActionCustomClass') {
|
2059 |
+
hoverSelector = jQuery('.sg-popup-hover-' + popupId + ', .sgpb-popup-id-' + popupId + '[data-popup-event="hover"]'+', .'+eventData.value);
|
2060 |
+
}
|
2061 |
+
|
2062 |
if (!hoverSelector) {
|
2063 |
return false;
|
2064 |
}
|
public/js/PopupConfig.js
CHANGED
@@ -1 +1,9 @@
|
|
1 |
-
function PopupConfig()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function PopupConfig()
|
2 |
+
{this.prefix='sgpb';this.popupId;this.popupData;this.openDelay=0;this.currentObj={};this.allowed=true;this.showButton=true;this.buttonPosition='topRight';this.buttonInside=true;this.autoclose=false;this.overlayShouldClose=true;this.contentShouldClose=false;this.escShouldClose=true;this.closeButtonImage=sgpbPublicUrl+'img/close.png';this.popupTheme=1;this.popupType='html';this.closeButtonWidth=21;this.closeButtonHeight=21;this.closeButtonWidthType='px';this.closeButtonHeightType='px';this.closeButtonType='IMG';this.closeButtonText='Close';this.closeButtonDelay=0;this.overlayVisible=true;this.overlayColor='black';this.overlayOpacity=80;this.overlayAddClass='sgpb-popup-overlay sg-popup-overlay';this.contentPadding=8;this.zIndex=9999;this.contentShowBackground=true;this.contentBackgroundColor='#ffffff';this.contentBackgroundImage='';this.contentBackgroundMode='none';this.contentBackgroundPosition='center';this.contentBorderStyle='solid';this.contentBorderRadius=0;this.contentBorderRadiusType='%';this.contentBorderColor='#f00';this.contentBorderWidth=0;this.boxBorderWidth=0;this.contentShadowColor='#ccc';this.contentShadowBlur=0;this.scrollingEnabled=false;this.shadowSpread=0;this.contentAddClass='class2';this.contents=false;this.positionRight=false;this.positionTop=false;this.positionBottom=false;this.positionLeft=false;this.width='-1';this.height='-1';this.maxWidth='-1';this.maxHeight='-1';this.minWidth='-1';this.minHeight='-1';this.srcElement='';this.openAnimationEffect='';this.openAnimationSpeed=0;this.openAnimationStatus=false;this.closeAnimationEffect='';this.closeAnimationSpeed=0;this.closeAnimationStatus=false;}
|
3 |
+
String.prototype.firstToLowerCase=function()
|
4 |
+
{return this.charAt(0).toLowerCase()+this.slice(1);};String.prototype.firstToUpperCase=function()
|
5 |
+
{return this.charAt(0).toUpperCase()+this.slice(1);};PopupConfig.prototype.magicCall=function(functionName,arrgname)
|
6 |
+
{if(functionName.indexOf('get')!=-1){var param=functionName.replace(/^get/g,"").firstToLowerCase();return this[param];}
|
7 |
+
else{var param=functionName.replace(/^set/g,"").firstToLowerCase();this[param]=arrgname;}};PopupConfig.prototype.addCustomEvent=function(eventName,args)
|
8 |
+
{var event=document.createEvent('CustomEvent');event.initCustomEvent(eventName,true,true,args);window.dispatchEvent(event);};PopupConfig.prototype.combineConfigObj=function()
|
9 |
+
{var that=this;var eventSendArgs={'popupId':that.popupId,'popupData':that.popupData,'currentObj':that.currentObj};var config={openDelay:this.openDelay,popupTheme:this.popupTheme,popupType:this.popupType,closeBehavior:{allowed:this.allowed,showButton:this.showButton,buttonPosition:this.buttonPosition,buttonInside:this.buttonInside,autoclose:this.autoclose,overlayShouldClose:this.overlayShouldClose,contentShouldClose:this.contentShouldClose,escShouldClose:this.escShouldClose,right:this.closeButtonPositionRight,top:this.closeButtonPositionTop,bottom:this.closeButtonPositionBottom,left:this.closeButtonPositionLeft},openAnimation:{type:this.openAnimationEffect,speed:this.openAnimationSpeed,status:this.openAnimationStatus},closeAnimation:{type:this.closeAnimationEffect,speed:this.closeAnimationSpeed,status:this.closeAnimationStatus},closeButton:{data:this.buttonImage,width:this.closeButtonWidth,height:this.closeButtonHeight,widthType:this.closeButtonWidthType,heightType:this.closeButtonHeightType,type:this.closeButtonType,text:this.closeButtonText},overlay:{visible:this.overlayVisible,color:this.overlayColor,opacity:this.overlayOpacity,addClass:this.overlayAddClass},contentBox:{padding:this.contentPadding,zIndex:this.zIndex,showBackground:this.contentShowBackground,backgroundColor:this.contentBackgroundColor,backgroundImage:this.contentBackgroundImage,backgroundMode:this.contentBackgroundMode,backgroundPosition:this.contentBackgroundPosition,borderStyle:this.contentBorderStyle,borderRadius:this.contentBorderRadius,borderRadiusType:this.contentBorderRadiusType,borderColor:this.contentBorderColor,borderWidth:this.contentBorderWidth,boxBorderWidth:this.boxBorderWidth,shadowColor:this.contentShadowColor,shadowBlur:this.contentShadowBlur,scrollingEnabled:this.scrollingEnabled,shadowSpread:this.shadowSpread,addClass:this.contentAddClass},contents:this.contents,inline:this.srcElement,iframe:false,position:{right:this.positionRight,top:this.positionTop,bottom:this.positionBottom,left:this.positionLeft},sizingRanges:[{screenFrom:{width:0,height:0},screenTo:{width:300,height:3000},width:'100%',height:this.height,maxWidth:this.maxWidth,maxHeight:this.maxHeight,minWidth:this.minWidth,minHeight:this.minHeight},{screenFrom:{width:300,height:0},screenTo:{width:3000,height:3000},width:this.width,height:this.height,maxWidth:this.maxWidth,maxHeight:this.maxHeight,minWidth:this.minWidth,minHeight:this.minHeight}],shouldOpen:function(){that.addCustomEvent('sgpbShouldOpen',eventSendArgs);return true;},willOpen:function(){that.addCustomEvent('sgpbWillOpen',eventSendArgs);},didOpen:function(){that.addCustomEvent('sgpbDidOpen',eventSendArgs);},shouldClose:function(){that.addCustomEvent('sgpbShouldClose',eventSendArgs);return true;},willClose:function(){that.addCustomEvent('sgpbWillClose',eventSendArgs);},didClose:function(){that.addCustomEvent('sgpbDidClose',eventSendArgs);}};return config;};var obj=new PopupConfig();
|
public/js/Subscription.js
CHANGED
@@ -1 +1,44 @@
|
|
1 |
-
function SGPBSubscription()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function SGPBSubscription()
|
2 |
+
{this.expiryTime=365;this.submissionPopupId=0;this.newWindow=null;this.init();}
|
3 |
+
SGPBSubscription.cookieName='SGPBSubscription';SGPBSubscription.prototype.init=function()
|
4 |
+
{this.livePreview();this.formSubmission();};SGPBSubscription.prototype.formSubmission=function()
|
5 |
+
{var that=this;if(typeof sgAddEvent=='undefined'){return false;}
|
6 |
+
sgAddEvent(window,'sgpbDidOpen',function(e){var popupArgs=e.detail;var popupId=popupArgs.popupId;var popupOptions=SGPBPopup.getPopupOptionsById(popupId);var additionalPopupParams={};var subscriptionForm=jQuery('#sgpb-popup-dialog-main-div .sgpb-subs-form-'+popupId+' form');var submitButton=subscriptionForm.find('.js-subs-submit-btn');if(typeof sgpbSubsValidateObj!='object'){return false;}
|
7 |
+
jQuery.validator.setDefaults({errorPlacement:function(error,element){var errorWrapperClassName=jQuery(element).attr('data-error-message-class');jQuery('.sgpb-subs-form-'+popupId+' .'+errorWrapperClassName).html(error);}});sgpbSubsValidateObj.submitHandler=function()
|
8 |
+
{var formData=subscriptionForm.serialize();var ajaxData={action:'sgpb_subscription_submission',nonce:SGPB_JS_PARAMS.nonce,beforeSend:function(){submitButton.val(submitButton.attr('data-progress-title'));if(popupOptions['sgpb-subs-success-behavior']=='redirectToURL'&&popupOptions['sgpb-subs-success-redirect-new-tab']){that.newWindow=window.open(popupOptions['sgpb-subs-success-redirect-URL']);}},formData:formData,popupPostId:popupId};jQuery.post(SGPB_JS_PARAMS.ajaxUrl,ajaxData,function(res){that.submissionPopupId=popupId;jQuery('.sgpb-subs-form-'+popupId+' .sgpb-alert').addClass('sg-hide-element');submitButton.val(submitButton.attr('data-title'));additionalPopupParams['res']=res;that.showMessages(additionalPopupParams);})};subscriptionForm.validate(sgpbSubsValidateObj);jQuery.extend(jQuery.validator.messages,{email:popupOptions['sgpb-subs-invalid-message'],required:popupOptions['sgpb-subs-validation-message']});});jQuery(window).on('sgpbDidClose',function(e){var popupArgs=e.detail;var popupId=popupArgs.popupId;jQuery('.sgpb-subs-form-'+popupId+' form label.error').hide();});};SGPBSubscription.prototype.showMessages=function(res)
|
9 |
+
{var that=this;if(res['res']==1){this.subscriptionSuccessBehavior();}
|
10 |
+
else{if(that.newWindow!=null){that.newWindow.close();}
|
11 |
+
this.showErrorMessage();}
|
12 |
+
window.dispatchEvent(new Event('resize'));return true;};SGPBSubscription.prototype.showErrorMessage=function()
|
13 |
+
{var popupId=parseInt(this.submissionPopupId);jQuery('.sgpb-subs-form-'+popupId+' .sgpb-alert-danger').removeClass('sg-hide-element');};SGPBSubscription.prototype.subscriptionSuccessBehavior=function()
|
14 |
+
{var settings={popupId:this.submissionPopupId,eventName:'sgpbSubscriptionSuccess'};jQuery(window).trigger('sgpbFormSuccess',settings);var popupId=parseInt(this.submissionPopupId);var popupOptions=SGPBPopup.getPopupOptionsById(popupId);var behavior='showMessage';jQuery('.sgpb-subs-form-'+popupId+' form').remove();this.setSubscriptionCookie(popupId);if(typeof popupOptions['sgpb-subs-success-behavior']!='undefined'){behavior=popupOptions['sgpb-subs-success-behavior'];}
|
15 |
+
this.resetFieldsValues();switch(behavior){case'showMessage':jQuery('.sgpb-subs-form-'+popupId+' .sgpb-alert-success').removeClass('sg-hide-element');break;case'redirectToURL':this.redirectToURL(popupOptions);break;case'openPopup':this.openSuccessPopup(popupOptions);break;case'hidePopup':SGPBPopup.closePopupById(this.submissionPopupId);break;}};SGPBSubscription.prototype.openSuccessPopup=function(popupOptions)
|
16 |
+
{var that=this;setTimeout(function(){SGPBPopup.closePopupById(that.submissionPopupId);},0);if(typeof popupOptions['sgpb-subs-success-popup']!='undefined'){sgAddEvent(window,'sgpbDidClose',this.openPopup(popupOptions));}};SGPBSubscription.prototype.openPopup=function(popupOptions)
|
17 |
+
{if(typeof popupOptions['sgpb-subs-success-popup']=='undefined'){return false;}
|
18 |
+
var subPopupId=parseInt(popupOptions['sgpb-subs-success-popup']);var subPopupOptions=SGPBPopup.getPopupOptionsById(subPopupId);var popupObj=new SGPBPopup();popupObj.setPopupId(subPopupId);popupObj.setPopupData(subPopupOptions);setTimeout(function(){popupObj.prepareOpen();},500);};SGPBSubscription.prototype.setSubscriptionCookie=function(popupId)
|
19 |
+
{var currentUrl=window.location.href;var cookieName=SGPBSubscription.cookieName+popupId;var expiryTime=this.expiryTime;if(SGPopup.getCookie(cookieName)==''){var cookieObject=[currentUrl];SGPBPopup.setCookie(cookieName,JSON.stringify(cookieObject),expiryTime);}};SGPBSubscription.prototype.redirectToURL=function(popupOptions)
|
20 |
+
{var redirectURL=popupOptions['sgpb-subs-success-redirect-URL'];var redirectToNewTab=popupOptions['sgpb-subs-success-redirect-new-tab'];SGPBPopup.closePopupById(this.submissionPopupId);if(redirectToNewTab){return true;}
|
21 |
+
window.location.href=redirectURL;};SGPBSubscription.prototype.resetFieldsValues=function()
|
22 |
+
{if(!jQuery('.js-subs-text-inputs').length){return false;}
|
23 |
+
jQuery('.js-subs-text-inputs').each(function(){jQuery(this).val('');});};SGPBSubscription.prototype.livePreview=function()
|
24 |
+
{this.binding();this.changeLabels();this.changeButtonTitle();this.changeColor();this.changeOpacity();this.changePadding();this.changeDimension();this.preventDefaultSubmission();if(typeof SGPBBackend=='function'){SGPBBackend.makeContactAndSubscriptionFieldsRequired();}};SGPBSubscription.prototype.preventDefaultSubmission=function()
|
25 |
+
{var formSubmitButton=jQuery('.sgpb-subscription-admin-wrapper input[type="submit"]');if(!formSubmitButton.length){return false;}
|
26 |
+
formSubmitButton.bind('click',function(e){e.preventDefault();});};SGPBSubscription.prototype.changeDimension=function()
|
27 |
+
{var that=this;jQuery('.js-subs-dimension').change(function(){var element=jQuery(this);var dimension=that.changeDimensionMode(element.val());var styleType=element.attr('data-style-type');var selector=element.attr('data-subs-rel');var styleObj={};styleObj[styleType]=dimension;jQuery('.'+selector).css(styleObj);});};SGPBSubscription.prototype.changePadding=function()
|
28 |
+
{jQuery('.js-sgpb-form-padding').on('change keydown keyup',function(){var padding=jQuery(this).val();jQuery('.sgpb-subscription-admin-wrapper').css('padding',padding+'px');});};SGPBSubscription.prototype.changeColor=function()
|
29 |
+
{var that=this;if(typeof jQuery.wp=='undefined'||typeof jQuery.wp.wpColorPicker!=='function'){return false;}
|
30 |
+
jQuery('.js-subs-color-picker').each(function(){var currentColorPicker=jQuery(this);currentColorPicker.wpColorPicker({change:function(){that.colorPickerChange(jQuery(this));}});});jQuery('.wp-picker-holder').mouseover(function(){var selectedInput=jQuery(this).prev().find('.js-subs-color-picker');that.colorPickerChange(selectedInput);});jQuery('.wp-picker-holder').bind('click',function(){var selectedInput=jQuery(this).prev().find('.js-subs-color-picker');that.colorPickerChange(selectedInput);});};SGPBSubscription.prototype.changeOpacity=function()
|
31 |
+
{var that=this;jQuery('.js-subs-bg-opacity').next().find('.range-handle').on('change mousemove',function(){that.colorPickerChange(jQuery('input[name=sgpb-subs-form-bg-color]'));});};SGPBSubscription.prototype.setupPlaceholderColor=function(element,color)
|
32 |
+
{jQuery('.'+element).each(function(){jQuery('#sgpb-placeholder-style').remove();var styleContent='.'+element+'::-webkit-input-placeholder {color: '+color+' !important;}';styleContent+='.'+element+'::-moz-placeholder {color: '+color+' !important;}';styleContent+='.'+element+'::-ms-placeholder {color: '+color+' !important;}';var styleBlock='<style id="sgpb-placeholder-style">'+styleContent+'</style>';jQuery('head').append(styleBlock);});};SGPBSubscription.prototype.colorPickerChange=function(colorPicker)
|
33 |
+
{var that=this;var opacity=jQuery('input[name=sgpb-subs-form-bg-opacity]').val();var colorValue=colorPicker.val();colorValue=SGPBBackend.hexToRgba(colorValue,opacity);var styleType=colorPicker.attr('data-style-type');var selector=colorPicker.attr('data-subs-rel');if('placeholder'==styleType){that.setupPlaceholderColor(selector,colorValue);return false;}
|
34 |
+
var styleObj={};styleObj[styleType]=colorValue;jQuery('.'+selector).each(function(){jQuery(this).css(styleObj);})};SGPBSubscription.prototype.changeButtonTitle=function()
|
35 |
+
{jQuery('.js-subs-btn-title').bind('input',function(){var className=jQuery(this).attr('data-subs-rel');var val=jQuery(this).val();jQuery('.'+className).val(val);});};SGPBSubscription.prototype.changeLabels=function()
|
36 |
+
{jQuery('#sgpb-subs-gdpr-text').on('keyup',function(){var text=jQuery(this).val();jQuery(this).text('');jQuery(this).text(text);jQuery('.sgpb-gdpr-text-js').text(text);});jQuery('.js-subs-field-placeholder').each(function(){jQuery(this).bind('input',function(){var className=jQuery(this).attr('data-subs-rel');var placeholderText=jQuery(this).val();if(className=='js-subs-gdpr-label'){jQuery('.'+className).next().text(placeholderText);}
|
37 |
+
else{jQuery('.'+className).attr('placeholder',placeholderText);}});});};SGPBSubscription.prototype.binding=function()
|
38 |
+
{var that=this;jQuery('.js-checkbox-field-status').bind('click',function(){var isChecked=jQuery(this).is(':checked');var elementClassName=jQuery(this).attr('data-subs-field-wrapper');var element=jQuery('.'+elementClassName);that.toggleVisible(element,isChecked);});jQuery('.js-checkbox-acordion').each(function(){var isChecked=jQuery(this).is(':checked');var elementClassName=jQuery(this).attr('data-subs-rel');var element=jQuery('.'+elementClassName);that.toggleVisible(element,isChecked);});};SGPBSubscription.prototype.toggleVisible=function(toggleElement,elementStatus)
|
39 |
+
{if(elementStatus){toggleElement.css({'display':'block'});}
|
40 |
+
else{toggleElement.css({'display':'none'});}};SGPBSubscription.prototype.changeDimensionMode=function(dimension)
|
41 |
+
{var size;size=parseInt(dimension)+'px';if(dimension.indexOf('%')!=-1||dimension.indexOf('px')!=-1){size=dimension;}
|
42 |
+
return size;};SGPBSubscription.prototype.allowToOpen=function(popupId)
|
43 |
+
{var allowStatus=true;var cookieName=SGPBSubscription.cookieName+popupId;if(SGPopup.getCookie(cookieName)!=''){allowStatus=false;}
|
44 |
+
return allowStatus;};jQuery(document).ready(function(){new SGPBSubscription();});
|
public/js/sgpbSelect2.js
CHANGED
@@ -1 +1,10 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.fn.sgpbselect2=jQuery.fn.select2;function SGPBSelect2()
|
2 |
+
{this.init();}
|
3 |
+
SGPBSelect2.prototype.init=function()
|
4 |
+
{if(!jQuery('.js-sg-select2').length){return;}
|
5 |
+
this.hideProOptions();jQuery('select.js-sg-select2').each(function(){var type=jQuery(this).attr('data-select-type');var className=jQuery(this).attr('data-select-class');var options={width:'100%'};if(type=='ajax'){options=jQuery.extend(options,{minimumInputLength:1,ajax:{url:SGPB_JS_PARAMS.url,dataType:'json',delay:250,type:"POST",data:function(params){var searchKey=jQuery(this).attr('data-value-param');return{action:'select2_search_data',nonce_ajax:SGPB_JS_PARAMS.nonce,searchTerm:params.term,searchKey:searchKey};},processResults:function(data){return{results:jQuery.map(data.items,function(item){return{text:item.text,id:item.id}})};}}});}
|
6 |
+
jQuery(this).sgpbselect2(options);});};SGPBSelect2.prototype.hideProOptions=function()
|
7 |
+
{if(typeof SGPB_JS_PACKAGES=='undefined'){return;}
|
8 |
+
if(SGPB_JS_PACKAGES.packages['current']<SGPB_JS_PACKAGES.packages['platinum']){var disabledOptions=SGPB_JS_PACKAGES.proEvents;if(SGPB_JS_PACKAGES.packages['current']<SGPB_JS_PACKAGES.packages['silver']){for(var option in disabledOptions){var disabledOption=disabledOptions[option];jQuery('.sgpb-selectbox-settings option').each(function(){if(jQuery(this).val()==disabledOption){jQuery(this).attr('disabled','disabled');}});}}
|
9 |
+
if(SGPB_JS_PACKAGES.extensions['geo-targeting']){return;}
|
10 |
+
var disabledOptions=['groups_countries'];jQuery('.sgpb-selectbox-settings optgroup option').each(function(){for(var option in disabledOptions){var disabledOption=disabledOptions[option];if(jQuery(this).val()==disabledOption){jQuery(this).attr('disabled','disabled');}}});}};jQuery(document).ready(function(){var sgpbSelect2=new SGPBSelect2();});
|
public/views/closeSettingsView.php
CHANGED
@@ -198,7 +198,7 @@
|
|
198 |
</div>
|
199 |
<?php if (!$disablePopupClosing): ?>
|
200 |
<div class="col-md-2 sgpb-pro-options-label-wrapper">
|
201 |
-
<a href="<?php echo
|
202 |
</div>
|
203 |
<?php endif; ?>
|
204 |
</div>
|
198 |
</div>
|
199 |
<?php if (!$disablePopupClosing): ?>
|
200 |
<div class="col-md-2 sgpb-pro-options-label-wrapper">
|
201 |
+
<a href="<?php echo SG_POPUP_ADVANCED_CLOSING_URL;?>" target="_blank" class="btn btn-warning btn-xs sgpb-pro-label-sm"><?php _e('Upgrade to PRO', SG_POPUP_TEXT_DOMAIN) ?></a>
|
202 |
</div>
|
203 |
<?php endif; ?>
|
204 |
</div>
|
public/views/eventsView.php
CHANGED
@@ -4,7 +4,7 @@ $eventsData = $popupTypeObj->getOptionValue('sgpb-events');
|
|
4 |
$popupTargetData = ConditionBuilder::createEventsConditionBuilder($eventsData);
|
5 |
?>
|
6 |
|
7 |
-
<div class="popup-conditions-wrapper popup-conditions-events sgpb-wrapper" data-condition-type="events">
|
8 |
<?php
|
9 |
$creator = new ConditionCreator($popupTargetData);
|
10 |
echo $creator->render();
|
4 |
$popupTargetData = ConditionBuilder::createEventsConditionBuilder($eventsData);
|
5 |
?>
|
6 |
|
7 |
+
<div class="popup-conditions-wrapper popup-special-conditions-wrapper popup-conditions-events sgpb-wrapper" data-condition-type="events">
|
8 |
<?php
|
9 |
$creator = new ConditionCreator($popupTargetData);
|
10 |
echo $creator->render();
|
public/views/optionsView.php
CHANGED
@@ -143,45 +143,6 @@ if (!empty($removedOptions['content-copy-to-clipboard'])) {
|
|
143 |
</div>
|
144 |
<?php endif; ?>
|
145 |
<!-- this often end -->
|
146 |
-
<?php if (empty($removedOptions['sgpb-show-popup-after-x-pages'])): ?>
|
147 |
-
<div class="row form-group">
|
148 |
-
<label for="sgpb-show-popup-after-x-pages" class="col-md-5 control-label sgpb-static-padding-top">
|
149 |
-
<?php _e('After X pages visit', SG_POPUP_TEXT_DOMAIN)?>:
|
150 |
-
</label>
|
151 |
-
<div class="col-md-2<?php echo (!$afterXpagesUseOption) ? ' sgpb-pro-options-row' : '' ;?>">
|
152 |
-
<?php if($afterXpagesUseOption): ?>
|
153 |
-
<input type="checkbox" id="sgpb-show-popup-after-x-pages" name="sgpb-show-popup-after-x-pages" class="js-checkbox-accordion" <?php echo $popupTypeObj->getOptionValue('sgpb-show-popup-after-x-pages'); ?>>
|
154 |
-
<span class="dashicons dashicons-editor-help sgpb-info-icon sgpb-info-icon-align"></span>
|
155 |
-
<span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;">
|
156 |
-
<?php _e('If this option is enabled, you can show a popup after the user has visited your specified number of pages.', SG_POPUP_TEXT_DOMAIN);?>
|
157 |
-
</span>
|
158 |
-
<?php else: ?>
|
159 |
-
<input type="checkbox" id="sgpb-show-popup-after-x-pages" name="sgpb-show-popup-after-x-pages" class="js-checkbox-accordion" disabled>
|
160 |
-
<?php endif; ?>
|
161 |
-
</div>
|
162 |
-
<?php if (!$afterXpagesUseOption): ?>
|
163 |
-
<div class="col-md-2 sgpb-pro-options-label-wrapper">
|
164 |
-
<a href="<?php echo SG_POPUP_PRO_URL;?>" target="_blank" class="btn btn-warning btn-xs sgpb-pro-label-sm"><?php _e('Upgrade to PRO', SG_POPUP_TEXT_DOMAIN) ?></a>
|
165 |
-
</div>
|
166 |
-
<?php endif; ?>
|
167 |
-
</div>
|
168 |
-
<div class="sg-full-width">
|
169 |
-
<div class="row form-group">
|
170 |
-
<label for="sgpb-show-popup-after-x-pages-count" class="col-md-5 control-label sgpb-static-padding-top sgpb-sub-option">
|
171 |
-
<?php _e('is at least', SG_POPUP_TEXT_DOMAIN)?>:
|
172 |
-
</label>
|
173 |
-
<div class="col-md-6">
|
174 |
-
<input type="number" min="1" disabled required id="sgpb-show-popup-after-x-pages-count" class="sgpb-full-width-events form-control" name="sgpb-show-popup-after-x-pages-count" value="<?php echo $popupTypeObj->getOptionValue('sgpb-show-popup-after-x-pages-count'); ?>">
|
175 |
-
</div>
|
176 |
-
<div class="col-md-1 sgpb-info-wrapper">
|
177 |
-
<span class="dashicons dashicons-editor-help sgpb-info-icon sgpb-info-icon-align"></span>
|
178 |
-
<span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;">
|
179 |
-
<?php _e('Select the number of pages after visiting which the popup will open. If the number is set 1, the popup will be shown from the 2nd page visit.', SG_POPUP_TEXT_DOMAIN);?>
|
180 |
-
</span>
|
181 |
-
</div>
|
182 |
-
</div>
|
183 |
-
</div>
|
184 |
-
<?php endif;?>
|
185 |
<div class="row form-group">
|
186 |
<label class="col-md-5" for="open-sound">
|
187 |
<?php _e('Popup opening sound', SG_POPUP_TEXT_DOMAIN); ?>:
|
@@ -355,7 +316,7 @@ if (!empty($removedOptions['content-copy-to-clipboard'])) {
|
|
355 |
</div>
|
356 |
<?php if (!$autoClose): ?>
|
357 |
<div class="col-md-2 sgpb-pro-options-label-wrapper">
|
358 |
-
<a href="<?php echo
|
359 |
</div>
|
360 |
<?php endif; ?>
|
361 |
</div>
|
143 |
</div>
|
144 |
<?php endif; ?>
|
145 |
<!-- this often end -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
<div class="row form-group">
|
147 |
<label class="col-md-5" for="open-sound">
|
148 |
<?php _e('Popup opening sound', SG_POPUP_TEXT_DOMAIN); ?>:
|
316 |
</div>
|
317 |
<?php if (!$autoClose): ?>
|
318 |
<div class="col-md-2 sgpb-pro-options-label-wrapper">
|
319 |
+
<a href="<?php echo SG_POPUP_ADVANCED_CLOSING_URL;?>" target="_blank" class="btn btn-warning btn-xs sgpb-pro-label-sm"><?php _e('Upgrade to PRO', SG_POPUP_TEXT_DOMAIN) ?></a>
|
320 |
</div>
|
321 |
<?php endif; ?>
|
322 |
</div>
|
public/views/popupDesignView.php
CHANGED
@@ -85,7 +85,7 @@ $removedOptions = $popupTypeObj->getRemoveOptions();
|
|
85 |
</div>
|
86 |
<?php if (!$enablePopupOverlay): ?>
|
87 |
<div class="col-md-2 sgpb-pro-options-label-wrapper">
|
88 |
-
<a href="<?php echo
|
89 |
</div>
|
90 |
<?php endif; ?>
|
91 |
</div>
|
85 |
</div>
|
86 |
<?php if (!$enablePopupOverlay): ?>
|
87 |
<div class="col-md-2 sgpb-pro-options-label-wrapper">
|
88 |
+
<a href="<?php echo SG_POPUP_ADVANCED_CLOSING_URL;?>" target="_blank" class="btn btn-warning btn-xs sgpb-pro-label-sm"><?php _e('Upgrade to PRO', SG_POPUP_TEXT_DOMAIN) ?></a>
|
89 |
</div>
|
90 |
<?php endif; ?>
|
91 |
</div>
|
public/views/settings.php
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
<input type="checkbox" name="sgpb-dont-delete-data" class="sgpb-reset-checkbox-margin-top" id="sgpb-dont-delete-data" <?php echo $deleteData; ?>>
|
30 |
<span class="dashicons dashicons-editor-help sgpb-info-icon"></span>
|
31 |
<span class="infoSelectRepeat samefontStyle sgpb-info-text">
|
32 |
-
<?php _e('
|
33 |
</span>
|
34 |
</div>
|
35 |
</div>
|
29 |
<input type="checkbox" name="sgpb-dont-delete-data" class="sgpb-reset-checkbox-margin-top" id="sgpb-dont-delete-data" <?php echo $deleteData; ?>>
|
30 |
<span class="dashicons dashicons-editor-help sgpb-info-icon"></span>
|
31 |
<span class="infoSelectRepeat samefontStyle sgpb-info-text">
|
32 |
+
<?php _e('All the popup data will be deleted after removing the plugin if this option is checked', SG_POPUP_TEXT_DOMAIN)?>.
|
33 |
</span>
|
34 |
</div>
|
35 |
</div>
|
readme.txt
CHANGED
@@ -174,6 +174,14 @@ Go to the Popup Builder settings and set your desired options.
|
|
174 |
|
175 |
== Changelog ==
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
= Version 3.0.7 =
|
178 |
* Hot fix connected to subscribers table.
|
179 |
|
@@ -222,7 +230,7 @@ Go to the Popup Builder settings and set your desired options.
|
|
222 |
* Bug fixed connected to mail subject.
|
223 |
* Bug fixed subscription popup type.
|
224 |
* Bug fixed connected to banner.
|
225 |
-
* Bug fixed connected to '
|
226 |
* Optimization of images.
|
227 |
|
228 |
= Version 3.0.1 =
|
174 |
|
175 |
== Changelog ==
|
176 |
|
177 |
+
= Version 3.0.8 =
|
178 |
+
* Conflict fixed connected to 'unsubscribe' link with othe plugins.
|
179 |
+
* Image popup responsivenes improvements.
|
180 |
+
* Onclick and Onhover events added inside events dropdown metabox.
|
181 |
+
* Padding removed from image popup.
|
182 |
+
* Added while content is loading.
|
183 |
+
* Code improvements and minor bug fixes.
|
184 |
+
|
185 |
= Version 3.0.7 =
|
186 |
* Hot fix connected to subscribers table.
|
187 |
|
230 |
* Bug fixed connected to mail subject.
|
231 |
* Bug fixed subscription popup type.
|
232 |
* Bug fixed connected to banner.
|
233 |
+
* Bug fixed connected to 'draft' status.
|
234 |
* Optimization of images.
|
235 |
|
236 |
= Version 3.0.1 =
|