Photo Gallery by Envira – Responsive Image Gallery for WordPress - Version 1.1.9

Version Description

  • Added: Minified editor JS
Download this release

Release Info

Developer n7studios
Plugin Icon 128x128 Photo Gallery by Envira – Responsive Image Gallery for WordPress
Version 1.1.9
Comparing to
See all releases

Code changes from version 1.1.8 to 1.1.9

assets/js/min/editor-min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function($){$(function(){var e=envira_editor_frame=!1,a=function(a){a.preventDefault(),$(".envira-gallery-default-ui .selected").removeClass("details selected"),$(".envira-gallery-default-ui").appendTo(".envira-gallery-default-ui-wrapper").hide(),e=envira_editor_frame=!1};$(document).on("click",".envira-gallery-choose-gallery, .envira-gallery-modal-trigger",function(l){l.preventDefault(),e=l.target,envira_editor_frame=!0,$(".envira-gallery-default-ui").appendTo("body").show(),$(document).on("click",".media-modal-close, .media-modal-backdrop, .envira-gallery-cancel-insertion",a),$(document).on("keydown",function(e){27==e.keyCode&&envira_editor_frame&&a(e)})}),$(document).on("click",".envira-gallery-default-ui .thumbnail, .envira-gallery-default-ui .check, .envira-gallery-default-ui .media-modal-icon",function(e){e.preventDefault(),$(this).parent().parent().hasClass("selected")?($(this).parent().parent().removeClass("details selected"),$(".envira-gallery-insert-gallery").attr("disabled","disabled")):($(this).parent().parent().parent().find(".selected").removeClass("details selected"),$(this).parent().parent().addClass("details selected"),$(".envira-gallery-insert-gallery").removeAttr("disabled"))}),$(document).on("click",".envira-gallery-default-ui .check",function(e){e.preventDefault(),$(this).parent().parent().removeClass("details selected"),$(".envira-gallery-insert-gallery").attr("disabled","disabled")}),$(document).on("click",".envira-gallery-default-ui .envira-gallery-insert-gallery",function(l){if(l.preventDefault(),$(e).hasClass("envira-gallery-choose-gallery"))wp.media.editor.insert('[envira-gallery id="'+$(".envira-gallery-default-ui .selected").data("envira-gallery-id")+'"]');else{var r={action:"envira_gallery_load_gallery_data",id:$(".envira-gallery-default-ui:first .selected").data("envira-gallery-id")};$.post(ajaxurl,r,function(e){$(document).trigger({type:"enviraGalleryModalData",gallery:e}),a(l)},"json")}a(l)})})}(jQuery);
envira-gallery-lite.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
  * Author URI: http://thomasgriffinmedia.com
8
- * Version: 1.1.8
9
  * Text Domain: envira-gallery
10
  * Domain Path: languages
11
  *
@@ -54,7 +54,7 @@ class Envira_Gallery_Lite {
54
  *
55
  * @var string
56
  */
57
- public $version = '1.1.8';
58
 
59
  /**
60
  * The name of the plugin.
5
  * Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
  * Author URI: http://thomasgriffinmedia.com
8
+ * Version: 1.1.9
9
  * Text Domain: envira-gallery
10
  * Domain Path: languages
11
  *
54
  *
55
  * @var string
56
  */
57
+ public $version = '1.1.9';
58
 
59
  /**
60
  * The name of the plugin.
includes/admin/editor.php CHANGED
@@ -75,7 +75,7 @@ class Envira_Gallery_Editor_Lite {
75
  $button .= '<a id="envira-media-modal-button" href="#" class="button envira-gallery-choose-gallery" title="' . esc_attr__( 'Add Gallery', 'envira-gallery' ) . '" style="padding-left: .4em;"><span class="envira-media-icon" style="background: transparent url(' . plugins_url( 'assets/css/images/menu-icon.png', $this->base->file ) . ') no-repeat scroll 0 0; width: 16px; height: 16px; display: inline-block; vertical-align: text-top;"></span> ' . __( 'Add Gallery', 'envira-gallery' ) . '</a>';
76
 
77
  // Enqueue the script that will trigger the editor button.
78
- wp_enqueue_script( $this->base->plugin_slug . '-editor-script', plugins_url( 'assets/js/editor.js', $this->base->file ), array( 'jquery' ), $this->base->version, true );
79
 
80
  // Add the action to the footer to output the modal window.
81
  add_action( 'admin_footer', array( $this, 'gallery_selection_modal' ) );
75
  $button .= '<a id="envira-media-modal-button" href="#" class="button envira-gallery-choose-gallery" title="' . esc_attr__( 'Add Gallery', 'envira-gallery' ) . '" style="padding-left: .4em;"><span class="envira-media-icon" style="background: transparent url(' . plugins_url( 'assets/css/images/menu-icon.png', $this->base->file ) . ') no-repeat scroll 0 0; width: 16px; height: 16px; display: inline-block; vertical-align: text-top;"></span> ' . __( 'Add Gallery', 'envira-gallery' ) . '</a>';
76
 
77
  // Enqueue the script that will trigger the editor button.
78
+ wp_enqueue_script( $this->base->plugin_slug . '-editor-script', plugins_url( 'assets/js/min/editor-min.js', $this->base->file ), array( 'jquery' ), $this->base->version, true );
79
 
80
  // Add the action to the footer to output the modal window.
81
  add_action( 'admin_footer', array( $this, 'gallery_selection_modal' ) );
readme.txt CHANGED
@@ -57,6 +57,9 @@ Also, I'm an <a href="https://thomasgriffin.io" rel="me" title="WordPress Develo
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 1.1.8 =
61
  * Added: CSS minification for Administration CSS
62
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.1.9 =
61
+ * Added: Minified editor JS
62
+
63
  = 1.1.8 =
64
  * Added: CSS minification for Administration CSS
65