Magee Shortcodes - Version 2.0.7

Version Description

  • Fix: List shortcode issue
  • Fix: Shortcode generator issue
Download this release

Release Info

Developer hoosoft
Plugin Icon 128x128 Magee Shortcodes
Version 2.0.7
Comparing to
See all releases

Code changes from version 2.0.5 to 2.0.7

Includes/Classes/Config.class.php CHANGED
@@ -164,7 +164,7 @@ class Config{
164
  'desc' => __( 'Insert the background color for the title.', 'magee-shortcodes'),
165
  ),
166
 
167
- ),
168
  'child_shortcode' => array(
169
  'params' => array(
170
 
164
  'desc' => __( 'Insert the background color for the title.', 'magee-shortcodes'),
165
  ),
166
 
167
+ ),
168
  'child_shortcode' => array(
169
  'params' => array(
170
 
Includes/Classes/Helper.class.php CHANGED
@@ -15,35 +15,36 @@ class Helper{
15
 
16
  add_action( 'plugins_loaded', array( $this, 'init' ) );
17
 
18
- add_action('media_buttons', array($this, 'add_shortcodes_button'));
19
  add_action( 'enqueue_block_editor_assets', array( $this, 'block_editor_button') );
20
 
21
  add_action( 'init',array($this, 'magee_register_post_types'),10) ;
22
  add_action( 'admin_menu',array($this, 'magee_admin_menu')) ;
23
- add_filter("manage_edit-".MAGEE_PORTFOLIO."_columns",array($this, "magee_show_portfolio_columns"));
24
- add_action("manage_posts_custom_column",array($this, "magee_portfolio_custom_columns"));
25
 
26
  add_action( 'admin_enqueue_scripts', array($this, 'admin_scripts' ));
27
- add_action('wp_ajax_magee_shortcodes_popup', array($this, 'popup') );
 
28
  add_action( 'wp_ajax_nopriv_magee_shortcodes_popup', array($this, 'popup') );
29
 
30
- add_action('wp_ajax_magee_shortcode_form', array($this, 'shortcode_form') );
31
  add_action( 'wp_ajax_nopriv_magee_shortcode_form', array($this, 'shortcode_form') );
32
 
33
- add_action('wp_ajax_magee_create_shortcode', array($this, 'create_shortcode') );
34
  add_action( 'wp_ajax_nopriv_magee_create_shortcode', array($this, 'create_shortcode') );
35
 
36
- add_action('wp_ajax_live_preview', array($this, 'live_preview'));
37
- add_action('wp_ajax_nopriv_live_preview', array($this, 'live_preview'));
38
 
39
- add_action('wp_ajax_preview_js', array($this, 'preview_js'));
40
- add_action('wp_ajax_nopriv_preview_js', array($this, 'preview_js'));
41
 
42
- add_action('wp_ajax_magee_contact', array($this, 'magee_contact'));
43
  add_action('wp_ajax_nopriv_magee_contact', array($this, 'magee_contact'));
44
 
45
- add_action('wp_ajax_magee_contact_advanced', array($this, 'magee_contact_advanced'));
46
- add_action('wp_ajax_nopriv_magee_contact_advanced', array($this, 'magee_contact_advanced'));
47
 
48
  add_action( 'wp_enqueue_scripts', array($this, 'frontend_scripts' ));
49
 
@@ -85,7 +86,7 @@ class Helper{
85
  'magee-admin',
86
  'MSEditorL10n',
87
  array(
88
- 'insertShortcode' => __( 'Magee shortcodes', 'magee-shortcodes' ),
89
  'doc' => __( 'Document', 'magee-shortcodes' ),
90
  'forums' => __( 'Forums', 'magee-shortcodes' ),
91
  'preview' => __( 'Live Preview', 'magee-shortcodes' ),
@@ -93,6 +94,7 @@ class Helper{
93
  'top' => __( 'Top', 'magee-shortcodes' ),
94
  'select_img' => __( 'Select Image', 'magee-shortcodes' ),
95
  'remove' => __( 'Remove', 'magee-shortcodes' ),
 
96
  )
97
  );
98
  wp_localize_script(
@@ -153,9 +155,10 @@ class Helper{
153
  'magee-shortcodes-block-editor',
154
  'MSBlockEditorL10n',
155
  array(
156
- 'insertShortcode' => __( 'Magee shortcodes', 'magee-shortcodes' ),
157
  'doc' => __( 'Document', 'magee-shortcodes' ),
158
- 'forums' => __( 'Forums', 'magee-shortcodes' )
 
159
  )
160
  );
161
 
@@ -175,9 +178,10 @@ class Helper{
175
  */
176
  function popup() {
177
  $magee_shortcodes = Config::shortcodes();
178
- $target = $_POST['target'] ?? 'content';
179
  ?>
180
  <div class="white-popup magee_shortcodes_container" data-target="<?php echo $target;?>" id="magee_shortcodes_container">
 
181
  <form>
182
  <div class="magee_shortcodes_header_container">
183
  <ul class="magee_shortcodes_list row">
@@ -258,15 +262,14 @@ class Helper{
258
  if ( isset($_POST['shortcode']) && isset($magee_shortcodes[$_POST['shortcode']]) ) {
259
  if ( isset($magee_shortcodes[$_POST['shortcode']]['child_shortcode'])) {
260
  echo '<h2 class="shortcode-name">'.$magee_shortcodes[$_POST['shortcode']]['popup_title'].'</h2>';
 
261
  if (isset($magee_shortcodes[$_POST['shortcode']]['name'])) {
262
  echo '<div class="example-list">'.sprintf(__('Want to know more about this shortcode? Check <a class="example-link" target="_blank" href="%1$s"> Examples of use</a>. %2$s', 'magee-shortcodes' ), 'https://www.hoosoft.com/plugins/magee-shortcodes/'.$magee_shortcodes[$_POST['shortcode']]['name'], $remark).'</div>';
263
  }
264
  $this->popup = $_POST['shortcode'];
265
  echo $this->formate_shortcode();
266
  echo '<div class="column-shortcode-inner">'.$this->formate_children_shortcode().'</div>';
267
- echo '<div class="shortcode-add"><a href="#" class="child-shortcode-add">add</a></div>' ;
268
-
269
-
270
 
271
  } else {
272
  echo '<h2 class="shortcode-name">'.$magee_shortcodes[$_POST['shortcode']]['popup_title'].'</h2>';
@@ -687,14 +690,15 @@ class Helper{
687
 
688
  if ( isset($magee_shortcodes[$popup]['child_shortcode'])):
689
 
690
- $common = array_slice($_POST['attr'],count($_POST['attr'])-2,2) ;
691
- array_splice($_POST['attr'],count($_POST['attr'])-2,2);
692
  $number = count($magee_shortcodes[$popup]['child_shortcode']['params']);
693
  $expcet = count($magee_shortcodes[$popup]['params']);
694
- array_splice($_POST['attr'],0, $expcet);
695
  $loop = array_chunk($_POST['attr'], $number);
696
  $i = '';
697
  $copyshortcode = '';
 
698
  for( $i=0;$i<count($loop);$i++) {
699
 
700
  $cparams = $magee_shortcodes[$popup]['child_shortcode']['params'];
15
 
16
  add_action( 'plugins_loaded', array( $this, 'init' ) );
17
 
18
+ add_action( 'media_buttons', array($this, 'add_shortcodes_button'));
19
  add_action( 'enqueue_block_editor_assets', array( $this, 'block_editor_button') );
20
 
21
  add_action( 'init',array($this, 'magee_register_post_types'),10) ;
22
  add_action( 'admin_menu',array($this, 'magee_admin_menu')) ;
23
+ add_filter( "manage_edit-".MAGEE_PORTFOLIO."_columns",array($this, "magee_show_portfolio_columns"));
24
+ add_action( "manage_posts_custom_column",array($this, "magee_portfolio_custom_columns"));
25
 
26
  add_action( 'admin_enqueue_scripts', array($this, 'admin_scripts' ));
27
+ add_action( 'elementor/editor/before_enqueue_scripts', array($this, 'admin_scripts' ));
28
+ add_action( 'wp_ajax_magee_shortcodes_popup', array($this, 'popup') );
29
  add_action( 'wp_ajax_nopriv_magee_shortcodes_popup', array($this, 'popup') );
30
 
31
+ add_action( 'wp_ajax_magee_shortcode_form', array($this, 'shortcode_form') );
32
  add_action( 'wp_ajax_nopriv_magee_shortcode_form', array($this, 'shortcode_form') );
33
 
34
+ add_action( 'wp_ajax_magee_create_shortcode', array($this, 'create_shortcode') );
35
  add_action( 'wp_ajax_nopriv_magee_create_shortcode', array($this, 'create_shortcode') );
36
 
37
+ add_action( 'wp_ajax_live_preview', array($this, 'live_preview'));
38
+ add_action( 'wp_ajax_nopriv_live_preview', array($this, 'live_preview'));
39
 
40
+ add_action( 'wp_ajax_preview_js', array($this, 'preview_js'));
41
+ add_action( 'wp_ajax_nopriv_preview_js', array($this, 'preview_js'));
42
 
43
+ add_action( 'wp_ajax_magee_contact', array($this, 'magee_contact'));
44
  add_action('wp_ajax_nopriv_magee_contact', array($this, 'magee_contact'));
45
 
46
+ add_action( 'wp_ajax_magee_contact_advanced', array($this, 'magee_contact_advanced'));
47
+ add_action( 'wp_ajax_nopriv_magee_contact_advanced', array($this, 'magee_contact_advanced'));
48
 
49
  add_action( 'wp_enqueue_scripts', array($this, 'frontend_scripts' ));
50
 
86
  'magee-admin',
87
  'MSEditorL10n',
88
  array(
89
+ 'insertShortcode' => __( 'Magee Shortcodes', 'magee-shortcodes' ),
90
  'doc' => __( 'Document', 'magee-shortcodes' ),
91
  'forums' => __( 'Forums', 'magee-shortcodes' ),
92
  'preview' => __( 'Live Preview', 'magee-shortcodes' ),
94
  'top' => __( 'Top', 'magee-shortcodes' ),
95
  'select_img' => __( 'Select Image', 'magee-shortcodes' ),
96
  'remove' => __( 'Remove', 'magee-shortcodes' ),
97
+ 'ver' => MAGEE_SHORTCODES_VER,
98
  )
99
  );
100
  wp_localize_script(
155
  'magee-shortcodes-block-editor',
156
  'MSBlockEditorL10n',
157
  array(
158
+ 'insertShortcode' => __( 'Magee Shortcodes', 'magee-shortcodes' ),
159
  'doc' => __( 'Document', 'magee-shortcodes' ),
160
+ 'forums' => __( 'Forums', 'magee-shortcodes' ),
161
+ 'ver' => MAGEE_SHORTCODES_VER,
162
  )
163
  );
164
 
178
  */
179
  function popup() {
180
  $magee_shortcodes = Config::shortcodes();
181
+ $target = $_GET['target'] ?? 'content';
182
  ?>
183
  <div class="white-popup magee_shortcodes_container" data-target="<?php echo $target;?>" id="magee_shortcodes_container">
184
+ <input type="text" class="magee-form-text magee-input" placeholder="<?php _e( 'Search', 'magee-shortcodes' );?>" name="magee_shortcode_search" id="magee_shortcode_search" value="">
185
  <form>
186
  <div class="magee_shortcodes_header_container">
187
  <ul class="magee_shortcodes_list row">
262
  if ( isset($_POST['shortcode']) && isset($magee_shortcodes[$_POST['shortcode']]) ) {
263
  if ( isset($magee_shortcodes[$_POST['shortcode']]['child_shortcode'])) {
264
  echo '<h2 class="shortcode-name">'.$magee_shortcodes[$_POST['shortcode']]['popup_title'].'</h2>';
265
+
266
  if (isset($magee_shortcodes[$_POST['shortcode']]['name'])) {
267
  echo '<div class="example-list">'.sprintf(__('Want to know more about this shortcode? Check <a class="example-link" target="_blank" href="%1$s"> Examples of use</a>. %2$s', 'magee-shortcodes' ), 'https://www.hoosoft.com/plugins/magee-shortcodes/'.$magee_shortcodes[$_POST['shortcode']]['name'], $remark).'</div>';
268
  }
269
  $this->popup = $_POST['shortcode'];
270
  echo $this->formate_shortcode();
271
  echo '<div class="column-shortcode-inner">'.$this->formate_children_shortcode().'</div>';
272
+ echo '<div class="shortcode-add"><a href="#" class="child-shortcode-add">add</a></div>';
 
 
273
 
274
  } else {
275
  echo '<h2 class="shortcode-name">'.$magee_shortcodes[$_POST['shortcode']]['popup_title'].'</h2>';
690
 
691
  if ( isset($magee_shortcodes[$popup]['child_shortcode'])):
692
 
693
+ $common = array_slice($_POST['attr'], count($_POST['attr'])-2, 2) ;
694
+ array_splice($_POST['attr'], count($_POST['attr'])-2, 2);
695
  $number = count($magee_shortcodes[$popup]['child_shortcode']['params']);
696
  $expcet = count($magee_shortcodes[$popup]['params']);
697
+ array_splice($_POST['attr'], 0, $expcet);
698
  $loop = array_chunk($_POST['attr'], $number);
699
  $i = '';
700
  $copyshortcode = '';
701
+
702
  for( $i=0;$i<count($loop);$i++) {
703
 
704
  $cparams = $magee_shortcodes[$popup]['child_shortcode']['params'];
Magee.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Magee Shortcodes
4
  Plugin URI: https://www.hoosoft.com/plugins/magee-shortcodes/
5
  Description: Magee Shortcodes is WordPress plugin that provides a pack of shortcodes. With Magee Shortcodes, you can easily create accordion, buttons, boxes, columns, social and much more. They allow you to create so many different page layouts. You could quickly and easily built your own custom pages using all the various shortcodes that Magee Shortcodes includes.
6
- Version: 2.0.5
7
  Author: Hoosoft
8
  Author URI: http://www.hoosoft.com
9
  Text Domain: magee-shortcodes
@@ -13,17 +13,17 @@
13
 
14
  if ( ! defined( 'ABSPATH' ) ) return;
15
 
 
 
16
  define( 'MAGEE_SHORTCODES_DIR_PATH', plugin_dir_path( __FILE__ ));
17
  define( 'MAGEE_SHORTCODES_INCLUDE_DIR', MAGEE_SHORTCODES_DIR_PATH.'Includes' );
18
  define( 'MAGEE_SHORTCODES_URL', plugin_dir_url( __FILE__ ));
19
-
20
- define( 'MAGEE_SHORTCODES_VER', '2.0.5' );
21
-
22
  define('MAGEE_PORTFOLIO', 'magee_portfolio' );
23
- define( 'MAGEE_DATE_FORMAT','');
24
- define( 'MAGEE_DISPLAY_IMAGE','yes');
25
- define( 'MAGEE_PORTFOLIO_SLUG','portfolio');
26
- define( 'MAGEE_EXCERPT_OR_CONTENT','excerpt');
27
- define( 'MAGEE_EXCERPT_LENGTH',55);
28
 
29
  require_once MAGEE_SHORTCODES_INCLUDE_DIR.'/plugin.php';
3
  Plugin Name: Magee Shortcodes
4
  Plugin URI: https://www.hoosoft.com/plugins/magee-shortcodes/
5
  Description: Magee Shortcodes is WordPress plugin that provides a pack of shortcodes. With Magee Shortcodes, you can easily create accordion, buttons, boxes, columns, social and much more. They allow you to create so many different page layouts. You could quickly and easily built your own custom pages using all the various shortcodes that Magee Shortcodes includes.
6
+ Version: 2.0.7
7
  Author: Hoosoft
8
  Author URI: http://www.hoosoft.com
9
  Text Domain: magee-shortcodes
13
 
14
  if ( ! defined( 'ABSPATH' ) ) return;
15
 
16
+ $plugin_data = get_file_data(__FILE__, array('Version' => 'Version'), false);
17
+ $plugin_version = $plugin_data['Version'];
18
  define( 'MAGEE_SHORTCODES_DIR_PATH', plugin_dir_path( __FILE__ ));
19
  define( 'MAGEE_SHORTCODES_INCLUDE_DIR', MAGEE_SHORTCODES_DIR_PATH.'Includes' );
20
  define( 'MAGEE_SHORTCODES_URL', plugin_dir_url( __FILE__ ));
21
+ define( 'MAGEE_SHORTCODES_VER', $plugin_version );
 
 
22
  define('MAGEE_PORTFOLIO', 'magee_portfolio' );
23
+ define( 'MAGEE_DATE_FORMAT', '');
24
+ define( 'MAGEE_DISPLAY_IMAGE', 'yes');
25
+ define( 'MAGEE_PORTFOLIO_SLUG', 'portfolio');
26
+ define( 'MAGEE_EXCERPT_OR_CONTENT', 'excerpt');
27
+ define( 'MAGEE_EXCERPT_LENGTH', 55);
28
 
29
  require_once MAGEE_SHORTCODES_INCLUDE_DIR.'/plugin.php';
assets/css/admin.css CHANGED
@@ -1641,4 +1641,47 @@ max-width:100%;
1641
  margin-left: 91.666667%;
1642
  }
1643
  }
1644
- .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1641
  margin-left: 91.666667%;
1642
  }
1643
  }
1644
+ .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}
1645
+ .hidden{display: none;}
1646
+ .magee_shortcodes_container .button-primary,
1647
+ .magee-shortcode-actions .button-primary {
1648
+ background: #2271b1;
1649
+ border-color: #2271b1;
1650
+ color: #fff;
1651
+ text-decoration: none;
1652
+ text-shadow: none;
1653
+ }
1654
+
1655
+ .magee_shortcodes_container .button,
1656
+ .magee-shortcode-actions .button,
1657
+ .magee_shortcodes_container .button-primary,
1658
+ .magee_shortcodes_container .button-secondary {
1659
+ display: inline-block;
1660
+ text-decoration: none;
1661
+ font-size: 13px;
1662
+ line-height: 2.15384615;
1663
+ min-height: 30px;
1664
+ margin: 0;
1665
+ padding: 0 10px;
1666
+ cursor: pointer;
1667
+ border-width: 1px;
1668
+ border-style: solid;
1669
+ -webkit-appearance: none;
1670
+ border-radius: 3px;
1671
+ white-space: nowrap;
1672
+ box-sizing: border-box;
1673
+ }
1674
+ .magee_shortcodes_container .button.button-large,
1675
+ .magee_shortcodes_container .button-group.button-large .button {
1676
+ min-height: 32px;
1677
+ line-height: 2.30769231;
1678
+ padding: 0 12px;
1679
+ }
1680
+ .magee_shortcodes_container .button,
1681
+ .magee-shortcode-actions .button-secondary,
1682
+ .magee_shortcodes_container .button-secondary {
1683
+ color: #2271b1;
1684
+ border-color: #2271b1;
1685
+ background: #f6f7f7;
1686
+ vertical-align: top;
1687
+ }
assets/css/admin.min.css CHANGED
@@ -1 +1 @@
1
- .magee_shortcodes_list li{display:inline-block}#TB_window #TB_ajaxContent .magee_shortcodes_list li:before{content:"";margin:0}.col-md-2{position:relative;min-height:1px;padding-right:15px;padding-left:15px;float:left;width:20%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.clear{clear:both}#TB_ajaxContent{max-width:100%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}#magee-shortcodes-settings{display:none}#magee-shortcodes-settings .form-row .field,#magee-shortcodes-settings .form-row .label{width:100%}.xdsoft_datetimepicker{z-index:999999!important}.magee-form-desc{display:block;font-size:14px;color:#939292;font-style:italic;line-height:21px}.magee_shortcodes_container .iconpicker i{padding:6px;cursor:pointer}img.uploaded-image{display:none}.magee-form-textarea{width:100%}a.magee_shortcode_item{text-decoration:none;background-color:#f5f5f5;color:#222;padding:5px;display:block;text-align:left;border-radius:2px}a.magee_shortcode_item:hover{background-color:#222;color:#fff}a.magee_shortcode_item i{margin-right:2px}.magee_shortcodes_list .col-md-2{padding:5px}#TB_ajaxWindowTitle{font-size:16px;line-height:50px}#TB_title{height:40px;padding-left:10px}.tb-close-icon{height:50px;width:50px;background-color:#0085ba;color:#fff}#TB_closeWindowButton:hover .tb-close-icon{color:#fff}.tb-close-icon:before{line-height:50px}.shortcode-name{background-color:#f5f5f5;padding:10px;font-size:18px;display:none}.param-item{margin-bottom:20px;padding:0 3px 20px 4px;border-bottom:1px dashed #ccc}.magee-form-label-title{display:block;font-weight:700;font-size:1.1em;margin-bottom:.3em}.magee-form-desc{display:block;margin-bottom:.4em}.magee-form-text{display:block}.param-item input[type=number],.param-item input[type=text],.param-item select,.param-item textarea{width:100%;height:auto;padding:10px}.TB_footer{background-color:#f5f5f5;position:relative}.magee-shortcode-return{position:absolute;top:-50px;right:20px;z-index:100;width:30px;height:30px;background:#1f0707;opacity:.5;display:none;text-align:center;line-height:30px;color:#fff;border-radius:100%;border:2px solid #fff;box-shadow:1px 1px 5px #000;cursor:pointer}.magee-shortcode-actions{padding:20px 30px 20px;text-align:right;border-top:1px solid #ccc}input#magee_icon{display:none}.magee_shortcodes_container .iconpicker{border:1px solid #ccc;border-width:1px 0 0 1px;display:none}.magee_shortcodes_container .iconpicker .fa{width:15px;line-height:15px;height:15px;text-align:center;border-width:0 1px 1px 0}.magee_shortcodes_container .iconpicker .fa.selected{background-color:#f9e4dc;transform:scale(1.2)}#magee_slider_slides .slider-img img{max-width:100%}#magee_slider_slides .gallery-img,#magee_slider_slides .slider-img{float:right;max-height:200px;overflow:hidden;width:200px}#magee_slider_slides .ui-state-default{background-color:#f5f5f5!important;border:1px solid #ccc;color:#555;font-weight:400;background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 1px rgba(0,0,0,.05);position:relative}#magee_slider_slides .widget-content label{float:left;width:300px;clear:left;padding-bottom:20px}#magee_slider_slides .widget-content label span{margin-bottom:5px}#magee_slider_slides div.option-item input[type=text]{background:url("../images/input-bg.png") repeat-x scroll center top #fff;border-radius:3px;box-shadow:0 1px rgba(0,0,0,.05);width:250px}#magee_slider_slides div.option-item textarea{background:url("../images/input-bg.png") repeat-x scroll center top #fff;border-radius:3px;box-shadow:0 1px rgba(0,0,0,.05);padding:4px 5px;width:450px}#magee_slider_slides .del-item{background:url("../images/delete.png") no-repeat scroll center top rgba(0,0,0,0);cursor:pointer;display:block;float:right;height:24px;overflow:hidden;position:absolute;right:10px;text-indent:-1e+8px;top:45px;width:24px}#magee_slider_slides .sort-item{background:url("../images/move.png") no-repeat scroll center top rgba(0,0,0,0);cursor:move;display:block;float:right;height:24px;overflow:hidden;position:absolute;right:10px;text-indent:-1e+8px;top:10px;width:24px}.section-accordion-wrap h3{position:relative}.section-accordion-wrap h3 span.fa{position:absolute;right:0;top:-2px}.column-shortcode-inner{background-color:#f5f5f5;padding:20px;border:1px solid #999;margin-bottom:20px}a#child-shortcode-remove{color:#aaa;text-decoration:none;display:block;text-align:center;padding:10px;border:1px solid #aaa;background-color:#fff;font-size:1.2em;text-transform:capitalize}a#child-shortcode-removehover{border-color:#666;color:#666}a.child-shortcode-add{color:#999;text-decoration:none;display:block;text-align:center;padding:12px;border:1px solid #999;background-color:#f5f5f5;font-size:1.5em;text-transform:capitalize}a.child-shortcode-addhover{background-color:#fff;border-color:#666;color:#666}.probar{width:100%;height:10px;border:2px solid #ccc;border-radius:10px;position:relative;box-shadow:0 0 5px rgba(0,0,0,.2) inset}.probar-control{position:absolute;width:14px;height:14px;border-radius:14px;margin-left:-9px;border:2px solid #3f91b1;top:-4px;background-color:#fff;cursor:pointer}.choose-show-param{display:none}#TB_Title a{float:right;font-size:13px;margin:0 20px 0 5px}.probar{width:600px;float:left;margin-top:12px;margin-right:10px}.param-item input[type=number].magee-form-number{width:100px}.choose-show{background-color:#ccf7d5;color:#17a534;font-weight:700}.choose-show-param{border:1px solid #ddd;line-height:28px;padding:6px 15px;font-size:14px;cursor:pointer}.icon-val{margin-bottom:10px;overflow:hidden}.param-item .icon-val input[type=text]{width:640px;float:left}.param-item .icon-val button{margin-top:8px;margin-left:10px}.param-item .icon-val button{margin-bottom:7px}#custom_icon{margin-left:0}.magee_shortcodes_list .col-md-2{width:25%}a.magee_shortcode_item{padding:0;line-height:40px;font-size:14px}a.magee_shortcode_item i{width:30px;text-align:center;line-height:40px}a.magee_shortcode_item i.fa-spinner{float:right;width:auto}a.magee_shortcode_item:hover i{background-color:#0073aa}#TB_title{background-color:#222;color:#fff;height:50px;line-height:50px;position:relative}a#TB_closeWindowButton{top:-10px;right:-30px;margin:0;padding:0}a#TB_closeWindowButton .tb-close-icon{top:0;right:0;background-color:#0073aa;color:#fff;height:50px}a#TB_closeWindowButton:hover{text-decoration:none}a#TB_closeWindowButton .tb-close-icon:before{line-height:50px}#TB_ajaxWindowTitle{line-height:inherit}#TB_title a{float:right;font-size:13px;margin:0 30px 0 0;background-color:#fff;color:#222;text-decoration:none;line-height:30px;margin-top:10px;padding:0 10px}#TB_ajaxWindowTitle a.link-forum{margin-right:10px}.param-item{background-color:#eee;padding:20px;border:0}.shortcode-name{background-color:#eee}.probar{margin-bottom:10px}.magee-shortcode-actions a{margin-left:5px!important}#preview{background-color:#fff;margin:0 -15px;padding:20px;position:relative;z-index:1000}.magee_shortcodes_container .wp-picker-container input[type=text].wp-color-picker{width:696px;display:block!important}.wp-picker-holder{width:260px}.magee_shortcodes_list .col-md-2{margin-bottom:0}.magee-preview-delete{position:absolute;top:20px;right:10px;font-size:20px;cursor:pointer}.preview-title{border-bottom:1px solid #ccc;margin-bottom:10px}.example-list{background-color:#eee;margin-bottom:10px;padding:20px;font-size:14px}.example-link{text-decoration:none}.magee_shortcodes_container .wp-picker-container input[type=text].wp-color-picker{max-width:100%}.magee_shortcodes_container .wp-picker-container{width:100%}.container{max-width:100%}.magee-upload-container img{max-width:100%}.magee_shortcodes_container .iconpicker{border:1px solid #ddd;background-color:#fff}.magee_shortcodes_container .iconpicker .fa{width:15px;line-height:15px;border-width:0;font-size:14px;padding:8px;position:relative;transition:.1s}.magee_shortcodes_container .iconpicker i:hover{-webkit-transform:scale(1.8);transform:scale(1.8)}.link-forum{position:absolute;top:0;right:50px}.link-doc{position:absolute;top:0;right:110px}.magee-add-point{background-color:#fffbe5;color:#b5a96c;padding:10px;border-left:3px solid #a59649;margin-bottom:10px}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-1_7,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-1_5,.col-md-1_7,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px;webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-ms-flex-order:-1;order:-1}.order-last{-ms-flex-order:13;order:13}.order-0{-ms-flex-order:0;order:0}.order-1{-ms-flex-order:1;order:1}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-sm-first{-ms-flex-order:-1;order:-1}.order-sm-last{-ms-flex-order:13;order:13}.order-sm-0{-ms-flex-order:0;order:0}.order-sm-1{-ms-flex-order:1;order:1}.order-sm-2{-ms-flex-order:2;order:2}.order-sm-3{-ms-flex-order:3;order:3}.order-sm-4{-ms-flex-order:4;order:4}.order-sm-5{-ms-flex-order:5;order:5}.order-sm-6{-ms-flex-order:6;order:6}.order-sm-7{-ms-flex-order:7;order:7}.order-sm-8{-ms-flex-order:8;order:8}.order-sm-9{-ms-flex-order:9;order:9}.order-sm-10{-ms-flex-order:10;order:10}.order-sm-11{-ms-flex-order:11;order:11}.order-sm-12{-ms-flex-order:12;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-md-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.col-md-1_5{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.col-md-1_7{-ms-flex:0 0 14.2857%;flex:0 0 14.2857%;max-width:14.2857%}.order-md-first{-ms-flex-order:-1;order:-1}.order-md-last{-ms-flex-order:13;order:13}.order-md-0{-ms-flex-order:0;order:0}.order-md-1{-ms-flex-order:1;order:1}.order-md-2{-ms-flex-order:2;order:2}.order-md-3{-ms-flex-order:3;order:3}.order-md-4{-ms-flex-order:4;order:4}.order-md-5{-ms-flex-order:5;order:5}.order-md-6{-ms-flex-order:6;order:6}.order-md-7{-ms-flex-order:7;order:7}.order-md-8{-ms-flex-order:8;order:8}.order-md-9{-ms-flex-order:9;order:9}.order-md-10{-ms-flex-order:10;order:10}.order-md-11{-ms-flex-order:11;order:11}.order-md-12{-ms-flex-order:12;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.col-lg-1_7{-ms-flex:0 0 14.2857%;flex:0 0 14.2857%;max-width:14.2857%}.order-lg-first{-ms-flex-order:-1;order:-1}.order-lg-last{-ms-flex-order:13;order:13}.order-lg-0{-ms-flex-order:0;order:0}.order-lg-1{-ms-flex-order:1;order:1}.order-lg-2{-ms-flex-order:2;order:2}.order-lg-3{-ms-flex-order:3;order:3}.order-lg-4{-ms-flex-order:4;order:4}.order-lg-5{-ms-flex-order:5;order:5}.order-lg-6{-ms-flex-order:6;order:6}.order-lg-7{-ms-flex-order:7;order:7}.order-lg-8{-ms-flex-order:8;order:8}.order-lg-9{-ms-flex-order:9;order:9}.order-lg-10{-ms-flex-order:10;order:10}.order-lg-11{-ms-flex-order:11;order:11}.order-lg-12{-ms-flex-order:12;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-xl-first{-ms-flex-order:-1;order:-1}.order-xl-last{-ms-flex-order:13;order:13}.order-xl-0{-ms-flex-order:0;order:0}.order-xl-1{-ms-flex-order:1;order:1}.order-xl-2{-ms-flex-order:2;order:2}.order-xl-3{-ms-flex-order:3;order:3}.order-xl-4{-ms-flex-order:4;order:4}.order-xl-5{-ms-flex-order:5;order:5}.order-xl-6{-ms-flex-order:6;order:6}.order-xl-7{-ms-flex-order:7;order:7}.order-xl-8{-ms-flex-order:8;order:8}.order-xl-9{-ms-flex-order:9;order:9}.order-xl-10{-ms-flex-order:10;order:10}.order-xl-11{-ms-flex-order:11;order:11}.order-xl-12{-ms-flex-order:12;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}
1
+ .magee_shortcodes_list li{display:inline-block}#TB_window #TB_ajaxContent .magee_shortcodes_list li:before{content:"";margin:0}.col-md-2{position:relative;min-height:1px;padding-right:15px;padding-left:15px;float:left;width:20%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.clear{clear:both}#TB_ajaxContent{max-width:100%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}#magee-shortcodes-settings{display:none}#magee-shortcodes-settings .form-row .field,#magee-shortcodes-settings .form-row .label{width:100%}.xdsoft_datetimepicker{z-index:999999!important}.magee-form-desc{display:block;font-size:14px;color:#939292;font-style:italic;line-height:21px}.magee_shortcodes_container .iconpicker i{padding:6px;cursor:pointer}img.uploaded-image{display:none}.magee-form-textarea{width:100%}a.magee_shortcode_item{text-decoration:none;background-color:#f5f5f5;color:#222;padding:5px;display:block;text-align:left;border-radius:2px}a.magee_shortcode_item:hover{background-color:#222;color:#fff}a.magee_shortcode_item i{margin-right:2px}.magee_shortcodes_list .col-md-2{padding:5px}#TB_ajaxWindowTitle{font-size:16px;line-height:50px}#TB_title{height:40px;padding-left:10px}.tb-close-icon{height:50px;width:50px;background-color:#0085ba;color:#fff}#TB_closeWindowButton:hover .tb-close-icon{color:#fff}.tb-close-icon:before{line-height:50px}.shortcode-name{background-color:#f5f5f5;padding:10px;font-size:18px;display:none}.param-item{margin-bottom:20px;padding:0 3px 20px 4px;border-bottom:1px dashed #ccc}.magee-form-label-title{display:block;font-weight:700;font-size:1.1em;margin-bottom:.3em}.magee-form-desc{display:block;margin-bottom:.4em}.magee-form-text{display:block}.param-item input[type=number],.param-item input[type=text],.param-item select,.param-item textarea{width:100%;height:auto;padding:10px}.TB_footer{background-color:#f5f5f5;position:relative}.magee-shortcode-return{position:absolute;top:-50px;right:20px;z-index:100;width:30px;height:30px;background:#1f0707;opacity:.5;display:none;text-align:center;line-height:30px;color:#fff;border-radius:100%;border:2px solid #fff;box-shadow:1px 1px 5px #000;cursor:pointer}.magee-shortcode-actions{padding:20px 30px 20px;text-align:right;border-top:1px solid #ccc}input#magee_icon{display:none}.magee_shortcodes_container .iconpicker{border:1px solid #ccc;border-width:1px 0 0 1px;display:none}.magee_shortcodes_container .iconpicker .fa{width:15px;line-height:15px;height:15px;text-align:center;border-width:0 1px 1px 0}.magee_shortcodes_container .iconpicker .fa.selected{background-color:#f9e4dc;transform:scale(1.2)}#magee_slider_slides .slider-img img{max-width:100%}#magee_slider_slides .gallery-img,#magee_slider_slides .slider-img{float:right;max-height:200px;overflow:hidden;width:200px}#magee_slider_slides .ui-state-default{background-color:#f5f5f5!important;border:1px solid #ccc;color:#555;font-weight:400;background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 1px rgba(0,0,0,.05);position:relative}#magee_slider_slides .widget-content label{float:left;width:300px;clear:left;padding-bottom:20px}#magee_slider_slides .widget-content label span{margin-bottom:5px}#magee_slider_slides div.option-item input[type=text]{background:url("../images/input-bg.png") repeat-x scroll center top #fff;border-radius:3px;box-shadow:0 1px rgba(0,0,0,.05);width:250px}#magee_slider_slides div.option-item textarea{background:url("../images/input-bg.png") repeat-x scroll center top #fff;border-radius:3px;box-shadow:0 1px rgba(0,0,0,.05);padding:4px 5px;width:450px}#magee_slider_slides .del-item{background:url("../images/delete.png") no-repeat scroll center top rgba(0,0,0,0);cursor:pointer;display:block;float:right;height:24px;overflow:hidden;position:absolute;right:10px;text-indent:-1e+8px;top:45px;width:24px}#magee_slider_slides .sort-item{background:url("../images/move.png") no-repeat scroll center top rgba(0,0,0,0);cursor:move;display:block;float:right;height:24px;overflow:hidden;position:absolute;right:10px;text-indent:-1e+8px;top:10px;width:24px}.section-accordion-wrap h3{position:relative}.section-accordion-wrap h3 span.fa{position:absolute;right:0;top:-2px}.column-shortcode-inner{background-color:#f5f5f5;padding:20px;border:1px solid #999;margin-bottom:20px}a#child-shortcode-remove{color:#aaa;text-decoration:none;display:block;text-align:center;padding:10px;border:1px solid #aaa;background-color:#fff;font-size:1.2em;text-transform:capitalize}a#child-shortcode-removehover{border-color:#666;color:#666}a.child-shortcode-add{color:#999;text-decoration:none;display:block;text-align:center;padding:12px;border:1px solid #999;background-color:#f5f5f5;font-size:1.5em;text-transform:capitalize}a.child-shortcode-addhover{background-color:#fff;border-color:#666;color:#666}.probar{width:100%;height:10px;border:2px solid #ccc;border-radius:10px;position:relative;box-shadow:0 0 5px rgba(0,0,0,.2) inset}.probar-control{position:absolute;width:14px;height:14px;border-radius:14px;margin-left:-9px;border:2px solid #3f91b1;top:-4px;background-color:#fff;cursor:pointer}.choose-show-param{display:none}#TB_Title a{float:right;font-size:13px;margin:0 20px 0 5px}.probar{width:600px;float:left;margin-top:12px;margin-right:10px}.param-item input[type=number].magee-form-number{width:100px}.choose-show{background-color:#ccf7d5;color:#17a534;font-weight:700}.choose-show-param{border:1px solid #ddd;line-height:28px;padding:6px 15px;font-size:14px;cursor:pointer}.icon-val{margin-bottom:10px;overflow:hidden}.param-item .icon-val input[type=text]{width:640px;float:left}.param-item .icon-val button{margin-top:8px;margin-left:10px}.param-item .icon-val button{margin-bottom:7px}#custom_icon{margin-left:0}.magee_shortcodes_list .col-md-2{width:25%}a.magee_shortcode_item{padding:0;line-height:40px;font-size:14px}a.magee_shortcode_item i{width:30px;text-align:center;line-height:40px}a.magee_shortcode_item i.fa-spinner{float:right;width:auto}a.magee_shortcode_item:hover i{background-color:#0073aa}#TB_title{background-color:#222;color:#fff;height:50px;line-height:50px;position:relative}a#TB_closeWindowButton{top:-10px;right:-30px;margin:0;padding:0}a#TB_closeWindowButton .tb-close-icon{top:0;right:0;background-color:#0073aa;color:#fff;height:50px}a#TB_closeWindowButton:hover{text-decoration:none}a#TB_closeWindowButton .tb-close-icon:before{line-height:50px}#TB_ajaxWindowTitle{line-height:inherit}#TB_title a{float:right;font-size:13px;margin:0 30px 0 0;background-color:#fff;color:#222;text-decoration:none;line-height:30px;margin-top:10px;padding:0 10px}#TB_ajaxWindowTitle a.link-forum{margin-right:10px}.param-item{background-color:#eee;padding:20px;border:0}.shortcode-name{background-color:#eee}.probar{margin-bottom:10px}.magee-shortcode-actions a{margin-left:5px!important}#preview{background-color:#fff;margin:0 -15px;padding:20px;position:relative;z-index:1000}.magee_shortcodes_container .wp-picker-container input[type=text].wp-color-picker{width:696px;display:block!important}.wp-picker-holder{width:260px}.magee_shortcodes_list .col-md-2{margin-bottom:0}.magee-preview-delete{position:absolute;top:20px;right:10px;font-size:20px;cursor:pointer}.preview-title{border-bottom:1px solid #ccc;margin-bottom:10px}.example-list{background-color:#eee;margin-bottom:10px;padding:20px;font-size:14px}.example-link{text-decoration:none}.magee_shortcodes_container .wp-picker-container input[type=text].wp-color-picker{max-width:100%}.magee_shortcodes_container .wp-picker-container{width:100%}.container{max-width:100%}.magee-upload-container img{max-width:100%}.magee_shortcodes_container .iconpicker{border:1px solid #ddd;background-color:#fff}.magee_shortcodes_container .iconpicker .fa{width:15px;line-height:15px;border-width:0;font-size:14px;padding:8px;position:relative;transition:.1s}.magee_shortcodes_container .iconpicker i:hover{-webkit-transform:scale(1.8);transform:scale(1.8)}.link-forum{position:absolute;top:0;right:50px}.link-doc{position:absolute;top:0;right:110px}.magee-add-point{background-color:#fffbe5;color:#b5a96c;padding:10px;border-left:3px solid #a59649;margin-bottom:10px}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-1_7,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-1_5,.col-md-1_7,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px;webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-ms-flex-order:-1;order:-1}.order-last{-ms-flex-order:13;order:13}.order-0{-ms-flex-order:0;order:0}.order-1{-ms-flex-order:1;order:1}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-sm-first{-ms-flex-order:-1;order:-1}.order-sm-last{-ms-flex-order:13;order:13}.order-sm-0{-ms-flex-order:0;order:0}.order-sm-1{-ms-flex-order:1;order:1}.order-sm-2{-ms-flex-order:2;order:2}.order-sm-3{-ms-flex-order:3;order:3}.order-sm-4{-ms-flex-order:4;order:4}.order-sm-5{-ms-flex-order:5;order:5}.order-sm-6{-ms-flex-order:6;order:6}.order-sm-7{-ms-flex-order:7;order:7}.order-sm-8{-ms-flex-order:8;order:8}.order-sm-9{-ms-flex-order:9;order:9}.order-sm-10{-ms-flex-order:10;order:10}.order-sm-11{-ms-flex-order:11;order:11}.order-sm-12{-ms-flex-order:12;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-md-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.col-md-1_5{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.col-md-1_7{-ms-flex:0 0 14.2857%;flex:0 0 14.2857%;max-width:14.2857%}.order-md-first{-ms-flex-order:-1;order:-1}.order-md-last{-ms-flex-order:13;order:13}.order-md-0{-ms-flex-order:0;order:0}.order-md-1{-ms-flex-order:1;order:1}.order-md-2{-ms-flex-order:2;order:2}.order-md-3{-ms-flex-order:3;order:3}.order-md-4{-ms-flex-order:4;order:4}.order-md-5{-ms-flex-order:5;order:5}.order-md-6{-ms-flex-order:6;order:6}.order-md-7{-ms-flex-order:7;order:7}.order-md-8{-ms-flex-order:8;order:8}.order-md-9{-ms-flex-order:9;order:9}.order-md-10{-ms-flex-order:10;order:10}.order-md-11{-ms-flex-order:11;order:11}.order-md-12{-ms-flex-order:12;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.col-lg-1_7{-ms-flex:0 0 14.2857%;flex:0 0 14.2857%;max-width:14.2857%}.order-lg-first{-ms-flex-order:-1;order:-1}.order-lg-last{-ms-flex-order:13;order:13}.order-lg-0{-ms-flex-order:0;order:0}.order-lg-1{-ms-flex-order:1;order:1}.order-lg-2{-ms-flex-order:2;order:2}.order-lg-3{-ms-flex-order:3;order:3}.order-lg-4{-ms-flex-order:4;order:4}.order-lg-5{-ms-flex-order:5;order:5}.order-lg-6{-ms-flex-order:6;order:6}.order-lg-7{-ms-flex-order:7;order:7}.order-lg-8{-ms-flex-order:8;order:8}.order-lg-9{-ms-flex-order:9;order:9}.order-lg-10{-ms-flex-order:10;order:10}.order-lg-11{-ms-flex-order:11;order:11}.order-lg-12{-ms-flex-order:12;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-xl-first{-ms-flex-order:-1;order:-1}.order-xl-last{-ms-flex-order:13;order:13}.order-xl-0{-ms-flex-order:0;order:0}.order-xl-1{-ms-flex-order:1;order:1}.order-xl-2{-ms-flex-order:2;order:2}.order-xl-3{-ms-flex-order:3;order:3}.order-xl-4{-ms-flex-order:4;order:4}.order-xl-5{-ms-flex-order:5;order:5}.order-xl-6{-ms-flex-order:6;order:6}.order-xl-7{-ms-flex-order:7;order:7}.order-xl-8{-ms-flex-order:8;order:8}.order-xl-9{-ms-flex-order:9;order:9}.order-xl-10{-ms-flex-order:10;order:10}.order-xl-11{-ms-flex-order:11;order:11}.order-xl-12{-ms-flex-order:12;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.hidden{display:none}.magee-shortcode-actions .button-primary,.magee_shortcodes_container .button-primary{background:#2271b1;border-color:#2271b1;color:#fff;text-decoration:none;text-shadow:none}.magee-shortcode-actions .button,.magee_shortcodes_container .button,.magee_shortcodes_container .button-primary,.magee_shortcodes_container .button-secondary{display:inline-block;text-decoration:none;font-size:13px;line-height:2.15384615;min-height:30px;margin:0;padding:0 10px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.magee_shortcodes_container .button-group.button-large .button,.magee_shortcodes_container .button.button-large{min-height:32px;line-height:2.30769231;padding:0 12px}.magee-shortcode-actions .button-secondary,.magee_shortcodes_container .button,.magee_shortcodes_container .button-secondary{color:#2271b1;border-color:#2271b1;background:#f6f7f7;vertical-align:top}
assets/images/shortcode.png ADDED
Binary file
assets/js/admin.js CHANGED
@@ -1 +1 @@
1
- !function(d,c,p){function e(){}d.extend(e.prototype,{container:"",k:0,props:"",init:function(){this.btnClick()},setter:function(e=""){this.props=e},btnClick:function(){var o=this;d(".magee_shortcodes").click(function(){o.shortcodePopup()}),d(p).on("click","a.magee_shortcode_item",function(){var e=d(this);d(this).css({"pointer-events":"none"}).append('<i style="float:right;" class="fa fa-spinner fa-spin"></i>'),o.shortcodeGenerator(e)}),d(p).on("click","a.magee-shortcodes-home",function(){d("a.magee_shortcode_item").css({"pointer-events":"auto"}),d("a.magee_shortcode_item").find(".fa-spinner").remove(),o.goBack()}),d(p).on("click",".magee-shortcode-insert",function(e){d(this).addClass("button-secondary").removeClass("button-primary").css({"pointer-events":"none"}).append('<i class="fa fa-spinner fa-spin"></i>'),o.shortcodeInsert()}),d(p).on("click",".magee-upload-button",function(e){var t=d(this);e.preventDefault(),o.uplaodButton(t)}),d(p).on("click","a.child-clone-row-remove.magee-shortcodes-button",function(){var e=d(this);o.removeColumn(e)}),d(p).on("click","a.child-shortcode-add",function(){o.addColumn()}),d(p).on("click",".choose-show",function(){var e=d(this);o.choiceControl(e)}),d(p).on("click",".magee_custom_icon",function(){var e=d(this);o.chooseIcon(e)}),d(p).on("click",".magee-shortcodes-preview",function(e){e.stopPropagation(),o.shortcodePrivew()}),d(p).on("click",".magee-preview-delete",function(){o.deletePrivew()})},initOptions:function(){var o=this;o.numberControl(),d(".choose-show").each(function(){d(this).find(".choose-show-param").each(function(){var e=""==(e=d(this).parents(".param-item").find(".magee-form-choose").val())?"no":e;d(this).attr("name")==e?d(this).css("display","block"):d(this).css("display","none"),"Yes"==d(this).text()?d(this).css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}):"No"==d(this).text()&&d(this).css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"})})}),d(p).find(".wp-color-picker-field").each(function(e){var t=d(this);o.colorpickerControl(t)})},colorOptions:function(){var o=this;return{change:function(e,t){o.container.find(".wp-color-picker-field").each(function(){var e=d(this).parents(".wp-picker-container").find(".wp-color-result").css("background-color");d(this).css("background-color",e);var t=0;d(this).parents(".wp-picker-container").find("a.iris-square-value").css("top")&&(t=parseInt(d(this).parents(".wp-picker-container").find("a.iris-square-value").css("top").replace("px","")));e=parseInt(d(this).parents(".wp-picker-container").find("div.iris-slider-offset span").css("bottom"));t<87&&e<97?d(this).css("color","black"):d(this).css("color","white")})},defaultColor:!0}},shortcodePrivew:function(){var e=d("#TB_window").height()-40;d("#preview").css({display:"block",position:"absolute",width:"1200px",height:e,top:"0px",left:"-200px"});e="<iframe id='magee-sc-form-preview' class='magee-sc-form-preview' width='100%' height='"+(d("#preview").height()-d(".preview-title").height()-50).toString()+"'></iframe>";0<d("#magee-sc-form-preview").length&&d("#magee-sc-form-preview").remove(),d("#preview").append(e);var t=this.container.find("form").serializeArray(),o=this.container.find("form").find("input#magee-shortcode").val();d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{action:"preview_js",shortcode:o},success:function(e){d("#magee-sc-form-preview").contents().find("head").append(e),d("#magee-sc-form-preview").contents().find("body").append("<img alt='loading' class='loading' src='"+magee_params.themeurl+"/images/AjaxLoader.gif' />"),d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{name:o,action:"live_preview",preview:t},success:function(e){e+='<script>if (typeof jQuery !== "undefined") {var magee_shortcodes = jQuery().MageeShortcodes(); magee_shortcodes.init();}<\/script>',d("#magee-sc-form-preview").contents().find(".loading").remove(),d("#magee-sc-form-preview").contents().find("body").append(e),d("#magee-sc-form-preview").contents().find("a").on("click",function(e){"#"==d(this).attr("href")&&e.preventDefault()})},error:function(){}})},error:function(){}})},deletePrivew:function(){d("#preview").css("display","none"),d("#magee-sc-form-preview").remove()},shortcodePopup:function(e={}){var t="shortcode-generator",o=d(this).data("target");void 0!==e&&e.identifier&&(t=e.identifier);var i=MSEditorL10n.insertShortcode+"<span class='shortcode_show_name'></span><a class='link-doc' target='_blank' href='"+MSGenerator.docUrl+"'>"+MSEditorL10n.doc+"</a><a class='link-forum' target='_blank' href='"+MSGenerator.forumUrl+"'>"+MSEditorL10n.forums+"</a>",e=d(c).height()-150;tb_show(i,ajaxurl+"?action=magee_shortcodes_popup&popup="+t+"&target=="+o+"&width=800&height="+e)},goBack:function(){var e=d(c).height()-150;d("#TB_ajaxContent").css("height",e),d("#magee-shortcodes-settings").hide(),d("#TB_footer").remove(),d("#magee-shortcodes-settings-innter").html(""),d(".magee_shortcodes_list").show(),d("#TB_ajaxWindowTitle").find("i").remove(),d("#TB_ajaxWindowTitle").find("span").html(""),d("#TB_ajaxWindowTitle").html(d("#TB_ajaxWindowTitle").html().replace(/&nbsp;/g,"")),d("#preview").css("display","none"),d("#magee-sc-form-preview").remove()},chooseIcon:function(e){e.each(function(){d(this).parents(".param-item").find(".iconpicker").css("display","block"),d(this).parents(".param-item").find(".iconpicker i").click(function(){var e=d(this).data("name");d(this).addClass("selected").siblings().removeClass("selected"),d(this).parents(".param-item").find("input").val(e),d(this).parent(".iconpicker").css("display","none")})})},uplaodButton:function(e){if(upid=e.attr("data-upid"),e.hasClass("remove-image"))return d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src","").hide(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val("").change(),void d('.magee-upload-button[data-upid="'+upid+'"]').text("Upload").removeClass("remove-image");var o=wp.media.frames.file_frame=wp.media({title:MSEditorL10n.select_img,button:{text:MSEditorL10n.select_img},frame:"post",multiple:!1});o.open(),d(".media-menu a:contains(Insert from URL)").remove(),o.on("select",function(){o.state().get("selection").map(function(e){e=e.toJSON(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src",e.url).show(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val(e.url).change()}),d('.magee-upload-button[data-upid="'+upid+'"]').text("Remove").addClass("remove-image"),d(".media-modal-close").trigger("click")}),o.on("insert",function(){var e=o.state().get("selection"),t=d(".attachment-display-settings .size").val();e.map(function(e){(e=e.toJSON()).url=(t?e.sizes[t]:e).url,d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src",e.url).show(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val(e.url).change()}),d('.magee-upload-button[data-upid="'+upid+'"]').text("Remove").addClass("remove-image"),d(".media-modal-close").trigger("click")})},addColumn:function(){var e='<div class="param-item"><a id="child-shortcode-remove" href="#" class="child-clone-row-remove magee-shortcodes-button ">'+MSEditorL10n.remove+"</a></div>",t=this.container.find(".magee-shortcodes-settings-inner-clone");t.find(".wp-picker-container").each(function(){var e='<input type="text" class="magee-form-text magee-cinput wp-color-picker-field" name="'+d(this).find("input").attr("name")+'" id="'+d(this).find("input").attr("id")+'" value="'+d(this).find("input").val()+'" />';d(this).replaceWith(e)}),$clone=t.html();t=d(".column-shortcode-inner").length,e='<div class="column-shortcode-inner">'+$clone+e+"</div>";if(d(".shortcode-add").before(e),$source=d(".column-shortcode-inner").eq(t),0<$source.find(".magee-upload-button").length)for(var o=$source.find(".magee-upload-button").length,i=0;i<o;i++){this.k++;var n=$source.find(".magee-upload-button").eq(i).attr("data-upid");$source.find(".magee-upload-button").eq(i).attr("data-upid",n+this.k)}this.initOptions()},removeColumn:function(e){e.parents(".column-shortcode-inner").remove()},numberControl:function(){this.container.find(".magee-form-number").each(function(){var t=d(this),o=parseInt(d(this).attr("max")),i=parseInt(d(this).parent(".field").find(".probar").width()),n=i/o,e=parseInt(d(this).val()),e=n*e.toString();d(this).parent(".field").find(".probar-control").css("left",e),d(this).parents(".param-item").find(".probar").click(function(e){e=((e=e||c.event).clientX-d(this).parents(".param-item").find(".probar").offset().left)/i*100;d(this).parents(".param-item").find(".probar-control").css("left",e.toString()+"%"),Math.round(parseInt(d(this).parents(".param-item").find(".probar-control").css("left"))/n)>o?t.val(o):t.val(Math.round(parseInt(d(this).parents(".param-item").find(".probar-control").css("left"))/n))}),d(this).change(function(){parseInt(d(this).val())>o?d(this).parents(".param-item").find(".probar-control").css("left","100%"):(newleft=n*parseInt(d(this).val()).toString(),d(this).parents(".param-item").find(".probar-control").css("left",newleft))});var a,r,s=0;d(this).parents(".param-item").find(".probar-control").mousedown(function(e){s=1,e=e||c.event,a=d(this).parents(".param-item").find(".probar").offset().left,r=a+i}),d(p).mousemove(function(e){1==s&&(e=(e=e||c.event).clientX,r<e||e<a?(r<e&&t.parents(".param-item").find(".probar-control").css("left","100%"),e<a&&t.parents(".param-item").find(".probar-control").css("left","0%")):(e=(e-a)/i*100,t.parents(".param-item").find(".probar-control").css("left",e.toString()+"%"),t.val(Math.round(parseInt(t.parents(".param-item").find(".probar-control").css("left"))/n))))}),d(p).mouseup(function(){s=0})})},choiceControl:function(e){var t;e.find(".choose-show-param").eq(0).is(":hidden")?(t=e.find(".choose-show-param").eq(0).attr("name"),e.find(".choose-show-param").eq(0).css("display","block"),e.find(".choose-show-param").eq(1).css("display","none"),e.parents(".param-item").find(".magee-form-choose").val(t),"Yes"==e.find(".choose-show-param").eq(1).text()&&e.css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}),"No"==e.find(".choose-show-param").eq(1).text()&&e.css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"})):(t=e.find(".choose-show-param").eq(1).attr("name"),e.find(".choose-show-param").eq(1).css("display","block"),e.find(".choose-show-param").eq(0).css("display","none"),e.parents(".param-item").find(".magee-form-choose").val(t),"Yes"==e.find(".choose-show-param").eq(0).text()&&e.css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}),"No"==e.find(".choose-show-param").eq(0).text()&&e.css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"}))},colorpickerControl:function(e){var t=this.colorOptions();e.wpColorPicker(t);t=e.attr("value");e.css("background-color",t);var o=0,i=e.parents(".wp-picker-container");i.find(".wp-picker-holder").mouseover(function(e){o=0,e.cancelBubble=!0}),i.find(".wp-picker-holder").mouseout(function(e){o=1,e.cancelBubble=!0}),d(p).mousedown(function(){1==o&&i.find(".wp-picker-holder").css("display","none")}),i.find(".wp-color-result").click(function(){i.find(".wp-picker-holder").css("display","block")})},shortcodeGenerator:function(e){var t=this.colorOptions(),r=e.data("shortcode"),s=e.parents("div#magee_shortcodes_container form");this.container=d("#magee_shortcodes_container");var c=this;d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{shortcode:r,action:"magee_shortcode_form"},success:function(e){if(s.find(".magee_shortcodes_list").hide(),s.find("#magee-shortcodes-settings").show(),s.find("#magee-shortcodes-settings .current_shortcode").text(r),s.find("#magee-shortcodes-settings #magee-shortcode").val(r),s.find("#magee-shortcodes-settings-inner").html(e),d(".magee-shortcodes-settings-inner-clone").html(s.find(".column-shortcode-inner").html()),0<s.find(".magee-upload-button").length)for(var t=s.find(".magee-upload-button").length,o=0;o<t;o++){c.k++;var i=s.find(".magee-upload-button").eq(o).attr("data-upid");s.find(".magee-upload-button").eq(o).attr("data-upid",i+c.k)}var n='<div class="TB_footer" id="TB_footer">';n+='<div class="magee-shortcode-return">'+MSEditorL10n.top+"</div>",n+='<div class="magee-shortcode-actions magee-shortcode-clearfix">',n+='<a class="button button-large magee-shortcodes-home" href="javascript:void(0);"><img src="'+MSGenerator.imgUrl+'list.png"/></a>',n+='<a class="button button-primary button-large magee-shortcodes-preview" >',n+='<img style="margin-bottom:-3px;margin-right:5px" src="'+MSGenerator.imgUrl+'preview.png"/>'+MSEditorL10n.preview,n+="</a>",n+='<a class="button button-primary button-large magee-shortcode-insert" href="javascript:void(0);">',n+='<img style="margin-bottom:-3px;margin-right:5px" src="'+MSGenerator.imgUrl+'insert_shortcode.png"/>'+MSEditorL10n.insert,n+="</a>",n+="</div>",n+="</div>",d("#TB_window").append(n);var a=d("#TB_window").outerHeight(),e=d("#TB_title").outerHeight(),n=d("#TB_footer").outerHeight();d("#TB_ajaxContent").css({height:a-e-n-15}),d("#TB_ajaxWindowTitle> span:first-child").before("&nbsp;<i class='fa fa-angle-right title_icon' ></i>&nbsp;"),d("#TB_ajaxWindowTitle> span").append(d("#magee-shortcodes-settings-inner h2").text()),d("#no_preview").val()&&d(".TB_footer .magee-shortcodes-preview").css("display","none"),d("#TB_ajaxContent").scroll(function(){400<=d(this).scrollTop()?d(".magee-shortcode-return").css("display","block"):d(".magee-shortcode-return").css("display","none")}),d(".magee-shortcode-return").click(function(){d("#TB_ajaxContent").animate({scrollTop:0},500)}),d(".magee-form-datetime").datetimepicker({dateFormat:"yy-mm-dd HH:ii:ss",allowTimes:[]})},complete:function(){c.container.find(".wp-color-picker-field").wpColorPicker(t),c.initOptions()},error:function(){}})},shortcodeInsert:function(){var e=this.container.find("form"),t=e.find("input#magee-shortcode").val(),o=this.container.data("target");d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{shortcode:t,action:"magee_create_shortcode",attr:e.serializeArray()},success:function(e){c.MSG.props?c.MSG.props.props.setAttributes({content:c.MSG.props.props.attributes.content+e}):(c.magee_wpActiveEditor=c.wpActiveEditor,c.wpActiveEditor=o,c.wp.media.editor.insert(e),c.wpActiveEditor=c.magee_wpActiveEditor),tb_remove()},error:function(){tb_remove()}})}}),d.fn.MageeShortcodesApi=function(){return(new e).setter},d(function(){(new e).init()}),c.MSG={},c.MSG.Api=jQuery().MageeShortcodesApi()}(window.jQuery,window,document);
1
+ !function(d,c,p){function e(){}d.extend(e.prototype,{container:"",k:0,props:"",init:function(){this.btnClick()},setter:function(e=""){this.props=e},btnClick:function(){var o=this;d(p).on("click",".magee_shortcodes",function(){o.shortcodePopup(d(this))}),d(p).on("click","a.magee_shortcode_item",function(){var e=d(this);d(this).css({"pointer-events":"none"}).append('<i style="float:right;" class="fa fa-spinner fa-spin"></i>'),o.shortcodeGenerator(e)}),d(p).on("click","a.magee-shortcodes-home",function(){d("a.magee_shortcode_item").css({"pointer-events":"auto"}),d("a.magee_shortcode_item").find(".fa-spinner").remove(),o.goBack()}),d(p).on("click",".magee-shortcode-insert",function(e){d(this).addClass("button-secondary").removeClass("button-primary").css({"pointer-events":"none"}).append('<i class="fa fa-spinner fa-spin"></i>'),o.shortcodeInsert()}),d(p).on("click",".magee-upload-button",function(e){var t=d(this);e.preventDefault(),o.uplaodButton(t)}),d(p).on("click","a.child-clone-row-remove.magee-shortcodes-button",function(){var e=d(this);o.removeColumn(e)}),d(p).on("click","a.child-shortcode-add",function(){o.addColumn()}),d(p).on("click",".choose-show",function(){var e=d(this);o.choiceControl(e)}),d(p).on("click",".magee_custom_icon",function(){var e=d(this);o.chooseIcon(e)}),d(p).on("click",".magee-shortcodes-preview",function(e){e.stopPropagation(),o.shortcodePrivew()}),d(p).on("click",".magee-preview-delete",function(){o.deletePrivew()}),d(p).on("keyup","#magee_shortcode_search",function(){o.shortcodeSearch(d(this))})},initOptions:function(){var o=this;o.numberControl(),d(".choose-show").each(function(){d(this).find(".choose-show-param").each(function(){var e=""==(e=d(this).parents(".param-item").find(".magee-form-choose").val())?"no":e;d(this).attr("name")==e?d(this).css("display","block"):d(this).css("display","none"),"Yes"==d(this).text()?d(this).css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}):"No"==d(this).text()&&d(this).css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"})})}),d(p).find(".wp-color-picker-field").each(function(e){var t=d(this);o.colorpickerControl(t)})},colorOptions:function(){var o=this;return{change:function(e,t){o.container.find(".wp-color-picker-field").each(function(){var e=d(this).parents(".wp-picker-container").find(".wp-color-result").css("background-color");d(this).css("background-color",e);var t=0;d(this).parents(".wp-picker-container").find("a.iris-square-value").css("top")&&(t=parseInt(d(this).parents(".wp-picker-container").find("a.iris-square-value").css("top").replace("px","")));e=parseInt(d(this).parents(".wp-picker-container").find("div.iris-slider-offset span").css("bottom"));t<87&&e<97?d(this).css("color","black"):d(this).css("color","white")})},defaultColor:!0}},shortcodePrivew:function(){var e=d("#TB_window").height()-40;d("#preview").css({display:"block",position:"absolute",width:"1200px",height:e,top:"0px",left:"-200px"});e="<iframe id='magee-sc-form-preview' class='magee-sc-form-preview' width='100%' height='"+(d("#preview").height()-d(".preview-title").height()-50).toString()+"'></iframe>";0<d("#magee-sc-form-preview").length&&d("#magee-sc-form-preview").remove(),d("#preview").append(e);var t=this.container.find("form").serializeArray(),o=this.container.find("form").find("input#magee-shortcode").val();d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{action:"preview_js",shortcode:o},success:function(e){d("#magee-sc-form-preview").contents().find("head").append(e),d("#magee-sc-form-preview").contents().find("body").append("<img alt='loading' class='loading' src='"+magee_params.themeurl+"/images/AjaxLoader.gif' />"),d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{name:o,action:"live_preview",preview:t},success:function(e){e+='<script>if (typeof jQuery !== "undefined") {var magee_shortcodes = jQuery().MageeShortcodes(); magee_shortcodes.init();}<\/script>',d("#magee-sc-form-preview").contents().find(".loading").remove(),d("#magee-sc-form-preview").contents().find("body").append(e),d("#magee-sc-form-preview").contents().find("a").on("click",function(e){"#"==d(this).attr("href")&&e.preventDefault()})},error:function(){}})},error:function(){}})},deletePrivew:function(){d("#preview").css("display","none"),d("#magee-sc-form-preview").remove()},shortcodeSearch:function(e){var t,e=e.val();""!==e?(d(".magee_shortcodes_list li").hide(),t=new RegExp(e,"i"),d(".magee_shortcodes_list li").each(function(){d(this).text().match(t)&&d(this).show()})):d(".magee_shortcodes_list li").show()},shortcodePopup:function(e={}){var t="shortcode-generator",o=e.data("target");void 0!==e&&e.identifier&&(t=e.identifier);var i=MSEditorL10n.insertShortcode+" "+MSEditorL10n.ver+"<span class='shortcode_show_name'></span><a class='link-doc' target='_blank' href='"+MSGenerator.docUrl+"'>"+MSEditorL10n.doc+"</a><a class='link-forum' target='_blank' href='"+MSGenerator.forumUrl+"'>"+MSEditorL10n.forums+"</a>",e=d(c).height()-150;tb_show(i,ajaxurl+"?action=magee_shortcodes_popup&popup="+t+"&target="+o+"&width=800&height="+e)},goBack:function(){var e=d(c).height()-150;d("#TB_ajaxContent").css("height",e),d("#magee-shortcodes-settings").hide(),d("#TB_footer").remove(),d("#magee-shortcodes-settings-innter").html(""),d(".magee_shortcodes_list").show(),d("#magee_shortcode_search").show(),d("#TB_ajaxWindowTitle").find("i").remove(),d("#TB_ajaxWindowTitle").find("span").html(""),d("#TB_ajaxWindowTitle").html(d("#TB_ajaxWindowTitle").html().replace(/&nbsp;/g,"")),d("#preview").css("display","none"),d("#magee-sc-form-preview").remove()},chooseIcon:function(e){e.each(function(){d(this).parents(".param-item").find(".iconpicker").css("display","block"),d(this).parents(".param-item").find(".iconpicker i").click(function(){var e=d(this).data("name");d(this).addClass("selected").siblings().removeClass("selected"),d(this).parents(".param-item").find("input").val(e),d(this).parent(".iconpicker").css("display","none")})})},uplaodButton:function(e){if(upid=e.attr("data-upid"),e.hasClass("remove-image"))return d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src","").hide(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val("").change(),void d('.magee-upload-button[data-upid="'+upid+'"]').text("Upload").removeClass("remove-image");var o=wp.media.frames.file_frame=wp.media({title:MSEditorL10n.select_img,button:{text:MSEditorL10n.select_img},frame:"post",multiple:!1});o.open(),d(".media-menu a:contains(Insert from URL)").remove(),o.on("select",function(){o.state().get("selection").map(function(e){e=e.toJSON(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src",e.url).show(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val(e.url).change()}),d('.magee-upload-button[data-upid="'+upid+'"]').text("Remove").addClass("remove-image"),d(".media-modal-close").trigger("click")}),o.on("insert",function(){var e=o.state().get("selection"),t=d(".attachment-display-settings .size").val();e.map(function(e){(e=e.toJSON()).url=(t?e.sizes[t]:e).url,d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src",e.url).show(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val(e.url).change()}),d('.magee-upload-button[data-upid="'+upid+'"]').text("Remove").addClass("remove-image"),d(".media-modal-close").trigger("click")})},addColumn:function(){var e='<div class="param-item"><a id="child-shortcode-remove" href="#" class="child-clone-row-remove magee-shortcodes-button ">'+MSEditorL10n.remove+"</a></div>",t=this.container.find(".magee-shortcodes-settings-inner-clone");t.find(".wp-picker-container").each(function(){var e='<input type="text" class="magee-form-text magee-cinput wp-color-picker-field" name="'+d(this).find("input").attr("name")+'" id="'+d(this).find("input").attr("id")+'" value="'+d(this).find("input").val()+'" />';d(this).replaceWith(e)}),$clone=t.html();t=d(".column-shortcode-inner").length,e='<div class="column-shortcode-inner">'+$clone+e+"</div>";if(d(".shortcode-add").before(e),$source=d(".column-shortcode-inner").eq(t),0<$source.find(".magee-upload-button").length)for(var o=$source.find(".magee-upload-button").length,i=0;i<o;i++){this.k++;var n=$source.find(".magee-upload-button").eq(i).attr("data-upid");$source.find(".magee-upload-button").eq(i).attr("data-upid",n+this.k)}this.initOptions()},removeColumn:function(e){e.parents(".column-shortcode-inner").remove()},numberControl:function(){this.container.find(".magee-form-number").each(function(){var t=d(this),o=parseInt(d(this).attr("max")),i=parseInt(d(this).parent(".field").find(".probar").width()),n=i/o,e=parseInt(d(this).val()),e=n*e.toString();d(this).parent(".field").find(".probar-control").css("left",e),d(this).parents(".param-item").find(".probar").click(function(e){e=((e=e||c.event).clientX-d(this).parents(".param-item").find(".probar").offset().left)/i*100;d(this).parents(".param-item").find(".probar-control").css("left",e.toString()+"%"),Math.round(parseInt(d(this).parents(".param-item").find(".probar-control").css("left"))/n)>o?t.val(o):t.val(Math.round(parseInt(d(this).parents(".param-item").find(".probar-control").css("left"))/n))}),d(this).change(function(){parseInt(d(this).val())>o?d(this).parents(".param-item").find(".probar-control").css("left","100%"):(newleft=n*parseInt(d(this).val()).toString(),d(this).parents(".param-item").find(".probar-control").css("left",newleft))});var a,r,s=0;d(this).parents(".param-item").find(".probar-control").mousedown(function(e){s=1,e=e||c.event,a=d(this).parents(".param-item").find(".probar").offset().left,r=a+i}),d(p).mousemove(function(e){1==s&&(e=(e=e||c.event).clientX,r<e||e<a?(r<e&&t.parents(".param-item").find(".probar-control").css("left","100%"),e<a&&t.parents(".param-item").find(".probar-control").css("left","0%")):(e=(e-a)/i*100,t.parents(".param-item").find(".probar-control").css("left",e.toString()+"%"),t.val(Math.round(parseInt(t.parents(".param-item").find(".probar-control").css("left"))/n))))}),d(p).mouseup(function(){s=0})})},choiceControl:function(e){var t;e.find(".choose-show-param").eq(0).is(":hidden")?(t=e.find(".choose-show-param").eq(0).attr("name"),e.find(".choose-show-param").eq(0).css("display","block"),e.find(".choose-show-param").eq(1).css("display","none"),e.parents(".param-item").find(".magee-form-choose").val(t),"Yes"==e.find(".choose-show-param").eq(1).text()&&e.css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}),"No"==e.find(".choose-show-param").eq(1).text()&&e.css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"})):(t=e.find(".choose-show-param").eq(1).attr("name"),e.find(".choose-show-param").eq(1).css("display","block"),e.find(".choose-show-param").eq(0).css("display","none"),e.parents(".param-item").find(".magee-form-choose").val(t),"Yes"==e.find(".choose-show-param").eq(0).text()&&e.css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}),"No"==e.find(".choose-show-param").eq(0).text()&&e.css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"}))},colorpickerControl:function(e){var t=this.colorOptions();e.wpColorPicker(t);t=e.attr("value");e.css("background-color",t);var o=0,i=e.parents(".wp-picker-container");i.find(".wp-picker-holder").mouseover(function(e){o=0,e.cancelBubble=!0}),i.find(".wp-picker-holder").mouseout(function(e){o=1,e.cancelBubble=!0}),d(p).mousedown(function(){1==o&&i.find(".wp-picker-holder").css("display","none")}),i.find(".wp-color-result").click(function(){i.find(".wp-picker-holder").css("display","block")})},shortcodeGenerator:function(e){var t=this.colorOptions(),r=e.data("shortcode"),s=e.parents("div#magee_shortcodes_container form");this.container=d("#magee_shortcodes_container");var c=this;d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{shortcode:r,action:"magee_shortcode_form"},success:function(e){if(s.find(".magee_shortcodes_list").hide(),d("#magee_shortcode_search").hide(),s.find("#magee-shortcodes-settings").show(),s.find("#magee-shortcodes-settings .current_shortcode").text(r),s.find("#magee-shortcodes-settings #magee-shortcode").val(r),s.find("#magee-shortcodes-settings-inner").html(e),d(".magee-shortcodes-settings-inner-clone").html(s.find(".column-shortcode-inner").html()),0<s.find(".magee-upload-button").length)for(var t=s.find(".magee-upload-button").length,o=0;o<t;o++){c.k++;var i=s.find(".magee-upload-button").eq(o).attr("data-upid");s.find(".magee-upload-button").eq(o).attr("data-upid",i+c.k)}var n='<div class="TB_footer" id="TB_footer">';n+='<div class="magee-shortcode-return">'+MSEditorL10n.top+"</div>",n+='<div class="magee-shortcode-actions magee-shortcode-clearfix">',n+='<a class="button button-large magee-shortcodes-home" href="javascript:void(0);"><img src="'+MSGenerator.imgUrl+'list.png"/></a>',n+='<a class="button button-primary button-large magee-shortcodes-preview" >',n+='<img style="margin-bottom:-3px;margin-right:5px" src="'+MSGenerator.imgUrl+'preview.png"/>'+MSEditorL10n.preview,n+="</a>",n+='<a class="button button-primary button-large magee-shortcode-insert" href="javascript:void(0);">',n+='<img style="margin-bottom:-3px;margin-right:5px" src="'+MSGenerator.imgUrl+'insert_shortcode.png"/>'+MSEditorL10n.insert,n+="</a>",n+="</div>",n+="</div>",d("#TB_window").append(n);var a=d("#TB_window").outerHeight(),e=d("#TB_title").outerHeight(),n=d("#TB_footer").outerHeight();d("#TB_ajaxContent").css({height:a-e-n-15}),d("#TB_ajaxWindowTitle> span:first-child").before("&nbsp;<i class='fa fa-angle-right title_icon' ></i>&nbsp;"),d("#TB_ajaxWindowTitle> span").append(d("#magee-shortcodes-settings-inner h2").text()),d("#no_preview").val()&&d(".TB_footer .magee-shortcodes-preview").css("display","none"),d("#TB_ajaxContent").scroll(function(){400<=d(this).scrollTop()?d(".magee-shortcode-return").css("display","block"):d(".magee-shortcode-return").css("display","none")}),d(".magee-shortcode-return").click(function(){d("#TB_ajaxContent").animate({scrollTop:0},500)}),d(".magee-form-datetime").datetimepicker({dateFormat:"yy-mm-dd HH:ii:ss",allowTimes:[]})},complete:function(){c.container.find(".wp-color-picker-field").wpColorPicker(t),c.initOptions()},error:function(){}})},shortcodeInsert:function(){var e=this.container.find("form"),t=e.find("input#magee-shortcode").val(),o=this.container.data("target");console.log("target",o),d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{shortcode:t,action:"magee_create_shortcode",attr:e.serializeArray()},success:function(e){c.MSG.props?c.MSG.props.props.setAttributes({content:c.MSG.props.props.attributes.content+e}):(c.magee_wpActiveEditor=c.wpActiveEditor,c.wpActiveEditor=o,c.wp.media.editor.insert(e),c.wpActiveEditor=c.magee_wpActiveEditor),tb_remove()},error:function(){tb_remove()}})}}),d.fn.MageeShortcodesApi=function(){return(new e).setter},d(function(){(new e).init()}),c.MSG={},c.MSG.Api=jQuery().MageeShortcodesApi()}(window.jQuery,window,document);
assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- !function(d,c,p){function e(){}d.extend(e.prototype,{container:"",k:0,props:"",init:function(){this.btnClick()},setter:function(e=""){this.props=e},btnClick:function(){var o=this;d(".magee_shortcodes").click(function(){o.shortcodePopup()}),d(p).on("click","a.magee_shortcode_item",function(){var e=d(this);d(this).css({"pointer-events":"none"}).append('<i style="float:right;" class="fa fa-spinner fa-spin"></i>'),o.shortcodeGenerator(e)}),d(p).on("click","a.magee-shortcodes-home",function(){d("a.magee_shortcode_item").css({"pointer-events":"auto"}),d("a.magee_shortcode_item").find(".fa-spinner").remove(),o.goBack()}),d(p).on("click",".magee-shortcode-insert",function(e){d(this).addClass("button-secondary").removeClass("button-primary").css({"pointer-events":"none"}).append('<i class="fa fa-spinner fa-spin"></i>'),o.shortcodeInsert()}),d(p).on("click",".magee-upload-button",function(e){var t=d(this);e.preventDefault(),o.uplaodButton(t)}),d(p).on("click","a.child-clone-row-remove.magee-shortcodes-button",function(){var e=d(this);o.removeColumn(e)}),d(p).on("click","a.child-shortcode-add",function(){o.addColumn()}),d(p).on("click",".choose-show",function(){var e=d(this);o.choiceControl(e)}),d(p).on("click",".magee_custom_icon",function(){var e=d(this);o.chooseIcon(e)}),d(p).on("click",".magee-shortcodes-preview",function(e){e.stopPropagation(),o.shortcodePrivew()}),d(p).on("click",".magee-preview-delete",function(){o.deletePrivew()})},initOptions:function(){var o=this;o.numberControl(),d(".choose-show").each(function(){d(this).find(".choose-show-param").each(function(){var e=""==(e=d(this).parents(".param-item").find(".magee-form-choose").val())?"no":e;d(this).attr("name")==e?d(this).css("display","block"):d(this).css("display","none"),"Yes"==d(this).text()?d(this).css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}):"No"==d(this).text()&&d(this).css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"})})}),d(p).find(".wp-color-picker-field").each(function(e){var t=d(this);o.colorpickerControl(t)})},colorOptions:function(){var o=this;return{change:function(e,t){o.container.find(".wp-color-picker-field").each(function(){var e=d(this).parents(".wp-picker-container").find(".wp-color-result").css("background-color");d(this).css("background-color",e);var t=0;d(this).parents(".wp-picker-container").find("a.iris-square-value").css("top")&&(t=parseInt(d(this).parents(".wp-picker-container").find("a.iris-square-value").css("top").replace("px","")));e=parseInt(d(this).parents(".wp-picker-container").find("div.iris-slider-offset span").css("bottom"));t<87&&e<97?d(this).css("color","black"):d(this).css("color","white")})},defaultColor:!0}},shortcodePrivew:function(){var e=d("#TB_window").height()-40;d("#preview").css({display:"block",position:"absolute",width:"1200px",height:e,top:"0px",left:"-200px"});e="<iframe id='magee-sc-form-preview' class='magee-sc-form-preview' width='100%' height='"+(d("#preview").height()-d(".preview-title").height()-50).toString()+"'></iframe>";0<d("#magee-sc-form-preview").length&&d("#magee-sc-form-preview").remove(),d("#preview").append(e);var t=this.container.find("form").serializeArray(),o=this.container.find("form").find("input#magee-shortcode").val();d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{action:"preview_js",shortcode:o},success:function(e){d("#magee-sc-form-preview").contents().find("head").append(e),d("#magee-sc-form-preview").contents().find("body").append("<img alt='loading' class='loading' src='"+magee_params.themeurl+"/images/AjaxLoader.gif' />"),d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{name:o,action:"live_preview",preview:t},success:function(e){e+='<script>if (typeof jQuery !== "undefined") {var magee_shortcodes = jQuery().MageeShortcodes(); magee_shortcodes.init();}<\/script>',d("#magee-sc-form-preview").contents().find(".loading").remove(),d("#magee-sc-form-preview").contents().find("body").append(e),d("#magee-sc-form-preview").contents().find("a").on("click",function(e){"#"==d(this).attr("href")&&e.preventDefault()})},error:function(){}})},error:function(){}})},deletePrivew:function(){d("#preview").css("display","none"),d("#magee-sc-form-preview").remove()},shortcodePopup:function(e={}){var t="shortcode-generator",o=d(this).data("target");void 0!==e&&e.identifier&&(t=e.identifier);var i=MSEditorL10n.insertShortcode+"<span class='shortcode_show_name'></span><a class='link-doc' target='_blank' href='"+MSGenerator.docUrl+"'>"+MSEditorL10n.doc+"</a><a class='link-forum' target='_blank' href='"+MSGenerator.forumUrl+"'>"+MSEditorL10n.forums+"</a>",e=d(c).height()-150;tb_show(i,ajaxurl+"?action=magee_shortcodes_popup&popup="+t+"&target=="+o+"&width=800&height="+e)},goBack:function(){var e=d(c).height()-150;d("#TB_ajaxContent").css("height",e),d("#magee-shortcodes-settings").hide(),d("#TB_footer").remove(),d("#magee-shortcodes-settings-innter").html(""),d(".magee_shortcodes_list").show(),d("#TB_ajaxWindowTitle").find("i").remove(),d("#TB_ajaxWindowTitle").find("span").html(""),d("#TB_ajaxWindowTitle").html(d("#TB_ajaxWindowTitle").html().replace(/&nbsp;/g,"")),d("#preview").css("display","none"),d("#magee-sc-form-preview").remove()},chooseIcon:function(e){e.each(function(){d(this).parents(".param-item").find(".iconpicker").css("display","block"),d(this).parents(".param-item").find(".iconpicker i").click(function(){var e=d(this).data("name");d(this).addClass("selected").siblings().removeClass("selected"),d(this).parents(".param-item").find("input").val(e),d(this).parent(".iconpicker").css("display","none")})})},uplaodButton:function(e){if(upid=e.attr("data-upid"),e.hasClass("remove-image"))return d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src","").hide(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val("").change(),void d('.magee-upload-button[data-upid="'+upid+'"]').text("Upload").removeClass("remove-image");var o=wp.media.frames.file_frame=wp.media({title:MSEditorL10n.select_img,button:{text:MSEditorL10n.select_img},frame:"post",multiple:!1});o.open(),d(".media-menu a:contains(Insert from URL)").remove(),o.on("select",function(){o.state().get("selection").map(function(e){e=e.toJSON(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src",e.url).show(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val(e.url).change()}),d('.magee-upload-button[data-upid="'+upid+'"]').text("Remove").addClass("remove-image"),d(".media-modal-close").trigger("click")}),o.on("insert",function(){var e=o.state().get("selection"),t=d(".attachment-display-settings .size").val();e.map(function(e){(e=e.toJSON()).url=(t?e.sizes[t]:e).url,d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src",e.url).show(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val(e.url).change()}),d('.magee-upload-button[data-upid="'+upid+'"]').text("Remove").addClass("remove-image"),d(".media-modal-close").trigger("click")})},addColumn:function(){var e='<div class="param-item"><a id="child-shortcode-remove" href="#" class="child-clone-row-remove magee-shortcodes-button ">'+MSEditorL10n.remove+"</a></div>",t=this.container.find(".magee-shortcodes-settings-inner-clone");t.find(".wp-picker-container").each(function(){var e='<input type="text" class="magee-form-text magee-cinput wp-color-picker-field" name="'+d(this).find("input").attr("name")+'" id="'+d(this).find("input").attr("id")+'" value="'+d(this).find("input").val()+'" />';d(this).replaceWith(e)}),$clone=t.html();t=d(".column-shortcode-inner").length,e='<div class="column-shortcode-inner">'+$clone+e+"</div>";if(d(".shortcode-add").before(e),$source=d(".column-shortcode-inner").eq(t),0<$source.find(".magee-upload-button").length)for(var o=$source.find(".magee-upload-button").length,i=0;i<o;i++){this.k++;var n=$source.find(".magee-upload-button").eq(i).attr("data-upid");$source.find(".magee-upload-button").eq(i).attr("data-upid",n+this.k)}this.initOptions()},removeColumn:function(e){e.parents(".column-shortcode-inner").remove()},numberControl:function(){this.container.find(".magee-form-number").each(function(){var t=d(this),o=parseInt(d(this).attr("max")),i=parseInt(d(this).parent(".field").find(".probar").width()),n=i/o,e=parseInt(d(this).val()),e=n*e.toString();d(this).parent(".field").find(".probar-control").css("left",e),d(this).parents(".param-item").find(".probar").click(function(e){e=((e=e||c.event).clientX-d(this).parents(".param-item").find(".probar").offset().left)/i*100;d(this).parents(".param-item").find(".probar-control").css("left",e.toString()+"%"),Math.round(parseInt(d(this).parents(".param-item").find(".probar-control").css("left"))/n)>o?t.val(o):t.val(Math.round(parseInt(d(this).parents(".param-item").find(".probar-control").css("left"))/n))}),d(this).change(function(){parseInt(d(this).val())>o?d(this).parents(".param-item").find(".probar-control").css("left","100%"):(newleft=n*parseInt(d(this).val()).toString(),d(this).parents(".param-item").find(".probar-control").css("left",newleft))});var a,r,s=0;d(this).parents(".param-item").find(".probar-control").mousedown(function(e){s=1,e=e||c.event,a=d(this).parents(".param-item").find(".probar").offset().left,r=a+i}),d(p).mousemove(function(e){1==s&&(e=(e=e||c.event).clientX,r<e||e<a?(r<e&&t.parents(".param-item").find(".probar-control").css("left","100%"),e<a&&t.parents(".param-item").find(".probar-control").css("left","0%")):(e=(e-a)/i*100,t.parents(".param-item").find(".probar-control").css("left",e.toString()+"%"),t.val(Math.round(parseInt(t.parents(".param-item").find(".probar-control").css("left"))/n))))}),d(p).mouseup(function(){s=0})})},choiceControl:function(e){var t;e.find(".choose-show-param").eq(0).is(":hidden")?(t=e.find(".choose-show-param").eq(0).attr("name"),e.find(".choose-show-param").eq(0).css("display","block"),e.find(".choose-show-param").eq(1).css("display","none"),e.parents(".param-item").find(".magee-form-choose").val(t),"Yes"==e.find(".choose-show-param").eq(1).text()&&e.css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}),"No"==e.find(".choose-show-param").eq(1).text()&&e.css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"})):(t=e.find(".choose-show-param").eq(1).attr("name"),e.find(".choose-show-param").eq(1).css("display","block"),e.find(".choose-show-param").eq(0).css("display","none"),e.parents(".param-item").find(".magee-form-choose").val(t),"Yes"==e.find(".choose-show-param").eq(0).text()&&e.css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}),"No"==e.find(".choose-show-param").eq(0).text()&&e.css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"}))},colorpickerControl:function(e){var t=this.colorOptions();e.wpColorPicker(t);t=e.attr("value");e.css("background-color",t);var o=0,i=e.parents(".wp-picker-container");i.find(".wp-picker-holder").mouseover(function(e){o=0,e.cancelBubble=!0}),i.find(".wp-picker-holder").mouseout(function(e){o=1,e.cancelBubble=!0}),d(p).mousedown(function(){1==o&&i.find(".wp-picker-holder").css("display","none")}),i.find(".wp-color-result").click(function(){i.find(".wp-picker-holder").css("display","block")})},shortcodeGenerator:function(e){var t=this.colorOptions(),r=e.data("shortcode"),s=e.parents("div#magee_shortcodes_container form");this.container=d("#magee_shortcodes_container");var c=this;d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{shortcode:r,action:"magee_shortcode_form"},success:function(e){if(s.find(".magee_shortcodes_list").hide(),s.find("#magee-shortcodes-settings").show(),s.find("#magee-shortcodes-settings .current_shortcode").text(r),s.find("#magee-shortcodes-settings #magee-shortcode").val(r),s.find("#magee-shortcodes-settings-inner").html(e),d(".magee-shortcodes-settings-inner-clone").html(s.find(".column-shortcode-inner").html()),0<s.find(".magee-upload-button").length)for(var t=s.find(".magee-upload-button").length,o=0;o<t;o++){c.k++;var i=s.find(".magee-upload-button").eq(o).attr("data-upid");s.find(".magee-upload-button").eq(o).attr("data-upid",i+c.k)}var n='<div class="TB_footer" id="TB_footer">';n+='<div class="magee-shortcode-return">'+MSEditorL10n.top+"</div>",n+='<div class="magee-shortcode-actions magee-shortcode-clearfix">',n+='<a class="button button-large magee-shortcodes-home" href="javascript:void(0);"><img src="'+MSGenerator.imgUrl+'list.png"/></a>',n+='<a class="button button-primary button-large magee-shortcodes-preview" >',n+='<img style="margin-bottom:-3px;margin-right:5px" src="'+MSGenerator.imgUrl+'preview.png"/>'+MSEditorL10n.preview,n+="</a>",n+='<a class="button button-primary button-large magee-shortcode-insert" href="javascript:void(0);">',n+='<img style="margin-bottom:-3px;margin-right:5px" src="'+MSGenerator.imgUrl+'insert_shortcode.png"/>'+MSEditorL10n.insert,n+="</a>",n+="</div>",n+="</div>",d("#TB_window").append(n);var a=d("#TB_window").outerHeight(),e=d("#TB_title").outerHeight(),n=d("#TB_footer").outerHeight();d("#TB_ajaxContent").css({height:a-e-n-15}),d("#TB_ajaxWindowTitle> span:first-child").before("&nbsp;<i class='fa fa-angle-right title_icon' ></i>&nbsp;"),d("#TB_ajaxWindowTitle> span").append(d("#magee-shortcodes-settings-inner h2").text()),d("#no_preview").val()&&d(".TB_footer .magee-shortcodes-preview").css("display","none"),d("#TB_ajaxContent").scroll(function(){400<=d(this).scrollTop()?d(".magee-shortcode-return").css("display","block"):d(".magee-shortcode-return").css("display","none")}),d(".magee-shortcode-return").click(function(){d("#TB_ajaxContent").animate({scrollTop:0},500)}),d(".magee-form-datetime").datetimepicker({dateFormat:"yy-mm-dd HH:ii:ss",allowTimes:[]})},complete:function(){c.container.find(".wp-color-picker-field").wpColorPicker(t),c.initOptions()},error:function(){}})},shortcodeInsert:function(){var e=this.container.find("form"),t=e.find("input#magee-shortcode").val(),o=this.container.data("target");d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{shortcode:t,action:"magee_create_shortcode",attr:e.serializeArray()},success:function(e){c.MSG.props?c.MSG.props.props.setAttributes({content:c.MSG.props.props.attributes.content+e}):(c.magee_wpActiveEditor=c.wpActiveEditor,c.wpActiveEditor=o,c.wp.media.editor.insert(e),c.wpActiveEditor=c.magee_wpActiveEditor),tb_remove()},error:function(){tb_remove()}})}}),d.fn.MageeShortcodesApi=function(){return(new e).setter},d(function(){(new e).init()}),c.MSG={},c.MSG.Api=jQuery().MageeShortcodesApi()}(window.jQuery,window,document);
1
+ !function(d,c,p){function e(){}d.extend(e.prototype,{container:"",k:0,props:"",init:function(){this.btnClick()},setter:function(e=""){this.props=e},btnClick:function(){var o=this;d(p).on("click",".magee_shortcodes",function(){o.shortcodePopup(d(this))}),d(p).on("click","a.magee_shortcode_item",function(){var e=d(this);d(this).css({"pointer-events":"none"}).append('<i style="float:right;" class="fa fa-spinner fa-spin"></i>'),o.shortcodeGenerator(e)}),d(p).on("click","a.magee-shortcodes-home",function(){d("a.magee_shortcode_item").css({"pointer-events":"auto"}),d("a.magee_shortcode_item").find(".fa-spinner").remove(),o.goBack()}),d(p).on("click",".magee-shortcode-insert",function(e){d(this).addClass("button-secondary").removeClass("button-primary").css({"pointer-events":"none"}).append('<i class="fa fa-spinner fa-spin"></i>'),o.shortcodeInsert()}),d(p).on("click",".magee-upload-button",function(e){var t=d(this);e.preventDefault(),o.uplaodButton(t)}),d(p).on("click","a.child-clone-row-remove.magee-shortcodes-button",function(){var e=d(this);o.removeColumn(e)}),d(p).on("click","a.child-shortcode-add",function(){o.addColumn()}),d(p).on("click",".choose-show",function(){var e=d(this);o.choiceControl(e)}),d(p).on("click",".magee_custom_icon",function(){var e=d(this);o.chooseIcon(e)}),d(p).on("click",".magee-shortcodes-preview",function(e){e.stopPropagation(),o.shortcodePrivew()}),d(p).on("click",".magee-preview-delete",function(){o.deletePrivew()}),d(p).on("keyup","#magee_shortcode_search",function(){o.shortcodeSearch(d(this))})},initOptions:function(){var o=this;o.numberControl(),d(".choose-show").each(function(){d(this).find(".choose-show-param").each(function(){var e=""==(e=d(this).parents(".param-item").find(".magee-form-choose").val())?"no":e;d(this).attr("name")==e?d(this).css("display","block"):d(this).css("display","none"),"Yes"==d(this).text()?d(this).css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}):"No"==d(this).text()&&d(this).css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"})})}),d(p).find(".wp-color-picker-field").each(function(e){var t=d(this);o.colorpickerControl(t)})},colorOptions:function(){var o=this;return{change:function(e,t){o.container.find(".wp-color-picker-field").each(function(){var e=d(this).parents(".wp-picker-container").find(".wp-color-result").css("background-color");d(this).css("background-color",e);var t=0;d(this).parents(".wp-picker-container").find("a.iris-square-value").css("top")&&(t=parseInt(d(this).parents(".wp-picker-container").find("a.iris-square-value").css("top").replace("px","")));e=parseInt(d(this).parents(".wp-picker-container").find("div.iris-slider-offset span").css("bottom"));t<87&&e<97?d(this).css("color","black"):d(this).css("color","white")})},defaultColor:!0}},shortcodePrivew:function(){var e=d("#TB_window").height()-40;d("#preview").css({display:"block",position:"absolute",width:"1200px",height:e,top:"0px",left:"-200px"});e="<iframe id='magee-sc-form-preview' class='magee-sc-form-preview' width='100%' height='"+(d("#preview").height()-d(".preview-title").height()-50).toString()+"'></iframe>";0<d("#magee-sc-form-preview").length&&d("#magee-sc-form-preview").remove(),d("#preview").append(e);var t=this.container.find("form").serializeArray(),o=this.container.find("form").find("input#magee-shortcode").val();d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{action:"preview_js",shortcode:o},success:function(e){d("#magee-sc-form-preview").contents().find("head").append(e),d("#magee-sc-form-preview").contents().find("body").append("<img alt='loading' class='loading' src='"+magee_params.themeurl+"/images/AjaxLoader.gif' />"),d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{name:o,action:"live_preview",preview:t},success:function(e){e+='<script>if (typeof jQuery !== "undefined") {var magee_shortcodes = jQuery().MageeShortcodes(); magee_shortcodes.init();}<\/script>',d("#magee-sc-form-preview").contents().find(".loading").remove(),d("#magee-sc-form-preview").contents().find("body").append(e),d("#magee-sc-form-preview").contents().find("a").on("click",function(e){"#"==d(this).attr("href")&&e.preventDefault()})},error:function(){}})},error:function(){}})},deletePrivew:function(){d("#preview").css("display","none"),d("#magee-sc-form-preview").remove()},shortcodeSearch:function(e){var t,e=e.val();""!==e?(d(".magee_shortcodes_list li").hide(),t=new RegExp(e,"i"),d(".magee_shortcodes_list li").each(function(){d(this).text().match(t)&&d(this).show()})):d(".magee_shortcodes_list li").show()},shortcodePopup:function(e={}){var t="shortcode-generator",o=e.data("target");void 0!==e&&e.identifier&&(t=e.identifier);var i=MSEditorL10n.insertShortcode+" "+MSEditorL10n.ver+"<span class='shortcode_show_name'></span><a class='link-doc' target='_blank' href='"+MSGenerator.docUrl+"'>"+MSEditorL10n.doc+"</a><a class='link-forum' target='_blank' href='"+MSGenerator.forumUrl+"'>"+MSEditorL10n.forums+"</a>",e=d(c).height()-150;tb_show(i,ajaxurl+"?action=magee_shortcodes_popup&popup="+t+"&target="+o+"&width=800&height="+e)},goBack:function(){var e=d(c).height()-150;d("#TB_ajaxContent").css("height",e),d("#magee-shortcodes-settings").hide(),d("#TB_footer").remove(),d("#magee-shortcodes-settings-innter").html(""),d(".magee_shortcodes_list").show(),d("#magee_shortcode_search").show(),d("#TB_ajaxWindowTitle").find("i").remove(),d("#TB_ajaxWindowTitle").find("span").html(""),d("#TB_ajaxWindowTitle").html(d("#TB_ajaxWindowTitle").html().replace(/&nbsp;/g,"")),d("#preview").css("display","none"),d("#magee-sc-form-preview").remove()},chooseIcon:function(e){e.each(function(){d(this).parents(".param-item").find(".iconpicker").css("display","block"),d(this).parents(".param-item").find(".iconpicker i").click(function(){var e=d(this).data("name");d(this).addClass("selected").siblings().removeClass("selected"),d(this).parents(".param-item").find("input").val(e),d(this).parent(".iconpicker").css("display","none")})})},uplaodButton:function(e){if(upid=e.attr("data-upid"),e.hasClass("remove-image"))return d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src","").hide(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val("").change(),void d('.magee-upload-button[data-upid="'+upid+'"]').text("Upload").removeClass("remove-image");var o=wp.media.frames.file_frame=wp.media({title:MSEditorL10n.select_img,button:{text:MSEditorL10n.select_img},frame:"post",multiple:!1});o.open(),d(".media-menu a:contains(Insert from URL)").remove(),o.on("select",function(){o.state().get("selection").map(function(e){e=e.toJSON(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src",e.url).show(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val(e.url).change()}),d('.magee-upload-button[data-upid="'+upid+'"]').text("Remove").addClass("remove-image"),d(".media-modal-close").trigger("click")}),o.on("insert",function(){var e=o.state().get("selection"),t=d(".attachment-display-settings .size").val();e.map(function(e){(e=e.toJSON()).url=(t?e.sizes[t]:e).url,d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("img").attr("src",e.url).show(),d('.magee-upload-button[data-upid="'+upid+'"]').parent().find("input").val(e.url).change()}),d('.magee-upload-button[data-upid="'+upid+'"]').text("Remove").addClass("remove-image"),d(".media-modal-close").trigger("click")})},addColumn:function(){var e='<div class="param-item"><a id="child-shortcode-remove" href="#" class="child-clone-row-remove magee-shortcodes-button ">'+MSEditorL10n.remove+"</a></div>",t=this.container.find(".magee-shortcodes-settings-inner-clone");t.find(".wp-picker-container").each(function(){var e='<input type="text" class="magee-form-text magee-cinput wp-color-picker-field" name="'+d(this).find("input").attr("name")+'" id="'+d(this).find("input").attr("id")+'" value="'+d(this).find("input").val()+'" />';d(this).replaceWith(e)}),$clone=t.html();t=d(".column-shortcode-inner").length,e='<div class="column-shortcode-inner">'+$clone+e+"</div>";if(d(".shortcode-add").before(e),$source=d(".column-shortcode-inner").eq(t),0<$source.find(".magee-upload-button").length)for(var o=$source.find(".magee-upload-button").length,i=0;i<o;i++){this.k++;var n=$source.find(".magee-upload-button").eq(i).attr("data-upid");$source.find(".magee-upload-button").eq(i).attr("data-upid",n+this.k)}this.initOptions()},removeColumn:function(e){e.parents(".column-shortcode-inner").remove()},numberControl:function(){this.container.find(".magee-form-number").each(function(){var t=d(this),o=parseInt(d(this).attr("max")),i=parseInt(d(this).parent(".field").find(".probar").width()),n=i/o,e=parseInt(d(this).val()),e=n*e.toString();d(this).parent(".field").find(".probar-control").css("left",e),d(this).parents(".param-item").find(".probar").click(function(e){e=((e=e||c.event).clientX-d(this).parents(".param-item").find(".probar").offset().left)/i*100;d(this).parents(".param-item").find(".probar-control").css("left",e.toString()+"%"),Math.round(parseInt(d(this).parents(".param-item").find(".probar-control").css("left"))/n)>o?t.val(o):t.val(Math.round(parseInt(d(this).parents(".param-item").find(".probar-control").css("left"))/n))}),d(this).change(function(){parseInt(d(this).val())>o?d(this).parents(".param-item").find(".probar-control").css("left","100%"):(newleft=n*parseInt(d(this).val()).toString(),d(this).parents(".param-item").find(".probar-control").css("left",newleft))});var a,r,s=0;d(this).parents(".param-item").find(".probar-control").mousedown(function(e){s=1,e=e||c.event,a=d(this).parents(".param-item").find(".probar").offset().left,r=a+i}),d(p).mousemove(function(e){1==s&&(e=(e=e||c.event).clientX,r<e||e<a?(r<e&&t.parents(".param-item").find(".probar-control").css("left","100%"),e<a&&t.parents(".param-item").find(".probar-control").css("left","0%")):(e=(e-a)/i*100,t.parents(".param-item").find(".probar-control").css("left",e.toString()+"%"),t.val(Math.round(parseInt(t.parents(".param-item").find(".probar-control").css("left"))/n))))}),d(p).mouseup(function(){s=0})})},choiceControl:function(e){var t;e.find(".choose-show-param").eq(0).is(":hidden")?(t=e.find(".choose-show-param").eq(0).attr("name"),e.find(".choose-show-param").eq(0).css("display","block"),e.find(".choose-show-param").eq(1).css("display","none"),e.parents(".param-item").find(".magee-form-choose").val(t),"Yes"==e.find(".choose-show-param").eq(1).text()&&e.css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}),"No"==e.find(".choose-show-param").eq(1).text()&&e.css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"})):(t=e.find(".choose-show-param").eq(1).attr("name"),e.find(".choose-show-param").eq(1).css("display","block"),e.find(".choose-show-param").eq(0).css("display","none"),e.parents(".param-item").find(".magee-form-choose").val(t),"Yes"==e.find(".choose-show-param").eq(0).text()&&e.css({"background-color":"#CCF7D5",color:"#17A534","font-weight":"bold"}),"No"==e.find(".choose-show-param").eq(0).text()&&e.css({"background-color":"#FFDEDE",color:"#ff0000","font-weight":"bold"}))},colorpickerControl:function(e){var t=this.colorOptions();e.wpColorPicker(t);t=e.attr("value");e.css("background-color",t);var o=0,i=e.parents(".wp-picker-container");i.find(".wp-picker-holder").mouseover(function(e){o=0,e.cancelBubble=!0}),i.find(".wp-picker-holder").mouseout(function(e){o=1,e.cancelBubble=!0}),d(p).mousedown(function(){1==o&&i.find(".wp-picker-holder").css("display","none")}),i.find(".wp-color-result").click(function(){i.find(".wp-picker-holder").css("display","block")})},shortcodeGenerator:function(e){var t=this.colorOptions(),r=e.data("shortcode"),s=e.parents("div#magee_shortcodes_container form");this.container=d("#magee_shortcodes_container");var c=this;d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{shortcode:r,action:"magee_shortcode_form"},success:function(e){if(s.find(".magee_shortcodes_list").hide(),d("#magee_shortcode_search").hide(),s.find("#magee-shortcodes-settings").show(),s.find("#magee-shortcodes-settings .current_shortcode").text(r),s.find("#magee-shortcodes-settings #magee-shortcode").val(r),s.find("#magee-shortcodes-settings-inner").html(e),d(".magee-shortcodes-settings-inner-clone").html(s.find(".column-shortcode-inner").html()),0<s.find(".magee-upload-button").length)for(var t=s.find(".magee-upload-button").length,o=0;o<t;o++){c.k++;var i=s.find(".magee-upload-button").eq(o).attr("data-upid");s.find(".magee-upload-button").eq(o).attr("data-upid",i+c.k)}var n='<div class="TB_footer" id="TB_footer">';n+='<div class="magee-shortcode-return">'+MSEditorL10n.top+"</div>",n+='<div class="magee-shortcode-actions magee-shortcode-clearfix">',n+='<a class="button button-large magee-shortcodes-home" href="javascript:void(0);"><img src="'+MSGenerator.imgUrl+'list.png"/></a>',n+='<a class="button button-primary button-large magee-shortcodes-preview" >',n+='<img style="margin-bottom:-3px;margin-right:5px" src="'+MSGenerator.imgUrl+'preview.png"/>'+MSEditorL10n.preview,n+="</a>",n+='<a class="button button-primary button-large magee-shortcode-insert" href="javascript:void(0);">',n+='<img style="margin-bottom:-3px;margin-right:5px" src="'+MSGenerator.imgUrl+'insert_shortcode.png"/>'+MSEditorL10n.insert,n+="</a>",n+="</div>",n+="</div>",d("#TB_window").append(n);var a=d("#TB_window").outerHeight(),e=d("#TB_title").outerHeight(),n=d("#TB_footer").outerHeight();d("#TB_ajaxContent").css({height:a-e-n-15}),d("#TB_ajaxWindowTitle> span:first-child").before("&nbsp;<i class='fa fa-angle-right title_icon' ></i>&nbsp;"),d("#TB_ajaxWindowTitle> span").append(d("#magee-shortcodes-settings-inner h2").text()),d("#no_preview").val()&&d(".TB_footer .magee-shortcodes-preview").css("display","none"),d("#TB_ajaxContent").scroll(function(){400<=d(this).scrollTop()?d(".magee-shortcode-return").css("display","block"):d(".magee-shortcode-return").css("display","none")}),d(".magee-shortcode-return").click(function(){d("#TB_ajaxContent").animate({scrollTop:0},500)}),d(".magee-form-datetime").datetimepicker({dateFormat:"yy-mm-dd HH:ii:ss",allowTimes:[]})},complete:function(){c.container.find(".wp-color-picker-field").wpColorPicker(t),c.initOptions()},error:function(){}})},shortcodeInsert:function(){var e=this.container.find("form"),t=e.find("input#magee-shortcode").val(),o=this.container.data("target");console.log("target",o),d.ajax({type:"POST",url:ajaxurl,dataType:"html",data:{shortcode:t,action:"magee_create_shortcode",attr:e.serializeArray()},success:function(e){c.MSG.props?c.MSG.props.props.setAttributes({content:c.MSG.props.props.attributes.content+e}):(c.magee_wpActiveEditor=c.wpActiveEditor,c.wpActiveEditor=o,c.wp.media.editor.insert(e),c.wpActiveEditor=c.magee_wpActiveEditor),tb_remove()},error:function(){tb_remove()}})}}),d.fn.MageeShortcodesApi=function(){return(new e).setter},d(function(){(new e).init()}),c.MSG={},c.MSG.Api=jQuery().MageeShortcodesApi()}(window.jQuery,window,document);
assets/js/block-editor.js CHANGED
@@ -1,65 +1 @@
1
- !function c(i, l, u) {
2
- function a(t, e) {
3
- if (!l[t]) {
4
- if (!i[t]) {
5
- var r = "function" == typeof require && require;
6
- if (!e && r) return r(t, !0);
7
- if (s) return s(t, !0);
8
- var n = new Error("Cannot find module '" + t + "'");
9
- throw n.code = "MODULE_NOT_FOUND",
10
- n
11
- }
12
- var o = l[t] = {
13
- exports: {}
14
- };
15
- i[t][0].call(o.exports,
16
- function(e) {
17
- return a(i[t][1][e] || e)
18
- },
19
- o, o.exports, c, i, l, u)
20
- }
21
- return l[t].exports
22
- }
23
- for (var s = "function" == typeof require && require,
24
- e = 0; e < u.length; e++) a(u[e]);
25
- return a
26
- } ({
27
- 1 : [function(e, t, r) {
28
- "use strict";
29
- var n = wp.element.Fragment,
30
- o = wp.editor.BlockControls,
31
- c = wp.components,
32
- i = c.SVG,
33
- l = c.Path;
34
- wp.hooks.addFilter("editor.BlockEdit", "magee-shortcodes/with-insert-shortcode-button",
35
- function(t) {
36
- return function(e) {
37
- return -1 === MSBlockSettings.supportedBlocks.indexOf(e.name) ? React.createElement(t, e) : React.createElement(n, null, React.createElement(t, e), React.createElement(o, {
38
- controls: [{
39
- icon: React.createElement(i, {
40
- viewBox: "0 0 20 20",
41
- xmlns: "http://www.w3.org/2000/svg"
42
- },
43
- React.createElement(l, {
44
- d: "M6 14H4V6h2V4H2v12h4z M7.1 17h2.1l3.7-14h-2.1z M14 4v2h2v8h-2v2h4V4z"
45
- })),
46
- title: MSBlockEditorL10n.insertShortcode,
47
- onClick: function() {
48
- window.MSG.Api({props:e})
49
- var popup = 'shortcode-generator';
50
- if (typeof params != 'undefined' && params.identifier) {
51
- popup = params.identifier
52
- }
53
- var magee = MSBlockEditorL10n.insertShortcode + "<span class='shortcode_show_name'></span><a class='link-doc' target='_blank' href='"+MSBlockSettings.docUrl+"'>" + MSBlockEditorL10n.doc + "</a><a class='link-forum' target='_blank' href='"+MSBlockSettings.forumUrl+"'>" + MSBlockEditorL10n.forums + "</a>";
54
- var height = jQuery(window).height() - 150;
55
- tb_show(magee, ajaxurl + "?action=magee_shortcodes_popup&popup=" + popup + "&target=&width=800&height=" + height)
56
- }
57
- }]
58
- }))
59
- }
60
- })
61
- },
62
- {}]
63
- },
64
- {},
65
- [1]);
1
+ !function o(n,i,c){function a(t,e){if(!i[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(s)return s(t,!0);r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}r=i[t]={exports:{}};n[t][0].call(r.exports,function(e){return a(n[t][1][e]||e)},r,r.exports,o,n,i,c)}return i[t].exports}for(var s="function"==typeof require&&require,e=0;e<c.length;e++)a(c[e]);return a}({1:[function(e,t,r){"use strict";var n=wp.element.Fragment,i=wp.editor.BlockControls,o=wp.components,c=o.SVG,a=o.Path;wp.hooks.addFilter("editor.BlockEdit","magee-shortcodes/with-insert-shortcode-button",function(e){return function(o){return-1===MSBlockSettings.supportedBlocks.indexOf(o.name)?React.createElement(e,o):React.createElement(n,null,React.createElement(e,o),React.createElement(i,{controls:[{icon:React.createElement(c,{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},React.createElement(a,{d:"M6 14H4V6h2V4H2v12h4z M7.1 17h2.1l3.7-14h-2.1z M14 4v2h2v8h-2v2h4V4z"})),title:MSBlockEditorL10n.insertShortcode,onClick:function(){window.MSG.Api({props:o});var e="shortcode-generator";"undefined"!=typeof params&&params.identifier&&(e=params.identifier);var t=MSBlockEditorL10n.insertShortcode+" "+MSBlockEditorL10n.ver+"<span class='shortcode_show_name'></span><a class='link-doc' target='_blank' href='"+MSBlockSettings.docUrl+"'>"+MSBlockEditorL10n.doc+"</a><a class='link-forum' target='_blank' href='"+MSBlockSettings.forumUrl+"'>"+MSBlockEditorL10n.forums+"</a>",r=jQuery(window).height()-150;tb_show(t,ajaxurl+"?action=magee_shortcodes_popup&popup="+e+"&target=&width=800&height="+r)}}]}))}})},{}]},{},[1]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/block-editor.min.js CHANGED
@@ -1 +1 @@
1
- !function o(n,i,c){function a(t,e){if(!i[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(s)return s(t,!0);r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}r=i[t]={exports:{}};n[t][0].call(r.exports,function(e){return a(n[t][1][e]||e)},r,r.exports,o,n,i,c)}return i[t].exports}for(var s="function"==typeof require&&require,e=0;e<c.length;e++)a(c[e]);return a}({1:[function(e,t,r){"use strict";var n=wp.element.Fragment,i=wp.editor.BlockControls,o=wp.components,c=o.SVG,a=o.Path;wp.hooks.addFilter("editor.BlockEdit","magee-shortcodes/with-insert-shortcode-button",function(e){return function(o){return-1===MSBlockSettings.supportedBlocks.indexOf(o.name)?React.createElement(e,o):React.createElement(n,null,React.createElement(e,o),React.createElement(i,{controls:[{icon:React.createElement(c,{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},React.createElement(a,{d:"M6 14H4V6h2V4H2v12h4z M7.1 17h2.1l3.7-14h-2.1z M14 4v2h2v8h-2v2h4V4z"})),title:MSBlockEditorL10n.insertShortcode,onClick:function(){window.MSG.Api({props:o});var e="shortcode-generator";"undefined"!=typeof params&&params.identifier&&(e=params.identifier);var t=MSBlockEditorL10n.insertShortcode+"<span class='shortcode_show_name'></span><a class='link-doc' target='_blank' href='"+MSBlockSettings.docUrl+"'>"+MSBlockEditorL10n.doc+"</a><a class='link-forum' target='_blank' href='"+MSBlockSettings.forumUrl+"'>"+MSBlockEditorL10n.forums+"</a>",r=jQuery(window).height()-150;tb_show(t,ajaxurl+"?action=magee_shortcodes_popup&popup="+e+"&target=&width=800&height="+r)}}]}))}})},{}]},{},[1]);
1
+ !function o(n,i,c){function a(t,e){if(!i[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(s)return s(t,!0);r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}r=i[t]={exports:{}};n[t][0].call(r.exports,function(e){return a(n[t][1][e]||e)},r,r.exports,o,n,i,c)}return i[t].exports}for(var s="function"==typeof require&&require,e=0;e<c.length;e++)a(c[e]);return a}({1:[function(e,t,r){"use strict";var n=wp.element.Fragment,i=wp.editor.BlockControls,o=wp.components,c=o.SVG,a=o.Path;wp.hooks.addFilter("editor.BlockEdit","magee-shortcodes/with-insert-shortcode-button",function(e){return function(o){return-1===MSBlockSettings.supportedBlocks.indexOf(o.name)?React.createElement(e,o):React.createElement(n,null,React.createElement(e,o),React.createElement(i,{controls:[{icon:React.createElement(c,{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},React.createElement(a,{d:"M6 14H4V6h2V4H2v12h4z M7.1 17h2.1l3.7-14h-2.1z M14 4v2h2v8h-2v2h4V4z"})),title:MSBlockEditorL10n.insertShortcode,onClick:function(){window.MSG.Api({props:o});var e="shortcode-generator";"undefined"!=typeof params&&params.identifier&&(e=params.identifier);var t=MSBlockEditorL10n.insertShortcode+" "+MSBlockEditorL10n.ver+"<span class='shortcode_show_name'></span><a class='link-doc' target='_blank' href='"+MSBlockSettings.docUrl+"'>"+MSBlockEditorL10n.doc+"</a><a class='link-forum' target='_blank' href='"+MSBlockSettings.forumUrl+"'>"+MSBlockEditorL10n.forums+"</a>",r=jQuery(window).height()-150;tb_show(t,ajaxurl+"?action=magee_shortcodes_popup&popup="+e+"&target=&width=800&height="+r)}}]}))}})},{}]},{},[1]);
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: hoosoft
3
  Tags: shortcodes, shortcode, accordion, alert, button, column, custom box, countdowns, counter, divider, dropcap, feature box, flip box, highlight, list, modal, popover, tooltip, person, promo box, scocial, tab, testimonial, progress, piechart, timeline, panel, section, slider
4
  Requires at least: 5.0
5
- Tested up to: 5.7
6
- Stable tag: 2.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -126,6 +126,13 @@ Activate plugin at "Plugins" administration page.
126
 
127
  == Changelog ==
128
 
 
 
 
 
 
 
 
129
  = 2.0.5 =
130
  * Fix: Progress Bar Shortcode stripe issue
131
 
2
  Contributors: hoosoft
3
  Tags: shortcodes, shortcode, accordion, alert, button, column, custom box, countdowns, counter, divider, dropcap, feature box, flip box, highlight, list, modal, popover, tooltip, person, promo box, scocial, tab, testimonial, progress, piechart, timeline, panel, section, slider
4
  Requires at least: 5.0
5
+ Tested up to: 5.8
6
+ Stable tag: 2.0.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
126
 
127
  == Changelog ==
128
 
129
+ = 2.0.7 =
130
+ * Fix: List shortcode issue
131
+ * Fix: Shortcode generator issue
132
+
133
+ = 2.0.6 =
134
+ * Fix: Compatibility issues with plugin ACF and elementor editor
135
+
136
  = 2.0.5 =
137
  * Fix: Progress Bar Shortcode stripe issue
138
 
shortcodes/class-accordion.php CHANGED
@@ -103,6 +103,8 @@ class Magee_Accordion {
103
  extract( $defaults );
104
  self::$args = $defaults;
105
  $html = '';
 
 
106
 
107
  if( $status == "open" ) {
108
  $status = "in";
103
  extract( $defaults );
104
  self::$args = $defaults;
105
  $html = '';
106
+
107
+ if( '' == $content) return '';
108
 
109
  if( $status == "open" ) {
110
  $status = "in";
shortcodes/class-carousel.php CHANGED
@@ -135,7 +135,7 @@ class Magee_Carousel {
135
 
136
  extract( $defaults );
137
  self::$args = $defaults;
138
-
139
  $html = '';
140
  if($content):
141
  $html .= '<div class="item">';
135
 
136
  extract( $defaults );
137
  self::$args = $defaults;
138
+ if( '' == $content) return '';
139
  $html = '';
140
  if($content):
141
  $html .= '<div class="item">';
shortcodes/class-list.php CHANGED
@@ -7,8 +7,8 @@ class Magee_List {
7
 
8
  public static $args;
9
  private $id;
10
- private static $icon_a;
11
- private static $css_style;
12
 
13
  /**
14
  * Initiate the shortcode
@@ -35,11 +35,11 @@ class Magee_List {
35
  'item_border' =>'no',
36
  'item_size' =>'12px',
37
  'class' =>'',
38
- 'icon_a' =>'',
39
  'icon_color_a' =>'',
40
  'icon_boxed_a' =>'no',
41
- 'background_color_a' =>'',
42
- 'boxed_shape_a' =>'circle',
43
  'is_preview' => ''
44
  ), $args
45
  );
@@ -122,6 +122,8 @@ class Magee_List {
122
  $uniqid_li = Utils::rand_str('li-');
123
  $css_style = '';
124
 
 
 
125
  if( isset($this->icon_a) && $this->icon_a !== '' ):
126
  if( stristr($this->icon_a, 'fa-')):
127
  $html =sprintf('<li><i class="fa %1$s"></i> %2$s</li>', $this->icon_a, do_shortcode( Helper::fix_shortcodes($content)));
7
 
8
  public static $args;
9
  private $id;
10
+ private $icon_a;
11
+ private $css_style;
12
 
13
  /**
14
  * Initiate the shortcode
35
  'item_border' =>'no',
36
  'item_size' =>'12px',
37
  'class' =>'',
38
+ 'icon_a' =>'',
39
  'icon_color_a' =>'',
40
  'icon_boxed_a' =>'no',
41
+ 'background_color_a' =>'',
42
+ 'boxed_shape_a' =>'circle',
43
  'is_preview' => ''
44
  ), $args
45
  );
122
  $uniqid_li = Utils::rand_str('li-');
123
  $css_style = '';
124
 
125
+ if( '' == $content) return '';
126
+
127
  if( isset($this->icon_a) && $this->icon_a !== '' ):
128
  if( stristr($this->icon_a, 'fa-')):
129
  $html =sprintf('<li><i class="fa %1$s"></i> %2$s</li>', $this->icon_a, do_shortcode( Helper::fix_shortcodes($content)));
shortcodes/class-pricing.php CHANGED
@@ -228,7 +228,7 @@ class Magee_Pricing {
228
  );
229
 
230
  extract( $defaults );
231
-
232
  $html = '<li>'.do_shortcode( Helper::fix_shortcodes($content)).'</li>';
233
  return $html;
234
  }
228
  );
229
 
230
  extract( $defaults );
231
+ if( '' == $content) return '';
232
  $html = '<li>'.do_shortcode( Helper::fix_shortcodes($content)).'</li>';
233
  return $html;
234
  }
shortcodes/class-process_steps.php CHANGED
@@ -69,7 +69,8 @@ class Magee_ProcessSteps {
69
  'title' =>'',
70
  ), $args
71
  );
72
-
 
73
  extract( $defaults );
74
  self::$args = $defaults;
75
  $columns = $this->columns;
69
  'title' =>'',
70
  ), $args
71
  );
72
+ if( '' == $content) return '';
73
+
74
  extract( $defaults );
75
  self::$args = $defaults;
76
  $columns = $this->columns;
shortcodes/class-tabs.php CHANGED
@@ -125,6 +125,8 @@ class Magee_Tabs {
125
  ), $args
126
  );
127
 
 
 
128
  extract( $defaults );
129
  self::$args = $defaults;
130
  $itemId = ' '.$this->id."-".$this->num;
125
  ), $args
126
  );
127
 
128
+ if( '' == $content) return '';
129
+
130
  extract( $defaults );
131
  self::$args = $defaults;
132
  $itemId = ' '.$this->id."-".$this->num;
shortcodes/class-timeline.php CHANGED
@@ -64,7 +64,7 @@ class Magee_Timeline {
64
  'title' =>'',
65
  ), $args
66
  );
67
-
68
  extract( $defaults );
69
  self::$args = $defaults;
70
  $columns = absint($this->columns);
64
  'title' =>'',
65
  ), $args
66
  );
67
+ if( '' == $content) return '';
68
  extract( $defaults );
69
  self::$args = $defaults;
70
  $columns = absint($this->columns);