Popup Builder – Responsive WordPress Pop up - Version 2.3.4

Version Description

Current Version of Popup Builder is 2.3.3

Download this release

Release Info

Developer Sygnoos
Plugin Icon 128x128 Popup Builder – Responsive WordPress Pop up
Version 2.3.4
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.4

classes/PopupInstaller.php CHANGED
@@ -32,11 +32,21 @@ class PopupInstaller
32
  `url` text NOT NULL
33
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
34
 
 
 
 
 
 
 
 
 
 
35
  $wpdb->query($sgPopupBase);
36
  $wpdb->query($sgPopupImageBase);
37
  $wpdb->query($sgPopupHtmlBase);
38
  $wpdb->query($sgPopupFblikeBase);
39
  $wpdb->query($sgPopupShortcodeBase);
 
40
  }
41
 
42
  public static function install()
@@ -72,14 +82,18 @@ class PopupInstaller
72
  $popupFblikeTable = $wpdb->prefix.$blogsId."sg_fblike_popup";
73
  $popupFblikeSql = "DROP TABLE ". $popupFblikeTable;
74
 
75
- $popupShortcodeTable = $wpdb->prefix.$blogId."sg_shortCode_popup";
76
  $popupShortcodeSql = "DROP TABLE ". $popupShortcodeTable;
77
 
 
 
 
78
  $wpdb->query($popupSql);
79
  $wpdb->query($popupImageSql);
80
  $wpdb->query($popupHtmlSql);
81
  $wpdb->query($popupFblikeSql);
82
  $wpdb->query($popupShortcodeSql);
 
83
  }
84
 
85
  public static function deleteSgPopupOptions($blogsId)
32
  `url` text NOT NULL
33
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
34
 
35
+ $sgPopupAddon = "CREATE TABLE IF NOT EXISTS ". $wpdb->prefix.$blogsId."sg_popup_addons (
36
+ `id` int(11) NOT NULL AUTO_INCREMENT,
37
+ `name` varchar(255) NOT NULL UNIQUE,
38
+ `paths` varchar(255) NOT NULL,
39
+ `type` varchar(255) NOT NULL,
40
+ `options` TEXT NOT NULL,
41
+ PRIMARY KEY (id)
42
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ";
43
+
44
  $wpdb->query($sgPopupBase);
45
  $wpdb->query($sgPopupImageBase);
46
  $wpdb->query($sgPopupHtmlBase);
47
  $wpdb->query($sgPopupFblikeBase);
48
  $wpdb->query($sgPopupShortcodeBase);
49
+ $wpdb->query($sgPopupAddon);
50
  }
51
 
52
  public static function install()
82
  $popupFblikeTable = $wpdb->prefix.$blogsId."sg_fblike_popup";
83
  $popupFblikeSql = "DROP TABLE ". $popupFblikeTable;
84
 
85
+ $popupShortcodeTable = $wpdb->prefix.$blogsId."sg_shortCode_popup";
86
  $popupShortcodeSql = "DROP TABLE ". $popupShortcodeTable;
87
 
88
+ $popupAddonDrop = $wpdb->prefix.$blogsId."sg_popup_addons";
89
+ $popupAddonSql = "DROP TABLE ". $popupAddonDrop;
90
+
91
  $wpdb->query($popupSql);
92
  $wpdb->query($popupImageSql);
93
  $wpdb->query($popupHtmlSql);
94
  $wpdb->query($popupFblikeSql);
95
  $wpdb->query($popupShortcodeSql);
96
+ $wpdb->query($popupAddonSql);
97
  }
98
 
99
  public static function deleteSgPopupOptions($blogsId)
classes/SGFblikePopup.php CHANGED
@@ -99,7 +99,9 @@ class SGFblikePopup extends SGPopup
99
  max-width: none !important;
100
  }
101
  </style>';
102
- return array('html'=>$content);
 
 
103
  }
104
 
105
  public function render()
99
  max-width: none !important;
100
  }
101
  </style>';
102
+ /*Add this part of code right into the page to escape conflicts with shortcodes init functionlity*/
103
+ echo "<div id=\"sg-popup-content-".$this->getId()."\" style=\"display: none;\">&nbsp;<div id=\"sgpb-all-content-".$this->getId()."\">".$content."</div></div>";
104
+ return array('html'=>' ');
105
  }
106
 
107
  public function render()
