Popup by Supsystic - Version 1.10.13

Version Description

/ 13.04.2022 = * Add fix for wp review

Download this release

Release Info

Developer supsystic.com
Plugin Icon 128x128 Popup by Supsystic
Version 1.10.13
Comparing to
See all releases

Code changes from version 1.10.12 to 1.10.13

Files changed (32) hide show
  1. classes/field.php +2 -2
  2. config.php +1 -1
  3. modules/admin_nav/views/tpl/adminNavBreadcrumbs.php +2 -2
  4. modules/mail/engines/get_oauth_token.php +1 -1
  5. modules/mail/views/tpl/mailAdmin.php +11 -13
  6. modules/options/views/tpl/optionsAdminPage.php +9 -9
  7. modules/options/views/tpl/optionsSettingsTabContent.php +12 -12
  8. modules/pages/views/tpl/deactivatePage.php +7 -7
  9. modules/popup/views/tpl/popupAddNewAdmin.php +22 -22
  10. modules/popup/views/tpl/popupEditAdmin.php +12 -12
  11. modules/popup/views/tpl/popupEditAdminAnimationOpts.php +16 -16
  12. modules/popup/views/tpl/popupEditAdminCodeOpts.php +3 -3
  13. modules/popup/views/tpl/popupEditAdminContactFormbOpts.php +6 -6
  14. modules/popup/views/tpl/popupEditAdminDesignOpts.php +78 -78
  15. modules/popup/views/tpl/popupEditAdminMainOpts.php +181 -182
  16. modules/popup/views/tpl/popupEditAdminSmOpts.php +11 -11
  17. modules/popup/views/tpl/popupEditAdminSubOpts.php +137 -137
  18. modules/popup/views/tpl/popupEditAdminTextsOpts.php +26 -26
  19. modules/popup/views/tpl/popupEditAdminTplOpts.php +7 -7
  20. modules/popup/views/tpl/popupEditFormControls.php +7 -7
  21. modules/popup/views/tpl/popupHtml.php +2 -2
  22. modules/statistics/controller.php +1 -1
  23. modules/statistics/views/tpl/statPopupEditTab.php +12 -12
  24. modules/subscribe/views/tpl/subSuccessPage.php +19 -19
  25. modules/supsystic_promo/mod.php +1 -1
  26. modules/supsystic_promo/views/tpl/additionalmainAdminShowOnOptions.php +5 -5
  27. modules/supsystic_promo/views/tpl/adminFooter.php +3 -3
  28. modules/supsystic_promo/views/tpl/layeredStylePromo.php +3 -3
  29. modules/supsystic_promo/views/tpl/overviewTabContent.php +8 -8
  30. modules/supsystic_promo/views/tpl/pluginDeactivation.php +17 -17
  31. pps.php +1 -1
  32. readme.txt +4 -1
classes/field.php CHANGED
@@ -210,7 +210,7 @@ class fieldPps {
210
  }
211
  public function display($tag = 1, $id = 0) {
212
  $html = $this->drawHtml($tag, $id);
213
- echo viewPps::ksesString($html);
214
  }
215
  public function addHtmlParam($name, $value) {
216
  $this->htmlParams[$name] = $value;
@@ -493,7 +493,7 @@ class fieldPps {
493
  }
494
 
495
  public function displayConfig($module) {
496
- echo $this->drawConfig($module);
497
  }
498
  /**
499
  * This method will prepare internal value to it's type
210
  }
211
  public function display($tag = 1, $id = 0) {
212
  $html = $this->drawHtml($tag, $id);
213
+ echo viewPps::ksesString($html);
214
  }
215
  public function addHtmlParam($name, $value) {
216
  $this->htmlParams[$name] = $value;
493
  }
494
 
495
  public function displayConfig($module) {
496
+ echo viewPps::ksesString($this->drawConfig($module));
497
  }
498
  /**
499
  * This method will prepare internal value to it's type
config.php CHANGED
@@ -49,7 +49,7 @@
49
  define('PPS_EOL', "\n");
50
 
51
  define('PPS_PLUGIN_INSTALLED', true);
52
- define('PPS_VERSION', '1.10.12');
53
  define('PPS_USER', 'user');
54
 
55
  define('PPS_CLASS_PREFIX', 'ppsc');
49
  define('PPS_EOL', "\n");
50
 
51
  define('PPS_PLUGIN_INSTALLED', true);
52
+ define('PPS_VERSION', '1.10.13');
53
  define('PPS_USER', 'user');
54
 
55
  define('PPS_CLASS_PREFIX', 'ppsc');
modules/admin_nav/views/tpl/adminNavBreadcrumbs.php CHANGED
@@ -4,10 +4,10 @@
4
  <nav id="supsystic-breadcrumbs" class="supsystic-breadcrumbs <?php dispatcherPps::doAction('adminBreadcrumbsClassAdd')?>">
5
  <?php dispatcherPps::doAction('beforeAdminBreadcrumbs')?>
6
  <?php foreach($this->breadcrumbsList as $i => $crumb) { ?>
7
- <a class="supsystic-breadcrumb-el" href="<?php echo $crumb['url']?>"><?php echo $crumb['label']?></a>
8
  <?php if($i < ($countBreadcrumbs - 1)) { ?>
9
  <span class="breadcrumbs-separator"></span>
10
  <?php }?>
11
  <?php }?>
12
  <?php dispatcherPps::doAction('afterAdminBreadcrumbs')?>
13
- </nav>
4
  <nav id="supsystic-breadcrumbs" class="supsystic-breadcrumbs <?php dispatcherPps::doAction('adminBreadcrumbsClassAdd')?>">
5
  <?php dispatcherPps::doAction('beforeAdminBreadcrumbs')?>
6
  <?php foreach($this->breadcrumbsList as $i => $crumb) { ?>
7
+ <a class="supsystic-breadcrumb-el" href="<?php echo esc_html($crumb['url'])?>"><?php echo esc_html($crumb['label'])?></a>
8
  <?php if($i < ($countBreadcrumbs - 1)) { ?>
9
  <span class="breadcrumbs-separator"></span>
10
  <?php }?>
11
  <?php }?>
12
  <?php dispatcherPps::doAction('afterAdminBreadcrumbs')?>
13
+ </nav>
modules/mail/engines/get_oauth_token.php CHANGED
@@ -158,5 +158,5 @@ if (!isset($_GET['code'])) {
158
  );
159
 
160
  // Use this to get a new access token if the old one expires
161
- echo 'Refresh Token: ' . $token->getRefreshToken();
162
  }
158
  );
159
 
160
  // Use this to get a new access token if the old one expires
161
+ echo 'Refresh Token: ' . viewPps::ksesString($token->getRefreshToken());
162
  }
modules/mail/views/tpl/mailAdmin.php CHANGED
@@ -1,10 +1,10 @@
1
  <form id="ppsMailTestForm">
2
  <label>
3
  <?php _e('Send test email to')?>
4
- <?php echo htmlPps::text('test_email', array('value' => $this->testEmail))?>
5
  </label>
6
- <?php echo htmlPps::hidden('mod', array('value' => 'mail'))?>
7
- <?php echo htmlPps::hidden('action', array('value' => 'testEmail'))?>
8
  <button class="button button-primary">
9
  <i class="fa fa-paper-plane"></i>
10
  <?php _e('Send test', PPS_LANG_CODE)?>
@@ -38,12 +38,12 @@
38
  ?>
39
  <tr>
40
  <th scope="row" class="col-w-30perc">
41
- <?php echo $opt['label']?>
42
  <?php if(!empty($opt['changed_on'])) {?>
43
  <br />
44
  <span class="description">
45
- <?php
46
- $opt['value']
47
  ? printf(__('Turned On %s', PPS_LANG_CODE), datePps::_($opt['changed_on']))
48
  : printf(__('Turned Off %s', PPS_LANG_CODE), datePps::_($opt['changed_on']))
49
  ?>
@@ -51,23 +51,21 @@
51
  <?php }?>
52
  </th>
53
  <td class="col-w-10perc">
54
- <i class="fa fa-question supsystic-tooltip" title="<?php echo $opt['desc']?>"></i>
55
  </td>
56
  <td class="col-w-1perc">
57
- <?php echo htmlPps::$htmlType('opt_values['. $optKey. ']', array('value' => $opt['value'], 'attrs' => 'data-optkey="'. $optKey. '"'))?>
58
  </td>
59
  <td class="col-w-50perc">
60
- <div id="ppsFormOptDetails_<?php echo $optKey?>" class="ppsOptDetailsShell"></div>
61
  </td>
62
  </tr>
63
  <?php }?>
64
  </table>
65
- <?php echo htmlPps::hidden('mod', array('value' => 'mail'))?>
66
- <?php echo htmlPps::hidden('action', array('value' => 'saveOptions'))?>
67
  <button class="button button-primary">
68
  <i class="fa fa-fw fa-save"></i>
69
  <?php _e('Save', PPS_LANG_CODE)?>
70
  </button>
71
  </form>
72
-
73
-
1
  <form id="ppsMailTestForm">
2
  <label>
3
  <?php _e('Send test email to')?>
4
+ <?php echo viewPps::ksesString(htmlPps::text('test_email', array('value' => $this->testEmail)))?>
5
  </label>
6
+ <?php echo viewPps::ksesString(htmlPps::hidden('mod', array('value' => 'mail')))?>
7
+ <?php echo viewPps::ksesString(htmlPps::hidden('action', array('value' => 'testEmail')))?>
8
  <button class="button button-primary">
9
  <i class="fa fa-paper-plane"></i>
10
  <?php _e('Send test', PPS_LANG_CODE)?>
38
  ?>
39
  <tr>
40
  <th scope="row" class="col-w-30perc">
41
+ <?php echo viewPps::ksesString($opt['label'])?>
42
  <?php if(!empty($opt['changed_on'])) {?>
43
  <br />
44
  <span class="description">
45
+ <?php
46
+ $opt['value']
47
  ? printf(__('Turned On %s', PPS_LANG_CODE), datePps::_($opt['changed_on']))
48
  : printf(__('Turned Off %s', PPS_LANG_CODE), datePps::_($opt['changed_on']))
49
  ?>
51
  <?php }?>
52
  </th>
53
  <td class="col-w-10perc">
54
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString($opt['desc'])?>"></i>
55
  </td>
56
  <td class="col-w-1perc">
57
+ <?php echo viewPps::ksesString(htmlPps::$htmlType('opt_values['. $optKey. ']', array('value' => $opt['value'], 'attrs' => 'data-optkey="'. $optKey. '"')))?>
58
  </td>
59
  <td class="col-w-50perc">
60
+ <div id="ppsFormOptDetails_<?php echo esc_html($optKey)?>" class="ppsOptDetailsShell"></div>
61
  </td>
62
  </tr>
63
  <?php }?>
64
  </table>
65
+ <?php echo viewPps::ksesString(htmlPps::hidden('mod', array('value' => 'mail')))?>
66
+ <?php echo viewPps::ksesString(htmlPps::hidden('action', array('value' => 'saveOptions')))?>
67
  <button class="button button-primary">
68
  <i class="fa fa-fw fa-save"></i>
69
  <?php _e('Save', PPS_LANG_CODE)?>
70
  </button>
71
  </form>
 
 
modules/options/views/tpl/optionsAdminPage.php CHANGED
@@ -3,30 +3,30 @@
3
  <?php /*?><header class="supsystic-plugin">
4
  <h1><?php echo PPS_WP_PLUGIN_NAME?></h1>
5
  </header><?php */?>
6
- <?php echo $this->breadcrumbs?>
7
  <section class="supsystic-content">
8
  <nav class="supsystic-navigation supsystic-sticky <?php dispatcherPps::doAction('adminMainNavClassAdd')?>">
9
  <ul>
10
  <?php foreach($this->tabs as $tabKey => $tab) { ?>
11
  <?php if(isset($tab['hidden']) && $tab['hidden']) continue;?>
12
- <li class="supsystic-tab-<?php echo $tabKey;?> <?php echo (($this->activeTab == $tabKey || in_array($tabKey, $this->activeParentTabs)) ? 'active' : '')?>">
13
- <a href="<?php echo $tab['url']?>" title="<?php echo $tab['label']?>">
14
  <?php if(isset($tab['fa_icon'])) { ?>
15
- <i class="fa <?php echo $tab['fa_icon']?>"></i>
16
  <?php } elseif(isset($tab['wp_icon'])) { ?>
17
- <i class="dashicons-before <?php echo $tab['wp_icon']?>"></i>
18
  <?php } elseif(isset($tab['icon'])) { ?>
19
- <i class="<?php echo $tab['icon']?>"></i>
20
  <?php }?>
21
- <span class="sup-tab-label"><?php echo $tab['label']?></span>
22
  </a>
23
  </li>
24
  <?php }?>
25
  </ul>
26
  </nav>
27
- <div class="supsystic-container supsystic-<?php echo $this->activeTab?>">
28
  <?php dispatcherPps::doAction('discountMsg');?>
29
- <?php echo $this->content?>
30
  <div class="clear"></div>
31
  </div>
32
  </section>
3
  <?php /*?><header class="supsystic-plugin">
4
  <h1><?php echo PPS_WP_PLUGIN_NAME?></h1>
5
  </header><?php */?>
6
+ <?php echo viewPps::ksesString($this->breadcrumbs);?>
7
  <section class="supsystic-content">
8
  <nav class="supsystic-navigation supsystic-sticky <?php dispatcherPps::doAction('adminMainNavClassAdd')?>">
9
  <ul>
10
  <?php foreach($this->tabs as $tabKey => $tab) { ?>
11
  <?php if(isset($tab['hidden']) && $tab['hidden']) continue;?>
12
+ <li class="supsystic-tab-<?php echo esc_html($tabKey);?> <?php echo (($this->activeTab == $tabKey || in_array($tabKey, $this->activeParentTabs)) ? 'active' : '')?>">
13
+ <a href="<?php echo esc_html($tab['url'])?>" title="<?php echo esc_html($tab['label'])?>">
14
  <?php if(isset($tab['fa_icon'])) { ?>
15
+ <i class="fa <?php echo esc_html($tab['fa_icon'])?>"></i>
16
  <?php } elseif(isset($tab['wp_icon'])) { ?>
17
+ <i class="dashicons-before <?php echo esc_html($tab['wp_icon'])?>"></i>
18
  <?php } elseif(isset($tab['icon'])) { ?>
19
+ <i class="<?php echo esc_html($tab['icon'])?>"></i>
20
  <?php }?>
21
+ <span class="sup-tab-label"><?php echo viewPps::ksesString($tab['label'])?></span>
22
  </a>
23
  </li>
24
  <?php }?>
25
  </ul>
26
  </nav>
27
+ <div class="supsystic-container supsystic-<?php echo esc_html($this->activeTab)?>">
28
  <?php dispatcherPps::doAction('discountMsg');?>
29
+ <?php echo viewPps::ksesString($this->content)?>
30
  <div class="clear"></div>
31
  </div>
32
  </section>
modules/options/views/tpl/optionsSettingsTabContent.php CHANGED
@@ -35,11 +35,11 @@
35
  ?>
36
  <tr
37
  <?php if(isset($opt['connect']) && $opt['connect']) { ?>
38
- data-connect="<?php echo $opt['connect'];?>" style="display: none;"
39
  <?php }?>
40
  >
41
  <th scope="row" class="col-w-30perc">
42
- <?php echo $opt['label']?>
43
  <?php if(!empty($opt['changed_on'])) {?>
44
  <br />
45
  <span class="description">
@@ -52,7 +52,7 @@
52
  <?php }?>
53
  <?php if(isset($opt['pro']) && !empty($opt['pro'])) { ?>
54
  <span class="ppsProOptMiniLabel">
55
- <a href="<?php echo $opt['pro']?>" target="_blank">
56
  <?php _e('PRO option', PPS_LANG_CODE)?>
57
  </a>
58
  </span>
@@ -62,19 +62,19 @@
62
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html($opt['desc'])?>"></i>
63
  </td>
64
  <td class="col-w-1perc">
65
- <?php echo htmlPps::$htmlType('opt_values['. $optKey. ']', $htmlOpts)?>
66
  </td>
67
  <td class="col-w-60perc">
68
- <div id="ppsFormOptDetails_<?php echo $optKey?>" class="ppsOptDetailsShell">
69
  <?php switch($optKey) {
70
 
71
  }?>
72
  <?php
73
  if(isset($opt['add_sub_opts']) && !empty($opt['add_sub_opts'])) {
74
  if(is_string($opt['add_sub_opts'])) {
75
- echo $opt['add_sub_opts'];
76
  } elseif(is_callable($opt['add_sub_opts'])) {
77
- echo call_user_func_array($opt['add_sub_opts'], array($this->options));
78
  }
79
  }
80
  ?>
@@ -101,9 +101,9 @@
101
  <?php if (!empty($this->options['general']['opts']['groups']['value'])) {?>
102
  <?php foreach ($this->options['general']['opts']['groups']['value'] as $group) {?>
103
  <div class="popupGroupDiv button button-primary" title="Remove group" style="margin-right:15px;">
104
- <input type="hidden" class="popupGroupDivTitleInput" name="opt_values[groups][]" value="<?php echo $group;?>">
105
  <span class="popupGroupDivRemove"> <i class="fa fa-close"></i></span>
106
- <span class="popupGroupDivTitle"> <?php echo $group;?></span>
107
  </div>
108
  <?php }?>
109
  <?php }?>
@@ -114,9 +114,9 @@
114
  <div style="clear: both;"></div>
115
  </div>
116
  </div>
117
- <?php echo htmlPps::hidden('mod', array('value' => 'options'))?>
118
- <?php echo htmlPps::hidden('action', array('value' => 'saveGroup'))?>
119
  </form>
120
  <br />
121
- <a href="<?php echo $this->exportAllSubscribersUrl;?>" class="button"><?php _e('Export all Subscribers', PPS_LANG_CODE)?></a>
122
  </section>
35
  ?>
36
  <tr
37
  <?php if(isset($opt['connect']) && $opt['connect']) { ?>
38
+ data-connect="<?php echo esc_html($opt['connect']);?>" style="display: none;"
39
  <?php }?>
40
  >
41
  <th scope="row" class="col-w-30perc">
42
+ <?php echo viewPps::ksesString($opt['label'])?>
43
  <?php if(!empty($opt['changed_on'])) {?>
44
  <br />
45
  <span class="description">
52
  <?php }?>
53
  <?php if(isset($opt['pro']) && !empty($opt['pro'])) { ?>
54
  <span class="ppsProOptMiniLabel">
55
+ <a href="<?php echo esc_html($opt['pro'])?>" target="_blank">
56
  <?php _e('PRO option', PPS_LANG_CODE)?>
57
  </a>
58
  </span>
62
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html($opt['desc'])?>"></i>
63
  </td>
64
  <td class="col-w-1perc">
65
+ <?php echo viewPps::ksesString(htmlPps::$htmlType('opt_values['. $optKey. ']', $htmlOpts))?>
66
  </td>
67
  <td class="col-w-60perc">
68
+ <div id="ppsFormOptDetails_<?php echo esc_html($optKey)?>" class="ppsOptDetailsShell">
69
  <?php switch($optKey) {
70
 
71
  }?>
72
  <?php
73
  if(isset($opt['add_sub_opts']) && !empty($opt['add_sub_opts'])) {
74
  if(is_string($opt['add_sub_opts'])) {
75
+ echo viewPps::ksesString($opt['add_sub_opts']);
76
  } elseif(is_callable($opt['add_sub_opts'])) {
77
+ echo viewPps::ksesString(call_user_func_array($opt['add_sub_opts'], array($this->options)));
78
  }
79
  }
80
  ?>
101
  <?php if (!empty($this->options['general']['opts']['groups']['value'])) {?>
102
  <?php foreach ($this->options['general']['opts']['groups']['value'] as $group) {?>
103
  <div class="popupGroupDiv button button-primary" title="Remove group" style="margin-right:15px;">
104
+ <input type="hidden" class="popupGroupDivTitleInput" name="opt_values[groups][]" value="<?php echo viewPps::ksesString($group);?>">
105
  <span class="popupGroupDivRemove"> <i class="fa fa-close"></i></span>
106
+ <span class="popupGroupDivTitle"> <?php echo viewPps::ksesString($group);?></span>
107
  </div>
108
  <?php }?>
109
  <?php }?>
114
  <div style="clear: both;"></div>
115
  </div>
116
  </div>
117
+ <?php echo viewPps::ksesString(htmlPps::hidden('mod', array('value' => 'options')))?>
118
+ <?php echo viewPps::ksesString(htmlPps::hidden('action', array('value' => 'saveGroup')))?>
119
  </form>
120
  <br />
121
+ <a href="<?php echo esc_html($this->exportAllSubscribersUrl);?>" class="button"><?php _e('Export all Subscribers', PPS_LANG_CODE)?></a>
122
  </section>
modules/pages/views/tpl/deactivatePage.php CHANGED
@@ -8,7 +8,7 @@
8
  <body>
9
  <div style="position: fixed; margin-left: 40%; margin-right: auto; text-align: center; background-color: #fdf5ce; padding: 10px; margin-top: 10%;">
10
  <div><?php _e( $title )?></div>
11
- <?php echo htmlPps::formStart('deactivatePlugin', array('action' => $this->REQUEST_URI, 'method' => $this->REQUEST_METHOD))?>
12
  <?php
13
  $formData = array();
14
  switch($this->REQUEST_METHOD) {
@@ -22,20 +22,20 @@
22
  foreach($formData as $key => $val) {
23
  if(is_array($val)) {
24
  foreach($val as $subKey => $subVal) {
25
- echo htmlPps::hidden($key. '['. $subKey. ']', array('value' => $subVal));
26
  }
27
  } else
28
- echo htmlPps::hidden($key, array('value' => $val));
29
  }
30
  ?>
31
  <table width="100%">
32
  <tr>
33
  <td><?php _e('Delete Plugin Data (options, setup data, database tables, etc.)', PPS_LANG_CODE)?>:</td>
34
- <td><?php echo htmlPps::radiobuttons('deleteOptions', array('options' => array('No', 'Yes')))?></td>
35
  </tr>
36
  </table>
37
- <?php echo htmlPps::submit('toeGo', array('value' => __('Done', PPS_LANG_CODE)))?>
38
- <?php echo htmlPps::formEnd()?>
39
  </div>
40
  </body>
41
- </html>
8
  <body>
9
  <div style="position: fixed; margin-left: 40%; margin-right: auto; text-align: center; background-color: #fdf5ce; padding: 10px; margin-top: 10%;">
10
  <div><?php _e( $title )?></div>
11
+ <?php echo viewPps::ksesString(htmlPps::formStart('deactivatePlugin', array('action' => $this->REQUEST_URI, 'method' => $this->REQUEST_METHOD)))?>
12
  <?php
13
  $formData = array();
14
  switch($this->REQUEST_METHOD) {
22
  foreach($formData as $key => $val) {
23
  if(is_array($val)) {
24
  foreach($val as $subKey => $subVal) {
25
+ echo viewPps::ksesString(htmlPps::hidden($key. '['. $subKey. ']', array('value' => $subVal)));
26
  }
27
  } else
28
+ echo viewPps::ksesString(htmlPps::hidden($key, array('value' => $val)));
29
  }
30
  ?>
31
  <table width="100%">
32
  <tr>
33
  <td><?php _e('Delete Plugin Data (options, setup data, database tables, etc.)', PPS_LANG_CODE)?>:</td>
34
+ <td><?php echo viewPps::ksesString(htmlPps::radiobuttons('deleteOptions', array('options' => array('No', 'Yes'))))?></td>
35
  </tr>
36
  </table>
37
+ <?php echo viewPps::ksesString(htmlPps::submit('toeGo', array('value' => __('Done', PPS_LANG_CODE))))?>
38
+ <?php echo viewPps::ksesString(htmlPps::formEnd())?>
39
  </div>
40
  </body>
41
+ </html>
modules/popup/views/tpl/popupAddNewAdmin.php CHANGED
@@ -1,12 +1,12 @@
1
  <style type="text/css">
2
  .popup-list-item.sup-promo:after {
3
- background-image: url("<?php echo $this->getModule()->getAssetsUrl()?>img/assets/ribbon-2.png");
4
  background-repeat: no-repeat;
5
  background-position: 0;
6
  content: " ";
7
  position: absolute;
8
  display: block;
9
-
10
  top: 0;
11
  right: 0;
12
  width: 100px;
@@ -29,25 +29,25 @@
29
  <form id="ppsCreatePopupForm">
30
  <label>
31
  <h3 style="float: left; margin: 10px;"><?php _e('PopUp Name', PPS_LANG_CODE)?>:</h3>
32
- <?php echo htmlPps::text('label', array('attrs' => 'style="float: left; width: 60%;"', 'required' => true))?>
33
  </label>
34
  <button class="button button-primary" style="margin-top: 1px;">
35
  <i class="fa fa-check"></i>
36
  <?php _e('Save', PPS_LANG_CODE)?>
37
  </button>
38
- <?php echo htmlPps::hidden('original_id')?>
39
- <?php echo htmlPps::hidden('mod', array('value' => 'popup'))?>
40
- <?php echo htmlPps::hidden('action', array('value' => 'createFromTpl'))?>
41
  </form>
42
  <div style="clear: both;"></div>
43
  <div style="padding-top: 10px;">
44
  <a href="#all" data-id="0" style="margin-bottom: 5px;" class="ppsTypeFilterBtn button active focus"><?php _e('All', PPS_LANG_CODE)?></a>
45
  <?php foreach($this->types as $tId => $t) { ?>
46
- <a href="#<?php echo $t['code'];?>" data-id="<?php echo $tId;?>" class="ppsTypeFilterBtn button"
47
  <?php if(isset($t['fective'])) { ?>
48
- data-fective="<?php echo implode(',', $t['fective'])?>" data-replace=""
49
  <?php }?>
50
- ><?php echo $t['label']?></a>
51
  <?php }?>
52
  </div>
53
  <div style="clear: both;"></div>
@@ -57,11 +57,11 @@
57
  <div style="padding-top: 10px;">
58
  <a href="#all" data-id="0" style="margin-bottom: 5px;" class="ppsTypeFilterBtn button active focus"><?php _e('All', PPS_LANG_CODE)?></a>
59
  <?php foreach($this->types as $tId => $t) { ?>
60
- <a href="#<?php echo $t['code'];?>" data-id="<?php echo $tId;?>" class="ppsTypeFilterBtn button"
61
  <?php if(isset($t['fective'])) { ?>
62
- data-fective="<?php echo implode(',', $t['fective'])?>" data-replace=""
63
  <?php }?>
64
- ><?php echo $t['label']?></a>
65
  <?php }?>
66
  </div>
67
  <?php }?>
@@ -69,15 +69,15 @@
69
  <?php foreach($this->list as $popup) { ?>
70
  <?php $isPromo = isset($popup['promo']) && !empty($popup['promo']);?>
71
  <?php $promoClass = $isPromo ? 'sup-promo' : '';?>
72
- <div class="popup-list-item preset <?php echo $promoClass;?>" data-id="<?php echo ($isPromo ? 0 : $popup['id'])?>" data-type-id="<?php echo $popup['type_id'];?>">
73
- <img src="<?php echo $popup['img_preview_url']?>" class="ppsTplPrevImg" />
74
  <div class="preset-overlay">
75
  <h3>
76
- <span class="ppsTplLabel"><?php echo $popup['label']?></span><br />
77
- <?php echo $this->types[ $popup['type_id'] ]['label']?>&nbsp;<?php _e('type', PPS_LANG_CODE)?>
78
  </h3>
79
  <?php if($isPromo) { ?>
80
- <a href="<?php echo $popup['promo_link']?>" target="_blank" class="button ppsPromoTplBtn"><?php _e('Get in PRO', PPS_LANG_CODE)?></a>
81
  <?php }?>
82
  </div>
83
  </div>
@@ -91,11 +91,11 @@
91
  <div id="ppsChangeTplWnd" title="<?php _e('Change Template', PPS_LANG_CODE)?>" style="display: none;">
92
  <form id="ppsChangeTplForm">
93
  <?php _e('Are you sure you want to change your current template - to ', PPS_LANG_CODE)?><span id="ppsChangeTplNewLabel"></span>?
94
- <?php echo htmlPps::hidden('id')?>
95
- <?php echo htmlPps::hidden('new_tpl_id')?>
96
- <?php echo htmlPps::hidden('mod', array('value' => 'popup'))?>
97
- <?php echo htmlPps::hidden('action', array('value' => 'changeTpl'))?>
98
  </form>
99
  <div id="ppsChangeTplMsg"></div>
100
  </div>
101
- <!---->
1
  <style type="text/css">
2
  .popup-list-item.sup-promo:after {
3
+ background-image: url("<?php echo esc_html($this->getModule()->getAssetsUrl());?>img/assets/ribbon-2.png");
4
  background-repeat: no-repeat;
5
  background-position: 0;
6
  content: " ";
7
  position: absolute;
8
  display: block;
9
+
10
  top: 0;
11
  right: 0;
12
  width: 100px;
29
  <form id="ppsCreatePopupForm">
30
  <label>
31
  <h3 style="float: left; margin: 10px;"><?php _e('PopUp Name', PPS_LANG_CODE)?>:</h3>
32
+ <?php echo viewPps::ksesString(htmlPps::text('label', array('attrs' => 'style="float: left; width: 60%;"', 'required' => true)))?>
33
  </label>
34
  <button class="button button-primary" style="margin-top: 1px;">
35
  <i class="fa fa-check"></i>
36
  <?php _e('Save', PPS_LANG_CODE)?>
37
  </button>
38
+ <?php echo viewPps::ksesString(htmlPps::hidden('original_id'))?>
39
+ <?php echo viewPps::ksesString(htmlPps::hidden('mod', array('value' => 'popup')))?>
40
+ <?php echo viewPps::ksesString(htmlPps::hidden('action', array('value' => 'createFromTpl')))?>
41
  </form>
42
  <div style="clear: both;"></div>
43
  <div style="padding-top: 10px;">
44
  <a href="#all" data-id="0" style="margin-bottom: 5px;" class="ppsTypeFilterBtn button active focus"><?php _e('All', PPS_LANG_CODE)?></a>
45
  <?php foreach($this->types as $tId => $t) { ?>
46
+ <a href="#<?php echo esc_html($t['code']);?>" data-id="<?php echo esc_html($tId);?>" class="ppsTypeFilterBtn button"
47
  <?php if(isset($t['fective'])) { ?>
48
+ data-fective="<?php echo esc_html(implode(',', $t['fective']))?>" data-replace=""
49
  <?php }?>
50
+ ><?php echo viewPps::ksesString($t['label'])?></a>
51
  <?php }?>
52
  </div>
53
  <div style="clear: both;"></div>
57
  <div style="padding-top: 10px;">
58
  <a href="#all" data-id="0" style="margin-bottom: 5px;" class="ppsTypeFilterBtn button active focus"><?php _e('All', PPS_LANG_CODE)?></a>
59
  <?php foreach($this->types as $tId => $t) { ?>
60
+ <a href="#<?php echo esc_html($t['code']);?>" data-id="<?php echo esc_html($tId);?>" class="ppsTypeFilterBtn button"
61
  <?php if(isset($t['fective'])) { ?>
62
+ data-fective="<?php echo esc_html(implode(',', $t['fective']))?>" data-replace=""
63
  <?php }?>
64
+ ><?php echo viewPps::ksesString($t['label'])?></a>
65
  <?php }?>
66
  </div>
67
  <?php }?>
69
  <?php foreach($this->list as $popup) { ?>
70
  <?php $isPromo = isset($popup['promo']) && !empty($popup['promo']);?>
71
  <?php $promoClass = $isPromo ? 'sup-promo' : '';?>
72
+ <div class="popup-list-item preset <?php echo esc_html($promoClass);?>" data-id="<?php echo ($isPromo ? 0 : esc_html($popup['id']))?>" data-type-id="<?php echo esc_html($popup['type_id']);?>">
73
+ <img src="<?php echo esc_html($popup['img_preview_url'])?>" class="ppsTplPrevImg" />
74
  <div class="preset-overlay">
75
  <h3>
76
+ <span class="ppsTplLabel"><?php echo viewPps::ksesString($popup['label'])?></span><br />
77
+ <?php echo viewPps::ksesString($this->types[ $popup['type_id'] ]['label'])?>&nbsp;<?php _e('type', PPS_LANG_CODE)?>
78
  </h3>
79
  <?php if($isPromo) { ?>
80
+ <a href="<?php echo esc_html($popup['promo_link'])?>" target="_blank" class="button ppsPromoTplBtn"><?php _e('Get in PRO', PPS_LANG_CODE)?></a>
81
  <?php }?>
82
  </div>
83
  </div>
91
  <div id="ppsChangeTplWnd" title="<?php _e('Change Template', PPS_LANG_CODE)?>" style="display: none;">
92
  <form id="ppsChangeTplForm">
93
  <?php _e('Are you sure you want to change your current template - to ', PPS_LANG_CODE)?><span id="ppsChangeTplNewLabel"></span>?
94
+ <?php echo viewPps::ksesString(htmlPps::hidden('id'))?>
95
+ <?php echo viewPps::ksesString(htmlPps::hidden('new_tpl_id'))?>
96
+ <?php echo viewPps::ksesString(htmlPps::hidden('mod', array('value' => 'popup')))?>
97
+ <?php echo viewPps::ksesString(htmlPps::hidden('action', array('value' => 'changeTpl')))?>
98
  </form>
99
  <div id="ppsChangeTplMsg"></div>
100
  </div>
101
+ <!---->
modules/popup/views/tpl/popupEditAdmin.php CHANGED
@@ -9,13 +9,13 @@
9
  $iconClass .= '-not-hide'; // We will just exclude it from selector to hide, jQuery.not() - make browser slow down in this case - so better don't use it
10
  }
11
  ?>
12
- <a class="nav-tab <?php if($i == 0) { echo 'nav-tab-active'; }?>" href="#<?php echo $tKey?>">
13
  <?php if(isset($tData['fa_icon'])) { ?>
14
- <i class="<?php echo $iconClass?> fa <?php echo $tData['fa_icon']?>"></i>
15
  <?php } elseif(isset($tData['icon_content'])) { ?>
16
- <i class="<?php echo $iconClass?> fa"><?php echo $tData['icon_content']?></i>
17
  <?php }?>
18
- <span class="ppsPopupTabTitle"><?php echo $tData['title']?></span>
19
  </a>
20
  <?php $i++; }?>
21
  </h3>
@@ -25,19 +25,19 @@
25
  <div id="containerWrapper">
26
  <form id="ppsPopupEditForm">
27
  <?php foreach($this->tabs as $tKey => $tData) { ?>
28
- <div id="<?php echo $tKey?>" class="ppsTabContent">
29
- <?php echo $tData['content']?>
30
  </div>
31
  <?php }?>
32
  <?php if(isset($this->popup['params']['opts_attrs'])) {?>
33
  <?php foreach($this->popup['params']['opts_attrs'] as $optKey => $attr) {
34
- echo htmlPps::hidden('params[opts_attrs]['. $optKey. ']', array('value' => $attr));
35
  }?>
36
  <?php }?>
37
- <?php echo htmlPps::hidden('mod', array('value' => 'popup'))?>
38
- <?php echo htmlPps::hidden('action', array('value' => 'save'))?>
39
- <?php echo htmlPps::hidden('id', array('value' => $this->popup['id']))?>
40
- <?php echo htmlPps::nonceForAction('save')?>
41
  </form>
42
  <div style="clear: both;"></div>
43
  <div id="ppsPopupPreview" style="">
@@ -60,7 +60,7 @@
60
  </div>
61
  <div id="ppsPopupGoToTop">
62
  <a id="ppsPopupGoToTopBtn" href="#">
63
- <img src="<?php echo uriPps::_(PPS_IMG_PATH)?>pointer-up.png" /><br />
64
  <?php _e('Back to top', PPS_LANG_CODE)?>
65
  </a>
66
  </div>
9
  $iconClass .= '-not-hide'; // We will just exclude it from selector to hide, jQuery.not() - make browser slow down in this case - so better don't use it
10
  }
11
  ?>
12
+ <a class="nav-tab <?php if($i == 0) { echo esc_html('nav-tab-active'); }?>" href="#<?php echo esc_html($tKey)?>">
13
  <?php if(isset($tData['fa_icon'])) { ?>
14
+ <i class="<?php echo esc_html($iconClass)?> fa <?php echo viewPps::ksesString($tData['fa_icon'])?>"></i>
15
  <?php } elseif(isset($tData['icon_content'])) { ?>
16
+ <i class="<?php echo esc_html($iconClass)?> fa"><?php echo viewPps::ksesString($tData['icon_content'])?></i>
17
  <?php }?>
18
+ <span class="ppsPopupTabTitle"><?php echo viewPps::ksesString($tData['title'])?></span>
19
  </a>
20
  <?php $i++; }?>
21
  </h3>
25
  <div id="containerWrapper">
26
  <form id="ppsPopupEditForm">
27
  <?php foreach($this->tabs as $tKey => $tData) { ?>
28
+ <div id="<?php echo esc_html($tKey)?>" class="ppsTabContent">
29
+ <?php echo viewPps::ksesString($tData['content'])?>
30
  </div>
31
  <?php }?>
32
  <?php if(isset($this->popup['params']['opts_attrs'])) {?>
33
  <?php foreach($this->popup['params']['opts_attrs'] as $optKey => $attr) {
34
+ echo viewPps::ksesString(htmlPps::hidden('params[opts_attrs]['. $optKey. ']', array('value' => $attr)));
35
  }?>
36
  <?php }?>
37
+ <?php echo viewPps::ksesString(htmlPps::hidden('mod', array('value' => 'popup')))?>
38
+ <?php echo viewPps::ksesString(htmlPps::hidden('action', array('value' => 'save')))?>
39
+ <?php echo viewPps::ksesString(htmlPps::hidden('id', array('value' => $this->popup['id'])))?>
40
+ <?php echo viewPps::ksesString(htmlPps::nonceForAction('save'))?>
41
  </form>
42
  <div style="clear: both;"></div>
43
  <div id="ppsPopupPreview" style="">
60
  </div>
61
  <div id="ppsPopupGoToTop">
62
  <a id="ppsPopupGoToTopBtn" href="#">
63
+ <img src="<?php echo esc_html(uriPps::_(PPS_IMG_PATH))?>pointer-up.png" /><br />
64
  <?php _e('Back to top', PPS_LANG_CODE)?>
65
  </a>
66
  </div>
modules/popup/views/tpl/popupEditAdminAnimationOpts.php CHANGED
@@ -1,9 +1,9 @@
1
  <span class="ppsOptLabel" style="display: inline; line-height: 30px;">
2
  <?php _e('Choose PopUp animation style', PPS_LANG_CODE)?>,
3
- <?php _e('current style', PPS_LANG_CODE)?>:
4
  <span id="ppsPopupAnimCurrStyle"></span>
5
  </span>
6
- <a href="#" class="button" id="ppsOpenCloseAnimSwitchBtn"
7
  data-txt-close="<?php _e('Select Close Animation')?>"
8
  data-txt-open="<?php _e('Select Open Animation')?>"></a>
9
  <hr /><div style="clear: both;"></div>
@@ -12,38 +12,38 @@
12
  <?php foreach($this->animationList as $aKey => $aData) { ?>
13
  <?php if(isset($aData['old']) && $aData['old']) continue;?>
14
  <div class="ppsPopupAnimEff">
15
- <div class="ppsPopupAnimEffLabel"
16
- data-label="<?php echo $aData['label']?>"
17
- data-key="<?php echo $aKey?>"
18
  <?php if($aKey != 'none') {?>
19
- data-show-class="<?php echo $aData['show_class']?>"
20
- data-hide-class="<?php echo $aData['hide_class']?>"
21
  <?php }?>
22
  >
23
- <?php echo $aData['label']?>
24
  </div>
25
  </div>
26
  <?php }?>
27
  <div style="clear: both;"></div>
28
  </div>
29
- <?php echo htmlPps::hidden('params[tpl][anim_key]', array('value' => $this->popup['params']['tpl']['anim_key']))?>
30
- <?php echo htmlPps::hidden('params[tpl][anim_close_key]', array('value' => isset($this->popup['params']['tpl']['anim_close_key'])
31
  ? $this->popup['params']['tpl']['anim_close_key']
32
- : ''))?>
33
  </div>
34
  <div class="ppsPopupOptRow ppsAnimOpenRow">
35
  <label>
36
  <?php _e('Animation Duration', PPS_LANG_CODE)?>:
37
- <?php echo htmlPps::text('params[tpl][anim_duration]', array('value' => $this->popup['params']['tpl']['anim_duration']))?>
38
  <?php _e('miliseconds', PPS_LANG_CODE)?>
39
  </label>
40
  </div>
41
  <div class="ppsPopupOptRow ppsAnimCloseRow">
42
  <label>
43
  <?php _e('Close Animation Duration', PPS_LANG_CODE)?>:
44
- <?php echo htmlPps::text('params[tpl][anim_close_duration]', array('value' => isset($this->popup['params']['tpl']['anim_close_duration'])
45
- ? $this->popup['params']['tpl']['anim_close_duration']
46
- : ''))?>
47
  <?php _e('miliseconds', PPS_LANG_CODE)?>
48
  </label>
49
- </div>
1
  <span class="ppsOptLabel" style="display: inline; line-height: 30px;">
2
  <?php _e('Choose PopUp animation style', PPS_LANG_CODE)?>,
3
+ <?php _e('current style', PPS_LANG_CODE)?>:
4
  <span id="ppsPopupAnimCurrStyle"></span>
5
  </span>
6
+ <a href="#" class="button" id="ppsOpenCloseAnimSwitchBtn"
7
  data-txt-close="<?php _e('Select Close Animation')?>"
8
  data-txt-open="<?php _e('Select Open Animation')?>"></a>
9
  <hr /><div style="clear: both;"></div>
12
  <?php foreach($this->animationList as $aKey => $aData) { ?>
13
  <?php if(isset($aData['old']) && $aData['old']) continue;?>
14
  <div class="ppsPopupAnimEff">
15
+ <div class="ppsPopupAnimEffLabel"
16
+ data-label="<?php echo esc_html($aData['label'])?>"
17
+ data-key="<?php echo esc_html($aKey)?>"
18
  <?php if($aKey != 'none') {?>
19
+ data-show-class="<?php echo esc_html($aData['show_class'])?>"
20
+ data-hide-class="<?php echo esc_html($aData['hide_class'])?>"
21
  <?php }?>
22
  >
23
+ <?php echo viewPps::ksesString($aData['label'])?>
24
  </div>
25
  </div>
26
  <?php }?>
27
  <div style="clear: both;"></div>
28
  </div>
29
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][anim_key]', array('value' => $this->popup['params']['tpl']['anim_key'])))?>
30
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][anim_close_key]', array('value' => isset($this->popup['params']['tpl']['anim_close_key'])
31
  ? $this->popup['params']['tpl']['anim_close_key']
32
+ : '')))?>
33
  </div>
