Popup by Supsystic - Version 1.10.11

Version Description

Download this release

Release Info

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

Code changes from version 1.10.10 to 1.10.11

classes/errors.php CHANGED
@@ -4,10 +4,10 @@ class errorsPps {
4
  const MOD_INSTALL = 'mod_install';
5
  static private $errors = array();
6
  static private $haveErrors = false;
7
-
8
  static public $current = array();
9
  static public $displayed = false;
10
-
11
  static public function push($error, $type = 'common') {
12
  if(!isset(self::$errors[$type]))
13
  self::$errors[$type] = array();
@@ -16,8 +16,8 @@ class errorsPps {
16
  else
17
  self::$errors[$type][] = $error;
18
  self::$haveErrors = true;
19
-
20
- if($type == 'session')
21
  self::setSession(self::$errors[$type]);
22
  }
23
  static public function setSession($error) {
@@ -53,7 +53,7 @@ class errorsPps {
53
  foreach(self::$current as $error) {
54
  $html .= '<div class="error"><p><strong style="font-size: 15px;">'. $error. '</strong></p></div>';
55
  }
56
- echo $html;
57
  }
58
  }
59
  static public function appendErrorsContent($content) {
@@ -78,7 +78,7 @@ class errorsPps {
78
  $res[] = $error;
79
  }
80
  }
81
- } else
82
  $res = self::$errors[$type];
83
  }
84
  return $res;
@@ -90,4 +90,3 @@ class errorsPps {
90
  return isset(self::$errors[$type]);
91
  }
92
  }
93
-
4
  const MOD_INSTALL = 'mod_install';
5
  static private $errors = array();
6
  static private $haveErrors = false;
7
+
8
  static public $current = array();
9
  static public $displayed = false;
10
+
11
  static public function push($error, $type = 'common') {
12
  if(!isset(self::$errors[$type]))
13
  self::$errors[$type] = array();
16
  else
17
  self::$errors[$type][] = $error;
18
  self::$haveErrors = true;
19
+
20
+ if($type == 'session')
21
  self::setSession(self::$errors[$type]);
22
  }
23
  static public function setSession($error) {
53
  foreach(self::$current as $error) {
54
  $html .= '<div class="error"><p><strong style="font-size: 15px;">'. $error. '</strong></p></div>';
55
  }
56
+ echo viewPps::ksesString($html);
57
  }
58
  }
59
  static public function appendErrorsContent($content) {
78
  $res[] = $error;
79
  }
80
  }
81
+ } else
82
  $res = self::$errors[$type];
83
  }
84
  return $res;
90
  return isset(self::$errors[$type]);
91
  }
92
  }
 
classes/field.php CHANGED
@@ -68,8 +68,8 @@ class fieldPps {
68
  $this->validate[] = $validate;
69
  }
70
  /**
71
- * Set $value property.
72
- * Sure - it is public and can be set directly, but it can be more
73
  * comfortable to use this method in future
74
  * @param mixed $value value to be set
75
  */
@@ -200,15 +200,17 @@ class fieldPps {
200
  break;
201
  }
202
  if($echo)
203
- echo $value;
204
  else
205
  return $value;
206
  }
207
  public function showValue() {
208
- echo $this->displayValue();
 
209
  }
210
  public function display($tag = 1, $id = 0) {
211
- echo $this->drawHtml($tag, $id);
 
212
  }