classes/SGHtmlPopup.php CHANGED
@@ -50,8 +50,10 @@ class SGHtmlPopup extends SGPopup {
50
  protected function getExtraRenderOptions() {
51
  $content = $this->getContent();
52
  $content = $this->improveContent($content);
53
-
54
- return array('html' => $content);
 
 
55
  }
56
 
57
  public function render() {
50
  protected function getExtraRenderOptions() {
51
  $content = $this->getContent();
52
  $content = $this->improveContent($content);
53
+ /*Add this part of code right into the page to escape conflicts with shortcodes init functionlity*/
54
+ echo "<div id=\"sg-popup-content-".$this->getId()."\" style=\"display: none;\">&nbsp;<div id=\"sgpb-all-content-".$this->getId()."\">".$content."</div></div>";
55
+
56
+ return array('html' => ' ');
57
  }
58
 
59
  public function render() {
classes/SGPopup.php CHANGED
@@ -13,6 +13,7 @@ abstract class SGPopup {
13
  protected $initialHeight;
14
  protected $options;
15
  public static $registeredScripts = false;
 
16
 
17
  public function setType($type){
18
  $this->type = $type;
@@ -102,7 +103,11 @@ abstract class SGPopup {
102
 
103
  if ($obj===null) {
104
  $className = "SG".ucfirst(strtolower($type)).'Popup';
105
- require_once(dirname(__FILE__).'/'.$className.'.php');
 
 
 
 
106
  $obj = new $className();
107
  }
108
 
@@ -229,13 +234,19 @@ abstract class SGPopup {
229
  }
230
 
231
  public function render() {
232
- $parentOption = array('id'=>$this->getId(),'title'=>$this->getTitle(),'type'=>$this->getType(),'effect'=>$this->getEffect(),'width',$this->getWidth(),'height'=>$this->getHeight(),'delay'=>$this->getDelay(),'duration'=>$this->getEffectDuration(),'initialWidth',$this->getInitialWidth(),'initialHeight'=>$this->getInitialHeight());
233
- $getexrArray = $this->getExtraRenderOptions();
234
- $options = json_decode($this->getOptions(),true);
235
- if(empty($options)) $options = array();
236
- $sgPopupVars = 'SG_POPUP_DATA['.$this->getId().'] ='.json_encode(array_merge($parentOption, $options, $getexrArray)).';';
237
-
238
- return $sgPopupVars;
 
 
 
 
 
 
239
  }
240
  public static function getTotalRowCount() {
241
  global $wpdb;
@@ -308,10 +319,35 @@ abstract class SGPopup {
308
  public static function removePopupFromPages($popupId)
309
  {
310
  global $wpdb;
 
 
311
  $query = $wpdb->prepare('DELETE FROM '.$wpdb->prefix.'sg_popup_in_pages WHERE popupId = %d', $popupId);
312
  $wpdb->query($query);
313
  }
314
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  public static function deleteAllPagesPopup($selectedPages) {
316
  global $wpdb;
317
 
13
  protected $initialHeight;
14
  protected $options;
15
  public static $registeredScripts = false;
16
+ public static $currentPopups = array();
17
 
18
  public function setType($type){
19
  $this->type = $type;
103
 
104
  if ($obj===null) {
105
  $className = "SG".ucfirst(strtolower($type)).'Popup';
106
+ /* get current popup app path */
107
+ $paths = IntegrateExternalSettings::getCurrentPopupAppPaths($type);
108
+
109
+ $popupAppPath = $paths['app-path'];
110
+ require_once($popupAppPath.'/classes/'.$className.'.php');
111
  $obj = new $className();
112
  }
113
 
234
  }
235
 
236
  public function render() {
237
+ /* When have popup with same id in the same page */
238
+ if(!in_array($this->getId(), SGPopup::$currentPopups)) {
239
+ $parentOption = array('id'=>$this->getId(),'title'=>$this->getTitle(),'type'=>$this->getType(),'effect'=>$this->getEffect(),'width',$this->getWidth(),'height'=>$this->getHeight(),'delay'=>$this->getDelay(),'duration'=>$this->getEffectDuration(),'initialWidth',$this->getInitialWidth(),'initialHeight'=>$this->getInitialHeight());
240
+ $getexrArray = $this->getExtraRenderOptions();
241
+ array_push(SGPopup::$currentPopups,$this->getId());
242
+ $options = json_decode($this->getOptions(),true);
243
+ if(empty($options)) $options = array();
244
+ $sgPopupVars = 'SG_POPUP_DATA['.$this->getId().'] ='.json_encode(array_merge($parentOption, $options, $getexrArray)).';';
245
+
246
+ return $sgPopupVars;
247
+ }
248
+ return '';
249
+
250
  }
251
  public static function getTotalRowCount() {
252
  global $wpdb;
319
  public static function removePopupFromPages($popupId)
320
  {
321
  global $wpdb;
322
+ /*Remove all pages and posts from the array*/
323
+ self::removeFromAllPages($popupId);
324
  $query = $wpdb->prepare('DELETE FROM '.$wpdb->prefix.'sg_popup_in_pages WHERE popupId = %d', $popupId);
325
  $wpdb->query($query);
326
  }
327
 
328
+ public static function removeFromAllPages($id) {
329
+ $allPages = get_option("SG_ALL_PAGES");
330
+ $allPosts = get_option("SG_ALL_POSTS");
331
+
332
+ if(is_array($allPages)) {
333
+ $key = array_search($id, $allPages);
334
+
335
+ if ($key !== false) {
336
+ unset($allPages[$key]);
337
+ }
338
+ update_option("SG_ALL_PAGES", $allPages);
339
+ }
340
+ if(is_array($allPosts)) {
341
+ $key = array_search($id, $allPosts);
342
+
343
+ if ($key !== false) {
344
+ unset($allPosts[$key]);
345
+ }
346
+ update_option("SG_ALL_POSTS", $allPosts);
347
+ }
348
+
349
+ }
350
+
351
  public static function deleteAllPagesPopup($selectedPages) {
352
  global $wpdb;
353
 
classes/SGShortcodePopup.php CHANGED
@@ -44,9 +44,10 @@ class SGShortcodePopup extends SGPopup {
44
  $this->setShortcode($arr['url']);
45
  }
46
  protected function getExtraRenderOptions() {
47
- return array(
48
- 'shortcode'=>do_shortcode($this->getShortcode())
49
- );
 
50
  }
51
 
52
  public function render() {
44
  $this->setShortcode($arr['url']);
45
  }
46
  protected function getExtraRenderOptions() {
47
+ $content = do_shortcode($this->getShortcode());
48
+ /*Add this part of code right into the page to escape conflicts with shortcodes init functionlity*/
49
+ echo "<div id=\"sg-popup-content-".$this->getId()."\" style=\"display: none;\">&nbsp;<div id=\"sgpb-all-content-".$this->getId()."\">".$content."</div></div>";
50
+ return array('shortcode'=> ' ');
51
  }
52
 
53
  public function render() {
config.php CHANGED
@@ -7,8 +7,9 @@ define('SG_APP_POPUP_FILE', plugin_basename(__FILE__));
7
  define('SG_APP_POPUP_FILES', SG_APP_POPUP_PATH . '/files');
8
  define('SG_APP_POPUP_CLASSES', SG_APP_POPUP_PATH . '/classes');
9
  define('SG_APP_POPUP_JS', SG_APP_POPUP_PATH . '/javascript');
 
10
  define('SG_APP_POPUP_TABLE_LIMIT', 15);
11
- define('SG_POPUP_VERSION', 2.32);
12
  define('SG_POPUP_PRO_URL', 'http://popup-builder.com/');
13
  define('SG_IP_TO_COUNTRY_SERVICE_TIMEOUT', 2);
14
  define('SG_IP_TO_COUNTRY_SERVICE_URL', 'http://sygnoos.in/ip2data/?ip=');
@@ -35,7 +36,7 @@ $POPUP_TITLES = array(
35
  'social' => 'Social',
36
  'exitIntent' => 'Exit Intent',
37
  'subscription' => 'Subscription',
38
- 'contactForm' => 'Contact Form'
39
  );
40
 
41
  require_once(dirname(__FILE__).'/config-pkg.php');
7
  define('SG_APP_POPUP_FILES', SG_APP_POPUP_PATH . '/files');
8
  define('SG_APP_POPUP_CLASSES', SG_APP_POPUP_PATH . '/classes');
9
  define('SG_APP_POPUP_JS', SG_APP_POPUP_PATH . '/javascript');
10
+ define('SG_APP_POPUP_HELPERS', SG_APP_POPUP_PATH . '/helpers/');
11
  define('SG_APP_POPUP_TABLE_LIMIT', 15);
12
+ define('SG_POPUP_VERSION', 2.33);
13
  define('SG_POPUP_PRO_URL', 'http://popup-builder.com/');
14
  define('SG_IP_TO_COUNTRY_SERVICE_TIMEOUT', 2);
15
  define('SG_IP_TO_COUNTRY_SERVICE_URL', 'http://sygnoos.in/ip2data/?ip=');
36
  'social' => 'Social',
37
  'exitIntent' => 'Exit Intent',
38
  'subscription' => 'Subscription',
39
+ 'contactForm' => 'Contact Form',
40
  );
41
 
42
  require_once(dirname(__FILE__).'/config-pkg.php');
files/sg_popup_create.php CHANGED
@@ -2,6 +2,9 @@
2
  if(!SG_SHOW_POPUP_REVIEW) {
3
  echo SGFunctions::addReview();
4
  }
 
 
 
5
  ?>
6
  <h2>Add New Popup</h2>
7
  <div class="popups-wrapper">
@@ -91,4 +94,14 @@ if(!SG_SHOW_POPUP_REVIEW) {
91
  </div>
92
  </a>
93
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
94
  </div>
2
  if(!SG_SHOW_POPUP_REVIEW) {
3
  echo SGFunctions::addReview();
4
  }
5
+
6
+ $externalPlugins = IntegrateExternalSettings::getAllExternalPlugins();
7
+
8
  ?>
9
  <h2>Add New Popup</h2>
10
  <div class="popups-wrapper">
94
  </div>
95
  </a>
96
  <?php endif; ?>
97
+ <?php
98
+ if(!empty($externalPlugins)) {
99
+ foreach ($externalPlugins as $externalPlugin) { ?>
100
+ <a class="create-popup-link" href="<?php echo SG_APP_POPUP_ADMIN_URL?>admin.php?page=edit-popup&type=<?php echo $externalPlugin['name']?>">
101
+ <div class="popups-div <?php echo $externalPlugin['name'].'-image';?>">
102
+ </div>
103
+ </a>
104
+ <?php }
105
+ }
106
+ ?>
107
  </div>
files/sg_popup_create_new.php CHANGED
@@ -3,9 +3,17 @@
3
  if (!$popupType) {
4
  $popupType = 'html';
5
  }
 
 
 
 
 
 
 
 
6
  $popupName = "SG".ucfirst(strtolower($popupType));
7
  $popupClassName = $popupName."Popup";
8
- require_once(SG_APP_POPUP_PATH ."/classes/".$popupClassName.".php");
9
  $obj = new $popupClassName();
10
 
11
  global $removeOptions;
@@ -929,7 +937,7 @@
929
  </div>
930
  <?php endif; ?>
931
  <form method="POST" action="<?php echo SG_APP_POPUP_ADMIN_URL;?>admin-post.php" id="add-form">
932
- <input type="hidden" name="action" value="save_popup">
933
  <div class="crud-wrapper">
934
  <div class="cereate-title-wrapper">
935
  <div class="sg-title-crud">
@@ -964,7 +972,7 @@
964
  <div class="handlediv generalTitle" title="Click to toggle"><br></div>
965
  <h3 class="hndle ui-sortable-handle generalTitle" style="cursor: pointer"><span>General</span></h3>
966
  <div class="generalContent sgSameWidthPostBox">
967
- <?php require_once("main_section/".$popupType.".php");?>
968
  <input type="hidden" name="type" value="<?php echo $popupType;?>">
969
  <span class="liquid-width" id="theme-span">Popup theme:</span>
970
  <?php echo sgCreateSelect($sgPopupTheme,'theme',esc_html(@$sgColorboxTheme));?>
@@ -1009,7 +1017,7 @@
1009
  </div>
1010
  </div>
1011
  </div>
1012
- <?php require_once("options_section/".$popupType.".php");?>
1013
  </div>
1014
  <div id="right-main-div">
1015
  <div id="right-main">
3
  if (!$popupType) {
4
  $popupType = 'html';
5
  }
6
+ //Get current paths for popup, for addons it different
7
+ $paths = IntegrateExternalSettings::getCurrentPopupAppPaths($popupType);
8
+ //Get current form action, for addons it different
9
+ $currentActionName = IntegrateExternalSettings::getCurrentPopupAdminPostActionName($popupType);
10
+
11
+ $popupAppPath = $paths['app-path'];
12
+ $popupFilesPath = $paths['files-path'];
13
+
14
  $popupName = "SG".ucfirst(strtolower($popupType));
15
  $popupClassName = $popupName."Popup";
16
+ require_once($popupAppPath ."/classes/".$popupClassName.".php");
17
  $obj = new $popupClassName();
18
 
19
  global $removeOptions;
937
  </div>
938
  <?php endif; ?>
939
  <form method="POST" action="<?php echo SG_APP_POPUP_ADMIN_URL;?>admin-post.php" id="add-form">
940
+ <input type="hidden" name="action" value="<?php echo $currentActionName;?>">
941
  <div class="crud-wrapper">
942
  <div class="cereate-title-wrapper">
943
  <div class="sg-title-crud">
972
  <div class="handlediv generalTitle" title="Click to toggle"><br></div>
973
  <h3 class="hndle ui-sortable-handle generalTitle" style="cursor: pointer"><span>General</span></h3>
974
  <div class="generalContent sgSameWidthPostBox">
975
+ <?php require_once($popupFilesPath."/main_section/".$popupType.".php");?>
976
  <input type="hidden" name="type" value="<?php echo $popupType;?>">
977
  <span class="liquid-width" id="theme-span">Popup theme:</span>
978
  <?php echo sgCreateSelect($sgPopupTheme,'theme',esc_html(@$sgColorboxTheme));?>
1017
  </div>
1018
  </div>
1019
  </div>
1020
+ <?php require_once($popupFilesPath."/options_section/".$popupType.".php");?>
1021
  </div>
1022
  <div id="right-main-div">
1023
  <div id="right-main">
files/sg_popup_media_button.php CHANGED
@@ -31,7 +31,7 @@ function sgPopupMediaButton()
31
  wp_register_style('sg_jQuery_ui', SG_APP_POPUP_URL . "/style/jQueryDialog/jquery-ui.css");
32
  wp_enqueue_style('sg_jQuery_ui');
33
  $img = '<span class="dashicons dashicons-welcome-widgets-menus" id="sg-popup-media-button" style="padding: 3px 2px 0px 0px"></span>';
34
- $output = '<a href="javascript:void(0);" onclick="jQuery(\'#sgpb-thickbox\').dialog({ width: 450, modal: true, title: \'Insert the shortcode\' });" class="button" title="'.$buttonTitle.'" style="padding-left: .4em;">'. $img.$buttonTitle.'</a>';
35
  }
36
  echo $output;
37
  }
@@ -114,7 +114,7 @@ function sgPopupMediaButtonThickboxs()
114
  continue;
115
  }
116
  ?>
117
- <option value="<?=$popup->getId()?>"><?php echo $popup->getTitle();?><?php echo " - ".$popup->getType();?></option>;
118
  <?php endforeach; ?>
119
  </select>
120
  </div>
31
  wp_register_style('sg_jQuery_ui', SG_APP_POPUP_URL . "/style/jQueryDialog/jquery-ui.css");
32
  wp_enqueue_style('sg_jQuery_ui');
33
  $img = '<span class="dashicons dashicons-welcome-widgets-menus" id="sg-popup-media-button" style="padding: 3px 2px 0px 0px"></span>';
34
+ $output = '<a href="javascript:void(0);" onclick="jQuery(\'#sgpb-thickbox\').dialog({ width: 450, modal: true, title: \'Insert the shortcode\', dialogClass: \'sg-popup-builder\' });" class="button" title="'.$buttonTitle.'" style="padding-left: .4em;">'. $img.$buttonTitle.'</a>';
35
  }
36
  echo $output;
37
  }
114
  continue;
115
  }
116
  ?>
117
+ <option value="<?php echo $popup->getId()?>"><?php echo $popup->getTitle();?><?php echo " - ".$popup->getType();?></option>;
118
  <?php endforeach; ?>
119
  </select>
120
  </div>
files/sg_popup_page_selection.php CHANGED
@@ -23,7 +23,7 @@ function sgPopupCallback($post)
23
  $selected ='';
24
  $str = "";
25
  $str .= "<select class=\"choose-popup-type\" name=\"$name\">";
26
- $str .= "<option value=''>Not selected</potion>";
27
  foreach($options as $option)
28
  {
29
  if ($option) {
@@ -36,7 +36,7 @@ function sgPopupCallback($post)
36
  else {
37
  $selected ='';
38
  }
39
- $str .= "<option value='".$id."' disable='".$id."' ".$selected." >$title - $type</potion>";
40
  }
41
  }
42
  $str .="</select>" ;
23
  $selected ='';
24
  $str = "";
25
  $str .= "<select class=\"choose-popup-type\" name=\"$name\">";
26
+ $str .= "<option value=''>Not selected</option>";
27
  foreach($options as $option)
28
  {
29
  if ($option) {
36
  else {
37
  $selected ='';
38
  }
39
+ $str .= "<option value='".$id."' disable='".$id."' ".$selected." >$title - $type</option>";
40
  }
41
  }
42
  $str .="</select>" ;
files/sg_popup_save.php CHANGED
@@ -17,8 +17,9 @@ function sgSanitize($optionsKey)
17
  ) {
18
  if(POPUP_BUILDER_PKG > POPUP_BUILDER_PKG_FREE) {
19
  $sgPopupData = $_POST[$optionsKey];
20
- require_once(SG_APP_POPUP_FILES ."/sg_popup_pro.php");
21
- return SgPopupPro::sgPopupDataSanitize($sgPopupData);
 
22
  }
23
  return wp_kses_post($_POST[$optionsKey]);
24
  }
@@ -296,21 +297,20 @@ function sgPopupSave()
296
  SGPopup::removePopupFromPages($lastId);
297
  if($options['allPagesStatus']) {
298
  if(!empty($showAllPages) && $showAllPages != 'all') {
299
- update_option("SG_ALL_PAGES", false);
300
  setPopupForAllPages($lastId, $allSelectedPages);
301
  }
302
  else {
303
- update_option("SG_ALL_PAGES", $lastId);
 
304
  }
305
  }
306
 
307
  if($options['allPostsStatus']) {
308
  if(!empty($showAllPosts) && $showAllPosts != "all") {
309
- update_option("SG_ALL_POSTS", false);
310
  setPopupForAllPages($lastId, $allSelectedPosts);
311
  }
312
  else {
313
- update_option("SG_ALL_POSTS", $lastId);
314
  }
315
  }
316
 
@@ -381,28 +381,28 @@ function sgPopupSave()
381
  SGPopup::removePopupFromPages($id);
382
  if(!empty($options['allPagesStatus'])) {
383
  if($showAllPages && $showAllPages != 'all') {
384
- update_option("SG_ALL_PAGES", false);
385
  setPopupForAllPages($id, $allSelectedPages);
386
  }
387
  else {
388
- update_option("SG_ALL_PAGES", $id);
389
  }
390
  }
391
- else if(get_option("SG_ALL_PAGES") == $id) {
392
- update_option("SG_ALL_PAGES", false);
393
  }
394
 
395
  if(!empty($options['allPostsStatus'])) {
396
  if(!empty($showAllPosts) && $showAllPosts != "all") {
397
- update_option("SG_ALL_POSTS", false);
398
  setPopupForAllPages($id, $allSelectedPosts);
399
  }
400
  else {
401
- update_option("SG_ALL_POSTS", $id);
402
  }
403
  }
404
- else if(get_option("SG_ALL_POSTS") == $id) {
405
- update_option("SG_ALL_PAGES", false);
406
  }
407
  }
408
 
@@ -411,4 +411,59 @@ function sgPopupSave()
411
  wp_redirect(SG_APP_POPUP_ADMIN_URL."admin.php?page=edit-popup&id=$id&type=$type&saved=1");
412
  exit();
413
  }
 
414
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ) {
18
  if(POPUP_BUILDER_PKG > POPUP_BUILDER_PKG_FREE) {
19
  $sgPopupData = $_POST[$optionsKey];
20
+ return $sgPopupData;
21
+ /*require_once(SG_APP_POPUP_FILES ."/sg_popup_pro.php");
22
+ return SgPopupPro::sgPopupDataSanitize($sgPopupData);*/
23
  }
24
  return wp_kses_post($_POST[$optionsKey]);
25
  }
297
  SGPopup::removePopupFromPages($lastId);
298
  if($options['allPagesStatus']) {
299
  if(!empty($showAllPages) && $showAllPages != 'all') {
 
300
  setPopupForAllPages($lastId, $allSelectedPages);
301
  }
302
  else {
303
+
304
+ addPopupToAllPages($lastId);
305
  }
306
  }
307
 
308
  if($options['allPostsStatus']) {
309
  if(!empty($showAllPosts) && $showAllPosts != "all") {
 
310
  setPopupForAllPages($lastId, $allSelectedPosts);
311
  }
312
  else {
313
+ addPopupToAllPosts($lastId);
314
  }
315
  }
316
 
381
  SGPopup::removePopupFromPages($id);
382
  if(!empty($options['allPagesStatus'])) {
383
  if($showAllPages && $showAllPages != 'all') {
384
+ removePopupFromAllPages($id);
385
  setPopupForAllPages($id, $allSelectedPages);
386
  }
387
  else {
388
+ addPopupToAllPages($id);
389
  }
390
  }
391
+ else {
392
+ removePopupFromAllPages($id);
393
  }
394
 
395
  if(!empty($options['allPostsStatus'])) {
396
  if(!empty($showAllPosts) && $showAllPosts != "all") {
397
+ removePopupFromAllPosts($id);
398
  setPopupForAllPages($id, $allSelectedPosts);
399
  }
400
  else {
401
+ addPopupToAllPosts($id);
402
  }
403
  }
404
+ else {
405
+ removePopupFromAllPosts($id);
406
  }
407
  }
408
 
411
  wp_redirect(SG_APP_POPUP_ADMIN_URL."admin.php?page=edit-popup&id=$id&type=$type&saved=1");
412
  exit();
413
  }
