Version Description
Download this release
Release Info
Developer | navzme |
Plugin | ACF Photo Gallery Field |
Version | 1.6.9 |
Comparing to | |
See all releases |
Code changes from version 1.6.8 to 1.6.9
- navz-photo-gallery.php +52 -4
- readme.txt +6 -2
navz-photo-gallery.php
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*
|
4 |
Plugin Name: ACF Photo Gallery Field
|
5 |
Plugin URI: http://www.navz.me/
|
6 |
Description: An extension for Advance Custom Fields which lets you add photo gallery functionality on your websites.
|
7 |
-
Version: 1.6.
|
8 |
Author: Navneil Naicker
|
9 |
Author URI: http://www.navz.me/
|
10 |
License: GPLv2 or later
|
@@ -40,7 +39,7 @@ if( !class_exists('acf_plugin_photo_gallery') ) :
|
|
40 |
|
41 |
// vars
|
42 |
$this->settings = array(
|
43 |
-
'version' => '1.6.
|
44 |
'url' => plugin_dir_url( __FILE__ ),
|
45 |
'path' => plugin_dir_path( __FILE__ )
|
46 |
);
|
@@ -134,4 +133,53 @@ require_once( dirname(__FILE__) . '/includes/acf_photo_gallery_resize_image.php'
|
|
134 |
require_once( dirname(__FILE__) . '/includes/acf_photo_gallery_image_fields.php' );
|
135 |
|
136 |
//Metabox for the photo edit
|
137 |
-
require_once( dirname(__FILE__) . '/includes/acf_photo_gallery_edit.php' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
|
|
2 |
/*
|
3 |
Plugin Name: ACF Photo Gallery Field
|
4 |
Plugin URI: http://www.navz.me/
|
5 |
Description: An extension for Advance Custom Fields which lets you add photo gallery functionality on your websites.
|
6 |
+
Version: 1.6.9
|
7 |
Author: Navneil Naicker
|
8 |
Author URI: http://www.navz.me/
|
9 |
License: GPLv2 or later
|
39 |
|
40 |
// vars
|
41 |
$this->settings = array(
|
42 |
+
'version' => '1.6.9',
|
43 |
'url' => plugin_dir_url( __FILE__ ),
|
44 |
'path' => plugin_dir_path( __FILE__ )
|
45 |
);
|
133 |
require_once( dirname(__FILE__) . '/includes/acf_photo_gallery_image_fields.php' );
|
134 |
|
135 |
//Metabox for the photo edit
|
136 |
+
require_once( dirname(__FILE__) . '/includes/acf_photo_gallery_edit.php' );
|
137 |
+
|
138 |
+
add_action('admin_notices', 'acf_pgf_admin_notice');
|
139 |
+
function acf_pgf_admin_notice(){
|
140 |
+
if( get_option('acf-pgf-dnt-show-msg') == 'yes' ){ ?>
|
141 |
+
<div class="notice notice-info is-dismissible">
|
142 |
+
<p>ACF Photo Gallery Field is a free to use plugin. It would be nice you could donate $5.00 USD to help in future development of this plugin. To donate please
|
143 |
+
<a href="http://shop.navz.me/donation"
|
144 |
+
target="_blank"
|
145 |
+
style="background:#E14D43;color:#fff;text-decoration: none;padding: 5px 12px;border-radius: 3px;margin-left: 5px;">Click here</a> |
|
146 |
+
<a href="<?php echo admin_url('admin-ajax.php?action=acf_pgf_dnt_msg_never&nonce='.wp_create_nonce("navz-photo-gallery/navz-photo-gallery.php")); ?>"
|
147 |
+
class="acf-pgf-dnt-msg-never">Don't show me again</a>
|
148 |
+
</p>
|
149 |
+
</div>
|
150 |
+
<?php }
|
151 |
+
}
|
152 |
+
|
153 |
+
add_action('upgrader_process_complete', 'acf_pgf_upgrader_process_complete',10, 2);
|
154 |
+
function acf_pgf_upgrader_process_complete($upgrader_object, $options){
|
155 |
+
$current_plugin_path_name = 'navz-photo-gallery/navz-photo-gallery.php';
|
156 |
+
if ($options['action'] == 'update' && $options['type'] == 'plugin'){
|
157 |
+
foreach($options['plugins'] as $each_plugin){
|
158 |
+
if ($each_plugin == $current_plugin_path_name){
|
159 |
+
update_option('acf-pgf-dnt-show-msg', 'yes');
|
160 |
+
}
|
161 |
+
}
|
162 |
+
}
|
163 |
+
}
|
164 |
+
|
165 |
+
add_action("wp_ajax_acf_pgf_dnt_msg_never", "acf_pgf_dnt_msg_never");
|
166 |
+
function acf_pgf_dnt_msg_never(){
|
167 |
+
update_option('acf-pgf-dnt-show-msg', 'no');
|
168 |
+
wp_redirect($_SERVER['HTTP_REFERER']);
|
169 |
+
die();
|
170 |
+
}
|
171 |
+
|
172 |
+
add_filter('cron_schedules', 'acf_pgf_schedules');
|
173 |
+
function acf_pgf_schedules($schedules){
|
174 |
+
$schedules['acf_pgf_cron_weekly'] = array('interval' => 604800, 'display' => 'Once Weekly');
|
175 |
+
return $schedules;
|
176 |
+
}
|
177 |
+
|
178 |
+
if (!wp_next_scheduled('acf_pgf_cron_weekly')){
|
179 |
+
wp_schedule_event(1481799444, 'acf_pgf_cron_weekly', 'acf_pgf_cron_weekly');
|
180 |
+
}
|
181 |
+
|
182 |
+
add_action('acf_pgf_cron_weekly', 'acf_pgf_cron_weekly_exec');
|
183 |
+
function acf_pgf_cron_weekly_exec(){
|
184 |
+
update_option('acf-pgf-dnt-show-msg', 'yes');
|
185 |
+
}
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: navzme
|
3 |
Tags: acf, advanced, custom, fields, photo, gallery, album, fancybox, litebox, lightbox
|
4 |
Requires at least: 3.8
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.6.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -126,6 +126,10 @@ Just like any other WordPress plugin, this plugin can also cause issues with oth
|
|
126 |
4. Please refer to the description for more info regarding the field type settings
|
127 |
|
128 |
== Changelog ==
|
|
|
|
|
|
|
|
|
129 |
=1.6.8=
|
130 |
* [Bugfix] Make gallery images limit optional
|
131 |
|
2 |
Contributors: navzme
|
3 |
Tags: acf, advanced, custom, fields, photo, gallery, album, fancybox, litebox, lightbox
|
4 |
Requires at least: 3.8
|
5 |
+
Tested up to: 5.7.2
|
6 |
+
Stable tag: 1.6.9
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
126 |
4. Please refer to the description for more info regarding the field type settings
|
127 |
|
128 |
== Changelog ==
|
129 |
+
=1.6.9=
|
130 |
+
* [Added] Support for WordPress 5.7.2
|
131 |
+
* [Added] Donation message
|
132 |
+
|
133 |
=1.6.8=
|
134 |
* [Bugfix] Make gallery images limit optional
|
135 |
|