213
  public function addHtmlParam($name, $value) {
214
  $this->htmlParams[$name] = $value;
@@ -227,10 +229,10 @@ class fieldPps {
227
  }
228
  /**
229
  * Function to display userfields in front-end
230
- *
231
  * @param string $name
232
  * @param mixed $fieldValue
233
- * @return string
234
  */
235
  public function viewField($name, $fieldValue = '') {
236
  $method = $this->html;
@@ -273,12 +275,12 @@ class fieldPps {
273
  }
274
  $add_option = '';
275
  switch ($tag) {
276
- case 5:
277
  $add_option = __('Add Checkbox', PPS_LANG_CODE);
278
  $options_tag = '';
279
  $image_tag = ' style="display:none"';
280
  break;
281
- case 9:
282
  $add_option = __('Add Item', PPS_LANG_CODE);
283
  $options_tag = '';
284
  $image_tag = ' style="display:none"';
@@ -331,7 +333,7 @@ class fieldPps {
331
 
332
  /**
333
  * Check if the element exists in array
334
- * @param array $param
335
  */
336
  function checkVarFromParam($param, $element) {
337
  return utilsPps::xmlAttrToStr($param, $element);
@@ -345,13 +347,13 @@ class fieldPps {
345
 
346
  /**
347
  * Prepares configuration options
348
- *
349
  * @param file $xml
350
- * @return array $config_params
351
  */
352
  public function prepareConfigOptions($xml) {
353
  // load xml structure of parameters
354
- $config = simplexml_load_file($xml);
355
  $config_params = array();
356
  foreach ($config->params->param as $param) {
357
  // read the variables
@@ -384,14 +386,14 @@ class fieldPps {
384
  }
385
  /**
386
  * Displays the config options for given module
387
- *
388
- * @param string $module
389
  * @param array $addDefaultOptions - if you want to add some additionsl options - specify it here
390
  */
391
  public function drawConfig($module, $additionalOptions = array()) {
392
- if(!framePps::_()->getModule($module))
393
- return false;
394
- // check for xml file with params structure
395
  if(framePps::_()->getModule($module)->isExternal())
396
  $config_xml = framePps::_()->getModule($module)->getModDir(). 'mod.xml';
397
  else
@@ -436,7 +438,7 @@ class fieldPps {
436
  $keyVal = array_map('trim', explode('=>', $string));
437
  $options[ $keyVal[0] ] = $keyVal[1];
438
  } else {
439
- $options[$string] = $string;
440
  }
441
  }
442
  } else {
@@ -458,12 +460,12 @@ class fieldPps {
458
  if (method_exists($helper, $helper_name))
459
  $options = $helper->$helper_name();
460
  }
461
- }
462
  if (isset($param[$key])) {
463
  $fieldValue = $param[$key];
464
  } else {
465
  if ($fieldValue == '')
466
- $fieldValue = $configOptions[$key]['default'];
467
  }
468
  // filling the parameters to build html element
469
  $htmlParams = array('value'=>$fieldValue,'optionsPps'=>$options);
68
  $this->validate[] = $validate;
69
  }
70
  /**
71
+ * Set $value property.
72
+ * Sure - it is public and can be set directly, but it can be more
73
  * comfortable to use this method in future
74
  * @param mixed $value value to be set
75
  */
200
  break;
201
  }
202
  if($echo)
203
+ echo viewPps::ksesString($value);
204
  else
205
  return $value;
206
  }
207
  public function showValue() {
208
+ $val = $this->displayValue();
209
+ echo viewPps::ksesString($val);
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;
229
  }
230
  /**
231
  * Function to display userfields in front-end
232
+ *
233
  * @param string $name
234
  * @param mixed $fieldValue
235
+ * @return string
236
  */
237
  public function viewField($name, $fieldValue = '') {
238
  $method = $this->html;
275
  }
276
  $add_option = '';
277
  switch ($tag) {
278
+ case 5:
279
  $add_option = __('Add Checkbox', PPS_LANG_CODE);
280
  $options_tag = '';
281
  $image_tag = ' style="display:none"';
282
  break;
283
+ case 9:
284
  $add_option = __('Add Item', PPS_LANG_CODE);
285
  $options_tag = '';
286
  $image_tag = ' style="display:none"';
333
 
334
  /**
335
  * Check if the element exists in array
336
+ * @param array $param
337
  */
338
  function checkVarFromParam($param, $element) {
339
  return utilsPps::xmlAttrToStr($param, $element);
347
 
348
  /**
349
  * Prepares configuration options
350
+ *
351
  * @param file $xml
352
+ * @return array $config_params
353
  */
354
  public function prepareConfigOptions($xml) {
355
  // load xml structure of parameters
356
+ $config = simplexml_load_file($xml);
357
  $config_params = array();
358
  foreach ($config->params->param as $param) {
359
  // read the variables
386
  }
387
  /**
388
  * Displays the config options for given module
389
+ *
390
+ * @param string $module
391
  * @param array $addDefaultOptions - if you want to add some additionsl options - specify it here
392
  */
393
  public function drawConfig($module, $additionalOptions = array()) {
394
+ if(!framePps::_()->getModule($module))
395
+ return false;
396
+ // check for xml file with params structure
397
  if(framePps::_()->getModule($module)->isExternal())
398
  $config_xml = framePps::_()->getModule($module)->getModDir(). 'mod.xml';
399
  else
438
  $keyVal = array_map('trim', explode('=>', $string));
439
  $options[ $keyVal[0] ] = $keyVal[1];
440
  } else {
441
+ $options[$string] = $string;
442
  }
443
  }
444
  } else {
460
  if (method_exists($helper, $helper_name))
461
  $options = $helper->$helper_name();
462
  }
463
+ }
464
  if (isset($param[$key])) {
465
  $fieldValue = $param[$key];
466
  } else {
467
  if ($fieldValue == '')
468
+ $fieldValue = $configOptions[$key]['default'];
469
  }
470
  // filling the parameters to build html element
471
  $htmlParams = array('value'=>$fieldValue,'optionsPps'=>$options);
classes/filegenerator.php CHANGED
@@ -34,7 +34,7 @@ class filegeneratorPps {
34
  $this->_getDefaultHeader();
35
  break;
36
  }
37
- echo $this->_data;
38
  exit();
39
  }
40
  protected function _getTxtHeader() {
34
  $this->_getDefaultHeader();
35
  break;
36
  }
37
+ echo viewPps::ksesString($this->_data);
38
  exit();
39
  }
40
  protected function _getTxtHeader() {
classes/lang.php CHANGED
@@ -65,7 +65,7 @@ class langPps {
65
  * @see self::_($name)
66
  */
67
  static public function _e($name) {
68
- echo self::_($name);
69
  }
70
  static public function getData() {
71
  return self::$_data;
65
  * @see self::_($name)
66
  */
67
  static public function _e($name) {
68
+ echo viewPps::ksesString(self::_($name));
69
  }
70
  static public function getData() {
71
  return self::$_data;
classes/modInstaller.php CHANGED
@@ -72,7 +72,7 @@ class modInstallerPps {
72
  if(mkdir(PPS_MODULES_DIR. $code)) {
73
  utilsPps::copyDirectories($path, PPS_MODULES_DIR. $code);
74
  return true;
75
- } else
76
  errorsPps::push(__('Cannot create module directory. Try to set permission to '. PPS_MODULES_DIR. ' directory 755 or 777', PPS_LANG_CODE), errorsPps::MOD_INSTALL);
77
  } else
78
  return true;
@@ -207,14 +207,15 @@ class modInstallerPps {
207
  self::_runModuleInstall($modDataArr, 'activate');
208
  }
209
  }
210
- }
211
  /**
212
  * Display all errors for module installer, must be used ONLY if You realy need it
213
  */
214
  static public function displayErrors($exit = true) {
215
  $errors = errorsPps::get(errorsPps::MOD_INSTALL);
216
  foreach($errors as $e) {
217
- echo '<b style="color: red;">'. $e. '</b><br />';
 
218
  }
219
  if($exit) exit();
220
  }
@@ -241,9 +242,9 @@ class modInstallerPps {
241
  }
242
  }
243
  static public function _installTables($module, $action = 'install') {
244
- $modDir = empty($module['ex_plug_dir']) ?
245
- PPS_MODULES_DIR. $module['code']. DS :
246
- utilsPps::getPluginDir($module['ex_plug_dir']). $module['code']. DS;
247
  if(is_dir($modDir. 'tables')) {
248
  $tableFiles = utilsPps::getFilesList($modDir. 'tables');
249
  if(!empty($tableFiles)) {
@@ -256,4 +257,4 @@ class modInstallerPps {
256
  }
257
  }
258
  }
259
- }
72
  if(mkdir(PPS_MODULES_DIR. $code)) {
73
  utilsPps::copyDirectories($path, PPS_MODULES_DIR. $code);
74
  return true;
75
+ } else
76
  errorsPps::push(__('Cannot create module directory. Try to set permission to '. PPS_MODULES_DIR. ' directory 755 or 777', PPS_LANG_CODE), errorsPps::MOD_INSTALL);
77
  } else
78
  return true;
207
  self::_runModuleInstall($modDataArr, 'activate');
208
  }
209
  }
