Version Description
- 08.02.2019 =
- Bugfix : The bug with the rename post type 'gallery' to the 'bws-gallery' has been fixed.
- Bugfix : Compatibility with WPML has been fixed.
- Update : All functionality was updated for WordPress 5.0.3.
Download this release
Release Info
Developer | bestwebsoft |
Plugin | Gallery by BestWebSoft |
Version | 4.5.9 |
Comparing to | |
See all releases |
Code changes from version 4.5.8 to 4.5.9
- gallery-plugin.php +8 -6
- includes/class-gllr-settings.php +55 -40
- readme.txt +11 -2
- screenshot-7.png +0 -0
- screenshot-8.png +0 -0
- screenshot-9.png +0 -0
gallery-plugin.php
CHANGED
@@ -6,12 +6,12 @@ Description: Add beautiful galleries, albums & images to your Wordpress website
|
|
6 |
Author: BestWebSoft
|
7 |
Text Domain: gallery-plugin
|
8 |
Domain Path: /languages
|
9 |
-
Version: 4.5.
|
10 |
Author URI: https://bestwebsoft.com/
|
11 |
License: GPLv2 or later
|
12 |
*/
|
13 |
|
14 |
-
/* © Copyright
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -42,7 +42,8 @@ if ( ! function_exists( 'add_gllr_admin_menu' ) ) {
|
|
42 |
$submenu['edit.php?post_type=' . $gllr_options['post_type_name'] ][] = array(
|
43 |
'<span style="color:#d86463"> ' . __( 'Upgrade to Pro', 'gallery-plugin' ) . '</span>',
|
44 |
'manage_options',
|
45 |
-
'https://bestwebsoft.com/products/wordpress/plugins/gallery/?k=63a36f6bf5de0726ad6a43a165f38fe5&pn=79&v=' . $gllr_plugin_info["Version"] . '&wp_v=' . $wp_version
|
|
|
46 |
}
|
47 |
|
48 |
add_action( 'load-' . $settings, 'gllr_add_tabs' );
|
@@ -976,7 +977,8 @@ if ( ! function_exists( 'gllr_single_template_content' ) ) {
|
|
976 |
'post_type' => $gllr_options['post_type_name'],
|
977 |
'post_status' => 'publish',
|
978 |
'name' => $wp_query->query_vars['name'],
|
979 |
-
'posts_per_page' => 1
|
|
|
980 |
);
|
981 |
$second_query = new WP_Query( $args );
|
982 |
|
@@ -2504,7 +2506,7 @@ if ( ! class_exists( 'Gllr_Media_Table' ) ) {
|
|
2504 |
$current_page = $this->get_pagenum();
|
2505 |
$this->_column_headers = array( $columns, $hidden, $sortable );
|
2506 |
$images_id = get_post_meta( $original_post->ID, '_gallery_images', true );
|
2507 |
-
if ( empty( $images_id
|
2508 |
$total_items = 0;
|
2509 |
} else {
|
2510 |
$total_items = $wpdb->get_var( "SELECT COUNT(*) FROM " . $wpdb->posts . " WHERE ID IN( " . $images_id . " )" );
|
@@ -2556,7 +2558,7 @@ if ( ! class_exists( 'Gllr_Media_Table' ) ) {
|
|
2556 |
global $wpdb, $post, $original_post;
|
2557 |
|
2558 |
$images_id = get_post_meta( $original_post->ID, '_gallery_images', true );
|
2559 |
-
if ( empty( $images_id
|
2560 |
$total_items = 0;
|
2561 |
} else {
|
2562 |
$total_items = $wpdb->get_var( "SELECT COUNT(*) FROM " . $wpdb->posts . " WHERE ID IN( " . $images_id . " )" );
|
6 |
Author: BestWebSoft
|
7 |
Text Domain: gallery-plugin
|
8 |
Domain Path: /languages
|
9 |
+
Version: 4.5.9
|
10 |
Author URI: https://bestwebsoft.com/
|
11 |
License: GPLv2 or later
|
12 |
*/
|
13 |
|
14 |
+
/* © Copyright 2019 BestWebSoft ( https://support.bestwebsoft.com )
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License, version 2, as
|
42 |
$submenu['edit.php?post_type=' . $gllr_options['post_type_name'] ][] = array(
|
43 |
'<span style="color:#d86463"> ' . __( 'Upgrade to Pro', 'gallery-plugin' ) . '</span>',
|
44 |
'manage_options',
|
45 |
+
'https://bestwebsoft.com/products/wordpress/plugins/gallery/?k=63a36f6bf5de0726ad6a43a165f38fe5&pn=79&v=' . $gllr_plugin_info["Version"] . '&wp_v=' . $wp_version
|
46 |
+
);
|
47 |
}
|
48 |
|
49 |
add_action( 'load-' . $settings, 'gllr_add_tabs' );
|
977 |
'post_type' => $gllr_options['post_type_name'],
|
978 |
'post_status' => 'publish',
|
979 |
'name' => $wp_query->query_vars['name'],
|
980 |
+
'posts_per_page' => 1,
|
981 |
+
'p' => $wp_query->query_vars['p']
|
982 |
);
|
983 |
$second_query = new WP_Query( $args );
|
984 |
|
2506 |
$current_page = $this->get_pagenum();
|
2507 |
$this->_column_headers = array( $columns, $hidden, $sortable );
|
2508 |
$images_id = get_post_meta( $original_post->ID, '_gallery_images', true );
|
2509 |
+
if ( empty( $images_id ) ) {
|
2510 |
$total_items = 0;
|
2511 |
} else {
|
2512 |
$total_items = $wpdb->get_var( "SELECT COUNT(*) FROM " . $wpdb->posts . " WHERE ID IN( " . $images_id . " )" );
|
2558 |
global $wpdb, $post, $original_post;
|
2559 |
|
2560 |
$images_id = get_post_meta( $original_post->ID, '_gallery_images', true );
|
2561 |
+
if ( empty( $images_id ) ) {
|
2562 |
$total_items = 0;
|
2563 |
} else {
|
2564 |
$total_items = $wpdb->get_var( "SELECT COUNT(*) FROM " . $wpdb->posts . " WHERE ID IN( " . $images_id . " )" );
|
includes/class-gllr-settings.php
CHANGED
@@ -206,9 +206,6 @@ if ( ! class_exists( 'Gllr_Settings_Tabs' ) ) {
|
|
206 |
$this->options['post_type_name'] = $this->default_options['post_type_name'];
|
207 |
}
|
208 |
|
209 |
-
if ( ! empty( $need_image_update ) )
|
210 |
-
$this->options['need_image_update'] = __( 'Custom image size was changed. You need to update gallery images.', 'gallery-plugin' );
|
211 |
-
|
212 |
if ( ! empty( $this->cstmsrch_options ) ) {
|
213 |
if ( isset( $this->cstmsrch_options['output_order'] ) ) {
|
214 |
$is_enabled = isset( $_POST['gllr_add_to_search'] ) ? 1 : 0;
|
@@ -260,7 +257,7 @@ if ( ! class_exists( 'Gllr_Settings_Tabs' ) ) {
|
|
260 |
<?php if ( ! empty( $this->options['need_image_update'] ) ) { ?>
|
261 |
<div class="updated bws-notice inline gllr_image_update_message">
|
262 |
<p>
|
263 |
-
<?php
|
264 |
<input type="button" value="<?php _e( 'Update Images', 'gallery-plugin' ); ?>" id="gllr_ajax_update_images" name="ajax_update_images" class="button" />
|
265 |
</p>
|
266 |
</div>
|
@@ -853,42 +850,43 @@ if ( ! class_exists( 'Gllr_Settings_Tabs' ) ) {
|
|
853 |
*
|
854 |
*/
|
855 |
public function tab_social() { ?>
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
|
|
892 |
|
893 |
/**
|
894 |
*
|
@@ -910,11 +908,28 @@ if ( ! class_exists( 'Gllr_Settings_Tabs' ) ) {
|
|
910 |
*/
|
911 |
public function additional_misc_options_affected() {
|
912 |
global $wp_version, $wpdb;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
913 |
if ( ! $this->all_plugins ) {
|
914 |
if ( ! function_exists( 'get_plugins' ) )
|
915 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
916 |
$this->all_plugins = get_plugins();
|
917 |
}
|
|
|
918 |
$old_post_type_gallery = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_type = 'gallery'" );
|
919 |
|
920 |
if ( ! empty( $old_post_type_gallery ) ) { ?>
|
206 |
$this->options['post_type_name'] = $this->default_options['post_type_name'];
|
207 |
}
|
208 |
|
|
|
|
|
|
|
209 |
if ( ! empty( $this->cstmsrch_options ) ) {
|
210 |
if ( isset( $this->cstmsrch_options['output_order'] ) ) {
|
211 |
$is_enabled = isset( $_POST['gllr_add_to_search'] ) ? 1 : 0;
|
257 |
<?php if ( ! empty( $this->options['need_image_update'] ) ) { ?>
|
258 |
<div class="updated bws-notice inline gllr_image_update_message">
|
259 |
<p>
|
260 |
+
<?php _e( 'Custom image size was changed. You need to update gallery images.', 'gallery-plugin' ); ?>
|
261 |
<input type="button" value="<?php _e( 'Update Images', 'gallery-plugin' ); ?>" id="gllr_ajax_update_images" name="ajax_update_images" class="button" />
|
262 |
</p>
|
263 |
</div>
|
850 |
*
|
851 |
*/
|
852 |
public function tab_social() { ?>
|
853 |
+
<h3 class="bws_tab_label"><?php _e( 'Social Sharing Buttons Settings', 'gallery-plugin' ); ?></h3>
|
854 |
+
<?php $this->help_phrase(); ?>
|
855 |
+
<hr>
|
856 |
+
<div class="bws_pro_version_bloc">
|
857 |
+
<div class="bws_pro_version_table_bloc">
|
858 |
+
<button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php _e( 'Close', 'gallery-plugin' ); ?>"></button>
|
859 |
+
<div class="bws_table_bg"></div>
|
860 |
+
<table class="form-table bws_pro_version">
|
861 |
+
<tr valign="top">
|
862 |
+
<th scope="row"><?php _e( 'Social Buttons', 'gallery-plugin' ); ?></th>
|
863 |
+
<td>
|
864 |
+
<input type="checkbox" disabled="disabled" checked="checked" /> <span class="bws_info"><?php _e( 'Enable social sharing buttons in the lightbox.', 'gallery-plugin' ); ?></span>
|
865 |
+
</td>
|
866 |
+
</tr>
|
867 |
+
<tr valign="top">
|
868 |
+
<th scope="row"><?php _e( 'Social Networks', 'gallery-plugin' ); ?></th>
|
869 |
+
<td>
|
870 |
+
<fieldset>
|
871 |
+
<label><input disabled="disabled" type="checkbox" /> Facebook</label><br>
|
872 |
+
<label><input disabled="disabled" type="checkbox" /> Twitter</label><br>
|
873 |
+
<label><input disabled="disabled" type="checkbox" /> Pinterest</label><br>
|
874 |
+
<label><input disabled="disabled" type="checkbox" /> Google +1</label>
|
875 |
+
</fieldset>
|
876 |
+
</td>
|
877 |
+
</tr>
|
878 |
+
<tr valign="top">
|
879 |
+
<th scope="row"><?php _e( 'Counter', 'gallery-plugin' ); ?></th>
|
880 |
+
<td>
|
881 |
+
<input disabled type="checkbox" value="1" />
|
882 |
+
<span class="bws_info"><?php _e( 'Enable to show likes counter for each social button (not available for Google +1).', 'gallery-plugin' ); ?></span>
|
883 |
+
</td>
|
884 |
+
</tr>
|
885 |
+
</table>
|
886 |
+
</div>
|
887 |
+
<?php $this->bws_pro_block_links(); ?>
|
888 |
+
</div>
|
889 |
+
<?php }
|
890 |
|
891 |
/**
|
892 |
*
|
908 |
*/
|
909 |
public function additional_misc_options_affected() {
|
910 |
global $wp_version, $wpdb;
|
911 |
+
|
912 |
+
//rename post_type via $_GET if checkbox doesn't shows
|
913 |
+
if ( isset( $_GET['bws_rename_post_type_gallery'] ) ) {
|
914 |
+
global $wpdb;
|
915 |
+
$wpdb->update(
|
916 |
+
$wpdb->prefix . 'posts',
|
917 |
+
array(
|
918 |
+
'post_type' => 'bws-gallery'
|
919 |
+
),
|
920 |
+
array(
|
921 |
+
'post_type' => 'gallery'
|
922 |
+
)
|
923 |
+
);
|
924 |
+
gllr_plugin_upgrade(false);
|
925 |
+
}
|
926 |
+
|
927 |
if ( ! $this->all_plugins ) {
|
928 |
if ( ! function_exists( 'get_plugins' ) )
|
929 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
930 |
$this->all_plugins = get_plugins();
|
931 |
}
|
932 |
+
|
933 |
$old_post_type_gallery = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_type = 'gallery'" );
|
934 |
|
935 |
if ( ! empty( $old_post_type_gallery ) ) { ?>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: bestwebsoft
|
|
3 |
Donate link: https://bestwebsoft.com/donate/
|
4 |
Tags: add album, add galleries, add images, add pictures, add albums, gallery, gallery plugin, gallery slider, fancy gallery, slideshow, lightbox, fullscreen gallery
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.0.
|
7 |
-
Stable tag: 4.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -226,6 +226,11 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
|
|
226 |
|
227 |
== Changelog ==
|
228 |
|
|
|
|
|
|
|
|
|
|
|
229 |
= V4.5.8 - 24.12.2018 =
|
230 |
* Update : All functionality was updated for WordPress 5.0.2.
|
231 |
|
@@ -656,6 +661,10 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
|
|
656 |
|
657 |
== Upgrade Notice ==
|
658 |
|
|
|
|
|
|
|
|
|
659 |
= V4.5.8 =
|
660 |
* The compatibility with new WordPress version updated.
|
661 |
|
3 |
Donate link: https://bestwebsoft.com/donate/
|
4 |
Tags: add album, add galleries, add images, add pictures, add albums, gallery, gallery plugin, gallery slider, fancy gallery, slideshow, lightbox, fullscreen gallery
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.0.3
|
7 |
+
Stable tag: 4.5.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
226 |
|
227 |
== Changelog ==
|
228 |
|
229 |
+
= V4.5.9 - 08.02.2019 =
|
230 |
+
* Bugfix : The bug with the rename post type 'gallery' to the 'bws-gallery' has been fixed.
|
231 |
+
* Bugfix : Compatibility with WPML has been fixed.
|
232 |
+
* Update : All functionality was updated for WordPress 5.0.3.
|
233 |
+
|
234 |
= V4.5.8 - 24.12.2018 =
|
235 |
* Update : All functionality was updated for WordPress 5.0.2.
|
236 |
|
661 |
|
662 |
== Upgrade Notice ==
|
663 |
|
664 |
+
= V4.5.9 =
|
665 |
+
* Bugs fixed.
|
666 |
+
* The compatibility with new WordPress version updated.
|
667 |
+
|
668 |
= V4.5.8 =
|
669 |
* The compatibility with new WordPress version updated.
|
670 |
|
screenshot-7.png
CHANGED
Binary file
|
screenshot-8.png
CHANGED
Binary file
|
screenshot-9.png
CHANGED
Binary file
|