34
  <div class="ppsPopupOptRow ppsAnimOpenRow">
35
  <label>
36
  <?php _e('Animation Duration', PPS_LANG_CODE)?>:
37
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][anim_duration]', array('value' => $this->popup['params']['tpl']['anim_duration'])))?>
38
  <?php _e('miliseconds', PPS_LANG_CODE)?>
39
  </label>
40
  </div>
41
  <div class="ppsPopupOptRow ppsAnimCloseRow">
42
  <label>
43
  <?php _e('Close Animation Duration', PPS_LANG_CODE)?>:
44
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][anim_close_duration]', array('value' => isset($this->popup['params']['tpl']['anim_close_duration'])
45
+ ? $this->popup['params']['tpl']['anim_close_duration']
46
+ : '')))?>
47
  <?php _e('miliseconds', PPS_LANG_CODE)?>
48
  </label>
49
+ </div>
modules/popup/views/tpl/popupEditAdminCodeOpts.php CHANGED
@@ -3,9 +3,9 @@
3
  </p>
4
  <fieldset>
5
  <legend><?php _e('CSS code')?></legend>
6
- <?php echo htmlPps::textarea('css', array('value' => $this->popup['css'], 'attrs' => 'id="ppsPopupCssEditor"'))?>
7
  </fieldset>
8
  <fieldset>
9
  <legend><?php _e('HTML code')?></legend>
10
- <?php echo htmlPps::textarea('html', array('value' => $this->popup['html'], 'attrs' => 'id="ppsPopupHtmlEditor"'))?>
11
- </fieldset>
3
  </p>
4
  <fieldset>
5
  <legend><?php _e('CSS code')?></legend>
6
+ <?php echo viewPps::ksesString(htmlPps::textarea('css', array('value' => $this->popup['css'], 'attrs' => 'id="ppsPopupCssEditor"')))?>
7
  </fieldset>
8
  <fieldset>
9
  <legend><?php _e('HTML code')?></legend>
10
+ <?php echo viewPps::ksesString(htmlPps::textarea('html', array('value' => $this->popup['html'], 'attrs' => 'id="ppsPopupHtmlEditor"')))?>
11
+ </fieldset>
modules/popup/views/tpl/popupEditAdminContactFormbOpts.php CHANGED
@@ -3,10 +3,10 @@
3
  } else { ?>
4
  <div class="ppsPopupOptRow">
5
  <label>
6
- <?php echo htmlPps::checkbox('params[tpl][enb_contact_form]', array(
7
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_contact_form'),
8
  'attrs' => 'data-switch-block="contactFormShell"',
9
- ))?>
10
  <?php _e('Enable Contact Form', PPS_LANG_CODE)?>
11
  </label>
12
  <div class="description"><?php _e('Please be advised that this feature will replace your current PopUp forms (Subscribe, Login and Registration) with Contact Form', PPS_LANG_CODE)?></div>
@@ -16,15 +16,15 @@
16
  <tr>
17
  <th scope="row">
18
  <?php _e('Select Contact Form', PPS_LANG_CODE)?>
19
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Contact Form that will handle your contacts.', PPS_LANG_CODE))?>"></i>
20
  </th>
21
  <td>
22
  <?php if(empty($this->contactFormsListForSelect)) {
23
  printf(__('You have no Contact Forms for now. Create your first form <a href="%s" target="_blank" class="button">here</a>, reload this page - and you will be able to select your Contact Form.', PPS_LANG_CODE), $this->contactFormCreateUrl);
24
  } else {
25
- echo htmlPps::selectbox('params[tpl][contact_form]', array(
26
- 'options' => $this->contactFormsListForSelect,
27
- 'value' => (isset($this->popup['params']['tpl']['contact_form']) ? $this->popup['params']['tpl']['contact_form'] : '')));
28
  }?>
29
  </td>
30
  </tr>
3
  } else { ?>
4
  <div class="ppsPopupOptRow">
5
  <label>
6
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][enb_contact_form]', array(
7
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_contact_form'),
8
  'attrs' => 'data-switch-block="contactFormShell"',
9
+ )))?>
10
  <?php _e('Enable Contact Form', PPS_LANG_CODE)?>
11
  </label>
12
  <div class="description"><?php _e('Please be advised that this feature will replace your current PopUp forms (Subscribe, Login and Registration) with Contact Form', PPS_LANG_CODE)?></div>
16
  <tr>
17
  <th scope="row">
18
  <?php _e('Select Contact Form', PPS_LANG_CODE)?>
19
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('Contact Form that will handle your contacts.', PPS_LANG_CODE)))?>"></i>
20
  </th>
21
  <td>
22
  <?php if(empty($this->contactFormsListForSelect)) {
23
  printf(__('You have no Contact Forms for now. Create your first form <a href="%s" target="_blank" class="button">here</a>, reload this page - and you will be able to select your Contact Form.', PPS_LANG_CODE), $this->contactFormCreateUrl);
24
  } else {
25
+ echo viewPps::ksesString(htmlPps::selectbox('params[tpl][contact_form]', array(
26
+ 'options' => $this->contactFormsListForSelect,
27
+ 'value' => (isset($this->popup['params']['tpl']['contact_form']) ? $this->popup['params']['tpl']['contact_form'] : ''))));
28
  }?>
29
  </td>
30
  </tr>
modules/popup/views/tpl/popupEditAdminDesignOpts.php CHANGED
@@ -6,7 +6,7 @@
6
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Copy and paste here URL of your video source', PPS_LANG_CODE)?>"></i>
7
  </th>
8
  <td class="col-w-1perc">
9
- <?php echo htmlPps::text('params[tpl][video_url]', array('value' => $this->popup['params']['tpl']['video_url'], 'attrs' => 'style="width: 100%;"'))?>
10
  </td>
11
  </tr>
12
  <tr class="ppsVideoVimeoExtraShell">
@@ -14,14 +14,14 @@
14
  <?php _e('Vimeo Extra Fullscreen', PPS_LANG_CODE)?>&nbsp;
15
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('This will open Vimeo videos in extra full screen: user desctop panel and browser navigations will be still visible, but video will be still in fullscreen.', PPS_LANG_CODE)?>"></i>
16
  <?php if(!$this->isPro) {?>
17
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo $this->mainLink. '?utm_source=plugin&utm_medium=vimeo_extra_fullscreen&utm_campaign=popup';?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
18
  <?php }?>
19
  </th>
20
  <td class="col-w-1perc">
21
- <?php echo htmlPps::checkbox('params[tpl][video_extra_full_screen]', array(
22
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'video_extra_full_screen'),
23
  'attrs' => 'class="ppsProOpt"',
24
- ))?>
25
  </td>
26
  </tr>
27
  <?php }?>
@@ -32,7 +32,7 @@
32
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('Copy and paste here URL of site, that you need to display in PopUp as iFrame. Please note that some sites can block such possibility, you can read more about this <a target="_blank" href="%s">for example here</a>', PPS_LANG_CODE), 'https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options'))?>"></i>
33
  </th>
34
  <td class="col-w-1perc">
35
- <?php echo htmlPps::text('params[tpl][iframe_url]', array('value' => $this->popup['params']['tpl']['iframe_url'], 'attrs' => 'style="width: 100%;"'))?>
36
  </td>
37
  </tr>
38
  <?php }?>
@@ -43,7 +43,7 @@
43
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Copy and paste here URL to your PDF file. You can simply upload it on your server (using FTP for example), then insert URL in this field - and you will see how it work. Enjoy!', PPS_LANG_CODE))?>"></i>
44
  </th>
45
  <td class="col-w-1perc">
46
- <?php echo htmlPps::text('params[tpl][pdf_url]', array('value' => $this->popup['params']['tpl']['pdf_url'], 'attrs' => 'style="width: 100%;"'))?>
47
  </td>
48
  </tr>
49
  <?php }?>
@@ -52,20 +52,20 @@
52
  <?php _e('Width', PPS_LANG_CODE)?>
53
  </th>
54
  <td class="col-w-1perc">
55
- <?php echo htmlPps::text('params[tpl][width]', array('value' => $this->popup['params']['tpl']['width']))?>
56
  </td>
57
  <td class="col-w-1perc" colspan="3">
58
  <?php if(in_array($this->popup['type'], array(PPS_COMMON, PPS_BAR))) {?>
59
  <label style="margin-right: 10px;" class="supsystic-tooltip" title="<?php _e('Max width for percentage - is 100', PPS_LANG_CODE)?>">
60
- <?php echo htmlPps::radiobutton('params[tpl][width_measure]', array('value' => '%', 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'width_measure', '%')))?>
61
  <?php _e('Percents', PPS_LANG_CODE)?>
62
  </label>
63
  <label>
64
- <?php echo htmlPps::radiobutton('params[tpl][width_measure]', array('value' => 'px', 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'width_measure', 'px')))?>
65
  <?php _e('Pixels', PPS_LANG_CODE)?>
66
  </label>
67
  <?php } else {
68
- echo htmlPps::hidden('params[tpl][width_measure]', array('value' => 'px'));
69
  }?>
70
  </td>
71
  </tr>
@@ -75,10 +75,10 @@
75
  <?php _e('Height', PPS_LANG_CODE)?>
76
  </th>
77
  <td class="col-w-1perc">
78
- <?php echo htmlPps::text('params[tpl][height]', array('value' => $this->popup['params']['tpl']['height']))?>
79
  </td>
80
  <td class="col-w-1perc" colspan="3">
81
- <?php echo htmlPps::hidden('params[tpl][height_measure]', array('value' => 'px')); ?>
82
  </td>
83
  </tr>
84
  <?php if(in_array($this->popup['type'], array(PPS_VIDEO))) {?>
@@ -88,9 +88,9 @@
88
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Play video - right after PopUp show', PPS_LANG_CODE)?>"></i>
89
  </th>
90
  <td class="col-w-1perc">
91
- <?php echo htmlPps::checkbox('params[tpl][video_autoplay]', array(
92
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'video_autoplay')
93
- ))?>
94
  </td>
95
  </tr>
96
  <tr>
@@ -99,9 +99,9 @@
99
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('Hide standard video player controls. For vimeo videos - you need to change this in your account settings.', PPS_LANG_CODE)))?>"></i>
100
  </th>
101
  <td class="col-w-1perc">
102
- <?php echo htmlPps::checkbox('params[tpl][vide_hide_controls]', array(
103
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'vide_hide_controls')
104
- ))?>
105
  </td>
106
  </tr>
107
  <?php /*<tr>
@@ -141,11 +141,11 @@
141
  ?>
142
  <tr>
143
  <th scope="row" class="col-w-1perc">
144
- <?php echo $fData['label']?>&nbsp;
145
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html($fData['desc'])?>"></i>
146
  </th>
147
  <td class="col-w-1perc" colspan="4">
148
- <?php echo htmlPps::$html('params[tpl][fb_like_opts]['. $fKey. ']', $htmlParams)?>
149
  </td>
150
  </tr>
151
  <?php }?>
@@ -155,9 +155,9 @@
155
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Will add label at the top of your PopUp', PPS_LANG_CODE)?>"></i>
156
  </th>
157
  <td class="col-w-1perc" colspan="4">
158
- <?php echo htmlPps::checkbox('params[tpl][fb_enb_label]', array(
159
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'fb_enb_label'),
160
- ))?>
161
  </td>
162
  </tr>
163
  <?php }?>
@@ -167,33 +167,33 @@
167
  <?php _e('Background overlay opacity', PPS_LANG_CODE)?>
168
  </th>
169
  <td class="col-w-1perc">
170
- <?php echo htmlPps::slider('params[tpl][bg_overlay_opacity]', array('value' => $this->popup['params']['tpl']['bg_overlay_opacity'], 'min' => 0, 'max' => 1, 'step' => 0.1))?>
171
  </td>
172
  <td class="col-w-1perc">
173
- <?php echo htmlPps::selectbox('params[tpl][bg_overlay_type]', array(
174
  'options' => array('color' => __('Color', PPS_LANG_CODE), 'img' => __('Image', PPS_LANG_CODE), 'snow' => __('Snow', PPS_LANG_CODE)),
175
  'value' => (isset($this->popup['params']['tpl']['bg_overlay_type']) ? $this->popup['params']['tpl']['bg_overlay_type'] : 'color'),
176
  'attrs' => 'id="ppsPopupOverlayTypeSel"',
177
- ));?>
178
  </td>
179
  <td class="col-w-1perc">
180
  <div class="ppsBgOverlaySets ppsBgOverlaySets_color">
181
- <?php echo htmlPps::colorpicker('params[tpl][bg_overlay_color]', array(
182
  'value' => (isset($this->popup['params']['tpl']['bg_overlay_color']) ? $this->popup['params']['tpl']['bg_overlay_color'] : '#000'),
183
- ));?>
184
  </div>
185
  <div class="ppsBgOverlaySets ppsBgOverlaySets_img">
186
- <?php echo htmlPps::imgGalleryBtn('params[tpl][bg_overlay_img]', array(
187
  'onChange' => 'ppsSetBgOverlayImgPrev',
188
  'attrs' => 'class="button button-sup-small"',
189
  'value' => (isset($this->popup['params']['tpl']['bg_overlay_img']) ? $this->popup['params']['tpl']['bg_overlay_img'] : ''),
190
- ));?>
191
  <label>
192
  <?php _e('Position', PPS_LANG_CODE)?>
193
- <?php echo htmlPps::selectbox('params[tpl][bg_overlay_img_pos]', array(
194
  'options' => array('stretch' => __('Stretch', PPS_LANG_CODE), 'center' => __('Center', PPS_LANG_CODE), 'tile' => __('Tile', PPS_LANG_CODE)),
195
  'value' => (isset($this->popup['params']['tpl']['bg_overlay_img_pos']) ? $this->popup['params']['tpl']['bg_overlay_img_pos'] : 'stretch'),
196
- ));?>
197
  </label>
198
  </div>
199
  <div class="ppsBgOverlaySets ppsBgOverlaySets_snow">
@@ -210,9 +210,9 @@
210
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Disable browser window scrolling while PopUp is opened. Good way to disallow viewing your site content before PopUp will be closed.', PPS_LANG_CODE))?>"></i>
211
  </th>
212
  <td class="col-w-1perc">
213
- <?php echo htmlPps::checkbox('params[tpl][dsbl_wnd_scroll]', array(
214
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'dsbl_wnd_scroll'),
215
- ))?>
216
  </td>
217
  <td colspan="3"></td>
218
  </tr>
@@ -222,23 +222,23 @@
222
  <?php
223
  $bgNumTitle = $this->popup['params']['opts_attrs']['bg_number'] == 1 ? __('Background', PPS_LANG_CODE) : sprintf(__('Background %d', PPS_LANG_CODE), $i + 1);
224
  if($this->bgNames && isset($this->bgNames[ $i ]) && !empty($this->bgNames[ $i ])) {
225
- echo $this->bgNames[ $i ]. '<div class="description">'. $bgNumTitle. '</div>';
226
  } else {
227
- echo $bgNumTitle;
228
  }
229
  ?>
230
  </th>
231
  <td class="col-w-1perc">
232
- <?php echo htmlPps::selectbox('params[tpl][bg_type_'. $i. ']', array('options' => $this->bgTypes, 'value' => $this->popup['params']['tpl']['bg_type_'. $i], 'attrs' => 'data-iter="'. $i. '" class="ppsBgTypeSelect"'))?>
233
  </td>
234
- <td class="col-w-1perc ppsBgTypeShell ppsBgTypeShell_<?php echo $i?> ppsBgTypeImgShell_<?php echo $i?>">
235
- <?php echo htmlPps::imgGalleryBtn('params[tpl][bg_img_'. $i. ']', array('onChange' => 'ppsShowImgPrev', 'attrs' => 'data-iter="'. $i. '" class="button button-sup-small"', 'value' => $this->popup['params']['tpl']['bg_img_'. $i]))?>
236
  </td>
237
- <td class="col-w-1perc ppsBgTypeShell ppsBgTypeShell_<?php echo $i?> ppsBgTypeImgShell_<?php echo $i?>" style="padding-top: 10px; min-width: 100px;">
238
- <img src="" style="max-width: 300px;" class="ppsBgImgPrev_<?php echo $i?>" />
239
  </td>
240
- <td class="col-w-1perc ppsBgTypeShell ppsBgTypeShell_<?php echo $i?> ppsBgTypeColorShell_<?php echo $i?>" style="line-height: 40px;">
241
- <?php echo htmlPps::colorpicker('params[tpl][bg_color_'. $i. ']', array('value' => $this->popup['params']['tpl']['bg_color_'. $i]))?>
242
  </td>
243
  </tr>
244
  <?php }?>
@@ -247,21 +247,21 @@
247
  <th scope="row" class="col-w-1perc">
248
  <?php _e('Label Font style', PPS_LANG_CODE)?>
249
  <?php if(!$this->isPro) {?>
250
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo $this->mainLink. '?utm_source=plugin&utm_medium=font_label&utm_campaign=popup';?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
251
  <?php }?>
252
  </th>
253
  <td class="col-w-1perc">
254
- <?php echo htmlPps::fontsList('params[tpl][font_label]', array(
255
  'attrs' => 'class="ppsProOpt"',
256
- 'value' => isset($this->popup['params']['tpl']['font_label']) ? $this->popup['params']['tpl']['font_label'] : PPS_DEFAULT,
257
  'default' => __('Default', PPS_LANG_CODE),
258
- ))?>
259
  </td>
260
  <td class="col-w-1perc" colspan="3">
261
- <?php echo htmlPps::colorpicker('params[tpl][label_font_color]', array(
262
  'attrs' => 'class="ppsProOpt"',
263
- 'value' => isset($this->popup['params']['tpl']['label_font_color']) ? $this->popup['params']['tpl']['label_font_color'] : '#000000',
264
- ))?>
265
  </td>
266
  </tr>
267
  <?php if($this->popup['params']['opts_attrs']['txt_block_number'] != 0) {?>
@@ -270,21 +270,21 @@
270
  <th scope="row" class="col-w-1perc">
271
  <?php $this->popup['params']['opts_attrs']['txt_block_number'] == 1 ? _e('Text Font style', PPS_LANG_CODE) : printf(__('Text Font style %d', PPS_LANG_CODE), $i + 1)?>
272
  <?php if(!$this->isPro) {?>
273
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo $this->mainLink. '?utm_source=plugin&utm_medium=font_txt&utm_campaign=popup';?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
274
  <?php }?>
275
  </th>
276
  <td class="col-w-1perc">
277
- <?php echo htmlPps::fontsList('params[tpl][font_txt_'. $i. ']', array(
278
  'attrs' => 'class="ppsProOpt"',
279
  'value' => isset($this->popup['params']['tpl']['font_txt_'. $i]) ? $this->popup['params']['tpl']['font_txt_'. $i] : PPS_DEFAULT,
280
  'default' => __('Default', PPS_LANG_CODE),
281
- ))?>
282
  </td>
283
  <td class="col-w-1perc" colspan="3">
284
- <?php echo htmlPps::colorpicker('params[tpl][text_font_color_'. $i. ']', array(
285
  'attrs' => 'class="ppsProOpt"',
286
  'value' => isset($this->popup['params']['tpl']['text_font_color_'. $i]) ? $this->popup['params']['tpl']['text_font_color_'. $i] : '#000000',
287
- ))?>
288
  </td>
289
  </tr>
290
  <?php }?>
@@ -294,21 +294,21 @@
294
  <th scope="row" class="col-w-1perc">
295
  <?php _e('Footer Font style', PPS_LANG_CODE)?>
296
  <?php if(!$this->isPro) {?>
297
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo $this->mainLink. '?utm_source=plugin&utm_medium=font_footer&utm_campaign=popup';?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
298
  <?php }?>
299
  </th>
300
  <td class="col-w-1perc">
301
- <?php echo htmlPps::fontsList('params[tpl][font_footer]', array(
302
  'attrs' => 'class="ppsProOpt"',
303
  'value' => isset($this->popup['params']['tpl']['font_footer']) ? $this->popup['params']['tpl']['font_footer'] : PPS_DEFAULT,
304
  'default' => __('Default', PPS_LANG_CODE),
305
- ))?>
306
  </td>
307
  <td class="col-w-1perc" colspan="3">
308
- <?php echo htmlPps::colorpicker('params[tpl][footer_font_color]', array(
309
  'attrs' => 'class="ppsProOpt"',
310
  'value' => isset($this->popup['params']['tpl']['footer_font_color']) ? $this->popup['params']['tpl']['footer_font_color'] : '#000000',
311
- ))?>
312
  </td>
313
  </tr>
314
  <?php }?>
@@ -320,17 +320,17 @@
320
  </th>
321
  <td class="col-w-1perc">
322
  <label class="supsystic-tooltip" title="<?php _e('PopUp will be fully zoomed for smaller screens', PPS_LANG_CODE)?>">
323
- <?php echo htmlPps::radiobutton('params[tpl][responsive_mode]', array(
324
  'value' => 'def',
325
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'responsive_mode', 'def', true),
326
- ))?>
327
  <?php _e('Full resize', PPS_LANG_CODE)?>
328
  </label>
329
  <label class="supsystic-tooltip" title="<?php _e('PopUp will not be zoomed like with prev. mode, it will adapt only Width for users screen size', PPS_LANG_CODE)?>">
330
- <?php echo htmlPps::radiobutton('params[tpl][responsive_mode]', array(
331
  'value' => 'width_only',
332
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'responsive_mode', 'width_only'),
333
- ))?>
334
  <?php _e('Width only', PPS_LANG_CODE)?>
335
  </label>
336
  </td>
@@ -342,13 +342,13 @@
342
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('If you want - you can redirect user after PopUp will be closed. Just enter required Redirect URL here - and each time after PopUp will be closed - user will be redirected to that URL. Just leave this field empty - if you don\'t need this functionality in your PopUp.', PPS_LANG_CODE))?>"></i>
343
  </th>
344
  <td colspan="4">
345
- <?php echo htmlPps::text('params[tpl][reidrect_on_close]', array(
346
  'value' => (isset($this->popup['params']['tpl']['reidrect_on_close']) ? esc_url( $this->popup['params']['tpl']['reidrect_on_close'] ) : ''),
347
  'attrs' => 'placeholder="http://example.com" style="width: 100%;"',
348
- ))?><br />
349
  <label>
350
- <?php echo htmlPps::checkbox('params[tpl][reidrect_on_close_new_wnd]', array(
351
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'reidrect_on_close_new_wnd')))?>
352
  <?php _e('Open in a new window (tab)', PPS_LANG_CODE)?>
353
  </label>
354
  <label class="supsystic-tooltip">
@@ -356,8 +356,8 @@
356
  <span class="tooltipContent" id="tooltip_05">
357
  <?php _e('If you set PopUp to Show On Click on certain link, and this link have href parameter - you can redirect your users there after PopUp close.', PPS_LANG_CODE)?>
358
  </span>
359
- <?php echo htmlPps::checkbox('params[tpl][close_redirect_to_btn_url]', array(
360
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'close_redirect_to_btn_url')))?>
361
  <?php _e('Redirect to button URL', PPS_LANG_CODE)?>
362
  </label>
363
  </td>
@@ -368,14 +368,14 @@
368
  <?php _e('Display only selector', PPS_LANG_CODE)?>
369
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('You can leave only required part of your iFrame PopUp by entering here CSS selector of this part. Do not use this option if you don\'t understad basics of CSS and HTML. Also please note that you can use this only if your iframe url have same domain that your - due to permissions of html iframe.', PPS_LANG_CODE))?>"></i>
370
  <?php if(!$this->isPro) {?>
371
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo $this->mainLink. '?utm_source=plugin&utm_medium=iframe_display_only&utm_campaign=popup';?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
372
  <?php }?>
373
  </th>
374
  <td colspan="4">
375
- <?php echo htmlPps::text('params[tpl][iframe_display_only]', array(
376
  'value' => (isset($this->popup['params']['tpl']['iframe_display_only']) ? $this->popup['params']['tpl']['iframe_display_only'] : ''),
377
  'attrs' => 'placeholder="#some-content-element" style="width: 100%;" class="ppsProOpt"',
378
- ))?>
379
  </td>
380
  </tr>
381
  <?php }?>
@@ -387,16 +387,16 @@
387
  <ul id="ppsPopupCloseBtnList" class="ppsListItems">
388
  <?php foreach($this->closeBtns as $key => $data) { ?>
389
  <?php if($this->popup['original_id'] == 52 && $this->popup['type'] == 'age_verify' && $key != 'none') continue; ?>
390
- <li data-key="<?php echo $key?>">
391
  <?php if(isset($data['img_url'])) {?>
392
- <img src="<?php echo $data['img_url']?>" />
393
  <?php } elseif(isset($data['label'])) {
394
- echo $data['label'];
395
  }?>
396
  </li>
397
  <?php }?>
398
  </ul>
399
- <?php echo htmlPps::hidden('params[tpl][close_btn]')?>
400
  </td>
401
  </tr>
402
  <?php if(in_array($this->popup['type'], array(PPS_COMMON, PPS_BAR))) {?>
@@ -407,16 +407,16 @@
407
  <td colspan="4">
408
  <ul id="ppsPopupBulletsList" class="ppsListItems">
409
  <?php foreach($this->bullets as $key => $data) { ?>
410
- <li data-key="<?php echo $key?>">
411
  <?php if(isset($data['img_url'])) {?>
412
- <img src="<?php echo $data['img_url']?>" />
413
  <?php } elseif(isset($data['label'])) {
414
- echo $data['label'];
415
  }?>
416
  </li>
417
  <?php }?>
418
  </ul>
419
- <?php echo htmlPps::hidden('params[tpl][bullets]')?>
420
  </td>
421
  </tr>
422
  <?php }?>
6
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Copy and paste here URL of your video source', PPS_LANG_CODE)?>"></i>
7
  </th>
8
  <td class="col-w-1perc">
9
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][video_url]', array('value' => $this->popup['params']['tpl']['video_url'], 'attrs' => 'style="width: 100%;"')))?>
10
  </td>
11
  </tr>
12
  <tr class="ppsVideoVimeoExtraShell">
14
  <?php _e('Vimeo Extra Fullscreen', PPS_LANG_CODE)?>&nbsp;
15
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('This will open Vimeo videos in extra full screen: user desctop panel and browser navigations will be still visible, but video will be still in fullscreen.', PPS_LANG_CODE)?>"></i>
16
  <?php if(!$this->isPro) {?>
17
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html($this->mainLink). '?utm_source=plugin&utm_medium=vimeo_extra_fullscreen&utm_campaign=popup';?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
18
  <?php }?>
19
  </th>
20
  <td class="col-w-1perc">
21
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][video_extra_full_screen]', array(
22
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'video_extra_full_screen'),
23
  'attrs' => 'class="ppsProOpt"',
24
+ )))?>
25
  </td>
26
  </tr>
27
  <?php }?>
32
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('Copy and paste here URL of site, that you need to display in PopUp as iFrame. Please note that some sites can block such possibility, you can read more about this <a target="_blank" href="%s">for example here</a>', PPS_LANG_CODE), 'https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options'))?>"></i>
33
  </th>
34
  <td class="col-w-1perc">
35
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][iframe_url]', array('value' => $this->popup['params']['tpl']['iframe_url'], 'attrs' => 'style="width: 100%;"')))?>
36
  </td>
37
  </tr>
38
  <?php }?>
43
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Copy and paste here URL to your PDF file. You can simply upload it on your server (using FTP for example), then insert URL in this field - and you will see how it work. Enjoy!', PPS_LANG_CODE))?>"></i>
44
  </th>
45
  <td class="col-w-1perc">
46
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][pdf_url]', array('value' => $this->popup['params']['tpl']['pdf_url'], 'attrs' => 'style="width: 100%;"')))?>
47
  </td>
48
  </tr>
49
  <?php }?>
52
  <?php _e('Width', PPS_LANG_CODE)?>
53
  </th>
54
  <td class="col-w-1perc">
55
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][width]', array('value' => $this->popup['params']['tpl']['width'])))?>
56
  </td>
57
  <td class="col-w-1perc" colspan="3">
58
  <?php if(in_array($this->popup['type'], array(PPS_COMMON, PPS_BAR))) {?>
59
  <label style="margin-right: 10px;" class="supsystic-tooltip" title="<?php _e('Max width for percentage - is 100', PPS_LANG_CODE)?>">
60
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[tpl][width_measure]', array('value' => '%', 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'width_measure', '%'))))?>
61
  <?php _e('Percents', PPS_LANG_CODE)?>
62
  </label>
63
  <label>
64
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[tpl][width_measure]', array('value' => 'px', 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'width_measure', 'px'))))?>
65
  <?php _e('Pixels', PPS_LANG_CODE)?>
66
  </label>
67
  <?php } else {
68
+ echo viewPps::ksesString(htmlPps::hidden('params[tpl][width_measure]', array('value' => 'px')));
69
  }?>
70
  </td>
71
  </tr>
75
  <?php _e('Height', PPS_LANG_CODE)?>
76
  </th>
77
  <td class="col-w-1perc">
78
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][height]', array('value' => $this->popup['params']['tpl']['height'])));?>
79
  </td>
80
  <td class="col-w-1perc" colspan="3">
81
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][height_measure]', array('value' => 'px'))); ?>
82
  </td>
83
  </tr>
84
  <?php if(in_array($this->popup['type'], array(PPS_VIDEO))) {?>
88
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Play video - right after PopUp show', PPS_LANG_CODE)?>"></i>
89
  </th>
90
  <td class="col-w-1perc">
91
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][video_autoplay]', array(
92
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'video_autoplay')
93
+ )));?>
94
  </td>
95
  </tr>
96
  <tr>
99
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('Hide standard video player controls. For vimeo videos - you need to change this in your account settings.', PPS_LANG_CODE)))?>"></i>
100
  </th>
101
  <td class="col-w-1perc">
102
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][vide_hide_controls]', array(
103
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'vide_hide_controls')
104
+ )))?>
105
  </td>
106
  </tr>
107
  <?php /*<tr>
141
  ?>
142
  <tr>
143
  <th scope="row" class="col-w-1perc">
144
+ <?php echo viewPps::ksesString($fData['label'])?>&nbsp;
145
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html($fData['desc'])?>"></i>
146
  </th>
147
  <td class="col-w-1perc" colspan="4">
148
+ <?php echo viewPps::ksesString(htmlPps::$html('params[tpl][fb_like_opts]['. $fKey. ']', $htmlParams))?>
149
  </td>
150
  </tr>
151
  <?php }?>
155
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Will add label at the top of your PopUp', PPS_LANG_CODE)?>"></i>
156
  </th>
157
  <td class="col-w-1perc" colspan="4">
158
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][fb_enb_label]', array(
159
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'fb_enb_label'),
160
+ )))?>
161
  </td>
162
  </tr>
163
  <?php }?>
167
  <?php _e('Background overlay opacity', PPS_LANG_CODE)?>
168
  </th>
169
  <td class="col-w-1perc">
170
+ <?php echo viewPps::ksesString(htmlPps::slider('params[tpl][bg_overlay_opacity]', array('value' => $this->popup['params']['tpl']['bg_overlay_opacity'], 'min' => 0, 'max' => 1, 'step' => 0.1)))?>
171
  </td>
172
  <td class="col-w-1perc">
173
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[tpl][bg_overlay_type]', array(
174
  'options' => array('color' => __('Color', PPS_LANG_CODE), 'img' => __('Image', PPS_LANG_CODE), 'snow' => __('Snow', PPS_LANG_CODE)),
175
  'value' => (isset($this->popup['params']['tpl']['bg_overlay_type']) ? $this->popup['params']['tpl']['bg_overlay_type'] : 'color'),
176
  'attrs' => 'id="ppsPopupOverlayTypeSel"',
177
+ )));?>
178
  </td>
179
  <td class="col-w-1perc">
180
  <div class="ppsBgOverlaySets ppsBgOverlaySets_color">
181
+ <?php echo viewPps::ksesString(htmlPps::colorpicker('params[tpl][bg_overlay_color]', array(
182
  'value' => (isset($this->popup['params']['tpl']['bg_overlay_color']) ? $this->popup['params']['tpl']['bg_overlay_color'] : '#000'),
183
+ )));?>
184
  </div>
185
  <div class="ppsBgOverlaySets ppsBgOverlaySets_img">
186
+ <?php echo viewPps::ksesString(htmlPps::imgGalleryBtn('params[tpl][bg_overlay_img]', array(
187
  'onChange' => 'ppsSetBgOverlayImgPrev',
188
  'attrs' => 'class="button button-sup-small"',
189
  'value' => (isset($this->popup['params']['tpl']['bg_overlay_img']) ? $this->popup['params']['tpl']['bg_overlay_img'] : ''),
190
+ )));?>
191
  <label>
192
  <?php _e('Position', PPS_LANG_CODE)?>
193
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[tpl][bg_overlay_img_pos]', array(
194
  'options' => array('stretch' => __('Stretch', PPS_LANG_CODE), 'center' => __('Center', PPS_LANG_CODE), 'tile' => __('Tile', PPS_LANG_CODE)),
195
  'value' => (isset($this->popup['params']['tpl']['bg_overlay_img_pos']) ? $this->popup['params']['tpl']['bg_overlay_img_pos'] : 'stretch'),
196
+ )));?>
197
  </label>
198
  </div>
199
  <div class="ppsBgOverlaySets ppsBgOverlaySets_snow">
210
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Disable browser window scrolling while PopUp is opened. Good way to disallow viewing your site content before PopUp will be closed.', PPS_LANG_CODE))?>"></i>
211
  </th>
212
  <td class="col-w-1perc">
213
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][dsbl_wnd_scroll]', array(
214
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'dsbl_wnd_scroll'),
215
+ )))?>
216
  </td>
217
  <td colspan="3"></td>
218
  </tr>
222
  <?php
223
  $bgNumTitle = $this->popup['params']['opts_attrs']['bg_number'] == 1 ? __('Background', PPS_LANG_CODE) : sprintf(__('Background %d', PPS_LANG_CODE), $i + 1);
224
  if($this->bgNames && isset($this->bgNames[ $i ]) && !empty($this->bgNames[ $i ])) {
225
+ echo viewPps::ksesString($this->bgNames[ $i ]. '<div class="description">'. $bgNumTitle. '</div>');
226
  } else {
227
+ echo viewPps::ksesString($bgNumTitle);
228
  }
229
  ?>
230
  </th>
231
  <td class="col-w-1perc">
232
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[tpl][bg_type_'. $i. ']', array('options' => $this->bgTypes, 'value' => $this->popup['params']['tpl']['bg_type_'. $i], 'attrs' => 'data-iter="'. $i. '" class="ppsBgTypeSelect"')))?>
233
  </td>
234
+ <td class="col-w-1perc ppsBgTypeShell ppsBgTypeShell_<?php echo esc_html($i)?> ppsBgTypeImgShell_<?php echo esc_html($i)?>">
235
+ <?php echo viewPps::ksesString(htmlPps::imgGalleryBtn('params[tpl][bg_img_'. $i. ']', array('onChange' => 'ppsShowImgPrev', 'attrs' => 'data-iter="'. $i. '" class="button button-sup-small"', 'value' => $this->popup['params']['tpl']['bg_img_'. $i])))?>
236
  </td>
237
+ <td class="col-w-1perc ppsBgTypeShell ppsBgTypeShell_<?php echo esc_html($i)?> ppsBgTypeImgShell_<?php echo esc_html($i)?>" style="padding-top: 10px; min-width: 100px;">
238
+ <img src="" style="max-width: 300px;" class="ppsBgImgPrev_<?php echo viewPps::ksesString($i)?>" />
239
  </td>
240
+ <td class="col-w-1perc ppsBgTypeShell ppsBgTypeShell_<?php echo esc_html($i)?> ppsBgTypeColorShell_<?php echo esc_html($i)?>" style="line-height: 40px;">
241
+ <?php echo viewPps::ksesString(htmlPps::colorpicker('params[tpl][bg_color_'. $i. ']', array('value' => $this->popup['params']['tpl']['bg_color_'. $i])))?>
242
  </td>
243
  </tr>
244
  <?php }?>
247
  <th scope="row" class="col-w-1perc">
248
  <?php _e('Label Font style', PPS_LANG_CODE)?>
249
  <?php if(!$this->isPro) {?>
250
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html($this->mainLink). '?utm_source=plugin&utm_medium=font_label&utm_campaign=popup';?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
251
  <?php }?>
252
  </th>
253
  <td class="col-w-1perc">
254
+ <?php echo viewPps::ksesString(htmlPps::fontsList('params[tpl][font_label]', array(
255
  'attrs' => 'class="ppsProOpt"',
256
+ 'value' => isset($this->popup['params']['tpl']['font_label']) ? esc_html($this->popup['params']['tpl']['font_label']) : PPS_DEFAULT,
257
  'default' => __('Default', PPS_LANG_CODE),
258
+ )))?>
259
  </td>
260
  <td class="col-w-1perc" colspan="3">
261
+ <?php echo viewPps::ksesString(htmlPps::colorpicker('params[tpl][label_font_color]', array(
262
  'attrs' => 'class="ppsProOpt"',
263
+ 'value' => isset($this->popup['params']['tpl']['label_font_color']) ? esc_html($this->popup['params']['tpl']['label_font_color']) : '#000000',
264
+ )))?>
265
  </td>
266
  </tr>
267
  <?php if($this->popup['params']['opts_attrs']['txt_block_number'] != 0) {?>
270
  <th scope="row" class="col-w-1perc">
271
  <?php $this->popup['params']['opts_attrs']['txt_block_number'] == 1 ? _e('Text Font style', PPS_LANG_CODE) : printf(__('Text Font style %d', PPS_LANG_CODE), $i + 1)?>
272
  <?php if(!$this->isPro) {?>
273
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html($this->mainLink). '?utm_source=plugin&utm_medium=font_txt&utm_campaign=popup';?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
274
  <?php }?>
275
  </th>
276
  <td class="col-w-1perc">
277
+ <?php echo viewPps::ksesString(htmlPps::fontsList('params[tpl][font_txt_'. $i. ']', array(
278
  'attrs' => 'class="ppsProOpt"',
279
  'value' => isset($this->popup['params']['tpl']['font_txt_'. $i]) ? $this->popup['params']['tpl']['font_txt_'. $i] : PPS_DEFAULT,
280
  'default' => __('Default', PPS_LANG_CODE),
281
+ )))?>
282
  </td>
283
  <td class="col-w-1perc" colspan="3">
284
+ <?php echo viewPps::ksesString(htmlPps::colorpicker('params[tpl][text_font_color_'. $i. ']', array(
285
  'attrs' => 'class="ppsProOpt"',
286
  'value' => isset($this->popup['params']['tpl']['text_font_color_'. $i]) ? $this->popup['params']['tpl']['text_font_color_'. $i] : '#000000',
287
+ )))?>
288
  </td>
289
  </tr>
290
  <?php }?>
294
  <th scope="row" class="col-w-1perc">
295
  <?php _e('Footer Font style', PPS_LANG_CODE)?>
296
  <?php if(!$this->isPro) {?>
297
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html($this->mainLink). '?utm_source=plugin&utm_medium=font_footer&utm_campaign=popup';?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
298
  <?php }?>
299
  </th>
300
  <td class="col-w-1perc">
301
+ <?php echo viewPps::ksesString(htmlPps::fontsList('params[tpl][font_footer]', array(
302
  'attrs' => 'class="ppsProOpt"',
303
  'value' => isset($this->popup['params']['tpl']['font_footer']) ? $this->popup['params']['tpl']['font_footer'] : PPS_DEFAULT,
304
  'default' => __('Default', PPS_LANG_CODE),
305
+ )))?>
306
  </td>
307
  <td class="col-w-1perc" colspan="3">
308
+ <?php echo viewPps::ksesString(htmlPps::colorpicker('params[tpl][footer_font_color]', array(
309
  'attrs' => 'class="ppsProOpt"',
310
  'value' => isset($this->popup['params']['tpl']['footer_font_color']) ? $this->popup['params']['tpl']['footer_font_color'] : '#000000',
311
+ )))?>
312
  </td>
313
  </tr>
314
  <?php }?>
320
  </th>
321
  <td class="col-w-1perc">
322
  <label class="supsystic-tooltip" title="<?php _e('PopUp will be fully zoomed for smaller screens', PPS_LANG_CODE)?>">
323
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[tpl][responsive_mode]', array(
324
  'value' => 'def',
325
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'responsive_mode', 'def', true),
326
+ )))?>
327
  <?php _e('Full resize', PPS_LANG_CODE)?>
328
  </label>
329
  <label class="supsystic-tooltip" title="<?php _e('PopUp will not be zoomed like with prev. mode, it will adapt only Width for users screen size', PPS_LANG_CODE)?>">
330
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[tpl][responsive_mode]', array(
331
  'value' => 'width_only',
332
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'responsive_mode', 'width_only'),
333
+ )))?>
334
  <?php _e('Width only', PPS_LANG_CODE)?>
335
  </label>
336
  </td>
342
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('If you want - you can redirect user after PopUp will be closed. Just enter required Redirect URL here - and each time after PopUp will be closed - user will be redirected to that URL. Just leave this field empty - if you don\'t need this functionality in your PopUp.', PPS_LANG_CODE))?>"></i>
343
  </th>
344
  <td colspan="4">
345
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][reidrect_on_close]', array(
346
  'value' => (isset($this->popup['params']['tpl']['reidrect_on_close']) ? esc_url( $this->popup['params']['tpl']['reidrect_on_close'] ) : ''),
347
  'attrs' => 'placeholder="http://example.com" style="width: 100%;"',
348
+ )))?><br />
349
  <label>
350
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][reidrect_on_close_new_wnd]', array(
351
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'reidrect_on_close_new_wnd'))))?>
352
  <?php _e('Open in a new window (tab)', PPS_LANG_CODE)?>
353
  </label>
354
  <label class="supsystic-tooltip">
356
  <span class="tooltipContent" id="tooltip_05">
357
  <?php _e('If you set PopUp to Show On Click on certain link, and this link have href parameter - you can redirect your users there after PopUp close.', PPS_LANG_CODE)?>
358
  </span>
359
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][close_redirect_to_btn_url]', array(
360
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'close_redirect_to_btn_url'))))?>
361
  <?php _e('Redirect to button URL', PPS_LANG_CODE)?>
362
  </label>
363
  </td>
368
  <?php _e('Display only selector', PPS_LANG_CODE)?>
369
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('You can leave only required part of your iFrame PopUp by entering here CSS selector of this part. Do not use this option if you don\'t understad basics of CSS and HTML. Also please note that you can use this only if your iframe url have same domain that your - due to permissions of html iframe.', PPS_LANG_CODE))?>"></i>
370
  <?php if(!$this->isPro) {?>
371
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html($this->mainLink). '?utm_source=plugin&utm_medium=iframe_display_only&utm_campaign=popup';?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
372
  <?php }?>
373
  </th>
374
  <td colspan="4">
375
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][iframe_display_only]', array(
376
  'value' => (isset($this->popup['params']['tpl']['iframe_display_only']) ? $this->popup['params']['tpl']['iframe_display_only'] : ''),
377
  'attrs' => 'placeholder="#some-content-element" style="width: 100%;" class="ppsProOpt"',
378
+ )))?>
379
  </td>
380
  </tr>
381
  <?php }?>
387
  <ul id="ppsPopupCloseBtnList" class="ppsListItems">
388
  <?php foreach($this->closeBtns as $key => $data) { ?>
389
  <?php if($this->popup['original_id'] == 52 && $this->popup['type'] == 'age_verify' && $key != 'none') continue; ?>
390
+ <li data-key="<?php echo esc_html($key)?>">
391
  <?php if(isset($data['img_url'])) {?>
392
+ <img src="<?php echo esc_html($data['img_url'])?>" />
393
  <?php } elseif(isset($data['label'])) {
394
+ echo viewPps::ksesString($data['label']);
395
  }?>
396
  </li>
397
  <?php }?>
398
  </ul>
399
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][close_btn]'));?>
400
  </td>
401
  </tr>
402
  <?php if(in_array($this->popup['type'], array(PPS_COMMON, PPS_BAR))) {?>
407
  <td colspan="4">
408
  <ul id="ppsPopupBulletsList" class="ppsListItems">
409
  <?php foreach($this->bullets as $key => $data) { ?>
410
+ <li data-key="<?php echo esc_html($key)?>">
411
  <?php if(isset($data['img_url'])) {?>
412
+ <img src="<?php echo esc_html($data['img_url'])?>" />
413
  <?php } elseif(isset($data['label'])) {
414
+ echo viewPps::ksesString($data['label']);
415
  }?>
416
  </li>
417
  <?php }?>
418
  </ul>
419
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][bullets]'))?>
420
  </td>
421
  </tr>
422
  <?php }?>
modules/popup/views/tpl/popupEditAdminMainOpts.php CHANGED
@@ -20,174 +20,173 @@
20
  }
21
  ?>
22
  <?php if(!empty($warnings)) { ?>
23
- <div class="alert alert-warning"><?php echo implode('<br />', $warnings)?></div>
24
  <?php }?>
25
  <section class="ppsPopupMainOptSect">
26
  <span class="ppsOptLabel"><?php _e('When to show PopUp', PPS_LANG_CODE)?></span>
27
  <hr />
28
  <label class="ppsPopupMainOptLbl" data-name="When page loads">
29
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
30
  'value' => 'page_load',
31
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'page_load')))?>
32
  <?php _e('When page loads', PPS_LANG_CODE)?>
33
  </label>
34
  <div id="ppsOptDesc_params_main_show_on_page_load" style="display: none;" class="ppsOptDescParamsShell">
35
  <label>
36
- <?php echo htmlPps::checkbox('params[main][show_on_page_load_enb_delay]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on_page_load_enb_delay')))?>
37
  <?php _e('Delay for', PPS_LANG_CODE)?>
38
  </label>
39
  <label>
40
- <?php echo htmlPps::text('params[main][show_on_page_load_delay]', array('value' => $this->popup['params']['main']['show_on_page_load_delay']));?>
41
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
42
  </label><br />
43
  <label class="ppsPageGlobalDelayShell supsystic-tooltip-right" title="<?php _e('If this option will be enabled - time, entered above, will start counting from first page load, and if page will be reloaded (user will visit other site page for example) - it will be still counting from point, where it stopped on prev. page', PPS_LANG_CODE)?>">
44
- <?php echo htmlPps::checkbox('params[main][enb_page_load_global_delay]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'enb_page_load_global_delay')))?>
45
  <?php _e('Count time from the first site load', PPS_LANG_CODE)?>
46
  </label>
47
  </div><br />
48
  <label class="ppsPopupMainOptLbl" data-name="User click on the page">
49
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
50
  'value' => 'click_on_page',
51
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'click_on_page')))?>
52
  <?php _e('User click on the page', PPS_LANG_CODE)?>
53
  </label><br />
54
  <label class="ppsPopupMainOptLbl" data-name="Click on certain link / button / other element">
55
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
56
  'value' => 'click_on_element',
57
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'click_on_element')))?>
58
  <?php _e('User click on element', PPS_LANG_CODE)?>
59
  </label>
60
  <div id="ppsOptDesc_params_main_show_on_click_on_element" style="display: none;" class="ppsOptDescParamsShell">
61
  <?php _e('Copy & paste next code - into required link to open PopUp on Click', PPS_LANG_CODE)?>:<br />
62
- <?php echo htmlPps::text('ppsCopyTextCode', array(
63
  'value' => esc_html('['. PPS_SHORTCODE_CLICK. ' id='. $this->popup['id']. ']'),
64
- 'attrs' => 'data-parent-selector=".ppsPopupMainOptSect" class="ppsCopyTextCode supsystic-tooltip-right"'));?>
65
  <br />
66
  <?php _e('Or, if you know HTML basics, - you can insert "onclick" attribute to any of your element from code below', PPS_LANG_CODE)?>:<br />
67
- <input type="text" name="ppsCopyTextCode" data-parent-selector=".ppsPopupMainOptSect" class="ppsCopyTextCode" readonly value='onclick="ppsShowPopUpOnClick(<?php echo $this->popup['id'];?>, this); return false;"'><br />
68
  <?php _e('Or you can even use it for your Menu item, just add code', PPS_LANG_CODE)?>:<br />
69
- <?php echo htmlPps::text('ppsCopyTextCode', array(
70
  'value' => esc_html('#ppsShowPopUp_'. $this->popup['id']),
71
- 'attrs' => 'data-parent-selector=".ppsPopupMainOptSect" class="ppsCopyTextCode"'));?><br />
72
  <?php _e('to your menu item "URL" or into "Title Attribute" field. Don\'t worry - users will not see this code as menu item title on your site.', PPS_LANG_CODE)?><br />
73
  <label>
74
- <?php echo htmlPps::checkbox('params[main][show_on_click_on_el_enb_delay]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on_click_on_el_enb_delay')))?>
75
  <?php _e('Delay for', PPS_LANG_CODE)?>
76
  </label>
77
  <label>
78
- <?php echo htmlPps::text('params[main][show_on_click_on_el_delay]', array(
79
- 'value' => (isset($this->popup['params']['main']['show_on_click_on_el_delay']) ? $this->popup['params']['main']['show_on_click_on_el_delay'] : 0)));?>
80
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
81
  </label>
82
  </div><br />
83
  <label class="ppsPopupMainOptLbl" data-name="Scroll window">
84
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
85
  'value' => 'scroll_window',
86
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'scroll_window')))?>
87
  <?php _e('Scroll window', PPS_LANG_CODE)?>
88
  </label>
89
  <div id="ppsOptDesc_params_main_show_on_scroll_window" style="display: none;" class="ppsOptDescParamsShell">
90
  <label>
91
- <?php echo htmlPps::checkbox('params[main][show_on_scroll_window_enb_delay]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on_scroll_window_enb_delay')))?>
92
  <?php _e('Delay for', PPS_LANG_CODE)?>
93
  </label>
94
  <label>
95
- <?php echo htmlPps::text('params[main][show_on_scroll_window_delay]', array('value' => isset($this->popup['params']['main']['show_on_scroll_window_delay']) ? $this->popup['params']['main']['show_on_scroll_window_delay'] : 0));?>
96
  <?php _e('seconds after first scroll', PPS_LANG_CODE)?>
97
  </label><br />
98
  <label>
99
- <?php echo htmlPps::checkbox('params[main][show_on_scroll_window_enb_perc_scroll]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on_scroll_window_enb_perc_scroll')))?>
100
  <?php _e('Scrolled to', PPS_LANG_CODE)?>
101
  </label>
102
  <label>
103
- <?php echo htmlPps::text('params[main][show_on_scroll_window_perc_scroll]', array('value' => isset($this->popup['params']['main']['show_on_scroll_window_perc_scroll']) ? $this->popup['params']['main']['show_on_scroll_window_perc_scroll'] : 0));?>
104
  <?php _e('percents of total scroll', PPS_LANG_CODE)?>
105
  </label>
106
  </div><br />
107
  <label class="ppsPopupMainOptLbl" data-name="On Exit from Site">
108
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
109
  'attrs' => 'class="ppsProOpt"',
110
  'value' => 'on_exit',
111
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'on_exit')))?>
112
  <span class="supsystic-tooltip-right" title="<?php _e('Show when user tries to exit from your site. http://supsystic.com/exit-popup/', PPS_LANG_CODE)?>">
113
  <?php _e('On Exit from Site', PPS_LANG_CODE)?>
114
  </span>
115
  <?php if(!$this->isPro) {?>
116
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=on_exit&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
117
  <?php }?>
118
  </label><br />
119
  <label class="ppsPopupMainOptLbl" data-name="Bottom of the page">
120
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
121
  'attrs' => 'class="ppsProOpt"',
122
  'value' => 'page_bottom',
123
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'page_bottom')))?>
124
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('When user is at the bottom of the page: scrolls it down to the bottom, or if there is no vertical scroll on his device - just show it right after page loads.', PPS_LANG_CODE))?>">
125
  <?php _e('Bottom of the page', PPS_LANG_CODE)?>
126
  </span>
127
  <?php if(!$this->isPro) {?>
128
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=page_bottom&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
129
  <?php }?>
130
  </label><br />
131
  <label class="ppsPopupMainOptLbl" data-name="After Inactivity">
132
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
133
  'attrs' => 'class="ppsProOpt"',
134
  'value' => 'after_inactive',
135
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'after_inactive')))?>
136
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('After user was inactive on your page for some time.', PPS_LANG_CODE))?>">
137
  <?php _e('After Inactivity', PPS_LANG_CODE)?>
138
  </span>
139
  <?php if(!$this->isPro) {?>
140
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=after_inactive&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
141
  <?php }?>
142
  </label>
143
  <?php if($this->isPro) {?>
144
  <div id="ppsOptDesc_params_main_show_on_after_inactive" style="display: none;" class="ppsOptDescParamsShell">
145
  <?php _e('After user was inactive for', PPS_LANG_CODE)?>
146
- <?php echo htmlPps::text('params[main][show_on_after_inactive_value]', array(
147
- 'value' => isset($this->popup['params']['main']['show_on_after_inactive_value']) ? $this->popup['params']['main']['show_on_after_inactive_value'] : 10 /*Default - 5 seconds*/));?>
148
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
149
  </div><?php }?><br />