210
+ }
211
  /**
212
  * Display all errors for module installer, must be used ONLY if You realy need it
213
  */
214
  static public function displayErrors($exit = true) {
215
  $errors = errorsPps::get(errorsPps::MOD_INSTALL);
216
  foreach($errors as $e) {
217
+ $str = '<b style="color: red;">'. $e. '</b><br />';
218
+ echo viewPps::ksesString($str);
219
  }
220
  if($exit) exit();
221
  }
242
  }
243
  }
244
  static public function _installTables($module, $action = 'install') {
245
+ $modDir = empty($module['ex_plug_dir']) ?
246
+ PPS_MODULES_DIR. $module['code']. DS :
247
+ utilsPps::getPluginDir($module['ex_plug_dir']). $module['code']. DS;
248
  if(is_dir($modDir. 'tables')) {
249
  $tableFiles = utilsPps::getFilesList($modDir. 'tables');
250
  if(!empty($tableFiles)) {
257
  }
258
  }
259
  }
260
+ }
classes/req.php CHANGED
@@ -187,12 +187,6 @@ class reqPps {
187
  }
188
  return NULL;
189
  }
190
- static public function getMethod() {
191
- if(!self::$_requestMethod) {
192
- self::$_requestMethod = strtoupper( self::getVar('method', 'all', $_SERVER['REQUEST_METHOD']) );
193
- }
194
- return self::$_requestMethod;
195
- }
196
  static public function getAdminPage() {
197
  $pagePath = self::getVar('page');
198
  if(!empty($pagePath) && strpos($pagePath, '/') !== false) {
187
  }
188
  return NULL;
189
  }
 
 
 
 
 
 