414
+
415
  }
416
+
417
+
418
+ function removePopupFromAllPosts($id) {
419
+ $allPosts = get_option("SG_ALL_POSTS");
420
+
421
+ if(is_array($allPosts)) {
422
+ $key = array_search($id, $allPosts);
423
+
424
+ if ($key !== false) {
425
+ unset($allPosts[$key]);
426
+ }
427
+ update_option("SG_ALL_POSTS", $allPosts);
428
+ }
429
+ }
430
+
431
+ function removePopupFromAllPages($id) {
432
+ $allPages = get_option("SG_ALL_PAGES");
433
+
434
+ if(is_array($allPages)) {
435
+ $key = array_search($id, $allPages);
436
+
437
+ if ($key !== false) {
438
+ unset($allPages[$key]);
439
+ }
440
+ update_option("SG_ALL_PAGES", $allPages);
441
+ }
442
+ }
443
+
444
+ function addPopupToAllPosts($id) {
445
+ $allPosts = get_option("SG_ALL_POSTS");
446
+
447
+ if(!is_array($allPosts)) {
448
+ $allPosts = array();
449
+ }
450
+ $key = array_search($id, $allPosts);
451
+
452
+ if($key == false) {
453
+ array_push($allPosts, $id);
454
+ }
455
+ update_option("SG_ALL_POSTS", $allPosts);
456
+ }
457
+
458
+ function addPopupToAllPages($id) {
459
+ $allPages = get_option("SG_ALL_PAGES");
460
+ if(!is_array($allPages)) {
461
+ $allPages = array();
462
+ }
463
+ $key = array_search($id, $allPages);
464
+
465
+ if($key == false) {
466
+ array_push($allPages, $id);
467
+ }
468
+ update_option("SG_ALL_PAGES", $allPages);
469
+ }
helpers/Integrate_external_settings.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ Class IntegrateExternalSettings {
4
+
5
+ public static function getAllExternalPlugins() {
6
+
7
+ global $wpdb;
8
+
9
+ $query = "SELECT name FROM ". $wpdb->prefix ."sg_popup_addons WHERE type='plugin'";
10
+ $addons = $wpdb->get_results($query, ARRAY_A);
11
+
12
+ if(empty($addons)) {
13
+ return false;
14
+ }
15
+ return $addons;
16
+ }
17
+
18
+ /* retrun All paths */
19
+ public static function getCurrentPopupAppPaths($popupType) {
20
+
21
+ $pathsArray = array();
22
+
23
+ global $wpdb;
24
+ $sql = $wpdb->prepare("SELECT paths FROM ". $wpdb->prefix ."sg_popup_addons WHERE name=%s", $popupType);
25
+ $ressults = $wpdb->get_results($sql, ARRAY_A);
26
+
27
+ if(empty($ressults)) {
28
+ $pathsArray['app-path'] = SG_APP_POPUP_PATH;
29
+ $pathsArray['files-path'] = SG_APP_POPUP_FILES;
30
+ }
31
+ else {
32
+ $addonPaths = json_decode($ressults['0']['paths'], true);
33
+ $pathsArray = $addonPaths;
34
+ }
35
+ return $pathsArray;
36
+ }
37
+
38
+ public static function getCurrentPopupAdminPostActionName($popupType) {
39
+
40
+ global $wpdb;
41
+ $getcurrentAddonSql = $wpdb->prepare("SELECT id FROM ". $wpdb->prefix ."sg_popup_addons WHERE name=%s and type='plugin'", $popupType);
42
+ $addonId = $wpdb->get_results($getcurrentAddonSql, ARRAY_A);
43
+
44
+ if(!empty($addonId)) {
45
+ return $popupType;
46
+ }
47
+ return "save_popup";
48
+ }
49
+
50
+ public static function getPopupGeneralOptions($params) {
51
+
52
+ $options = array(
53
+ 'width' => sgSanitize('width'),
54
+ 'height' => sgSanitize('height'),
55
+ 'delay' => (int)sgSanitize('delay'),
56
+ 'duration' => (int)sgSanitize('duration'),
57
+ 'effect' => sgSanitize('effect'),
58
+ 'escKey' => sgSanitize('escKey'),
59
+ 'scrolling' => sgSanitize('scrolling'),
60
+ 'reposition' => sgSanitize('reposition'),
61
+ 'overlayClose' => sgSanitize('overlayClose'),
62
+ 'contentClick' => sgSanitize('contentClick'),
63
+ 'content-click-behavior' => sgSanitize('content-click-behavior'),
64
+ 'click-redirect-to-url' => sgSanitize('click-redirect-to-url'),
65
+ 'opacity' => sgSanitize('opacity'),
66
+ 'sgOverlayColor' => sgSanitize('sgOverlayColor'),
67
+ 'sg-content-background-color' => sgSanitize('sg-content-background-color'),
68
+ 'popupFixed' => sgSanitize('popupFixed'),
69
+ 'fixedPostion' => sgSanitize('fixedPostion'),
70
+ 'maxWidth' => sgSanitize('maxWidth'),
71
+ 'maxHeight' => sgSanitize('maxHeight'),
72
+ 'initialWidth' => sgSanitize('initialWidth'),
73
+ 'initialHeight' => sgSanitize('initialHeight'),
74
+ 'closeButton' => sgSanitize('closeButton'),
75
+ 'theme' => sgSanitize('theme'),
76
+ 'onScrolling' => sgSanitize('onScrolling'),
77
+ 'beforeScrolingPrsent' => (int)sgSanitize('beforeScrolingPrsent'),
78
+ 'forMobile' => sgSanitize('forMobile'),
79
+ 'openMobile' => sgSanitize('openMobile'), // open only for mobile
80
+ 'repeatPopup' => sgSanitize('repeatPopup'),
81
+ 'popup-appear-number-limit' => sgSanitize('popup-appear-number-limit'),
82
+ 'autoClosePopup' => sgSanitize('autoClosePopup'),
83
+ 'countryStatus' => sgSanitize('countryStatus'),
84
+ 'showAllPages' => $params['showAllPages'],
85
+ "allPagesStatus" => sgSanitize("allPagesStatus"),
86
+ "allPostsStatus" => sgSanitize("allPostsStatus"),
87
+ 'allSelectedPages' => $params['allSelectedPages'],
88
+ 'showAllPosts' => $params['showAllPosts'],
89
+ 'allSelectedPosts' => $params['allSelectedPosts'],
90
+ 'sg-user-status' => sgSanitize('sg-user-status'),
91
+ 'loggedin-user' => sgSanitize('loggedin-user'),
92
+ 'popup-timer-status' => sgSanitize('popup-timer-status'),
93
+ 'popup-start-timer' => sgSanitize('popup-start-timer'),
94
+ 'popup-finish-timer' => sgSanitize('popup-finish-timer'),
95
+ 'allowCountries' => sgSanitize('allowCountries'),
96
+ 'countryName' => sgSanitize('countryName'),
97
+ 'countryIso' => sgSanitize('countryIso'),
98
+ 'disablePopup' => sgSanitize('disablePopup'),
99
+ 'disablePopupOverlay' => sgSanitize('disablePopupOverlay'),
100
+ 'popupClosingTimer' => sgSanitize('popupClosingTimer'),
101
+ 'yesButtonLabel' => sgSanitize('yesButtonLabel'),
102
+ 'noButtonLabel' => sgSanitize('noButtonLabel'),
103
+ 'restrictionUrl' => sgSanitize('restrictionUrl'),
104
+ 'yesButtonBackgroundColor' => sgSanitize('yesButtonBackgroundColor'),
105
+ 'noButtonBackgroundColor' => sgSanitize('noButtonBackgroundColor'),
106
+ 'yesButtonTextColor' => sgSanitize('yesButtonTextColor'),
107
+ 'noButtonTextColor' => sgSanitize('noButtonTextColor'),
108
+ 'yesButtonRadius' => (int)sgSanitize('yesButtonRadius'),
109
+ 'noButtonRadius' => (int)sgSanitize('noButtonRadius'),
110
+ 'pushToBottom' => sgSanitize('pushToBottom'),
111
+ 'onceExpiresTime' => sgSanitize('onceExpiresTime'),
112
+ 'sgOverlayCustomClasss' => sgSanitize('sgOverlayCustomClasss'),
113
+ 'sgContentCustomClasss' => sgSanitize('sgContentCustomClasss'),
114
+ 'theme-close-text' => sgSanitize('theme-close-text'),
115
+ 'socialButtons' => json_encode($socialButtons),
116
+ 'socialOptions' => json_encode($socialOptions),
117
+ 'countdownOptions' => json_encode($countdownOptions),
118
+ 'exitIntentOptions' => json_encode($exitIntentOptions),
119
+ 'videoOptions' => json_encode($videoOptions),
120
+ 'fblikeOptions' => json_encode($fblikeOptions)
121
+ );
122
+
123
+ return $options;
124
+ }
125
+ }
javascript/sg_popup_frontend.js CHANGED
@@ -337,6 +337,9 @@ SGPopup.prototype.sgShowColorboxWithOptions = function() {
337
  sgpopupInit.initByPopupType();
338
 
339
  },
 
 
 
