Magee Shortcodes - Version 1.6.3

Version Description

  • 25/04/2018 =
  • Fix - Fixed shortcode - modal issue
Download this release

Release Info

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

Code changes from version 1.6.2 to 1.6.3

Magee.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: Magee Shortcodes
4
- Plugin URI: http://www.mageewp.com/magee-shortcode.html
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: 1.6.2
7
- Author: MageeWP
8
- Author URI: http://www.mageewp.com
9
  Text Domain: magee-shortcodes
10
  Domain Path: /languages
11
  License: GPLv2 or later
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) return;
14
  if(!class_exists('Magee_Core') && !defined( 'MAGEE_SHORTCODE_LIB_DIR') ):
15
  define( 'MAGEE_SHORTCODES_PATH', __FILE__ );
16
  define( 'MAGEE_SHORTCODES_DIR_PATH', plugin_dir_path( __FILE__ ));
17
- define( 'MAGEE_SHORTCODES_VER', '1.6.0' );
18
 
19
  require_once 'inc/core.php';
20
  //require_once 'inc/options.php';
1
  <?php
2
  /*
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: 1.6.3
7
+ Author: Hoosoft
8
+ Author URI: http://www.hoosoft.com
9
  Text Domain: magee-shortcodes
10
  Domain Path: /languages
11
  License: GPLv2 or later
14
  if(!class_exists('Magee_Core') && !defined( 'MAGEE_SHORTCODE_LIB_DIR') ):
15
  define( 'MAGEE_SHORTCODES_PATH', __FILE__ );
16
  define( 'MAGEE_SHORTCODES_DIR_PATH', plugin_dir_path( __FILE__ ));
17
+ define( 'MAGEE_SHORTCODES_VER', '1.6.3' );
18
 
19
  require_once 'inc/core.php';
20
  //require_once 'inc/options.php';
assets/js/admin.js CHANGED
@@ -7,7 +7,7 @@ $('.magee_shortcodes,.magee_shortcodes_textarea').click(function(){
7
  popup = params.identifier;
8
  }
9
 
10
- var magee = "Magee Shortcodes<span class='shortcode_show_name'></span><a class='link-doc' target='_blank' href='https://www.mageewp.com/magee-shortcode-guide.html'>Document</a><a class='link-forum' target='_blank' href='https://www.mageewp.com/forums/magee-shortcode/'>Forums</a><a class='link-pro' target='_blank' href='https://www.mageewp.com/magee-shortcode.html'>Pro Version</a>";
11
  // load thickbox
12
  var height = $(window).height()-150;
13
  tb_show(magee, ajaxurl + "?action=magee_shortcodes_popup&popup=" + popup + "&width=800&height="+height);
@@ -489,12 +489,14 @@ $(document).on("click",'.magee-shortcodes-preview',function(e){
489
  }
490
 
491
  //modal
 
 
492
  if($("#magee-sc-form-preview").contents().find(".magee-modal-trigger").length>0){
493
 
494
  obj = $("#magee-sc-form-preview").contents().find(".magee-modal-trigger");
495
  obj.mgmodal({
496
  title: obj.data('title'),
497
- message : obj.data('content'),
498
  close_icon:obj.data('close_icon'),
499
  type:obj.data('effect'),
500
  id:obj.data('id')
7
  popup = params.identifier;
8
  }
9
 
10
+ var magee = "Magee Shortcodes<span class='shortcode_show_name'></span><a class='link-doc' target='_blank' href='https://www.hoosoft.com/magee-shortcode-guide.html'>Document</a><a class='link-forum' target='_blank' href='https://www.hoosoft.com/forums/magee-shortcode/'>Forums</a><a class='link-pro' target='_blank' href='https://www.hoosoft.com/magee-shortcode.html'>Pro Version</a>";
11
  // load thickbox
12
  var height = $(window).height()-150;
13
  tb_show(magee, ajaxurl + "?action=magee_shortcodes_popup&popup=" + popup + "&width=800&height="+height);
489
  }
490
 
491
  //modal
492
+
493
+ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9+/=]/g,"");while(f<e.length){s=this._keyStr.indexOf(e.charAt(f++));o=this._keyStr.indexOf(e.charAt(f++));u=this._keyStr.indexOf(e.charAt(f++));a=this._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/rn/g,"n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r)}else if(r>127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}return t},_utf8_decode:function(e){var t="";var n=0;var r=c1=c2=0;while(n<e.length){r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r);n++}else if(r>191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}return t}}
494
  if($("#magee-sc-form-preview").contents().find(".magee-modal-trigger").length>0){
495
 
496
  obj = $("#magee-sc-form-preview").contents().find(".magee-modal-trigger");
497
  obj.mgmodal({
498
  title: obj.data('title'),
499
+ message :Base64.decode(obj.data('content')),
500
  close_icon:obj.data('close_icon'),
501
  type:obj.data('effect'),
502
  id:obj.data('id')
assets/js/magee-shortcodes.js CHANGED
@@ -516,11 +516,12 @@ jQuery(document).ready(function($) {
516
  });
517
  });
518
  //modal
 
519
  jQuery(".magee-modal-trigger").each(function() {
520
  obj = jQuery(this);
521
  obj.mgmodal({
522
  title: obj.data('title'),
523
- message : obj.data('content'),
524
  close_icon:obj.data('close_icon'),
525
  type:obj.data('effect'),
526
  id:obj.data('id')
516
  });
517
  });
518
  //modal
519
+ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9+/=]/g,"");while(f<e.length){s=this._keyStr.indexOf(e.charAt(f++));o=this._keyStr.indexOf(e.charAt(f++));u=this._keyStr.indexOf(e.charAt(f++));a=this._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/rn/g,"n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r)}else if(r>127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}return t},_utf8_decode:function(e){var t="";var n=0;var r=c1=c2=0;while(n<e.length){r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r);n++}else if(r>191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}return t}}
520
  jQuery(".magee-modal-trigger").each(function() {
521
  obj = jQuery(this);
522
  obj.mgmodal({
523
  title: obj.data('title'),
524
+ message : Base64.decode(obj.data('content')),
525
  close_icon:obj.data('close_icon'),
526
  type:obj.data('effect'),
527
  id:obj.data('id')
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Magee Shortcodes ===
2
- Contributors: magictheme
3
- Donate link: http://www.mageewp.com/
4
  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
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
- Stable tag: 4.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -30,9 +30,8 @@ Magee Shortcodes is WordPress plugin that provides a pack of shortcodes. It is b
30
 
31
  ### Relevant Links
32
 
33
- * [Examples](https://demo.mageewp.com/magee-shortcodes-demo/)
34
- * [Beginner Guide](http://www.mageewp.com/magee-shortcode-guide.html)
35
- * [Tech Support](http://www.mageewp.com/forums/magee-shortcode/)
36
 
37
 
38
  ### Shortcode List
@@ -51,7 +50,7 @@ Activate plugin at "Plugins" administration page.
51
 
52
  == Frequently Asked Questions ==
53
 
54
- * [Tech Support](https://www.mageewp.com/forums/magee-shortcode/)
55
 
56
 
57
  == Screenshots ==
@@ -68,6 +67,9 @@ Activate plugin at "Plugins" administration page.
68
 
69
  == Changelog ==
70
 
 
 
 
71
  = 1.6.2 - 03/23/2018 =
72
  * Fix - Fixed menu shortcode issue
73
 
1
  === Magee Shortcodes ===
2
+ Contributors: hoosoft
3
+ Donate link: http://www.hoosoft.com/
4
  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
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
+ Stable tag: 1.6.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
30
 
31
  ### Relevant Links
32
 
33
+ * [Examples](hhttps://www.hoosoft.com/plugins/magee-shortcodes/)
34
+ * [Beginner Guide](https://www.hoosoft.com/plugins/magee-shortcodes/accordion-shortcode/)
 
35
 
36
 
37
  ### Shortcode List
50
 
51
  == Frequently Asked Questions ==
52
 
53
+ * [Tech Support](https://www.hoosoft.com/plugins/magee-shortcodes/)
54
 
55
 
56
  == Screenshots ==
67
 
68
  == Changelog ==
69
 
70
+ = 1.6.3 - 25/04/2018 =
71
+ * Fix - Fixed shortcode - modal issue
72
+
73
  = 1.6.2 - 03/23/2018 =
74
  * Fix - Fixed menu shortcode issue
75
 
shortcodes/class-modal.php CHANGED
@@ -73,7 +73,7 @@ class Magee_Modal {
73
  $html .='</style>';
74
  do_shortcode( Magee_Core::fix_shortcodes($content));
75
 
76
- $html .= sprintf('<div id="%s" class="magee-modal-trigger %s" data-id="%s" data-title="%s" data-content="%s" data-effect="%s" data-close_icon="%s">%s</div>',$id,$class,$uniqid,$title,do_shortcode( Magee_Core::fix_shortcodes($this->modal_content)),$effect,$close_icon,do_shortcode( Magee_Core::fix_shortcodes($this->modal_anchor_text)));
77
 
78
  return $html;
79
  }
73
  $html .='</style>';
74
  do_shortcode( Magee_Core::fix_shortcodes($content));
75
 
76
+ $html .= sprintf('<div id="%s" class="magee-modal-trigger %s" data-id="%s" data-title="%s" data-content="%s" data-effect="%s" data-close_icon="%s">%s</div>',$id,$class,$uniqid,$title,base64_encode(do_shortcode( Magee_Core::fix_shortcodes($this->modal_content))), $effect,$close_icon,do_shortcode( Magee_Core::fix_shortcodes($this->modal_anchor_text)));
77
 
78
  return $html;
79
  }