190
  static public function getAdminPage() {
191
  $pagePath = self::getVar('page');
192
  if(!empty($pagePath) && strpos($pagePath, '/') !== false) {
classes/uri.php CHANGED
@@ -41,7 +41,7 @@ class uriPps {
41
  return $link;
42
  }
43
  static public function _e($params) {
44
- echo self::_($params);
45
  }
46
  static public function page($id) {
47
  return get_page_link($id);
41
  return $link;
42
  }
43
  static public function _e($params) {
44
+ echo viewPps::ksesString(self::_($params));
45
  }
46
  static public function page($id) {
47
  return get_page_link($id);
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.10');
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.11');
53
  define('PPS_USER', 'user');
54
 
55
  define('PPS_CLASS_PREFIX', 'ppsc');
css/bootstrap-simple.css DELETED
@@ -1,5 +0,0 @@
1
- /*!
2
- * Bootstrap v3.3.6 (http://getbootstrap.com)
3
- * Copyright 2011-2015 Twitter, Inc.
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
- *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */.container,.container-fluid{margin-right:auto;margin-left:auto;padding-right:15px;padding-left:15px}caption,th{text-align:left}.table,legend{margin-bottom:20px}.table,label{max-width:100%}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}fieldset,legend{padding:0;border:0}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777}.table{width:100%}fieldset{min-width:0;margin:0}legend{display:block;width:100%;font-size:21px;line-height:inherit;color:#333;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=radio],input[type=checkbox]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=radio]:focus,input[type=checkbox]:focus,input[type=file]:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}
 
 
 
 
 
functions.php CHANGED
@@ -97,14 +97,14 @@ if(!function_exists('importClassPps')) {
97
  if(!function_exists('toeGetClassNamePps')) {
98
  function toeGetClassNamePps($class) {
99
  $className = '';
100
- if(class_exists($class. strFirstUp(PPS_CODE)))
101
  $className = $class. strFirstUp(PPS_CODE);
102
- else if(class_exists(PPS_CLASS_PREFIX. $class))
103
  $className = PPS_CLASS_PREFIX. $class;
104
  else
105
  $className = $class;
106
  return $className;
107
- }
108
  }
109
  /**
110
  * Create object of specified class
@@ -137,7 +137,8 @@ if(!function_exists('toeCreateObjPps')) {
137
  if(!function_exists('redirectPps')) {
138
  function redirectPps($url) {
139
  if(headers_sent()) {
140
- echo '<script type="text/javascript"> document.location.href = "'. $url. '"; </script>';
 
141
  } else {
142
  header('Location: '. $url);
143
  }
@@ -159,9 +160,9 @@ if(!function_exists('in_array_array')) {
159
  if(!function_exists('json_encode_utf_normal')) {
160
  function json_encode_utf_normal($value) {
161
  if (is_int($value)) {
162
- return (string)$value;
163
  } elseif (is_string($value)) {
164
- $value = str_replace(array('\\', '/', '"', "\r", "\n", "\b", "\f", "\t"),
165
  array('\\\\', '\/', '\"', '\r', '\n', '\b', '\f', '\t'), $value);
166
  $convmap = array(0x80, 0xFFFF, 0, 0xFFFF);
167
  $result = "";
@@ -169,9 +170,9 @@ if(!function_exists('json_encode_utf_normal')) {
169
  $mb_char = substr($value, $i, 1);
170
  $result = $mb_char . $result;
171
  }
172
- return '"' . $result . '"';
173
  } elseif (is_float($value)) {
174
- return str_replace(",", ".", $value);
175
  } elseif (is_null($value)) {
176
  return 'null';
177
  } elseif (is_bool($value)) {
@@ -193,20 +194,20 @@ if(!function_exists('json_encode_utf_normal')) {
193
  $result = array();
194
  if ($with_keys) {
195
  foreach ($value as $key => $v) {
196
- $result[] = json_encode_utf_normal((string)$key) . ':' . json_encode_utf_normal($v);
197
  }
198
- return '{' . implode(',', $result) . '}';
199
  } else {
200
  foreach ($value as $key => $v) {
201
- $result[] = json_encode_utf_normal($v);
202
  }
203
  return '[' . implode(',', $result) . ']';
204
  }
205
- }
206
  }
207
  /**
208
  * Prepares the params values to store into db
209
- *
210
  * @param array $d $_POST array
211
  * @return array
212
  */
@@ -229,7 +230,7 @@ if(!function_exists('prepareParamsPps')) {
229
  $params = utilsPps::jsonEncode($d['params']);
230
  $d['params'] = $params;
231
  }
232
- if(empty($options))
233
  $options = array('value' => array('EMPTY'), 'data' => array());
234
  if(isset($d['code'])) {
235
  if ($d['code'] == '') {
@@ -240,7 +241,7 @@ if(!function_exists('prepareParamsPps')) {
240
  }
241
  }
242
  if(!function_exists('prepareFieldCodePps')) {
243
- function prepareFieldCodePps($string) {
244
  $string = preg_replace("/[^a-zA-Z0-9\s]/"," ",$string);
245
  $string = preg_replace("/\s+/", " ", $string);
246
  $string = preg_replace('/ /','',$string);
@@ -285,7 +286,7 @@ if(!function_exists('toeObjectToArray')) {
285
  $data = (array) $data;
286
  foreach ($data as $key => $value) {
287
  if (is_object($value)) $value = (array) $value;
288
- if (is_array($value))
289
  $result[$key] = toeObjectToArray($value);
290
  else
291
  $result[$key] = $value;
@@ -327,4 +328,4 @@ if(!function_exists('ctype_alpha')) {
327
  return (bool) preg_match('/[^\pL]+/', $text);
328
  }
329
  }
330
- /*****/
97
  if(!function_exists('toeGetClassNamePps')) {
98
  function toeGetClassNamePps($class) {
99
  $className = '';
100
+ if(class_exists($class. strFirstUp(PPS_CODE)))
101
  $className = $class. strFirstUp(PPS_CODE);
102
+ else if(class_exists(PPS_CLASS_PREFIX. $class))
103
  $className = PPS_CLASS_PREFIX. $class;
104
  else
105
  $className = $class;
106
  return $className;
107
+ }
108
  }
109
  /**
110
  * Create object of specified class
137
  if(!function_exists('redirectPps')) {
138
  function redirectPps($url) {
139
  if(headers_sent()) {
140
+ $str = '<script type="text/javascript"> document.location.href = "'. $url. '"; </script>';
141
+ echo viewPps::ksesString($str);
142
  } else {
143
  header('Location: '. $url);
144
  }
160
  if(!function_exists('json_encode_utf_normal')) {
161
  function json_encode_utf_normal($value) {
162
  if (is_int($value)) {
163
+ return (string)$value;
164
  } elseif (is_string($value)) {
165
+ $value = str_replace(array('\\', '/', '"', "\r", "\n", "\b", "\f", "\t"),
166
  array('\\\\', '\/', '\"', '\r', '\n', '\b', '\f', '\t'), $value);
167
  $convmap = array(0x80, 0xFFFF, 0, 0xFFFF);
168
  $result = "";
170
  $mb_char = substr($value, $i, 1);
171
  $result = $mb_char . $result;
172
  }
173
+ return '"' . $result . '"';
174
  } elseif (is_float($value)) {
175
+ return str_replace(",", ".", $value);
176
  } elseif (is_null($value)) {
177
  return 'null';
178
  } elseif (is_bool($value)) {
194
  $result = array();
195
  if ($with_keys) {
196
  foreach ($value as $key => $v) {
197
+ $result[] = json_encode_utf_normal((string)$key) . ':' . json_encode_utf_normal($v);
198
  }
199
+ return '{' . implode(',', $result) . '}';
200
  } else {
201
  foreach ($value as $key => $v) {
202
+ $result[] = json_encode_utf_normal($v);
203
  }
204
  return '[' . implode(',', $result) . ']';
205
  }
206
+ }
207
  }
208
  /**
209
  * Prepares the params values to store into db
210
+ *
211
  * @param array $d $_POST array
212
  * @return array
213
  */
230
  $params = utilsPps::jsonEncode($d['params']);
231
  $d['params'] = $params;
232
  }
233
+ if(empty($options))
234
  $options = array('value' => array('EMPTY'), 'data' => array());
235
  if(isset($d['code'])) {
236
  if ($d['code'] == '') {
241
  }
242
  }
243
  if(!function_exists('prepareFieldCodePps')) {
244
+ function prepareFieldCodePps($string) {
245
  $string = preg_replace("/[^a-zA-Z0-9\s]/"," ",$string);
246
  $string = preg_replace("/\s+/", " ", $string);
247
  $string = preg_replace('/ /','',$string);
286
  $data = (array) $data;
287
  foreach ($data as $key => $value) {
288
  if (is_object($value)) $value = (array) $value;
289
+ if (is_array($value))
290
  $result[$key] = toeObjectToArray($value);
291
  else
292
  $result[$key] = $value;
328
  return (bool) preg_match('/[^\pL]+/', $text);
329
  }
330
  }
331
+ /*****/
js/popupEditAdmin.js CHANGED
@@ -57,5 +57,5 @@ jQuery(document).ready(function(){
57
  contentDoc.click(function(){
58
  return false;
59
  });
60
- }).attr('src', PPS_PEA_DATA.previewUrl); //<?php echo $this->previewUrl?>
61
  });
57
  contentDoc.click(function(){
58
  return false;
59
  });
60
+ }).attr('src', PPS_PEA_DATA.previewUrl);
61
  });
modules/popup/controller.php CHANGED
@@ -85,7 +85,7 @@ class popupControllerPps extends controllerPps {
85
  $assetsStr .= frameCfs::_()->getModule('forms')->getAssetsforPrevStr($form);
86
  }
87
  $popupContent = $this->getView()->generateHtml( $popup );
88
- echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
89
  <html dir="'. (function_exists('is_rtl') && is_rtl() ? 'rtl' : 'ltr'). '"><head>'
90
  . '<meta content="'. get_option('html_type'). '; charset='. get_option('blog_charset'). '" http-equiv="Content-Type">'
91
  . '<script type="text/javascript" src="'. includes_url('js/jquery/jquery.js'). '"></script>'
@@ -110,10 +110,10 @@ class popupControllerPps extends controllerPps {
110
  </style>'
111
  . '</head>';
112
  //wp_head();
113
- echo '<body>';
114
- echo $popupContent;
115
- //wp_footer();
116
- echo '<body></html>';
117
  }
118
  exit();
119
  }
