Plugin Directory

Changeset 2414443


Ignore:
Timestamp:
11/07/2020 12:56:56 PM (5 years ago)
Author:
galleryape
Message:

2.2.1 Version - fixed images empty placeholders for gallery media resources, optimization and fixes for the latest wordpress version and gutenberg editor

Location:
gallery-images-ape
Files:
449 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • gallery-images-ape/trunk/index.php

    r2412711 r2414443  
    55Plugin URI: https://wpape.net/gallery-wordpress
    66Description: Gallery Images Ape - image gallery grid with lightbox gallery and video gallery modes. Easy to use as photo gallery for portfolios
    7 Version: 2.0.15
     7Version: 2.2.1
    88Author: galleryape
    99Author URI: https://wpape.net/#demos
     
    1919define("WPAPE_GALLERY_DEBUG", 0);
    2020
    21 define("WPAPE_GALLERY_VERSION", '2.0.15');
    22 define("WPAPE_GALLERY_OPTIONS_VERSION", '2.0.15');
     21define("WPAPE_GALLERY_VERSION", '2.2.1');
     22define("WPAPE_GALLERY_OPTIONS_VERSION", '2.2.1');
    2323
    2424define("WPAPE_GALLERY_PATH", plugin_dir_path( __FILE__ ));
  • gallery-images-ape/trunk/modules/fields/asset/fields/gallery/script.min.js

    r2252418 r2414443  
    55 * License:             GPL-2.0+
    66 */
    7 !function(e){function t(e){var t=jQuery(o),l={action:"wpape_gallery_get_images_from_ids",idstring:e};jQuery.post(ajaxurl,l,function(e){t.html(e);var l=t.find("img").length;if(l<=10)t.addClass("items10");else if(l<=20)t.addClass("items20");else if(l<=30)t.addClass("items30");else t.addClass("items50")})}var l,a,i,n,r="gallery-library",o=document.getElementById("ape_gallery_images_preview"),s=document.getElementsByClassName("wpapeGalleryFieldImagesButton");if(0!=s.length){s=s[0];i=document.getElementById(s.getAttribute("data-id"));t(a=i.value);n=""==a?[]:a.split(",");o.addEventListener("click",function(e){e.preventDefault();if(e.target.matches("img"))s.click()});var d=function(e){if(!l){if(n.length>0)r="gallery-edit";(l=new wp.media.view.emWpGallery({multiple:!0,state:r,library:{order:"ASC",orderby:"title",type:"image",search:null,uploadedTo:null,multiple:!0}})).on("ready",function(){if(0!=n.length){var e=l.state().get("library");wp.media.query({post__in:n}).more().then();n.forEach(function(t){var l=wp.media.attachment(t);if(void 0!=jQuery)l=jQuery.extend(!0,wp.media.attachment(t),{attributes:{sizes:{medium:{url:apeGalleryFieldGallery.iconUrl}}}});e.add(l)})}});l.on("open",function(){if(0!=n.length&&"gallery-edit"!=r){l.setState("gallery-edit");l.options.state="gallery-edit";r="gallery-edit"}});l.on("insert",function(){var e=l.state().get("selection");console.log(e)});l.on("update",function(e){var r,o=l.state();if(r=e||o.get("selection")){var s=r.toJSON();if(0!=s.length){n=[];for(var d=0;d<s.length;d++)n.push(s[d].id);a=n.join(",");console.log("idsList",a);t(a);i.value=a;console.log("gallery array",n)}}else console.log("return selection")});l.open()}else l.open()};s.addEventListener("click",d)}else console.log("button not found ")}(jQuery);
     7!function(e){function t(e){var t=jQuery(r),a={action:"wpape_gallery_get_images_from_ids",idstring:e};jQuery.post(ajaxurl,a,function(e){t.html(e);var a=t.find("img").length;if(a<=10)t.addClass("items10");else if(a<=20)t.addClass("items20");else if(a<=30)t.addClass("items30");else t.addClass("items50")})}var a,l,i,n,o="gallery-library",r=document.getElementById("ape_gallery_images_preview"),s=document.getElementsByClassName("wpapeGalleryFieldImagesButton");if(0!=s.length){s=s[0];i=document.getElementById(s.getAttribute("data-id"));t(l=i.value);n=""==l?[]:l.split(",");r.addEventListener("click",function(e){e.preventDefault();if(e.target.matches("img"))s.click()});var d=function(e){if(!a){if(n.length>0)o="gallery-edit";(a=new wp.media.view.emWpGallery({multiple:!0,state:o,library:{order:"ASC",orderby:"title",type:"image",search:null,uploadedTo:null,multiple:!0}})).on("ready",function(){if(0!=n.length){var e=a.state().get("library");wp.media.query({post__in:n}).more().then();n.forEach(function(t){attachment=wp.media.attachment(t);if(void 0!=attachment.attributes)attachment.attributes.sizes={medium:{url:apeGalleryFieldGallery.iconUrl}};attachment.fetch();e.add(attachment?[attachment]:[])})}});a.on("open",function(){if(0!=n.length&&"gallery-edit"!=o){a.setState("gallery-edit");a.options.state="gallery-edit";o="gallery-edit"}});a.on("insert",function(){var e=a.state().get("selection");console.log(e)});a.on("update",function(e){var o,r=a.state();if(o=e||r.get("selection")){var s=o.toJSON();if(0!=s.length){n=[];for(var d=0;d<s.length;d++)n.push(s[d].id);l=n.join(",");console.log("idsList",l);t(l);i.value=l;console.log("gallery array",n)}}else console.log("return selection")});a.open()}else a.open()};s.addEventListener("click",d)}else console.log("button not found ")}(jQuery);
  • gallery-images-ape/trunk/modules/fields/config/metabox/image.php

    r2040935 r2414443  
    1212    'settings' => array(
    1313        'id' => 'wpape_gallery_field_images_ver2',
    14         'title' => '<span class="dashicons dashicons-format-gallery"></span> '.__('Images', 'gallery-images-ape'),
     14        'title' => __('Images', 'gallery-images-ape'),
    1515        'screen' => array( WPAPE_GALLERY_POST ),
    1616        'context' => 'normal',
  • gallery-images-ape/trunk/modules/fields/config/metabox/update_notice.php

    r2042990 r2414443  
    1515    'settings' => array(
    1616        'id' => 'wpape_gallery_update_notice',
    17         'title' => '<span class="dashicons dashicons-warning"></span> '.__('Update license key file', 'gallery-images-ape'),
     17        'title' => __('Update license key file', 'gallery-images-ape'),
    1818        'screen' => array( WPAPE_GALLERY_POST, WPAPE_GALLERY_THEME_POST ),
    1919        'context' => 'normal',
  • gallery-images-ape/trunk/readme.txt

    r2412711 r2414443  
    55Requires at least: 3.3
    66Tested up to: 5.5
    7 Stable tag: 2.0.15
     7Stable tag: 2.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    255255== Changelog ==
    256256
     257= 2.2.1 Version =
     258*   Fixed images empty placeholders for gallery media resources
     259*   Optimization and fixes for the latest wordpress version and gutenberg editor
     260
    257261= 2.0.15 Version =
    258262*   Optimization of the settings for the compatibility with themes.
Note: See TracChangeset for help on using the changeset viewer.