Version Description
Download this release
Release Info
Developer | pasyuk |
Plugin | Gmedia Photo Gallery |
Version | 1.13.4 |
Comparing to | |
See all releases |
Code changes from version 1.13.2 to 1.13.4
- admin/assets/js/gmedia.metabox.js +2 -2
- grand-media.php +2 -2
- inc/frontend.filters.php +16 -2
- inc/post-metabox.php +1 -1
- module/phantom/index.php +1 -1
- module/phantom/js/jquery.gmPhantom.js +14 -11
- readme.txt +8 -0
admin/assets/js/gmedia.metabox.js
CHANGED
@@ -122,11 +122,11 @@ function gmedia_post_modal(el) {
|
|
122 |
modal.css('display', 'none');
|
123 |
});
|
124 |
modal.find('.media-menu-item').on('click', function () {
|
125 |
-
jQuery('iframe', modal).attr('src', '');
|
126 |
jQuery(this).addClass('active').siblings('a').removeClass('active');
|
127 |
jQuery('.media-frame-title h1', modal).text(jQuery(this).text());
|
128 |
});
|
129 |
-
jQuery(
|
130 |
}
|
131 |
}
|
132 |
|
122 |
modal.css('display', 'none');
|
123 |
});
|
124 |
modal.find('.media-menu-item').on('click', function () {
|
125 |
+
jQuery('iframe', modal).attr('src', jQuery(this).attr('href'));
|
126 |
jQuery(this).addClass('active').siblings('a').removeClass('active');
|
127 |
jQuery('.media-frame-title h1', modal).text(jQuery(this).text());
|
128 |
});
|
129 |
+
jQuery('body').append(modal);
|
130 |
}
|
131 |
}
|
132 |
|
grand-media.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Gmedia Gallery
|
4 |
* Plugin URI: http://wordpress.org/extend/plugins/grand-media/
|
5 |
* Description: Gmedia Gallery - powerful media library plugin for creating beautiful galleries and managing files.
|
6 |
-
* Version: 1.13.
|
7 |
* Author: Rattus
|
8 |
* Author URI: https://codeasily.com/
|
9 |
* Requires at least: 3.7
|
@@ -42,7 +42,7 @@ if( !class_exists('Gmedia')){
|
|
42 |
*/
|
43 |
class Gmedia {
|
44 |
|
45 |
-
var $version = '1.13.
|
46 |
var $dbversion = '1.8.0';
|
47 |
var $minium_WP = '3.7';
|
48 |
var $options = '';
|
3 |
* Plugin Name: Gmedia Gallery
|
4 |
* Plugin URI: http://wordpress.org/extend/plugins/grand-media/
|
5 |
* Description: Gmedia Gallery - powerful media library plugin for creating beautiful galleries and managing files.
|
6 |
+
* Version: 1.13.4
|
7 |
* Author: Rattus
|
8 |
* Author URI: https://codeasily.com/
|
9 |
* Requires at least: 3.7
|
42 |
*/
|
43 |
class Gmedia {
|
44 |
|
45 |
+
var $version = '1.13.4';
|
46 |
var $dbversion = '1.8.0';
|
47 |
var $minium_WP = '3.7';
|
48 |
var $options = '';
|
inc/frontend.filters.php
CHANGED
@@ -16,6 +16,8 @@ if((int) $gmGallery->options['wp_term_related_gmedia']){
|
|
16 |
}
|
17 |
add_action('the_post', 'gmedia_the_post'); // Show Gmedia post types
|
18 |
|
|
|
|
|
19 |
/**
|
20 |
* Generate og:image meta tag
|
21 |
*/
|
@@ -109,7 +111,7 @@ function gmedia_alter_query($query){
|
|
109 |
|
110 |
/** Show gmedia posts on author profile page
|
111 |
*
|
112 |
-
* @param $query
|
113 |
*/
|
114 |
function gmedia_alter_query_author($query){
|
115 |
if(empty($query->query['author']) && empty($query->query['author_name'])){
|
@@ -136,7 +138,11 @@ function gmedia_alter_query_author($query){
|
|
136 |
$post_type = array_unique(array_merge($gmedia_post_type, (array) $post_type));
|
137 |
$query->set('post_type', $post_type);
|
138 |
|
139 |
-
|
|
|
|
|
|
|
|
|
140 |
remove_all_actions('__after_loop');
|
141 |
}
|
142 |
|
@@ -870,4 +876,12 @@ function gmedia_related__the_content($content){
|
|
870 |
$content .= apply_filters('after_gmedia_related__the_content', '');
|
871 |
|
872 |
return $content;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
873 |
}
|
16 |
}
|
17 |
add_action('the_post', 'gmedia_the_post'); // Show Gmedia post types
|
18 |
|
19 |
+
add_filter( 'widget_comments_args', 'gmedia_widget_comments_args', 10 );
|
20 |
+
|
21 |
/**
|
22 |
* Generate og:image meta tag
|
23 |
*/
|
111 |
|
112 |
/** Show gmedia posts on author profile page
|
113 |
*
|
114 |
+
* @param WP_Query $query
|
115 |
*/
|
116 |
function gmedia_alter_query_author($query){
|
117 |
if(empty($query->query['author']) && empty($query->query['author_name'])){
|
138 |
$post_type = array_unique(array_merge($gmedia_post_type, (array) $post_type));
|
139 |
$query->set('post_type', $post_type);
|
140 |
|
141 |
+
if(get_current_user_id()){
|
142 |
+
$query->set('post_status', array('publish', 'private'));
|
143 |
+
}
|
144 |
+
|
145 |
+
//we remove the actions hooked on the '__after_loop' (post navigation)
|
146 |
remove_all_actions('__after_loop');
|
147 |
}
|
148 |
|
876 |
$content .= apply_filters('after_gmedia_related__the_content', '');
|
877 |
|
878 |
return $content;
|
879 |
+
}
|
880 |
+
|
881 |
+
function gmedia_widget_comments_args($args){
|
882 |
+
if(get_current_user_id()){
|
883 |
+
$args['post_status'] = array('publish', 'private');
|
884 |
+
}
|
885 |
+
|
886 |
+
return $args;
|
887 |
}
|
inc/post-metabox.php
CHANGED
@@ -55,7 +55,7 @@ function gmedia_meta_box_load_scripts($hook){
|
|
55 |
//wp_enqueue_style('wp-jquery-ui-dialog');
|
56 |
wp_enqueue_style('gmedia-meta-box', plugins_url(GMEDIA_FOLDER) . '/admin/assets/css/gmedia.metabox.css', array(), '1.0.0');
|
57 |
//wp_enqueue_script('gmedia-meta-box', plugins_url(GMEDIA_FOLDER) . '/admin/assets/js/gmedia.metabox.js', array('jquery','jquery-ui-dialog','gmedia-global-backend'), '1.4.2', true);
|
58 |
-
wp_enqueue_script('gmedia-meta-box', plugins_url(GMEDIA_FOLDER) . '/admin/assets/js/gmedia.metabox.js', array('jquery', 'gmedia-global-backend'), '1.4.
|
59 |
}
|
60 |
}
|
61 |
|
55 |
//wp_enqueue_style('wp-jquery-ui-dialog');
|
56 |
wp_enqueue_style('gmedia-meta-box', plugins_url(GMEDIA_FOLDER) . '/admin/assets/css/gmedia.metabox.css', array(), '1.0.0');
|
57 |
//wp_enqueue_script('gmedia-meta-box', plugins_url(GMEDIA_FOLDER) . '/admin/assets/js/gmedia.metabox.js', array('jquery','jquery-ui-dialog','gmedia-global-backend'), '1.4.2', true);
|
58 |
+
wp_enqueue_script('gmedia-meta-box', plugins_url(GMEDIA_FOLDER) . '/admin/assets/js/gmedia.metabox.js', array('jquery', 'gmedia-global-backend'), '1.4.3', true);
|
59 |
}
|
60 |
}
|
61 |
|
module/phantom/index.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
$module_info = array('base' => 'phantom',
|
3 |
'name' => 'phantom',
|
4 |
'title' => 'Phantom',
|
5 |
-
'version' => '3.
|
6 |
'author' => 'CodEasily.com',
|
7 |
'description' => __('This module will help you to easily add a grid gallery to your WordPress website or blog. The gallery is completely customizable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones).
|
8 |
|
2 |
$module_info = array('base' => 'phantom',
|
3 |
'name' => 'phantom',
|
4 |
'title' => 'Phantom',
|
5 |
+
'version' => '3.19',
|
6 |
'author' => 'CodEasily.com',
|
7 |
'description' => __('This module will help you to easily add a grid gallery to your WordPress website or blog. The gallery is completely customizable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones).
|
8 |
|
module/phantom/js/jquery.gmPhantom.js
CHANGED
@@ -804,23 +804,26 @@ if(typeof jQuery.fn.gmPhantom == 'undefined') {
|
|
804 |
e.stopPropagation();
|
805 |
});
|
806 |
|
807 |
-
$('.gmPhantom_ThumbLoader .gmPhantom_Thumb img', Container).css({opacity: 0})
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
load_img.onload = function() {
|
813 |
-
img_holder.removeClass('gmPhantom_ThumbLoader');
|
814 |
if(prototypes.isIEBrowser()) {
|
815 |
-
image.parent().css('background-image', 'url("'+src+'")')
|
816 |
} else{
|
817 |
image.animate({opacity: opt.thumbAlpha / 100}, 600, function() {
|
818 |
$(this).css({opacity: ''});
|
819 |
});
|
820 |
}
|
821 |
-
}
|
822 |
-
|
823 |
-
|
|
|
|
|
|
|
|
|
|
|
824 |
|
825 |
if(opt.maxheight !== 0) {
|
826 |
if(prototypes.isTouchDevice()) {
|
804 |
e.stopPropagation();
|
805 |
});
|
806 |
|
807 |
+
$('.gmPhantom_ThumbLoader .gmPhantom_Thumb img', Container).css({opacity: 0});
|
808 |
+
setTimeout(function(){
|
809 |
+
$('.gmPhantom_ThumbLoader .gmPhantom_Thumb img', Container).on('load', function() {
|
810 |
+
var image = $(this);
|
811 |
+
image.closest('.gmPhantom_ThumbContainer').removeClass('gmPhantom_ThumbLoader');
|
|
|
|
|
812 |
if(prototypes.isIEBrowser()) {
|
813 |
+
image.parent().css('background-image', 'url("' + image.attr('src') + '")')
|
814 |
} else{
|
815 |
image.animate({opacity: opt.thumbAlpha / 100}, 600, function() {
|
816 |
$(this).css({opacity: ''});
|
817 |
});
|
818 |
}
|
819 |
+
}).on('error', function() {}).each(function() {
|
820 |
+
if(this.complete) {
|
821 |
+
$(this).load();
|
822 |
+
} else if(this.error) {
|
823 |
+
$(this).error();
|
824 |
+
}
|
825 |
+
});
|
826 |
+
},0);
|
827 |
|
828 |
if(opt.maxheight !== 0) {
|
829 |
if(prototypes.isTouchDevice()) {
|
readme.txt
CHANGED
@@ -26,6 +26,7 @@ Handle any file format and link any files with images in few clicks. You can imp
|
|
26 |
|
27 |
#### Demos:
|
28 |
|
|
|
29 |
* [AlbumsList Masonry](https://codeasily.com/portfolio/gmedia-gallery-modules/albumslist-masonry/) - Splash Slider with custom lightbox and masonry collection view.
|
30 |
* [AlbumsList](https://codeasily.com/portfolio/gmedia-gallery-modules/albumslist/) - Splash Slider with custom lightbox.
|
31 |
* [WoowSlider](https://codeasily.com/portfolio/gmedia-gallery-modules/woowslider/) - unique responsive Slider.
|
@@ -142,6 +143,13 @@ Use [Gmedia Support Forum](https://codeasily.com/community/forum/gmedia-gallery-
|
|
142 |
= Modules Updated =
|
143 |
* Go to Gmedia Modules page and update installed premium modules to latest versions
|
144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
= v1.13.2 =
|
146 |
* Fix issue with ajax modules
|
147 |
|
26 |
|
27 |
#### Demos:
|
28 |
|
29 |
+
* [PhotoBlog Style Gallery](https://codeasily.com/portfolio/gmedia-gallery-modules/photoblog/) - Pinterest style gallery with global search and photo proofing.
|
30 |
* [AlbumsList Masonry](https://codeasily.com/portfolio/gmedia-gallery-modules/albumslist-masonry/) - Splash Slider with custom lightbox and masonry collection view.
|
31 |
* [AlbumsList](https://codeasily.com/portfolio/gmedia-gallery-modules/albumslist/) - Splash Slider with custom lightbox.
|
32 |
* [WoowSlider](https://codeasily.com/portfolio/gmedia-gallery-modules/woowslider/) - unique responsive Slider.
|
143 |
= Modules Updated =
|
144 |
* Go to Gmedia Modules page and update installed premium modules to latest versions
|
145 |
|
146 |
+
= v1.13.4 =
|
147 |
+
* Fixed insert shortcode popup not load content in some cases
|
148 |
+
|
149 |
+
= v1.13.3 =
|
150 |
+
* Fixed recent comments widget not show comments from private gmedia for logged in users
|
151 |
+
* Fixed issue with Phantom module on Safari
|
152 |
+
|
153 |
= v1.13.2 =
|
154 |
* Fix issue with ajax modules
|
155 |
|