@@ -252,7 +252,7 @@ class popupControllerPps extends controllerPps {
252
  $str .= $eol. "array(". implode(', ', $addArr). "),";
253
  }
254
  $str .= $eol. ");";
255
- echo $str;
256
  exit();
257
  }
258
  $allKeys = array();
@@ -270,7 +270,7 @@ class popupControllerPps extends controllerPps {
270
  $valuesArr[] = '('. implode(',', $arr). ')';
271
  }
272
  $query = 'INSERT INTO @__popup ('. implode(',', $allKeys). ') VALUES '. $eol. implode(','. $eol, $valuesArr);
273
- echo $query;
274
  if($forWix) {
275
  $allKeys = array();
276
  $valuesArr = array();
@@ -291,7 +291,8 @@ class popupControllerPps extends controllerPps {
291
  $valuesArr[] = '('. implode(',', $arr). ')';
292
  }
293
  $query = 'INSERT INTO @__popup_content ('. implode(',', $contentKeys). ') VALUES '. $eol. implode(','. $eol, $valuesArr);
294
- echo $eol. $query;
 
295
  }
296
  exit();
297
  }
85
  $assetsStr .= frameCfs::_()->getModule('forms')->getAssetsforPrevStr($form);
86
  }
87
  $popupContent = $this->getView()->generateHtml( $popup );
88
+ $content = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
89
  <html dir="'. (function_exists('is_rtl') && is_rtl() ? 'rtl' : 'ltr'). '"><head>'
90
  . '<meta content="'. get_option('html_type'). '; charset='. get_option('blog_charset'). '" http-equiv="Content-Type">'
91
  . '<script type="text/javascript" src="'. includes_url('js/jquery/jquery.js'). '"></script>'
110
  </style>'
111
  . '</head>';
112
  //wp_head();
113
+ $content .= '<body>';
114
+ $content .= $popupContent;
115
+ $content .= '<body></html>';
116
+ echo viewPps::ksesString($content);
117
  }
118
  exit();
119
  }
252
  $str .= $eol. "array(". implode(', ', $addArr). "),";
253
  }
254
  $str .= $eol. ");";
255
+ echo viewPps::ksesString($str);
256
  exit();
257
  }
258
  $allKeys = array();
270
  $valuesArr[] = '('. implode(',', $arr). ')';
271
  }
272
  $query = 'INSERT INTO @__popup ('. implode(',', $allKeys). ') VALUES '. $eol. implode(','. $eol, $valuesArr);
273
+ echo viewPps::ksesString($query);
274
  if($forWix) {
275
  $allKeys = array();
276
  $valuesArr = array();
291
  $valuesArr[] = '('. implode(',', $arr). ')';
292
  }
293
  $query = 'INSERT INTO @__popup_content ('. implode(',', $contentKeys). ') VALUES '. $eol. implode(','. $eol, $valuesArr);
294
+ $str = $eol. $query;
295
+ echo viewPps::ksesString($str);
296
  }
297
  exit();
298
  }