150
  <label class="ppsPopupMainOptLbl" data-name="After User Comment">
151
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
152
  'attrs' => 'class="ppsProOpt"',
153
  'value' => 'after_comment',
154
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'after_comment')))?>
155
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('When user adds a comment on your site he will see this PopUp after comment was placed. This will help you to get active users interested in your site.', PPS_LANG_CODE))?>">
156
  <?php _e('After User Comment', PPS_LANG_CODE)?>
157
  </span>
158
  <?php if(!$this->isPro) {?>
159
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=after_comment&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
160
  <?php }?>
161
  </label><br />
162
  <label class="ppsPopupMainOptLbl" data-name="After Purchasing (Checkout)">
163
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
164
  'attrs' => 'class="ppsProOpt"',
165
  'value' => 'after_checkout',
166
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'after_checkout')))?>
167
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('Show PopUp after successful checkout process in your online store.', PPS_LANG_CODE))?>">
168
  <?php _e('After Purchasing (Checkout)', PPS_LANG_CODE)?>
169
  </span>
170
  <?php if(!$this->isPro) {?>
171
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=after_checkout&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
172
  <?php }?>
173
  </label>
174
  <?php if($this->isPro) {?>
175
  <div id="ppsOptDesc_params_main_show_on_after_checkout" style="display: none;" class="ppsOptDescParamsShell">
176
  <?php _e('Copy & Paste next code on your Success checkout page content editor', PPS_LANG_CODE)?>:
177
- <?php echo htmlPps::text('ppsCopyTextCode', array(
178
  'value' => esc_html('['. PPS_SHORTCODE. ' id='. $this->popup['id']. ']'),
179
- 'attrs' => 'class="ppsCopyTextCode"'));?><br />
180
  <?php _e('Or, if you are using your own html/php for this page - insert there next code', PPS_LANG_CODE)?>:
181
- <?php echo htmlPps::textarea('ppsCopyTextCode', array(
182
  'value' => esc_html($this->afterCheckoutCode),
183
- /*'value' => esc_html('<?php echo do_shortcode("['. PPS_SHORTCODE. ' id='. $this->popup['id']. ']")?>'),*/
184
- 'attrs' => 'class="ppsCopyTextCode"'));?>
185
  </div><?php }?><br />
186
  <label class="ppsPopupMainOptLbl" data-name="On Link Follow">
187
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
188
  'attrs' => 'class="ppsProOpt"',
189
  'value' => 'link_follow',
190
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'link_follow')))?>
191
  <?php
192
  $openByFollowExl = get_bloginfo('wpurl'). '#ppsShowPopUp_'. $this->popup['id'];
193
  ?>
@@ -195,29 +194,29 @@
195
  <?php _e('On Link Follow', PPS_LANG_CODE)?>
196
  </span>
197
  <?php if(!$this->isPro) {?>
198
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=link_follow&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
199
  <?php }?>
200
  </label>
201
  <div id="ppsOptDesc_params_main_show_on_link_follow" style="display: none;" class="ppsOptDescParamsShell">
202
  <?php _e('Copy & paste next code - into end of required link on your site', PPS_LANG_CODE)?>:<br />
203
- <?php echo htmlPps::text('ppsCopyTextCode', array(
204
  'value' => esc_html('#ppsShowPopUp_'. $this->popup['id']),
205
- 'attrs' => 'class="ppsCopyTextCode"'));?><br />
206
  <label>
207
- <?php echo htmlPps::checkbox('params[main][show_on_link_follow_enb_delay]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on_link_follow_enb_delay')))?>
208
  <?php _e('Delay for', PPS_LANG_CODE)?>
209
  </label>
210
  <label>
211
- <?php echo htmlPps::text('params[main][show_on_link_follow_delay]', array(
212
- 'value' => (isset($this->popup['params']['main']['show_on_link_follow_delay']) ? $this->popup['params']['main']['show_on_link_follow_delay'] : 0)));?>
213
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
214
  </label>
215
  </div><br />
216
  <label class="ppsPopupMainOptLbl" data-name="Build-In Page">
217
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
218
  'attrs' => 'class="ppsProOpt"',
219
  'value' => 'build_in_page',
220
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'build_in_page')))?>
221
  <?php
222
  $openByFollowExl = get_bloginfo('wpurl'). '#ppsShowPopUp_'. $this->popup['id'];
223
  ?>
@@ -225,94 +224,94 @@
225
  <?php _e('Build-In Page', PPS_LANG_CODE)?>
226
  </span>
227
  <?php if(!$this->isPro) {?>
228
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=build_in_page&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
229
  <?php }?>
230
  </label>
231
  <div id="ppsOptDesc_params_main_show_on_build_in_page" style="display: none;" class="ppsOptDescParamsShell">
232
  <?php _e('Copy & paste next code - into required place in your page', PPS_LANG_CODE)?>:<br />
233
- <?php echo htmlPps::text('ppsCopyTextCode', array(
234
  'value' => esc_html('['. PPS_SHORTCODE_BUILD_IN. ' id='. $this->popup['id']. ']'),
235
- 'attrs' => 'data-parent-selector=".ppsPopupMainOptSect" class="ppsCopyTextCode"'));?>
236
  </div><br />
237
  <label class="ppsPopupMainOptLbl" data-name="AdBlock Detected">
238
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
239
  'attrs' => 'class="ppsProOpt"',
240
  'value' => 'adblock_detected',
241
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'adblock_detected')))?>
242
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('PopUp will appear if in current user browser any adBlock is enabled.', PPS_LANG_CODE))?>">
243
  <?php _e('AdBlock Detected', PPS_LANG_CODE)?>
244
  </span>
245
  <?php if(!$this->isPro) {?>
246
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=adblock_detected&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
247
  <?php }?>
248
  </label><br />
249
  <label class="ppsPopupMainOptLbl" data-name="Show in Admin Area">
250
- <?php echo htmlPps::checkbox('params[main][show_in_admin_area]', array(
251
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_in_admin_area')))?>
252
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('If enabled - this will show PopUp in admin area too - like on frontend.', PPS_LANG_CODE))?>">
253
  <?php _e('Show in Admin Area', PPS_LANG_CODE)?>
254
  </span>
255
  </label><br />
256
  <label class="ppsPopupMainOptLbl" data-name="Visit several Pages">
257
- <?php echo htmlPps::radiobutton('params[main][show_on]', array(
258
  'attrs' => 'class="ppsProOpt"',
259
  'value' => 'visit_several_pages',
260
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'visit_several_pages')))?>
261
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('PopUp will appear after your site visitor will visit required pages number on your site.', PPS_LANG_CODE))?>">
262
  <?php _e('Visit several Pages', PPS_LANG_CODE)?>
263
  </span>
264
  <?php if(!$this->isPro) {?>
265
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=visit_several_pages&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
266
  <?php }?>
267
  </label><br />
268
  <div id="ppsOptDesc_params_main_show_on_visit_several_pages" style="display: none;" class="ppsOptDescParamsShell supsystic-tooltip-right" title="<?php _e('Enter here number of pages that need to be visited by user before PopUp will be shown.', PPS_LANG_CODE)?>">
269
  <?php _e('Pages number to visit', PPS_LANG_CODE)?>:<br />
270
- <?php echo htmlPps::text('params[main][visit_page_cnt]', array(
271
  'value' => isset($this->popup['params']['main']['visit_page_cnt']) ? $this->popup['params']['main']['visit_page_cnt'] : '',
272
- 'attrs' => 'class=""'));?>
273
  </div><br />
274
  </section>
275
  <section class="ppsPopupMainOptSect">
276
  <span class="ppsOptLabel"><?php _e('When to close PopUp', PPS_LANG_CODE)?></span>
277
  <hr />
278
  <label class="ppsPopupMainOptLbl" data-name="After user close it">
279
- <?php echo htmlPps::radiobutton('params[main][close_on]', array(
280
  'value' => 'user_close',
281
- 'checked' => !isset($this->popup['params']['main']['close_on']) ? true : htmlPps::checkedOpt($this->popup['params']['main'], 'close_on', 'user_close')))?>
282
  <?php _e('After user close it', PPS_LANG_CODE)?>
283
  </label><br />
284
  <label class="ppsPopupMainOptLbl" data-name="Click outside PopUp">
285
- <?php echo htmlPps::radiobutton('params[main][close_on]', array(
286
  'value' => 'overlay_click',
287
- 'checked' => !isset($this->popup['params']['main']['close_on']) ? false : htmlPps::checkedOpt($this->popup['params']['main'], 'close_on', 'overlay_click')))?>
288
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('Close PopUp when user clicks outside of the actually PopUp window.', PPS_LANG_CODE))?>">
289
  <?php _e('Click outside PopUp', PPS_LANG_CODE)?>
290
  </span>
291
  </label><br />
292
  <label class="ppsPopupMainOptLbl" data-name="Only after action (Subscribe / Share / Like)">
293
- <?php echo htmlPps::radiobutton('params[main][close_on]', array(
294
  'attrs' => 'class="ppsProOpt"',
295
  'value' => 'after_action',
296
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'close_on', 'after_action')))?>
297
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('Will not allow user to close your PopUp - until finish at least one action: Subscribe, Share or Like.', PPS_LANG_CODE))?>">
298
  <?php _e('Only after action (Subscribe / Share / Like)', PPS_LANG_CODE)?>
299
  </span>
300
  <?php if(!$this->isPro) {?>
301
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=close_on_after_action&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
302
  <?php }?>
303
  </label>
304
  <?php if($this->isPro) {?>
305
  <div id="ppsOptDesc_params_main_close_on_after_action" class="ppsOptDesc_params_main_close_on ppsPopupMainOptDesc ppsOptDescParamsShell" style="display: none;">
306
  <label>
307
  <?php _e('Close after', PPS_LANG_CODE)?>
308
- <?php echo htmlPps::text('params[main][close_on_after_action_time]', array(
309
  'value' => isset($this->popup['params']['main']['close_on_after_action_time']) ? $this->popup['params']['main']['close_on_after_action_time'] : 1, /*Default - 1 second*/
310
- 'attrs' => 'style="width: 60px;"'));?>
311
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
312
  </label><br />
313
  <label>
314
- <?php echo htmlPps::checkbox('params[main][close_on_after_action_enb_close_btn]', array(
315
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'close_on_after_action_enb_close_btn')))?>
316
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('By default close button for PopUp in this case will be hidden: PopUp will wait until user will make action. But you can enable it here if this is required.', PPS_LANG_CODE))?>">
317
  <?php _e('Enable close button', PPS_LANG_CODE)?>
318
  </span>
@@ -320,29 +319,29 @@
320
  </div>
321
  <?php }?><br />
322
  <label class="supsystic-tooltip-bottom ppsPopupMainOptLbl" data-name="After time passed" title="<?php echo esc_html(__('Close PopUp after it will be visible during specified time.', PPS_LANG_CODE))?>">
323
- <?php echo htmlPps::radiobutton('params[main][close_on]', array(
324
  'attrs' => 'class="ppsProOpt"',
325
  'value' => 'after_time',
326
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'close_on', 'after_time')))?>
327
  <?php _e('After time passed', PPS_LANG_CODE)?>
328
  <?php if(!$this->isPro) {?>
329
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=close_on_after_time&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
330
  <?php }?>
331
  </label>
332
  <?php if($this->isPro) {?>
333
  <div id="ppsOptDesc_params_main_close_on_after_time" class="ppsOptDesc_params_main_close_on ppsPopupMainOptDesc ppsOptDescParamsShell" style="display: none;">
334
  <label>
335
  <?php _e('Close after', PPS_LANG_CODE)?>
336
- <?php echo htmlPps::text('params[main][close_on_after_time_value]', array(
337
- 'value' => isset($this->popup['params']['main']['close_on_after_time_value']) ? $this->popup['params']['main']['close_on_after_time_value'] : 5 /*Default - 5 seconds*/));?>
338
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
339
  </label>
340
  <label>
341
  <?php _e('Close notice font color', PPS_LANG_CODE)?>
342
  <div style="margin:10px 0px;">
343
- <?php echo htmlPps::colorpicker('params[tpl][bg_close_notice_font_color]', array(
344
  'value' => (isset($this->popup['params']['tpl']['bg_close_notice_font_color']) ? $this->popup['params']['tpl']['bg_close_notice_font_color'] : '#101010;'),
345
- ));?>
346
  </div>
347
  </label>
348
  </div><?php }?><br />
@@ -350,157 +349,157 @@
350
  <span class="ppsOptLabel"><?php _e('Show on next pages', PPS_LANG_CODE)?></span>
351
  <hr />
352
  <label class="ppsPopupMainOptLbl" data-name="All pages">