340
  onClosed: function() {
341
  jQuery("#sgcboxLoadedContent").removeClass("sg-current-popup-"+that.popupData['id'])
342
  jQuery('#sgcolorbox').trigger("sgPopupClose", []);
@@ -369,7 +372,8 @@ SGPopup.prototype.sgShowColorboxWithOptions = function() {
369
  if(countryStatus == true && typeof SgUserData != "undefined") {
370
  jQuery.cookie("SG_POPUP_USER_COUNTRY_NAME", SgUserData.countryIsoName, { expires: 365});
371
  }
372
- if (that.popupData['id'] && that.isOnLoad==true && that.openOnce != '') {
 
373
  sgCookieData = '';
374
  jQuery.cookie.defaults = {path:'/'};
375
  var currentCookie = jQuery.cookie('sgPopupDetails'+that.popupData['id']);
337
  sgpopupInit.initByPopupType();
338
 
339
  },
340
+ onCleanup: function() {
341
+ jQuery('#sgcolorbox').trigger("sgPopupCleanup", []);
342
+ },
343
  onClosed: function() {
344
  jQuery("#sgcboxLoadedContent").removeClass("sg-current-popup-"+that.popupData['id'])
345
  jQuery('#sgcolorbox').trigger("sgPopupClose", []);
372
  if(countryStatus == true && typeof SgUserData != "undefined") {
373
  jQuery.cookie("SG_POPUP_USER_COUNTRY_NAME", SgUserData.countryIsoName, { expires: 365});
374
  }
375
+ /* Cookie can't be set here as it's set in Age Restriction popup when the user clicks "yes" */
376
+ if (that.popupData['id'] && that.isOnLoad==true && that.openOnce != '' && that.popupData['type'] != "ageRestriction") {
377
  sgCookieData = '';
378
  jQuery.cookie.defaults = {path:'/'};
379
  var currentCookie = jQuery.cookie('sgPopupDetails'+that.popupData['id']);
javascript/sg_popup_init.js CHANGED
@@ -1,6 +1,16 @@
1
  function SgPopupInit(popupData) {
2
  this.popupData = popupData;
3
  this.shortcodeInPopupContent();
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
  SgPopupInit.prototype.shortcodeInPopupContent = function() {
1
  function SgPopupInit(popupData) {
2
  this.popupData = popupData;
3
  this.shortcodeInPopupContent();
4
+ this.cloneToHtmlPopup();
5
+ }
6
+
7
+ SgPopupInit.prototype.cloneToHtmlPopup = function() {
8
+ var currentPopupId = this.popupData['id'];
9
+ jQuery("#sgpb-all-content-"+currentPopupId).appendTo('.sg-current-popup-'+currentPopupId);
10
+
11
+ jQuery('#sgcolorbox').bind('sgPopupCleanup', function() {
12
+ jQuery('#sgpb-all-content-'+currentPopupId).appendTo(jQuery("#sg-popup-content-"+currentPopupId));
13
+ });
14
  }
15
 
16
  SgPopupInit.prototype.shortcodeInPopupContent = function() {
javascript/sg_popup_support_plugins.js CHANGED
@@ -1,9 +1,9 @@
1
  jQuery(document).ready(function() {
2
  jQuery('#sgcolorbox').bind("sgColorboxOnCompleate", function() {
3
 
4
- if(jQuery('div.wpcf7 > form').length) { /* Contact form 7 */
5
- jQuery('div.wpcf7 > form').wpcf7InitForm();
6
- }
7
 
8
  if(jQuery('.myStat').length) { /* Percent to Infograph */
9
  jQuery('.myStat').circliful();
@@ -29,7 +29,7 @@ jQuery(document).ready(function() {
29
  PDFJS.cMapPacked = true;
30
  jQuery('.pdfemb-viewer').pdfEmbedder();
31
  }
32
-
33
  /* Google Maps Easy */
34
  if(typeof(gmpAllMapsInfo) !== 'undefined' && gmpAllMapsInfo && gmpAllMapsInfo.length) {
35
  for(var i = 0; i < gmpAllMapsInfo.length; i++) {
@@ -45,5 +45,5 @@ jQuery(document).ready(function() {
45
  var obj = new SGPopup();
46
  obj.init();
47
  });
48
-
49
  });
1
  jQuery(document).ready(function() {
2
  jQuery('#sgcolorbox').bind("sgColorboxOnCompleate", function() {
3
 
4
+ // if(jQuery('div.wpcf7 > form').length) { Contact form 7
5
+ // jQuery('div.wpcf7 > form').wpcf7InitForm();
6
+ // }
7
 
8
  if(jQuery('.myStat').length) { /* Percent to Infograph */
9
  jQuery('.myStat').circliful();
29
  PDFJS.cMapPacked = true;
30
  jQuery('.pdfemb-viewer').pdfEmbedder();
31
  }
32
+
33
  /* Google Maps Easy */
34
  if(typeof(gmpAllMapsInfo) !== 'undefined' && gmpAllMapsInfo && gmpAllMapsInfo.length) {
35
  for(var i = 0; i < gmpAllMapsInfo.length; i++) {
45
  var obj = new SGPopup();
46
  obj.init();
47
  });
48
+
49
  });
popup-builder.php CHANGED
@@ -3,9 +3,9 @@
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: http://popup-builder.com
5
  * Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
6
- * Version: 2.3.2
7
  * Author: Sygnoos
8
- * Author URI: https://www.sygnoos.com
9
  * License: GPLv2
10
  */
11
 
@@ -13,6 +13,7 @@ require_once(dirname(__FILE__)."/config.php");
13
 
14
  require_once(SG_APP_POPUP_CLASSES .'/SGPopup.php');
15
  require_once(SG_APP_POPUP_FILES .'/sg_functions.php');
 
16
 
17
  require_once(SG_APP_POPUP_CLASSES .'/PopupInstaller.php'); //cretae tables
18
 
@@ -57,8 +58,9 @@ function sgPopupDeactivate()
57
 
58
 
59
  add_action("admin_menu","sgAddMenu");
60
- function sgAddMenu()
61
  {
 
62
  add_menu_page("Popup Builder", "Popup Builder", "manage_options","PopupBuilder","sgPopupMenu","dashicons-welcome-widgets-menus");
63
  add_submenu_page("PopupBuilder", "All Popups", "All Popups", 'manage_options', "PopupBuilder", "sgPopupMenu");
64
  add_submenu_page("PopupBuilder", "Add New", "Add New", 'manage_options', "create-popup", "sgCreatePopup");
@@ -306,12 +308,12 @@ function getPopupIdInPageByClass($pageId) {
306
  return $popupsID;
307
  }
308
  foreach ($matchers['0'] as $value) {
309
- $ids = explode("sg-popup-id-", $value);
310
- $id = @$ids[1];
311
- if(!empty($id)) {
312
- array_push($popupsID, $id);
313
- }
314
- }
315
  return $popupsID;
316
  }
317
 
@@ -324,22 +326,22 @@ function sgOnloadPopup()
324
  /* get all popups id which set in current page by class */
325
  $popupsIdByClass = getPopupIdInPageByClass($page);
326
 
327
- if(get_option("SG_ALL_PAGES") && (is_page() || is_home() || is_front_page())) {
328
- showPopupInPage(get_option("SG_ALL_PAGES"));
329
- /* return because if has all pages popup it should be open only */
330
- return;
331
- }
332
- if(get_option("SG_ALL_POSTS") && !(is_page() || is_home() || is_front_page())) {
333
- showPopupInPage(get_option("SG_ALL_POSTS"));
334
- /* return because if has all posts popup it should be open only */
335
- return;
336
- }
337
-
338
  if(POPUP_BUILDER_PKG > POPUP_BUILDER_PKG_FREE){
339
  delete_option("SG_MULTIPLE_POPUP");
340
 
341
  /* Retrun all popups id width selected On All Pages */
342
  $popupsId = SgPopupPro::allowPopupInAllPages($page);
 
 
 
 
 
 
 
 
 
 
 
343
 
344
  /* $popupsId[0] its last selected popup id */
345
  if(isset($popupsId[0])) {
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: http://popup-builder.com
5
  * Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
6
+ * Version: 2.3.4
7
  * Author: Sygnoos
8
+ * Author URI: http://www.sygnoos.com
9
  * License: GPLv2
10
  */
11
 
13
 
14
  require_once(SG_APP_POPUP_CLASSES .'/SGPopup.php');
15
  require_once(SG_APP_POPUP_FILES .'/sg_functions.php');
16
+ require_once(SG_APP_POPUP_HELPERS .'/Integrate_external_settings.php');
17
 
18
  require_once(SG_APP_POPUP_CLASSES .'/PopupInstaller.php'); //cretae tables
19
 
58
 
59
 
60
  add_action("admin_menu","sgAddMenu");
61
+ function sgAddMenu($args)
62
  {
63
+
64
  add_menu_page("Popup Builder", "Popup Builder", "manage_options","PopupBuilder","sgPopupMenu","dashicons-welcome-widgets-menus");
65
  add_submenu_page("PopupBuilder", "All Popups", "All Popups", 'manage_options', "PopupBuilder", "sgPopupMenu");
66
  add_submenu_page("PopupBuilder", "Add New", "Add New", 'manage_options', "create-popup", "sgCreatePopup");
308
  return $popupsID;
309
  }
310
  foreach ($matchers['0'] as $value) {
311
+ $ids = explode("sg-popup-id-", $value);
312
+ $id = @$ids[1];
313
+ if(!empty($id)) {
314
+ array_push($popupsID, $id);
315
+ }
316
+ }
317
  return $popupsID;
318
  }
319
 
326
  /* get all popups id which set in current page by class */
327
  $popupsIdByClass = getPopupIdInPageByClass($page);
328
 
 
 
 
 
 
 
 
 
 
 
 
329
  if(POPUP_BUILDER_PKG > POPUP_BUILDER_PKG_FREE){
330
  delete_option("SG_MULTIPLE_POPUP");
331
 
332
  /* Retrun all popups id width selected On All Pages */
333
  $popupsId = SgPopupPro::allowPopupInAllPages($page);
334
+ $sgpb_a = get_option("SG_ALL_POSTS");
335
+ $sgpb_b = get_option("SG_ALL_PAGES");
336
+
337
+ if(!empty($sgpb_a) && is_array(get_option("SG_ALL_POSTS")) && !(is_page() || is_home() || is_front_page())) {
338
+ /* Add to popups Queue */
339
+ $popupsId = array_merge(get_option("SG_ALL_POSTS"), $popupsId);
340
+ }
341
+ if(!empty($sgpb_b) && is_array(get_option("SG_ALL_PAGES")) && (is_page() || is_home() || is_front_page())) {
342
+ /* Add to popups Queue */
343
+ $popupsId = array_merge(get_option("SG_ALL_PAGES"), $popupsId);
344
+ }
345
 
346
  /* $popupsId[0] its last selected popup id */
347
  if(isset($popupsId[0])) {
readme.txt CHANGED
@@ -46,6 +46,17 @@ With popup builder plugin you can insert any type of content, right into your Po
46
  * Shortcode popup
47
 
48
 
 
 
 
 
 
 
 
 
 
 
 
49
  **Popup Builder - PRO features:**
50
 
51
  * Iframe popup - you can set the URL you want to load within an iframe and the popup will load that iframe
@@ -131,9 +142,27 @@ Go to the Popup Builder settings and set your desired options.
131
  9. Content restriction popup
132
  10. Subscription popup
133
  11. Image popup
 
 
134
 
135
  == Changelog ==
136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  = Version 2.3.2 =
138
  * Fusion builder compatible.
139
  * Bug fixes.
@@ -374,7 +403,7 @@ Leave us a good review :)
374
 
375
  == Upgrade Notice ==
376
 
377
- Current Version of Popup Builder is 2.3.2
378
 
379
  == Other Notes ==
380
 
46
  * Shortcode popup
47
 
48
 
49
+ **Popup Builder - 3rd party supported plugins:**
50
+
51
+ * Contact Form 7
52
+ * Ninja Forms
53
+ * Gravity Forms
54
+ * TablePress - Just add `cache_table_output=false` to shortcode Ex. `[table id=213 cache_table_output=false /]`
55
+ * Formidable Forms
56
+ * WP Google Maps
57
+ * HTML5 Maps
58
+ * Review Builder
59
+
60
  **Popup Builder - PRO features:**
61
 
62
  * Iframe popup - you can set the URL you want to load within an iframe and the popup will load that iframe
142
  9. Content restriction popup
143
  10. Subscription popup
144
  11. Image popup
145
+ 12. Countdown popup
146
+ 13. Facebook popup
147
 
148
  == Changelog ==
149
 
150
+ = Version 2.3.4 =
151
+ * PHP version bug fixed.
152
+
153
+ = Version 2.3.3 =
154
+ * Bug fixed connected to PHP script short tag.
155
+ * Bug fixed connected to popup's dialog z-index.
156
+ * Added support for future extensions.
157
+ * Added compatability with Ninja Forms.
158
+ * Added compatability with Gravity Forms.
159
+ * Added compatability with TablePress.
160
+ * Added compatability with Formidable Forms.
161
+ * Added compatability with WP Google Maps.
162
+ * Added compatability with HTML5 Maps.
163
+ * Code cleanup.
164
+ * Code optimization related to incude paths.
165
+
166
  = Version 2.3.2 =
167
  * Fusion builder compatible.
168
  * Bug fixes.
403
 
404
  == Upgrade Notice ==
405
 
406
+ Current Version of Popup Builder is 2.3.3
407
 
408
  == Other Notes ==
409
 
style/jQueryDialog/jquery-ui.css CHANGED
@@ -5,39 +5,39 @@
5
 
6
  /* Layout helpers
7
  ----------------------------------*/
8
- .ui-helper-hidden { display: none; }
9
- .ui-helper-hidden-accessible { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
10
- .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
11
- .ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
12
- .ui-helper-clearfix:after { clear: both; }
13
- .ui-helper-clearfix { zoom: 1; }
14
- .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
15
 
16
 
17
  /* Interaction Cues
18
  ----------------------------------*/
19
- .ui-state-disabled { cursor: default !important; }
20
 
21
 
22
  /* Icons
23
  ----------------------------------*/
24
 
25
  /* states and images */
26
- .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
27
 
28
 
29
  /* Misc visuals
30
  ----------------------------------*/
31
 
32
  /* Overlays */
33
- .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
34
 
35
  .ui-accordion .ui-accordion-header { display: block; cursor: pointer; position: relative; margin-top: 2px; padding: .5em .5em .5em .7em; zoom: 1; }
36
- .ui-accordion .ui-accordion-icons { padding-left: 2.2em; }
37
- .ui-accordion .ui-accordion-noicons { padding-left: .7em; }
38
- .ui-accordion .ui-accordion-icons .ui-accordion-icons { padding-left: 2.2em; }
39
- .ui-accordion .ui-accordion-header .ui-accordion-header-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
40
- .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; overflow: auto; zoom: 1; }
41
 
42
  .ui-autocomplete {
43
  position: absolute;
@@ -47,88 +47,88 @@
47
  }
48
 
49
  /* workarounds */
50
- * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
51
 
52
- .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
53
- .ui-button, .ui-button:link, .ui-button:visited, .ui-button:hover, .ui-button:active { text-decoration: none; }
54
- .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
55
- button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
56
- .ui-button-icons-only { width: 3.4em; }
57
- button.ui-button-icons-only { width: 3.7em; }
58
 
59
  /*button text element */
60
- .ui-button .ui-button-text { display: block; line-height: 1.4; }
61
- .ui-button-text-only .ui-button-text { padding: .4em 1em; }
62
- .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
63
- .ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
64
- .ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
65
- .ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
66
  /* no icon support for input elements, provide padding by default */
67
- input.ui-button { padding: .4em 1em; }
68
 
69
  /*button icon element(s) */
70
- .ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
71
- .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
72
- .ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
73
- .ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
74
- .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
75
 
76
  /*button sets*/
77
- .ui-buttonset { margin-right: 7px; }
78
- .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
79
 
80
  /* workarounds */
81
  button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
82
 
83
- .ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
84
- .ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
85
- .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
86
- .ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
87
- .ui-datepicker .ui-datepicker-prev { left:2px; }
88
- .ui-datepicker .ui-datepicker-next { right:2px; }
89
- .ui-datepicker .ui-datepicker-prev-hover { left:1px; }
90
- .ui-datepicker .ui-datepicker-next-hover { right:1px; }
91
- .ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
92
- .ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
93
- .ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
94
- .ui-datepicker select.ui-datepicker-month-year {width: 100%;}
95
- .ui-datepicker select.ui-datepicker-month,
96
- .ui-datepicker select.ui-datepicker-year { width: 49%;}
97
- .ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
98
- .ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
99
- .ui-datepicker td { border: 0; padding: 1px; }
100
- .ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
101
- .ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
102
- .ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
103
- .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
104
 
105
  /* with multiple calendars */
106
- .ui-datepicker.ui-datepicker-multi { width:auto; }
107
- .ui-datepicker-multi .ui-datepicker-group { float:left; }
108
- .ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
109
- .ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
110
- .ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
111
- .ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
112
- .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
113
- .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
114
- .ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
115
- .ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
116
 
117
  /* RTL support */
118
- .ui-datepicker-rtl { direction: rtl; }
119
- .ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
120
- .ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
121
- .ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
122
- .ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
123
- .ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
124
- .ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
125
- .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
126
- .ui-datepicker-rtl .ui-datepicker-group { float:right; }
127
- .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
128
- .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
129
 
130
  /* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
131
- .ui-datepicker-cover {
132
  position: absolute; /*must have*/
133
  z-index: -1; /*must have*/
134
  filter: mask(); /*must have*/
@@ -138,94 +138,95 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
138
  height: 200px; /*must have*/
139
  }
140
 
141
- .ui-dialog { position: absolute; top: 0; left: 0; padding: .2em; width: 300px; overflow: hidden; z-index: 100000 !important; }
142
- .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
143
- .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
144
- .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
145
- .ui-dialog .ui-dialog-titlebar-close span { display: block; }
146
- .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
147
- .ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
148
- .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
149
- .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
150
- .ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
151
- .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
 
152
  .ui-draggable .ui-dialog-titlebar { cursor: move; }
153
 
154
- .ui-menu { list-style:none; padding: 2px; margin: 0; display:block; outline: none; }
155
- .ui-menu .ui-menu { margin-top: -3px; position: absolute; }
156
- .ui-menu .ui-menu-item { margin: 0; padding: 0; zoom: 1; width: 100%; }
157
- .ui-menu .ui-menu-divider { margin: 5px -2px 5px -2px; height: 0; font-size: 0; line-height: 0; border-width: 1px 0 0 0; }
158
- .ui-menu .ui-menu-item a { text-decoration: none; display: block; padding: 2px .4em; line-height: 1.5; zoom: 1; font-weight: normal; }
159
- .ui-menu .ui-menu-item a.ui-state-focus,
160
- .ui-menu .ui-menu-item a.ui-state-active { font-weight: normal; margin: -1px; }
161
 
162
- .ui-menu .ui-state-disabled { font-weight: normal; margin: .4em 0 .2em; line-height: 1.5; }
163
- .ui-menu .ui-state-disabled a { cursor: default; }
164
 
165
  /* icon support */
166
- .ui-menu-icons { position: relative; }
167
- .ui-menu-icons .ui-menu-item a { position: relative; padding-left: 2em; }
168
 
169
  /* left-aligned */
170
- .ui-menu .ui-icon { position: absolute; top: .2em; left: .2em; }
171
 
172
  /* right-aligned */
173
- .ui-menu .ui-menu-icon { position: static; float: right; }
174
-
175
- .ui-progressbar { height:2em; text-align: left; overflow: hidden; }
176
- .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
177
- .ui-resizable { position: relative;}
178
- .ui-resizable-handle { position: absolute;font-size: 0.1px; display: block; }
179
- .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
180
- .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
181
- .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
182
- .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
183
- .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
184
- .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
185
- .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
186
- .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
187
- .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}
188
- .ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
189
-
190
- .ui-slider { position: relative; text-align: left; }
191
- .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
192
- .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
193
-
194
- .ui-slider-horizontal { height: .8em; }
195
- .ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
196
- .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
197
- .ui-slider-horizontal .ui-slider-range-min { left: 0; }
198
- .ui-slider-horizontal .ui-slider-range-max { right: 0; }
199
-
200
- .ui-slider-vertical { width: .8em; height: 100px; }
201
- .ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
202
- .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
203
- .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
204
- .ui-slider-vertical .ui-slider-range-max { top: 0; }
205
- .ui-spinner { position:relative; display: inline-block; overflow: hidden; padding: 0; vertical-align: middle; }
206
- .ui-spinner-input { border: none; background: none; padding: 0; margin: .2em 0; vertical-align: middle; margin-left: .4em; margin-right: 22px; }
207
- .ui-spinner-button { width: 16px; height: 50%; font-size: .5em; padding: 0; margin: 0; text-align: center; position: absolute; cursor: default; display: block; overflow: hidden; right: 0; }
208
- .ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; border-right: none; } /* more specificity required here to overide default borders */
209
- .ui-spinner .ui-icon { position: absolute; margin-top: -8px; top: 50%; left: 0; } /* vertical centre icon */
210
- .ui-spinner-up { top: 0; }
211
- .ui-spinner-down { bottom: 0; }
212
 
213
  /* TR overrides */
214
- .ui-spinner .ui-icon-triangle-1-s {
215
  /* need to fix icons sprite */
216
  background-position:-65px -16px;
217
  }
218
 
219
- .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
220
- .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
221
- .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 0; margin: 1px .2em 0 0; border-bottom: 0; padding: 0; white-space: nowrap; }
222
- .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
223
- .ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: -1px; padding-bottom: 1px; }
224
- .ui-tabs .ui-tabs-nav li.ui-tabs-active a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { cursor: text; }
225
- .ui-tabs .ui-tabs-nav li a, .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
226
- .ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
227
 
228
- .ui-tooltip {
229
  padding: 8px;
230
  position: absolute;
231
  z-index: 9999;
@@ -234,231 +235,232 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
234
  box-shadow: 0 0 5px #aaa;
235
  }
236
  /* Fades and background-images don't work well together in IE6, drop the image */
237
- * html .ui-tooltip {
238
  background-image: none;
239
  }
240
- body .ui-tooltip { border-width: 2px; }
241
 
242
  /* Component containers
243
  ----------------------------------*/
244
- .ui-widget { font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif; font-size: 1.1em; }
245
- .ui-widget .ui-widget { font-size: 1em; }
246
- .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif; font-size: 1em; }
247
  .ui-widget-content { border: 1px solid #d9d6c4; background: #eceadf url(images/ui-bg_fine-grain_10_eceadf_60x60.png) 50% 50% repeat; color: #1f1f1f; }
248
  .ui-widget-content a { color: #1f1f1f; }
249
- .ui-widget-header { border: 1px solid #d4d1bf; background: #ffffff url(images/ui-bg_fine-grain_15_ffffff_60x60.png) 50% 50% repeat; color: #453821; font-weight: bold; }
250
- .ui-widget-header a { color: #453821; }
251
 
252
  /* Interaction states
253
  ----------------------------------*/
254
- .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cbc7bd; background: #f8f7f6 url(images/ui-bg_fine-grain_10_f8f7f6_60x60.png) 50% 50% repeat; font-weight: bold; color: #654b24; }
255
- .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #654b24; text-decoration: none; }
256
- .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #654b24; background: #654b24 url(images/ui-bg_fine-grain_65_654b24_60x60.png) 50% 50% repeat; font-weight: bold; color: #ffffff; }
257
- .ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, .ui-state-hover a:visited { color: #ffffff; text-decoration: none; }
258
- .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #d9d6c4; background: #eceadf url(images/ui-bg_fine-grain_15_eceadf_60x60.png) 50% 50% repeat; font-weight: bold; color: #140f06; }
259
- .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #140f06; text-decoration: none; }
260
 
261
  /* Interaction Cues
262
  ----------------------------------*/
263
- .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #b2a266; background: #f7f3de url(images/ui-bg_fine-grain_15_f7f3de_60x60.png) 50% 50% repeat; color: #3a3427; }
264
- .ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #3a3427; }
265
- .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #681818; background: #b83400 url(images/ui-bg_fine-grain_68_b83400_60x60.png) 50% 50% repeat; color: #ffffff; }
266
- .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
267
- .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
268
- .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
269
- .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
270
- .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
271
- .ui-state-disabled .ui-icon { filter:Alpha(Opacity=35); } /* For IE8 - See #6059 */
272
 
273
  /* Icons
274
  ----------------------------------*/
275
 
276
  /* states and images */
277
- .ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
278
- .ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
279
- .ui-widget-header .ui-icon {background-image: url(images/ui-icons_b83400_256x240.png); }
280
- .ui-state-default .ui-icon { background-image: url(images/ui-icons_b83400_256x240.png); }
281
- .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
282
- .ui-state-active .ui-icon {background-image: url(images/ui-icons_8c291d_256x240.png); }
283
- .ui-state-highlight .ui-icon {background-image: url(images/ui-icons_3572ac_256x240.png); }
284
- .ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_fbdb93_256x240.png); }
285
 
286
  /* positioning */
287
- .ui-icon-carat-1-n { background-position: 0 0; }
288
- .ui-icon-carat-1-ne { background-position: -16px 0; }
289
- .ui-icon-carat-1-e { background-position: -32px 0; }
290
- .ui-icon-carat-1-se { background-position: -48px 0; }
291
- .ui-icon-carat-1-s { background-position: -64px 0; }
292
- .ui-icon-carat-1-sw { background-position: -80px 0; }
293
- .ui-icon-carat-1-w { background-position: -96px 0; }
294
- .ui-icon-carat-1-nw { background-position: -112px 0; }
295
- .ui-icon-carat-2-n-s { background-position: -128px 0; }
296
- .ui-icon-carat-2-e-w { background-position: -144px 0; }
297
- .ui-icon-triangle-1-n { background-position: 0 -16px; }
298
- .ui-icon-triangle-1-ne { background-position: -16px -16px; }
299
- .ui-icon-triangle-1-e { background-position: -32px -16px; }
300
- .ui-icon-triangle-1-se { background-position: -48px -16px; }
301
- .ui-icon-triangle-1-s { background-position: -64px -16px; }
302
- .ui-icon-triangle-1-sw { background-position: -80px -16px; }
303
- .ui-icon-triangle-1-w { background-position: -96px -16px; }
304
- .ui-icon-triangle-1-nw { background-position: -112px -16px; }
305
- .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
306
- .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
307
- .ui-icon-arrow-1-n { background-position: 0 -32px; }
308
- .ui-icon-arrow-1-ne { background-position: -16px -32px; }
309
- .ui-icon-arrow-1-e { background-position: -32px -32px; }
310
- .ui-icon-arrow-1-se { background-position: -48px -32px; }
311
- .ui-icon-arrow-1-s { background-position: -64px -32px; }
312
- .ui-icon-arrow-1-sw { background-position: -80px -32px; }
313
- .ui-icon-arrow-1-w { background-position: -96px -32px; }
314
- .ui-icon-arrow-1-nw { background-position: -112px -32px; }
315
- .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
316
- .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
317
- .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
318
- .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
319
- .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
320
- .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
321
- .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
322
- .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
323
- .ui-icon-arrowthick-1-n { background-position: 0 -48px; }
324
- .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
325
- .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
326
- .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
327
- .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
328
- .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
329
- .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
330
- .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
331
- .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
332
- .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
333
- .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
334
- .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
335
- .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
336
- .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
337
- .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
338
- .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
339
- .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
340
- .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
341
- .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
342
- .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
343
- .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
344
- .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
345
- .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
346
- .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
347
- .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
348
- .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
349
- .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
350
- .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
351
- .ui-icon-arrow-4 { background-position: 0 -80px; }
352
- .ui-icon-arrow-4-diag { background-position: -16px -80px; }
353
- .ui-icon-extlink { background-position: -32px -80px; }
354
- .ui-icon-newwin { background-position: -48px -80px; }
355
- .ui-icon-refresh { background-position: -64px -80px; }
356
- .ui-icon-shuffle { background-position: -80px -80px; }
357
- .ui-icon-transfer-e-w { background-position: -96px -80px; }
358
- .ui-icon-transferthick-e-w { background-position: -112px -80px; }
359
- .ui-icon-folder-collapsed { background-position: 0 -96px; }
360
- .ui-icon-folder-open { background-position: -16px -96px; }
361
- .ui-icon-document { background-position: -32px -96px; }
362
- .ui-icon-document-b { background-position: -48px -96px; }
363
- .ui-icon-note { background-position: -64px -96px; }
364
- .ui-icon-mail-closed { background-position: -80px -96px; }
365
- .ui-icon-mail-open { background-position: -96px -96px; }
366
- .ui-icon-suitcase { background-position: -112px -96px; }
367
- .ui-icon-comment { background-position: -128px -96px; }
368
- .ui-icon-person { background-position: -144px -96px; }
369
- .ui-icon-print { background-position: -160px -96px; }
370
- .ui-icon-trash { background-position: -176px -96px; }
371
- .ui-icon-locked { background-position: -192px -96px; }
372
- .ui-icon-unlocked { background-position: -208px -96px; }
373
- .ui-icon-bookmark { background-position: -224px -96px; }
374
- .ui-icon-tag { background-position: -240px -96px; }
375
- .ui-icon-home { background-position: 0 -112px; }
376
- .ui-icon-flag { background-position: -16px -112px; }
377
- .ui-icon-calendar { background-position: -32px -112px; }
378
- .ui-icon-cart { background-position: -48px -112px; }
379
- .ui-icon-pencil { background-position: -64px -112px; }
380
- .ui-icon-clock { background-position: -80px -112px; }
381
- .ui-icon-disk { background-position: -96px -112px; }
382
- .ui-icon-calculator { background-position: -112px -112px; }
383
- .ui-icon-zoomin { background-position: -128px -112px; }
384
- .ui-icon-zoomout { background-position: -144px -112px; }
385
- .ui-icon-search { background-position: -160px -112px; }
386
- .ui-icon-wrench { background-position: -176px -112px; }
387
- .ui-icon-gear { background-position: -192px -112px; }
388
- .ui-icon-heart { background-position: -208px -112px; }
389
- .ui-icon-star { background-position: -224px -112px; }
390
- .ui-icon-link { background-position: -240px -112px; }
391
- .ui-icon-cancel { background-position: 0 -128px; }
392
- .ui-icon-plus { background-position: -16px -128px; }
393
- .ui-icon-plusthick { background-position: -32px -128px; }
394
- .ui-icon-minus { background-position: -48px -128px; }
395
- .ui-icon-minusthick { background-position: -64px -128px; }
396
- .ui-icon-close { background-position: -80px -128px; }
397
- .ui-icon-closethick { background-position: -96px -128px; }
398
- .ui-icon-key { background-position: -112px -128px; }
399
- .ui-icon-lightbulb { background-position: -128px -128px; }
400
- .ui-icon-scissors { background-position: -144px -128px; }
401
- .ui-icon-clipboard { background-position: -160px -128px; }
402
- .ui-icon-copy { background-position: -176px -128px; }
403
- .ui-icon-contact { background-position: -192px -128px; }
404
- .ui-icon-image { background-position: -208px -128px; }
405
- .ui-icon-video { background-position: -224px -128px; }
406
- .ui-icon-script { background-position: -240px -128px; }
407
- .ui-icon-alert { background-position: 0 -144px; }
408
- .ui-icon-info { background-position: -16px -144px; }
409
- .ui-icon-notice { background-position: -32px -144px; }
410
- .ui-icon-help { background-position: -48px -144px; }
411
- .ui-icon-check { background-position: -64px -144px; }
412
- .ui-icon-bullet { background-position: -80px -144px; }
413
- .ui-icon-radio-on { background-position: -96px -144px; }
414
- .ui-icon-radio-off { background-position: -112px -144px; }
415
- .ui-icon-pin-w { background-position: -128px -144px; }
416
- .ui-icon-pin-s { background-position: -144px -144px; }
417
- .ui-icon-play { background-position: 0 -160px; }
418
- .ui-icon-pause { background-position: -16px -160px; }
419
- .ui-icon-seek-next { background-position: -32px -160px; }
420
- .ui-icon-seek-prev { background-position: -48px -160px; }
421
- .ui-icon-seek-end { background-position: -64px -160px; }
422
- .ui-icon-seek-start { background-position: -80px -160px; }
423
  /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
424
- .ui-icon-seek-first { background-position: -80px -160px; }
425
- .ui-icon-stop { background-position: -96px -160px; }
426
- .ui-icon-eject { background-position: -112px -160px; }
427
- .ui-icon-volume-off { background-position: -128px -160px; }
428
- .ui-icon-volume-on { background-position: -144px -160px; }
429
- .ui-icon-power { background-position: 0 -176px; }
430
- .ui-icon-signal-diag { background-position: -16px -176px; }
431
- .ui-icon-signal { background-position: -32px -176px; }
432
- .ui-icon-battery-0 { background-position: -48px -176px; }
433
- .ui-icon-battery-1 { background-position: -64px -176px; }
434
- .ui-icon-battery-2 { background-position: -80px -176px; }
435
- .ui-icon-battery-3 { background-position: -96px -176px; }
436
- .ui-icon-circle-plus { background-position: 0 -192px; }
437
- .ui-icon-circle-minus { background-position: -16px -192px; }
438
- .ui-icon-circle-close { background-position: -32px -192px; }
439
- .ui-icon-circle-triangle-e { background-position: -48px -192px; }
440
- .ui-icon-circle-triangle-s { background-position: -64px -192px; }
441
- .ui-icon-circle-triangle-w { background-position: -80px -192px; }
442
- .ui-icon-circle-triangle-n { background-position: -96px -192px; }
443
- .ui-icon-circle-arrow-e { background-position: -112px -192px; }
444
- .ui-icon-circle-arrow-s { background-position: -128px -192px; }
445
- .ui-icon-circle-arrow-w { background-position: -144px -192px; }
446
- .ui-icon-circle-arrow-n { background-position: -160px -192px; }
447
- .ui-icon-circle-zoomin { background-position: -176px -192px; }
448
- .ui-icon-circle-zoomout { background-position: -192px -192px; }
449
- .ui-icon-circle-check { background-position: -208px -192px; }
450
- .ui-icon-circlesmall-plus { background-position: 0 -208px; }
451
- .ui-icon-circlesmall-minus { background-position: -16px -208px; }
452
- .ui-icon-circlesmall-close { background-position: -32px -208px; }
453
- .ui-icon-squaresmall-plus { background-position: -48px -208px; }
454
- .ui-icon-squaresmall-minus { background-position: -64px -208px; }
455
- .ui-icon-squaresmall-close { background-position: -80px -208px; }
456
- .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
457
- .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
458
- .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
459
- .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
460
- .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
461
- .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
 
462
 
463
 
464
  /* Misc visuals
@@ -472,5 +474,5 @@ body .ui-tooltip { border-width: 2px; }
472
 
473
  /* Overlays */
474
 
475
- .ui-widget-overlay {position: fixed !important; background: #6e4f1c url(images/ui-bg_diagonal-maze_20_6e4f1c_10x10.png) 50% 50% repeat; opacity: .6;filter:Alpha(Opacity=60); }
476
  .ui-widget-shadow { margin: 0 0 0 -10px; padding: 5px; background: #000000 url(images/ui-bg_diagonal-maze_40_000000_10x10.png) 50% 50% repeat; opacity: .6;filter:Alpha(Opacity=60); -moz-border-radius: 18px; -khtml-border-radius: 18px; -webkit-border-radius: 18px; border-radius: 18px; }
5
 
6
  /* Layout helpers
7
  ----------------------------------*/
8
+ .sg-popup-builder .ui-helper-hidden { display: none; }
9
+ .sg-popup-builder .ui-helper-hidden-accessible { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
10
+ .sg-popup-builder .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
11
+ .sg-popup-builder .ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
12
+ .sg-popup-builder .ui-helper-clearfix:after { clear: both; }
13
+ .sg-popup-builder .ui-helper-clearfix { zoom: 1; }
14
+ .sg-popup-builder .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
15
 
16
 
17
  /* Interaction Cues
18
  ----------------------------------*/
19
+ .sg-popup-builder .ui-state-disabled { cursor: default !important; }
20
 
21
 
22
  /* Icons
23
  ----------------------------------*/
24
 
25
  /* states and images */
26
+ .sg-popup-builder .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
27
 
28
 
29
  /* Misc visuals
30
  ----------------------------------*/
31
 
32
  /* Overlays */
33
+ .sg-popup-builder + .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
34
 
35
  .ui-accordion .ui-accordion-header { display: block; cursor: pointer; position: relative; margin-top: 2px; padding: .5em .5em .5em .7em; zoom: 1; }
36
+ .sg-popup-builder .ui-accordion .ui-accordion-icons { padding-left: 2.2em; }
37
+ .sg-popup-builder .ui-accordion .ui-accordion-noicons { padding-left: .7em; }
38
+ .sg-popup-builder .ui-accordion .ui-accordion-icons .ui-accordion-icons { padding-left: 2.2em; }
39
+ .sg-popup-builder .ui-accordion .ui-accordion-header .ui-accordion-header-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
40
+ .sg-popup-builder .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; overflow: auto; zoom: 1; }
41
 
42
  .ui-autocomplete {
43
  position: absolute;
47
  }
48
 
49
  /* workarounds */
50
+ * html .sg-popup-builder .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
51
 
52
+ .sg-popup-builder .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
53
+ .sg-popup-builder .ui-button, .sg-popup-builder .ui-button:link, .sg-popup-builder .ui-button:visited, .sg-popup-builder .ui-button:hover, .sg-popup-builder .ui-button:active { text-decoration: none; }
54
+ .sg-popup-builder .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
55
+ .sg-popup-builder button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
56
+ .sg-popup-builder .ui-button-icons-only { width: 3.4em; }
57
+ .sg-popup-builder button.ui-button-icons-only { width: 3.7em; }
58
 
59
  /*button text element */
60
+ .sg-popup-builder .ui-button .ui-button-text { display: block; line-height: 1.4; }
61
+ .sg-popup-builder .ui-button-text-only .ui-button-text { padding: .4em 1em; }
62
+ .sg-popup-builder .ui-button-icon-only .ui-button-text, .sg-popup-builder .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
63
+ .sg-popup-builder .ui-button-text-icon-primary .ui-button-text, .sg-popup-builder .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
64
+ .sg-popup-builder .ui-button-text-icon-secondary .ui-button-text, .sg-popup-builder .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
65
+ .sg-popup-builder .ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
66
  /* no icon support for input elements, provide padding by default */
67
+ .sg-popup-builder input.ui-button { padding: .4em 1em; }
68
 
69
  /*button icon element(s) */
70
+ .sg-popup-builder + .ui-button-icon-only .ui-icon,.sg-popup-builder + .ui-button-text-icon-primary .ui-icon, .sg-popup-builder + .ui-button-text-icon-secondary .ui-icon,.sg-popup-builder + .ui-button-text-icons .ui-icon,.sg-popup-builder + .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
71
+ .sg-popup-builder + .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
72
+ .sg-popup-builder + .ui-button-text-icon-primary .ui-button-icon-primary,.sg-popup-builder + .ui-button-text-icons .ui-button-icon-primary,.sg-popup-builder + .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
73
+ .sg-popup-builder + .ui-button-text-icon-secondary .ui-button-icon-secondary,.sg-popup-builder + .ui-button-text-icons .ui-button-icon-secondary,.sg-popup-builder + .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
74
+ .sg-popup-builder + .ui-button-text-icons .ui-button-icon-secondary,.sg-popup-builder + .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
75
 
76
  /*button sets*/
77
+ .sg-popup-builder .ui-buttonset { margin-right: 7px; }
78
+ .sg-popup-builder .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
79
 
80
  /* workarounds */
81
  button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
82
 
83
+ .sg-popup-builder .ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
84
+ .sg-popup-builder .ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
85
+ .sg-popup-builder .ui-datepicker .ui-datepicker-prev, .sg-popup-builder .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
86
+ .sg-popup-builder .ui-datepicker .ui-datepicker-prev-hover, .sg-popup-builder .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
87
+ .sg-popup-builder .ui-datepicker .ui-datepicker-prev { left:2px; }
88
+ .sg-popup-builder .ui-datepicker .ui-datepicker-next { right:2px; }
89
+ .sg-popup-builder .ui-datepicker .ui-datepicker-prev-hover { left:1px; }
90
+ .sg-popup-builder .ui-datepicker .ui-datepicker-next-hover { right:1px; }
91
+ .sg-popup-builder .ui-datepicker .ui-datepicker-prev span, .sg-popup-builder .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
92
+ .sg-popup-builder .ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
93
+ .sg-popup-builder .ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
94
+ .sg-popup-builder .ui-datepicker select.ui-datepicker-month-year {width: 100%;}
95
+ .sg-popup-builder .ui-datepicker select.ui-datepicker-month, .sg-popup-builder
96
+ .sg-popup-builder .ui-datepicker select.ui-datepicker-year { width: 49%;}
97
+ .sg-popup-builder .ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
98
+ .sg-popup-builder .ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
99
+ .sg-popup-builder .ui-datepicker td { border: 0; padding: 1px; }
100
+ .sg-popup-builder .ui-datepicker td span, .sg-popup-builder .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
101
+ .sg-popup-builder .ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
102
+ .sg-popup-builder .ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
103
+ .sg-popup-builder .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
104
 
105
  /* with multiple calendars */
106
+ .sg-popup-builder .ui-datepicker.ui-datepicker-multi { width:auto; }
107
+ .sg-popup-builder .ui-datepicker-multi .ui-datepicker-group { float:left; }
108
+ .sg-popup-builder .ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
109
+ .sg-popup-builder .ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
110
+ .sg-popup-builder .ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
111
+ .sg-popup-builder .ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
112
+ .sg-popup-builder .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
113
+ .sg-popup-builder .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
114
+ .sg-popup-builder .ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
115
+ .sg-popup-builder .ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
116
 
117
  /* RTL support */
118
+ .sg-popup-builder .ui-datepicker-rtl { direction: rtl; }
119
+ .sg-popup-builder .ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
120
+ .sg-popup-builder .ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
121
+ .sg-popup-builder .ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
122
+ .sg-popup-builder .ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
123
+ .sg-popup-builder .ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
124
+ .sg-popup-builder .ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
125
+ .sg-popup-builder .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
126
+ .sg-popup-builder .ui-datepicker-rtl .ui-datepicker-group { float:right; }
127
+ .sg-popup-builder .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
128
+ .sg-popup-builder .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
129
 
130
  /* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
131
+ .sg-popup-builder .ui-datepicker-cover {
132
  position: absolute; /*must have*/
133
  z-index: -1; /*must have*/
134
  filter: mask(); /*must have*/
138
  height: 200px; /*must have*/
139
  }
140
 
141
+
142
+ .sg-popup-builder.ui-dialog { position: absolute; top: 0; left: 0; padding: .2em; width: 300px; overflow: hidden; z-index: 100000 !important; }
143
+ .sg-popup-builder.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
144
+ .sg-popup-builder.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
145
+ .sg-popup-builder.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
146
+ .sg-popup-builder.ui-dialog .ui-dialog-titlebar-close span { display: block; }
147
+ .sg-popup-builder.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
148
+ .sg-popup-builder.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
149
+ .sg-popup-builder.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
150
+ .sg-popup-builder.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
151
+ .sg-popup-builder.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
152
+ .sg-popup-builder.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
153
  .ui-draggable .ui-dialog-titlebar { cursor: move; }
154
 
155
+ .sg-popup-builder .ui-menu { list-style:none; padding: 2px; margin: 0; display:block; outline: none; }
156
+ .sg-popup-builder .ui-menu .ui-menu { margin-top: -3px; position: absolute; }
157
+ .sg-popup-builder .ui-menu .ui-menu-item { margin: 0; padding: 0; zoom: 1; width: 100%; }
158
+ .sg-popup-builder .ui-menu .ui-menu-divider { margin: 5px -2px 5px -2px; height: 0; font-size: 0; line-height: 0; border-width: 1px 0 0 0; }
159
+ .sg-popup-builder .ui-menu .ui-menu-item a { text-decoration: none; display: block; padding: 2px .4em; line-height: 1.5; zoom: 1; font-weight: normal; }
160
+ .sg-popup-builder .ui-menu .ui-menu-item a.ui-state-focus,
161
+ .sg-popup-builder .ui-menu .ui-menu-item a.ui-state-active { font-weight: normal; margin: -1px; }
162
 
163
+ .sg-popup-builder .ui-menu .ui-state-disabled { font-weight: normal; margin: .4em 0 .2em; line-height: 1.5; }
164
+ .sg-popup-builder .ui-menu .ui-state-disabled a { cursor: default; }
165
 
166
  /* icon support */
167
+ .sg-popup-builder .ui-menu-icons { position: relative; }
168
+ .sg-popup-builder .ui-menu-icons .ui-menu-item a { position: relative; padding-left: 2em; }
169
 
170
  /* left-aligned */
171
+ .sg-popup-builder .ui-menu .ui-icon { position: absolute; top: .2em; left: .2em; }
172
 
173
  /* right-aligned */
174
+ .sg-popup-builder .ui-menu .ui-menu-icon { position: static; float: right; }
175
+
176
+ .sg-popup-builder .ui-progressbar { height:2em; text-align: left; overflow: hidden; }
177
+ .sg-popup-builder .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
178
+ .sg-popup-builder .ui-resizable { position: relative;}
179
+ .sg-popup-builder .ui-resizable-handle { position: absolute;font-size: 0.1px; display: block; }
180
+ .sg-popup-builder .ui-resizable-disabled .ui-resizable-handle, .sg-popup-builder .ui-resizable-autohide .ui-resizable-handle { display: none; }
181
+ .sg-popup-builder .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
182
+ .sg-popup-builder .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
183
+ .sg-popup-builder .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
184
+ .sg-popup-builder .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
185
+ .sg-popup-builder .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
186
+ .sg-popup-builder .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
187
+ .sg-popup-builder .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
188
+ .sg-popup-builder .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}
189
+ .sg-popup-builder .ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
190
+
191
+ .sg-popup-builder .ui-slider { position: relative; text-align: left; }
192
+ .sg-popup-builder .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
193
+ .sg-popup-builder .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
194
+
195
+ .sg-popup-builder .ui-slider-horizontal { height: .8em; }
196
+ .sg-popup-builder .ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
197
+ .sg-popup-builder .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
198
+ .sg-popup-builder .ui-slider-horizontal .ui-slider-range-min { left: 0; }
199
+ .sg-popup-builder .ui-slider-horizontal .ui-slider-range-max { right: 0; }
200
+
201
+ .sg-popup-builder .ui-slider-vertical { width: .8em; height: 100px; }
202
+ .sg-popup-builder .ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
203
+ .sg-popup-builder .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
204
+ .sg-popup-builder .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
205
+ .sg-popup-builder .ui-slider-vertical .ui-slider-range-max { top: 0; }
206
+ .sg-popup-builder .ui-spinner { position:relative; display: inline-block; overflow: hidden; padding: 0; vertical-align: middle; }
207
+ .sg-popup-builder .ui-spinner-input { border: none; background: none; padding: 0; margin: .2em 0; vertical-align: middle; margin-left: .4em; margin-right: 22px; }
208
+ .sg-popup-builder .ui-spinner-button { width: 16px; height: 50%; font-size: .5em; padding: 0; margin: 0; text-align: center; position: absolute; cursor: default; display: block; overflow: hidden; right: 0; }
209
+ .sg-popup-builder .ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; border-right: none; } /* more specificity required here to overide default borders */
210
+ .sg-popup-builder .ui-spinner .ui-icon { position: absolute; margin-top: -8px; top: 50%; left: 0; } /* vertical centre icon */
211
+ .sg-popup-builder .ui-spinner-up { top: 0; }
212
+ .sg-popup-builder .ui-spinner-down { bottom: 0; }
213
 
214
  /* TR overrides */
215
+ .sg-popup-builder .ui-spinner .ui-icon-triangle-1-s {
216
  /* need to fix icons sprite */
217
  background-position:-65px -16px;
218
  }
219
 
220
+ .sg-popup-builder .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
221
+ .sg-popup-builder .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
222
+ .sg-popup-builder .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 0; margin: 1px .2em 0 0; border-bottom: 0; padding: 0; white-space: nowrap; }
223
+ .sg-popup-builder .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
224
+ .sg-popup-builder .ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: -1px; padding-bottom: 1px; }
225
+ .sg-popup-builder .ui-tabs .ui-tabs-nav li.ui-tabs-active a, .sg-popup-builder .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .sg-popup-builder .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { cursor: text; }
226
+ .sg-popup-builder .ui-tabs .ui-tabs-nav li a, .sg-popup-builder .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
227
+ .sg-popup-builder .ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
228
 
229
+ .sg-popup-builder .ui-tooltip {
230
  padding: 8px;
231
  position: absolute;
232
  z-index: 9999;
235
  box-shadow: 0 0 5px #aaa;
236
  }
237
  /* Fades and background-images don't work well together in IE6, drop the image */
238
+ * html .sg-popup-builder .ui-tooltip {
239
  background-image: none;
240
  }
241
+ body .sg-popup-builder .ui-tooltip { border-width: 2px; }
242
 
243
  /* Component containers
244
  ----------------------------------*/
245
+ .sg-popup-builder .ui-widget { font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif; font-size: 1.1em; }
246
+ .sg-popup-builder .ui-widget .ui-widget { font-size: 1em; }
247
+ .sg-popup-builder .ui-widget input,.sg-popup-builder .ui-widget select,.sg-popup-builder .ui-widget textarea,.sg-popup-builder .ui-widget button { font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif; font-size: 1em; }
248
  .ui-widget-content { border: 1px solid #d9d6c4; background: #eceadf url(images/ui-bg_fine-grain_10_eceadf_60x60.png) 50% 50% repeat; color: #1f1f1f; }
249
  .ui-widget-content a { color: #1f1f1f; }
250
+ .sg-popup-builder .ui-widget-header { border: 1px solid #d4d1bf; background: #ffffff url(images/ui-bg_fine-grain_15_ffffff_60x60.png) 50% 50% repeat; color: #453821; font-weight: bold; }
251
+ .sg-popup-builder .ui-widget-header a { color: #453821; }
252
 
253
  /* Interaction states
254
  ----------------------------------*/
255
+ .sg-popup-builder .ui-state-default, .sg-popup-builder .ui-widget-content .ui-state-default,.sg-popup-builder .ui-widget-header .ui-state-default { border: 1px solid #cbc7bd; background: #f8f7f6 url(images/ui-bg_fine-grain_10_f8f7f6_60x60.png) 50% 50% repeat; font-weight: bold; color: #654b24; }
256
+ .sg-popup-builder .ui-state-default a, .sg-popup-builder .ui-state-default a:link, .sg-popup-builder .ui-state-default a:visited { color: #654b24; text-decoration: none; }
257
+ .sg-popup-builder .ui-state-hover, .sg-popup-builder .ui-widget-content .ui-state-hover, .sg-popup-builder .ui-widget-header .ui-state-hover, .sg-popup-builder .ui-state-focus, .sg-popup-builder .ui-widget-content .ui-state-focus, .sg-popup-builder .ui-widget-header .ui-state-focus { border: 1px solid #654b24; background: #654b24 url(images/ui-bg_fine-grain_65_654b24_60x60.png) 50% 50% repeat; font-weight: bold; color: #ffffff; }
258
+ .sg-popup-builder .ui-state-hover a, .sg-popup-builder .ui-state-hover a:hover, .sg-popup-builder .ui-state-hover a:link, .sg-popup-builder .ui-state-hover a:visited { color: #ffffff; text-decoration: none; }
259
+ .sg-popup-builder .ui-state-active, .sg-popup-builder .ui-widget-content .ui-state-active, .sg-popup-builder .ui-widget-header .ui-state-active { border: 1px solid #d9d6c4; background: #eceadf url(images/ui-bg_fine-grain_15_eceadf_60x60.png) 50% 50% repeat; font-weight: bold; color: #140f06; }
260
+ .sg-popup-builder .ui-state-active a, .sg-popup-builder .ui-state-active a:link, .sg-popup-builder .ui-state-active a:visited { color: #140f06; text-decoration: none; }
261
 
262
  /* Interaction Cues
263
  ----------------------------------*/
264
+ .sg-popup-builder .ui-state-highlight, .sg-popup-builder .ui-widget-content .ui-state-highlight, .sg-popup-builder .ui-widget-header .ui-state-highlight {border: 1px solid #b2a266; background: #f7f3de url(images/ui-bg_fine-grain_15_f7f3de_60x60.png) 50% 50% repeat; color: #3a3427; }
265
+ .sg-popup-builder .ui-state-highlight a,.sg-popup-builder .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #3a3427; }
266
+ .sg-popup-builder .ui-state-error,.sg-popup-builder .ui-widget-content .ui-state-error,.sg-popup-builder .ui-widget-header .ui-state-error {border: 1px solid #681818; background: #b83400 url(images/ui-bg_fine-grain_68_b83400_60x60.png) 50% 50% repeat; color: #ffffff; }
267
+ .sg-popup-builder .ui-state-error a,.sg-popup-builder .ui-widget-content .ui-state-error a,.sg-popup-builder .ui-widget-header .ui-state-error a { color: #ffffff; }
268
+ .sg-popup-builder .ui-state-error-text, .sg-popup-builder .ui-widget-content .ui-state-error-text, .sg-popup-builder .ui-widget-header .ui-state-error-text { color: #ffffff; }
269
+ .sg-popup-builder .ui-priority-primary,.sg-popup-builder .ui-widget-content .ui-priority-primary, .sg-popup-builder .ui-widget-header .ui-priority-primary { font-weight: bold; }
270
+ .sg-popup-builder .ui-priority-secondary, .sg-popup-builder .ui-widget-content .ui-priority-secondary, .sg-popup-builder .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
271
+ .sg-popup-builder .ui-state-disabled, .sg-popup-builder .ui-widget-content .ui-state-disabled, .sg-popup-builder .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
272
+ .sg-popup-builder .ui-state-disabled .ui-icon { filter:Alpha(Opacity=35); } /* For IE8 - See #6059 */
273
 
274
  /* Icons
275
  ----------------------------------*/
276
 
277
  /* states and images */
278
+ .sg-popup-builder .ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
279
+ .sg-popup-builder .ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
280
+ .sg-popup-builder .ui-widget-header .ui-icon {background-image: url(images/ui-icons_b83400_256x240.png); }
281
+ .sg-popup-builder .ui-state-default .ui-icon { background-image: url(images/ui-icons_b83400_256x240.png); }
282
+ .sg-popup-builder .ui-state-hover .ui-icon,.sg-popup-builder .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
283
+ .sg-popup-builder .ui-state-active .ui-icon {background-image: url(images/ui-icons_8c291d_256x240.png); }
284
+ .sg-popup-builder .ui-state-highlight .ui-icon {background-image: url(images/ui-icons_3572ac_256x240.png); }
285
+ .sg-popup-builder .ui-state-error .ui-icon,.sg-popup-builder .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_fbdb93_256x240.png); }
286
 
287
  /* positioning */
288
+ .sg-popup-builder .ui-icon-carat-1-n { background-position: 0 0; }
289
+ .sg-popup-builder .ui-icon-carat-1-ne { background-position: -16px 0; }
290
+ .sg-popup-builder .ui-icon-carat-1-e { background-position: -32px 0; }
291
+ .sg-popup-builder .ui-icon-carat-1-se { background-position: -48px 0; }
292
+ .sg-popup-builder .ui-icon-carat-1-s { background-position: -64px 0; }
293
+ .sg-popup-builder .ui-icon-carat-1-sw { background-position: -80px 0; }
294
+ .sg-popup-builder .ui-icon-carat-1-w { background-position: -96px 0; }
295
+ .sg-popup-builder .ui-icon-carat-1-nw { background-position: -112px 0; }
296
+ .sg-popup-builder .ui-icon-carat-2-n-s { background-position: -128px 0; }
297
+ .sg-popup-builder .ui-icon-carat-2-e-w { background-position: -144px 0; }
298
+ .sg-popup-builder .ui-icon-triangle-1-n { background-position: 0 -16px; }
299
+ .sg-popup-builder .ui-icon-triangle-1-ne { background-position: -16px -16px; }
300
+ .sg-popup-builder .ui-icon-triangle-1-e { background-position: -32px -16px; }
301
+ .sg-popup-builder .ui-icon-triangle-1-se { background-position: -48px -16px; }
302
+ .sg-popup-builder .ui-icon-triangle-1-s { background-position: -64px -16px; }
303
+ .sg-popup-builder .ui-icon-triangle-1-sw { background-position: -80px -16px; }
304
+ .sg-popup-builder .ui-icon-triangle-1-w { background-position: -96px -16px; }
305
+ .sg-popup-builder .ui-icon-triangle-1-nw { background-position: -112px -16px; }
306
+ .sg-popup-builder .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
307
+ .sg-popup-builder .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
308
+ .sg-popup-builder .ui-icon-arrow-1-n { background-position: 0 -32px; }
309
+ .sg-popup-builder .ui-icon-arrow-1-ne { background-position: -16px -32px; }
310
+ .sg-popup-builder .ui-icon-arrow-1-e { background-position: -32px -32px; }
311
+ .sg-popup-builder .ui-icon-arrow-1-se { background-position: -48px -32px; }
312
+ .sg-popup-builder .ui-icon-arrow-1-s { background-position: -64px -32px; }
313
+ .sg-popup-builder .ui-icon-arrow-1-sw { background-position: -80px -32px; }
314
+ .sg-popup-builder .ui-icon-arrow-1-w { background-position: -96px -32px; }
315
+ .sg-popup-builder .ui-icon-arrow-1-nw { background-position: -112px -32px; }
316
+ .sg-popup-builder .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
317
+ .sg-popup-builder .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
318
+ .sg-popup-builder .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
319
+ .sg-popup-builder .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
320
+ .sg-popup-builder .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
321
+ .sg-popup-builder .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
322
+ .sg-popup-builder .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
323
+ .sg-popup-builder .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
324
+ .sg-popup-builder .ui-icon-arrowthick-1-n { background-position: 0 -48px; }
325
+ .sg-popup-builder .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
326
+ .sg-popup-builder .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
327
+ .sg-popup-builder .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
328
+ .sg-popup-builder .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
329
+ .sg-popup-builder .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
330
+ .sg-popup-builder .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
331
+ .sg-popup-builder .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
332
+ .sg-popup-builder .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
333
+ .sg-popup-builder .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
334
+ .sg-popup-builder .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
335
+ .sg-popup-builder .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
336
+ .sg-popup-builder .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
337
+ .sg-popup-builder .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
338
+ .sg-popup-builder .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
339
+ .sg-popup-builder .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
340
+ .sg-popup-builder .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
341
+ .sg-popup-builder .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
342
+ .sg-popup-builder .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
343
+ .sg-popup-builder .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
344
+ .sg-popup-builder .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
345
+ .sg-popup-builder .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
346
+ .sg-popup-builder .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
347
+ .sg-popup-builder .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
348
+ .sg-popup-builder .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
349
+ .sg-popup-builder .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
350
+ .sg-popup-builder .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
351
+ .sg-popup-builder .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
352
+ .sg-popup-builder .ui-icon-arrow-4 { background-position: 0 -80px; }
353
+ .sg-popup-builder .ui-icon-arrow-4-diag { background-position: -16px -80px; }
354
+ .sg-popup-builder .ui-icon-extlink { background-position: -32px -80px; }
355
+ .sg-popup-builder .ui-icon-newwin { background-position: -48px -80px; }
356
+ .sg-popup-builder .ui-icon-refresh { background-position: -64px -80px; }
357
+ .sg-popup-builder .ui-icon-shuffle { background-position: -80px -80px; }
358
+ .sg-popup-builder .ui-icon-transfer-e-w { background-position: -96px -80px; }
359
+ .sg-popup-builder .ui-icon-transferthick-e-w { background-position: -112px -80px; }
360
+ .sg-popup-builder .ui-icon-folder-collapsed { background-position: 0 -96px; }
361
+ .sg-popup-builder .ui-icon-folder-open { background-position: -16px -96px; }
362
+ .sg-popup-builder .ui-icon-document { background-position: -32px -96px; }
363
+ .sg-popup-builder .ui-icon-document-b { background-position: -48px -96px; }
364
+ .sg-popup-builder .ui-icon-note { background-position: -64px -96px; }
365
+ .sg-popup-builder .ui-icon-mail-closed { background-position: -80px -96px; }
366
+ .sg-popup-builder .ui-icon-mail-open { background-position: -96px -96px; }
367
+ .sg-popup-builder .ui-icon-suitcase { background-position: -112px -96px; }
368
+ .sg-popup-builder .ui-icon-comment { background-position: -128px -96px; }
369
+ .sg-popup-builder .ui-icon-person { background-position: -144px -96px; }
370
+ .sg-popup-builder .ui-icon-print { background-position: -160px -96px; }
371
+ .sg-popup-builder .ui-icon-trash { background-position: -176px -96px; }
372
+ .sg-popup-builder .ui-icon-locked { background-position: -192px -96px; }
373
+ .sg-popup-builder .ui-icon-unlocked { background-position: -208px -96px; }
374
+ .sg-popup-builder .ui-icon-bookmark { background-position: -224px -96px; }
375
+ .sg-popup-builder .ui-icon-tag { background-position: -240px -96px; }
376
+ .sg-popup-builder .ui-icon-home { background-position: 0 -112px; }
377
+ .sg-popup-builder .ui-icon-flag { background-position: -16px -112px; }
378
+ .sg-popup-builder .ui-icon-calendar { background-position: -32px -112px; }
379
+ .sg-popup-builder .ui-icon-cart { background-position: -48px -112px; }
380
+ .sg-popup-builder .ui-icon-pencil { background-position: -64px -112px; }
381
+ .sg-popup-builder .ui-icon-clock { background-position: -80px -112px; }
382
+ .sg-popup-builder .ui-icon-disk { background-position: -96px -112px; }
383
+ .sg-popup-builder .ui-icon-calculator { background-position: -112px -112px; }
384
+ .sg-popup-builder .ui-icon-zoomin { background-position: -128px -112px; }
385
+ .sg-popup-builder .ui-icon-zoomout { background-position: -144px -112px; }
386
+ .sg-popup-builder .ui-icon-search { background-position: -160px -112px; }
387
+ .sg-popup-builder .ui-icon-wrench { background-position: -176px -112px; }
388
+ .sg-popup-builder .ui-icon-gear { background-position: -192px -112px; }
389
+ .sg-popup-builder .ui-icon-heart { background-position: -208px -112px; }
390
+ .sg-popup-builder .ui-icon-star { background-position: -224px -112px; }
391
+ .sg-popup-builder .ui-icon-link { background-position: -240px -112px; }
392
+ .sg-popup-builder .ui-icon-cancel { background-position: 0 -128px; }
393
+ .sg-popup-builder .ui-icon-plus { background-position: -16px -128px; }
394
+ .sg-popup-builder .ui-icon-plusthick { background-position: -32px -128px; }
395
+ .sg-popup-builder .ui-icon-minus { background-position: -48px -128px; }
396
+ .sg-popup-builder .ui-icon-minusthick { background-position: -64px -128px; }
397
+ .sg-popup-builder .ui-icon-close { background-position: -80px -128px; }
398
+ .sg-popup-builder .ui-icon-closethick { background-position: -96px -128px; }
399
+ .sg-popup-builder .ui-icon-key { background-position: -112px -128px; }
400
+ .sg-popup-builder .ui-icon-lightbulb { background-position: -128px -128px; }
401
+ .sg-popup-builder .ui-icon-scissors { background-position: -144px -128px; }
402
+ .sg-popup-builder .ui-icon-clipboard { background-position: -160px -128px; }
403
+ .sg-popup-builder .ui-icon-copy { background-position: -176px -128px; }
404
+ .sg-popup-builder .ui-icon-contact { background-position: -192px -128px; }
405
+ .sg-popup-builder .ui-icon-image { background-position: -208px -128px; }
406
+ .sg-popup-builder .ui-icon-video { background-position: -224px -128px; }
407
+ .sg-popup-builder .ui-icon-script { background-position: -240px -128px; }
408
+ .sg-popup-builder .ui-icon-alert { background-position: 0 -144px; }
409
+ .sg-popup-builder .ui-icon-info { background-position: -16px -144px; }
410
+ .sg-popup-builder .ui-icon-notice { background-position: -32px -144px; }
411
+ .sg-popup-builder .ui-icon-help { background-position: -48px -144px; }
412
+ .sg-popup-builder .ui-icon-check { background-position: -64px -144px; }
413
+ .sg-popup-builder .ui-icon-bullet { background-position: -80px -144px; }
414
+ .sg-popup-builder .ui-icon-radio-on { background-position: -96px -144px; }
415
+ .sg-popup-builder .ui-icon-radio-off { background-position: -112px -144px; }
416
+ .sg-popup-builder .ui-icon-pin-w { background-position: -128px -144px; }
417
+ .sg-popup-builder .ui-icon-pin-s { background-position: -144px -144px; }
418
+ .sg-popup-builder .ui-icon-play { background-position: 0 -160px; }
419
+ .sg-popup-builder .ui-icon-pause { background-position: -16px -160px; }
420
+ .sg-popup-builder .ui-icon-seek-next { background-position: -32px -160px; }
421
+ .sg-popup-builder .ui-icon-seek-prev { background-position: -48px -160px; }
422
+ .sg-popup-builder .ui-icon-seek-end { background-position: -64px -160px; }
423
+ .sg-popup-builder .ui-icon-seek-start { background-position: -80px -160px; }
424
  /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
425
+ .sg-popup-builder .ui-icon-seek-first { background-position: -80px -160px; }
426
+ .sg-popup-builder .ui-icon-stop { background-position: -96px -160px; }
427
+ .sg-popup-builder .ui-icon-eject { background-position: -112px -160px; }
428
+ .sg-popup-builder .ui-icon-volume-off { background-position: -128px -160px; }
429
+ .sg-popup-builder .ui-icon-volume-on { background-position: -144px -160px; }
430
+ .sg-popup-builder .ui-icon-power { background-position: 0 -176px; }
431
+ .sg-popup-builder .ui-icon-signal-diag { background-position: -16px -176px; }
432
+ .sg-popup-builder .ui-icon-signal { background-position: -32px -176px; }
433
+ .sg-popup-builder .ui-icon-battery-0 { background-position: -48px -176px; }
434
+ .sg-popup-builder .ui-icon-battery-1 { background-position: -64px -176px; }
435
+ .sg-popup-builder .ui-icon-battery-2 { background-position: -80px -176px; }
436
+ .sg-popup-builder .ui-icon-battery-3 { background-position: -96px -176px; }
437
+ .sg-popup-builder .ui-icon-circle-plus { background-position: 0 -192px; }
438
+ .sg-popup-builder .ui-icon-circle-minus { background-position: -16px -192px; }
439
+ .sg-popup-builder .ui-icon-circle-close { background-position: -32px -192px; }
440
+ .sg-popup-builder .ui-icon-circle-triangle-e { background-position: -48px -192px; }
441
+ .sg-popup-builder .ui-icon-circle-triangle-s { background-position: -64px -192px; }
442
+ .sg-popup-builder .ui-icon-circle-triangle-w { background-position: -80px -192px; }
443
+ .sg-popup-builder .ui-icon-circle-triangle-n { background-position: -96px -192px; }
444
+ .sg-popup-builder .ui-icon-circle-arrow-e { background-position: -112px -192px; }
445
+ .sg-popup-builder .ui-icon-circle-arrow-s { background-position: -128px -192px; }
446
+ .sg-popup-builder .ui-icon-circle-arrow-w { background-position: -144px -192px; }
447
+ .sg-popup-builder .ui-icon-circle-arrow-n { background-position: -160px -192px; }
448
+ .sg-popup-builder .ui-icon-circle-zoomin { background-position: -176px -192px; }
449
+ .sg-popup-builder .ui-icon-circle-zoomout { background-position: -192px -192px; }
450
+ .sg-popup-builder .ui-icon-circle-check { background-position: -208px -192px; }
451
+ .sg-popup-builder .ui-icon-circlesmall-plus { background-position: 0 -208px; }
452
+ .sg-popup-builder .ui-icon-circlesmall-minus { background-position: -16px -208px; }
453
+ .sg-popup-builder .ui-icon-circlesmall-close { background-position: -32px -208px; }
454
+ .sg-popup-builder .ui-icon-squaresmall-plus { background-position: -48px -208px; }
455
+ .sg-popup-builder .ui-icon-squaresmall-minus { background-position: -64px -208px; }
456
+ .sg-popup-builder .ui-icon-squaresmall-close { background-position: -80px -208px; }
457
+ .sg-popup-builder .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
458
+ .sg-popup-builder .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
459
+ .sg-popup-builder .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
460
+ .sg-popup-builder .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
461
+ .sg-popup-builder .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
462
+ .sg-popup-builder .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
463
+
464
 
465
 
466
  /* Misc visuals
474
 
475
  /* Overlays */
476
 
477
+ .sg-popup-builder + .ui-widget-overlay {position: fixed !important; background: #6e4f1c url(images/ui-bg_diagonal-maze_20_6e4f1c_10x10.png) 50% 50% repeat; opacity: .6;filter:Alpha(Opacity=60); }
478
  .ui-widget-shadow { margin: 0 0 0 -10px; padding: 5px; background: #000000 url(images/ui-bg_diagonal-maze_40_000000_10x10.png) 50% 50% repeat; opacity: .6;filter:Alpha(Opacity=60); -moz-border-radius: 18px; -khtml-border-radius: 18px; -webkit-border-radius: 18px; border-radius: 18px; }