modules/supsystic_promo/mod.php CHANGED
@@ -94,7 +94,7 @@ class supsystic_promoPps extends modulePps {
94
  $this->getModel()->saveUsageStat($nKey. '.'. 'show', true);
95
  $html .= '<div class="updated notice is-dismissible supsystic-admin-notice" data-code="'. $nKey. '">'. $n['html']. '</div>';
96
  }
97
- echo $html;
98
  }
99
  }
100
  public function addAdminTab($tabs) {
94
  $this->getModel()->saveUsageStat($nKey. '.'. 'show', true);
95
  $html .= '<div class="updated notice is-dismissible supsystic-admin-notice" data-code="'. $nKey. '">'. $n['html']. '</div>';
96
  }
97
+ echo viewPps::ksesString($html);
98
  }
99
  }
100
  public function addAdminTab($tabs) {
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 $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 $this->promoLink?>"><?php _e('Available in PRO')?></a>
10
- </label>
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>
modules/supsystic_promo/views/tpl/adminFooter.php CHANGED
@@ -7,7 +7,7 @@
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 $this->getModule()->getMainLink();?>"><?php _e('PRO', PPS_LANG_CODE)?></a>
11
  </div>
12
  <div class="ppsAdminFooterCell">|</div>
13
  <?php } ?>
@@ -18,4 +18,4 @@
18
  <div class="ppsAdminFooterCell">
19
  Add your <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/popup-by-supsystic?filter=5#postform">&#9733;&#9733;&#9733;&#9733;&#9733;</a> on wordpress.org.
20
  </div>
21
- </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 } ?>
18
  <div class="ppsAdminFooterCell">
19
  Add your <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/popup-by-supsystic?filter=5#postform">&#9733;&#9733;&#9733;&#9733;&#9733;</a> on wordpress.org.
20
  </div>
21
+ </div>
modules/supsystic_promo/views/tpl/adminTour.php CHANGED
@@ -6,7 +6,7 @@
6
  </div>
7
  <div class="supsystic-tour-btns">
8
  <a href="#" class="close"><?php _e('Close', PPS_LANG_CODE)?></a>
9
- <a href="<?php echo framePps::_()->getModule('options')->getTabUrl('popup');?>" class="button button-primary supsystic-tour-next-btn"><?php _e('Next', PPS_LANG_CODE)?></a>
10
  </div>
11
  </div>
12
  <div id="supsystic-create_first-create_bar_btn">
@@ -16,7 +16,7 @@
16
  </div>
17
  <div class="supsystic-tour-btns">
18
  <a href="#" class="close"><?php _e('Close', PPS_LANG_CODE)?></a>
19
- <a href="<?php echo framePps::_()->getModule('options')->getTabUrl('popup_add_new');?>" class="button button-primary supsystic-tour-next-btn"><?php _e('Next', PPS_LANG_CODE)?></a>
20
  </div>
21
  </div>
22
  <div id="supsystic-create_first-enter_title">
@@ -108,4 +108,4 @@
108
  <a href="#" class="button-primary supsystic-tour-finish-btn"><?php _e('Finish', PPS_LANG_CODE)?></a>
109
  </div>
110
  </div>
111
- </div>
6
  </div>
7
  <div class="supsystic-tour-btns">
8
  <a href="#" class="close"><?php _e('Close', PPS_LANG_CODE)?></a>
9
+ <a href="<?php echo esc_html(framePps::_()->getModule('options')->getTabUrl('popup'));?>" class="button button-primary supsystic-tour-next-btn"><?php _e('Next', PPS_LANG_CODE)?></a>
10
  </div>
11
  </div>
12
  <div id="supsystic-create_first-create_bar_btn">
16
  </div>
17
  <div class="supsystic-tour-btns">
18
  <a href="#" class="close"><?php _e('Close', PPS_LANG_CODE)?></a>
19
+ <a href="<?php echo esc_html(framePps::_()->getModule('options')->getTabUrl('popup_add_new'));?>" class="button button-primary supsystic-tour-next-btn"><?php _e('Next', PPS_LANG_CODE)?></a>
20
  </div>
21
  </div>
22
  <div id="supsystic-create_first-enter_title">
108
  <a href="#" class="button-primary supsystic-tour-finish-btn"><?php _e('Finish', PPS_LANG_CODE)?></a>
109
  </div>
110
  </div>
111
+ </div>
modules/supsystic_promo/views/tpl/discountMsg.php CHANGED
@@ -35,6 +35,6 @@
35
  <div class="bundleMessageShell">
36
  <div class="bundleMessage">
37
  <span class="text"><?php echo sprintf(__('Upgrade to bundle and get an access to <a href="%s" target="_blank">all 14 plugins</a> more than 80%% off!', PPS_LANG_CODE), $this->bundlePageLink);?></span>
38
- <a href="<?php echo $this->buyLink; ?>" class="button" target="_blank"><?php _e('Buy Now', PPS_LANG_CODE)?></a>
39
  </div>
40
- </div>
35
  <div class="bundleMessageShell">
36
  <div class="bundleMessage">
37
  <span class="text"><?php echo sprintf(__('Upgrade to bundle and get an access to <a href="%s" target="_blank">all 14 plugins</a> more than 80%% off!', PPS_LANG_CODE), $this->bundlePageLink);?></span>
38
+ <a href="<?php echo esc_html($this->buyLink); ?>" class="button" target="_blank"><?php _e('Buy Now', PPS_LANG_CODE)?></a>
39
  </div>
40
+ </div>
modules/supsystic_promo/views/tpl/featuredPlugins.php CHANGED
@@ -2,7 +2,7 @@
2
  <div class="supsysticPageBundleContainer container-fluid">