353
- <?php echo htmlPps::radiobutton('params[main][show_pages]', array(
354
  'value' => 'all',
355
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_pages', 'all')))?>
356
  <?php _e('All pages', PPS_LANG_CODE)?>
357
  </label><br />
358
  <label class="ppsPopupMainOptLbl" data-name="Show on next pages / posts">
359
- <?php echo htmlPps::radiobutton('params[main][show_pages]', array(
360
  'value' => 'show_on_pages',
361
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_pages', 'show_on_pages')))?>
362
  <?php _e('Show on next pages / posts', PPS_LANG_CODE)?>
363
  </label>
364
  <div id="ppsOptDesc_params_main_show_pages_show_on_pages" style="display: none;" class="ppsOptDescParamsShell">
365
- <?php echo htmlPps::selectlist('show_pages_list', array('options' => $this->allPagesForSelect, 'value' => $this->selectedShowPages, 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose Pages', PPS_LANG_CODE). '"'))?>
366
  </div><br />
367
  <label class="ppsPopupMainOptLbl" data-name="Don\'t show on next pages / posts">
368
- <?php echo htmlPps::radiobutton('params[main][show_pages]', array(
369
  'value' => 'not_show_on_pages',
370
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_pages', 'not_show_on_pages')))?>
371
  <?php _e('Don\'t show on next pages / posts', PPS_LANG_CODE)?>
372
  </label>
373
  <div id="ppsOptDesc_params_main_show_pages_not_show_on_pages" style="display: none;" class="ppsOptDescParamsShell">
374
- <?php echo htmlPps::selectlist('not_show_pages_list', array('options' => $this->allPagesForSelect, 'value' => $this->selectedHidePages, 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose Pages', PPS_LANG_CODE). '"'))?>
375
  </div><br />
376
  <label class="ppsPopupMainOptLbl" data-name="Show on next categories">
377
- <?php echo htmlPps::radiobutton('params[main][show_pages]', array(
378
  'value' => 'show_on_categories',
379
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_pages', 'show_on_categories')))?>
380
  <?php _e('Show on next categories', PPS_LANG_CODE)?>
381
  </label>
382
  <div id="ppsOptDesc_params_main_show_pages_show_on_categories" style="display: none;" class="ppsOptDescParamsShell">
383
- <?php echo htmlPps::selectlist('show_categories_list', array('options' => $this->allCategoriesForSelect, 'value' => $this->selectedShowCategories, 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose Categories', PPS_LANG_CODE). '"'))?>
384
  </div><br />
385
  <label class="ppsPopupMainOptLbl" data-name="Don\'t show on next categories">
386
- <?php echo htmlPps::radiobutton('params[main][show_pages]', array(
387
  'value' => 'not_show_on_categories',
388
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_pages', 'not_show_on_categories')))?>
389
  <?php _e('Don\'t show on next categories', PPS_LANG_CODE)?>
390
  </label>
391
  <div id="ppsOptDesc_params_main_show_pages_not_show_on_categories" style="display: none;" class="ppsOptDescParamsShell">
392
- <?php echo htmlPps::selectlist('not_show_categories_list', array('options' => $this->allCategoriesForSelect, 'value' => $this->selectedHideCategories, 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose Categories', PPS_LANG_CODE). '"'))?>
393
  </div><br />
394
  <div style="clear: both;"></div>
395
  <span class="ppsOptLabel"><?php _e('Time display settings', PPS_LANG_CODE)?></span>
396
  <hr />
397
  <label class="ppsPopupMainOptLbl">
398
- <?php echo htmlPps::checkbox('params[main][enb_show_time]', array(
399
  'value' => 'all',
400
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'enb_show_time')))?>
401
  <?php _e('Set display time', PPS_LANG_CODE)?>
402
  </label><br />
403
  <span class="ppsTimeDisplayOptsShell">
404
  <?php _e('From', PPS_LANG_CODE)?>
405
- <?php echo htmlPps::selectbox('params[main][show_time_from]', array(
406
  'value' => (isset($this->popup['params']['main']['show_time_from']) ? $this->popup['params']['main']['show_time_from'] : ''),
407
  'attrs' => 'class="time-choosen"',
408
  'options' => $this->timeRange,
409
- ))?>
410
  <?php _e('to', PPS_LANG_CODE)?>
411
- <?php echo htmlPps::selectbox('params[main][show_time_to]', array(
412
  'value' => (isset($this->popup['params']['main']['show_time_to']) ? $this->popup['params']['main']['show_time_to'] : ''),
413
  'attrs' => 'class="time-choosen"',
414
  'options' => $this->timeRange,
415
- ))?>
416
  </span>
417
  <div style="clear: both;"></div>
418
  <span class="ppsOptLabel"><?php _e('Date display settings', PPS_LANG_CODE)?></span>
419
  <hr />
420
  <label class="ppsPopupMainOptLbl">
421
- <?php echo htmlPps::checkbox('params[main][enb_show_date]', array(
422
  'value' => 'all',
423
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'enb_show_date')))?>
424
  <?php _e('Set display date', PPS_LANG_CODE)?>
425
  </label><br />
426
  <span class="ppsDateDisplayOptsShell">
427
  <?php _e('From', PPS_LANG_CODE)?>
428
- <?php echo htmlPps::text('params[main][show_date_from]', array(
429
  'value' => (isset($this->popup['params']['main']['show_date_from']) ? $this->popup['params']['main']['show_date_from'] : ''),
430
- ))?>
431
  <?php _e('to', PPS_LANG_CODE)?>
432
- <?php echo htmlPps::text('params[main][show_date_to]', array(
433
  'value' => (isset($this->popup['params']['main']['show_date_to']) ? $this->popup['params']['main']['show_date_to'] : ''),
434
- ))?>
435
  </span>
436
  <div style="clear: both;"></div>
437
  <span class="ppsOptLabel"><?php _e('Days display settings', PPS_LANG_CODE)?></span>
438
  <hr />
439
  <label class="ppsPopupMainOptLbl">
440
- <?php echo htmlPps::checkbox('params[main][enb_show_days]', array(
441
  'value' => 'all',
442
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'enb_show_days')))?>
443
  <?php _e('Set display days', PPS_LANG_CODE)?>
444
  </label><br />
445
  <span class="ppsDaysDisplayOptsShell">
446
- <?php echo htmlPps::selectlist('params[main][show_days]', array(
447
  'value' => (isset($this->popup['params']['main']['show_days']) ? $this->popup['params']['main']['show_days'] : ''),
448
  'options' => $this->weekDaysRange,
449
  'attrs' => 'class="chosen" data-placeholder="'. __('Select Days', PPS_LANG_CODE). '"',
450
- ))?>
451
  </span>
452
  </section>
453
  <section class="ppsPopupMainOptSect">
454
  <span class="ppsOptLabel"><?php _e('Whom to show', PPS_LANG_CODE)?></span>
455
  <hr />
456
  <label class="ppsPopupMainOptLbl" data-name="Everyone">
457
- <?php echo htmlPps::radiobutton('params[main][show_to]', array(
458
  'value' => 'everyone',
459
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_to', 'everyone')))?>
460
  <?php _e('Everyone', PPS_LANG_CODE)?>
461
  </label><br />
462
  <label class="ppsPopupMainOptLbl" data-name="For first-time visitors">
463
- <?php echo htmlPps::radiobutton('params[main][show_to]', array(
464
  'value' => 'first_time_visit',
465
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_to', 'first_time_visit')))?>
466
  <?php _e('For first-time visitors', PPS_LANG_CODE)?>
467
  </label>
468
  <div id="ppsOptDesc_params_main_show_to_first_time_visit" style="display: none;" class="ppsOptDescParamsShell">
469
  <label class="supsystic-tooltip-left" title="<?php _e('Will remember user visit for entered number of days and show PopUp to same user again - after this period. To remember only for one browser session - use 0 here, to remember forever - try to set big number - 99999 for example.')?>">
470
  <?php _e('Remember for', PPS_LANG_CODE)?>
471
- <?php echo htmlPps::text('params[main][show_to_first_time_visit_days]', array(
472
  'value' => isset($this->popup['params']['main']['show_to_first_time_visit_days']) ? $this->popup['params']['main']['show_to_first_time_visit_days'] : 30,
473
  'attrs' => 'style="width: 50px;"'
474
- ));?>
475
  <span><?php _e('days', PPS_LANG_CODE)?></span>
476
  </label>
477
  </div><br />
478
  <label class="supsystic-tooltip-left ppsPopupMainOptLbl" data-name="Until user makes an action" title="<?php _e('Subscribe, share, like, etc.')?>">
479
- <?php echo htmlPps::radiobutton('params[main][show_to]', array(
480
  'value' => 'until_make_action',
481
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_to', 'until_make_action')))?>
482
  <?php _e('Until user makes an action', PPS_LANG_CODE)?>
483
  </label>
484
  <div id="ppsOptDesc_params_main_show_to_until_make_action" style="display: none;" class="ppsOptDescParamsShell">
485
  <label class="supsystic-tooltip-left" title="<?php _e('Will remember user action for entered number of days and show PopUp to same user again - after this period. To remember only for one browser session - use 0 here, to remember forever - try to set big number - 99999 for example.')?>">
486
  <?php _e('Remember for', PPS_LANG_CODE)?>
487
- <?php echo htmlPps::text('params[main][show_to_until_make_action_days]', array(
488
  'value' => isset($this->popup['params']['main']['show_to_until_make_action_days']) ? $this->popup['params']['main']['show_to_until_make_action_days'] : 30,
489
  'attrs' => 'style="width: 50px;"'
490
- ));?>
491
  <span><?php _e('days', PPS_LANG_CODE)?></span>
492
  </label>
493
  </div><br />
494
  <div class="ppsPopupMainOptLbl" data-name="Times in a period">
495
- <?php echo htmlPps::radiobutton('params[main][show_to]', array(
496
  'value' => 'count_times',
497
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_to', 'count_times')))?>
498
- <?php echo htmlPps::text('params[main][count_times_num]', array(
499
  'value' => isset($this->popup['params']['main']['count_times_num']) ? $this->popup['params']['main']['count_times_num'] : 1,
500
  'attrs' => 'style="width: 40px;"'
501
- ))?>
502
  <?php _e('times in a', PPS_LANG_CODE)?>
503
- <?php echo htmlPps::selectbox('params[main][count_times_mes]', array(
504
  'options' => array(
505
  'hour' => __('hour', PPS_LANG_CODE),
506
  'day' => __('day', PPS_LANG_CODE),
@@ -508,94 +507,94 @@
508
  'month' => __('month', PPS_LANG_CODE)),
509
  'value' => isset($this->popup['params']['main']['count_times_mes']) ? $this->popup['params']['main']['count_times_mes'] : 'day',
510
  'attrs' => 'class="chosen" data-chosen-width="80px"'
511
- ))?>
512
  </div><br />
513
  <label class="supsystic-tooltip-left ppsPopupMainOptLbl" data-name="Until user confirm email" title="<?php _e('Only after user will confirm email address - PopUp will disappear (for WordPress subscription for now).')?>">
514
- <?php echo htmlPps::radiobutton('params[main][show_to]', array(
515
  'value' => 'until_email_confirm',
516
  'attrs' => 'class="ppsProOpt"',
517
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_to', 'until_email_confirm')))?>
518
  <?php _e('Until user confirm email', PPS_LANG_CODE)?>
519
  <?php if(!$this->isPro) {?>
520
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=show_to_until_email_confirm&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
521
  <?php } ?>
522
  </label><br />
523
  <label class="ppsPopupMainOptLbl" id="ppsHideForDevicesLabel">
524
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
525
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_devices_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_devices_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
526
- <?php echo htmlPps::hidden('params[main][hide_for_devices_show]', array(
527
  'value' => (isset($this->popup['params']['main']['hide_for_devices_show']) ? $this->popup['params']['main']['hide_for_devices_show'] : 0)
528
- ))?>
529
  </span>
530
  <?php _e('for Devices', PPS_LANG_CODE)?>
531
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('You can make PopUp visible or hidden only when users will view your site from selected devices.', PPS_LANG_CODE))?>"></i>
532
  :<div style="padding-bottom: 5px; clear: both;"></div>
533
- <?php echo htmlPps::selectlist('params[main][hide_for_devices][]', array(
534
  'options' => $this->hideForList,
535
  'value' => (isset($this->popup['params']['main']['hide_for_devices']) ? $this->popup['params']['main']['hide_for_devices'] : array()),
536
- 'attrs' => 'class="chosen" data-placeholder="'. __('Choose devices', PPS_LANG_CODE). '"'))?>
537
  </label><br />
538
  <label class="ppsPopupMainOptLbl ppsPopupMainOptLbl" id="ppsHideForPostTypesLabel">
539
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
540
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_post_types_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_post_types_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
541
- <?php echo htmlPps::hidden('params[main][hide_for_post_types_show]', array(
542
  'value' => (isset($this->popup['params']['main']['hide_for_post_types_show']) ? $this->popup['params']['main']['hide_for_post_types_show'] : 0)
543
- ))?>
544
  </span>
545
  <?php _e('for Post Types', PPS_LANG_CODE)?>
546
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('You can make PopUp visible or hidden only for specified Post Types, for example - hide it on all Pages.', PPS_LANG_CODE))?>"></i>
547
  :<div style="padding-bottom: 5px; clear: both;"></div>
548
- <?php echo htmlPps::selectlist('params[main][hide_for_post_types][]', array(
549
  'options' => $this->hideForPostTypesList,
550
  'value' => (isset($this->popup['params']['main']['hide_for_post_types']) ? $this->popup['params']['main']['hide_for_post_types'] : array()),
551
- 'attrs' => 'class="chosen" data-placeholder="'. __('Choose post types', PPS_LANG_CODE). '"'))?>
552
  </label><br />
553
  <label class="ppsPopupMainOptLbl" style="display: inline; vertical-align: middle; padding-top: 12px;">
554
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
555
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_ips_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_ips_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
556
- <?php echo htmlPps::hidden('params[main][hide_for_ips_show]', array(
557
  'value' => (isset($this->popup['params']['main']['hide_for_ips_show']) ? $this->popup['params']['main']['hide_for_ips_show'] : 0)
558
- ))?>
559
  </span>
560
  <?php _e('for IP', PPS_LANG_CODE)?>
561
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('For those IPs PopUp will not be displayed (or vice versa - depending on Hide/Show Only option). Please be advised that your IP - %s', PPS_LANG_CODE), $this->currentIp))?>"></i>
562
  :<div style="padding-bottom: 5px; clear: both;"></div>
563
  <a href="#" id="ppsHideForIpBtn" class="button"><?php _e('Show IPs List', PPS_LANG_CODE)?></a><br />
564
- <?php echo htmlPps::hidden('params[main][hide_for_ips]', array(
565
  'value' => (isset($this->popup['params']['main']['hide_for_ips']) ? $this->popup['params']['main']['hide_for_ips'] : '')
566
- ))?>
567
  <div id="ppsHiddenIpStaticList" class="alert alert-info" style="padding: 5px 0 0; margin: 0;"></div>
568
  </label><br />
569
  <label class="ppsPopupMainOptLbl">
570
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
571
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_countries_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_countries_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
572
- <?php echo htmlPps::hidden('params[main][hide_for_countries_show]', array(
573
  'value' => (isset($this->popup['params']['main']['hide_for_countries_show']) ? $this->popup['params']['main']['hide_for_countries_show'] : 0)
574
- ))?>
575
  </span>
576
  <?php _e('for Countries', PPS_LANG_CODE)?>
577
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('For those Countries PopUp will not be displayed (or vice versa - depending on Hide/Show Only option). Please be advised that your Country code is %s', PPS_LANG_CODE), ($this->currentCountryCode ? $this->currentCountryCode : 'undefined (when using localhosts for example)')))?>"></i>
578
  :<div style="padding-bottom: 5px; clear: both;"></div>
579
- <?php echo htmlPps::selectlist('params[main][hide_for_countries][]', array(
580
  'options' => $this->countriesForSelect,
581
  'value' => (isset($this->popup['params']['main']['hide_for_countries']) ? $this->popup['params']['main']['hide_for_countries'] : array()),
582
- 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose countries', PPS_LANG_CODE). '"'))?>
583
  </label><br />
584
  <label class="ppsPopupMainOptLbl">
585
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
586
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_languages_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_languages_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
587
- <?php echo htmlPps::hidden('params[main][hide_for_languages_show]', array(
588
  'value' => (isset($this->popup['params']['main']['hide_for_languages_show']) ? $this->popup['params']['main']['hide_for_languages_show'] : 0)
589
- ))?>
590
  </span>
591
  <?php _e('for Languages', PPS_LANG_CODE)?>
592
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('For those Languages PopUp will not be displayed. Language is defined by visitor browser language. Please be advised that your browser language is %s', PPS_LANG_CODE), $this->currentLanguage))?>"></i>
593
  :<div style="padding-bottom: 5px; clear: both;"></div>
594
  <?php if(!empty($this->languagesForSelect)) {?>
595
- <?php echo htmlPps::selectlist('params[main][hide_for_languages][]', array(
596
  'options' => $this->languagesForSelect,
597
  'value' => (isset($this->popup['params']['main']['hide_for_languages']) ? $this->popup['params']['main']['hide_for_languages'] : array()),
598
- 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose languages', PPS_LANG_CODE). '"'))?>
599
  <?php } else { ?>
600
  <div class="alert alert-danger"><?php _e('This feature is supported only in WordPress version 4.0.0 or higher', PPS_LANG_CODE)?></div>
601
  <?php }?>
@@ -603,27 +602,27 @@
603
  <label class="ppsPopupMainOptLbl">
604
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
605
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_search_engines_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_search_engines_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
606
- <?php echo htmlPps::hidden('params[main][hide_search_engines_show]', array(
607
  'value' => (isset($this->popup['params']['main']['hide_search_engines_show']) ? $this->popup['params']['main']['hide_search_engines_show'] : 0)
608
- ))?>
609
  </span>
610
  <?php _e('for Search Engines or Social Media', PPS_LANG_CODE)?>
611
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('If user coming from those Search Engines - PopUp will not be displayed. This is helpfull when you want to hide or show your PopUp only for users, who come to your site from particular search engine.', PPS_LANG_CODE))?>"></i>
612
  :<div style="padding-bottom: 5px; clear: both;"></div>
613
- <?php echo htmlPps::selectlist('params[main][hide_for_search_engines][]', array(
614
  'options' => $this->searchEnginesSocialForSelect,
615
  'value' => (isset($this->popup['params']['main']['hide_for_search_engines']) ? $this->popup['params']['main']['hide_for_search_engines'] : array()),
616
- 'attrs' => 'class="chosen chosen-responsive ppsProOpt" data-placeholder="'. __('Choose Search Engines', PPS_LANG_CODE). '"'))?>
617
  <?php if(!$this->isPro) {?>
618
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=search_social_hide&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
619
  <?php }?>
620
  </label><br />
621
  <label class="ppsPopupMainOptLbl">
622
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
623
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_preg_url_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_preg_url_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
624
- <?php echo htmlPps::hidden('params[main][hide_preg_url_show]', array(
625
  'value' => (isset($this->popup['params']['main']['hide_preg_url_show']) ? $this->popup['params']['main']['hide_preg_url_show'] : 0)
626
- ))?>
627
  </span>
628
  <?php _e('for URL match', PPS_LANG_CODE)?>
629
  <i class="fa fa-question supsystic-tooltip" data-tooltip-content="#tooltip_04"></i>
@@ -631,29 +630,29 @@
631
  <?php echo esc_html(sprintf(__('You can enter here URL pattern - and users with URL matched this pattern will not see (or vice versa) your PopUp. Use <a _target="_blank" href="%s">official documentation</a> about regular expression to make this work correctly.', PPS_LANG_CODE), 'https://php.net/manual/en/reference.pcre.pattern.syntax.php'))?>
632
  </span>
633
  :<div style="padding-bottom: 5px; clear: both;"></div>
634
- <?php echo htmlPps::text('params[main][hide_preg_url]', array(
635
  'value' => (isset($this->popup['params']['main']['hide_preg_url']) ? $this->popup['params']['main']['hide_preg_url'] : ''),
636
- 'attrs' => 'style="width: 100%; border: 1px solid #000;" class="ppsProOpt"'))?>
637
  <?php if(!$this->isPro) {?>
638
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=hide_preg_url&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
639
  <?php }?>
640
  </label><br />
641
  <label class="ppsPopupMainOptLbl">
642
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
643
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_user_roles_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_user_roles_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
644
- <?php echo htmlPps::hidden('params[main][hide_for_user_roles_show]', array(
645
  'value' => (isset($this->popup['params']['main']['hide_for_user_roles_show']) ? $this->popup['params']['main']['hide_for_user_roles_show'] : 0)
646
- ))?>
647
  </span>
648
  <?php _e('for User Roles', PPS_LANG_CODE)?>
649
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('For those User Roles PopUp will not be displayed. Please be advised that your browser User Role is %s', PPS_LANG_CODE), $this->currentUserRole))?>"></i>
650
  :<div style="padding-bottom: 5px; clear: both;"></div>
651
- <?php echo htmlPps::selectlist('params[main][hide_for_user_roles][]', array(
652
  'options' => $this->userRolesForSelect,
653
  'value' => (isset($this->popup['params']['main']['hide_for_user_roles']) ? $this->popup['params']['main']['hide_for_user_roles'] : array()),
654
- 'attrs' => 'class="chosen chosen-responsive ppsProOpt" data-placeholder="'. __('Choose user roles', PPS_LANG_CODE). '"'))?>
655
  <?php if(!$this->isPro) {?>
656
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=hide_user_roles&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
657
  <?php }?>
658
  </label><br />
659
 
@@ -661,36 +660,36 @@
661
  <?php _e('Popup groups', PPS_LANG_CODE)?>
662
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('Groups popups into one slider. For popups in the same group, it is necessary to use the same display conditions.', PPS_LANG_CODE), $this->currentUserRole))?>"></i>
663
  :<div style="padding-bottom: 5px; clear: both;"></div>
664
- <?php echo htmlPps::selectlist('params[main][groups][]', array(
665
  'options' => $this->popupGroups,
666
  'value' => (isset($this->popup['params']['main']['groups']) ? $this->popup['params']['main']['groups'] : array()),
667
- 'attrs' => 'class="chosen chosen-group chosen-responsive ppsProOpt" data-placeholder="'. __('Choose one group for this popup', PPS_LANG_CODE). '"'))?>
668
  <?php if(!$this->isPro) {?>
669
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=hide_user_roles&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
670
  <?php }?>
671
  </label><br />
672
 
673
  <label class="supsystic-tooltip-left ppsPopupMainOptLbl" title="<?php _e('Hide PopUp for Logged-in users and show it only for not Logged-in site visitors.', PPS_LANG_CODE)?>" style="">
674
- <?php echo htmlPps::checkbox('params[main][hide_for_logged_in]', array(
675
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'hide_for_logged_in')))?>
676
  <?php _e('Hide for Logged-in', PPS_LANG_CODE)?>
677
  </label><br />
678
  <label class="supsystic-tooltip-left ppsPopupMainOptLbl" title="<?php _e('Show PopUp only for Logged-in users and hide it for not Logged-in site visitors.', PPS_LANG_CODE)?>" style="">
679
- <?php echo htmlPps::checkbox('params[main][show_for_logged_in]', array(
680
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_for_logged_in')))?>
681
  <?php _e('Show Only for Logged-in', PPS_LANG_CODE)?>
682
  </label><br />
683
  <label class="supsystic-tooltip-left ppsPopupMainOptLbl" title="<?php _e('Hide active popups when displaying this popup.', PPS_LANG_CODE)?>" style="">
684
- <?php echo htmlPps::checkbox('params[main][hide_other]', array(
685
- 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'hide_other')))?>
686
  <?php _e('Hide active popups when displaying this popup', PPS_LANG_CODE)?>
687
  </label><br />
688
  </section>
689
  <div id="ppsHideForIpWnd" style="display: none;" title="<?php _e('IPs List', PPS_LANG_CODE)?>">
690
  <label>
691
  <?php _e('Type here IPs that will not see PopUp, each IP - from new line', PPS_LANG_CODE)?>:<br />
692
- <?php echo htmlPps::textarea('hide_for_ips', array(
693
  'attrs' => 'id="ppsHideForIpTxt" style="width: 100%; height: 300px;"'
694
- ))?>
695
  </label>
696
  </div>
20
  }
21
  ?>
22
  <?php if(!empty($warnings)) { ?>
23
+ <div class="alert alert-warning"><?php echo viewPps::ksesString(implode('<br />', $warnings))?></div>
24
  <?php }?>
25
  <section class="ppsPopupMainOptSect">
26
  <span class="ppsOptLabel"><?php _e('When to show PopUp', PPS_LANG_CODE)?></span>
27
  <hr />
28
  <label class="ppsPopupMainOptLbl" data-name="When page loads">
29
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
30
  'value' => 'page_load',
31
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'page_load'))))?>
32
  <?php _e('When page loads', PPS_LANG_CODE)?>
33
  </label>
34
  <div id="ppsOptDesc_params_main_show_on_page_load" style="display: none;" class="ppsOptDescParamsShell">
35
  <label>
36
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][show_on_page_load_enb_delay]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on_page_load_enb_delay'))))?>
37
  <?php _e('Delay for', PPS_LANG_CODE)?>
38
  </label>
39
  <label>
40
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][show_on_page_load_delay]', array('value' => $this->popup['params']['main']['show_on_page_load_delay'])));?>
41
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
42
  </label><br />
43
  <label class="ppsPageGlobalDelayShell supsystic-tooltip-right" title="<?php _e('If this option will be enabled - time, entered above, will start counting from first page load, and if page will be reloaded (user will visit other site page for example) - it will be still counting from point, where it stopped on prev. page', PPS_LANG_CODE)?>">
44
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][enb_page_load_global_delay]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'enb_page_load_global_delay'))))?>
45
  <?php _e('Count time from the first site load', PPS_LANG_CODE)?>
46
  </label>
47
  </div><br />
48
  <label class="ppsPopupMainOptLbl" data-name="User click on the page">
49
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
50
  'value' => 'click_on_page',
51
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'click_on_page'))))?>
52
  <?php _e('User click on the page', PPS_LANG_CODE)?>
53
  </label><br />
54
  <label class="ppsPopupMainOptLbl" data-name="Click on certain link / button / other element">
55
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
56
  'value' => 'click_on_element',
57
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'click_on_element'))))?>
58
  <?php _e('User click on element', PPS_LANG_CODE)?>
59
  </label>
60
  <div id="ppsOptDesc_params_main_show_on_click_on_element" style="display: none;" class="ppsOptDescParamsShell">
61
  <?php _e('Copy & paste next code - into required link to open PopUp on Click', PPS_LANG_CODE)?>:<br />
62
+ <?php echo viewPps::ksesString(htmlPps::text('ppsCopyTextCode', array(
63
  'value' => esc_html('['. PPS_SHORTCODE_CLICK. ' id='. $this->popup['id']. ']'),
64
+ 'attrs' => 'data-parent-selector=".ppsPopupMainOptSect" class="ppsCopyTextCode supsystic-tooltip-right"')));?>
65
  <br />
66
  <?php _e('Or, if you know HTML basics, - you can insert "onclick" attribute to any of your element from code below', PPS_LANG_CODE)?>:<br />
67
+ <input type="text" name="ppsCopyTextCode" data-parent-selector=".ppsPopupMainOptSect" class="ppsCopyTextCode" readonly value='onclick="ppsShowPopUpOnClick(<?php echo esc_html($this->popup['id']);?>, this); return false;"'><br />
68
  <?php _e('Or you can even use it for your Menu item, just add code', PPS_LANG_CODE)?>:<br />
69
+ <?php echo viewPps::ksesString(htmlPps::text('ppsCopyTextCode', array(
70
  'value' => esc_html('#ppsShowPopUp_'. $this->popup['id']),
71
+ 'attrs' => 'data-parent-selector=".ppsPopupMainOptSect" class="ppsCopyTextCode"')));?><br />
72
  <?php _e('to your menu item "URL" or into "Title Attribute" field. Don\'t worry - users will not see this code as menu item title on your site.', PPS_LANG_CODE)?><br />
73
  <label>
74
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][show_on_click_on_el_enb_delay]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on_click_on_el_enb_delay'))))?>
75
  <?php _e('Delay for', PPS_LANG_CODE)?>
76
  </label>
77
  <label>
78
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][show_on_click_on_el_delay]', array(
79
+ 'value' => (isset($this->popup['params']['main']['show_on_click_on_el_delay']) ? $this->popup['params']['main']['show_on_click_on_el_delay'] : 0))));?>
80
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
81
  </label>
82
  </div><br />
83
  <label class="ppsPopupMainOptLbl" data-name="Scroll window">
84
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
85
  'value' => 'scroll_window',
86
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'scroll_window'))))?>
87
  <?php _e('Scroll window', PPS_LANG_CODE)?>
88
  </label>
89
  <div id="ppsOptDesc_params_main_show_on_scroll_window" style="display: none;" class="ppsOptDescParamsShell">
90
  <label>
91
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][show_on_scroll_window_enb_delay]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on_scroll_window_enb_delay'))))?>
92
  <?php _e('Delay for', PPS_LANG_CODE)?>
93
  </label>
94
  <label>
95
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][show_on_scroll_window_delay]', array('value' => isset($this->popup['params']['main']['show_on_scroll_window_delay']) ? $this->popup['params']['main']['show_on_scroll_window_delay'] : 0)));?>
96
  <?php _e('seconds after first scroll', PPS_LANG_CODE)?>
97
  </label><br />
98
  <label>
99
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][show_on_scroll_window_enb_perc_scroll]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on_scroll_window_enb_perc_scroll'))))?>
100
  <?php _e('Scrolled to', PPS_LANG_CODE)?>
101
  </label>
102
  <label>
103
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][show_on_scroll_window_perc_scroll]', array('value' => isset($this->popup['params']['main']['show_on_scroll_window_perc_scroll']) ? $this->popup['params']['main']['show_on_scroll_window_perc_scroll'] : 0)));?>
104
  <?php _e('percents of total scroll', PPS_LANG_CODE)?>
105
  </label>
106
  </div><br />
107
  <label class="ppsPopupMainOptLbl" data-name="On Exit from Site">
108
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
109
  'attrs' => 'class="ppsProOpt"',
110
  'value' => 'on_exit',
111
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'on_exit'))))?>
112
  <span class="supsystic-tooltip-right" title="<?php _e('Show when user tries to exit from your site. http://supsystic.com/exit-popup/', PPS_LANG_CODE)?>">
113
  <?php _e('On Exit from Site', PPS_LANG_CODE)?>
114
  </span>
115
  <?php if(!$this->isPro) {?>
116
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=on_exit&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
117
  <?php }?>
118
  </label><br />
119
  <label class="ppsPopupMainOptLbl" data-name="Bottom of the page">
120
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
121
  'attrs' => 'class="ppsProOpt"',
122
  'value' => 'page_bottom',
123
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'page_bottom'))))?>
124
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('When user is at the bottom of the page: scrolls it down to the bottom, or if there is no vertical scroll on his device - just show it right after page loads.', PPS_LANG_CODE))?>">
125
  <?php _e('Bottom of the page', PPS_LANG_CODE)?>
126
  </span>
127
  <?php if(!$this->isPro) {?>
128
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=page_bottom&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
129
  <?php }?>
130
  </label><br />
131
  <label class="ppsPopupMainOptLbl" data-name="After Inactivity">
132
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
133
  'attrs' => 'class="ppsProOpt"',
134
  'value' => 'after_inactive',
135
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'after_inactive'))))?>
136
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('After user was inactive on your page for some time.', PPS_LANG_CODE))?>">
137
  <?php _e('After Inactivity', PPS_LANG_CODE)?>
138
  </span>
139
  <?php if(!$this->isPro) {?>
140
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=after_inactive&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
141
  <?php }?>
142
  </label>
143
  <?php if($this->isPro) {?>
144
  <div id="ppsOptDesc_params_main_show_on_after_inactive" style="display: none;" class="ppsOptDescParamsShell">
145
  <?php _e('After user was inactive for', PPS_LANG_CODE)?>
146
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][show_on_after_inactive_value]', array(
147
+ 'value' => isset($this->popup['params']['main']['show_on_after_inactive_value']) ? $this->popup['params']['main']['show_on_after_inactive_value'] : 10 /*Default - 5 seconds*/)));?>
148
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
149
  </div><?php }?><br />
150
  <label class="ppsPopupMainOptLbl" data-name="After User Comment">
151
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
152
  'attrs' => 'class="ppsProOpt"',
153
  'value' => 'after_comment',
154
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'after_comment'))))?>
155
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('When user adds a comment on your site he will see this PopUp after comment was placed. This will help you to get active users interested in your site.', PPS_LANG_CODE))?>">
156
  <?php _e('After User Comment', PPS_LANG_CODE)?>
157
  </span>
158
  <?php if(!$this->isPro) {?>
159
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=after_comment&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
160
  <?php }?>
161
  </label><br />
162
  <label class="ppsPopupMainOptLbl" data-name="After Purchasing (Checkout)">
163
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
164
  'attrs' => 'class="ppsProOpt"',
165
  'value' => 'after_checkout',
166
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'after_checkout'))))?>
167
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('Show PopUp after successful checkout process in your online store.', PPS_LANG_CODE))?>">
168
  <?php _e('After Purchasing (Checkout)', PPS_LANG_CODE)?>
169
  </span>
170
  <?php if(!$this->isPro) {?>
171
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=after_checkout&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
172
  <?php }?>
173
  </label>
174
  <?php if($this->isPro) {?>
175
  <div id="ppsOptDesc_params_main_show_on_after_checkout" style="display: none;" class="ppsOptDescParamsShell">
176
  <?php _e('Copy & Paste next code on your Success checkout page content editor', PPS_LANG_CODE)?>:
177
+ <?php echo viewPps::ksesString(htmlPps::text('ppsCopyTextCode', array(
178
  'value' => esc_html('['. PPS_SHORTCODE. ' id='. $this->popup['id']. ']'),
179
+ 'attrs' => 'class="ppsCopyTextCode"')));?><br />
180
  <?php _e('Or, if you are using your own html/php for this page - insert there next code', PPS_LANG_CODE)?>:
181
+ <?php echo viewPps::ksesString(htmlPps::textarea('ppsCopyTextCode', array(
182
  'value' => esc_html($this->afterCheckoutCode),
183
+ 'attrs' => 'class="ppsCopyTextCode"')));?>
 
184
  </div><?php }?><br />
185
  <label class="ppsPopupMainOptLbl" data-name="On Link Follow">
186
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
187
  'attrs' => 'class="ppsProOpt"',
188
  'value' => 'link_follow',
189
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'link_follow'))))?>
190
  <?php
191
  $openByFollowExl = get_bloginfo('wpurl'). '#ppsShowPopUp_'. $this->popup['id'];
192
  ?>
194
  <?php _e('On Link Follow', PPS_LANG_CODE)?>
195
  </span>
196
  <?php if(!$this->isPro) {?>
197
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=link_follow&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
198
  <?php }?>
199
  </label>
200
  <div id="ppsOptDesc_params_main_show_on_link_follow" style="display: none;" class="ppsOptDescParamsShell">
201
  <?php _e('Copy & paste next code - into end of required link on your site', PPS_LANG_CODE)?>:<br />
202
+ <?php echo viewPps::ksesString(htmlPps::text('ppsCopyTextCode', array(
203
  'value' => esc_html('#ppsShowPopUp_'. $this->popup['id']),
204
+ 'attrs' => 'class="ppsCopyTextCode"')));?><br />
205
  <label>
206
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][show_on_link_follow_enb_delay]', array('checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on_link_follow_enb_delay'))))?>
207
  <?php _e('Delay for', PPS_LANG_CODE)?>
208
  </label>
209
  <label>
210
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][show_on_link_follow_delay]', array(
211
+ 'value' => (isset($this->popup['params']['main']['show_on_link_follow_delay']) ? $this->popup['params']['main']['show_on_link_follow_delay'] : 0))));?>
212
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
213
  </label>
214
  </div><br />
215
  <label class="ppsPopupMainOptLbl" data-name="Build-In Page">
216
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
217
  'attrs' => 'class="ppsProOpt"',
218
  'value' => 'build_in_page',
219
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'build_in_page'))))?>
220
  <?php
221
  $openByFollowExl = get_bloginfo('wpurl'). '#ppsShowPopUp_'. $this->popup['id'];
222
  ?>
224
  <?php _e('Build-In Page', PPS_LANG_CODE)?>
225
  </span>
226
  <?php if(!$this->isPro) {?>
227
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=build_in_page&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
228
  <?php }?>
229
  </label>
230
  <div id="ppsOptDesc_params_main_show_on_build_in_page" style="display: none;" class="ppsOptDescParamsShell">
231
  <?php _e('Copy & paste next code - into required place in your page', PPS_LANG_CODE)?>:<br />
232
+ <?php echo viewPps::ksesString(htmlPps::text('ppsCopyTextCode', array(
233
  'value' => esc_html('['. PPS_SHORTCODE_BUILD_IN. ' id='. $this->popup['id']. ']'),
234
+ 'attrs' => 'data-parent-selector=".ppsPopupMainOptSect" class="ppsCopyTextCode"')));?>
235
  </div><br />
236
  <label class="ppsPopupMainOptLbl" data-name="AdBlock Detected">
237
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
238
  'attrs' => 'class="ppsProOpt"',
239
  'value' => 'adblock_detected',
240
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'adblock_detected'))))?>
241
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('PopUp will appear if in current user browser any adBlock is enabled.', PPS_LANG_CODE))?>">
242
  <?php _e('AdBlock Detected', PPS_LANG_CODE)?>
243
  </span>
244
  <?php if(!$this->isPro) {?>
245
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=adblock_detected&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
246
  <?php }?>
247
  </label><br />
248
  <label class="ppsPopupMainOptLbl" data-name="Show in Admin Area">
249
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][show_in_admin_area]', array(
250
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_in_admin_area'))))?>
251
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('If enabled - this will show PopUp in admin area too - like on frontend.', PPS_LANG_CODE))?>">
252
  <?php _e('Show in Admin Area', PPS_LANG_CODE)?>
253
  </span>
254
  </label><br />
255
  <label class="ppsPopupMainOptLbl" data-name="Visit several Pages">
256
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_on]', array(
257
  'attrs' => 'class="ppsProOpt"',
258
  'value' => 'visit_several_pages',
259
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_on', 'visit_several_pages'))))?>
260
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('PopUp will appear after your site visitor will visit required pages number on your site.', PPS_LANG_CODE))?>">
261
  <?php _e('Visit several Pages', PPS_LANG_CODE)?>
262
  </span>
263
  <?php if(!$this->isPro) {?>
264
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=visit_several_pages&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
265
  <?php }?>
266
  </label><br />
267
  <div id="ppsOptDesc_params_main_show_on_visit_several_pages" style="display: none;" class="ppsOptDescParamsShell supsystic-tooltip-right" title="<?php _e('Enter here number of pages that need to be visited by user before PopUp will be shown.', PPS_LANG_CODE)?>">
268
  <?php _e('Pages number to visit', PPS_LANG_CODE)?>:<br />
269
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][visit_page_cnt]', array(
270
  'value' => isset($this->popup['params']['main']['visit_page_cnt']) ? $this->popup['params']['main']['visit_page_cnt'] : '',
271
+ 'attrs' => 'class=""')));?>
272
  </div><br />
273
  </section>
274
  <section class="ppsPopupMainOptSect">
275
  <span class="ppsOptLabel"><?php _e('When to close PopUp', PPS_LANG_CODE)?></span>
276
  <hr />
277
  <label class="ppsPopupMainOptLbl" data-name="After user close it">
278
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][close_on]', array(
279
  'value' => 'user_close',
280
+ 'checked' => !isset($this->popup['params']['main']['close_on']) ? true : htmlPps::checkedOpt($this->popup['params']['main'], 'close_on', 'user_close'))))?>
281
  <?php _e('After user close it', PPS_LANG_CODE)?>
282
  </label><br />
283
  <label class="ppsPopupMainOptLbl" data-name="Click outside PopUp">
284
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][close_on]', array(
285
  'value' => 'overlay_click',
286
+ 'checked' => !isset($this->popup['params']['main']['close_on']) ? false : htmlPps::checkedOpt($this->popup['params']['main'], 'close_on', 'overlay_click'))))?>
287
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('Close PopUp when user clicks outside of the actually PopUp window.', PPS_LANG_CODE))?>">
288
  <?php _e('Click outside PopUp', PPS_LANG_CODE)?>
289
  </span>
290
  </label><br />
291
  <label class="ppsPopupMainOptLbl" data-name="Only after action (Subscribe / Share / Like)">
292
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][close_on]', array(
293
  'attrs' => 'class="ppsProOpt"',
294
  'value' => 'after_action',
295
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'close_on', 'after_action'))))?>
296
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('Will not allow user to close your PopUp - until finish at least one action: Subscribe, Share or Like.', PPS_LANG_CODE))?>">
297
  <?php _e('Only after action (Subscribe / Share / Like)', PPS_LANG_CODE)?>
298
  </span>
299
  <?php if(!$this->isPro) {?>
300
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=close_on_after_action&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
301
  <?php }?>
302
  </label>
303
  <?php if($this->isPro) {?>
304
  <div id="ppsOptDesc_params_main_close_on_after_action" class="ppsOptDesc_params_main_close_on ppsPopupMainOptDesc ppsOptDescParamsShell" style="display: none;">
305
  <label>
306
  <?php _e('Close after', PPS_LANG_CODE)?>
307
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][close_on_after_action_time]', array(
308
  'value' => isset($this->popup['params']['main']['close_on_after_action_time']) ? $this->popup['params']['main']['close_on_after_action_time'] : 1, /*Default - 1 second*/
309
+ 'attrs' => 'style="width: 60px;"')));?>
310
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
311
  </label><br />
312
  <label>
313
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][close_on_after_action_enb_close_btn]', array(
314
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'close_on_after_action_enb_close_btn'))))?>
315
  <span class="supsystic-tooltip-right" title="<?php echo esc_html(__('By default close button for PopUp in this case will be hidden: PopUp will wait until user will make action. But you can enable it here if this is required.', PPS_LANG_CODE))?>">
316
  <?php _e('Enable close button', PPS_LANG_CODE)?>
317
  </span>
319
  </div>
320
  <?php }?><br />
321
  <label class="supsystic-tooltip-bottom ppsPopupMainOptLbl" data-name="After time passed" title="<?php echo esc_html(__('Close PopUp after it will be visible during specified time.', PPS_LANG_CODE))?>">
322
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][close_on]', array(
323
  'attrs' => 'class="ppsProOpt"',
324
  'value' => 'after_time',
325
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'close_on', 'after_time'))))?>
326
  <?php _e('After time passed', PPS_LANG_CODE)?>
327
  <?php if(!$this->isPro) {?>
328
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=close_on_after_time&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
329
  <?php }?>
330
  </label>
331
  <?php if($this->isPro) {?>
332
  <div id="ppsOptDesc_params_main_close_on_after_time" class="ppsOptDesc_params_main_close_on ppsPopupMainOptDesc ppsOptDescParamsShell" style="display: none;">
333
  <label>
334
  <?php _e('Close after', PPS_LANG_CODE)?>
335
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][close_on_after_time_value]', array(
336
+ 'value' => isset($this->popup['params']['main']['close_on_after_time_value']) ? $this->popup['params']['main']['close_on_after_time_value'] : 5 /*Default - 5 seconds*/)));?>
337
  <span class="supsystic-tooltip" title="<?php _e('Seconds', PPS_LANG_CODE)?>"><?php _e('sec', PPS_LANG_CODE)?></span>
338
  </label>
339
  <label>
340
  <?php _e('Close notice font color', PPS_LANG_CODE)?>
341
  <div style="margin:10px 0px;">
342
+ <?php echo viewPps::ksesString(htmlPps::colorpicker('params[tpl][bg_close_notice_font_color]', array(
343
  'value' => (isset($this->popup['params']['tpl']['bg_close_notice_font_color']) ? $this->popup['params']['tpl']['bg_close_notice_font_color'] : '#101010;'),
344
+ )));?>
345
  </div>
346
  </label>
347
  </div><?php }?><br />
349
  <span class="ppsOptLabel"><?php _e('Show on next pages', PPS_LANG_CODE)?></span>
350
  <hr />
351
  <label class="ppsPopupMainOptLbl" data-name="All pages">
352
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_pages]', array(
353
  'value' => 'all',
354
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_pages', 'all'))))?>
355
  <?php _e('All pages', PPS_LANG_CODE)?>
356
  </label><br />
357
  <label class="ppsPopupMainOptLbl" data-name="Show on next pages / posts">
358
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_pages]', array(
359
  'value' => 'show_on_pages',
360
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_pages', 'show_on_pages'))))?>
361
  <?php _e('Show on next pages / posts', PPS_LANG_CODE)?>
362
  </label>
363
  <div id="ppsOptDesc_params_main_show_pages_show_on_pages" style="display: none;" class="ppsOptDescParamsShell">
