Version Description
- FIX: Layout Bugs
- TWEAK: Video Gallery Added in Premium Editions
Download this release
Release Info
Developer | contact-banker |
Plugin | Gallery Bank: WordPress Photo Gallery Plugin |
Version | 4.0.7 |
Comparing to | |
See all releases |
Code changes from version 4.0.6 to 4.0.7
- gallery-bank.php +1 -1
- includes/translations.php +5 -0
- lib/action-library.php +3 -0
- lib/install-script.php +1 -0
- readme.txt +45 -13
- user-views/layouts/compact-album-layout/compact-album-layout.php +4 -3
- user-views/layouts/masonry-layout/masonry-layout.php +1 -1
- user-views/layouts/thumbnail-layout/thumbnail-layout.php +1 -1
- views/galleries/add-gallery.php +20 -0
gallery-bank.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Photo Gallery Plugin for WordPress. Creates elegant responsive gallery widget, image gallery, media gallery, portfolio gallery and albums.
|
6 |
* Author: Tech Banker
|
7 |
* Author URI: https://gallery-bank.tech-banker.com
|
8 |
-
* Version: 4.0.
|
9 |
* License: GPLv3
|
10 |
* Text Domain: gallery-bank
|
11 |
* Domain Path: /languages
|
5 |
* Description: Photo Gallery Plugin for WordPress. Creates elegant responsive gallery widget, image gallery, media gallery, portfolio gallery and albums.
|
6 |
* Author: Tech Banker
|
7 |
* Author URI: https://gallery-bank.tech-banker.com
|
8 |
+
* Version: 4.0.7
|
9 |
* License: GPLv3
|
10 |
* Text Domain: gallery-bank
|
11 |
* Domain Path: /languages
|
includes/translations.php
CHANGED
@@ -561,6 +561,11 @@ if (!is_user_logged_in()) {
|
|
561 |
$gb_selected_gallery_in_album_delete_data = __("Selected Galleries have been already used in Albums", "gallery-bank");
|
562 |
|
563 |
//Add Gallery
|
|
|
|
|
|
|
|
|
|
|
564 |
$gb_add_gallery_basic_detail = __("Gallery Title & Description", "gallery-bank");
|
565 |
$gb_add_gallery_upload_local_media = __("Upload Images", "gallery-bank");
|
566 |
$gb_add_gallery_title_tooltip = __("In this field, you would need to provide Gallery Title", "gallery-bank");
|
561 |
$gb_selected_gallery_in_album_delete_data = __("Selected Galleries have been already used in Albums", "gallery-bank");
|
562 |
|
563 |
//Add Gallery
|
564 |
+
$gb_add_gallery_upload_videos = __("Upload Videos", "gallery-bank");
|
565 |
+
$gb_add_gallery_videos_url = __("Video URL", "gallery-bank");
|
566 |
+
$gb_add_gallery_videos_url_placeholder = __("Please provied Video Url", "gallery-bank");
|
567 |
+
$gb_add_gallery_video_url_tooltip = __("In this field, you would need to provide Video Url for Uploading Video", "gallery-bank");
|
568 |
+
$gb_add_gallery_embed_video = __("Embed Video", "gallery-bank");
|
569 |
$gb_add_gallery_basic_detail = __("Gallery Title & Description", "gallery-bank");
|
570 |
$gb_add_gallery_upload_local_media = __("Upload Images", "gallery-bank");
|
571 |
$gb_add_gallery_title_tooltip = __("In this field, you would need to provide Gallery Title", "gallery-bank");
|
lib/action-library.php
CHANGED
@@ -162,6 +162,7 @@ if (!is_user_logged_in()) {
|
|
162 |
);
|
163 |
$selected_gallery_unserialized_data = maybe_unserialize($selected_gallery_data);
|
164 |
$selected_gallery_unserialized_data["gallery_cover_image"] = $image_name;
|
|
|
165 |
|
166 |
$gallery_meta_data_insert = array();
|
167 |
$where = array();
|
@@ -196,6 +197,7 @@ if (!is_user_logged_in()) {
|
|
196 |
$insert_gallery_meta["created_date"] = time();
|
197 |
$insert_gallery_meta["edited_on"] = time();
|
198 |
$insert_gallery_meta["gallery_cover_image"] = "";
|
|
|
199 |
$insert_gallery_meta["edited_by"] = $current_user->display_name;
|
200 |
$insert_gallery_meta["author"] = $current_user->display_name;
|
201 |
|
@@ -280,6 +282,7 @@ if (!is_user_logged_in()) {
|
|
280 |
$gallery_meta_data["created_date"] = doubleval($gallery_meta_id_unserialize["created_date"]);
|
281 |
$gallery_meta_data["edited_on"] = time();
|
282 |
$gallery_meta_data["gallery_cover_image"] = isset($gallery_cover_unserialized_meta_value["image_name"]) ? $gallery_cover_unserialized_meta_value["image_name"] : "";
|
|
|
283 |
$gallery_meta_data["edited_by"] = $current_user->display_name;
|
284 |
$gallery_meta_data["author"] = esc_attr($gallery_meta_id_unserialize["author"]);
|
285 |
|
162 |
);
|
163 |
$selected_gallery_unserialized_data = maybe_unserialize($selected_gallery_data);
|
164 |
$selected_gallery_unserialized_data["gallery_cover_image"] = $image_name;
|
165 |
+
$selected_gallery_unserialized_data["file_type"] = "image";
|
166 |
|
167 |
$gallery_meta_data_insert = array();
|
168 |
$where = array();
|
197 |
$insert_gallery_meta["created_date"] = time();
|
198 |
$insert_gallery_meta["edited_on"] = time();
|
199 |
$insert_gallery_meta["gallery_cover_image"] = "";
|
200 |
+
$insert_gallery_meta["file_type"] = "";
|
201 |
$insert_gallery_meta["edited_by"] = $current_user->display_name;
|
202 |
$insert_gallery_meta["author"] = $current_user->display_name;
|
203 |
|
282 |
$gallery_meta_data["created_date"] = doubleval($gallery_meta_id_unserialize["created_date"]);
|
283 |
$gallery_meta_data["edited_on"] = time();
|
284 |
$gallery_meta_data["gallery_cover_image"] = isset($gallery_cover_unserialized_meta_value["image_name"]) ? $gallery_cover_unserialized_meta_value["image_name"] : "";
|
285 |
+
$gallery_meta_data["file_type"] = "image";
|
286 |
$gallery_meta_data["edited_by"] = $current_user->display_name;
|
287 |
$gallery_meta_data["author"] = esc_attr($gallery_meta_id_unserialize["author"]);
|
288 |
|
lib/install-script.php
CHANGED
@@ -1071,6 +1071,7 @@ if (!is_user_logged_in()) {
|
|
1071 |
$insert_gallery_meta["gallery_description"] = "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.</p>";
|
1072 |
$insert_gallery_meta["created_date"] = time();
|
1073 |
$insert_gallery_meta["edited_on"] = time();
|
|
|
1074 |
$insert_gallery_meta["gallery_cover_image"] = "demo2.jpg";
|
1075 |
$insert_gallery_meta["edited_by"] = $current_user->display_name;
|
1076 |
$insert_gallery_meta["author"] = $current_user->display_name;
|
1071 |
$insert_gallery_meta["gallery_description"] = "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.</p>";
|
1072 |
$insert_gallery_meta["created_date"] = time();
|
1073 |
$insert_gallery_meta["edited_on"] = time();
|
1074 |
+
$insert_gallery_meta["file_type"] = "image";
|
1075 |
$insert_gallery_meta["gallery_cover_image"] = "demo2.jpg";
|
1076 |
$insert_gallery_meta["edited_by"] = $current_user->display_name;
|
1077 |
$insert_gallery_meta["author"] = $current_user->display_name;
|
readme.txt
CHANGED
@@ -7,14 +7,22 @@ Stable Tag: trunk
|
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
-
Photo Gallery Plugin for WordPress. Creates elegant responsive gallery widget
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
### Best Gallery
|
15 |
|
16 |
https://youtu.be/5tOPGePG9Dw
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
* **[Gallery Bank - Responsive Image Gallery Plugin](https://gallery-bank.tech-banker.com/)**
|
19 |
* **[Detailed Features - Responsive Photo Gallery Plugin](http://gallery-bank.tech-banker.com/features/detailed-features/)**
|
20 |
* **[Front End Demos - Gallery Plugin](https://gallery-bank.tech-banker.com/frontend-demos/)**
|
@@ -22,19 +30,13 @@ https://youtu.be/5tOPGePG9Dw
|
|
22 |
* **[Documentation - Best Photo Gallery WordPress Plugin](https://gallery-bank.tech-banker.com/documentation/)**
|
23 |
* **[Upgrade to Premium Editions - Photo Gallery Plugin for WordPress](https://gallery-bank.tech-banker.com/pricing/)**
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
[**WordPress Photo Gallery Plugin**](https://gallery-bank.tech-banker.com/) is one of the Best WordPress Gallery Plugin designed to create elegant and beautiful **photo gallery** and **photo albums** using **Masonry Gallery Layouts**, **Thumbnail Gallery Layouts**, **Compact Album Layouts** and **Extended Album Layouts** along with Special Effects and Animation Effects.
|
28 |
-
|
29 |
-
**WordPress Photo Gallery Plugin** is the only available WordPress Gallery Shortcode Plugin in the market with extra-ordinary features. It is loaded with 200+ features and you can create stunning albums, photo gallery, portfolio gallery on any of your WordPress site/blog.
|
30 |
-
|
31 |
-
**WordPress Photo Gallery Plugin** provides a powerful photo gallery engine for uploading and managing photo albums of images, with the ability to batch upload, delete, rearrange and sort images.
|
32 |
|
33 |
-
|
34 |
|
35 |
-
|
36 |
|
37 |
-
Gallery Bank
|
38 |
|
39 |
> ### WordPress Image Gallery Plugin - Live Demos
|
40 |
|
@@ -115,11 +117,31 @@ Gallery Bank has been downloaded over 25,00,000 times. Smart photographers, desi
|
|
115 |
> * **[Extended Album Layout with Animation Effects](http://gallery-bank.tech-banker.com/frontend-demos/extended-album-with-animation-thumbnail-layout/)**
|
116 |
> * **[Extended Album Layout Special Effects](http://gallery-bank.tech-banker.com/frontend-demos/extended-album-with-special-effects-thumbnail-layout/)**
|
117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
**[Upgrade to Premium Editions - Best Wordpress Gallery Plugin](https://gallery-bank.tech-banker.com/)**
|
119 |
|
120 |
### Wordpress Photo Gallery Plugin - Key Features in Lite Edition
|
121 |
|
122 |
* 100% Responsive.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
* User Friendly Admin Panel to add Galleries.
|
124 |
* Create & Manage unlimited amount of image galleries on your WordPress site/blog.
|
125 |
* Upload unlimited amount of photos/images in your gallery.
|
@@ -146,7 +168,8 @@ Take your media gallery to the next level with [Premium Editions](https://galler
|
|
146 |
* Supports Thumbnail, Masonry, Slideshow, Image Browser, Justified Grid, Blog Style, Compact Album, Extended Album.
|
147 |
* Compact Albums displays in a grid gallery format whereas Extended Albums displays in a List format.
|
148 |
* Manage Galleries
|
149 |
-
* Upload Images using PL Uploader, WP Media Manager, FTP Folder
|
|
|
150 |
* Set Thumbnail as Cover Image.
|
151 |
* Apply Tags to use as Filters for your filterable portfolio.
|
152 |
* Edit Images - Crop, Rotate Anti Clockwize, Rotate Clockwize, Flip Images Vertically, Flip Images Horizontally, Restore Images, Watermarking.
|
@@ -188,6 +211,10 @@ Take your media gallery to the next level with [Premium Editions](https://galler
|
|
188 |
* Photo Gallery Widget to embed all WordPress gallery shortcodes.
|
189 |
* 24/7 Technical Support
|
190 |
|
|
|
|
|
|
|
|
|
191 |
Visit [here](https://gallery-bank.tech-banker.com/) to upgrade to Premium Editions now.
|
192 |
|
193 |
Gallery Bank uses [FooBox](https://WordPress.org/plugins/foobox-image-lightbox/) as its default gallery lightbox which is licensed under GPL V2 or later.
|
@@ -2381,6 +2408,11 @@ The following set of lists are the minimum requirements for installing Gallery B
|
|
2381 |
|
2382 |
== Changelog ==
|
2383 |
|
|
|
|
|
|
|
|
|
|
|
2384 |
= 4.0.6 =
|
2385 |
|
2386 |
* TWEAK: Wizard Section Renoved Completely
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
+
Photo Gallery Plugin for WordPress. Creates elegant responsive gallery widget with image gallery, media gallery, portfolio gallery and albums.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
### Best WordPress Gallery Plugin
|
15 |
|
16 |
https://youtu.be/5tOPGePG9Dw
|
17 |
|
18 |
+
### The #1 photo gallery on WordPress.org - **30,000+ customers** agree!
|
19 |
+
|
20 |
+
Gallery Bank is a powerful and responsive **WordPress gallery plugin**, designed with advanced features to showcase your image galleries in the most beautiful and authentic way.
|
21 |
+
|
22 |
+
Whether you specialize in photography, creative designs, or a journalistic exploration, your photos tell a unique story and deserve to be presented in the best way possible.
|
23 |
+
|
24 |
+
**This plugin is the ideal solution for creating portfolios, galleries, albums, showcases or teasers.**
|
25 |
+
|
26 |
* **[Gallery Bank - Responsive Image Gallery Plugin](https://gallery-bank.tech-banker.com/)**
|
27 |
* **[Detailed Features - Responsive Photo Gallery Plugin](http://gallery-bank.tech-banker.com/features/detailed-features/)**
|
28 |
* **[Front End Demos - Gallery Plugin](https://gallery-bank.tech-banker.com/frontend-demos/)**
|
30 |
* **[Documentation - Best Photo Gallery WordPress Plugin](https://gallery-bank.tech-banker.com/documentation/)**
|
31 |
* **[Upgrade to Premium Editions - Photo Gallery Plugin for WordPress](https://gallery-bank.tech-banker.com/pricing/)**
|
32 |
|
33 |
+
Create your own individual gallery easily in wordpress. The plugin comes with an user-friendly AJAX-driven adiminstration that allows creating galleries easily and quickly. You can display a gallery in a post, page or even in a gallery widget area.
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
+
We especially took care about the loading speed performance by optimizing the queries and have created a custom and lightweight jQuery script.
|
36 |
|
37 |
+
### Best WordPress Portfolio Plugin
|
38 |
|
39 |
+
Gallery Bank is an advanced portfolio plugin to show portfolio, gallery and more your work. This is a fully responsive gallery plugin. The product includes plugin for adding image galleries and albums to posts and pages, as well as multiple gallery widgets. You can add images, providing detailed gallery descriptions, organize the galleries into different photo albums.
|
40 |
|
41 |
> ### WordPress Image Gallery Plugin - Live Demos
|
42 |
|
117 |
> * **[Extended Album Layout with Animation Effects](http://gallery-bank.tech-banker.com/frontend-demos/extended-album-with-animation-thumbnail-layout/)**
|
118 |
> * **[Extended Album Layout Special Effects](http://gallery-bank.tech-banker.com/frontend-demos/extended-album-with-special-effects-thumbnail-layout/)**
|
119 |
|
120 |
+
[**WordPress Photo Gallery Plugin**](https://gallery-bank.tech-banker.com/) is one of the Best WordPress Gallery Plugin designed to create elegant and beautiful **photo gallery** and **photo albums** using **Masonry Gallery Layouts**, **Thumbnail Gallery Layouts**, **Compact Album Layouts** and **Extended Album Layouts** along with Special Effects and Animation Effects.
|
121 |
+
|
122 |
+
**WordPress Photo Gallery Plugin** is the only available WordPress Gallery Shortcode Plugin in the market with extra-ordinary features. It is loaded with 200+ features and you can create stunning albums, photo gallery, portfolio gallery on any of your WordPress site/blog.
|
123 |
+
|
124 |
+
**WordPress Photo Gallery Plugin** provides a powerful photo gallery engine for uploading and managing photo albums of images, with the ability to batch upload, delete, rearrange and sort images.
|
125 |
+
|
126 |
+
It is the best **Gallery Plugin for WordPress** which is being regularly updated for new features and its simplicity of usage along with efficient functionality makes it a perfect choice among photographers to have a stunning look for their sites.
|
127 |
+
|
128 |
+
There are also Premium Editions for the Gallery Plugin for WordPress with much more useful pro features available.
|
129 |
+
|
130 |
+
Gallery Bank has been downloaded over 25,00,000 times. Smart photographers, designers, and developers love Gallery Bank, and you will love too!
|
131 |
+
|
132 |
**[Upgrade to Premium Editions - Best Wordpress Gallery Plugin](https://gallery-bank.tech-banker.com/)**
|
133 |
|
134 |
### Wordpress Photo Gallery Plugin - Key Features in Lite Edition
|
135 |
|
136 |
* 100% Responsive.
|
137 |
+
* Clean and Modern Design
|
138 |
+
* Ajax Themes Compatibility
|
139 |
+
* Masonry Gallery
|
140 |
+
* Thumbnails Gallery
|
141 |
+
* Top Notch Support
|
142 |
+
* Strong SEO Foundation
|
143 |
+
* Shortcode Editor to style each gallery individually.
|
144 |
+
* Use multiple instances on the same page.
|
145 |
* User Friendly Admin Panel to add Galleries.
|
146 |
* Create & Manage unlimited amount of image galleries on your WordPress site/blog.
|
147 |
* Upload unlimited amount of photos/images in your gallery.
|
168 |
* Supports Thumbnail, Masonry, Slideshow, Image Browser, Justified Grid, Blog Style, Compact Album, Extended Album.
|
169 |
* Compact Albums displays in a grid gallery format whereas Extended Albums displays in a List format.
|
170 |
* Manage Galleries
|
171 |
+
* Upload Images using PL Uploader, WP Media Manager, FTP Folder, Upload Video
|
172 |
+
* Video Gallery from Youtube, Facebook, Vimeo etc.
|
173 |
* Set Thumbnail as Cover Image.
|
174 |
* Apply Tags to use as Filters for your filterable portfolio.
|
175 |
* Edit Images - Crop, Rotate Anti Clockwize, Rotate Clockwize, Flip Images Vertically, Flip Images Horizontally, Restore Images, Watermarking.
|
211 |
* Photo Gallery Widget to embed all WordPress gallery shortcodes.
|
212 |
* 24/7 Technical Support
|
213 |
|
214 |
+
The gallery is completely customizable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones). You will be able to insert it in any page or post you want with inbuilt short code generator.
|
215 |
+
|
216 |
+
For an even more personal and compelling gallery experience, you can add special effects to your photos. This comprehensive **gallery plugin** also allows you to integrate a bundle of beautiful free and premium lightbox options to your **WordPress Gallery**, to define how your photos display after a thumbnail click. Mobile friendly and retina ready, Gallery Bank gives you complete confidence that your gallery will perform flawlessly on any device, orientation or pixel density.
|
217 |
+
|
218 |
Visit [here](https://gallery-bank.tech-banker.com/) to upgrade to Premium Editions now.
|
219 |
|
220 |
Gallery Bank uses [FooBox](https://WordPress.org/plugins/foobox-image-lightbox/) as its default gallery lightbox which is licensed under GPL V2 or later.
|
2408 |
|
2409 |
== Changelog ==
|
2410 |
|
2411 |
+
= 4.0.7 =
|
2412 |
+
|
2413 |
+
* FIX: Layout Bugs
|
2414 |
+
* TWEAK: Video Gallery Added in Premium Editions
|
2415 |
+
|
2416 |
= 4.0.6 =
|
2417 |
|
2418 |
* TWEAK: Wizard Section Renoved Completely
|
user-views/layouts/compact-album-layout/compact-album-layout.php
CHANGED
@@ -15,9 +15,10 @@ if (!defined("ABSPATH")) {
|
|
15 |
if (isset($gallery_data_unserialize)) {
|
16 |
if (count($gallery_data_unserialize) > 0) {
|
17 |
foreach ($gallery_data_unserialize as $gallery) {
|
|
|
18 |
?>
|
19 |
<div id="grid_wrapper_item_album_<?php echo $random . "_" . $gallery["id"]; ?>" class="compact_album_grid_wrapper_item gb_animate" data-animate="<?php echo isset($animation_effects) ? $animation_effects : 'none'; ?>" data-duration="1.0s" data-delay="0.1s" data-offset="100">
|
20 |
-
<a href="<?php echo
|
21 |
<div id="grid_item_album_image_<?php echo $random . "_" . $gallery["id"]; ?>" class="compact_album_grid_item_image_<?php echo $random; ?>" style="background:url('<?php echo GALLERY_BANK_THUMBS_CROPPED_URL . esc_attr($gallery["gallery_cover_image"]); ?>');">
|
22 |
<img src="<?php echo GALLERY_BANK_THUMBS_CROPPED_URL . esc_attr($gallery["gallery_cover_image"]); ?>"/>
|
23 |
</div>
|
@@ -26,7 +27,7 @@ if (!defined("ABSPATH")) {
|
|
26 |
<?php
|
27 |
if ($gallery_title == "show" && $gallery["gallery_title"] != "") {
|
28 |
?>
|
29 |
-
<a
|
30 |
<<?php echo isset($compact_album_layout_settings["compact_album_layout_gallery_title_html_tag"]) ? esc_attr($compact_album_layout_settings["compact_album_layout_gallery_title_html_tag"]) : "h3"; ?>>
|
31 |
<?php echo isset($gallery["gallery_title"]) ? htmlspecialchars_decode($gallery["gallery_title"]) : ""; ?>
|
32 |
</<?php echo isset($compact_album_layout_settings["compact_album_layout_gallery_title_html_tag"]) ? esc_attr($compact_album_layout_settings["compact_album_layout_gallery_title_html_tag"]) : "h3"; ?>>
|
@@ -35,7 +36,7 @@ if (!defined("ABSPATH")) {
|
|
35 |
}
|
36 |
if ($gallery_description == "show" && $gallery["gallery_description"] != "") {
|
37 |
?>
|
38 |
-
<a
|
39 |
<<?php echo isset($compact_album_layout_settings["compact_album_layout_gallery_description_html_tag"]) ? esc_attr($compact_album_layout_settings["compact_album_layout_gallery_description_html_tag"]) : "p"; ?>>
|
40 |
<?php echo isset($gallery["gallery_description"]) ? htmlspecialchars_decode($gallery["gallery_description"]) : ""; ?>
|
41 |
</<?php echo isset($compact_album_layout_settings["compact_album_layout_gallery_description_html_tag"]) ? esc_attr($compact_album_layout_settings["compact_album_layout_gallery_description_html_tag"]) : "p"; ?>>
|
15 |
if (isset($gallery_data_unserialize)) {
|
16 |
if (count($gallery_data_unserialize) > 0) {
|
17 |
foreach ($gallery_data_unserialize as $gallery) {
|
18 |
+
$redirect_url = esc_url(add_query_arg(array("type" => "gallery","gallery_id" => intval($gallery["old_gallery_id"]))));
|
19 |
?>
|
20 |
<div id="grid_wrapper_item_album_<?php echo $random . "_" . $gallery["id"]; ?>" class="compact_album_grid_wrapper_item gb_animate" data-animate="<?php echo isset($animation_effects) ? $animation_effects : 'none'; ?>" data-duration="1.0s" data-delay="0.1s" data-offset="100">
|
21 |
+
<a href="<?php echo $redirect_url; ?>">
|
22 |
<div id="grid_item_album_image_<?php echo $random . "_" . $gallery["id"]; ?>" class="compact_album_grid_item_image_<?php echo $random; ?>" style="background:url('<?php echo GALLERY_BANK_THUMBS_CROPPED_URL . esc_attr($gallery["gallery_cover_image"]); ?>');">
|
23 |
<img src="<?php echo GALLERY_BANK_THUMBS_CROPPED_URL . esc_attr($gallery["gallery_cover_image"]); ?>"/>
|
24 |
</div>
|
27 |
<?php
|
28 |
if ($gallery_title == "show" && $gallery["gallery_title"] != "") {
|
29 |
?>
|
30 |
+
<a href="<?php echo $redirect_url; ?>" id="grid_album_single_text_title_<?php echo $random . "_" . $gallery["id"]; ?>" class="compact_album_grid_single_text_title">
|
31 |
<<?php echo isset($compact_album_layout_settings["compact_album_layout_gallery_title_html_tag"]) ? esc_attr($compact_album_layout_settings["compact_album_layout_gallery_title_html_tag"]) : "h3"; ?>>
|
32 |
<?php echo isset($gallery["gallery_title"]) ? htmlspecialchars_decode($gallery["gallery_title"]) : ""; ?>
|
33 |
</<?php echo isset($compact_album_layout_settings["compact_album_layout_gallery_title_html_tag"]) ? esc_attr($compact_album_layout_settings["compact_album_layout_gallery_title_html_tag"]) : "h3"; ?>>
|
36 |
}
|
37 |
if ($gallery_description == "show" && $gallery["gallery_description"] != "") {
|
38 |
?>
|
39 |
+
<a href="<?php echo $redirect_url; ?>" id="grid_album_single_text_desc_<?php echo $random . "_" . $gallery["id"]; ?>" class="compact_album_grid_single_text_desc">
|
40 |
<<?php echo isset($compact_album_layout_settings["compact_album_layout_gallery_description_html_tag"]) ? esc_attr($compact_album_layout_settings["compact_album_layout_gallery_description_html_tag"]) : "p"; ?>>
|
41 |
<?php echo isset($gallery["gallery_description"]) ? htmlspecialchars_decode($gallery["gallery_description"]) : ""; ?>
|
42 |
</<?php echo isset($compact_album_layout_settings["compact_album_layout_gallery_description_html_tag"]) ? esc_attr($compact_album_layout_settings["compact_album_layout_gallery_description_html_tag"]) : "p"; ?>>
|
user-views/layouts/masonry-layout/masonry-layout.php
CHANGED
@@ -22,7 +22,7 @@ if (!defined("ABSPATH")) {
|
|
22 |
$no_lightbox_imageurl = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "1" ? "" : (isset($pic["redirect_url"]) ? esc_attr($pic["redirect_url"]) : "");
|
23 |
$enable_redirect = $pic["enable_redirect"];
|
24 |
$imageurl = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "1" ? GALLERY_BANK_ORIGINAL_URL . esc_attr($pic["image_name"]) : (isset($pic["redirect_url"]) ? esc_attr($pic["redirect_url"]) : "");
|
25 |
-
$target = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "0" ? '_blank' : '';
|
26 |
if (isset($lightbox_type)) {
|
27 |
switch ($lightbox_type) {
|
28 |
case "no_lightbox" :
|
22 |
$no_lightbox_imageurl = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "1" ? "" : (isset($pic["redirect_url"]) ? esc_attr($pic["redirect_url"]) : "");
|
23 |
$enable_redirect = $pic["enable_redirect"];
|
24 |
$imageurl = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "1" ? GALLERY_BANK_ORIGINAL_URL . esc_attr($pic["image_name"]) : (isset($pic["redirect_url"]) ? esc_attr($pic["redirect_url"]) : "");
|
25 |
+
$target = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "0" && $pic["enable_redirect"] != "" ? '_blank' : '';
|
26 |
if (isset($lightbox_type)) {
|
27 |
switch ($lightbox_type) {
|
28 |
case "no_lightbox" :
|
user-views/layouts/thumbnail-layout/thumbnail-layout.php
CHANGED
@@ -18,7 +18,7 @@ if (!defined("ABSPATH")) {
|
|
18 |
$no_lightbox_imageurl = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "1" ? "" : (isset($pic["redirect_url"]) ? esc_attr($pic["redirect_url"]) : "");
|
19 |
$enable_redirect = $pic["enable_redirect"];
|
20 |
$imageurl = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "1" ? GALLERY_BANK_ORIGINAL_URL . esc_attr($pic["image_name"]) : (isset($pic["redirect_url"]) ? esc_attr($pic["redirect_url"]) : "");
|
21 |
-
$target = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "0" ? "_blank" : "";
|
22 |
?>
|
23 |
<div id="grid_wrapper_item_<?php echo $random . "_" . $pic["id"]; ?>" class="grid_wrapper_item gb_animate" data-animate="<?php echo isset($animation_effects) ? $animation_effects : 'none'; ?>" data-duration="1.0s" data-delay="0.1s" data-offset="100">
|
24 |
<?php
|
18 |
$no_lightbox_imageurl = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "1" ? "" : (isset($pic["redirect_url"]) ? esc_attr($pic["redirect_url"]) : "");
|
19 |
$enable_redirect = $pic["enable_redirect"];
|
20 |
$imageurl = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "1" ? GALLERY_BANK_ORIGINAL_URL . esc_attr($pic["image_name"]) : (isset($pic["redirect_url"]) ? esc_attr($pic["redirect_url"]) : "");
|
21 |
+
$target = isset($pic["enable_redirect"]) && $pic["enable_redirect"] != "0" && $pic["enable_redirect"] != "" ? "_blank" : "";
|
22 |
?>
|
23 |
<div id="grid_wrapper_item_<?php echo $random . "_" . $pic["id"]; ?>" class="grid_wrapper_item gb_animate" data-animate="<?php echo isset($animation_effects) ? $animation_effects : 'none'; ?>" data-duration="1.0s" data-delay="0.1s" data-offset="100">
|
24 |
<?php
|
views/galleries/add-gallery.php
CHANGED
@@ -160,6 +160,11 @@ if (!is_user_logged_in()) {
|
|
160 |
<?php echo $gb_add_gallery_upload_from_ftp; ?>
|
161 |
</a>
|
162 |
</li>
|
|
|
|
|
|
|
|
|
|
|
163 |
</ul>
|
164 |
<div class="tab-content">
|
165 |
<div class="tab-pane active" id="local_system">
|
@@ -194,6 +199,21 @@ if (!is_user_logged_in()) {
|
|
194 |
<button class="btn vivid-green" type="button" onclick="premium_edition_notification_gallery_bank();"><?php echo $gb_add_gallery_import_images; ?></button>
|
195 |
</div>
|
196 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
</div>
|
198 |
</div>
|
199 |
</div>
|
160 |
<?php echo $gb_add_gallery_upload_from_ftp; ?>
|
161 |
</a>
|
162 |
</li>
|
163 |
+
<li class="">
|
164 |
+
<a aria-expanded="false" href="#upload_videos" data-toggle="tab">
|
165 |
+
<?php echo $gb_add_gallery_upload_videos; ?>
|
166 |
+
</a>
|
167 |
+
</li>
|
168 |
</ul>
|
169 |
<div class="tab-content">
|
170 |
<div class="tab-pane active" id="local_system">
|
199 |
<button class="btn vivid-green" type="button" onclick="premium_edition_notification_gallery_bank();"><?php echo $gb_add_gallery_import_images; ?></button>
|
200 |
</div>
|
201 |
</div>
|
202 |
+
<div class="tab-pane" id="upload_videos">
|
203 |
+
<div class="form-group">
|
204 |
+
<h4>Give the URL to upload video</h4>
|
205 |
+
</div>
|
206 |
+
<div class="form-group">
|
207 |
+
<label><?php echo $gb_add_gallery_videos_url; ?> :
|
208 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_add_gallery_video_url_tooltip; ?>" data-placement="right"></i>
|
209 |
+
<span class="required" aria-required="true">* <?php echo " ( ".$gb_premium_edition." )";?></span>
|
210 |
+
</label>
|
211 |
+
<input type="text" id="ux_text_videos_url" name="ux_text_videos_url" class="form-control" placeholder="<?php echo $gb_add_gallery_videos_url_placeholder; ?>" value="">
|
212 |
+
</div>
|
213 |
+
<div class="form-group" style="text-align:right">
|
214 |
+
<input type="button" class="btn vivid-green" value="<?php echo $gb_add_gallery_embed_video; ?>" onclick="premium_edition_notification_gallery_bank();">
|
215 |
+
</div>
|
216 |
+
</div>
|
217 |
</div>
|
218 |
</div>
|
219 |
</div>
|