3
  <div class="bundle-text supMd7 supXs12"><?php _e('Get plugins bundle today and save over 80%', PPS_LANG_CODE)?></div>
4
  <div class="bundle-btn supMd5 supXs12">
5
- <a href="<?php echo $this->bundleUrl;?>" class="btn btn-full btn-revert hvr-shutter-out-horizontal" target="_blank">
6
  <?php _e('Check It out', PPS_LANG_CODE)?>
7
  </a>
8
  </div>
@@ -12,26 +12,26 @@
12
  <div class="catitem supMd4 supSm6 supXs12">
13
  <div class="download-product-item">
14
  <div class="dp-thumb text-center">
15
- <a href="<?php echo $p['url']?>" target="_blank">
16
- <img src="<?php echo $p['img']?>" class="img-responsive wp-post-image" alt="<?php echo $p['label']?>" />
17
  </a>
18
  </div>
19
  <div class="dp-title">
20
- <a href="<?php echo $p['url']?>" target="_blank">
21
- <?php echo $p['label']?>
22
  </a>
23
  </div>
24
  <div class="dp-excerpt">
25
  <div class="dp-excerpt-wrapper">
26
- <?php echo !empty($p['desc']) ? $p['desc'] : ''?>
27
  </div>
28
  </div>
29
  <div class="dp-buttons">
30
- <a href="<?php echo $p['url']?>" target="_blank" class="btn btn-full hvr-shutter-out-horizontal <?php echo empty($p['download']) ? 'btn-center' : ''?>">
31
  <?php _e('More info', PPS_LANG_CODE)?>
32
  </a>
33
  <?php if(!empty($p['download'])) {?>
34
- <a href="<?php echo $p['download']?>" target="_blank" class="btn btn-full btn-info hvr-shutter-out-horizontal">
35
  <?php _e('Download', PPS_LANG_CODE)?>
36
  </a>
37
  <?php }?>
2
  <div class="supsysticPageBundleContainer container-fluid">
3
  <div class="bundle-text supMd7 supXs12"><?php _e('Get plugins bundle today and save over 80%', PPS_LANG_CODE)?></div>
4
  <div class="bundle-btn supMd5 supXs12">
5
+ <a href="<?php echo esc_html($this->bundleUrl);?>" class="btn btn-full btn-revert hvr-shutter-out-horizontal" target="_blank">
6
  <?php _e('Check It out', PPS_LANG_CODE)?>
7
  </a>
8
  </div>
12
  <div class="catitem supMd4 supSm6 supXs12">
13
  <div class="download-product-item">
14
  <div class="dp-thumb text-center">
15
+ <a href="<?php echo esc_html($p['url'])?>" target="_blank">
16
+ <img src="<?php echo esc_html($p['img'])?>" class="img-responsive wp-post-image" alt="<?php echo esc_html($p['label'])?>" />
17
  </a>
18
  </div>
19
  <div class="dp-title">
20
+ <a href="<?php echo esc_html($p['url'])?>" target="_blank">
21
+ <?php echo esc_html($p['label'])?>
22
  </a>
23
  </div>
24
  <div class="dp-excerpt">
25
  <div class="dp-excerpt-wrapper">
26
+ <?php echo !empty($p['desc']) ? esc_html($p['desc']) : ''?>
27
  </div>
28
  </div>
29
  <div class="dp-buttons">
30
+ <a href="<?php echo esc_html($p['url'])?>" target="_blank" class="btn btn-full hvr-shutter-out-horizontal <?php echo empty($p['download']) ? 'btn-center' : ''?>">
31
  <?php _e('More info', PPS_LANG_CODE)?>
32
  </a>
33
  <?php if(!empty($p['download'])) {?>
34
+ <a href="<?php echo esc_html($p['download'])?>" target="_blank" class="btn btn-full btn-info hvr-shutter-out-horizontal">
35
  <?php _e('Download', PPS_LANG_CODE)?>
36
  </a>
37
  <?php }?>
modules/supsystic_promo/views/tpl/layeredStylePromo.php CHANGED
@@ -1,13 +1,13 @@
1
  <div class="ppsPopupOptRow">
2
  <label>
3
- <a target="_blank" href="<?php echo $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 $this->promoLink?>"><?php _e('Available in PRO', PPS_LANG_CODE)?></a>
11
  </label>
12
  <div class="description"><?php _e('By default all PopUps have modal style: it appears on user screen over the whole site. Layered style allows you to show your PopUp - on selected position: top, bottom, etc. and not over your site - but right near your content.', PPS_LANG_CODE)?><br /><br /><?php _e('Notice: If you enable Layered style - background overlay for popup will not be displayed on frontend.', PPS_LANG_CODE)?></div>
13
  </div>
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>
11
  </label>
12
  <div class="description"><?php _e('By default all PopUps have modal style: it appears on user screen over the whole site. Layered style allows you to show your PopUp - on selected position: top, bottom, etc. and not over your site - but right near your content.', PPS_LANG_CODE)?><br /><br /><?php _e('Notice: If you enable Layered style - background overlay for popup will not be displayed on frontend.', PPS_LANG_CODE)?></div>
13
  </div>
modules/supsystic_promo/views/tpl/overviewTabContent.php CHANGED
@@ -38,8 +38,8 @@
38
  <ul class="settings-list">
39
  <?php foreach($this->serverSettings as $title => $element) {?>
40
  <li class="settings-line">
41
- <div class="settings-title"><?php echo $title?>:</div>
42
- <span><?php echo $element['value']?></span>
43
  </li>
44
  <?php }?>
45
  </ul>