364
+ <?php echo viewPps::ksesString(htmlPps::selectlist('show_pages_list', array('options' => $this->allPagesForSelect, 'value' => $this->selectedShowPages, 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose Pages', PPS_LANG_CODE). '"')))?>
365
  </div><br />
366
  <label class="ppsPopupMainOptLbl" data-name="Don\'t show on next pages / posts">
367
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_pages]', array(
368
  'value' => 'not_show_on_pages',
369
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_pages', 'not_show_on_pages'))))?>
370
  <?php _e('Don\'t show on next pages / posts', PPS_LANG_CODE)?>
371
  </label>
372
  <div id="ppsOptDesc_params_main_show_pages_not_show_on_pages" style="display: none;" class="ppsOptDescParamsShell">
373
+ <?php echo viewPps::ksesString(htmlPps::selectlist('not_show_pages_list', array('options' => $this->allPagesForSelect, 'value' => $this->selectedHidePages, 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose Pages', PPS_LANG_CODE). '"')))?>
374
  </div><br />
375
  <label class="ppsPopupMainOptLbl" data-name="Show on next categories">
376
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_pages]', array(
377
  'value' => 'show_on_categories',
378
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_pages', 'show_on_categories'))))?>
379
  <?php _e('Show on next categories', PPS_LANG_CODE)?>
380
  </label>
381
  <div id="ppsOptDesc_params_main_show_pages_show_on_categories" style="display: none;" class="ppsOptDescParamsShell">
382
+ <?php echo viewPps::ksesString(htmlPps::selectlist('show_categories_list', array('options' => $this->allCategoriesForSelect, 'value' => $this->selectedShowCategories, 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose Categories', PPS_LANG_CODE). '"')))?>
383
  </div><br />
384
  <label class="ppsPopupMainOptLbl" data-name="Don\'t show on next categories">
385
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_pages]', array(
386
  'value' => 'not_show_on_categories',
387
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_pages', 'not_show_on_categories'))))?>
388
  <?php _e('Don\'t show on next categories', PPS_LANG_CODE)?>
389
  </label>
390
  <div id="ppsOptDesc_params_main_show_pages_not_show_on_categories" style="display: none;" class="ppsOptDescParamsShell">
391
+ <?php echo viewPps::ksesString(htmlPps::selectlist('not_show_categories_list', array('options' => $this->allCategoriesForSelect, 'value' => $this->selectedHideCategories, 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose Categories', PPS_LANG_CODE). '"')))?>
392
  </div><br />
393
  <div style="clear: both;"></div>
394
  <span class="ppsOptLabel"><?php _e('Time display settings', PPS_LANG_CODE)?></span>
395
  <hr />
396
  <label class="ppsPopupMainOptLbl">
397
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][enb_show_time]', array(
398
  'value' => 'all',
399
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'enb_show_time'))))?>
400
  <?php _e('Set display time', PPS_LANG_CODE)?>
401
  </label><br />
402
  <span class="ppsTimeDisplayOptsShell">
403
  <?php _e('From', PPS_LANG_CODE)?>
404
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[main][show_time_from]', array(
405
  'value' => (isset($this->popup['params']['main']['show_time_from']) ? $this->popup['params']['main']['show_time_from'] : ''),
406
  'attrs' => 'class="time-choosen"',
407
  'options' => $this->timeRange,
408
+ )))?>
409
  <?php _e('to', PPS_LANG_CODE)?>
410
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[main][show_time_to]', array(
411
  'value' => (isset($this->popup['params']['main']['show_time_to']) ? $this->popup['params']['main']['show_time_to'] : ''),
412
  'attrs' => 'class="time-choosen"',
413
  'options' => $this->timeRange,
414
+ )))?>
415
  </span>
416
  <div style="clear: both;"></div>
417
  <span class="ppsOptLabel"><?php _e('Date display settings', PPS_LANG_CODE)?></span>
418
  <hr />
419
  <label class="ppsPopupMainOptLbl">
420
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][enb_show_date]', array(
421
  'value' => 'all',
422
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'enb_show_date'))))?>
423
  <?php _e('Set display date', PPS_LANG_CODE)?>
424
  </label><br />
425
  <span class="ppsDateDisplayOptsShell">
426
  <?php _e('From', PPS_LANG_CODE)?>
427
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][show_date_from]', array(
428
  'value' => (isset($this->popup['params']['main']['show_date_from']) ? $this->popup['params']['main']['show_date_from'] : ''),
429
+ )))?>
430
  <?php _e('to', PPS_LANG_CODE)?>
431
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][show_date_to]', array(
432
  'value' => (isset($this->popup['params']['main']['show_date_to']) ? $this->popup['params']['main']['show_date_to'] : ''),
433
+ )))?>
434
  </span>
435
  <div style="clear: both;"></div>
436
  <span class="ppsOptLabel"><?php _e('Days display settings', PPS_LANG_CODE)?></span>
437
  <hr />
438
  <label class="ppsPopupMainOptLbl">
439
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][enb_show_days]', array(
440
  'value' => 'all',
441
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'enb_show_days'))))?>
442
  <?php _e('Set display days', PPS_LANG_CODE)?>
443
  </label><br />
444
  <span class="ppsDaysDisplayOptsShell">
445
+ <?php echo viewPps::ksesString(htmlPps::selectlist('params[main][show_days]', array(
446
  'value' => (isset($this->popup['params']['main']['show_days']) ? $this->popup['params']['main']['show_days'] : ''),
447
  'options' => $this->weekDaysRange,
448
  'attrs' => 'class="chosen" data-placeholder="'. __('Select Days', PPS_LANG_CODE). '"',
449
+ )))?>
450
  </span>
451
  </section>
452
  <section class="ppsPopupMainOptSect">
453
  <span class="ppsOptLabel"><?php _e('Whom to show', PPS_LANG_CODE)?></span>
454
  <hr />
455
  <label class="ppsPopupMainOptLbl" data-name="Everyone">
456
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_to]', array(
457
  'value' => 'everyone',
458
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_to', 'everyone'))))?>
459
  <?php _e('Everyone', PPS_LANG_CODE)?>
460
  </label><br />
461
  <label class="ppsPopupMainOptLbl" data-name="For first-time visitors">
462
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_to]', array(
463
  'value' => 'first_time_visit',
464
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_to', 'first_time_visit'))))?>
465
  <?php _e('For first-time visitors', PPS_LANG_CODE)?>
466
  </label>
467
  <div id="ppsOptDesc_params_main_show_to_first_time_visit" style="display: none;" class="ppsOptDescParamsShell">
468
  <label class="supsystic-tooltip-left" title="<?php _e('Will remember user visit for entered number of days and show PopUp to same user again - after this period. To remember only for one browser session - use 0 here, to remember forever - try to set big number - 99999 for example.')?>">
469
  <?php _e('Remember for', PPS_LANG_CODE)?>
470
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][show_to_first_time_visit_days]', array(
471
  'value' => isset($this->popup['params']['main']['show_to_first_time_visit_days']) ? $this->popup['params']['main']['show_to_first_time_visit_days'] : 30,
472
  'attrs' => 'style="width: 50px;"'
473
+ )));?>
474
  <span><?php _e('days', PPS_LANG_CODE)?></span>
475
  </label>
476
  </div><br />
477
  <label class="supsystic-tooltip-left ppsPopupMainOptLbl" data-name="Until user makes an action" title="<?php _e('Subscribe, share, like, etc.')?>">
478
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_to]', array(
479
  'value' => 'until_make_action',
480
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_to', 'until_make_action'))))?>
481
  <?php _e('Until user makes an action', PPS_LANG_CODE)?>
482
  </label>
483
  <div id="ppsOptDesc_params_main_show_to_until_make_action" style="display: none;" class="ppsOptDescParamsShell">
484
  <label class="supsystic-tooltip-left" title="<?php _e('Will remember user action for entered number of days and show PopUp to same user again - after this period. To remember only for one browser session - use 0 here, to remember forever - try to set big number - 99999 for example.')?>">
485
  <?php _e('Remember for', PPS_LANG_CODE)?>
486
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][show_to_until_make_action_days]', array(
487
  'value' => isset($this->popup['params']['main']['show_to_until_make_action_days']) ? $this->popup['params']['main']['show_to_until_make_action_days'] : 30,
488
  'attrs' => 'style="width: 50px;"'
489
+ )));?>
490
  <span><?php _e('days', PPS_LANG_CODE)?></span>
491
  </label>
492
  </div><br />
493
  <div class="ppsPopupMainOptLbl" data-name="Times in a period">
494
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_to]', array(
495
  'value' => 'count_times',
496
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_to', 'count_times'))))?>
497
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][count_times_num]', array(
498
  'value' => isset($this->popup['params']['main']['count_times_num']) ? $this->popup['params']['main']['count_times_num'] : 1,
499
  'attrs' => 'style="width: 40px;"'
500
+ )))?>
501
  <?php _e('times in a', PPS_LANG_CODE)?>
502
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[main][count_times_mes]', array(
503
  'options' => array(
504
  'hour' => __('hour', PPS_LANG_CODE),
505
  'day' => __('day', PPS_LANG_CODE),
507
  'month' => __('month', PPS_LANG_CODE)),
508
  'value' => isset($this->popup['params']['main']['count_times_mes']) ? $this->popup['params']['main']['count_times_mes'] : 'day',
509
  'attrs' => 'class="chosen" data-chosen-width="80px"'
510
+ )))?>
511
  </div><br />
512
  <label class="supsystic-tooltip-left ppsPopupMainOptLbl" data-name="Until user confirm email" title="<?php _e('Only after user will confirm email address - PopUp will disappear (for WordPress subscription for now).')?>">
513
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[main][show_to]', array(
514
  'value' => 'until_email_confirm',
515
  'attrs' => 'class="ppsProOpt"',
516
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_to', 'until_email_confirm'))))?>
517
  <?php _e('Until user confirm email', PPS_LANG_CODE)?>
518
  <?php if(!$this->isPro) {?>
519
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=show_to_until_email_confirm&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
520
  <?php } ?>
521
  </label><br />
522
  <label class="ppsPopupMainOptLbl" id="ppsHideForDevicesLabel">
523
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
524
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_devices_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_devices_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
525
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[main][hide_for_devices_show]', array(
526
  'value' => (isset($this->popup['params']['main']['hide_for_devices_show']) ? $this->popup['params']['main']['hide_for_devices_show'] : 0)
527
+ )))?>
528
  </span>
529
  <?php _e('for Devices', PPS_LANG_CODE)?>
530
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('You can make PopUp visible or hidden only when users will view your site from selected devices.', PPS_LANG_CODE))?>"></i>
531
  :<div style="padding-bottom: 5px; clear: both;"></div>
532
+ <?php echo viewPps::ksesString(htmlPps::selectlist('params[main][hide_for_devices][]', array(
533
  'options' => $this->hideForList,
534
  'value' => (isset($this->popup['params']['main']['hide_for_devices']) ? $this->popup['params']['main']['hide_for_devices'] : array()),
535
+ 'attrs' => 'class="chosen" data-placeholder="'. __('Choose devices', PPS_LANG_CODE). '"')))?>
536
  </label><br />
537
  <label class="ppsPopupMainOptLbl ppsPopupMainOptLbl" id="ppsHideForPostTypesLabel">
538
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
539
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_post_types_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_post_types_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
540
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[main][hide_for_post_types_show]', array(
541
  'value' => (isset($this->popup['params']['main']['hide_for_post_types_show']) ? $this->popup['params']['main']['hide_for_post_types_show'] : 0)
542
+ )))?>
543
  </span>
544
  <?php _e('for Post Types', PPS_LANG_CODE)?>
545
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('You can make PopUp visible or hidden only for specified Post Types, for example - hide it on all Pages.', PPS_LANG_CODE))?>"></i>
546
  :<div style="padding-bottom: 5px; clear: both;"></div>
547
+ <?php echo viewPps::ksesString(htmlPps::selectlist('params[main][hide_for_post_types][]', array(
548
  'options' => $this->hideForPostTypesList,
549
  'value' => (isset($this->popup['params']['main']['hide_for_post_types']) ? $this->popup['params']['main']['hide_for_post_types'] : array()),
550
+ 'attrs' => 'class="chosen" data-placeholder="'. __('Choose post types', PPS_LANG_CODE). '"')))?>
551
  </label><br />
552
  <label class="ppsPopupMainOptLbl" style="display: inline; vertical-align: middle; padding-top: 12px;">
553
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
554
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_ips_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_ips_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
555
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[main][hide_for_ips_show]', array(
556
  'value' => (isset($this->popup['params']['main']['hide_for_ips_show']) ? $this->popup['params']['main']['hide_for_ips_show'] : 0)
557
+ )))?>
558
  </span>
559
  <?php _e('for IP', PPS_LANG_CODE)?>
560
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('For those IPs PopUp will not be displayed (or vice versa - depending on Hide/Show Only option). Please be advised that your IP - %s', PPS_LANG_CODE), $this->currentIp))?>"></i>
561
  :<div style="padding-bottom: 5px; clear: both;"></div>
562
  <a href="#" id="ppsHideForIpBtn" class="button"><?php _e('Show IPs List', PPS_LANG_CODE)?></a><br />
563
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[main][hide_for_ips]', array(
564
  'value' => (isset($this->popup['params']['main']['hide_for_ips']) ? $this->popup['params']['main']['hide_for_ips'] : '')
565
+ )))?>
566
  <div id="ppsHiddenIpStaticList" class="alert alert-info" style="padding: 5px 0 0; margin: 0;"></div>
567
  </label><br />
568
  <label class="ppsPopupMainOptLbl">
569
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
570
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_countries_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_countries_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
571
+ <?php echo viewPps::ksesString( htmlPps::hidden('params[main][hide_for_countries_show]', array(
572
  'value' => (isset($this->popup['params']['main']['hide_for_countries_show']) ? $this->popup['params']['main']['hide_for_countries_show'] : 0)
573
+ )))?>
574
  </span>
575
  <?php _e('for Countries', PPS_LANG_CODE)?>
576
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('For those Countries PopUp will not be displayed (or vice versa - depending on Hide/Show Only option). Please be advised that your Country code is %s', PPS_LANG_CODE), ($this->currentCountryCode ? $this->currentCountryCode : 'undefined (when using localhosts for example)')))?>"></i>
577
  :<div style="padding-bottom: 5px; clear: both;"></div>
578
+ <?php echo viewPps::ksesString( htmlPps::selectlist('params[main][hide_for_countries][]', array(
579
  'options' => $this->countriesForSelect,
580
  'value' => (isset($this->popup['params']['main']['hide_for_countries']) ? $this->popup['params']['main']['hide_for_countries'] : array()),
581
+ 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose countries', PPS_LANG_CODE). '"')))?>
582
  </label><br />
583
  <label class="ppsPopupMainOptLbl">
584
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
585
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_languages_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_languages_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
586
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[main][hide_for_languages_show]', array(
587
  'value' => (isset($this->popup['params']['main']['hide_for_languages_show']) ? $this->popup['params']['main']['hide_for_languages_show'] : 0)
588
+ )))?>
589
  </span>
590
  <?php _e('for Languages', PPS_LANG_CODE)?>
591
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('For those Languages PopUp will not be displayed. Language is defined by visitor browser language. Please be advised that your browser language is %s', PPS_LANG_CODE), $this->currentLanguage))?>"></i>
592
  :<div style="padding-bottom: 5px; clear: both;"></div>
593
  <?php if(!empty($this->languagesForSelect)) {?>
594
+ <?php echo viewPps::ksesString(htmlPps::selectlist('params[main][hide_for_languages][]', array(
595
  'options' => $this->languagesForSelect,
596
  'value' => (isset($this->popup['params']['main']['hide_for_languages']) ? $this->popup['params']['main']['hide_for_languages'] : array()),
597
+ 'attrs' => 'class="chosen chosen-responsive" data-placeholder="'. __('Choose languages', PPS_LANG_CODE). '"')))?>
598
  <?php } else { ?>
599
  <div class="alert alert-danger"><?php _e('This feature is supported only in WordPress version 4.0.0 or higher', PPS_LANG_CODE)?></div>
600
  <?php }?>
602
  <label class="ppsPopupMainOptLbl">
603
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
604
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_search_engines_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_search_engines_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
605
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[main][hide_search_engines_show]', array(
606
  'value' => (isset($this->popup['params']['main']['hide_search_engines_show']) ? $this->popup['params']['main']['hide_search_engines_show'] : 0)
607
+ )))?>
608
  </span>
609
  <?php _e('for Search Engines or Social Media', PPS_LANG_CODE)?>
610
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('If user coming from those Search Engines - PopUp will not be displayed. This is helpfull when you want to hide or show your PopUp only for users, who come to your site from particular search engine.', PPS_LANG_CODE))?>"></i>
611
  :<div style="padding-bottom: 5px; clear: both;"></div>
612
+ <?php echo viewPps::ksesString(htmlPps::selectlist('params[main][hide_for_search_engines][]', array(
613
  'options' => $this->searchEnginesSocialForSelect,
614
  'value' => (isset($this->popup['params']['main']['hide_for_search_engines']) ? $this->popup['params']['main']['hide_for_search_engines'] : array()),
615
+ 'attrs' => 'class="chosen chosen-responsive ppsProOpt" data-placeholder="'. __('Choose Search Engines', PPS_LANG_CODE). '"')))?>
616
  <?php if(!$this->isPro) {?>
617
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=search_social_hide&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
618
  <?php }?>
619
  </label><br />
620
  <label class="ppsPopupMainOptLbl">
621
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
622
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_preg_url_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_preg_url_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
623
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[main][hide_preg_url_show]', array(
624
  'value' => (isset($this->popup['params']['main']['hide_preg_url_show']) ? $this->popup['params']['main']['hide_preg_url_show'] : 0)
625
+ )))?>
626
  </span>
627
  <?php _e('for URL match', PPS_LANG_CODE)?>
628
  <i class="fa fa-question supsystic-tooltip" data-tooltip-content="#tooltip_04"></i>
630
  <?php echo esc_html(sprintf(__('You can enter here URL pattern - and users with URL matched this pattern will not see (or vice versa) your PopUp. Use <a _target="_blank" href="%s">official documentation</a> about regular expression to make this work correctly.', PPS_LANG_CODE), 'https://php.net/manual/en/reference.pcre.pattern.syntax.php'))?>
631
  </span>
632
  :<div style="padding-bottom: 5px; clear: both;"></div>
633
+ <?php echo viewPps::ksesString(htmlPps::text('params[main][hide_preg_url]', array(
634
  'value' => (isset($this->popup['params']['main']['hide_preg_url']) ? $this->popup['params']['main']['hide_preg_url'] : ''),
635
+ 'attrs' => 'style="width: 100%; border: 1px solid #000;" class="ppsProOpt"')))?>
636
  <?php if(!$this->isPro) {?>
637
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=hide_preg_url&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
638
  <?php }?>
639
  </label><br />
640
  <label class="ppsPopupMainOptLbl">
641
  <span class="supsystic-tooltip" title="<?php echo esc_html(__('Click to revert feature function: from Hide - to Show, and vice versa.', PPS_LANG_CODE))?>">
642
  <a href="#" class="ppsSwitchShowHideOptLink" data-input-value="0" data-input-name="params[main][hide_for_user_roles_show]"><?php _e('Hide', PPS_LANG_CODE)?></a>/<a href="#" class="ppsSwitchShowHideOptLink" data-input-value="1" data-input-name="params[main][hide_for_user_roles_show]"><?php _e('Show Only', PPS_LANG_CODE)?></a>
643
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[main][hide_for_user_roles_show]', array(
644
  'value' => (isset($this->popup['params']['main']['hide_for_user_roles_show']) ? $this->popup['params']['main']['hide_for_user_roles_show'] : 0)
645
+ )))?>
646
  </span>
647
  <?php _e('for User Roles', PPS_LANG_CODE)?>
648
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('For those User Roles PopUp will not be displayed. Please be advised that your browser User Role is %s', PPS_LANG_CODE), $this->currentUserRole))?>"></i>
649
  :<div style="padding-bottom: 5px; clear: both;"></div>
650
+ <?php echo viewPps::ksesString(htmlPps::selectlist('params[main][hide_for_user_roles][]', array(
651
  'options' => $this->userRolesForSelect,
652
  'value' => (isset($this->popup['params']['main']['hide_for_user_roles']) ? $this->popup['params']['main']['hide_for_user_roles'] : array()),
653
+ 'attrs' => 'class="chosen chosen-responsive ppsProOpt" data-placeholder="'. __('Choose user roles', PPS_LANG_CODE). '"')))?>
654
  <?php if(!$this->isPro) {?>
655
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=hide_user_roles&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
656
  <?php }?>
657
  </label><br />
658
 
660
  <?php _e('Popup groups', PPS_LANG_CODE)?>
661
  <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('Groups popups into one slider. For popups in the same group, it is necessary to use the same display conditions.', PPS_LANG_CODE), $this->currentUserRole))?>"></i>
662
  :<div style="padding-bottom: 5px; clear: both;"></div>
663
+ <?php echo viewPps::ksesString(htmlPps::selectlist('params[main][groups][]', array(
664
  'options' => $this->popupGroups,
665
  'value' => (isset($this->popup['params']['main']['groups']) ? $this->popup['params']['main']['groups'] : array()),
666
+ 'attrs' => 'class="chosen chosen-group chosen-responsive ppsProOpt" data-placeholder="'. __('Choose one group for this popup', PPS_LANG_CODE). '"')))?>
667
  <?php if(!$this->isPro) {?>
668
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=hide_user_roles&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
669
  <?php }?>
670
  </label><br />
671
 
672
  <label class="supsystic-tooltip-left ppsPopupMainOptLbl" title="<?php _e('Hide PopUp for Logged-in users and show it only for not Logged-in site visitors.', PPS_LANG_CODE)?>" style="">
673
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][hide_for_logged_in]', array(
674
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'hide_for_logged_in'))))?>
675
  <?php _e('Hide for Logged-in', PPS_LANG_CODE)?>
676
  </label><br />
677
  <label class="supsystic-tooltip-left ppsPopupMainOptLbl" title="<?php _e('Show PopUp only for Logged-in users and hide it for not Logged-in site visitors.', PPS_LANG_CODE)?>" style="">
678
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][show_for_logged_in]', array(
679
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'show_for_logged_in'))))?>
680
  <?php _e('Show Only for Logged-in', PPS_LANG_CODE)?>
681
  </label><br />
682
  <label class="supsystic-tooltip-left ppsPopupMainOptLbl" title="<?php _e('Hide active popups when displaying this popup.', PPS_LANG_CODE)?>" style="">
683
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[main][hide_other]', array(
684
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['main'], 'hide_other'))))?>
685
  <?php _e('Hide active popups when displaying this popup', PPS_LANG_CODE)?>
686
  </label><br />
687
  </section>
688
  <div id="ppsHideForIpWnd" style="display: none;" title="<?php _e('IPs List', PPS_LANG_CODE)?>">
689
  <label>
690
  <?php _e('Type here IPs that will not see PopUp, each IP - from new line', PPS_LANG_CODE)?>:<br />
691
+ <?php echo viewPps::ksesString(htmlPps::textarea('hide_for_ips', array(
692
  'attrs' => 'id="ppsHideForIpTxt" style="width: 100%; height: 300px;"'
693
+ )))?>
694
  </label>
695
  </div>
modules/popup/views/tpl/popupEditAdminSmOpts.php CHANGED
@@ -1,9 +1,9 @@
1
  <div class="ppsPopupOptRow">
2
  <label>
3
- <?php echo htmlPps::checkbox('params[tpl][enb_sm]', array(
4
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_sm'),
5
  'attrs' => 'data-switch-block="smShell"',
6
- ))?>
7
  <?php _e('Enable Social Buttons', PPS_LANG_CODE)?>
8
  </label>
9
  </div>
@@ -11,8 +11,8 @@
11
  <div class="ppsPopupOptRow">
12
  <?php foreach($this->smLinks as $smKey => $smData) { ?>
13
  <label>
14
- <?php echo htmlPps::checkbox('params[tpl][enb_sm_'. $smKey. ']', array('checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_sm_'. $smKey)));?>
15
- <?php echo $smData['label']?>
16
  </label>
17
  <?php }?>
18
  </div>
@@ -21,8 +21,8 @@
21
  <legend><?php _e('Social links design', PPS_LANG_CODE)?></legend>
22
  <?php foreach($this->smDesigns as $smKey => $smData) { ?>
23
  <label>
24
- <?php echo htmlPps::radiobutton('params[tpl][sm_design]', array('value' => $smKey, 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sm_design', $smKey)));?>
25
- <?php echo $smData['label']?>
26
  </label>
27
  <?php }?>
28
  </fieldset>
@@ -37,16 +37,16 @@
37
  <tr>
38
  <th scope="row"><?php _e('Select Social Button Project', PPS_LANG_CODE)?></th>
39
  <td>
40
- <?php echo htmlPps::selectbox('params[tpl][use_sss_prj_id]', array(
41
  'value' => (isset($this->popup['params']['tpl']['use_sss_prj_id']) ? $this->popup['params']['tpl']['use_sss_prj_id'] : ''),
42
  'options' => $this->sssProjectsForSelect,
43
- ));?>
44
  </td>
45
  </tr>
46
  <?php } elseif($this->sssPlugAvailable && (!isset($this->sssProjectsForSelect) || empty($this->sssProjectsForSelect))) { ?>
47
  <tr>
48
  <td style="padding-left: 0;" colspan="2">
49
- <p style="white-space: normal;"><?php echo (sprintf(__('You have no Social Sharing projects for now. <a href="%s" target="_blank" class="button button-primary">Create your first project</a> - then just reload page with your PopUp settings, and you will see list with available Social Projects for your PopUp.', PPS_LANG_CODE), $this->addProjectUrl))?></p>
50
  </td>
51
  </tr>
52
  <?php } else { ?>
@@ -56,7 +56,7 @@
56
  </td>
57
  </tr>
58
  <?php }?>
59
-
60
  </table>
61
  </div>
62
- </span>
1
  <div class="ppsPopupOptRow">
2
  <label>
3
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][enb_sm]', array(
4
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_sm'),
5
  'attrs' => 'data-switch-block="smShell"',
6
+ )))?>
7
  <?php _e('Enable Social Buttons', PPS_LANG_CODE)?>
8
  </label>
9
  </div>
11
  <div class="ppsPopupOptRow">
12
  <?php foreach($this->smLinks as $smKey => $smData) { ?>
13
  <label>
14
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][enb_sm_'. $smKey. ']', array('checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_sm_'. $smKey))));?>
15
+ <?php echo viewPps::ksesString($smData['label'])?>
16
  </label>
17
  <?php }?>
18
  </div>
21
  <legend><?php _e('Social links design', PPS_LANG_CODE)?></legend>
22
  <?php foreach($this->smDesigns as $smKey => $smData) { ?>
23
  <label>
24
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('params[tpl][sm_design]', array('value' => $smKey, 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sm_design', $smKey))));?>
25
+ <?php echo viewPps::ksesString($smData['label'])?>
26
  </label>
27
  <?php }?>
28
  </fieldset>
37
  <tr>
38
  <th scope="row"><?php _e('Select Social Button Project', PPS_LANG_CODE)?></th>
39
  <td>
40
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[tpl][use_sss_prj_id]', array(
41
  'value' => (isset($this->popup['params']['tpl']['use_sss_prj_id']) ? $this->popup['params']['tpl']['use_sss_prj_id'] : ''),
42
  'options' => $this->sssProjectsForSelect,
43
+ )));?>
44
  </td>
45
  </tr>
46
  <?php } elseif($this->sssPlugAvailable && (!isset($this->sssProjectsForSelect) || empty($this->sssProjectsForSelect))) { ?>
47
  <tr>
48
  <td style="padding-left: 0;" colspan="2">
49
+ <p style="white-space: normal;"><?php echo (sprintf(__('You have no Social Sharing projects for now. <a href="%s" target="_blank" class="button button-primary">Create your first project</a> - then just reload page with your PopUp settings, and you will see list with available Social Projects for your PopUp.', PPS_LANG_CODE), esc_html($this->addProjectUrl)))?></p>
50
  </td>
51
  </tr>
52
  <?php } else { ?>
56
  </td>
57
  </tr>
58
  <?php }?>
59
+
60
  </table>
61
  </div>
62
+ </span>
modules/popup/views/tpl/popupEditAdminSubOpts.php CHANGED
@@ -1,9 +1,9 @@
1
  <div class="ppsPopupOptRow">
2
  <label>
3
- <?php echo htmlPps::checkbox('params[tpl][enb_subscribe]', array(
4
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_subscribe'),
5
  'attrs' => 'data-switch-block="subShell"',
6
- ))?>
7
  <?php _e('Enable Subscription', PPS_LANG_CODE)?>
8
  </label>
9
  </div>
@@ -12,12 +12,12 @@
12
  <tr>
13
  <th scope="row">
14
  <?php _e('Subscribe to', PPS_LANG_CODE)?>
15
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Destination for your Subscribers.', PPS_LANG_CODE))?>"></i>
16
  </th>
17
  <td>
18
- <?php echo htmlPps::selectbox('params[tpl][sub_dest]', array(
19
  'options' => $this->subDestListForSelect,
20
- 'value' => (isset($this->popup['params']['tpl']['sub_dest']) ? $this->popup['params']['tpl']['sub_dest'] : '')))?>
21
  </td>
22
  </tr>
23
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_wordpress">
@@ -26,9 +26,9 @@
26
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Use this only if you really need it. Remember! After you change this option - your new subscriber will have more privileges than usual subscribers, so be careful with this option!', PPS_LANG_CODE)?>"></i>
27
  </th>
28
  <td>
29
- <?php echo htmlPps::selectbox('params[tpl][sub_wp_create_user_role]', array(
30
  'options' => $this->availableUserRoles,
31
- 'value' => (isset($this->popup['params']['tpl']['sub_wp_create_user_role']) ? $this->popup['params']['tpl']['sub_wp_create_user_role'] : 'subscriber')))?>
32
  </td>
33
  </tr>
34
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_wordpress">
@@ -37,8 +37,8 @@
37
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Usually, after user subscribes, we send an email with the confirmation link - to confirm the email address, and only after user clicks on the link from this email - we will create a new subscriber. This option allows you to create a subscriber - right after subscription, without the email confirmation process.', PPS_LANG_CODE)?>"></i>
38
  </th>
39
  <td>
