Version Description
- 09.05.2018 =
- Fixed: IGW broken with Chrome 69+
Download this release
Release Info
Developer | photocrati |
Plugin | NextGEN Gallery – WordPress Gallery Plugin |
Version | 3.0.8 |
Comparing to | |
See all releases |
Code changes from version 3.0.6 to 3.0.8
- changelog.txt +3 -0
- nggallery.php +4 -4
- products/photocrati_nextgen/modules/attach_to_post/module.attach_to_post.php +1 -1
- products/photocrati_nextgen/modules/attach_to_post/package.module.attach_to_post.php +1 -1
- products/photocrati_nextgen/modules/attach_to_post/static/attach_to_post.css +12 -3
- products/photocrati_nextgen/modules/attach_to_post/static/attach_to_post.js +10 -1
- products/photocrati_nextgen/modules/attach_to_post/static/attach_to_post.min.css +1 -1
- products/photocrati_nextgen/modules/attach_to_post/static/attach_to_post.min.js +1 -1
- products/photocrati_nextgen/modules/attach_to_post/static/ngg_tabs.js +14 -8
- products/photocrati_nextgen/modules/attach_to_post/static/ngg_tabs.min.js +1 -1
- readme.txt +5 -2
changelog.txt
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
NextGEN Gallery
|
2 |
by Imagely
|
3 |
|
|
|
|
|
|
|
4 |
= V3.0.6 - 07.24.2018 =
|
5 |
* NEW: Added 'ngg_gallery_title_select_field' filter
|
6 |
* NEW: Danish translations
|
1 |
NextGEN Gallery
|
2 |
by Imagely
|
3 |
|
4 |
+
= V3.0.8 - 09.05.2018 =
|
5 |
+
* Fixed: IGW broken with Chrome 69+
|
6 |
+
|
7 |
= V3.0.6 - 07.24.2018 =
|
8 |
* NEW: Added 'ngg_gallery_title_select_field' filter
|
9 |
* NEW: Danish translations
|
nggallery.php
CHANGED
@@ -4,7 +4,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
|
|
4 |
/**
|
5 |
* Plugin Name: NextGEN Gallery
|
6 |
* Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 22 million downloads.
|
7 |
-
* Version: 3.0.
|
8 |
* Author: Imagely
|
9 |
* Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
|
10 |
* Author URI: https://www.imagely.com
|
@@ -81,7 +81,7 @@ class C_NextGEN_Bootstrap
|
|
81 |
var $_pope_loaded = FALSE;
|
82 |
static $debug = FALSE;
|
83 |
var $minimum_ngg_pro_version = '2.0.5';
|
84 |
-
|
85 |
|
86 |
static function shutdown($exception=NULL)
|
87 |
{
|
@@ -663,7 +663,7 @@ class C_NextGEN_Bootstrap
|
|
663 |
define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
|
664 |
define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
|
665 |
define('NGG_PLUGIN_STARTED_AT', microtime());
|
666 |
-
define('NGG_PLUGIN_VERSION', '3.0.
|
667 |
|
668 |
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
|
669 |
define('NGG_SCRIPT_VERSION', (string)mt_rand(0, mt_getrandmax()));
|
@@ -1048,4 +1048,4 @@ ngg_fs();
|
|
1048 |
|
1049 |
#endregion Freemius
|
1050 |
|
1051 |
-
new C_NextGEN_Bootstrap();
|
4 |
/**
|
5 |
* Plugin Name: NextGEN Gallery
|
6 |
* Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 22 million downloads.
|
7 |
+
* Version: 3.0.8
|
8 |
* Author: Imagely
|
9 |
* Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
|
10 |
* Author URI: https://www.imagely.com
|
81 |
var $_pope_loaded = FALSE;
|
82 |
static $debug = FALSE;
|
83 |
var $minimum_ngg_pro_version = '2.0.5';
|
84 |
+
var $minimum_ngg_plus_version = '1.0.1';
|
85 |
|
86 |
static function shutdown($exception=NULL)
|
87 |
{
|
663 |
define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
|
664 |
define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
|
665 |
define('NGG_PLUGIN_STARTED_AT', microtime());
|
666 |
+
define('NGG_PLUGIN_VERSION', '3.0.8');
|
667 |
|
668 |
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
|
669 |
define('NGG_SCRIPT_VERSION', (string)mt_rand(0, mt_getrandmax()));
|
1048 |
|
1049 |
#endregion Freemius
|
1050 |
|
1051 |
+
new C_NextGEN_Bootstrap();
|
products/photocrati_nextgen/modules/attach_to_post/module.attach_to_post.php
CHANGED
@@ -25,7 +25,7 @@ class M_Attach_To_Post extends C_Base_Module
|
|
25 |
'photocrati-attach_to_post',
|
26 |
'Attach To Post',
|
27 |
'Provides the "Attach to Post" interface for displaying galleries and albums',
|
28 |
-
'3.0.
|
29 |
'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',
|
30 |
'Imagely',
|
31 |
'https://www.imagely.com',
|
25 |
'photocrati-attach_to_post',
|
26 |
'Attach To Post',
|
27 |
'Provides the "Attach to Post" interface for displaying galleries and albums',
|
28 |
+
'3.0.3',
|
29 |
'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',
|
30 |
'Imagely',
|
31 |
'https://www.imagely.com',
|
products/photocrati_nextgen/modules/attach_to_post/package.module.attach_to_post.php
CHANGED
@@ -506,7 +506,7 @@ class Mixin_Attach_To_Post extends Mixin
|
|
506 |
wp_enqueue_script('photocrati_ajax');
|
507 |
// Enqueue logic for the Attach to Post interface as a whole
|
508 |
wp_enqueue_script('ngg_attach_to_post_js', $this->get_static_url('photocrati-attach_to_post#attach_to_post.js'), FALSE, NGG_SCRIPT_VERSION);
|
509 |
-
wp_enqueue_style('ngg_attach_to_post', $this->get_static_url('photocrati-attach_to_post#attach_to_post.css'), FALSE,
|
510 |
wp_dequeue_script('debug-bar-js');
|
511 |
wp_dequeue_style('debug-bar-css');
|
512 |
$this->enqueue_display_tab_js();
|
506 |
wp_enqueue_script('photocrati_ajax');
|
507 |
// Enqueue logic for the Attach to Post interface as a whole
|
508 |
wp_enqueue_script('ngg_attach_to_post_js', $this->get_static_url('photocrati-attach_to_post#attach_to_post.js'), FALSE, NGG_SCRIPT_VERSION);
|
509 |
+
wp_enqueue_style('ngg_attach_to_post', $this->get_static_url('photocrati-attach_to_post#attach_to_post.css'), FALSE, C_Component_Registry::get_instance()->get_module('photocrati-attach_to_post')->module_version);
|
510 |
wp_dequeue_script('debug-bar-js');
|
511 |
wp_dequeue_style('debug-bar-css');
|
512 |
$this->enqueue_display_tab_js();
|
products/photocrati_nextgen/modules/attach_to_post/static/attach_to_post.css
CHANGED
@@ -111,6 +111,15 @@ iframe {
|
|
111 |
background: transparent;
|
112 |
}
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
.clear {
|
115 |
clear: both;
|
116 |
float: none;
|
@@ -177,7 +186,7 @@ table {
|
|
177 |
background: transparent;
|
178 |
padding: 0;
|
179 |
margin-top: 90px;
|
180 |
-
list-style:
|
181 |
}
|
182 |
|
183 |
#attach_to_post_tabs .ui-tabs-nav li {
|
@@ -209,11 +218,11 @@ table {
|
|
209 |
/* The next couple of rules are all a workaround to disable the "Insert Into Page" tab just for iOS */
|
210 |
/* TODO: consolidate when plupload is upgraded */
|
211 |
#attach_to_post_tabs ul.ui-tabs-nav li:nth-of-type(1) {
|
212 |
-
list-style:
|
213 |
border-top: 1px solid #344a59;
|
214 |
}
|
215 |
#attach_to_post_tabs:not(.ngg_atp_ios_detected) ul.ui-tabs-nav li:nth-of-type(2) {
|
216 |
-
list-style:
|
217 |
}
|
218 |
|
219 |
#attach_to_post_tabs:not(.ngg_atp_ios_detected) ul.ui-tabs-nav li:nth-of-type(1) a {
|
111 |
background: transparent;
|
112 |
}
|
113 |
|
114 |
+
.chrome_70_hack_frames {
|
115 |
+
z-index: 100000000 !important;
|
116 |
+
}
|
117 |
+
|
118 |
+
.chrome_70_hack_noframes {
|
119 |
+
z-index: 0 !important;
|
120 |
+
}
|
121 |
+
|
122 |
+
|
123 |
.clear {
|
124 |
clear: both;
|
125 |
float: none;
|
186 |
background: transparent;
|
187 |
padding: 0;
|
188 |
margin-top: 90px;
|
189 |
+
list-style: none;
|
190 |
}
|
191 |
|
192 |
#attach_to_post_tabs .ui-tabs-nav li {
|
218 |
/* The next couple of rules are all a workaround to disable the "Insert Into Page" tab just for iOS */
|
219 |
/* TODO: consolidate when plupload is upgraded */
|
220 |
#attach_to_post_tabs ul.ui-tabs-nav li:nth-of-type(1) {
|
221 |
+
list-style: none;
|
222 |
border-top: 1px solid #344a59;
|
223 |
}
|
224 |
#attach_to_post_tabs:not(.ngg_atp_ios_detected) ul.ui-tabs-nav li:nth-of-type(2) {
|
225 |
+
list-style: none;
|
226 |
}
|
227 |
|
228 |
#attach_to_post_tabs:not(.ngg_atp_ios_detected) ul.ui-tabs-nav li:nth-of-type(1) a {
|
products/photocrati_nextgen/modules/attach_to_post/static/attach_to_post.js
CHANGED
@@ -97,7 +97,16 @@ jQuery(function($) {
|
|
97 |
}
|
98 |
|
99 |
// Activate tabs
|
100 |
-
$('#attach_to_post_tabs').ngg_tabs(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
// If the preview area is being displayed, emit an event for that
|
103 |
$('.ngg_page_content_menu a').bind('click', function(){
|
97 |
}
|
98 |
|
99 |
// Activate tabs
|
100 |
+
$('#attach_to_post_tabs').ngg_tabs({
|
101 |
+
onShowTab: function(tab) {
|
102 |
+
// Fix z-index problem with frames and non-frames on Chrome 69/70
|
103 |
+
if (navigator.appVersion.match(/Chrome\/(69|7)/)) {
|
104 |
+
tab.attr('id') != 'displayed_tab' ?
|
105 |
+
$('#attach_to_post_tabs').addClass('chrome_70_hack_frames').removeClass('chrome_70_hack_noframes') :
|
106 |
+
$('#attach_to_post_tabs').removeClass('chrome_70_hack_frames').addClass('chrome_70_hack_noframes')
|
107 |
+
}
|
108 |
+
}
|
109 |
+
});
|
110 |
|
111 |
// If the preview area is being displayed, emit an event for that
|
112 |
$('.ngg_page_content_menu a').bind('click', function(){
|
products/photocrati_nextgen/modules/attach_to_post/static/attach_to_post.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
body,html{width:100%;height:100%;padding:0;margin:0;font-size:13px;overflow:hidden}body{position:absolute;visibility:hidden;opacity:0;height:100%}.entity_errors{color:red}.entity_errors ul{margin-left:30px}.entity_errors ul li{list-style-type:disc}.ui-helper-reset{font-size:13px}#attach_to_post_tabs{border:0;background:0 0;height:100%;overflow:hidden;padding:0;position:relative;visibility:visible}#attach_to_post_tabs #attach_to_post_tabs.ui-tabs-hide{display:block!important;visibility:hidden;position:absolute;top:-5000px}#attach_to_post_tabs h3{text-transform:uppercase;color:#666;margin-top:0}h3#choose_display{margin-bottom:24px}#attach_to_post_tabs .main_menu_tab{padding:0;position:absolute;left:220px;right:0;top:0;bottom:0}#attach_to_post_tabs.ngg_atp_ios_detected{overflow-y:scroll;-webkit-overflow-scrolling:touch}#attach_to_post_tabs .ui-widget-header{border:0;border-bottom:1px solid #dfdfdf;background:0 0}iframe{width:100%;min-height:100%;border:none;padding:0;margin:0;background:0 0}.clear{clear:both;float:none}table{font-size:13px}.select2-search input{width:100%!important}.select2-result-label{white-space:nowrap}.select2-results{font-family:'segoe ui',Arial,sans-serif;font-size:13px}.select2-container a{color:#444!important}#ngg_page_content .ngg_page_content_main .select2-container{width:100%!important;max-width:500px!important}#attach_to_post_tabs .ui-tabs-icon{background:#133148;border-right:1px solid #9cbe1b;box-sizing:border-box;color:#fff;font-family:Lato,sans-serif;float:none;font-size:20px;font-weight:700;height:100%;letter-spacing:1px;line-height:60px;margin-bottom:0;position:fixed;padding:10px 25px 30px 10px;text-transform:uppercase;width:220px;padding:0}#attach_to_post_tabs img.attach_to_post_logo{height:45px;padding:20px 0 10px;float:right;margin-right:26px}#attach_to_post_tabs .ui-tabs-nav{border:none;background:0 0;padding:0;margin-top:90px;list-style:ordered}#attach_to_post_tabs .ui-tabs-nav li{background:0 0;border:none;display:block;height:auto;margin:0;padding:0;width:100%;border-radius:0;box-sizing:border-box;border-bottom:1px solid #344a59;padding:24px 30px 24px 20px}#attach_to_post_tabs .ui-tabs-nav li.ui-tabs-active{background:#2b4d65;background:#9dbd1b}#attach_to_post_tabs .ui-tabs-nav li.active,#attach_to_post_tabs .ui-tabs-nav li.ui-state-active,#attach_to_post_tabs .ui-tabs-nav li.ui-state-focus,#attach_to_post_tabs .ui-tabs-nav li:focus{outline:0}#attach_to_post_tabs ul.ui-tabs-nav li:nth-of-type(1){list-style:ordered;border-top:1px solid #344a59}#attach_to_post_tabs:not(.ngg_atp_ios_detected) ul.ui-tabs-nav li:nth-of-type(2){list-style:ordered}#attach_to_post_tabs:not(.ngg_atp_ios_detected) ul.ui-tabs-nav li:nth-of-type(1) a{display:list-item}#attach_to_post_tabs ul.ui-tabs-nav li:nth-of-type(2) a{display:list-item}#attach_to_post_tabs .ui-tabs-nav li a{color:#fff;float:right;font-size:16px;letter-spacing:0;line-height:1;padding:10px 5px 5px 0!important;text-transform:none;font-family:lato,sans-serif;text-transform:uppercase;font-size:13px;letter-spacing:1px;font-weight:700;padding:0!important;font-size:12px;letter-spacing:1.2px}#attach_to_post_tabs .ui-tabs-nav li.ui-state-disabled a,#attach_to_post_tabs .ui-tabs-nav li.ui-tabs-active a,#attach_to_post_tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:pointer}#attach_to_post_tabs .ui-tabs-nav li a.active_tab::before{border-right:solid .75em #fff;border-top:solid 1.2em transparent;border-bottom:solid 1.2em transparent;content:'';position:absolute;top:16px;right:-3px}#attach_to_post_tabs .ui-tabs-nav li a.active_tab{color:#fff;font-weight:800}#displayed_tab.main_menu_tab{overflow-y:scroll;overflow-x:hidden}#displayed_tab #ngg_page_content{margin:0;width:100%}#displayed_tab #attach_to_post_tabs .ngg_page_content_header{display:none}#displayed_tab #ngg_page_content .ngg_page_content_menu{background:0 0;border:none;padding:10px 20px 10px 0;float:none;height:25px;margin-top:0;width:auto;border-bottom:1px solid #ddd;background:#fafafa}#displayed_tab #ngg_page_content .ngg_page_content_menu a,#displayed_tab #ngg_page_content .ngg_page_content_menu a:active{border:none;color:#888;display:inline;font-size:14px;font-weight:400;text-decoration:none;line-height:25px;padding:15px 20px;font-size:12px;background:0 0}#displayed_tab #ngg_page_content .ngg_page_content_menu .ngg_page_content_menu_active{background:0 0;font-weight:700;color:#123248;border-left:1px solid #ddd;border-right:1px solid #ddd;border-bottom:2px solid #fff;background:#fff}#displayed_tab #ngg_page_content .ngg_page_content_menu a:active:after{display:none}#displayed_tab #ngg_page_content .ngg_page_content_menu a:before{display:none}#displayed_tab #ngg_page_content .ngg_page_content_main{padding:30px;width:100%;box-shadow:none}#displayed_tab #ngg_page_content.ngg_settings_page{border:none}#displayed_tab .ngg_igw_promo{display:block!important;padding:10px 20px;position:relative;top:-187px;left:608px;background:#123248;color:#fff;border-bottom:5px solid #9ebc1b;font-family:Lato,sans-serif;letter-spacing:.5px;box-sizing:border-box;width:200px;height:172px;margin-bottom:-170px}#displayed_tab .ngg_igw_promo a{text-decoration:none;font-weight:600}#displayed_tab .ngg_igw_coupon{font-size:12px;margin-top:10px;margin-top:47px;color:#7298b1}#attach_to_post_tabs #displayed_tab #ngg_page_content .ngg_page_content_main>div.ngg_igw_video{display:block!important;position:absolute;left:175px;top:69px}#displayed_tab .ngg_igw_video_open{background:#9ebc1b;color:#fff;cursor:pointer;font-family:Lato,sans-serif;font-size:13px;margin:0;padding:8px 10px}#displayed_tab .ngg_igw_video_inner{display:none;box-shadow:0 0 10px 5px rgba(0,0,0,.2);background:#fff}#displayed_tab .ngg_igw_video_close{color:#9ebc1b;width:100%;height:50px;display:block;background:#123248;text-align:center;line-height:50px;font-size:15px;font-weight:700;cursor:pointer;font-family:Lato,sans-serif;letter-spacing:.5px;background:#9ebc1b;color:#fff}#displayed_tab .ngg_igw_video iframe{width:525px;height:295px!important;min-height:auto;margin-bottom:-3px}#displayed_tab #displayed_gallery_source{width:400px}#displayed_tab #display_tip{color:rgba(42,52,61,.6);display:block;font-size:14px;width:960px;max-width:100%;padding:10px 0 0}#displayed_tab #slug_configuration{display:none}#displayed_tab #slug_configuration td,#displayed_tab #source_configuration td{vertical-align:top;padding:4px 0!important;min-width:200px}#displayed_tab #source_configuration label{color:#777!important;font-size:13px!important}#attach_to_post_tabs #displayed_tab #ngg_page_content #source_configuration tr td:first-of-type{white-space:normal;line-height:1.2;width:265px}#displayed_tab #ngg_page_content .select2-container{width:250px!important;line-height:20px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#9fbb1a}#displayed_tab #slug_configuration #slug_label{width:52px}#displayed_tab #slug_configuration #slug_column input[type=text]{width:498px}#displayed_tab #display_type_selector{margin-top:14px}#displayed_tab .display_type_preview{float:left;margin:0 5px 5px 0;border:1px solid #ddd;background:#fff;width:145px;height:170px}#displayed_tab .display_type_preview .image_container{width:100%;vertical-align:middle;text-align:center;font-size:12px;font-weight:500;padding:8px;box-sizing:border-box}#displayed_tab .display_type_preview .image_container img{margin-top:10px;margin-bottom:10px;box-sizing:border-box;max-width:100px}#displayed_tab .display_type_preview .image_container p{display:inline-block}.display_type_preview label>div{font-size:12px}#displayed_tab .select2-chosen{color:#666!important}#ngg_page_content #save_displayed_gallery.button{font-weight:700;height:50px!important;line-height:50px!important;padding:0 30px!important;font-size:13px}#display_settings_tab #display_settings_form table tr td:first-child{vertical-align:top;text-align:right;padding-right:7px;width:180px}#display_settings_tab #display_settings_form table td{text-align:left}#display_settings_tab #display_settings_form table textarea{height:60px}#display_settings_tab #display_settings_form input[type=number],#display_settings_tab #display_settings_form input[type=text],#display_settings_tab #display_settings_form select,#display_settings_tab #display_settings_form textarea{width:157px}#display_settings_tab #display_settings_form .ngg_slideshow_gallery_height,#display_settings_tab #display_settings_form .ngg_slideshow_gallery_width,#display_settings_tab #display_settings_form .ngg_thumbnail_dimension_height,#display_settings_tab #display_settings_form .ngg_thumbnail_dimension_width{width:65px!important}#display_settings_tab #display_settings_form .nextgen_settings_colorpicker{width:85px!important;text-align:center}h3#preview_tab{margin-bottom:0}#preview_tab_content{padding:10px 0}#preview_tab_content a{text-decoration:none;font-weight:300}#preview_tab_content .previewed_entity{width:100%;border-bottom:solid 1px #e0e0d6;background-color:#fafaf0}#preview_tab_content .previewed_entity .container{padding-top:15px}#preview_tab_content .previewed_entity.header{background-color:#f0f0e6;padding-bottom:5px;padding-top:5px}#preview_tab_content .header label{font-size:12px;color:#649664;font-weight:600}#preview_tab_content .ui-sortable-helper{background:0 0}#preview_tab_content ul{list-style-type:none;display:block;padding:0;position:relative;margin-top:20px}#preview_tab_content .inclusion_checkbox{margin-right:7px;display:block;float:left}#preview_tab_content .preview_item{background-color:#fff;width:100px;padding:10px 10px 30px 10px;margin:0 5px 5px 0;border:solid 1px #eee;display:block;vertical-align:middle;text-align:center;position:relative}#preview_tab_content .image_container{background-repeat:no-repeat;background-position:center;background-size:cover;display:block;width:100%;height:75px}#preview_tab_content .image_container img{border:0}#preview_tab_content #entity_list li{float:left}#preview_tab_content #entity_list .ui-state-default{background:0 0;border:none}#preview_tab_content .placeholder{background-color:#e0ddc1;position:relative}#preview_tab_content #entity_list .exclude_container{background:#fff;display:block;text-align:center;margin:0 auto;color:#000;font-weight:400;height:1.4em;line-height:1.1em;font-size:.8em;position:absolute;bottom:.2em;left:0;width:100%;padding:5px 0}#preview_tab_content #entity_list .exclude_container input{vertical-align:middle;line-height:1.2em;margin:0 .5em}#preview_tab_content .header_row{margin-bottom:5px;font-weight:300}#preview_tab_content .header_row strong{width:70px;display:inline-block}#preview_tab_content .header_row .separator{display:inline-block;margin:0 5px}#preview_tab_content .header_row .selected{font-weight:700}#preview_tab_content #entity_list li.clear{float:none;clear:both}#preview_tab_content .refresh_button{float:right}@media (max-width:1120px){#displayed_tab .ngg_igw_promo{position:static;width:602px;height:125px;max-width:100%;margin-bottom:10px}#displayed_tab .ngg_igw_coupon{margin-top:10px}#attach_to_post_tabs #displayed_tab #ngg_page_content .ngg_page_content_main>div.ngg_igw_video,#displayed_tab .ngg_igw_video_inner{display:none!important}}@media (max-width:800px){#attach_to_post_tabs .ui-tabs-icon{width:100%;position:static;border-right:none;border-bottom:3px solid #9fbb1a;text-align:center;height:150px;padding:20px}#attach_to_post_tabs img.attach_to_post_logo{display:none}#attach_to_post_tabs .ui-tabs-nav{margin-top:0}#attach_to_post_tabs .ui-tabs-nav li{padding:5px;list-style:none!important;border-bottom:none;border-top:none!important}#attach_to_post_tabs .ui-tabs-nav li.ui-tabs-active{background:0 0}#attach_to_post_tabs:not(.ngg_atp_ios_detected) .ui-tabs-nav li:nth-of-type(2)::after{display:none}#attach_to_post_tabs .ui-tabs-nav li a{float:none;padding:0!important;font-weight:400}#attach_to_post_tabs .ui-tabs-nav li a.active_tab{color:#9ebc1b}#attach_to_post_tabs .ui-tabs-nav li a.active_tab::before{display:none}#attach_to_post_tabs .main_menu_tab{margin-left:0;min-height:auto;position:absolute;top:150px;right:0;left:0;bottom:0;height:auto}#displayed_tab #ngg_page_content .ngg_page_content_menu{padding:5px 0 0;background:0 0;border:none}#displayed_tab #ngg_page_content .ngg_page_content_menu a{display:block;width:100%;float:left;padding:0;text-align:center;box-sizing:border-box}#displayed_tab #ngg_page_content .ngg_page_content_menu .ngg_page_content_menu_active,#displayed_tab #ngg_page_content .ngg_page_content_menu a:active{background:0 0}#displayed_tab #ngg_page_content .ngg_page_content_menu .ngg_page_content_menu_active:after{display:none}#displayed_tab #ngg_page_content .ngg_page_content_menu a:last-of-type{padding-bottom:5px}#displayed_tab #slug_configuration tr,#displayed_tab #source_configuration tr{margin-bottom:24px}#ngg_page_content #save_displayed_gallery.button{position:static;margin-left:0;padding:0}}@media (max-width:781px){#attach_to_post_tabs.ngg_atp_ios_detected .ui-tabs-nav li:nth-of-type(1)::after{display:none}#attach_to_post_tabs #displayed_tab #ngg_page_content .ngg_page_content_main table tr td{width:100%!important}#attach_to_post_tabs #displayed_tab #ngg_page_content .ngg_page_content_main #source_configuration{display:table!important}#attach_to_post_tabs #displayed_tab #ngg_page_content .ngg_page_content_main #source_configuration tbody{display:table-row-group!important}#displayed_tab #ngg_page_content .responsive-menu-icon{padding:10px 0 15px!important}}@media (max-width:400px){#displayed_tab .display_type_preview{float:none;margin:20px auto;width:170px}}
|
1 |
+
body,html{width:100%;height:100%;padding:0;margin:0;font-size:13px;overflow:hidden}body{position:absolute;visibility:hidden;opacity:0;height:100%}.entity_errors{color:red}.entity_errors ul{margin-left:30px}.entity_errors ul li{list-style-type:disc}.ui-helper-reset{font-size:13px}#attach_to_post_tabs{border:0;background:0 0;height:100%;overflow:hidden;padding:0;position:relative;visibility:visible}#attach_to_post_tabs #attach_to_post_tabs.ui-tabs-hide{display:block!important;visibility:hidden;position:absolute;top:-5000px}#attach_to_post_tabs h3{text-transform:uppercase;color:#666;margin-top:0}h3#choose_display{margin-bottom:24px}#attach_to_post_tabs .main_menu_tab{padding:0;position:absolute;left:220px;right:0;top:0;bottom:0}#attach_to_post_tabs.ngg_atp_ios_detected{overflow-y:scroll;-webkit-overflow-scrolling:touch}#attach_to_post_tabs .ui-widget-header{border:0;border-bottom:1px solid #dfdfdf;background:0 0}iframe{width:100%;min-height:100%;border:none;padding:0;margin:0;background:0 0}.chrome_70_hack_frames{z-index:100000000!important}.chrome_70_hack_noframes{z-index:0!important}.clear{clear:both;float:none}table{font-size:13px}.select2-search input{width:100%!important}.select2-result-label{white-space:nowrap}.select2-results{font-family:'segoe ui',Arial,sans-serif;font-size:13px}.select2-container a{color:#444!important}#ngg_page_content .ngg_page_content_main .select2-container{width:100%!important;max-width:500px!important}#attach_to_post_tabs .ui-tabs-icon{background:#133148;border-right:1px solid #9cbe1b;box-sizing:border-box;color:#fff;font-family:Lato,sans-serif;float:none;font-size:20px;font-weight:700;height:100%;letter-spacing:1px;line-height:60px;margin-bottom:0;position:fixed;padding:10px 25px 30px 10px;text-transform:uppercase;width:220px;padding:0}#attach_to_post_tabs img.attach_to_post_logo{height:45px;padding:20px 0 10px;float:right;margin-right:26px}#attach_to_post_tabs .ui-tabs-nav{border:none;background:0 0;padding:0;margin-top:90px;list-style:none}#attach_to_post_tabs .ui-tabs-nav li{background:0 0;border:none;display:block;height:auto;margin:0;padding:0;width:100%;border-radius:0;box-sizing:border-box;border-bottom:1px solid #344a59;padding:24px 30px 24px 20px}#attach_to_post_tabs .ui-tabs-nav li.ui-tabs-active{background:#2b4d65;background:#9dbd1b}#attach_to_post_tabs .ui-tabs-nav li.active,#attach_to_post_tabs .ui-tabs-nav li.ui-state-active,#attach_to_post_tabs .ui-tabs-nav li.ui-state-focus,#attach_to_post_tabs .ui-tabs-nav li:focus{outline:0}#attach_to_post_tabs ul.ui-tabs-nav li:nth-of-type(1){list-style:none;border-top:1px solid #344a59}#attach_to_post_tabs:not(.ngg_atp_ios_detected) ul.ui-tabs-nav li:nth-of-type(2){list-style:none}#attach_to_post_tabs:not(.ngg_atp_ios_detected) ul.ui-tabs-nav li:nth-of-type(1) a{display:list-item}#attach_to_post_tabs ul.ui-tabs-nav li:nth-of-type(2) a{display:list-item}#attach_to_post_tabs .ui-tabs-nav li a{color:#fff;float:right;font-size:16px;letter-spacing:0;line-height:1;padding:10px 5px 5px 0!important;text-transform:none;font-family:lato,sans-serif;text-transform:uppercase;font-size:13px;letter-spacing:1px;font-weight:700;padding:0!important;font-size:12px;letter-spacing:1.2px}#attach_to_post_tabs .ui-tabs-nav li.ui-state-disabled a,#attach_to_post_tabs .ui-tabs-nav li.ui-tabs-active a,#attach_to_post_tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:pointer}#attach_to_post_tabs .ui-tabs-nav li a.active_tab::before{border-right:solid .75em #fff;border-top:solid 1.2em transparent;border-bottom:solid 1.2em transparent;content:'';position:absolute;top:16px;right:-3px}#attach_to_post_tabs .ui-tabs-nav li a.active_tab{color:#fff;font-weight:800}#displayed_tab.main_menu_tab{overflow-y:scroll;overflow-x:hidden}#displayed_tab #ngg_page_content{margin:0;width:100%}#displayed_tab #attach_to_post_tabs .ngg_page_content_header{display:none}#displayed_tab #ngg_page_content .ngg_page_content_menu{background:0 0;border:none;padding:10px 20px 10px 0;float:none;height:25px;margin-top:0;width:auto;border-bottom:1px solid #ddd;background:#fafafa}#displayed_tab #ngg_page_content .ngg_page_content_menu a,#displayed_tab #ngg_page_content .ngg_page_content_menu a:active{border:none;color:#888;display:inline;font-size:14px;font-weight:400;text-decoration:none;line-height:25px;padding:15px 20px;font-size:12px;background:0 0}#displayed_tab #ngg_page_content .ngg_page_content_menu .ngg_page_content_menu_active{background:0 0;font-weight:700;color:#123248;border-left:1px solid #ddd;border-right:1px solid #ddd;border-bottom:2px solid #fff;background:#fff}#displayed_tab #ngg_page_content .ngg_page_content_menu a:active:after{display:none}#displayed_tab #ngg_page_content .ngg_page_content_menu a:before{display:none}#displayed_tab #ngg_page_content .ngg_page_content_main{padding:30px;width:100%;box-shadow:none}#displayed_tab #ngg_page_content.ngg_settings_page{border:none}#displayed_tab .ngg_igw_promo{display:block!important;padding:10px 20px;position:relative;top:-187px;left:608px;background:#123248;color:#fff;border-bottom:5px solid #9ebc1b;font-family:Lato,sans-serif;letter-spacing:.5px;box-sizing:border-box;width:200px;height:172px;margin-bottom:-170px}#displayed_tab .ngg_igw_promo a{text-decoration:none;font-weight:600}#displayed_tab .ngg_igw_coupon{font-size:12px;margin-top:10px;margin-top:47px;color:#7298b1}#attach_to_post_tabs #displayed_tab #ngg_page_content .ngg_page_content_main>div.ngg_igw_video{display:block!important;position:absolute;left:175px;top:69px}#displayed_tab .ngg_igw_video_open{background:#9ebc1b;color:#fff;cursor:pointer;font-family:Lato,sans-serif;font-size:13px;margin:0;padding:8px 10px}#displayed_tab .ngg_igw_video_inner{display:none;box-shadow:0 0 10px 5px rgba(0,0,0,.2);background:#fff}#displayed_tab .ngg_igw_video_close{color:#9ebc1b;width:100%;height:50px;display:block;background:#123248;text-align:center;line-height:50px;font-size:15px;font-weight:700;cursor:pointer;font-family:Lato,sans-serif;letter-spacing:.5px;background:#9ebc1b;color:#fff}#displayed_tab .ngg_igw_video iframe{width:525px;height:295px!important;min-height:auto;margin-bottom:-3px}#displayed_tab #displayed_gallery_source{width:400px}#displayed_tab #display_tip{color:rgba(42,52,61,.6);display:block;font-size:14px;width:960px;max-width:100%;padding:10px 0 0}#displayed_tab #slug_configuration{display:none}#displayed_tab #slug_configuration td,#displayed_tab #source_configuration td{vertical-align:top;padding:4px 0!important;min-width:200px}#displayed_tab #source_configuration label{color:#777!important;font-size:13px!important}#attach_to_post_tabs #displayed_tab #ngg_page_content #source_configuration tr td:first-of-type{white-space:normal;line-height:1.2;width:265px}#displayed_tab #ngg_page_content .select2-container{width:250px!important;line-height:20px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#9fbb1a}#displayed_tab #slug_configuration #slug_label{width:52px}#displayed_tab #slug_configuration #slug_column input[type=text]{width:498px}#displayed_tab #display_type_selector{margin-top:14px}#displayed_tab .display_type_preview{float:left;margin:0 5px 5px 0;border:1px solid #ddd;background:#fff;width:145px;height:170px}#displayed_tab .display_type_preview .image_container{width:100%;vertical-align:middle;text-align:center;font-size:12px;font-weight:500;padding:8px;box-sizing:border-box}#displayed_tab .display_type_preview .image_container img{margin-top:10px;margin-bottom:10px;box-sizing:border-box;max-width:100px}#displayed_tab .display_type_preview .image_container p{display:inline-block}.display_type_preview label>div{font-size:12px}#displayed_tab .select2-chosen{color:#666!important}#ngg_page_content #save_displayed_gallery.button{font-weight:700;height:50px!important;line-height:50px!important;padding:0 30px!important;font-size:13px}#display_settings_tab #display_settings_form table tr td:first-child{vertical-align:top;text-align:right;padding-right:7px;width:180px}#display_settings_tab #display_settings_form table td{text-align:left}#display_settings_tab #display_settings_form table textarea{height:60px}#display_settings_tab #display_settings_form input[type=number],#display_settings_tab #display_settings_form input[type=text],#display_settings_tab #display_settings_form select,#display_settings_tab #display_settings_form textarea{width:157px}#display_settings_tab #display_settings_form .ngg_slideshow_gallery_height,#display_settings_tab #display_settings_form .ngg_slideshow_gallery_width,#display_settings_tab #display_settings_form .ngg_thumbnail_dimension_height,#display_settings_tab #display_settings_form .ngg_thumbnail_dimension_width{width:65px!important}#display_settings_tab #display_settings_form .nextgen_settings_colorpicker{width:85px!important;text-align:center}h3#preview_tab{margin-bottom:0}#preview_tab_content{padding:10px 0}#preview_tab_content a{text-decoration:none;font-weight:300}#preview_tab_content .previewed_entity{width:100%;border-bottom:solid 1px #e0e0d6;background-color:#fafaf0}#preview_tab_content .previewed_entity .container{padding-top:15px}#preview_tab_content .previewed_entity.header{background-color:#f0f0e6;padding-bottom:5px;padding-top:5px}#preview_tab_content .header label{font-size:12px;color:#649664;font-weight:600}#preview_tab_content .ui-sortable-helper{background:0 0}#preview_tab_content ul{list-style-type:none;display:block;padding:0;position:relative;margin-top:20px}#preview_tab_content .inclusion_checkbox{margin-right:7px;display:block;float:left}#preview_tab_content .preview_item{background-color:#fff;width:100px;padding:10px 10px 30px 10px;margin:0 5px 5px 0;border:solid 1px #eee;display:block;vertical-align:middle;text-align:center;position:relative}#preview_tab_content .image_container{background-repeat:no-repeat;background-position:center;background-size:cover;display:block;width:100%;height:75px}#preview_tab_content .image_container img{border:0}#preview_tab_content #entity_list li{float:left}#preview_tab_content #entity_list .ui-state-default{background:0 0;border:none}#preview_tab_content .placeholder{background-color:#e0ddc1;position:relative}#preview_tab_content #entity_list .exclude_container{background:#fff;display:block;text-align:center;margin:0 auto;color:#000;font-weight:400;height:1.4em;line-height:1.1em;font-size:.8em;position:absolute;bottom:.2em;left:0;width:100%;padding:5px 0}#preview_tab_content #entity_list .exclude_container input{vertical-align:middle;line-height:1.2em;margin:0 .5em}#preview_tab_content .header_row{margin-bottom:5px;font-weight:300}#preview_tab_content .header_row strong{width:70px;display:inline-block}#preview_tab_content .header_row .separator{display:inline-block;margin:0 5px}#preview_tab_content .header_row .selected{font-weight:700}#preview_tab_content #entity_list li.clear{float:none;clear:both}#preview_tab_content .refresh_button{float:right}@media (max-width:1120px){#displayed_tab .ngg_igw_promo{position:static;width:602px;height:125px;max-width:100%;margin-bottom:10px}#displayed_tab .ngg_igw_coupon{margin-top:10px}#attach_to_post_tabs #displayed_tab #ngg_page_content .ngg_page_content_main>div.ngg_igw_video,#displayed_tab .ngg_igw_video_inner{display:none!important}}@media (max-width:800px){#attach_to_post_tabs .ui-tabs-icon{width:100%;position:static;border-right:none;border-bottom:3px solid #9fbb1a;text-align:center;height:150px;padding:20px}#attach_to_post_tabs img.attach_to_post_logo{display:none}#attach_to_post_tabs .ui-tabs-nav{margin-top:0}#attach_to_post_tabs .ui-tabs-nav li{padding:5px;list-style:none!important;border-bottom:none;border-top:none!important}#attach_to_post_tabs .ui-tabs-nav li.ui-tabs-active{background:0 0}#attach_to_post_tabs:not(.ngg_atp_ios_detected) .ui-tabs-nav li:nth-of-type(2)::after{display:none}#attach_to_post_tabs .ui-tabs-nav li a{float:none;padding:0!important;font-weight:400}#attach_to_post_tabs .ui-tabs-nav li a.active_tab{color:#9ebc1b}#attach_to_post_tabs .ui-tabs-nav li a.active_tab::before{display:none}#attach_to_post_tabs .main_menu_tab{margin-left:0;min-height:auto;position:absolute;top:150px;right:0;left:0;bottom:0;height:auto}#displayed_tab #ngg_page_content .ngg_page_content_menu{padding:5px 0 0;background:0 0;border:none}#displayed_tab #ngg_page_content .ngg_page_content_menu a{display:block;width:100%;float:left;padding:0;text-align:center;box-sizing:border-box}#displayed_tab #ngg_page_content .ngg_page_content_menu .ngg_page_content_menu_active,#displayed_tab #ngg_page_content .ngg_page_content_menu a:active{background:0 0}#displayed_tab #ngg_page_content .ngg_page_content_menu .ngg_page_content_menu_active:after{display:none}#displayed_tab #ngg_page_content .ngg_page_content_menu a:last-of-type{padding-bottom:5px}#displayed_tab #slug_configuration tr,#displayed_tab #source_configuration tr{margin-bottom:24px}#ngg_page_content #save_displayed_gallery.button{position:static;margin-left:0;padding:0}}@media (max-width:781px){#attach_to_post_tabs.ngg_atp_ios_detected .ui-tabs-nav li:nth-of-type(1)::after{display:none}#attach_to_post_tabs #displayed_tab #ngg_page_content .ngg_page_content_main table tr td{width:100%!important}#attach_to_post_tabs #displayed_tab #ngg_page_content .ngg_page_content_main #source_configuration{display:table!important}#attach_to_post_tabs #displayed_tab #ngg_page_content .ngg_page_content_main #source_configuration tbody{display:table-row-group!important}#displayed_tab #ngg_page_content .responsive-menu-icon{padding:10px 0 15px!important}}@media (max-width:400px){#displayed_tab .display_type_preview{float:none;margin:20px auto;width:170px}}
|
products/photocrati_nextgen/modules/attach_to_post/static/attach_to_post.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function close_attach_to_post_window(){var e=jQuery(top.document).find("#TB_window iframe").attr("src");e&&e.match("attach_to_post")?top.tb_remove():top.tinyMCE.activeEditor.windowManager.close(window)}function adjust_height_for_frame(e,t,i){if(!/crios|iP(hone|od|ad)/i.test(navigator.userAgent))return void 0===i||i(e,t);var
|
1 |
+
function close_attach_to_post_window(){var e=jQuery(top.document).find("#TB_window iframe").attr("src");e&&e.match("attach_to_post")?top.tb_remove():top.tinyMCE.activeEditor.windowManager.close(window)}function adjust_height_for_frame(e,t,i){if(!/crios|iP(hone|od|ad)/i.test(navigator.userAgent))return void 0===i||i(e,t);var a=jQuery(t.frameElement),o=a.contents().height()/3,n=a.contents().find("#wpbody").height(),s=jQuery(e.document).height(),d=a.height();if(0===n&&(n=a.contents().height()),o<n&&(o=n),o<s&&(o=s),d<o){var c=a.attr("id");if(c&&0===c.indexOf("ngg-iframe-")){var r=c.substr(11);r&&jQuery("#"+r).height(o)}}return void 0===i||i(e,t,o)}function ngg_get_measures_for_frame(e){var t=jQuery(e),i=t.attr("id"),a={};if(i&&0===i.indexOf("ngg-iframe-")){if(i.substr(11)){var o=jQuery(document);a.scrollTop=o.scrollTop()-40,window.parent?a.scrollHeight=jQuery(window.parent.document).find(".ngg_attach_to_post_window").height()-40:a.scrollHeight=o.height(),void 0!==window.console&&console.log(a)}}return a}function is_visual_editor(){return 0===jQuery(top.document).find(".html-active:visible").length}function insert_into_editor(e,t){if(is_visual_editor()){var i=top.tinyMCE.activeEditor;i.selection.getNode().outerHTML.indexOf(t)>=0?jQuery(i.selection.getNode()).attr("data-shortcode",e.substring(1,e.length-1)):i.execCommand("mceInsertContent",!1,e),i.selection.collapse(!1)}else if(myField=top.document.getElementById("content"),myValue=e,document.selection)myField.focus(),sel=document.selection.createRange(),sel.text=myValue;else if(myField.selectionStart||"0"===myField.selectionStart){var a=myField.selectionStart,o=myField.selectionEnd;myField.value=myField.value.substring(0,a)+myValue+myField.value.substring(o,myField.value.length)}else myField.value+=myValue}this.id="ngg-attach_to_post",jQuery(function(e){/crios|iP(hone|od|ad)/i.test(navigator.userAgent)&&e("#attach_to_post_tabs").addClass("ngg_atp_ios_detected"),e("#attach_to_post_tabs").ngg_tabs({onShowTab:function(t){navigator.appVersion.match(/Chrome\/(69|7)/)&&("displayed_tab"!=t.attr("id")?e("#attach_to_post_tabs").addClass("chrome_70_hack_frames").removeClass("chrome_70_hack_noframes"):e("#attach_to_post_tabs").removeClass("chrome_70_hack_frames").addClass("chrome_70_hack_noframes"))}}),e(".ngg_page_content_menu a").bind("click",function(){"preview_tab"===e(this).attr("data-id")&&e("#preview_area").trigger("opened")}),e(".accordion").accordion({clearStyle:!0,autoHeight:!1,heightStyle:"content"}),e(".ui-tabs-nav li:first-of-type a").addClass("active_tab"),e(".ui-tabs-nav a").click(function(t){e(".ui-tabs-nav a").removeClass("active_tab"),e(this).addClass("active_tab");var i=t.target?t.target:t.srcElement;if(e(i).parent().hasClass("ui-state-active")){var a=e(i.hash+" iframe");a.length>0&&a[0].contentDocument.location!=a.attr("src")&&(a[0].contentDocument.location=a.attr("src"))}}),e(this).keydown(function(e){27===e.keyCode&&close_attach_to_post_window()}),e("body").css({position:"static",visibility:"visible"}).animate({opacity:1})}),jQuery(function(e){e("#displayed_tab .ngg_igw_video_open").click(function(t){e("#displayed_tab .ngg_igw_video_inner").append('<iframe class="ngg_igw_video_iframe" width="1050" height="590" src="https://www.youtube.com/embed/mNEnY23i9DE?rel=0" frameborder="0" allowfullscreen></iframe>'),e("#displayed_tab .ngg_igw_video_inner").css("display","block"),e("#displayed_tab .ngg_igw_video_open").css("display","none")}),e("#displayed_tab .ngg_igw_video_close").click(function(t){e("#displayed_tab .ngg_igw_video_iframe").remove(),e("#displayed_tab .ngg_igw_video_inner").css("display","none"),e("#displayed_tab .ngg_igw_video_open").css("display","block")})}),jQuery(function(e){e(".ngg_page_content_menu a").click(function(t){"choose_display"==e(this).attr("data-id")?(e(".ngg_igw_promo").css("visibility","visible"),e("#displayed_tab .ngg_igw_video_open").css("display","block")):(e(".ngg_igw_promo").css("visibility","hidden"),e("#displayed_tab .ngg_igw_video_open").css("display","none"),e("#displayed_tab .ngg_igw_video_inner").css("display","none"))})});
|
products/photocrati_nextgen/modules/attach_to_post/static/ngg_tabs.js
CHANGED
@@ -24,9 +24,9 @@ jQuery(function($) {
|
|
24 |
var i = 0;
|
25 |
this.find('.main_menu_tab').each(function() {
|
26 |
if (i === 0) {
|
27 |
-
$.fn.ngg_tabs.show_tab(this);
|
28 |
} else {
|
29 |
-
$.fn.ngg_tabs.hide_tab(this);
|
30 |
}
|
31 |
i++;
|
32 |
});
|
@@ -34,23 +34,25 @@ jQuery(function($) {
|
|
34 |
// When the selected tab changes, then we need to re-adjust
|
35 |
this.bind('tabsactivate', function(event, ui) {
|
36 |
// Ensure that all tabs are still displayed, but hidden ;)
|
37 |
-
$.fn.ngg_tabs.hide_tab($.fn.ngg_tabs.get_tab_by_li(ui.oldTab));
|
38 |
-
$.fn.ngg_tabs.show_tab($.fn.ngg_tabs.get_tab_by_li(ui.newTab));
|
39 |
});
|
40 |
};
|
41 |
|
42 |
-
$.fn.ngg_tabs.hide_tab = function(tab) {
|
43 |
setTimeout(function() {
|
44 |
$(tab).css({
|
45 |
display: 'block',
|
46 |
'z-index': -10,
|
47 |
visibility: 'hidden',
|
48 |
opacity: 0
|
49 |
-
});
|
|
|
|
|
50 |
}, 0);
|
51 |
};
|
52 |
|
53 |
-
$.fn.ngg_tabs.show_tab = function(tab){
|
54 |
tab = $(tab);
|
55 |
|
56 |
setTimeout(function() {
|
@@ -66,8 +68,12 @@ jQuery(function($) {
|
|
66 |
'z-index': 1,
|
67 |
visibility: 'visible',
|
68 |
opacity: 1
|
69 |
-
});
|
|
|
|
|
70 |
}, 50);
|
|
|
|
|
71 |
};
|
72 |
|
73 |
$.fn.ngg_tabs.get_tab_by_li = function(list_item) {
|
24 |
var i = 0;
|
25 |
this.find('.main_menu_tab').each(function() {
|
26 |
if (i === 0) {
|
27 |
+
$.fn.ngg_tabs.show_tab(this, options.onShowTab);
|
28 |
} else {
|
29 |
+
$.fn.ngg_tabs.hide_tab(this, options.onHideTab);
|
30 |
}
|
31 |
i++;
|
32 |
});
|
34 |
// When the selected tab changes, then we need to re-adjust
|
35 |
this.bind('tabsactivate', function(event, ui) {
|
36 |
// Ensure that all tabs are still displayed, but hidden ;)
|
37 |
+
$.fn.ngg_tabs.hide_tab($.fn.ngg_tabs.get_tab_by_li(ui.oldTab), options.onHideTab);
|
38 |
+
$.fn.ngg_tabs.show_tab($.fn.ngg_tabs.get_tab_by_li(ui.newTab), options.onShowTab);
|
39 |
});
|
40 |
};
|
41 |
|
42 |
+
$.fn.ngg_tabs.hide_tab = function(tab, cb) {
|
43 |
setTimeout(function() {
|
44 |
$(tab).css({
|
45 |
display: 'block',
|
46 |
'z-index': -10,
|
47 |
visibility: 'hidden',
|
48 |
opacity: 0
|
49 |
+
}).addClass('ngg-tab-inactive').removeClass('ngg-tab-active').trigger('tab-hidden');
|
50 |
+
|
51 |
+
if (cb) cb(tab)
|
52 |
}, 0);
|
53 |
};
|
54 |
|
55 |
+
$.fn.ngg_tabs.show_tab = function(tab, cb){
|
56 |
tab = $(tab);
|
57 |
|
58 |
setTimeout(function() {
|
68 |
'z-index': 1,
|
69 |
visibility: 'visible',
|
70 |
opacity: 1
|
71 |
+
}).addClass('ngg-tab-active').removeClass('ngg-tab-inactive').trigger('tab-visible');
|
72 |
+
|
73 |
+
if (cb) cb(tab)
|
74 |
}, 50);
|
75 |
+
|
76 |
+
if (cb) cb(tab)
|
77 |
};
|
78 |
|
79 |
$.fn.ngg_tabs.get_tab_by_li = function(list_item) {
|
products/photocrati_nextgen/modules/attach_to_post/static/ngg_tabs.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(t){t.fn.ngg_tabs=function(i){/crios|iP(hone|od|ad)/i.test(navigator.userAgent)&&(this.find(".main_menu_tab").each(function(){"create_tab"===this.id&&t(this).remove()}),this.find("ul li a").each(function(){-1!==this.href.indexOf("#create_tab")&&t(this).parent("li").remove()})),this.tabs(i);var n=0;this.find(".main_menu_tab").each(function(){0===n?t.fn.ngg_tabs.show_tab(this):t.fn.ngg_tabs.hide_tab(this),n++}),this.bind("tabsactivate",function(
|
1 |
+
jQuery(function(t){t.fn.ngg_tabs=function(i){/crios|iP(hone|od|ad)/i.test(navigator.userAgent)&&(this.find(".main_menu_tab").each(function(){"create_tab"===this.id&&t(this).remove()}),this.find("ul li a").each(function(){-1!==this.href.indexOf("#create_tab")&&t(this).parent("li").remove()})),this.tabs(i);var n=0;this.find(".main_menu_tab").each(function(){0===n?t.fn.ngg_tabs.show_tab(this,i.onShowTab):t.fn.ngg_tabs.hide_tab(this,i.onHideTab),n++}),this.bind("tabsactivate",function(n,a){t.fn.ngg_tabs.hide_tab(t.fn.ngg_tabs.get_tab_by_li(a.oldTab),i.onHideTab),t.fn.ngg_tabs.show_tab(t.fn.ngg_tabs.get_tab_by_li(a.newTab),i.onShowTab)})},t.fn.ngg_tabs.hide_tab=function(i,n){setTimeout(function(){t(i).css({display:"block","z-index":-10,visibility:"hidden",opacity:0}).addClass("ngg-tab-inactive").removeClass("ngg-tab-active").trigger("tab-hidden"),n&&n(i)},0)},t.fn.ngg_tabs.show_tab=function(i,n){i=t(i),setTimeout(function(){var t=i.find("iframe")[0];void 0!==t&&void 0!==t.contentWindow&&adjust_height_for_frame(top,t.contentWindow)},50),setTimeout(function(){i.css({"z-index":1,visibility:"visible",opacity:1}).addClass("ngg-tab-active").removeClass("ngg-tab-inactive").trigger("tab-visible"),n&&n(i)},50),n&&n(i)},t.fn.ngg_tabs.get_tab_by_li=function(t){return t.parents("div").find('.main_menu_tab[aria-labelledby="'+t.attr("aria-labelledby")+'"]')}});
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: photocrati, imagely
|
3 |
Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
|
4 |
Requires at least: 4.0.0
|
5 |
-
Stable tag: 3.0.
|
6 |
-
Tested up to: 4.9.
|
7 |
License: GPLv2
|
8 |
|
9 |
The most popular WordPress gallery plugin and one of the most popular plugins of all time with over 22 million downloads.
|
@@ -183,6 +183,9 @@ For more information, feel free to visit the official website for the NextGEN Ga
|
|
183 |
|
184 |
== Changelog ==
|
185 |
|
|
|
|
|
|
|
186 |
= V3.0.6 - 07.24.2018 =
|
187 |
* NEW: Added 'ngg_gallery_title_select_field' filter
|
188 |
* NEW: Danish translations
|
2 |
Contributors: photocrati, imagely
|
3 |
Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
|
4 |
Requires at least: 4.0.0
|
5 |
+
Stable tag: 3.0.8
|
6 |
+
Tested up to: 4.9.8
|
7 |
License: GPLv2
|
8 |
|
9 |
The most popular WordPress gallery plugin and one of the most popular plugins of all time with over 22 million downloads.
|
183 |
|
184 |
== Changelog ==
|
185 |
|
186 |
+
= V3.0.8 - 09.05.2018 =
|
187 |
+
* Fixed: IGW broken with Chrome 69+
|
188 |
+
|
189 |
= V3.0.6 - 07.24.2018 =
|
190 |
* NEW: Added 'ngg_gallery_title_select_field' filter
|
191 |
* NEW: Danish translations
|