Version Description
- Added: Integration with image optimizer plugin.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.3.60 |
Comparing to | |
See all releases |
Code changes from version 1.3.59 to 1.3.60
- admin/controllers/BWGControllerOptions_bwg.php +0 -1
- admin/views/BWGViewGalleries_bwg.php +16 -0
- images/iopLogo.png +0 -0
- photo-gallery.php +202 -33
- readme.txt +9 -6
admin/controllers/BWGControllerOptions_bwg.php
CHANGED
@@ -190,5 +190,4 @@ class BWGControllerOptions_bwg {
|
|
190 |
@ini_restore('memory_limit');
|
191 |
}
|
192 |
}
|
193 |
-
|
194 |
}
|
190 |
@ini_restore('memory_limit');
|
191 |
}
|
192 |
}
|
|
|
193 |
}
|
admin/views/BWGViewGalleries_bwg.php
CHANGED
@@ -52,6 +52,14 @@ class BWGViewGalleries_bwg {
|
|
52 |
?>
|
53 |
</select>
|
54 |
<input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="button" title="<?php _e("Apply","bwg_back"); ?>" onclick="if (!bwg_bulk_actions('.bulk_action', 'gallery_page')) {return false;}" value="<?php _e("Apply","bwg_back"); ?>" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
<?php WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'galleries_form', $per_page); ?>
|
56 |
</div>
|
57 |
<table class="wp-list-table widefat fixed pages">
|
@@ -719,6 +727,14 @@ class BWGViewGalleries_bwg {
|
|
719 |
?>
|
720 |
</select>
|
721 |
<input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="button" title="<?php _e("Apply", "bwg_back"); ?>" onclick="if (!bwg_bulk_actions('.bulk_action_img', '')) {return false;}" value="<?php _e("Apply", "bwg_back"); ?>" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
722 |
<?php WDWLibrary::ajax_html_page_nav($page_nav['total'], $page_nav['limit'], 'galleries_form', $per_page, $pager++); ?>
|
723 |
</div>
|
724 |
<div class="opacity_resize_image opacity_add_embed opacity_image_desc opacity_bulk_embed bwg_opacity_media" onclick="jQuery('.opacity_add_embed').hide(); jQuery('.opacity_bulk_embed').hide(); jQuery('.opacity_resize_image').hide(); jQuery('.opacity_image_desc').hide();"></div>
|
52 |
?>
|
53 |
</select>
|
54 |
<input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="button" title="<?php _e("Apply","bwg_back"); ?>" onclick="if (!bwg_bulk_actions('.bulk_action', 'gallery_page')) {return false;}" value="<?php _e("Apply","bwg_back"); ?>" />
|
55 |
+
<?php
|
56 |
+
if ( is_plugin_active( 'image-optimizer-wd/io-wd.php' ) && !empty($rows_data)) {
|
57 |
+
|
58 |
+
?>
|
59 |
+
<a href="<?php echo add_query_arg(array( 'page' => 'iowd_settings', 'target' => 'wd_gallery'), admin_url('admin.php'));?>" class="wd-btn wd-btn-primary" target="_blank"><?php _e("Optimize Images", "bwg_back"); ?></a>
|
60 |
+
<?php
|
61 |
+
}
|
62 |
+
?>
|
63 |
<?php WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'galleries_form', $per_page); ?>
|
64 |
</div>
|
65 |
<table class="wp-list-table widefat fixed pages">
|
727 |
?>
|
728 |
</select>
|
729 |
<input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="button" title="<?php _e("Apply", "bwg_back"); ?>" onclick="if (!bwg_bulk_actions('.bulk_action_img', '')) {return false;}" value="<?php _e("Apply", "bwg_back"); ?>" />
|
730 |
+
<?php
|
731 |
+
if ( is_plugin_active( 'image-optimizer-wd/io-wd.php' ) && !empty($rows_data)) {
|
732 |
+
|
733 |
+
?>
|
734 |
+
<a href="<?php echo add_query_arg(array( 'page' => 'iowd_settings', 'target' => 'wd_gallery'), admin_url('admin.php'));?>" class="wd-btn wd-btn-primary" target="_blank"><?php _e("Optimize Images", "bwg_back"); ?></a>
|
735 |
+
<?php
|
736 |
+
}
|
737 |
+
?>
|
738 |
<?php WDWLibrary::ajax_html_page_nav($page_nav['total'], $page_nav['limit'], 'galleries_form', $per_page, $pager++); ?>
|
739 |
</div>
|
740 |
<div class="opacity_resize_image opacity_add_embed opacity_image_desc opacity_bulk_embed bwg_opacity_media" onclick="jQuery('.opacity_add_embed').hide(); jQuery('.opacity_bulk_embed').hide(); jQuery('.opacity_resize_image').hide(); jQuery('.opacity_image_desc').hide();"></div>
|
images/iopLogo.png
ADDED
Binary file
|
photo-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
-
* Version: 1.3.
|
8 |
* Author: Photo Gallery Team
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -1504,7 +1504,7 @@ function bwg_activate() {
|
|
1504 |
}
|
1505 |
|
1506 |
$version = get_option('wd_bwg_version');
|
1507 |
-
$new_version = '1.3.
|
1508 |
if ($version && version_compare($version, $new_version, '<')) {
|
1509 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1510 |
bwg_update($version);
|
@@ -1556,7 +1556,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
1556 |
|
1557 |
function bwg_update_hook() {
|
1558 |
$version = get_option('wd_bwg_version');
|
1559 |
-
$new_version = '1.3.
|
1560 |
if ($version && version_compare($version, $new_version, '<')) {
|
1561 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1562 |
bwg_update($version);
|
@@ -2402,59 +2402,190 @@ function bwg_overview() {
|
|
2402 |
add_action('init', 'bwg_overview', 9);
|
2403 |
|
2404 |
/**
|
2405 |
-
* Show notice to install
|
2406 |
*/
|
2407 |
-
function
|
2408 |
-
// Remove old notice.
|
2409 |
-
if ( get_option('wds_bk_notice_status') !== FALSE ) {
|
2410 |
-
update_option('wds_bk_notice_status', '1', 'no');
|
2411 |
-
}
|
2412 |
-
|
2413 |
// Show notice only on plugin pages.
|
2414 |
if ( !isset($_GET['page']) || strpos(esc_html($_GET['page']), '_bwg') === FALSE ) {
|
2415 |
return '';
|
2416 |
}
|
2417 |
|
2418 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2419 |
if ( $meta_value === '' || $meta_value === FALSE ) {
|
2420 |
ob_start();
|
2421 |
$prefix = WD_BWG_PREFIX;
|
2422 |
$nicename = WD_BWG_NICENAME;
|
2423 |
$url = WD_BWG_URL;
|
2424 |
-
$dismiss_url = add_query_arg(array( 'action' => '
|
2425 |
-
|
|
|
|
|
|
|
|
|
2426 |
?>
|
2427 |
-
<div class="notice notice-info" id="
|
2428 |
<p>
|
2429 |
-
<img id="
|
2430 |
-
<?php echo sprintf(__("%s advises: Install brand new
|
2431 |
-
|
2432 |
-
|
2433 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2434 |
</p>
|
2435 |
-
<button type="button" class="
|
|
|
2436 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2437 |
<style>
|
2438 |
@media only screen and (max-width: 500px) {
|
2439 |
body #wd_backup_logo {
|
2440 |
max-width: 100%;
|
2441 |
}
|
2442 |
-
body #
|
2443 |
padding-right: 25px !important;
|
2444 |
}
|
2445 |
}
|
2446 |
-
|
2447 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2448 |
float: left;
|
2449 |
margin-right: 10px;
|
2450 |
}
|
2451 |
-
|
|
|
|
|
|
|
2452 |
position: relative;
|
2453 |
}
|
2454 |
-
#
|
2455 |
margin: 0 5px;
|
2456 |
}
|
2457 |
-
#
|
2458 |
content: "\f153";
|
2459 |
background: 0 0;
|
2460 |
color: #72777c;
|
@@ -2467,7 +2598,7 @@ function bwg_bp_install_notice() {
|
|
2467 |
-webkit-font-smoothing: antialiased;
|
2468 |
-moz-osx-font-smoothing: grayscale;
|
2469 |
}
|
2470 |
-
.
|
2471 |
margin-top: 5px;
|
2472 |
}
|
2473 |
</style>
|
@@ -2476,14 +2607,52 @@ function bwg_bp_install_notice() {
|
|
2476 |
}
|
2477 |
}
|
2478 |
|
2479 |
-
if
|
2480 |
-
|
|
|
|
|
|
|
|
|
2481 |
}
|
2482 |
|
2483 |
-
if ( !function_exists('
|
2484 |
// Add usermeta to db.
|
2485 |
-
function
|
2486 |
-
update_option('
|
2487 |
}
|
2488 |
-
add_action('
|
2489 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
+
* Version: 1.3.60
|
8 |
* Author: Photo Gallery Team
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
1504 |
}
|
1505 |
|
1506 |
$version = get_option('wd_bwg_version');
|
1507 |
+
$new_version = '1.3.60';
|
1508 |
if ($version && version_compare($version, $new_version, '<')) {
|
1509 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1510 |
bwg_update($version);
|
1556 |
|
1557 |
function bwg_update_hook() {
|
1558 |
$version = get_option('wd_bwg_version');
|
1559 |
+
$new_version = '1.3.60';
|
1560 |
if ($version && version_compare($version, $new_version, '<')) {
|
1561 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1562 |
bwg_update($version);
|
2402 |
add_action('init', 'bwg_overview', 9);
|
2403 |
|
2404 |
/**
|
2405 |
+
* Show notice to install Image Optimization plugin
|
2406 |
*/
|
2407 |
+
function wdpg_io_install_notice() {
|
|
|
|
|
|
|
|
|
|
|
2408 |
// Show notice only on plugin pages.
|
2409 |
if ( !isset($_GET['page']) || strpos(esc_html($_GET['page']), '_bwg') === FALSE ) {
|
2410 |
return '';
|
2411 |
}
|
2412 |
|
2413 |
+
wp_enqueue_script('thickbox');
|
2414 |
+
wp_enqueue_script('bwg_admin', WD_BWG_URL . '/js/bwg.js', array(), wd_bwg_version());
|
2415 |
+
|
2416 |
+
// Remove old notice.
|
2417 |
+
if ( get_option('wds_io_notice_status') !== FALSE ) {
|
2418 |
+
update_option('wds_io_notice_status', '1', 'no');
|
2419 |
+
}
|
2420 |
+
|
2421 |
+
$meta_value = get_option('wds_io_notice_status');
|
2422 |
if ( $meta_value === '' || $meta_value === FALSE ) {
|
2423 |
ob_start();
|
2424 |
$prefix = WD_BWG_PREFIX;
|
2425 |
$nicename = WD_BWG_NICENAME;
|
2426 |
$url = WD_BWG_URL;
|
2427 |
+
$dismiss_url = add_query_arg(array( 'action' => 'wd_io_dismiss' ), admin_url('admin-ajax.php'));
|
2428 |
+
|
2429 |
+
$slug = 'image-optimizer-wd';
|
2430 |
+
$install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $slug), 'install-plugin_' . $slug));
|
2431 |
+
$activation_url = na_action_link($slug.'/io-wd.php', 'activate');
|
2432 |
+
$verify_url = add_query_arg( array ('action' => 'io_status'), admin_url('admin-ajax.php'));
|
2433 |
?>
|
2434 |
+
<div class="notice notice-info" id="wd_io_notice_cont">
|
2435 |
<p>
|
2436 |
+
<img id="wd_io_logo_notice" src="<?php echo $url . '/images/iopLogo.png'; ?>" />
|
2437 |
+
<?php echo sprintf(__("%s advises: Install brand new %s plugin to optimize your website images quickly and easily.", $prefix), $nicename, '<a href="https://wordpress.org/plugins/image-optimizer-wd/" title="' . __("More details", $prefix) . '" target="_blank">' . __("Image Optimizer WD", $prefix) . '</a>'); ?>
|
2438 |
+
<?php
|
2439 |
+
$plugin_dir = ABSPATH . 'wp-content/plugins/image-optimizer-wd/';
|
2440 |
+
if ( is_dir($plugin_dir) && !is_plugin_active( 'image-optimizer-wd/io-wd.php' ) ) {
|
2441 |
+
?>
|
2442 |
+
<a class="button button-primary io_activaion" id="activate_now" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Activate", $prefix); ?></a>
|
2443 |
+
<a class="button button-primary io_activaion hide" id="optimize_now" href="<?php echo add_query_arg(array( 'page' => 'iowd_settings', 'target' => 'wd_gallery'), admin_url('admin.php'));?>" target="_blank"><?php _e("Optimize now", $prefix); ?></a>
|
2444 |
+
<span class="error_activate hide"><?php _e("Activation failed, please try again.", $prefix); ?></span>
|
2445 |
+
<?php
|
2446 |
+
} else if( ! is_dir($plugin_dir) ) {
|
2447 |
+
?>
|
2448 |
+
<a class="button button-primary io_activaion" id="install_now" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Install", $prefix); ?></a>
|
2449 |
+
<a class="button button-primary io_activaion hide" id="activate_now" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Activation", $prefix); ?></a>
|
2450 |
+
<a class="button button-primary io_activaion hide" id="optimize_now" href="<?php echo add_query_arg(array( 'page' => 'iowd_settings', 'target' => 'wd_gallery'), admin_url('admin.php'));?>" target="_blank"><?php _e("Optimize now", $prefix); ?></a>
|
2451 |
+
<span class="error_install hide is_active"><?php _e("Installation failed, please try again.", $prefix); ?></span>
|
2452 |
+
<?php
|
2453 |
+
}
|
2454 |
+
?>
|
2455 |
+
<span class="spinner" id="loading"></span>
|
2456 |
</p>
|
2457 |
+
<button type="button" class="wd_io_notice_dissmiss notice-dismiss" onclick="jQuery('#wd_io_notice_cont').hide(); jQuery.post('<?php echo $dismiss_url; ?>');"><span class="screen-reader-text"></span></button>
|
2458 |
+
<div id="verifyUrl" data-url="<?php echo $verify_url ?>"></div>
|
2459 |
</div>
|
2460 |
+
<script>
|
2461 |
+
var url = jQuery(".io_activaion").attr("data-install-url");
|
2462 |
+
var activate_url = jQuery(".io_activaion").attr("data-activate-url");
|
2463 |
+
|
2464 |
+
function install_io_plugin() {
|
2465 |
+
jQuery("#loading").addClass('is-active');
|
2466 |
+
jQuery(this).prop('disable',true);
|
2467 |
+
var io_plugin_url = '<?php echo plugins_url('image-optimizer-wd/io-wd.php');?>'; // Getting image optimizer plugin url
|
2468 |
+
|
2469 |
+
jQuery.ajax({
|
2470 |
+
method: "POST",
|
2471 |
+
url: url,
|
2472 |
+
}).done(function() {
|
2473 |
+
jQuery.ajax({ // Check if plugin installed
|
2474 |
+
type: 'POST',
|
2475 |
+
url: jQuery("#verifyUrl").attr('data-url'),
|
2476 |
+
error: function()
|
2477 |
+
{
|
2478 |
+
jQuery("#loading").removeClass('is-active');
|
2479 |
+
jQuery(".error_install").show();
|
2480 |
+
},
|
2481 |
+
success: function(response)
|
2482 |
+
{
|
2483 |
+
var plStatus = JSON.parse(response);
|
2484 |
+
if(plStatus.status_install != 1) {
|
2485 |
+
jQuery('#install_now').addClass('hide');
|
2486 |
+
jQuery('#activate_now').removeClass('hide');
|
2487 |
+
activate_io_plugin();
|
2488 |
+
}
|
2489 |
+
else {
|
2490 |
+
jQuery("#loading").removeClass('is-active');
|
2491 |
+
jQuery(".error_install").removeClass('hide');
|
2492 |
+
}
|
2493 |
+
}
|
2494 |
+
});
|
2495 |
+
})
|
2496 |
+
.fail(function() {
|
2497 |
+
//window.location = window.location.href;
|
2498 |
+
jQuery("#loading").removeClass('is-active');
|
2499 |
+
jQuery(".error_install").removeClass('hide');
|
2500 |
+
});
|
2501 |
+
|
2502 |
+
}
|
2503 |
+
|
2504 |
+
function activate_io_plugin() {
|
2505 |
+
jQuery("#loading").addClass('is-active');
|
2506 |
+
jQuery.ajax({
|
2507 |
+
method: "POST",
|
2508 |
+
url: activate_url,
|
2509 |
+
}).done(function() {
|
2510 |
+
jQuery("#loading").removeClass('is-active');
|
2511 |
+
|
2512 |
+
jQuery.ajax({ // Check if plugin installed
|
2513 |
+
type: 'POST',
|
2514 |
+
url: jQuery("#verifyUrl").attr('data-url'),
|
2515 |
+
error: function()
|
2516 |
+
{
|
2517 |
+
jQuery("#loading").removeClass('is-active');
|
2518 |
+
jQuery(".error_activate").removeClass('hide');
|
2519 |
+
},
|
2520 |
+
success: function(response)
|
2521 |
+
{
|
2522 |
+
var plStatus = JSON.parse(response);
|
2523 |
+
if(plStatus.status_active == 1) {
|
2524 |
+
jQuery('#install_now').addClass('hide');
|
2525 |
+
jQuery('#activate_now').addClass('hide');
|
2526 |
+
jQuery('#optimize_now').removeClass('hide');
|
2527 |
+
jQuery.post('<?php echo $dismiss_url; ?>');
|
2528 |
+
|
2529 |
+
}
|
2530 |
+
else {
|
2531 |
+
jQuery("#loading").removeClass('is-active');
|
2532 |
+
jQuery(".error_activate").removeClass('hide');
|
2533 |
+
}
|
2534 |
+
}
|
2535 |
+
});
|
2536 |
+
|
2537 |
+
})
|
2538 |
+
.fail(function() {
|
2539 |
+
//window.location = window.location.href;
|
2540 |
+
jQuery("#loading").removeClass('is-active');
|
2541 |
+
});
|
2542 |
+
}
|
2543 |
+
|
2544 |
+
jQuery("#install_now").on("click",function(){
|
2545 |
+
install_io_plugin();
|
2546 |
+
})
|
2547 |
+
jQuery("#activate_now").on("click",function(){
|
2548 |
+
activate_io_plugin()
|
2549 |
+
})
|
2550 |
+
|
2551 |
+
|
2552 |
+
</script>
|
2553 |
<style>
|
2554 |
@media only screen and (max-width: 500px) {
|
2555 |
body #wd_backup_logo {
|
2556 |
max-width: 100%;
|
2557 |
}
|
2558 |
+
body #wd_io_notice_cont p {
|
2559 |
padding-right: 25px !important;
|
2560 |
}
|
2561 |
}
|
2562 |
+
.hide {
|
2563 |
+
display: none!important;
|
2564 |
+
}
|
2565 |
+
#verifyUrl{
|
2566 |
+
display: none
|
2567 |
+
}
|
2568 |
+
|
2569 |
+
#loading {
|
2570 |
+
vertical-align: middle;
|
2571 |
+
float: none!important;
|
2572 |
+
margin: 0 !important;
|
2573 |
+
}
|
2574 |
+
#wd_io_logo_notice {
|
2575 |
+
height: 32px;
|
2576 |
float: left;
|
2577 |
margin-right: 10px;
|
2578 |
}
|
2579 |
+
.error_install, .error_activate {
|
2580 |
+
color:red;
|
2581 |
+
}
|
2582 |
+
#wd_io_notice_cont {
|
2583 |
position: relative;
|
2584 |
}
|
2585 |
+
#wd_io_notice_cont a {
|
2586 |
margin: 0 5px;
|
2587 |
}
|
2588 |
+
#wd_io_notice_cont .dashicons-dismiss:before {
|
2589 |
content: "\f153";
|
2590 |
background: 0 0;
|
2591 |
color: #72777c;
|
2598 |
-webkit-font-smoothing: antialiased;
|
2599 |
-moz-osx-font-smoothing: grayscale;
|
2600 |
}
|
2601 |
+
.wd_io_notice_dissmiss {
|
2602 |
margin-top: 5px;
|
2603 |
}
|
2604 |
</style>
|
2607 |
}
|
2608 |
}
|
2609 |
|
2610 |
+
if( !function_exists('is_plugin_active') ) {
|
2611 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
2612 |
+
}
|
2613 |
+
|
2614 |
+
if( !is_plugin_active( 'image-optimizer-wd/io-wd.php' ) ) {
|
2615 |
+
add_action('admin_notices', 'wdpg_io_install_notice');
|
2616 |
}
|
2617 |
|
2618 |
+
if ( !function_exists('wd_iops_install_notice_status') ) {
|
2619 |
// Add usermeta to db.
|
2620 |
+
function wd_iops_install_notice_status() {
|
2621 |
+
update_option('wds_io_notice_status', '1', 'no');
|
2622 |
}
|
2623 |
+
add_action('wp_ajax_wd_io_dismiss', 'wd_iops_install_notice_status');
|
2624 |
}
|
2625 |
+
|
2626 |
+
//Check status image optimize install
|
2627 |
+
function check_io_status(){
|
2628 |
+
$status_install = 0;
|
2629 |
+
$status_active = 0;
|
2630 |
+
$plugin_dir = ABSPATH . 'wp-content/plugins/image-optimizer-wd/';
|
2631 |
+
if ( !is_dir($plugin_dir)){
|
2632 |
+
$status_install = 1;
|
2633 |
+
}else if(is_plugin_active( 'image-optimizer-wd/io-wd.php' )) {
|
2634 |
+
$status_active = 1;
|
2635 |
+
}
|
2636 |
+
$jsondata = array('status_install' => $status_install, 'status_active' => $status_active);
|
2637 |
+
echo json_encode($jsondata); exit;
|
2638 |
+
}
|
2639 |
+
add_action('wp_ajax_io_status', 'check_io_status');
|
2640 |
+
|
2641 |
+
|
2642 |
+
/**
|
2643 |
+
* Get activation or deactivation link of a plugin
|
2644 |
+
*
|
2645 |
+
* @author Nazmul Ahsan <mail@nazmulahsan.me>
|
2646 |
+
* @param string $plugin plugin file name
|
2647 |
+
* @param string $action action to perform. activate or deactivate
|
2648 |
+
* @return string $url action url
|
2649 |
+
*/
|
2650 |
+
function na_action_link( $plugin, $action = 'activate' ) {
|
2651 |
+
if ( strpos( $plugin, '/' ) ) {
|
2652 |
+
$plugin = str_replace( '\/', '%2F', $plugin );
|
2653 |
+
}
|
2654 |
+
$url = sprintf( admin_url( 'plugins.php?action=' . $action . '&plugin=%s&plugin_status=all&paged=1&s' ), $plugin );
|
2655 |
+
$_REQUEST['plugin'] = $plugin;
|
2656 |
+
$url = wp_nonce_url( $url, $action . '-plugin_' . $plugin );
|
2657 |
+
return $url;
|
2658 |
+
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: webdorado,wdsupport,photogallerysupport
|
|
3 |
Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
4 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
5 |
Requires at least: 3.4
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -16,12 +16,12 @@ https://www.youtube.com/watch?v=3u0O9ZdVsGc
|
|
16 |
|
17 |
Gallery is a fully responsive WordPress gallery plugin with advanced functionality.
|
18 |
Create 100% responsive FREE WordPress photo gallery in minutes. Easy to customize and various views.
|
19 |
-
|
|
|
20 |
[WordPress Photo Gallery](https://web-dorado.com/products/wordpress-photo-gallery-plugin.html)
|
21 |
[Photo Gallery Demo](http://wpdemo.web-dorado.com/gallery/)
|
22 |
-
[Photo Gallery Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=galleries_bwg)
|
23 |
[Photo Gallery User Manual](https://web-dorado.com/wordpress-gallery-guide-step-1.html)
|
24 |
-
[Photo Gallery Support Forum](https://
|
25 |
|
26 |
|
27 |
= Photo Gallery Add-ons: =
|
@@ -67,7 +67,7 @@ Photo Gallery product in addition to the main plugin includes 4 specific widgets
|
|
67 |
The responsive WordPress photo gallery is one of the best gallery plugins available. So don’t hesitate to download the free plugin and try it today!
|
68 |
|
69 |
###IMPORTANT:
|
70 |
-
If you think you found a bug in Photo Gallery or have any problem/question concerning the plugin, please check out [Photo Gallery Support Forum](https://
|
71 |
|
72 |
|
73 |
### The list of the features:
|
@@ -187,6 +187,9 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
|
|
187 |
|
188 |
== Changelog ==
|
189 |
|
|
|
|
|
|
|
190 |
= 1.3.59 =
|
191 |
* Changed: Change instagram thumb with medium image.
|
192 |
* Fixed: Notice in Extended album view in free version.
|
3 |
Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
4 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
5 |
Requires at least: 3.4
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: 1.3.60
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
16 |
|
17 |
Gallery is a fully responsive WordPress gallery plugin with advanced functionality.
|
18 |
Create 100% responsive FREE WordPress photo gallery in minutes. Easy to customize and various views.
|
19 |
+
|
20 |
+
[Special Offer for all Premium Plugins](https://web-dorado.com/wordpress-plugins-bundle.html)
|
21 |
[WordPress Photo Gallery](https://web-dorado.com/products/wordpress-photo-gallery-plugin.html)
|
22 |
[Photo Gallery Demo](http://wpdemo.web-dorado.com/gallery/)
|
|
|
23 |
[Photo Gallery User Manual](https://web-dorado.com/wordpress-gallery-guide-step-1.html)
|
24 |
+
[Photo Gallery Support Forum](https://wordpress.org/support/plugin/photo-gallery)
|
25 |
|
26 |
|
27 |
= Photo Gallery Add-ons: =
|
67 |
The responsive WordPress photo gallery is one of the best gallery plugins available. So don’t hesitate to download the free plugin and try it today!
|
68 |
|
69 |
###IMPORTANT:
|
70 |
+
If you think you found a bug in Photo Gallery or have any problem/question concerning the plugin, please check out [Photo Gallery Support Forum](https://wordpress.org/support/plugin/photo-gallery) in our website. If you do not find a solution here, do not hesitate to [click here to contact us](https://web-dorado.com/support/contact-us.html).
|
71 |
|
72 |
|
73 |
### The list of the features:
|
187 |
|
188 |
== Changelog ==
|
189 |
|
190 |
+
= 1.3.60 =
|
191 |
+
* Added: Integration with image optimizer plugin.
|
192 |
+
|
193 |
= 1.3.59 =
|
194 |
* Changed: Change instagram thumb with medium image.
|
195 |
* Fixed: Notice in Extended album view in free version.
|