40
- <?php echo htmlPps::checkbox('params[tpl][sub_ignore_confirm]', array(
41
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_ignore_confirm')))?>
42
  </td>
43
  </tr>
44
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_wordpress">
@@ -47,8 +47,8 @@
47
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Time that require to Confirm page to be realoaded and redirect user to your site, in seconds. Usually - 10 seconds.', PPS_LANG_CODE)?>"></i>
48
  </th>
49
  <td>
50
- <?php echo htmlPps::text('params[tpl][sub_confirm_reload_time]', array(
51
- 'value' => isset($this->popup['params']['tpl']['sub_confirm_reload_time']) ? $this->popup['params']['tpl']['sub_confirm_reload_time'] : 10))?>(sec)
52
  </td>
53
  </tr>
54
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_wordpress">
@@ -57,7 +57,7 @@
57
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Export all subscribers, who subscribed using WordPress "Subscribe to" method, as CSV file.', PPS_LANG_CODE)?>"></i>
58
  </th>
59
  <td>
60
- <a href="<?php echo $this->wpCsvExportUrl;?>" class="button"><?php _e('Get CSV List', PPS_LANG_CODE)?></a>
61
  </td>
62
  </tr>
63
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_aweber">
@@ -65,12 +65,12 @@
65
  <?php _e('Aweber Unique List ID', PPS_LANG_CODE)?>
66
  <i class="fa fa-question supsystic-tooltip" data-tooltip-content="#tooltip_01"></i>
67
  <span class="tooltipContent" id="tooltip_01">
68
- <?php echo esc_html(sprintf(__('Check <a href="%s" target="_blank">this page</a> for more details', PPS_LANG_CODE), 'https://help.aweber.com/hc/en-us/articles/204028426-What-Is-The-Unique-List-ID-'))?>
69
  </span>
70
  </th>
71
  <td>
72
- <?php echo htmlPps::text('params[tpl][sub_aweber_listname]', array(
73
- 'value' => (isset($this->popup['params']['tpl']['sub_aweber_listname']) ? $this->popup['params']['tpl']['sub_aweber_listname'] : '')))?>
74
  </td>
75
  </tr>
76
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_aweber">
@@ -78,12 +78,12 @@
78
  <?php _e('Aweber AD Tracking', PPS_LANG_CODE)?>
79
  <i class="fa fa-question supsystic-tooltip" data-tooltip-content="#tooltip_02"></i>
80
  <span class="tooltipContent" id="tooltip_02">
81
- <?php echo esc_html(sprintf(__('You can easy track your subscribers from PopUp using this feature. For more info - check <a href="%s" target="_blank">this page</a>.', PPS_LANG_CODE), 'https://help.aweber.com/hc/en-us/articles/204028856-Where-Can-I-See-My-Subscribers-Ad-Tracking-Categories-'))?>
82
  </span>
83
  </th>
84
  <td>
85
- <?php echo htmlPps::text('params[tpl][sub_aweber_adtracking]', array(
86
- 'value' => (isset($this->popup['params']['tpl']['sub_aweber_adtracking']) ? $this->popup['params']['tpl']['sub_aweber_adtracking'] : '')))?>
87
  </td>
88
  </tr>
89
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_mailchimp">
@@ -91,13 +91,13 @@
91
  <?php _e('MailChimp API key', PPS_LANG_CODE)?>
92
  <i class="fa fa-question supsystic-tooltip" data-tooltip-content="#tooltip_03"></i>
93
  <span class="tooltipContent" id="tooltip_03">
94
- <?php echo esc_html(sprintf(__('To find your MailChimp API Key login to your mailchimp account at <a href="%s" target="_blank">%s</a> then from the left main menu, click on your Username, then select "Account" in the flyout menu. From the account page select "Extras", "API Keys". Your API Key will be listed in the table labeled "Your API Keys". Copy / Paste your API key into "MailChimp API key" field here. For more detailed instruction - check article <a href="%s" target="_blank">here</a>.', PPS_LANG_CODE), 'http://mailchimp.com', 'http://mailchimp.com', 'https://supsystic.com/mailchimp-integration/'))?>
95
  </span>
96
  </th>
97
  <td>
98
- <?php echo htmlPps::text('params[tpl][sub_mailchimp_api_key]', array(
99
  'value' => (isset($this->popup['params']['tpl']['sub_mailchimp_api_key']) ? $this->popup['params']['tpl']['sub_mailchimp_api_key'] : ''),
100
- 'attrs' => 'style="min-width: 300px;"'))?>
101
  </td>
102
  </tr>
103
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_mailchimp">
@@ -107,10 +107,10 @@
107
  </th>
108
  <td>
109
  <div id="ppsMailchimpListsShell" style="display: none;">
110
- <?php echo htmlPps::selectlist('params[tpl][sub_mailchimp_lists]', array(
111
  'value' => (isset($this->popup['params']['tpl']['sub_mailchimp_lists']) ? $this->popup['params']['tpl']['sub_mailchimp_lists'] : ''),
112
  'attrs' => 'id="ppsMailchimpLists" class="chosen" data-placeholder="'. __('Choose Lists', PPS_LANG_CODE). '"',
113
- ))?>
114
  </div>
115
  <span id="ppsMailchimpNoApiKey"><?php _e('Enter API key - and your list will appear here', PPS_LANG_CODE)?></span>
116
  <span id="ppsMailchimpMsg"></span>
@@ -119,17 +119,17 @@
119
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_mailchimp">
120
  <th scope="row">
121
  <?php _e('Disable double opt-in', PPS_LANG_CODE)?>
122
- <i class="fa fa-question supsystic-tooltip" title="<?php echo _e('Disable double opt-in confirmation message sending - will create subscriber directly after he will sign-up to your form.', PPS_LANG_CODE)?>"></i>
123
  </th>
124
  <td>
125
- <?php echo htmlPps::checkbox('params[tpl][sub_dsbl_dbl_opt_id]', array(
126
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_dsbl_dbl_opt_id')))?><br />
127
 
128
  <label id="ppsSubMcSendWelcome">
129
- <?php echo htmlPps::checkbox('params[tpl][sub_mc_enb_welcome]', array(
130
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_mc_enb_welcome')))?>
131
  <?php _e('Send MailChimp Welcome Email', PPS_LANG_CODE)?>&nbsp;
132
- <i style="float: none;" class="fa fa-question supsystic-tooltip" title="<?php echo _e('If double opt-in is disable - there will be no Welcome email from MailChimp by default. But if you still need it - just enable this opton, and Welcome email from MailChimp will be sent to your user even in this case.', PPS_LANG_CODE)?>"></i>
133
  </label>
134
  </td>
135
  </tr>
@@ -140,16 +140,16 @@
140
  </th>
141
  <td>
142
  <div id="ppsMailchimpGroupsShell" style="display: none;">
143
- <?php echo htmlPps::selectlist('params[tpl][sub_mailchimp_groups]', array(
144
  'value' => (isset($this->popup['params']['tpl']['sub_mailchimp_groups']) ? $this->popup['params']['tpl']['sub_mailchimp_groups'] : ''),
145
  'attrs' => 'id="ppsMailchimpGroups" class="chosen" data-placeholder="'. __('Choose Groups', PPS_LANG_CODE). '"',
146
- ))?>
147
  </div>
148
  <span id="ppsMailchimpGroupsNoApiKey"><?php _e('Enter API key, select List - and your groups will appear here', PPS_LANG_CODE)?></span>
149
  <span id="ppsMailchimpGroupsMsg"></span>
150
- <?php echo htmlPps::hidden('params[tpl][sub_mailchimp_groups_full]', array(
151
  'value' => (isset($this->popup['params']['tpl']['sub_mailchimp_groups_full']) ? $this->popup['params']['tpl']['sub_mailchimp_groups_full'] : ''),
152
- ))?>
153
  </td>
154
  </tr>
155
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_mailpoet">
@@ -159,10 +159,10 @@
159
  </th>
160
  <td>
161
  <?php if(!empty($this->mailPoetListsSelect)) { ?>
162
- <?php echo htmlPps::selectbox('params[tpl][sub_mailpoet_list]', array(
163
  'value' => (isset($this->popup['params']['tpl']['sub_mailpoet_list']) ? $this->popup['params']['tpl']['sub_mailpoet_list'] : ''),
164
  'options' => $this->mailPoetListsSelect,
165
- /*'attrs' => 'style="min-width: 300px;"'*/))?>
166
  <?php } else { ?>
167
  <div class="description"><?php printf(__('You have no subscribe lists, <a target="_blank" href="%s">create lists</a> at first, then - select them here.', PPS_LANG_CODE), admin_url('admin.php?page=wysija_subscribers&action=addlist'))?></div>
168
  <?php }?>
@@ -180,9 +180,9 @@
180
  </th>
181
  <td>
182
  <?php if(!empty($this->supNewsletterListsSelect)) { ?>
183
- <?php echo htmlPps::selectbox('params[tpl][sub_supsystic_list]', array(
184
  'value' => (isset($this->popup['params']['tpl']['sub_supsystic_list']) ? $this->popup['params']['tpl']['sub_supsystic_list'] : ''),
185
- 'options' => $this->supNewsletterListsSelect))?>
186
  <?php } else { ?>
187
  <div class="description"><?php printf(__('You have no subscribe lists, <a target="_blank" href="%s">create lists</a> at first, then - select them here.', PPS_LANG_CODE), frameNbs::_()->getModule('options')->getTabUrl('subscribers_lists', 'nbsAddSubList'))?></div>
188
  <?php }?>
@@ -199,8 +199,8 @@
199
  <?php _e('Create subscriber Disabled', PPS_LANG_CODE)?>
200
  </th>
201
  <td>
202
- <?php echo htmlPps::checkbox('params[tpl][sub_sup_dsbl]', array(
203
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_sup_dsbl')))?>
204
  </td>
205
  <?php }?>
206
  </tr>
@@ -210,8 +210,8 @@
210
  <?php _e('Send Confirm email', PPS_LANG_CODE)?>
211
  </th>
212
  <td>
213
- <?php echo htmlPps::checkbox('params[tpl][sub_sup_send_confirm]', array(
214
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_sup_send_confirm')))?>
215
  </td>
216
  <?php }?>
217
  </tr>
@@ -222,7 +222,7 @@
222
  </th>
223
  <td>
224
  <?php if(!empty($this->newsletterListsSelect)) { ?>
225
- <?php echo htmlPps::selectbox('params[tpl][sub_newsletter_list]', array(
226
  'value' => (isset($this->popup['params']['tpl']['sub_newsletter_list']) ? $this->popup['params']['tpl']['sub_newsletter_list'] : ''),
227
  'options' => $this->newsletterListsSelect))?>
228
  <?php } else { ?>
@@ -275,26 +275,26 @@
275
  ?>
276
  <?php foreach($proSubModules as $proSubMod => $proSubModData) { ?>
277
  <?php if($this->isPro && framePps::_()->getModule( $proSubMod )) {?>
278
- <?php echo framePps::_()->getModule( $proSubMod )->getView()->generateAdminFields( $this->popup )?>
279
  <?php } elseif(($this->isPro && !framePps::_()->getModule( $proSubMod )) || (!$this->isPro && framePps::_()->getModule('license'))) {?>
280
- <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_<?php echo $proSubMod?>">
281
  <th scope="row">
282
  <?php _e('Activate License or update PRO version plugin', PPS_LANG_CODE)?>
283
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Apparently - you have installed PRO version, but did not activate it license - then please activate it. Or you have old version of plugin - then you need go to Plugins page and Update PRO version plugin, after this go to License tab and re-activate license (just click one more time on "Activate" button).', PPS_LANG_CODE))?>"></i>
284
  </th>
285
  <td>
286
- <a href="<?php echo framePps::_()->getModule('options')->getTabUrl('license');?>" class="button"><?php _e('Activate License', PPS_LANG_CODE)?></a>
287
  </td>
288
  </tr>
289
  <?php } else {?>
290
- <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_<?php echo $proSubMod?>">
291
  <th scope="row">
292
  <?php printf(__('Enable %s with PRO', PPS_LANG_CODE), $proSubModData['label'])?>
293
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('This is PRO feature, and it will be available once you will install <a href="%s" target="_blank">PRO version</a> of our plugin', PPS_LANG_CODE), framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium='. $proSubMod. '&utm_campaign=popup')))?>"></i>
294
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium='. $proSubMod. '&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
295
  </th>
296
  <td>
297
- <a href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium='. $proSubMod. '&utm_campaign=popup');?>" target="_blank" class="button"><?php _e('Get PRO', PPS_LANG_CODE)?></a>
298
  </td>
299
  </tr>
300
  <?php }?>
@@ -304,34 +304,34 @@
304
  <?php _e('Subscribe with Facebook', PPS_LANG_CODE)?>
305
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Add button to your PopUp with possibility to subscribe just in one click - without filling fields in your subscribe form.', PPS_LANG_CODE)?>"></i>
306
  <?php if(!$this->isPro) {?>
307
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=fb_subscribe&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
308
  <?php }?>
309
  </th>
310
  <td>
311
- <?php echo htmlPps::checkbox('params[tpl][sub_enb_fb_subscribe]', array(
312
  'attrs' => 'class="ppsProOpt"',
313
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_enb_fb_subscribe')))?>
314
  </td>
315
  </tr>
316
  <tr class="ppsPopupSubCreateWpUser">
317
  <th scope="row">
318
  <?php _e('Create WP user', PPS_LANG_CODE)?>
319
- <i class="fa fa-question supsystic-tooltip" title="<?php echo _e('Once user will subscribe to selected Subscription service - it will create WordPress Subscriber too. PLease be carefull using this option: WordPressusers will be created right after you submit your Subscribe form without confirmation.', PPS_LANG_CODE)?>"></i>
320
  </th>
321
  <td>
322
- <?php echo htmlPps::checkbox('params[tpl][sub_create_wp_user]', array(
323
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_create_wp_user')))?>
324
  </td>
325
  </tr>
326
  <tr>
327
  <th scope="row">
328
  <?php _e('Test Email Function', PPS_LANG_CODE)?>
329
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Email delivery depends from your server configuration. For some cases - you and your subscribers can not receive emails just because email on your server is not working correctly. You can easy test it here - by sending test email. If you receive it - then it means that email functionality on your server works well. If not - this means that it is not working correctly and you should contact your hosting provider with this issue and ask them to setup email functionality for you on your server.', PPS_LANG_CODE))?>"></i>
330
  </th>
331
  <td>
332
- <?php echo htmlPps::text('test_email', array(
333
  'value' => get_bloginfo('admin_email'),
334
- ))?>
335
  <a href="#" class="ppsTestEmailFuncBtn button">
336
  <i class="fa fa-paper-plane"></i>
337
  <?php _e('Send Test Email', PPS_LANG_CODE)?>
@@ -346,7 +346,7 @@
346
  <fieldset id="ppoPopupSubFields" class="ppoPopupSubFields" style="padding: 10px;">
347
  <legend>
348
  <?php _e('Subscription fields', PPS_LANG_CODE)?>
349
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('To change field position - just drag-&-drop it to required place between other fields. To add new field to Subscribe form - click on "+ Add" button.', PPS_LANG_CODE))?>"></i>
350
  </legend>
351
  <?php foreach($this->popup['params']['tpl']['sub_fields'] as $k => $f) { ?>
352
  <?php
@@ -355,8 +355,8 @@
355
  $labelClass .= ' supsystic-tooltip-bottom ppsSubFieldEmailShell';
356
  ?>
357
  <div
358
- class="<?php echo $labelClass?>"
359
- data-name="<?php echo $k?>"
360
  <?php if($k == 'email') { ?>
361
  title="Email field is mandatory for most of subscribe engines - so it should be always enabled"
362
  <?php }?>
@@ -369,26 +369,26 @@
369
  $checkParams = array('checked' => htmlPps::checkedOpt($f, 'enb'));
370
  }
371
  ?>
372
- <?php echo htmlPps::checkbox('params[tpl][sub_fields]['. $k. '][enb]', $checkParams)?>
373
 
374
- <span class="ppsSubFieldLabel"><?php echo $f['label']?></span>
375
 
376
- <?php echo htmlPps::hidden('params[tpl][sub_fields]['. $k. '][name]', array('value' => esc_html(isset($f['name']) ? $f['name'] : $k)))?>
377
- <?php echo htmlPps::hidden('params[tpl][sub_fields]['. $k. '][html]', array('value' => esc_html($f['html'])))?>
378
- <?php echo htmlPps::hidden('params[tpl][sub_fields]['. $k. '][label]', array('value' => esc_html($f['label'])))?>
379
- <?php echo htmlPps::hidden('params[tpl][sub_fields]['. $k. '][value]', array('value' => esc_html(isset($f['value']) ? $f['value'] : '')))?>
380
- <?php echo htmlPps::hidden('params[tpl][sub_fields]['. $k. '][custom]', array('value' => esc_html(isset($f['custom']) ? $f['custom'] : 0)))?>
381
- <?php echo htmlPps::hidden('params[tpl][sub_fields]['. $k. '][mandatory]', array('value' => isset($f['mandatory']) ? $f['mandatory'] : 0))?>
382
- <?php echo htmlPps::hidden('params[tpl][sub_fields]['. $k. '][set_preset]', array('value' => isset($f['set_preset']) ? $f['set_preset'] : ''))?>
383
  <?php if(isset($f['options']) && !empty($f['options'])) {
384
  foreach($f['options'] as $i => $opt) {
385
- echo htmlPps::hidden('params[tpl][sub_fields]['. $k. '][options]['. $i. '][name]', array('value' => esc_html($opt['name'])));
386
- echo htmlPps::hidden('params[tpl][sub_fields]['. $k. '][options]['. $i. '][label]', array('value' => esc_html($opt['label'])));
387
  }
388
  }?>
389
  <?php
390
  if($k == 'email') { // Email is always checked
391
- echo htmlPps::hidden('params[tpl][sub_fields]['. $k. '][enb]', array('value' => 1));
392
  }
393
  ?>
394
  </div>
@@ -400,22 +400,22 @@
400
  </a>
401
  <?php if(!$this->isPro) {?>
402
  <span class="ppsProOptMiniLabel" style="margin-bottom: 0; margin-top: -5px;">
403
- <a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=sub_fields&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a>
404
  </span>
405
  <?php }?>
406
  </label>
407
  <div style="clear: both;"></div>
408
  <div class="ppsReCaptchaShell">
409
  <label>
410
- <?php echo htmlPps::checkbox('params[tpl][enb_captcha]', array(
411
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_captcha'),
412
  'attrs' => 'class="ppsProOpt"',
413
- ))?>
414
  <?php _e('Re-Captcha', PPS_LANG_CODE)?>
415
  </label>
416
  <?php if(!$this->isPro) {?>
417
  <span class="ppsProOptMiniLabel" style="margin-bottom: 0; margin-top: -5px;">
418
- <a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=re_captcha&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a>
419
  </span>
420
  <?php } else { ?>
421
  <div class="ppsReCaptchaOptsShell">
@@ -423,23 +423,23 @@
423
  <tr>
424
  <th scope="row">
425
  <?php _e('ReCaptcha Site Key', PPS_LANG_CODE)?>
426
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('Your site key, generated on <a href="%s" target="_blank">%s</a>.', PPS_LANG_CODE), 'https://www.google.com/recaptcha/admin#list', 'https://www.google.com/recaptcha/admin#list'))?>"></i>
427
  </th>
428
  <td>
429
- <?php echo htmlPps::text('params[tpl][capt_site_key]', array(
430
  'value' => (isset($this->popup['params']['tpl']['capt_site_key']) ? $this->popup['params']['tpl']['capt_site_key'] : ''),
431
- ))?>
432
  </td>
433
  </tr>
434
  <tr>
435
  <th scope="row">
436
  <?php _e('ReCaptcha Secret Key', PPS_LANG_CODE)?>
437
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(sprintf(__('Your secret key, generated on <a href="%s" target="_blank">%s</a>.', PPS_LANG_CODE), 'https://www.google.com/recaptcha/admin#list', 'https://www.google.com/recaptcha/admin#list'))?>"></i>
438
  </th>
439
  <td>
440
- <?php echo htmlPps::text('params[tpl][capt_secret_key]', array(
441
  'value' => (isset($this->popup['params']['tpl']['capt_secret_key']) ? $this->popup['params']['tpl']['capt_secret_key'] : ''),
442
- ))?>
443
  </td>
444
  </tr>
445
  </table>
@@ -452,31 +452,31 @@
452
  <tr>
453
  <th scope="row">
454
  <?php _e('Blacklist', PPS_LANG_CODE)?>
455
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Here you can add emails, or email doamains, into blacklist - and they will not be able to subscribe. To add several emails (rules) - use "," symbol (coma) as separator. To add email domain - for examle @email.com - use "*@email.com" rule.', PPS_LANG_CODE))?>"></i>
456
  <?php if(!$this->isPro) {?>
457
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=blacklist&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
458
  <?php }?>
459
  </th>
460
  <td>
461
- <?php echo htmlPps::textarea('params[tpl][blacklist]', array(
462
  'value' => (isset($this->popup['params']['tpl']['blacklist']) ? $this->popup['params']['tpl']['blacklist'] : ''),
463
  'attrs' => 'class="ppsProOpt"',
464
- ))?>
465
  </td>
466
  </tr>
467
  <tr>
468
  <th scope="row">
469
  <?php _e('Blacklist error message', PPS_LANG_CODE)?>
470
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Error message, that user will see if he / she email is in Blacklist', PPS_LANG_CODE))?>"></i>
471
  <?php if(!$this->isPro) {?>
472
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=blacklist&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
473
  <?php }?>
474
  </th>
475
  <td>
476
- <?php echo htmlPps::text('params[tpl][blacklist_error]', array(
477
  'value' => (isset($this->popup['params']['tpl']['blacklist_error']) ? $this->popup['params']['tpl']['blacklist_error'] : __('Your email is in blacklist', PPS_LANG_CODE)),
478
  'attrs' => 'class="ppsProOpt"',
479
- ))?>
480
  </td>
481
  </tr>
482
  <tr class="ppsPopupSubTxtsAndRedirect" style="display: none;">
@@ -485,9 +485,9 @@
485
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('This is the message that the user will see after subscription, when letter with confirmation link was sent.', PPS_LANG_CODE)?>"></i>
486
  </th>
487
  <td>
488
- <?php echo htmlPps::text('params[tpl][sub_txt_confirm_sent]', array(
489
  'value' => (isset($this->popup['params']['tpl']['sub_txt_confirm_sent']) ? esc_html( $this->popup['params']['tpl']['sub_txt_confirm_sent'] ) : __('Confirmation link was sent to your email address. Check your email!', PPS_LANG_CODE)),
490
- ))?>
491
  </td>
492
  </tr>
493
  <tr class="ppsPopupSubTxtsAndRedirect" style="display: none;">
@@ -496,9 +496,9 @@
496
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Right after subscriber will be created and confirmed - this message will be shown.', PPS_LANG_CODE)?>"></i>
497
  </th>
498
  <td>
499
- <?php echo htmlPps::text('params[tpl][sub_txt_success]', array(
500
  'value' => (isset($this->popup['params']['tpl']['sub_txt_success']) ? esc_html( $this->popup['params']['tpl']['sub_txt_success'] ) : __('Thank you for subscribing!', PPS_LANG_CODE)),
501
- ))?>
502
  </td>
503
  </tr>
504
  <tr class="ppsPopupSubTxtsAndRedirect" style="display: none;">
@@ -507,9 +507,9 @@
507
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('If email that was entered by user is invalid, user will see this message', PPS_LANG_CODE)?>"></i>
508
  </th>
509
  <td>
510
- <?php echo htmlPps::text('params[tpl][sub_txt_invalid_email]', array(
511
  'value' => (isset($this->popup['params']['tpl']['sub_txt_invalid_email']) ? esc_html( $this->popup['params']['tpl']['sub_txt_invalid_email'] ) : __('Empty or invalid email', PPS_LANG_CODE)),
512
- ))?>
513
  </td>
514
  </tr>
515
  <tr class="ppsPopupSubTxtsAndRedirect" style="display: none;">
@@ -518,9 +518,9 @@
518
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('If email that was entered by user already exists - user will see this message. But be careful: this can be used by hackers - to detect existing email in your database, so it\'s better for you to leave this message same as error message about invalid email above.', PPS_LANG_CODE)?>"></i>
519
  </th>
520
  <td>
521
- <?php echo htmlPps::text('params[tpl][sub_txt_exists_email]', array(
522
  'value' => (isset($this->popup['params']['tpl']['sub_txt_exists_email']) ? esc_html( $this->popup['params']['tpl']['sub_txt_exists_email'] ) : __('Empty or invalid email', PPS_LANG_CODE)),
523
- ))?>
524
  </td>
525
  </tr>
526
  <tr class="ppsPopupSubRedirect">
@@ -529,18 +529,18 @@
529
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('You can enable redirection after subscription, just enter here URL that you want to redirect to after subscribe - and user will be redirected there. If you don\'t need this feature - just leave this field empty.', PPS_LANG_CODE)?>"></i>
530
  </th>
531
  <td>
532
- <?php echo htmlPps::text('params[tpl][sub_redirect_url]', array(
533
  'value' => (isset($this->popup['params']['tpl']['sub_redirect_url']) ? esc_url( $this->popup['params']['tpl']['sub_redirect_url'] ) : ''),
534
  'attrs' => 'placeholder="http://example.com"',
535
- ))?>
536
  <label>
537
- <?php echo htmlPps::checkbox('params[tpl][sub_redirect_new_wnd]', array(
538
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_redirect_new_wnd')))?>
539
  <?php _e('Open in a new window (tab)', PPS_LANG_CODE)?>
540
  </label>
541
  <label class="supsystic-tooltip" title="<?php _e('If you set PopUp to Show On -> Click on certain link, and this link have href parameter - you can redirect your users there after successful subscribe.', PPS_LANG_CODE)?>">
542
- <?php echo htmlPps::checkbox('params[tpl][sub_redirect_to_btn_url]', array(
543
- 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_redirect_to_btn_url')))?>
544
  <?php _e('Redirect to button URL', PPS_LANG_CODE)?>
545
  </label>
546
  </td>
@@ -551,11 +551,11 @@
551
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Email with confirmation link subject', PPS_LANG_CODE)?>"></i>
552
  </th>
553
  <td>
554
- <?php echo htmlPps::text('params[tpl][sub_txt_confirm_mail_subject]', array(
555
  'value' => esc_html ( isset($this->popup['params']['tpl']['sub_txt_confirm_mail_subject'])
556
  ? $this->popup['params']['tpl']['sub_txt_confirm_mail_subject']
557
  : __('Confirm subscription on [sitename]', PPS_LANG_CODE)),
558
- ))?>
559
  </td>
560
  </tr>
561
  <tr class="ppsPopupSubEmailTxt" style="display: none;">
@@ -564,11 +564,11 @@
564
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Email with confirmation link From field', PPS_LANG_CODE)?>"></i>
565
  </th>
566
  <td>
567
- <?php echo htmlPps::text('params[tpl][sub_txt_confirm_mail_from]', array(
568
  'value' => esc_html ( isset($this->popup['params']['tpl']['sub_txt_confirm_mail_from'])
569
  ? $this->popup['params']['tpl']['sub_txt_confirm_mail_from']
570
  : $this->adminEmail),
571
- ))?>
572
  </td>
573
  </tr>
574
  <tr class="ppsPopupSubEmailTxt" style="display: none;">
@@ -584,11 +584,11 @@
584
  <div class="description"><?php printf(__('You can use next variables here: %s, and any other subscribe field value - just place here [user_FIELD_NAME], where FIELD_NAME - is name attribute of required field.', PPS_LANG_CODE), '['. implode('], [', $allowVarsInMail).']')?></div>
585
  </th>
586
  <td>
587
- <?php echo htmlPps::textarea('params[tpl][sub_txt_confirm_mail_message]', array(
588
  'value' => esc_html( isset($this->popup['params']['tpl']['sub_txt_confirm_mail_message'])
589
  ? $this->popup['params']['tpl']['sub_txt_confirm_mail_message']
590
  : __('You subscribed on site <a href="[siteurl]">[sitename]</a>. Follow <a href="[confirm_link]">this link</a> to complete your subscription. If you did not subscribe here - just ignore this message.', PPS_LANG_CODE)),
591
- ))?><br />
592
  <div class="ppsPopupAttachFilesShell" data-key="confirm">
593
  <a href="#" class="button ppsPopupAddEmailAttachBtn"><i class="fa fa-plus"></i><?php _e('Add Attach', PPS_LANG_CODE)?></a>
594
  </div>
@@ -600,11 +600,11 @@
600
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Email to New Subscriber subject', PPS_LANG_CODE)?>"></i>
601
  </th>
602
  <td>
603
- <?php echo htmlPps::text('params[tpl][sub_txt_subscriber_mail_subject]', array(
604
  'value' => esc_html ( isset($this->popup['params']['tpl']['sub_txt_subscriber_mail_subject'])
605
  ? $this->popup['params']['tpl']['sub_txt_subscriber_mail_subject']
606
  : __('[sitename] Your username and password', PPS_LANG_CODE)),
607
- ))?>
608
  </td>
609
  </tr>
610
  <tr class="ppsPopupSubEmailTxt" style="display: none;">
@@ -613,11 +613,11 @@
613
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('New Subscriber email From field', PPS_LANG_CODE)?>"></i>
614
  </th>
615
  <td>
616
- <?php echo htmlPps::text('params[tpl][sub_txt_subscriber_mail_from]', array(
617
  'value' => esc_html ( isset($this->popup['params']['tpl']['sub_txt_subscriber_mail_from'])
618
  ? $this->popup['params']['tpl']['sub_txt_subscriber_mail_from']
619
  : $this->adminEmail),
620
- ))?>
621
  </td>
622
  </tr>
623
  <tr class="ppsPopupSubEmailTxt" style="display: none;">
@@ -633,11 +633,11 @@
633
  <div class="description" style=""><?php printf(__('You can use next variables here: %s, and any other subscribe field value - just place here [user_FIELD_NAME], where FIELD_NAME - is name attribute of required field.', PPS_LANG_CODE), '['. implode('], [', $allowVarsInMail).']')?></div>
634
  </th>
635
  <td>
636
- <?php echo htmlPps::textarea('params[tpl][sub_txt_subscriber_mail_message]', array(
637
  'value' => esc_html( isset($this->popup['params']['tpl']['sub_txt_subscriber_mail_message'])
638
  ? $this->popup['params']['tpl']['sub_txt_subscriber_mail_message']
639
  : __('Username: [user_login]<br />Password: [password]<br />[login_url]', PPS_LANG_CODE)),
640
- ))?><br />
641
  <div class="ppsPopupAttachFilesShell" data-key="subscriber">
642
  <a href="#" class="button ppsPopupAddEmailAttachBtn"><i class="fa fa-plus"></i><?php _e('Add Attach', PPS_LANG_CODE)?></a>
643
  </div>
@@ -649,12 +649,12 @@
649
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Link to redirect to if user subscribes - but this email already exists', PPS_LANG_CODE)?>"></i>
650
  </th>
651
  <td>
652
- <?php echo htmlPps::text('params[tpl][sub_redirect_email_exists]', array(
653
  'value' => esc_html ( isset($this->popup['params']['tpl']['sub_redirect_email_exists'])
654
  ? $this->popup['params']['tpl']['sub_redirect_email_exists']
655
  : ''),
656
  'attrs' => 'placeholder="http://example.com"'
657
- ))?>
658
  </td>
659
  </tr>
660
  <tr>
@@ -662,7 +662,7 @@
662
  <?php _e('Submit button name', PPS_LANG_CODE)?>
663
  </th>
664
  <td>
665
- <?php echo htmlPps::text('params[tpl][sub_btn_label]', array('value' => $this->popup['params']['tpl']['sub_btn_label']))?>
666
  </td>
667
  </tr>
668
  <tr>
@@ -671,11 +671,11 @@
671
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Enter the email addresses that should receive notifications (separate by comma). Leave it blank - and you will not get any notifications.', PPS_LANG_CODE)?>"></i>
672
  </th>
673
  <td>
674
- <?php echo htmlPps::text('params[tpl][sub_new_email]', array(
675
  'value' => isset($this->popup['params']['tpl']['sub_new_email'])
676
  ? $this->popup['params']['tpl']['sub_new_email']
677
  : $this->adminEmail,
678
- ))?>
679
  </td>
680
  </tr>
681
  <tr>
@@ -684,11 +684,11 @@
684
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Email about new subscriber Subject', PPS_LANG_CODE)?>"></i>
685
  </th>
686
  <td>
687
- <?php echo htmlPps::text('params[tpl][sub_new_subject]', array(
688
  'value' => isset($this->popup['params']['tpl']['sub_new_subject'])
689
  ? $this->popup['params']['tpl']['sub_new_subject']
690
  : sprintf(__('New Subscriber on %s', PPS_LANG_CODE), wp_specialchars_decode(get_bloginfo('name'))),
691
- ))?>
692
  </td>
693
  </tr>
694
  <tr>
@@ -699,11 +699,11 @@
699
  <div class="description" style=""><?php printf(__('You can use next variables here: %s', PPS_LANG_CODE), '['. implode('], [', $allowVarsInMail).']')?></div>
700
  </th>
701
  <td>
702
- <?php echo htmlPps::textarea('params[tpl][sub_new_message]', array(
703
  'value' => isset($this->popup['params']['tpl']['sub_new_message'])
704
  ? $this->popup['params']['tpl']['sub_new_message']
705
  : __('You have new subscriber on your site <a href="[siteurl]">[sitename]</a>, here is subscriber information:<br />[subscriber_data]', PPS_LANG_CODE),
706
- ))?><br />
707
  <div class="ppsPopupAttachFilesShell" data-key="new_message">
708
  <a href="#" class="button ppsPopupAddEmailAttachBtn"><i class="fa fa-plus"></i><?php _e('Add Attach', PPS_LANG_CODE)?></a>
709
  </div>
@@ -713,8 +713,8 @@
713
  </span>
714
  <!--Add Field promo Wnd-->
715
  <div id="ppsSubAddFieldWnd" title="<?php _e('Subscribe Field Settings', PPS_LANG_CODE)?>" style="display: none;">
716
- <a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=sub_fields&utm_campaign=popup');?>" class="ppsPromoImgUrl">
717
- <img src="<?php echo $this->promoModPath?>img/sub-fields-edit.jpg" />
718
  </a>
719
  </div>
720
  <!--Standard fields toolbar-->
@@ -729,31 +729,31 @@
729
  <tr class="ppsSfLabelShell">
730
  <th scope="row">
731
  <?php _e('Label', PPS_LANG_CODE)?>
732
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Label that will be visible for your subscribers.', PPS_LANG_CODE))?>"></i>
733
  </th>
734
  <td>
735
- <?php echo htmlPps::text('label')?>
736
  </td>
737
  </tr>
738
  <tr class="ppsSfMandatoryStandardRow">
739
  <th scope="row">
740
  <?php _e('Mandatory', PPS_LANG_CODE)?>
741
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Is this field mandatory to fill-in. If yes - then users will not be able to continue without filling-in this field.', PPS_LANG_CODE))?>"></i>
742
  </th>
743
  <td>
744
- <?php echo htmlPps::checkbox('mandatory', array(
745
  'value' => 1,
746
- ))?>
747
  </td>
748
  </tr>
749
  </table>
750
- <?php echo htmlPps::hidden('name')?>
751
  </div>
752
  <div id="ppsPopupAttachShell" class="ppsPopupAttachShell">
753
  <a href="#" class="button ppsPopupAttachBtn"><?php _e('Select File', PPS_LANG_CODE)?></a>
754
- <?php echo htmlPps::hidden('params[tpl][sub_attach][]', array(
755
  'disabled' => true,
756
- ))?>
757
  <span class="ppsPopupAttachFile"></span>
758
  <a href="#" class="button ppsPopupAttachRemoveBtn" title="<?php _e('Remove', PPS_LANG_CODE)?>"><i class="fa fa-trash"></i></a>
759
  </div>
1
  <div class="ppsPopupOptRow">
2
  <label>
3
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][enb_subscribe]', array(
4
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_subscribe'),
5
  'attrs' => 'data-switch-block="subShell"',
6
+ )))?>
7
  <?php _e('Enable Subscription', PPS_LANG_CODE)?>
8
  </label>
9
  </div>
12
  <tr>
13
  <th scope="row">
14
  <?php _e('Subscribe to', PPS_LANG_CODE)?>
15
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('Destination for your Subscribers.', PPS_LANG_CODE)))?>"></i>
16
  </th>
17
  <td>
18
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[tpl][sub_dest]', array(
19
  'options' => $this->subDestListForSelect,
20
+ 'value' => (isset($this->popup['params']['tpl']['sub_dest']) ? $this->popup['params']['tpl']['sub_dest'] : ''))))?>
21
  </td>
22
  </tr>
23
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_wordpress">
26
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Use this only if you really need it. Remember! After you change this option - your new subscriber will have more privileges than usual subscribers, so be careful with this option!', PPS_LANG_CODE)?>"></i>
27
  </th>
28
  <td>
29
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[tpl][sub_wp_create_user_role]', array(
30
  'options' => $this->availableUserRoles,
31
+ 'value' => (isset($this->popup['params']['tpl']['sub_wp_create_user_role']) ? $this->popup['params']['tpl']['sub_wp_create_user_role'] : 'subscriber'))))?>
32
  </td>
33
  </tr>
34
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_wordpress">
37
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Usually, after user subscribes, we send an email with the confirmation link - to confirm the email address, and only after user clicks on the link from this email - we will create a new subscriber. This option allows you to create a subscriber - right after subscription, without the email confirmation process.', PPS_LANG_CODE)?>"></i>
38
  </th>
39
  <td>
40
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][sub_ignore_confirm]', array(
41
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_ignore_confirm'))))?>
42
  </td>
43
  </tr>
44
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_wordpress">
47
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Time that require to Confirm page to be realoaded and redirect user to your site, in seconds. Usually - 10 seconds.', PPS_LANG_CODE)?>"></i>
48
  </th>
49
  <td>
50
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_confirm_reload_time]', array(
51
+ 'value' => isset($this->popup['params']['tpl']['sub_confirm_reload_time']) ? $this->popup['params']['tpl']['sub_confirm_reload_time'] : 10)))?>(sec)
52
  </td>
53
  </tr>
54
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_wordpress">
57
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Export all subscribers, who subscribed using WordPress "Subscribe to" method, as CSV file.', PPS_LANG_CODE)?>"></i>
58
  </th>
59
  <td>
60
+ <a href="<?php echo viewPps::ksesString($this->wpCsvExportUrl);?>" class="button"><?php _e('Get CSV List', PPS_LANG_CODE)?></a>
61
  </td>
62
  </tr>
63
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_aweber">
65
  <?php _e('Aweber Unique List ID', PPS_LANG_CODE)?>
66
  <i class="fa fa-question supsystic-tooltip" data-tooltip-content="#tooltip_01"></i>
67
  <span class="tooltipContent" id="tooltip_01">
68
+ <?php echo viewPps::ksesString(esc_html(sprintf(__('Check <a href="%s" target="_blank">this page</a> for more details', PPS_LANG_CODE), 'https://help.aweber.com/hc/en-us/articles/204028426-What-Is-The-Unique-List-ID-')))?>
69
  </span>
70
  </th>
71
  <td>
72
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_aweber_listname]', array(
73
+ 'value' => (isset($this->popup['params']['tpl']['sub_aweber_listname']) ? $this->popup['params']['tpl']['sub_aweber_listname'] : ''))))?>
74
  </td>
75
  </tr>
76
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_aweber">
78
  <?php _e('Aweber AD Tracking', PPS_LANG_CODE)?>
79
  <i class="fa fa-question supsystic-tooltip" data-tooltip-content="#tooltip_02"></i>
80
  <span class="tooltipContent" id="tooltip_02">
81
+ <?php echo viewPps::ksesString(esc_html(sprintf(__('You can easy track your subscribers from PopUp using this feature. For more info - check <a href="%s" target="_blank">this page</a>.', PPS_LANG_CODE), 'https://help.aweber.com/hc/en-us/articles/204028856-Where-Can-I-See-My-Subscribers-Ad-Tracking-Categories-')))?>
82
  </span>
83
  </th>
84
  <td>
85
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_aweber_adtracking]', array(
86
+ 'value' => (isset($this->popup['params']['tpl']['sub_aweber_adtracking']) ? $this->popup['params']['tpl']['sub_aweber_adtracking'] : ''))))?>
87
  </td>
88
  </tr>
89
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_mailchimp">
91
  <?php _e('MailChimp API key', PPS_LANG_CODE)?>
92
  <i class="fa fa-question supsystic-tooltip" data-tooltip-content="#tooltip_03"></i>
93
  <span class="tooltipContent" id="tooltip_03">
94
+ <?php echo viewPps::ksesString(esc_html(sprintf(__('To find your MailChimp API Key login to your mailchimp account at <a href="%s" target="_blank">%s</a> then from the left main menu, click on your Username, then select "Account" in the flyout menu. From the account page select "Extras", "API Keys". Your API Key will be listed in the table labeled "Your API Keys". Copy / Paste your API key into "MailChimp API key" field here. For more detailed instruction - check article <a href="%s" target="_blank">here</a>.', PPS_LANG_CODE), 'http://mailchimp.com', 'http://mailchimp.com', 'https://supsystic.com/mailchimp-integration/')))?>
95
  </span>
96
  </th>
97
  <td>
98
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_mailchimp_api_key]', array(
99
  'value' => (isset($this->popup['params']['tpl']['sub_mailchimp_api_key']) ? $this->popup['params']['tpl']['sub_mailchimp_api_key'] : ''),
100
+ 'attrs' => 'style="min-width: 300px;"')))?>
101
  </td>
102
  </tr>
103
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_mailchimp">
107
  </th>
108
  <td>
109
  <div id="ppsMailchimpListsShell" style="display: none;">
110
+ <?php echo viewPps::ksesString(htmlPps::selectlist('params[tpl][sub_mailchimp_lists]', array(
111
  'value' => (isset($this->popup['params']['tpl']['sub_mailchimp_lists']) ? $this->popup['params']['tpl']['sub_mailchimp_lists'] : ''),
112
  'attrs' => 'id="ppsMailchimpLists" class="chosen" data-placeholder="'. __('Choose Lists', PPS_LANG_CODE). '"',
113
+ )))?>
114
  </div>
115
  <span id="ppsMailchimpNoApiKey"><?php _e('Enter API key - and your list will appear here', PPS_LANG_CODE)?></span>
116
  <span id="ppsMailchimpMsg"></span>
119
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_mailchimp">
120
  <th scope="row">
121
  <?php _e('Disable double opt-in', PPS_LANG_CODE)?>
122
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(_e('Disable double opt-in confirmation message sending - will create subscriber directly after he will sign-up to your form.', PPS_LANG_CODE))?>"></i>
123
  </th>
124
  <td>
125
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][sub_dsbl_dbl_opt_id]', array(
126
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_dsbl_dbl_opt_id'))))?><br />
127
 
128
  <label id="ppsSubMcSendWelcome">
129
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][sub_mc_enb_welcome]', array(
130
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_mc_enb_welcome'))))?>
131
  <?php _e('Send MailChimp Welcome Email', PPS_LANG_CODE)?>&nbsp;
132
+ <i style="float: none;" class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(_e('If double opt-in is disable - there will be no Welcome email from MailChimp by default. But if you still need it - just enable this opton, and Welcome email from MailChimp will be sent to your user even in this case.', PPS_LANG_CODE))?>"></i>
133
  </label>
134
  </td>
135
  </tr>
140
  </th>
141
  <td>
142
  <div id="ppsMailchimpGroupsShell" style="display: none;">
143
+ <?php echo viewPps::ksesString(htmlPps::selectlist('params[tpl][sub_mailchimp_groups]', array(
144
  'value' => (isset($this->popup['params']['tpl']['sub_mailchimp_groups']) ? $this->popup['params']['tpl']['sub_mailchimp_groups'] : ''),
145
  'attrs' => 'id="ppsMailchimpGroups" class="chosen" data-placeholder="'. __('Choose Groups', PPS_LANG_CODE). '"',
146
+ )))?>
147
  </div>
148
  <span id="ppsMailchimpGroupsNoApiKey"><?php _e('Enter API key, select List - and your groups will appear here', PPS_LANG_CODE)?></span>
149
  <span id="ppsMailchimpGroupsMsg"></span>
150
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_mailchimp_groups_full]', array(
151
  'value' => (isset($this->popup['params']['tpl']['sub_mailchimp_groups_full']) ? $this->popup['params']['tpl']['sub_mailchimp_groups_full'] : ''),
152
+ )))?>
153
  </td>
154
  </tr>
155
  <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_mailpoet">
159
  </th>
160
  <td>
161
  <?php if(!empty($this->mailPoetListsSelect)) { ?>
162
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[tpl][sub_mailpoet_list]', array(
163
  'value' => (isset($this->popup['params']['tpl']['sub_mailpoet_list']) ? $this->popup['params']['tpl']['sub_mailpoet_list'] : ''),
164
  'options' => $this->mailPoetListsSelect,
165
+ /*'attrs' => 'style="min-width: 300px;"'*/)))?>
166
  <?php } else { ?>
167
  <div class="description"><?php printf(__('You have no subscribe lists, <a target="_blank" href="%s">create lists</a> at first, then - select them here.', PPS_LANG_CODE), admin_url('admin.php?page=wysija_subscribers&action=addlist'))?></div>
168
  <?php }?>
180
  </th>
181
  <td>
182
  <?php if(!empty($this->supNewsletterListsSelect)) { ?>
183
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[tpl][sub_supsystic_list]', array(
184
  'value' => (isset($this->popup['params']['tpl']['sub_supsystic_list']) ? $this->popup['params']['tpl']['sub_supsystic_list'] : ''),
185
+ 'options' => $this->supNewsletterListsSelect)))?>
186
  <?php } else { ?>
187
  <div class="description"><?php printf(__('You have no subscribe lists, <a target="_blank" href="%s">create lists</a> at first, then - select them here.', PPS_LANG_CODE), frameNbs::_()->getModule('options')->getTabUrl('subscribers_lists', 'nbsAddSubList'))?></div>
188
  <?php }?>
199
  <?php _e('Create subscriber Disabled', PPS_LANG_CODE)?>
200
  </th>
201
  <td>
202
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][sub_sup_dsbl]', array(
203
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_sup_dsbl'))))?>
204
  </td>