@@ -49,9 +49,9 @@
49
  <div class="supsystic-overview-news">
50
  <h3><?php _e('News', PPS_LANG_CODE)?></h3>
51
  <div class="supsystic-overview-news-content">
52
- <?php echo $this->news?>
53
  </div>
54
- <a href="<?php echo $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,10 +77,10 @@
77
  ?>
78
  <tr>
79
  <th scope="row">
80
- <label for="<?php echo $id?>"><?php echo $fData['label']?></label>
81
  </th>
82
  <td>
83
- <?php echo htmlPps::$htmlType($fName, $htmlParams)?>
84
  </td>
85
  </tr>
86
  <?php }?>
@@ -106,4 +106,4 @@
106
  <div style="clear: both;"></div>
107
  </div>
108
  </div>
109
- </section>
38
  <ul class="settings-list">
39
  <?php foreach($this->serverSettings as $title => $element) {?>
40
  <li class="settings-line">
41
+ <div class="settings-title"><?php echo viewPps::ksesString($title); ?>:</div>
42
+ <span><?php echo viewPps::ksesString($element['value']); ?></span>
43
  </li>
44
  <?php }?>
45
  </ul>
49
  <div class="supsystic-overview-news">
50
  <h3><?php _e('News', PPS_LANG_CODE)?></h3>
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
  ?>
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)); ?>
84
  </td>
85
  </tr>
86
  <?php }?>
106
  <div style="clear: both;"></div>
107
  </div>
108
  </div>
109
+ </section>
modules/supsystic_promo/views/tpl/welcomePage.php CHANGED
@@ -5,7 +5,7 @@
5
  <div class="col-sm-12">
6
  <h2>
7
  <?php printf(__('Welcome to the %s v %s', PPS_LANG_CODE), PPS_WP_PLUGIN_NAME, PPS_VERSION)?>
8
- <a style="margin-top: -8px; margin-left: 5px;" href="<?php echo $this->skipTutorLink;?>" class="button"><?php _e('Skip tutorial', PPS_LANG_CODE)?></a>
9
  </h2>
10
  <p>
11
  <?php _e('The best way to collect subscribers and show notifications.<br />We are trying to make our plugin work in most comfortable way for you. Here is some base information about it.', PPS_LANG_CODE)?>
@@ -48,19 +48,19 @@
48
  <?php _e('Frequently Asked Questions', PPS_LANG_CODE)?>
49
  </h3>
50
  <?php foreach($this->faqList as $fHead => $fDesc) { ?>
51
- <h4><?php echo $fHead;?></h4>
52
- <p><?php echo $fDesc;?></p>
53
  <?php }?>
54
  <div style="clear: both;"></div>
55
- <a target="_blank" href="<?php echo $this->mainLink?>#faq" style="font-size: 16px; padding-right: 15px; white-space: nowrap; font-weight: normal;">
56
  <i class="fa fa-info-circle"></i>
57
  <?php _e('Check all FAQs', PPS_LANG_CODE)?>
58
  </a>
59
  <div style="clear: both;"></div>
60
- <a href="<?php echo $this->createNewLink;?>" class="button button-primary button-hero" style="font-size: 20px; margin: 20px 20px 20px 0; min-width: 160px; text-align: center;"><?php _e("Let's Start!", PPS_LANG_CODE)?></a>
61
  </div>
62
  </div>
63
  <div style="clear: both;"></div>
64
  </div>
65
  </div>
66
- </section>
5
  <div class="col-sm-12">
6
  <h2>
7
  <?php printf(__('Welcome to the %s v %s', PPS_LANG_CODE), PPS_WP_PLUGIN_NAME, PPS_VERSION)?>
8
+ <a style="margin-top: -8px; margin-left: 5px;" href="<?php echo esc_html($this->skipTutorLink);?>" class="button"><?php _e('Skip tutorial', PPS_LANG_CODE)?></a>
9
  </h2>
10
  <p>
11
  <?php _e('The best way to collect subscribers and show notifications.<br />We are trying to make our plugin work in most comfortable way for you. Here is some base information about it.', PPS_LANG_CODE)?>
48
  <?php _e('Frequently Asked Questions', PPS_LANG_CODE)?>
49
  </h3>
50
  <?php foreach($this->faqList as $fHead => $fDesc) { ?>
51
+ <h4><?php echo viewPps::ksesString($fHead); ?></h4>
52
+ <p><?php echo viewPps::ksesString($fDesc);?></p>
53
  <?php }?>
54
  <div style="clear: both;"></div>
55
+ <a target="_blank" href="<?php echo esc_html($this->mainLink)?>#faq" style="font-size: 16px; padding-right: 15px; white-space: nowrap; font-weight: normal;">
56
  <i class="fa fa-info-circle"></i>
57
  <?php _e('Check all FAQs', PPS_LANG_CODE)?>
58
  </a>
59
  <div style="clear: both;"></div>
60
+ <a href="<?php echo esc_html($this->createNewLink);?>" class="button button-primary button-hero" style="font-size: 20px; margin: 20px 20px 20px 0; min-width: 160px; text-align: center;"><?php _e("Let's Start!", PPS_LANG_CODE)?></a>
61
  </div>
62
  </div>
63
  <div style="clear: both;"></div>
64
  </div>
65
  </div>
66
+ </section>
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.10
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.11
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.10
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.10 / 10.03.2021 =
120
  * Add fix for wp review
121
  * Add fix for popup
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.11
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.11/ 11.04.2022 =
120
+ * Add fix for wp review
121
+
122
  = 1.10.10 / 10.03.2021 =
123
  * Add fix for wp review
124
  * Add fix for popup