205
  <?php }?>
206
  </tr>
210
  <?php _e('Send Confirm email', PPS_LANG_CODE)?>
211
  </th>
212
  <td>
213
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][sub_sup_send_confirm]', array(
214
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_sup_send_confirm'))))?>
215
  </td>
216
  <?php }?>
217
  </tr>
222
  </th>
223
  <td>
224
  <?php if(!empty($this->newsletterListsSelect)) { ?>
225
+ <?php echo viewPps::ksesString(htmlPps::selectbox('params[tpl][sub_newsletter_list]', array(
226
  'value' => (isset($this->popup['params']['tpl']['sub_newsletter_list']) ? $this->popup['params']['tpl']['sub_newsletter_list'] : ''),
227
  'options' => $this->newsletterListsSelect))?>
228
  <?php } else { ?>
275
  ?>
276
  <?php foreach($proSubModules as $proSubMod => $proSubModData) { ?>
277
  <?php if($this->isPro && framePps::_()->getModule( $proSubMod )) {?>
278
+ <?php echo viewPps::ksesString(framePps::_()->getModule( $proSubMod )->getView()->generateAdminFields( $this->popup ))?>
279
  <?php } elseif(($this->isPro && !framePps::_()->getModule( $proSubMod )) || (!$this->isPro && framePps::_()->getModule('license'))) {?>
280
+ <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_<?php echo viewPps::ksesString($proSubMod)?>">
281
  <th scope="row">
282
  <?php _e('Activate License or update PRO version plugin', PPS_LANG_CODE)?>
283
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('Apparently - you have installed PRO version, but did not activate it license - then please activate it. Or you have old version of plugin - then you need go to Plugins page and Update PRO version plugin, after this go to License tab and re-activate license (just click one more time on "Activate" button).', PPS_LANG_CODE)))?>"></i>
284
  </th>
285
  <td>
286
+ <a href="<?php echo viewPps::ksesString(framePps::_()->getModule('options')->getTabUrl('license'));?>" class="button"><?php _e('Activate License', PPS_LANG_CODE)?></a>
287
  </td>
288
  </tr>
289
  <?php } else {?>
290
+ <tr class="ppsPopupSubDestOpts ppsPopupSubDestOpts_<?php echo viewPps::ksesString($proSubMod)?>">
291
  <th scope="row">
292
  <?php printf(__('Enable %s with PRO', PPS_LANG_CODE), $proSubModData['label'])?>
293
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(sprintf(__('This is PRO feature, and it will be available once you will install <a href="%s" target="_blank">PRO version</a> of our plugin', PPS_LANG_CODE), framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium='. $proSubMod. '&utm_campaign=popup'))))?>"></i>
294
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo viewPps::ksesString(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium='. $proSubMod. '&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
295
  </th>
296
  <td>
297
+ <a href="<?php echo viewPps::ksesString(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium='. $proSubMod. '&utm_campaign=popup'));?>" target="_blank" class="button"><?php _e('Get PRO', PPS_LANG_CODE)?></a>
298
  </td>
299
  </tr>
300
  <?php }?>
304
  <?php _e('Subscribe with Facebook', PPS_LANG_CODE)?>
305
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Add button to your PopUp with possibility to subscribe just in one click - without filling fields in your subscribe form.', PPS_LANG_CODE)?>"></i>
306
  <?php if(!$this->isPro) {?>
307
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo viewPps::ksesString(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=fb_subscribe&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
308
  <?php }?>
309
  </th>
310
  <td>
311
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][sub_enb_fb_subscribe]', array(
312
  'attrs' => 'class="ppsProOpt"',
313
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_enb_fb_subscribe'))))?>
314
  </td>
315
  </tr>
316
  <tr class="ppsPopupSubCreateWpUser">
317
  <th scope="row">
318
  <?php _e('Create WP user', PPS_LANG_CODE)?>
319
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(_e('Once user will subscribe to selected Subscription service - it will create WordPress Subscriber too. PLease be carefull using this option: WordPressusers will be created right after you submit your Subscribe form without confirmation.', PPS_LANG_CODE))?>"></i>
320
  </th>
321
  <td>
322
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][sub_create_wp_user]', array(
323
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_create_wp_user'))))?>
324
  </td>
325
  </tr>
326
  <tr>
327
  <th scope="row">
328
  <?php _e('Test Email Function', PPS_LANG_CODE)?>
329
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('Email delivery depends from your server configuration. For some cases - you and your subscribers can not receive emails just because email on your server is not working correctly. You can easy test it here - by sending test email. If you receive it - then it means that email functionality on your server works well. If not - this means that it is not working correctly and you should contact your hosting provider with this issue and ask them to setup email functionality for you on your server.', PPS_LANG_CODE)))?>"></i>
330
  </th>
331
  <td>
332
+ <?php echo viewPps::ksesString(htmlPps::text('test_email', array(
333
  'value' => get_bloginfo('admin_email'),
334
+ )))?>
335
  <a href="#" class="ppsTestEmailFuncBtn button">
336
  <i class="fa fa-paper-plane"></i>
337
  <?php _e('Send Test Email', PPS_LANG_CODE)?>
346
  <fieldset id="ppoPopupSubFields" class="ppoPopupSubFields" style="padding: 10px;">
347
  <legend>
348
  <?php _e('Subscription fields', PPS_LANG_CODE)?>
349
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('To change field position - just drag-&-drop it to required place between other fields. To add new field to Subscribe form - click on "+ Add" button.', PPS_LANG_CODE)))?>"></i>
350
  </legend>
351
  <?php foreach($this->popup['params']['tpl']['sub_fields'] as $k => $f) { ?>
352
  <?php
355
  $labelClass .= ' supsystic-tooltip-bottom ppsSubFieldEmailShell';
356
  ?>
357
  <div
358
+ class="<?php echo viewPps::ksesString($labelClass)?>"
359
+ data-name="<?php echo viewPps::ksesString($k)?>"
360
  <?php if($k == 'email') { ?>
361
  title="Email field is mandatory for most of subscribe engines - so it should be always enabled"
362
  <?php }?>
369
  $checkParams = array('checked' => htmlPps::checkedOpt($f, 'enb'));
370
  }
371
  ?>
372
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][sub_fields]['. $k. '][enb]', $checkParams))?>
373
 
374
+ <span class="ppsSubFieldLabel"><?php echo viewPps::ksesString($f['label'])?></span>
375
 
376
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_fields]['. $k. '][name]', array('value' => esc_html(isset($f['name']) ? $f['name'] : $k))))?>
377
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_fields]['. $k. '][html]', array('value' => esc_html($f['html']))))?>
378
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_fields]['. $k. '][label]', array('value' => esc_html($f['label']))))?>
379
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_fields]['. $k. '][value]', array('value' => esc_html(isset($f['value']) ? $f['value'] : ''))))?>
380
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_fields]['. $k. '][custom]', array('value' => esc_html(isset($f['custom']) ? $f['custom'] : 0))))?>
381
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_fields]['. $k. '][mandatory]', array('value' => isset($f['mandatory']) ? $f['mandatory'] : 0)))?>
382
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_fields]['. $k. '][set_preset]', array('value' => isset($f['set_preset']) ? $f['set_preset'] : '')))?>
383
  <?php if(isset($f['options']) && !empty($f['options'])) {
384
  foreach($f['options'] as $i => $opt) {
385
+ echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_fields]['. $k. '][options]['. $i. '][name]', array('value' => esc_html($opt['name']))));
386
+ echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_fields]['. $k. '][options]['. $i. '][label]', array('value' => esc_html($opt['label']))));
387
  }
388
  }?>
389
  <?php
390
  if($k == 'email') { // Email is always checked
391
+ echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_fields]['. $k. '][enb]', array('value' => 1)));
392
  }
393
  ?>
394
  </div>
400
  </a>
401
  <?php if(!$this->isPro) {?>
402
  <span class="ppsProOptMiniLabel" style="margin-bottom: 0; margin-top: -5px;">
403
+ <a target="_blank" href="<?php echo viewPps::ksesString(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=sub_fields&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a>
404
  </span>
405
  <?php }?>
406
  </label>
407
  <div style="clear: both;"></div>
408
  <div class="ppsReCaptchaShell">
409
  <label>
410
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][enb_captcha]', array(
411
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_captcha'),
412
  'attrs' => 'class="ppsProOpt"',
413
+ )))?>
414
  <?php _e('Re-Captcha', PPS_LANG_CODE)?>
415
  </label>
416
  <?php if(!$this->isPro) {?>
417
  <span class="ppsProOptMiniLabel" style="margin-bottom: 0; margin-top: -5px;">
418
+ <a target="_blank" href="<?php echo viewPps::ksesString(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=re_captcha&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a>
419
  </span>
420
  <?php } else { ?>
421
  <div class="ppsReCaptchaOptsShell">
423
  <tr>
424
  <th scope="row">
425
  <?php _e('ReCaptcha Site Key', PPS_LANG_CODE)?>
426
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(sprintf(__('Your site key, generated on <a href="%s" target="_blank">%s</a>.', PPS_LANG_CODE), 'https://www.google.com/recaptcha/admin#list', 'https://www.google.com/recaptcha/admin#list')))?>"></i>
427
  </th>
428
  <td>
429
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][capt_site_key]', array(
430
  'value' => (isset($this->popup['params']['tpl']['capt_site_key']) ? $this->popup['params']['tpl']['capt_site_key'] : ''),
431
+ )))?>
432
  </td>
433
  </tr>
434
  <tr>
435
  <th scope="row">
436
  <?php _e('ReCaptcha Secret Key', PPS_LANG_CODE)?>
437
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(sprintf(__('Your secret key, generated on <a href="%s" target="_blank">%s</a>.', PPS_LANG_CODE), 'https://www.google.com/recaptcha/admin#list', 'https://www.google.com/recaptcha/admin#list')))?>"></i>
438
  </th>
439
  <td>
440
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][capt_secret_key]', array(
441
  'value' => (isset($this->popup['params']['tpl']['capt_secret_key']) ? $this->popup['params']['tpl']['capt_secret_key'] : ''),
442
+ )))?>
443
  </td>
444
  </tr>
445
  </table>
452
  <tr>
453
  <th scope="row">
454
  <?php _e('Blacklist', PPS_LANG_CODE)?>
455
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('Here you can add emails, or email doamains, into blacklist - and they will not be able to subscribe. To add several emails (rules) - use "," symbol (coma) as separator. To add email domain - for examle @email.com - use "*@email.com" rule.', PPS_LANG_CODE)))?>"></i>
456
  <?php if(!$this->isPro) {?>
457
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo viewPps::ksesString(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=blacklist&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
458
  <?php }?>
459
  </th>
460
  <td>
461
+ <?php echo viewPps::ksesString(htmlPps::textarea('params[tpl][blacklist]', array(
462
  'value' => (isset($this->popup['params']['tpl']['blacklist']) ? $this->popup['params']['tpl']['blacklist'] : ''),
463
  'attrs' => 'class="ppsProOpt"',
464
+ )))?>
465
  </td>
466
  </tr>
467
  <tr>
468
  <th scope="row">
469
  <?php _e('Blacklist error message', PPS_LANG_CODE)?>
470
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('Error message, that user will see if he / she email is in Blacklist', PPS_LANG_CODE)))?>"></i>
471
  <?php if(!$this->isPro) {?>
472
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo viewPps::ksesString(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=blacklist&utm_campaign=popup'));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
473
  <?php }?>
474
  </th>
475
  <td>
476
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][blacklist_error]', array(
477
  'value' => (isset($this->popup['params']['tpl']['blacklist_error']) ? $this->popup['params']['tpl']['blacklist_error'] : __('Your email is in blacklist', PPS_LANG_CODE)),
478
  'attrs' => 'class="ppsProOpt"',
479
+ )))?>
480
  </td>
481
  </tr>
482
  <tr class="ppsPopupSubTxtsAndRedirect" style="display: none;">
485
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('This is the message that the user will see after subscription, when letter with confirmation link was sent.', PPS_LANG_CODE)?>"></i>
486
  </th>
487
  <td>
488
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_txt_confirm_sent]', array(
489
  'value' => (isset($this->popup['params']['tpl']['sub_txt_confirm_sent']) ? esc_html( $this->popup['params']['tpl']['sub_txt_confirm_sent'] ) : __('Confirmation link was sent to your email address. Check your email!', PPS_LANG_CODE)),
490
+ )))?>
491
  </td>
492
  </tr>
493
  <tr class="ppsPopupSubTxtsAndRedirect" style="display: none;">
496
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Right after subscriber will be created and confirmed - this message will be shown.', PPS_LANG_CODE)?>"></i>
497
  </th>
498
  <td>
499
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_txt_success]', array(
500
  'value' => (isset($this->popup['params']['tpl']['sub_txt_success']) ? esc_html( $this->popup['params']['tpl']['sub_txt_success'] ) : __('Thank you for subscribing!', PPS_LANG_CODE)),
501
+ )))?>
502
  </td>
503
  </tr>
504
  <tr class="ppsPopupSubTxtsAndRedirect" style="display: none;">
507
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('If email that was entered by user is invalid, user will see this message', PPS_LANG_CODE)?>"></i>
508
  </th>
509
  <td>
510
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_txt_invalid_email]', array(
511
  'value' => (isset($this->popup['params']['tpl']['sub_txt_invalid_email']) ? esc_html( $this->popup['params']['tpl']['sub_txt_invalid_email'] ) : __('Empty or invalid email', PPS_LANG_CODE)),
512
+ )))?>
513
  </td>
514
  </tr>
515
  <tr class="ppsPopupSubTxtsAndRedirect" style="display: none;">
518
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('If email that was entered by user already exists - user will see this message. But be careful: this can be used by hackers - to detect existing email in your database, so it\'s better for you to leave this message same as error message about invalid email above.', PPS_LANG_CODE)?>"></i>
519
  </th>
520
  <td>
521
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_txt_exists_email]', array(
522
  'value' => (isset($this->popup['params']['tpl']['sub_txt_exists_email']) ? esc_html( $this->popup['params']['tpl']['sub_txt_exists_email'] ) : __('Empty or invalid email', PPS_LANG_CODE)),
523
+ )))?>
524
  </td>
525
  </tr>
526
  <tr class="ppsPopupSubRedirect">
529
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('You can enable redirection after subscription, just enter here URL that you want to redirect to after subscribe - and user will be redirected there. If you don\'t need this feature - just leave this field empty.', PPS_LANG_CODE)?>"></i>
530
  </th>
531
  <td>
532
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_redirect_url]', array(
533
  'value' => (isset($this->popup['params']['tpl']['sub_redirect_url']) ? esc_url( $this->popup['params']['tpl']['sub_redirect_url'] ) : ''),
534
  'attrs' => 'placeholder="http://example.com"',
535
+ )))?>
536
  <label>
537
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][sub_redirect_new_wnd]', array(
538
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_redirect_new_wnd'))))?>
539
  <?php _e('Open in a new window (tab)', PPS_LANG_CODE)?>
540
  </label>
541
  <label class="supsystic-tooltip" title="<?php _e('If you set PopUp to Show On -> Click on certain link, and this link have href parameter - you can redirect your users there after successful subscribe.', PPS_LANG_CODE)?>">
542
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][sub_redirect_to_btn_url]', array(
543
+ 'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'sub_redirect_to_btn_url'))))?>
544
  <?php _e('Redirect to button URL', PPS_LANG_CODE)?>
545
  </label>
546
  </td>
551
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Email with confirmation link subject', PPS_LANG_CODE)?>"></i>
552
  </th>
553
  <td>
554
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_txt_confirm_mail_subject]', array(
555
  'value' => esc_html ( isset($this->popup['params']['tpl']['sub_txt_confirm_mail_subject'])
556
  ? $this->popup['params']['tpl']['sub_txt_confirm_mail_subject']
557
  : __('Confirm subscription on [sitename]', PPS_LANG_CODE)),
558
+ )))?>
559
  </td>
560
  </tr>
561
  <tr class="ppsPopupSubEmailTxt" style="display: none;">
564
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Email with confirmation link From field', PPS_LANG_CODE)?>"></i>
565
  </th>
566
  <td>
567
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_txt_confirm_mail_from]', array(
568
  'value' => esc_html ( isset($this->popup['params']['tpl']['sub_txt_confirm_mail_from'])
569
  ? $this->popup['params']['tpl']['sub_txt_confirm_mail_from']
570
  : $this->adminEmail),
571
+ )))?>
572
  </td>
573
  </tr>
574
  <tr class="ppsPopupSubEmailTxt" style="display: none;">
584
  <div class="description"><?php printf(__('You can use next variables here: %s, and any other subscribe field value - just place here [user_FIELD_NAME], where FIELD_NAME - is name attribute of required field.', PPS_LANG_CODE), '['. implode('], [', $allowVarsInMail).']')?></div>
585
  </th>
586
  <td>
587
+ <?php echo viewPps::ksesString(htmlPps::textarea('params[tpl][sub_txt_confirm_mail_message]', array(
588
  'value' => esc_html( isset($this->popup['params']['tpl']['sub_txt_confirm_mail_message'])
589
  ? $this->popup['params']['tpl']['sub_txt_confirm_mail_message']
590
  : __('You subscribed on site <a href="[siteurl]">[sitename]</a>. Follow <a href="[confirm_link]">this link</a> to complete your subscription. If you did not subscribe here - just ignore this message.', PPS_LANG_CODE)),
591
+ )))?><br />
592
  <div class="ppsPopupAttachFilesShell" data-key="confirm">
593
  <a href="#" class="button ppsPopupAddEmailAttachBtn"><i class="fa fa-plus"></i><?php _e('Add Attach', PPS_LANG_CODE)?></a>
594
  </div>
600
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Email to New Subscriber subject', PPS_LANG_CODE)?>"></i>
601
  </th>
602
  <td>
603
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_txt_subscriber_mail_subject]', array(
604
  'value' => esc_html ( isset($this->popup['params']['tpl']['sub_txt_subscriber_mail_subject'])
605
  ? $this->popup['params']['tpl']['sub_txt_subscriber_mail_subject']
606
  : __('[sitename] Your username and password', PPS_LANG_CODE)),
607
+ )))?>
608
  </td>
609
  </tr>
610
  <tr class="ppsPopupSubEmailTxt" style="display: none;">
613
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('New Subscriber email From field', PPS_LANG_CODE)?>"></i>
614
  </th>
615
  <td>
616
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_txt_subscriber_mail_from]', array(
617
  'value' => esc_html ( isset($this->popup['params']['tpl']['sub_txt_subscriber_mail_from'])
618
  ? $this->popup['params']['tpl']['sub_txt_subscriber_mail_from']
619
  : $this->adminEmail),
620
+ )))?>
621
  </td>
622
  </tr>
623
  <tr class="ppsPopupSubEmailTxt" style="display: none;">
633
  <div class="description" style=""><?php printf(__('You can use next variables here: %s, and any other subscribe field value - just place here [user_FIELD_NAME], where FIELD_NAME - is name attribute of required field.', PPS_LANG_CODE), '['. implode('], [', $allowVarsInMail).']')?></div>
634
  </th>
635
  <td>
636
+ <?php echo viewPps::ksesString(htmlPps::textarea('params[tpl][sub_txt_subscriber_mail_message]', array(
637
  'value' => esc_html( isset($this->popup['params']['tpl']['sub_txt_subscriber_mail_message'])
638
  ? $this->popup['params']['tpl']['sub_txt_subscriber_mail_message']
639
  : __('Username: [user_login]<br />Password: [password]<br />[login_url]', PPS_LANG_CODE)),
640
+ )))?><br />
641
  <div class="ppsPopupAttachFilesShell" data-key="subscriber">
642
  <a href="#" class="button ppsPopupAddEmailAttachBtn"><i class="fa fa-plus"></i><?php _e('Add Attach', PPS_LANG_CODE)?></a>
643
  </div>
649
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Link to redirect to if user subscribes - but this email already exists', PPS_LANG_CODE)?>"></i>
650
  </th>
651
  <td>
652
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_redirect_email_exists]', array(
653
  'value' => esc_html ( isset($this->popup['params']['tpl']['sub_redirect_email_exists'])
654
  ? $this->popup['params']['tpl']['sub_redirect_email_exists']
655
  : ''),
656
  'attrs' => 'placeholder="http://example.com"'
657
+ )))?>
658
  </td>
659
  </tr>
660
  <tr>
662
  <?php _e('Submit button name', PPS_LANG_CODE)?>
663
  </th>
664
  <td>
665
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_btn_label]', array('value' => $this->popup['params']['tpl']['sub_btn_label'])))?>
666
  </td>
667
  </tr>
668
  <tr>
671
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Enter the email addresses that should receive notifications (separate by comma). Leave it blank - and you will not get any notifications.', PPS_LANG_CODE)?>"></i>
672
  </th>
673
  <td>
674
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_new_email]', array(
675
  'value' => isset($this->popup['params']['tpl']['sub_new_email'])
676
  ? $this->popup['params']['tpl']['sub_new_email']
677
  : $this->adminEmail,
678
+ )))?>
679
  </td>
680
  </tr>
681
  <tr>
684
  <i class="fa fa-question supsystic-tooltip" title="<?php _e('Email about new subscriber Subject', PPS_LANG_CODE)?>"></i>
685
  </th>
686
  <td>
687
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][sub_new_subject]', array(
688
  'value' => isset($this->popup['params']['tpl']['sub_new_subject'])
689
  ? $this->popup['params']['tpl']['sub_new_subject']
690
  : sprintf(__('New Subscriber on %s', PPS_LANG_CODE), wp_specialchars_decode(get_bloginfo('name'))),
691
+ )))?>
692
  </td>
693
  </tr>
694
  <tr>
699
  <div class="description" style=""><?php printf(__('You can use next variables here: %s', PPS_LANG_CODE), '['. implode('], [', $allowVarsInMail).']')?></div>
700
  </th>
701
  <td>
702
+ <?php echo viewPps::ksesString(htmlPps::textarea('params[tpl][sub_new_message]', array(
703
  'value' => isset($this->popup['params']['tpl']['sub_new_message'])
704
  ? $this->popup['params']['tpl']['sub_new_message']
705
  : __('You have new subscriber on your site <a href="[siteurl]">[sitename]</a>, here is subscriber information:<br />[subscriber_data]', PPS_LANG_CODE),
706
+ )))?><br />
707
  <div class="ppsPopupAttachFilesShell" data-key="new_message">
708
  <a href="#" class="button ppsPopupAddEmailAttachBtn"><i class="fa fa-plus"></i><?php _e('Add Attach', PPS_LANG_CODE)?></a>
709
  </div>
713
  </span>
714
  <!--Add Field promo Wnd-->
715
  <div id="ppsSubAddFieldWnd" title="<?php _e('Subscribe Field Settings', PPS_LANG_CODE)?>" style="display: none;">
716
+ <a target="_blank" href="<?php echo viewPps::ksesString(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=sub_fields&utm_campaign=popup'));?>" class="ppsPromoImgUrl">
717
+ <img src="<?php echo viewPps::ksesString($this->promoModPath)?>img/sub-fields-edit.jpg" />
718
  </a>
719
  </div>
720
  <!--Standard fields toolbar-->
729
  <tr class="ppsSfLabelShell">
730
  <th scope="row">
731
  <?php _e('Label', PPS_LANG_CODE)?>
732
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('Label that will be visible for your subscribers.', PPS_LANG_CODE)))?>"></i>
733
  </th>
734
  <td>
735
+ <?php echo viewPps::ksesString(htmlPps::text('label'))?>
736
  </td>
737
  </tr>
738
  <tr class="ppsSfMandatoryStandardRow">
739
  <th scope="row">
740
  <?php _e('Mandatory', PPS_LANG_CODE)?>
741
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('Is this field mandatory to fill-in. If yes - then users will not be able to continue without filling-in this field.', PPS_LANG_CODE)))?>"></i>
742
  </th>
743
  <td>
744
+ <?php echo viewPps::ksesString(htmlPps::checkbox('mandatory', array(
745
  'value' => 1,
746
+ )))?>
747
  </td>
748
  </tr>
749
  </table>
750
+ <?php echo viewPps::ksesString(htmlPps::hidden('name'))?>
751
  </div>
752
  <div id="ppsPopupAttachShell" class="ppsPopupAttachShell">
753
  <a href="#" class="button ppsPopupAttachBtn"><?php _e('Select File', PPS_LANG_CODE)?></a>
754
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][sub_attach][]', array(
755
  'disabled' => true,
756
+ )))?>
757
  <span class="ppsPopupAttachFile"></span>
758
  <a href="#" class="button ppsPopupAttachRemoveBtn" title="<?php _e('Remove', PPS_LANG_CODE)?>"><i class="fa fa-trash"></i></a>
759
  </div>
modules/popup/views/tpl/popupEditAdminTextsOpts.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php if(in_array($this->popup['type'], array(PPS_COMMON, PPS_VIDEO, PPS_AGE_VERIFY, PPS_FULL_SCREEN, PPS_BAR))) {?>
2
  <div class="ppsPopupOptRow">
3
- <?php echo htmlPps::checkbox('params[tpl][enb_label]', array('checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_label')))?>
4
- <?php echo htmlPps::text('params[tpl][label]', array(
5
  'value' => isset($this->popup['params']['tpl']['label']) ? esc_html($this->popup['params']['tpl']['label']) : '',
6
  'attrs' => 'class="ppsOptTxtCheck"',
7
- ))?>
8
  </div>
9
  <?php }?>
10
  <?php for($i = 0; $i < $this->popup['params']['opts_attrs']['txt_block_number']; $i++) { ?>
@@ -12,15 +12,15 @@
12
  <legend>
13
  <label>
14
  <?php $switchBlock = 'txtBlock_'. $i;?>
15
- <?php echo htmlPps::checkbox('params[tpl][enb_txt_'. $i. ']', array(
16
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_txt_'. $i),
17
  'attrs' => 'data-switch-block="'. $switchBlock. '"',
18
- ))?>
19
  <?php $this->popup['params']['opts_attrs']['txt_block_number'] == 1 ? _e('Text block', PPS_LANG_CODE) : printf(__('Text block %d', PPS_LANG_CODE), $i + 1)?>
20
  </label>
21
  </legend>
22
- <span data-block-to-switch="<?php echo $switchBlock?>">
23
- <?php wp_editor((isset($this->popup['params']['tpl']['txt_'. $i]) ? $this->popup['params']['tpl']['txt_'. $i] : ''),
24
  'params_tpl_txt_'. $i, array(
25
  'drag_drop_upload' => true,
26
  ))?>
@@ -33,45 +33,45 @@
33
  <legend>
34
  <label>
35
  <?php $switchBlock = 'btnBlock_'. $i;?>
36
- <?php echo htmlPps::checkbox('params[tpl][enb_btn_'. $i. ']', array(
37
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_btn_'. $i),
38
  'attrs' => 'data-switch-block="'. $switchBlock. '"',
39
- ))?>
40
  <?php $this->popup['params']['opts_attrs']['btns_number'] == 1 ? _e('Button block', PPS_LANG_CODE) : printf(__('Button block %d', PPS_LANG_CODE), $i + 1)?>
41
  </label>
42
  </legend>
43
- <span data-block-to-switch="<?php echo $switchBlock?>">
44
  <table>
45
  <tr>
46
  <?php $btnId = 'ppsParamBtnNameTxt_'. $i; ?>
47
- <td><label for="<?php echo $btnId;?>"><?php _e('Button Name', PPS_LANG_CODE)?>:</label></td>
48
- <td><?php echo htmlPps::text('params[tpl][btn_txt_'. $i. ']', array(
49
  'value' => isset($this->popup['params']['tpl']['btn_txt_'. $i]) ? $this->popup['params']['tpl']['btn_txt_'. $i] : '',
50
  'attrs' => 'id="'. $btnId. '"',
51
- ))?></td>
52
  </tr>
53
  <tr>
54
  <?php $btnId = 'ppsParamBtnUrlTxt_'. $i; ?>
55
- <td><label for="<?php echo $btnId;?>"><?php _e('Button URL', PPS_LANG_CODE)?>:</label></td>
56
  <td>
57
- <?php echo htmlPps::text('params[tpl][btn_url_'. $i. ']', array(
58
  'value' => isset($this->popup['params']['tpl']['btn_url_'. $i]) ? $this->popup['params']['tpl']['btn_url_'. $i] : '',
59
  'attrs' => 'id="'. $btnId. '"',
60
- ))?>
61
  <label>
62
- <?php _e('or close PopUp on click', PPS_LANG_CODE)?> -
63
- <?php echo htmlPps::checkbox('params[tpl][is_close_btn_'. $i. ']', array(
64
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'is_close_btn_'. $i),
65
- ))?>
66
  </label>
67
  </td>
68
  </tr>
69
  <tr class="supsystic-tooltip" title="<?php _e('If it is primary - then it will be used when we check "Whom to Show" -> "Until user makes an action" condition.', PPS_LANG_CODE)?>">
70
  <td><?php _e('Use as Primary Action', PPS_LANG_CODE)?>:</td>
71
  <td>
72
- <?php echo htmlPps::checkbox('params[tpl][is_btn_primary_'. $i. ']', array(
73
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'is_btn_primary_'. $i),
74
- ))?>
75
  </td>
76
  </tr>
77
  </table>
@@ -83,17 +83,17 @@
83
  <fieldset>
84
  <legend>
85
  <label>
86
- <?php echo htmlPps::checkbox('params[tpl][enb_foot_note]', array(
87
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_foot_note'),
88
  'attrs' => 'data-switch-block="txtFooter"',
89
- ))?>
90
  <?php _e('Foot note', PPS_LANG_CODE)?>
91
  </label>
92
  </legend>
93
  <span data-block-to-switch="txtFooter">
94
- <?php echo htmlPps::textarea('params[tpl][foot_note]', array(
95
  'value' => isset($this->popup['params']['tpl']['foot_note']) ? $this->popup['params']['tpl']['foot_note'] : '',
96
- ))?>
97
  </span>
98
  </fieldset>
99
- <?php }?>
1
  <?php if(in_array($this->popup['type'], array(PPS_COMMON, PPS_VIDEO, PPS_AGE_VERIFY, PPS_FULL_SCREEN, PPS_BAR))) {?>
2
  <div class="ppsPopupOptRow">
3
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][enb_label]', array('checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_label'))))?>
4
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][label]', array(
5
  'value' => isset($this->popup['params']['tpl']['label']) ? esc_html($this->popup['params']['tpl']['label']) : '',
6
  'attrs' => 'class="ppsOptTxtCheck"',
7
+ )))?>
8
  </div>
9
  <?php }?>
10
  <?php for($i = 0; $i < $this->popup['params']['opts_attrs']['txt_block_number']; $i++) { ?>
12
  <legend>
13
  <label>
14
  <?php $switchBlock = 'txtBlock_'. $i;?>
15
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][enb_txt_'. $i. ']', array(
16
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_txt_'. $i),
17
  'attrs' => 'data-switch-block="'. $switchBlock. '"',
18
+ )))?>
19
  <?php $this->popup['params']['opts_attrs']['txt_block_number'] == 1 ? _e('Text block', PPS_LANG_CODE) : printf(__('Text block %d', PPS_LANG_CODE), $i + 1)?>
20
  </label>
21
  </legend>
22
+ <span data-block-to-switch="<?php echo viewPps::ksesString($switchBlock)?>">
23
+ <?php wp_editor((isset($this->popup['params']['tpl']['txt_'. $i]) ? $this->popup['params']['tpl']['txt_'. $i] : ''),
24
  'params_tpl_txt_'. $i, array(
25
  'drag_drop_upload' => true,
26
  ))?>
33
  <legend>
34
  <label>
35
  <?php $switchBlock = 'btnBlock_'. $i;?>
36
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][enb_btn_'. $i. ']', array(
37
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_btn_'. $i),
38
  'attrs' => 'data-switch-block="'. $switchBlock. '"',
39
+ )))?>
40
  <?php $this->popup['params']['opts_attrs']['btns_number'] == 1 ? _e('Button block', PPS_LANG_CODE) : printf(__('Button block %d', PPS_LANG_CODE), $i + 1)?>
41
  </label>
42
  </legend>
43
+ <span data-block-to-switch="<?php echo viewPps::ksesString($switchBlock)?>">
44
  <table>
45
  <tr>
46
  <?php $btnId = 'ppsParamBtnNameTxt_'. $i; ?>
47
+ <td><label for="<?php echo viewPps::ksesString($btnId);?>"><?php _e('Button Name', PPS_LANG_CODE)?>:</label></td>
48
+ <td><?php echo viewPps::ksesString(htmlPps::text('params[tpl][btn_txt_'. $i. ']', array(
49
  'value' => isset($this->popup['params']['tpl']['btn_txt_'. $i]) ? $this->popup['params']['tpl']['btn_txt_'. $i] : '',
50
  'attrs' => 'id="'. $btnId. '"',
51
+ )))?></td>
52
  </tr>
53
  <tr>
54
  <?php $btnId = 'ppsParamBtnUrlTxt_'. $i; ?>
55
+ <td><label for="<?php echo viewPps::ksesString($btnId);?>"><?php _e('Button URL', PPS_LANG_CODE)?>:</label></td>
56
  <td>
57
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][btn_url_'. $i. ']', array(
58
  'value' => isset($this->popup['params']['tpl']['btn_url_'. $i]) ? $this->popup['params']['tpl']['btn_url_'. $i] : '',
59
  'attrs' => 'id="'. $btnId. '"',
60
+ )))?>
61
  <label>
62
+ <?php _e('or close PopUp on click', PPS_LANG_CODE)?> -
63
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][is_close_btn_'. $i. ']', array(
64
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'is_close_btn_'. $i),
65
+ )))?>
66
  </label>
67
  </td>
68
  </tr>
69
  <tr class="supsystic-tooltip" title="<?php _e('If it is primary - then it will be used when we check "Whom to Show" -> "Until user makes an action" condition.', PPS_LANG_CODE)?>">
70
  <td><?php _e('Use as Primary Action', PPS_LANG_CODE)?>:</td>
71
  <td>
72
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][is_btn_primary_'. $i. ']', array(
73
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'is_btn_primary_'. $i),
74
+ )))?>
75
  </td>
76
  </tr>
77
  </table>
83
  <fieldset>
84
  <legend>
85
  <label>
86
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][enb_foot_note]', array(
87
  'checked' => htmlPps::checkedOpt($this->popup['params']['tpl'], 'enb_foot_note'),
88
  'attrs' => 'data-switch-block="txtFooter"',
89
+ )))?>
90
  <?php _e('Foot note', PPS_LANG_CODE)?>
91
  </label>
92
  </legend>
93
  <span data-block-to-switch="txtFooter">
94
+ <?php echo viewPps::ksesString(htmlPps::textarea('params[tpl][foot_note]', array(
95
  'value' => isset($this->popup['params']['tpl']['foot_note']) ? $this->popup['params']['tpl']['foot_note'] : '',
96
+ )))?>
97
  </span>
98
  </fieldset>
99
+ <?php }?>
modules/popup/views/tpl/popupEditAdminTplOpts.php CHANGED
@@ -1,5 +1,5 @@
1
  <div id="ppsPopupEditDesignTabs">
2
- <a href="<?php echo $this->ppsAddNewUrl. '&change_for='. $this->popup['id']?>" class="button button-primary ppsPopupSelectTpl">
3
  <?php _e('Change PopUp Template', PPS_LANG_CODE)?>
4
  </a>
5
  <h3 class="nav-tab-wrapper">
@@ -11,20 +11,20 @@
11
  $iconClass .= '-not-hide'; // We will just exclude it from selector to hide, jQuery.not() - make browser slow down in this case - so better don't use it
12
  }
13
  ?>
14
- <a class="nav-tab <?php if($i == 0) { echo 'nav-tab-active'; }?>" href="#<?php echo $tKey?>">
15
  <?php if(isset($tData['fa_icon'])) { ?>
16
- <i class="<?php echo $iconClass?> fa <?php echo $tData['fa_icon']?>"></i>
17
  <?php } elseif(isset($tData['icon_content'])) { ?>
18
- <i class="<?php echo $iconClass?> fa"><?php echo $tData['icon_content']?></i>
19
  <?php }?>
20
- <span class="ppsPopupTabTitle"><?php echo $tData['title']?></span>
21
  </a>
22
  <?php $i++; }?>
23
  </h3>
24
  <div style="clear: both;"></div>
25
  <?php foreach($this->designTabs as $tKey => $tData) { ?>
26
- <div id="<?php echo $tKey?>" class="ppsTabContent">
27
- <?php echo $tData['content']?>
28
  </div>
29
  <?php }?>
30
  </div>
1
  <div id="ppsPopupEditDesignTabs">
2
+ <a href="<?php echo viewPps::ksesString($this->ppsAddNewUrl. '&change_for='. $this->popup['id'])?>" class="button button-primary ppsPopupSelectTpl">
3
  <?php _e('Change PopUp Template', PPS_LANG_CODE)?>
4
  </a>
5
  <h3 class="nav-tab-wrapper">
11
  $iconClass .= '-not-hide'; // We will just exclude it from selector to hide, jQuery.not() - make browser slow down in this case - so better don't use it
12
  }
13
  ?>
14
+ <a class="nav-tab <?php if($i == 0) { echo viewPps::ksesString('nav-tab-active'); }?>" href="#<?php echo viewPps::ksesString($tKey)?>">
15
  <?php if(isset($tData['fa_icon'])) { ?>
16
+ <i class="<?php echo viewPps::ksesString($iconClass)?> fa <?php echo viewPps::ksesString($tData['fa_icon'])?>"></i>
17
  <?php } elseif(isset($tData['icon_content'])) { ?>
18
+ <i class="<?php echo viewPps::ksesString($iconClass)?> fa"><?php echo viewPps::ksesString($tData['icon_content'])?></i>
19
  <?php }?>
20
+ <span class="ppsPopupTabTitle"><?php echo viewPps::ksesString($tData['title'])?></span>
21
  </a>
22
  <?php $i++; }?>
23
  </h3>
24
  <div style="clear: both;"></div>
25
  <?php foreach($this->designTabs as $tKey => $tData) { ?>
26
+ <div id="<?php echo viewPps::ksesString($tKey)?>" class="ppsTabContent">
27
+ <?php echo viewPps::ksesString($tData['content'])?>
28
  </div>
29
  <?php }?>
30
  </div>
modules/popup/views/tpl/popupEditFormControls.php CHANGED
@@ -1,8 +1,8 @@
1
  &laquo;<span id="ppsPopupEditableLabelShell" title="<?php _e('Click to Edit', PPS_LANG_CODE)?>">
2
- <span id="ppsPopupEditableLabel"><?php echo $this->popup['label']?></span>
3
- <?php echo htmlPps::text('popup_label', array(
4
  'attrs' => 'id="ppsPopupEditableLabelTxt"'
5
- ))?>
6
  <i id="ppsPopupLabelEditMsg" class="fa fa-fw fa-pencil"></i>
7
  </span>&raquo;&nbsp;
8
  <span id="ppsPopupMainControllsShell" style="float: right; padding-right: 95px;">
@@ -32,11 +32,11 @@
32
  <form id="ppsPopupSaveAsCopyForm">
33
  <label>
34
  <?php _e('New Name', PPS_LANG_CODE)?>:
35
- <?php echo htmlPps::text('copy_label', array('value' => $this->popup['label']. ' '. __('Copy', PPS_LANG_CODE), 'required' => true))?>
36
  </label>
37
  <div id="ppsPopupSaveAsCopyMsg"></div>
38
- <?php echo htmlPps::hidden('mod', array('value' => 'popup'))?>
39
- <?php echo htmlPps::hidden('action', array('value' => 'saveAsCopy'))?>
40
- <?php echo htmlPps::hidden('id', array('value' => $this->popup['id']))?>
41
  </form>
42
  </div>
1
  &laquo;<span id="ppsPopupEditableLabelShell" title="<?php _e('Click to Edit', PPS_LANG_CODE)?>">
2
+ <span id="ppsPopupEditableLabel"><?php echo viewPps::ksesString($this->popup['label'])?></span>
3
+ <?php echo viewPps::ksesString(htmlPps::text('popup_label', array(
4
  'attrs' => 'id="ppsPopupEditableLabelTxt"'
5
+ )))?>
6
  <i id="ppsPopupLabelEditMsg" class="fa fa-fw fa-pencil"></i>
7
  </span>&raquo;&nbsp;
8
  <span id="ppsPopupMainControllsShell" style="float: right; padding-right: 95px;">
32
  <form id="ppsPopupSaveAsCopyForm">
33
  <label>
34
  <?php _e('New Name', PPS_LANG_CODE)?>:
35
+ <?php echo viewPps::ksesString(htmlPps::text('copy_label', array('value' => $this->popup['label']. ' '. __('Copy', PPS_LANG_CODE), 'required' => true)))?>
36
  </label>
37
  <div id="ppsPopupSaveAsCopyMsg"></div>
38
+ <?php echo viewPps::ksesString(htmlPps::hidden('mod', array('value' => 'popup')))?>
39
+ <?php echo viewPps::ksesString(htmlPps::hidden('action', array('value' => 'saveAsCopy')))?>
40
+ <?php echo viewPps::ksesString(htmlPps::hidden('id', array('value' => $this->popup['id'])))?>
41
  </form>
42
  </div>
modules/popup/views/tpl/popupHtml.php CHANGED
@@ -1,4 +1,4 @@
1
  <style type="text/css">
2
- <?php echo $this->popup['css']?>
3
  </style>
4
- <?php echo $this->popup['html']?>
1
  <style type="text/css">
2
+ <?php echo viewPps::ksesString($this->popup['css']);?>
3
  </style>
4
+ <?php echo viewPps::ksesString($this->popup['html']);?>
modules/statistics/controller.php CHANGED
@@ -61,7 +61,7 @@ class statisticsControllerPps extends controllerPps {
61
  }
62
  $csvGenerator->generate();
63
  } else {
64
- echo implode('<br />', $this->getModel()->getErrors());
65
  }
66
  exit();
67
  }
61
  }
62
  $csvGenerator->generate();
63
  } else {
64
+ echo viewPps::ksesString(implode('<br />', $this->getModel()->getErrors()));
65
  }
66
  exit();
67
  }
modules/statistics/views/tpl/statPopupEditTab.php CHANGED
@@ -2,16 +2,16 @@
2
  <tr>
3
  <th scope="row" style="min-width: 250px;">
4
  <?php _e('Enable Google Analytics', PPS_LANG_CODE)?>
5
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('Will enable Google Analytics for your PopUp - and you will be able to check PopUp statistics from your Google Analytics account', PPS_LANG_CODE))?>"></i>
6
  <?php if(!$this->isPro) {?>
7
- <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=google_analytics&utm_campaign=popup');?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
8
  <?php }?>
9
  </th>
10
  <td>
11
- <?php echo htmlPps::text('params[tpl][stat_ga_code]', array(
12
  'value' => (isset($this->popup['params']['tpl']['stat_ga_code']) ? $this->popup['params']['tpl']['stat_ga_code'] : ''),
13
  'attrs' => 'placeholder="'. __('Your Google Analytics Tracking ID').'" class="ppsProOpt" style="width: 250px;"'
14
- ))?>
15
  </td>
16
  </tr>
17
  </table>
@@ -25,8 +25,8 @@
25
  <?php _e('Main PopUp Usage Statistics', PPS_LANG_CODE)?>
26
  <div style="float: right;">
27
  <a id="ppsPopupStatClearDateBtn" href="#" class="button" style="display: none;"><?php _e('Clear selection')?></a>
28
- <?php echo htmlPps::text('stat_from_txt', array('placeholder' => __('From', PPS_LANG_CODE), 'attrs' => 'style="font-weight: normal;"'))?>
29
- <?php echo htmlPps::text('stat_to_txt', array('placeholder' => __('To', PPS_LANG_CODE), 'attrs' => 'style="font-weight: normal;"'))?>
30
  </div>
31
  </span>
32
  <hr>
@@ -51,10 +51,10 @@
51
  <a href="#" class="button" data-stat-group="week"><?php _e('Week', PPS_LANG_CODE)?></a>
52
  <a href="#" class="button" data-stat-group="month"><?php _e('Month', PPS_LANG_CODE)?></a>
53
  |
54
- <a href="<?php echo uriPps::mod('statistics', 'getCsv', array('id' => $this->popup['id']))?>" target="_blank" class="button" id="ppsPopupStatExportCsv"><?php _e('Export to CSV', PPS_LANG_CODE)?></a>
55
  |
56
  </span>
57
- <a href="#" id="ppsPopupStatClear" data-id="<?php echo $this->popup['id']?>" class="button">
58
  <i class="fa fa-trash"></i>
59
  <?php _e('Clear data', PPS_LANG_CODE)?>
60
  </a>
@@ -92,12 +92,12 @@
92
  <tr>
93
  <th scope="row" style="min-width: 250px;">
94
  <?php _e('Disable Statistics', PPS_LANG_CODE)?>
95
- <i class="fa fa-question supsystic-tooltip" title="<?php echo esc_html(__('You can disable collecting all statistics at all. This is not recomended, but if you need this - you can do it.', PPS_LANG_CODE))?>"></i>
96
  </th>
97
  <td>
98
- <?php echo htmlPps::checkbox('params[tpl][dsbl_stats]', array(
99
  'checked' => (isset($this->popup['params']['tpl']['dsbl_stats']) ? $this->popup['params']['tpl']['dsbl_stats'] : false),
100
- ))?>
101
  </td>
102
  </tr>
103
- </table>
2
  <tr>
3
  <th scope="row" style="min-width: 250px;">
4
  <?php _e('Enable Google Analytics', PPS_LANG_CODE)?>
5
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('Will enable Google Analytics for your PopUp - and you will be able to check PopUp statistics from your Google Analytics account', PPS_LANG_CODE)))?>"></i>
6
  <?php if(!$this->isPro) {?>
7
+ <span class="ppsProOptMiniLabel"><a target="_blank" href="<?php echo viewPps::ksesString(esc_html(framePps::_()->getModule('supsystic_promo')->generateMainLink('utm_source=plugin&utm_medium=google_analytics&utm_campaign=popup')));?>"><?php _e('PRO option', PPS_LANG_CODE)?></a></span>
8
  <?php }?>
9
  </th>
10
  <td>
11
+ <?php echo viewPps::ksesString(htmlPps::text('params[tpl][stat_ga_code]', array(
12
  'value' => (isset($this->popup['params']['tpl']['stat_ga_code']) ? $this->popup['params']['tpl']['stat_ga_code'] : ''),
13
  'attrs' => 'placeholder="'. __('Your Google Analytics Tracking ID').'" class="ppsProOpt" style="width: 250px;"'
14
+ )))?>
15
  </td>
16
  </tr>
17
  </table>
25
  <?php _e('Main PopUp Usage Statistics', PPS_LANG_CODE)?>
26
  <div style="float: right;">
27
  <a id="ppsPopupStatClearDateBtn" href="#" class="button" style="display: none;"><?php _e('Clear selection')?></a>
28
+ <?php echo viewPps::ksesString(htmlPps::text('stat_from_txt', array('placeholder' => __('From', PPS_LANG_CODE), 'attrs' => 'style="font-weight: normal;"')))?>
29
+ <?php echo viewPps::ksesString(htmlPps::text('stat_to_txt', array('placeholder' => __('To', PPS_LANG_CODE), 'attrs' => 'style="font-weight: normal;"')))?>
30
  </div>
31
  </span>
32
  <hr>
51
  <a href="#" class="button" data-stat-group="week"><?php _e('Week', PPS_LANG_CODE)?></a>
52
  <a href="#" class="button" data-stat-group="month"><?php _e('Month', PPS_LANG_CODE)?></a>
53
  |
54
+ <a href="<?php echo viewPps::ksesString(uriPps::mod('statistics', 'getCsv', array('id' => $this->popup['id'])))?>" target="_blank" class="button" id="ppsPopupStatExportCsv"><?php _e('Export to CSV', PPS_LANG_CODE)?></a>
55
  |
56
  </span>
57
+ <a href="#" id="ppsPopupStatClear" data-id="<?php echo viewPps::ksesString($this->popup['id'])?>" class="button">
58
  <i class="fa fa-trash"></i>
59
  <?php _e('Clear data', PPS_LANG_CODE)?>
60
  </a>
92
  <tr>
93
  <th scope="row" style="min-width: 250px;">
94
  <?php _e('Disable Statistics', PPS_LANG_CODE)?>
95
+ <i class="fa fa-question supsystic-tooltip" title="<?php echo viewPps::ksesString(esc_html(__('You can disable collecting all statistics at all. This is not recomended, but if you need this - you can do it.', PPS_LANG_CODE)))?>"></i>
96
  </th>
97
  <td>
98
+ <?php echo viewPps::ksesString(htmlPps::checkbox('params[tpl][dsbl_stats]', array(
99
  'checked' => (isset($this->popup['params']['tpl']['dsbl_stats']) ? $this->popup['params']['tpl']['dsbl_stats'] : false),
100
+ )))?>
101
  </td>
102
  </tr>
103
+ </table>
modules/subscribe/views/tpl/subSuccessPage.php CHANGED
@@ -6,9 +6,9 @@
6
  <link rel="profile" href="http://gmpg.org/xfn/11">
7
  <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
8
  <title>
9
- <?php echo ($this->forReg
10
- ? __('Registration Confirmation', PPS_LANG_CODE)
11
- : __('Subscribe Confirmation', PPS_LANG_CODE))?>
12
  </title>
13
  <style type="text/css">
14
  html, body {
@@ -17,7 +17,7 @@
17
  }
18
  a {
19
  color: #2866ff;
20
-
21
  }
22
  .ppsConfirmMainShell {
23
  border: 1px solid #a1a1a1;
@@ -49,23 +49,23 @@
49
  $errors = $this->res->getErrors();
50
  ?>
51
  <h1 class="ppsConfirmTitle">
52
- <?php echo ($this->forReg
53
- ? __('Some errors occured while trying to registrate', PPS_LANG_CODE)
54
- : __('Some errors occured while trying to subscribe', PPS_LANG_CODE))?>
55
  </h1>
56
  <div class="ppsConfirmContent">
57
- <div class="ppsErrorMsg"><?php echo implode('<br />', $errors)?></div>
58
  </div>
59
  <?php
60
  } else {
61
  $pref = $this->forReg ? 'reg' : 'sub';
62
- $defaultSuccessMsg = $this->forReg
63
- ? __('Thank you for registration!', PPS_LANG_CODE)
64
  : __('Thank you for subscribing!', PPS_LANG_CODE);
65
  $successMessage = $this->popup && isset($this->popup['params']['tpl'][$pref. '_txt_success'])
66
  ? $this->popup['params']['tpl'][$pref. '_txt_success']
67
  : $defaultSuccessMsg;
68
- if(isset($this->popup['params']['tpl'][$pref. '_redirect_url'])
69
  && !empty($this->popup['params']['tpl'][$pref. '_redirect_url'])
70
  ) {
71
  $redirectUrl = $this->popup['params']['tpl'][$pref. '_redirect_url'];
@@ -76,23 +76,23 @@
76
  }
77
  $redirectUrl = uriPps::normal( $redirectUrl );
78
  $autoRedirectTime = 10;
79
- if(isset($this->popup['params']['tpl']['sub_confirm_reload_time'])
80
  && !empty($this->popup['params']['tpl']['sub_confirm_reload_time'])
81
  ) {
82
  $autoRedirectTime = (int) $this->popup['params']['tpl']['sub_confirm_reload_time'];
83
  }
84
  ?>
85
- <h1 class="ppsConfirmTitle"><?php echo ($this->forReg
86
- ? __('Registration confirmed', PPS_LANG_CODE)
87
- : __('Subscription confirmed', PPS_LANG_CODE))?></h1>
88
  <div class="ppsConfirmContent">
89
- <?php echo $successMessage;?>
90
  </div>
91
  <div class="ppsConfirmRedirectShell">
92
  <?php printf(__('<a href="%s">Back to site</a> in <i id="ppsConfirmBackCounter">%d</i> seconds'), $redirectUrl, $autoRedirectTime)?>
93
  </div>
94
  <script type="text/javascript">
95
- var ppsAutoRedirectTime = <?php echo $autoRedirectTime;?>
96
  , ppsAutoRedirectTimeLeft = ppsAutoRedirectTime;
97
  function ppsAutoRedirectWaitClb() {
98
  ppsAutoRedirectTime--;
@@ -100,7 +100,7 @@
100
  document.getElementById('ppsConfirmBackCounter').innerHTML = ppsAutoRedirectTime;
101
  setTimeout(ppsAutoRedirectWaitClb, 1000);
102
  } else {
103
- window.location.href = '<?php echo $redirectUrl?>';
104
  }
105
  }
106
  setTimeout(ppsAutoRedirectWaitClb, 1000);
@@ -109,4 +109,4 @@
109
  }?>
110
  </div>
111
  </body>
112
- </html>
6
  <link rel="profile" href="http://gmpg.org/xfn/11">
7
  <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
8
  <title>
9
+ <?php echo viewPps::ksesString(($this->forReg
10
+ ? __('Registration Confirmation', PPS_LANG_CODE)
11
+ : __('Subscribe Confirmation', PPS_LANG_CODE)))?>
12
  </title>
13
  <style type="text/css">
14
  html, body {
17
  }
18
  a {
19
  color: #2866ff;
20
+
21
  }
22
  .ppsConfirmMainShell {
23
  border: 1px solid #a1a1a1;
49
  $errors = $this->res->getErrors();
50
  ?>
51
  <h1 class="ppsConfirmTitle">
52
+ <?php echo viewPps::ksesString(($this->forReg
53
+ ? __('Some errors occured while trying to registrate', PPS_LANG_CODE)
54
+ : __('Some errors occured while trying to subscribe', PPS_LANG_CODE)))?>
55
  </h1>
56
  <div class="ppsConfirmContent">
57
+ <div class="ppsErrorMsg"><?php echo viewPps::ksesString(implode('<br />', $errors))?></div>
58
  </div>
59
  <?php
60
  } else {
61
  $pref = $this->forReg ? 'reg' : 'sub';
62
+ $defaultSuccessMsg = $this->forReg
63
+ ? __('Thank you for registration!', PPS_LANG_CODE)
64
  : __('Thank you for subscribing!', PPS_LANG_CODE);
65
  $successMessage = $this->popup && isset($this->popup['params']['tpl'][$pref. '_txt_success'])
66
  ? $this->popup['params']['tpl'][$pref. '_txt_success']
67
  : $defaultSuccessMsg;
68
+ if(isset($this->popup['params']['tpl'][$pref. '_redirect_url'])
69
  && !empty($this->popup['params']['tpl'][$pref. '_redirect_url'])
70
  ) {
71
  $redirectUrl = $this->popup['params']['tpl'][$pref. '_redirect_url'];
76
  }
77
  $redirectUrl = uriPps::normal( $redirectUrl );
78
  $autoRedirectTime = 10;
79
+ if(isset($this->popup['params']['tpl']['sub_confirm_reload_time'])
80
  && !empty($this->popup['params']['tpl']['sub_confirm_reload_time'])
81
  ) {
82
  $autoRedirectTime = (int) $this->popup['params']['tpl']['sub_confirm_reload_time'];
83
  }
84
  ?>
85
+ <h1 class="ppsConfirmTitle"><?php echo viewPps::ksesString(($this->forReg
86
+ ? __('Registration confirmed', PPS_LANG_CODE)
87
+ : __('Subscription confirmed', PPS_LANG_CODE)))?></h1>
88
  <div class="ppsConfirmContent">
89
+ <?php echo viewPps::ksesString($successMessage);?>
90
  </div>
91
  <div class="ppsConfirmRedirectShell">
92
  <?php printf(__('<a href="%s">Back to site</a> in <i id="ppsConfirmBackCounter">%d</i> seconds'), $redirectUrl, $autoRedirectTime)?>
93
  </div>
94
  <script type="text/javascript">
95
+ var ppsAutoRedirectTime = <?php echo viewPps::ksesString($autoRedirectTime);?>
96
  , ppsAutoRedirectTimeLeft = ppsAutoRedirectTime;
97
  function ppsAutoRedirectWaitClb() {
98
  ppsAutoRedirectTime--;
100
  document.getElementById('ppsConfirmBackCounter').innerHTML = ppsAutoRedirectTime;
101
  setTimeout(ppsAutoRedirectWaitClb, 1000);
102
  } else {
103
+ window.location.href = '<?php echo viewPps::ksesString($redirectUrl)?>';
104
  }
105
  }
106
  setTimeout(ppsAutoRedirectWaitClb, 1000);
109
  }?>
110
  </div>
111
  </body>
112
+ </html>
modules/supsystic_promo/mod.php CHANGED
@@ -584,7 +584,7 @@ array('label' => 'Lavender Mood', 'img_preview' => '2016-11-lavender-mood-prev.p
584
  framePps::_()->addJSVar(PPS_CODE. '.admin.plugins', 'ppsPluginsData', array(
585
  'plugSlug' => PPS_PLUG_NAME,
586
  ));
587
- echo $this->getView()->getPluginDeactivation();
588
  }
589
  }
590
  }
584
  framePps::_()->addJSVar(PPS_CODE. '.admin.plugins', 'ppsPluginsData', array(
585
  'plugSlug' => PPS_PLUG_NAME,
586
  ));
587
+ echo viewPps::ksesString($this->getView()->getPluginDeactivation());
588
  }
589
  }
590
  }
modules/supsystic_promo/views/tpl/additionalmainAdminShowOnOptions.php CHANGED
@@ -1,10 +1,10 @@
1
- <label class="supsystic-tooltip-right" title="<?php echo esc_html(sprintf(__('Show when user tries to exit from your site. <a target="_blank" href="%s">Check example.</a>', PPS_LANG_CODE), 'http://supsystic.com/exit-popup/?utm_source=plugin&utm_medium=onexit&utm_campaign=popup'))?>">
2
- <a target="_blank" href="<?php echo esc_html($this->promoLink)?>" class="sup-promolink-input">
3
- <?php echo htmlPps::radiobutton('promo_show_on_opt', array(
4
  'value' => 'on_exit_promo',
5
  'checked' => false,
6
- ))?>
7
  <?php _e('On Exit from Site', PPS_LANG_CODE)?>
8
  </a>
9
- <a target="_blank" href="<?php echo esc_html($this->promoLink)?>"><?php _e('Available in PRO')?></a>
10
  </label>
1
+ <label class="supsystic-tooltip-right" title="<?php echo viewPps::ksesString(esc_html(sprintf(__('Show when user tries to exit from your site. <a target="_blank" href="%s">Check example.</a>', PPS_LANG_CODE), 'http://supsystic.com/exit-popup/?utm_source=plugin&utm_medium=onexit&utm_campaign=popup')))?>">
2
+ <a target="_blank" href="<?php echo viewPps::ksesString(esc_html($this->promoLink))?>" class="sup-promolink-input">
3
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('promo_show_on_opt', array(
4
  'value' => 'on_exit_promo',
5
  'checked' => false,
6
+ )))?>
7
  <?php _e('On Exit from Site', PPS_LANG_CODE)?>
8
  </a>
9
+ <a target="_blank" href="<?php echo viewPps::ksesString(esc_html($this->promoLink))?>"><?php _e('Available in PRO')?></a>
10
  </label>
modules/supsystic_promo/views/tpl/adminFooter.php CHANGED
@@ -1,13 +1,13 @@
1
  <div class="ppsAdminFooterShell">
2
  <div class="ppsAdminFooterCell">
3
- <?php echo PPS_WP_PLUGIN_NAME?>
4
  <?php _e('Version', PPS_LANG_CODE)?>:
5
- <a target="_blank" href="http://wordpress.org/plugins/popup-by-supsystic/changelog/"><?php echo PPS_VERSION?></a>
6
  </div>
7
  <div class="ppsAdminFooterCell">|</div>
8
  <?php if(!framePps::_()->getModule(implode('', array('l','ic','e','ns','e')))) {?>
9
  <div class="ppsAdminFooterCell">
10
- <?php _e('Go', PPS_LANG_CODE)?>&nbsp;<a target="_blank" href="<?php echo esc_html($this->getModule()->getMainLink());?>"><?php _e('PRO', PPS_LANG_CODE)?></a>
11
  </div>
12
  <div class="ppsAdminFooterCell">|</div>
13
  <?php } ?>
1
  <div class="ppsAdminFooterShell">
2
  <div class="ppsAdminFooterCell">
3
+ <?php echo viewPps::ksesString(PPS_WP_PLUGIN_NAME)?>
4
  <?php _e('Version', PPS_LANG_CODE)?>:
5
+ <a target="_blank" href="http://wordpress.org/plugins/popup-by-supsystic/changelog/"><?php echo viewPps::ksesString(PPS_VERSION)?></a>
6
  </div>
7
  <div class="ppsAdminFooterCell">|</div>
8
  <?php if(!framePps::_()->getModule(implode('', array('l','ic','e','ns','e')))) {?>
9
  <div class="ppsAdminFooterCell">
10
+ <?php _e('Go', PPS_LANG_CODE)?>&nbsp;<a target="_blank" href="<?php echo viewPps::ksesString(esc_html($this->getModule()->getMainLink()));?>"><?php _e('PRO', PPS_LANG_CODE)?></a>
11
  </div>
12
  <div class="ppsAdminFooterCell">|</div>
13
  <?php } ?>
modules/supsystic_promo/views/tpl/layeredStylePromo.php CHANGED
@@ -1,10 +1,10 @@
1
  <div class="ppsPopupOptRow">
2
  <label>
3
  <a target="_blank" href="<?php echo esc_html($this->promoLink)?>" class="sup-promolink-input">
4
- <?php echo htmlPps::checkbox('layered_style_promo', array(
5
  'checked' => 1,
6
  //'attrs' => 'disabled="disabled"',
7
- ))?>
8
  <?php _e('Enable Layered PopUp Style', PPS_LANG_CODE)?>
9
  </a>
10
  <a target="_blank" class="button" style="margin-top: -8px;" href="<?php echo esc_html($this->promoLink)?>"><?php _e('Available in PRO', PPS_LANG_CODE)?></a>
@@ -29,7 +29,7 @@
29
  <div class="ppsLayeredPosCell" style="width: 30%;" data-pos="bottom_right"><span class="ppsLayeredPosCellContent"><?php _e('Bottom Right', PPS_LANG_CODE)?></span></div>
30
  <br style="clear: both;"/>
31
  </div>
32
- <?php echo htmlPps::hidden('params[tpl][layered_pos]')?>
33
  </div>
34
  </span>
35
  <style type="text/css">
1
  <div class="ppsPopupOptRow">
2
  <label>
3
  <a target="_blank" href="<?php echo esc_html($this->promoLink)?>" class="sup-promolink-input">
4
+ <?php echo viewPps::ksesString(htmlPps::checkbox('layered_style_promo', array(
5
  'checked' => 1,
6
  //'attrs' => 'disabled="disabled"',
7
+ )))?>
8
  <?php _e('Enable Layered PopUp Style', PPS_LANG_CODE)?>
9
  </a>
10
  <a target="_blank" class="button" style="margin-top: -8px;" href="<?php echo esc_html($this->promoLink)?>"><?php _e('Available in PRO', PPS_LANG_CODE)?></a>
29
  <div class="ppsLayeredPosCell" style="width: 30%;" data-pos="bottom_right"><span class="ppsLayeredPosCellContent"><?php _e('Bottom Right', PPS_LANG_CODE)?></span></div>
30
  <br style="clear: both;"/>
31
  </div>
32
+ <?php echo viewPps::ksesString(htmlPps::hidden('params[tpl][layered_pos]'))?>
33
  </div>
34
  </span>
35
  <style type="text/css">
modules/supsystic_promo/views/tpl/overviewTabContent.php CHANGED
@@ -7,12 +7,12 @@
7
  <?php foreach($this->faqList as $title => $desc) { ?>
8
  <div class="faq-title">
9
  <i class="fa fa-info-circle"></i>
10
- <?php echo $title;?>
11
- <div class="description" style="display: none;"><?php echo $desc;?></div>
12
  </div>
13
  <?php }?>
14
  <div style="clear: both;"></div>
15
- <a target="_blank" class="button button-primary button-hero" href="<?php echo $this->mainLink?>#faq" style="float: right;">
16
  <i class="fa fa-info-circle"></i>
17
  <?php _e('Check all FAQs', PPS_LANG_CODE)?>
18
  </a>
@@ -30,7 +30,7 @@
30
  <div class="banner">
31
  <div class="text-block"><?php _e('If you want to host a business site or a blog, Kinsta managed WordPress hosting is the best place to stop on. Without any hesitation, we can say Kinsta is incredible when it comes to uptime and speed.', PPS_LANG_CODE)?></div>
32
  <a href="https://kinsta.com?kaid=MNRQQASUYJRT">
33
- <img src="<?php echo framePps::_()->getModule('supsystic_promo')->getModPath()?>img/kinsta_banner.png" style="width: 300px;height: 250px;" />
34
  </a>
35
  </div>
36
  <div class="server-settings">
@@ -51,7 +51,7 @@
51
  <div class="supsystic-overview-news-content">
52
  <?php echo viewPps::ksesString($this->news); ?>
53
  </div>
54
- <a href="<?php echo esc_html($this->mainLink)?>" class="button button-primary button-hero" style="float: right; margin-top: 10px;">
55
  <i class="fa fa-info-circle"></i>
56
  <?php _e('All news and info', PPS_LANG_CODE)?>
57
  </a>
@@ -77,7 +77,7 @@
77
  ?>
78
  <tr>
79
  <th scope="row">
80
- <label for="<?php echo esc_html($id)?>"><?php echo esc_html($fData['label'])?></label>
81
  </th>
82
  <td>
83
  <?php echo viewPps::ksesString(htmlPps::$htmlType($fName, $htmlParams)); ?>
@@ -86,8 +86,8 @@
86
  <?php }?>
87
  <tr>
88
  <th scope="row" colspan="2">
89
- <?php echo htmlPps::hidden('mod', array('value' => 'supsystic_promo'))?>
90
- <?php echo htmlPps::hidden('action', array('value' => 'sendContact'))?>
91
  <button class="button button-primary button-hero" style="float: right;">
92
  <i class="fa fa-upload"></i>
93
  <?php _e('Send email', PPS_LANG_CODE)?>
7
  <?php foreach($this->faqList as $title => $desc) { ?>
8
  <div class="faq-title">
9
  <i class="fa fa-info-circle"></i>
10
+ <?php echo viewPps::ksesString($title);?>
11
+ <div class="description" style="display: none;"><?php echo viewPps::ksesString($desc);?></div>
12
  </div>
13
  <?php }?>
14
  <div style="clear: both;"></div>
15
+ <a target="_blank" class="button button-primary button-hero" href="<?php echo viewPps::ksesString($this->mainLink)?>#faq" style="float: right;">
16
  <i class="fa fa-info-circle"></i>
17
  <?php _e('Check all FAQs', PPS_LANG_CODE)?>
18
  </a>
30
  <div class="banner">
31
  <div class="text-block"><?php _e('If you want to host a business site or a blog, Kinsta managed WordPress hosting is the best place to stop on. Without any hesitation, we can say Kinsta is incredible when it comes to uptime and speed.', PPS_LANG_CODE)?></div>
32
  <a href="https://kinsta.com?kaid=MNRQQASUYJRT">
33
+ <img src="<?php echo viewPps::ksesString(framePps::_()->getModule('supsystic_promo')->getModPath())?>img/kinsta_banner.png" style="width: 300px;height: 250px;" />
34
  </a>
35
  </div>
36
  <div class="server-settings">
51
  <div class="supsystic-overview-news-content">
52
  <?php echo viewPps::ksesString($this->news); ?>
53
  </div>
54
+ <a href="<?php echo viewPps::ksesString(esc_html($this->mainLink))?>" class="button button-primary button-hero" style="float: right; margin-top: 10px;">
55
  <i class="fa fa-info-circle"></i>
56
  <?php _e('All news and info', PPS_LANG_CODE)?>
57
  </a>
77
  ?>
78
  <tr>
79
  <th scope="row">
80
+ <label for="<?php echo viewPps::ksesString(esc_html($id))?>"><?php echo viewPps::ksesString(esc_html($fData['label']))?></label>
81
  </th>
82
  <td>
83
  <?php echo viewPps::ksesString(htmlPps::$htmlType($fName, $htmlParams)); ?>
86
  <?php }?>
87
  <tr>
88
  <th scope="row" colspan="2">
89
+ <?php echo viewPps::ksesString(htmlPps::hidden('mod', array('value' => 'supsystic_promo')))?>
90
+ <?php echo viewPps::ksesString(htmlPps::hidden('action', array('value' => 'sendContact')))?>
91
  <button class="button button-primary button-hero" style="float: right;">
92
  <i class="fa fa-upload"></i>
93
  <?php _e('Send email', PPS_LANG_CODE)?>
modules/supsystic_promo/views/tpl/pluginDeactivation.php CHANGED
@@ -29,50 +29,50 @@
29
  <h4><?php printf(__('If you have a moment, please share why you are deactivating %s', PPS_LANG_CODE), PPS_WP_PLUGIN_NAME)?></h4>
30
  <form id="ppsDeactivateForm">
31
  <label class="ppsDeactivateReasonShell">
32
- <?php echo htmlPps::radiobutton('deactivate_reason', array(
33
  'value' => 'not_working',
34
- ))?>
35
  <?php _e('Couldn\'t get the plugin to work', PPS_LANG_CODE)?>
36
  <div class="ppsDeactivateDescShell">
37
  <?php printf(__('If you have a question, <a href="%s" target="_blank">contact us</a> and will do our best to help you'), 'https://supsystic.com/contact-us/?utm_source=plugin&utm_medium=deactivated_contact&utm_campaign=popup')?>
38
  </div>
39
  </label>
40
  <label class="ppsDeactivateReasonShell">
41
- <?php echo htmlPps::radiobutton('deactivate_reason', array(
42
  'value' => 'found_better',
43
- ))?>
44
  <?php _e('I found a better plugin', PPS_LANG_CODE)?>
45
  <div class="ppsDeactivateDescShell">
46
- <?php echo htmlPps::text('better_plugin', array(
47
  'placeholder' => __('If it\'s possible, specify plugin name', PPS_LANG_CODE),
48
- ))?>
49
  </div>
50
  </label>
51
  <label class="ppsDeactivateReasonShell">
52
- <?php echo htmlPps::radiobutton('deactivate_reason', array(
53
  'value' => 'not_need',
54
- ))?>
55
  <?php _e('I no longer need the plugin', PPS_LANG_CODE)?>
56
  </label>
57
  <label class="ppsDeactivateReasonShell">
58
- <?php echo htmlPps::radiobutton('deactivate_reason', array(
59
  'value' => 'temporary',
60
- ))?>
61
  <?php _e('It\'s a temporary deactivation', PPS_LANG_CODE)?>
62
  </label>
63
  <label class="ppsDeactivateReasonShell">
64
- <?php echo htmlPps::radiobutton('deactivate_reason', array(
65
  'value' => 'other',
66
- ))?>
67
  <?php _e('Other', PPS_LANG_CODE)?>
68
  <div class="ppsDeactivateDescShell">
69
- <?php echo htmlPps::text('other', array(
70
  'placeholder' => __('What is the reason?', PPS_LANG_CODE),
71
- ))?>
72
  </div>
73
  </label>
74
- <?php echo htmlPps::hidden('mod', array('value' => 'supsystic_promo'))?>
75
- <?php echo htmlPps::hidden('action', array('value' => 'saveDeactivateData'))?>
76
  </form>
77
  <a href="" class="ppsDeactivateSkipDataBtn"><?php _e('Skip & Deactivate', PPS_LANG_CODE)?></a>
78
- </div>
29
  <h4><?php printf(__('If you have a moment, please share why you are deactivating %s', PPS_LANG_CODE), PPS_WP_PLUGIN_NAME)?></h4>
30
  <form id="ppsDeactivateForm">
31
  <label class="ppsDeactivateReasonShell">
32
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('deactivate_reason', array(
33
  'value' => 'not_working',
34
+ )))?>
35
  <?php _e('Couldn\'t get the plugin to work', PPS_LANG_CODE)?>
36
  <div class="ppsDeactivateDescShell">
37
  <?php printf(__('If you have a question, <a href="%s" target="_blank">contact us</a> and will do our best to help you'), 'https://supsystic.com/contact-us/?utm_source=plugin&utm_medium=deactivated_contact&utm_campaign=popup')?>
38
  </div>
39
  </label>
40
  <label class="ppsDeactivateReasonShell">
41
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('deactivate_reason', array(
42
  'value' => 'found_better',
43
+ )))?>
44
  <?php _e('I found a better plugin', PPS_LANG_CODE)?>
45
  <div class="ppsDeactivateDescShell">
46
+ <?php echo viewPps::ksesString(htmlPps::text('better_plugin', array(
47
  'placeholder' => __('If it\'s possible, specify plugin name', PPS_LANG_CODE),
48
+ )))?>
49
  </div>
50
  </label>
51
  <label class="ppsDeactivateReasonShell">
52
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('deactivate_reason', array(
53
  'value' => 'not_need',
54
+ )))?>
55
  <?php _e('I no longer need the plugin', PPS_LANG_CODE)?>
56
  </label>
57
  <label class="ppsDeactivateReasonShell">
58
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('deactivate_reason', array(
59
  'value' => 'temporary',
60
+ )))?>
61
  <?php _e('It\'s a temporary deactivation', PPS_LANG_CODE)?>
62
  </label>
63
  <label class="ppsDeactivateReasonShell">
64
+ <?php echo viewPps::ksesString(htmlPps::radiobutton('deactivate_reason', array(
65
  'value' => 'other',
66
+ )))?>
67
  <?php _e('Other', PPS_LANG_CODE)?>
68
  <div class="ppsDeactivateDescShell">
69
+ <?php echo viewPps::ksesString(htmlPps::text('other', array(
70
  'placeholder' => __('What is the reason?', PPS_LANG_CODE),
71
+ )))?>
72
  </div>
73
  </label>
74
+ <?php echo viewPps::ksesString(htmlPps::hidden('mod', array('value' => 'supsystic_promo')))?>
75
+ <?php echo viewPps::ksesString(htmlPps::hidden('action', array('value' => 'saveDeactivateData')))?>
76
  </form>
77
  <a href="" class="ppsDeactivateSkipDataBtn"><?php _e('Skip & Deactivate', PPS_LANG_CODE)?></a>
78
+ </div>
pps.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Popup by Supsystic
4
  * Plugin URI: https://supsystic.com/plugins/popup-plugin/
5
  * Description: The Best WordPress popup plugin to help you gain more subscribers, social followers or advertisement. Responsive popups with friendly options
6
- * Version: 1.10.12
7
  * Author: supsystic.com
8
  * Author URI: https://supsystic.com
9
  * Text Domain: popup-by-supsystic
3
  * Plugin Name: Popup by Supsystic
4
  * Plugin URI: https://supsystic.com/plugins/popup-plugin/
5
  * Description: The Best WordPress popup plugin to help you gain more subscribers, social followers or advertisement. Responsive popups with friendly options
6
+ * Version: 1.10.13
7
  * Author: supsystic.com
8
  * Author URI: https://supsystic.com
9
  * Text Domain: popup-by-supsystic
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: supsystic.com
3
  Donate link: https://supsystic.com/plugins/popup-plugin
4
  Tags: popup, popup WordPress plugin, marketing, popover, pop-up, popup builder, social popup, facebook popup, popup builder, popup maker
5
  Tested up to: 5.9
6
- Stable tag: 1.10.12
7
 
8
  Create elegant popup easily with Popup Builder by Supsystic. Popup with Subscription Forms, Facebook popup, Optin and Social locks, Contact Forms etc.
9
 
@@ -116,6 +116,9 @@ Enable “Redirect after close” option in Appearance setting on the Design tab
116
  Leave us a nice review 🙂
117
 
118
  == Changelog ==
 
 
 
119
  = 1.10.12 / 11.04.2022 =
120
  * Add fix for wp review
121
 
3
  Donate link: https://supsystic.com/plugins/popup-plugin
4
  Tags: popup, popup WordPress plugin, marketing, popover, pop-up, popup builder, social popup, facebook popup, popup builder, popup maker
5
  Tested up to: 5.9
6
+ Stable tag: 1.10.13
7
 
8
  Create elegant popup easily with Popup Builder by Supsystic. Popup with Subscription Forms, Facebook popup, Optin and Social locks, Contact Forms etc.
9
 
116
  Leave us a nice review 🙂
117
 
118
  == Changelog ==
119
+ = 1.10.13 / 13.04.2022 =
120
+ * Add fix for wp review
121
+
122
  = 1.10.12 / 11.04.2022 =
123
  * Add fix for wp review
124