Version Description
- Added: How to use button to galleries and gallery groups pages.
- Added: Use uploaded image meta tags.
- Fixed: Images list toggle button does not work after page update.
- Fixed: Bring back "drag and drop" and description columns on small screens.
- Fixed: Slideshow view > Disable autoplay doesn't work when Control buttons are disabled and you navigate slide from the filmstrip.
- Fixed: Bug with Sticky Nav from Max Mega Menu.
- Fixed: Rendering in Elementor builder.
- Fixed: Multiple Galleries of the same view in Elementor preview.
- Fixed: On Divi, the titles on hover are left aligned.
- Fixed: Bulk reset with a large amount of images.
- Fixed: Preload for carousel.
- Fixed: Old shordcodes convert to Gutenberg.
- Fixed: Disable Jetpack photon module for embed thumbnails.
- Fixed: Filters are before the gallery title, after performing a filter they are under the gallery description.
- Fixed: Youtube embeded video is shown twice in slideshow widget if an effect is selected.
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.5.5 |
| Comparing to | |
| See all releases | |
Code changes from version 1.5.4 to 1.5.5
- admin/models/Galleries.php +20 -7
- admin/models/Themes.php +108 -100
- admin/views/AdminView.php +3 -2
- admin/views/Albums.php +7 -0
- admin/views/Galleries.php +8 -5
- admin/views/Options.php +3 -3
- admin/views/Widget.php +3 -1
- css/bwg_frontend.css +11 -4
- css/bwg_tables.css +6 -18
- filemanager/UploadHandler.php +1 -0
- filemanager/js/default.js +4 -0
- filemanager/model.php +1 -0
- filemanager/view.php +2 -2
- framework/WDWLibrary.php +24 -23
- frontend/models/model.php +4 -0
- frontend/views/BWGViewAlbum_extended_preview.php +14 -2
- frontend/views/view.php +7 -6
- js/bwg.js +23 -4
- js/bwg_frontend.js +219 -197
- js/bwg_gallery_box.js +6 -3
- photo-gallery.php +6 -3
- readme.txt +20 -3
admin/models/Galleries.php
CHANGED
|
@@ -503,13 +503,26 @@ class GalleriesModel_bwg {
|
|
| 503 |
if ( strpos($tag_id, 'pr_') !== FALSE ) {
|
| 504 |
$tag_id = substr($tag_id, 3);
|
| 505 |
}
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
'
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 513 |
}
|
| 514 |
}
|
| 515 |
}
|
| 503 |
if ( strpos($tag_id, 'pr_') !== FALSE ) {
|
| 504 |
$tag_id = substr($tag_id, 3);
|
| 505 |
}
|
| 506 |
+
|
| 507 |
+
if ( strpos($tag_id, 'bwg_') === 0 ) {
|
| 508 |
+
// If tags added to image from image file meta keywords.
|
| 509 |
+
$tag_name = str_replace('bwg_', '', $tag_id);
|
| 510 |
+
$term = term_exists($tag_name, 'bwg_tag');
|
| 511 |
+
if ( !$term ) {
|
| 512 |
+
$term = wp_insert_term($tag_name, 'bwg_tag');
|
| 513 |
+
}
|
| 514 |
+
$tag_id = isset($term['term_id']) ? $term['term_id'] : 0;
|
| 515 |
+
}
|
| 516 |
+
|
| 517 |
+
if ( $tag_id ) {
|
| 518 |
+
$wpdb->insert($wpdb->prefix . 'bwg_image_tag', array(
|
| 519 |
+
'tag_id' => $tag_id,
|
| 520 |
+
'image_id' => $image_id,
|
| 521 |
+
'gallery_id' => $gallery_id,
|
| 522 |
+
));
|
| 523 |
+
// Increase tag count in term_taxonomy table.
|
| 524 |
+
$wpdb->query($wpdb->prepare('UPDATE ' . $wpdb->prefix . 'term_taxonomy SET count="%d" WHERE term_id="%d"', $wpdb->get_var($wpdb->prepare('SELECT COUNT(image_id) FROM ' . $wpdb->prefix . 'bwg_image_tag WHERE tag_id="%d"', $tag_id)), $tag_id));
|
| 525 |
+
}
|
| 526 |
}
|
| 527 |
}
|
| 528 |
}
|
admin/models/Themes.php
CHANGED
|
@@ -560,6 +560,9 @@ class ThemesModel_bwg {
|
|
| 560 |
if ($row->mosaic_thumb_gal_title_shadow) {
|
| 561 |
$row->mosaic_thumb_gal_title_shadow = '';
|
| 562 |
}
|
|
|
|
|
|
|
|
|
|
| 563 |
}
|
| 564 |
else {
|
| 565 |
$theme_defaults = '{"thumb_margin":"4","album_compact_title_font_color_hover":"FFFFFF","compact_container_margin":"1","container_margin":"1","thumb_padding":"0","thumb_border_radius":"0","thumb_border_width":0,"thumb_border_style":"none","thumb_border_color":"CCCCCC","thumb_bg_color":"000000","thumbs_bg_color":"FFFFFF","thumb_bg_transparent":0,"thumb_box_shadow":"","thumb_transparent":100,"thumb_align":"center","thumb_hover_effect":"zoom","thumb_hover_effect_value":"1.08","thumb_transition":1,"thumb_title_margin":"2px","thumb_title_font_style":"Ubuntu","thumb_title_pos":"bottom","thumb_title_font_color":"323A45","thumb_title_font_color_hover":"FFFFFF","thumb_title_shadow":"","thumb_title_font_size":16,"thumb_title_font_weight":"bold","thumb_gal_title_font_color":"323A45","thumb_gal_title_font_style":"Ubuntu","thumb_gal_title_font_size":18,"thumb_gal_title_font_weight":"bold","thumb_gal_title_margin":"2px","thumb_gal_title_shadow":"","thumb_gal_title_align":"center","page_nav_position":"bottom","page_nav_align":"center","page_nav_number":0,"page_nav_font_size":12,"page_nav_font_style":"Ubuntu","page_nav_font_color":"666666","page_nav_font_weight":"bold","page_nav_border_width":1,"page_nav_border_style":"solid","page_nav_border_color":"E3E3E3","page_nav_border_radius":"0","page_nav_margin":"0","page_nav_padding":"3px 6px","page_nav_button_bg_color":"FFFFFF","page_nav_button_bg_transparent":100,"page_nav_box_shadow":"0","page_nav_button_transition":1,"page_nav_button_text":0,"lightbox_ctrl_btn_pos":"bottom","lightbox_ctrl_btn_align":"center","lightbox_ctrl_btn_height":20,"lightbox_ctrl_btn_margin_top":10,"lightbox_ctrl_btn_margin_left":7,"lightbox_ctrl_btn_transparent":100,"lightbox_ctrl_btn_color":"808080","lightbox_toggle_btn_height":20,"lightbox_toggle_btn_width":100,"lightbox_ctrl_cont_bg_color":"FFFFFF","lightbox_ctrl_cont_border_radius":4,"lightbox_ctrl_cont_transparent":85,"lightbox_close_btn_bg_color":"FFFFFF","lightbox_close_btn_border_radius":"16px","lightbox_close_btn_border_width":2,"lightbox_close_btn_border_style":"none","lightbox_close_btn_border_color":"FFFFFF","lightbox_close_btn_box_shadow":"0","lightbox_close_btn_color":"808080","lightbox_close_btn_size":20,"lightbox_close_btn_width":30,"lightbox_close_btn_height":30,"lightbox_close_btn_top":"-20","lightbox_close_btn_right":"-15","lightbox_close_btn_full_color":"000000","lightbox_close_btn_transparent":60,"lightbox_rl_btn_bg_color":"FFFFFF","lightbox_rl_btn_transparent":"60","lightbox_rl_btn_border_radius":"20px","lightbox_rl_btn_border_width":0,"lightbox_rl_btn_border_style":"none","lightbox_rl_btn_border_color":"FFFFFF","lightbox_rl_btn_box_shadow":"","lightbox_rl_btn_color":"ADADAD","lightbox_rl_btn_height":35,"lightbox_rl_btn_width":35,"lightbox_rl_btn_size":25,"lightbox_close_rl_btn_hover_color":"808080","lightbox_comment_pos":"left","lightbox_comment_width":350,"lightbox_comment_bg_color":"FFFFFF","lightbox_comment_font_color":"7A7A7A","lightbox_comment_font_style":"Ubuntu","lightbox_comment_font_size":12,"lightbox_comment_button_bg_color":"2F2F2F","lightbox_comment_button_border_color":"666666","lightbox_comment_button_border_width":1,"lightbox_comment_button_border_style":"none","lightbox_comment_button_border_radius":"7px","lightbox_comment_button_padding":"10px 10px","lightbox_comment_input_bg_color":"F7F8F9","lightbox_comment_input_border_color":"EBEBEB","lightbox_comment_input_border_width":2,"lightbox_comment_input_border_style":"none","lightbox_comment_input_border_radius":"7px","lightbox_comment_input_padding":"5px","lightbox_comment_separator_width":20,"lightbox_comment_separator_style":"none","lightbox_comment_separator_color":"383838","lightbox_comment_author_font_size":14,"lightbox_comment_date_font_size":10,"lightbox_comment_body_font_size":12,"lightbox_comment_share_button_color":"808080","lightbox_filmstrip_rl_bg_color":"EBEBEB","lightbox_filmstrip_rl_btn_size":20,"lightbox_filmstrip_rl_btn_color":"808080","lightbox_filmstrip_thumb_margin":"0 1px","lightbox_filmstrip_thumb_border_width":1,"lightbox_filmstrip_thumb_border_style":"none","lightbox_filmstrip_thumb_border_color":"000000","lightbox_filmstrip_thumb_border_radius":"0","lightbox_filmstrip_thumb_deactive_transparent":80,"lightbox_filmstrip_pos":"bottom","lightbox_filmstrip_thumb_active_border_width":0,"lightbox_filmstrip_thumb_active_border_color":"FFFFFF","lightbox_overlay_bg_transparent":60,"lightbox_bg_color":"FFFFFF","lightbox_overlay_bg_color":"EEEEEE","lightbox_rl_btn_style":"fa-angle","lightbox_bg_transparent":100,"blog_style_margin":"2px","blog_style_padding":"0","blog_style_border_radius":"0","blog_style_border_width":1,"blog_style_border_style":"solid","blog_style_border_color":"F5F5F5","blog_style_bg_color":"FFFFFF","blog_style_transparent":80,"blog_style_box_shadow":"","blog_style_align":"center","blog_style_share_buttons_margin":"5px auto 10px auto","blog_style_share_buttons_border_radius":"0","blog_style_share_buttons_border_width":0,"blog_style_share_buttons_border_style":"none","blog_style_share_buttons_border_color":"000000","blog_style_share_buttons_bg_color":"FFFFFF","blog_style_share_buttons_align":"right","blog_style_img_font_size":16,"blog_style_img_font_family":"Ubuntu","blog_style_img_font_color":"000000","blog_style_share_buttons_font_size":20,"blog_style_share_buttons_color":"B3AFAF","blog_style_share_buttons_bg_transparent":0,"blog_style_gal_title_font_color":"323A45","blog_style_gal_title_font_style":"Ubuntu","blog_style_gal_title_font_size":16,"blog_style_gal_title_font_weight":"bold","blog_style_gal_title_margin":"2px","blog_style_gal_title_shadow":"0px 0px 0px #888888","blog_style_gal_title_align":"center","image_browser_margin":"2px auto","image_browser_padding":"4px","image_browser_border_radius":"0","image_browser_border_width":1,"image_browser_border_style":"none","image_browser_border_color":"F5F5F5","image_browser_bg_color":"EBEBEB","image_browser_box_shadow":"","image_browser_transparent":80,"image_browser_align":"center","image_browser_image_description_margin":"0px 5px 0px 5px","image_browser_image_description_padding":"8px 8px 8px 8px","image_browser_image_description_border_radius":"0","image_browser_image_description_border_width":1,"image_browser_image_description_border_style":"none","image_browser_image_description_border_color":"FFFFFF","image_browser_image_description_bg_color":"EBEBEB","image_browser_image_description_align":"center","image_browser_img_font_size":15,"image_browser_img_font_family":"Ubuntu","image_browser_img_font_color":"000000","image_browser_full_padding":"4px","image_browser_full_border_radius":"0","image_browser_full_border_width":2,"image_browser_full_border_style":"none","image_browser_full_border_color":"F7F7F7","image_browser_full_bg_color":"F5F5F5","image_browser_full_transparent":90,"image_browser_image_title_align":"top","image_browser_gal_title_font_color":"323A45","image_browser_gal_title_font_style":"Ubuntu","image_browser_gal_title_font_size":16,"image_browser_gal_title_font_weight":"bold","image_browser_gal_title_margin":"2px","image_browser_gal_title_shadow":"0px 0px 0px #888888","image_browser_gal_title_align":"center","album_compact_title_margin":"2px","album_compact_thumb_margin":4,"album_compact_back_padding":"0","album_compact_thumb_padding":0,"album_compact_thumb_border_radius":"0","album_compact_thumb_border_width":0,"album_compact_title_font_style":"Ubuntu","album_compact_back_font_color":"323A45","album_compact_title_font_color":"323A45","album_compact_title_shadow":"0px 0px 0px #888888","album_compact_thumb_bg_transparent":0,"album_compact_thumb_box_shadow":"0px 0px 0px #888888","album_compact_thumb_transition":1,"album_compact_thumb_border_style":"none","album_compact_thumb_border_color":"CCCCCC","album_compact_thumb_bg_color":"000000","album_compact_back_font_weight":"bold","album_compact_back_font_size":15,"album_compact_back_font_style":"Ubuntu","album_compact_thumb_title_pos":"bottom","album_compact_thumbs_bg_color":"FFFFFF","album_compact_title_font_size":16,"album_compact_title_font_weight":"bold","album_compact_thumb_align":"center","album_compact_thumb_hover_effect":"zoom","album_compact_thumb_transparent":100,"album_compact_thumb_hover_effect_value":"1.08","album_compact_gal_title_font_color":"323A45","album_compact_gal_title_font_style":"Ubuntu","album_compact_gal_title_font_size":18,"album_compact_gal_title_font_weight":"bold","album_compact_gal_title_margin":"0 2px 2px 2px","album_compact_gal_title_shadow":"0px 0px 0px #888888","album_compact_gal_title_align":"center","album_extended_thumb_margin":2,"album_extended_thumb_padding":0,"album_extended_thumb_border_radius":"0","album_extended_thumb_border_width":0,"album_extended_thumb_border_style":"none","album_extended_thumb_border_color":"CCCCCC","album_extended_thumb_bg_color":"FFFFFF","album_extended_thumbs_bg_color":"FFFFFF","album_extended_thumb_bg_transparent":0,"album_extended_thumb_box_shadow":"","album_extended_thumb_transparent":100,"album_extended_thumb_align":"left","album_extended_thumb_hover_effect":"scale","album_extended_thumb_hover_effect_value":"1.08","album_extended_thumb_transition":1,"album_extended_back_font_color":"323A45","album_extended_back_font_style":"Ubuntu","album_extended_back_font_size":15,"album_extended_back_font_weight":"bold","album_extended_back_padding":"0","album_extended_div_bg_color":"FFFFFF","album_extended_div_bg_transparent":0,"album_extended_div_border_radius":"0 0 0 0","album_extended_div_margin":"0 0 5px 0","album_extended_div_padding":10,"album_extended_div_separator_width":1,"album_extended_div_separator_style":"solid","album_extended_div_separator_color":"E0E0E0","album_extended_thumb_div_bg_color":"FFFFFF","album_extended_thumb_div_border_radius":"0","album_extended_thumb_div_border_width":1,"album_extended_thumb_div_border_style":"solid","album_extended_thumb_div_border_color":"E8E8E8","album_extended_thumb_div_padding":"5px","album_extended_text_div_bg_color":"FFFFFF","album_extended_text_div_border_radius":"0","album_extended_text_div_border_width":1,"album_extended_text_div_border_style":"solid","album_extended_text_div_border_color":"E8E8E8","album_extended_text_div_padding":"5px","album_extended_title_span_border_width":1,"album_extended_title_span_border_style":"none","album_extended_title_span_border_color":"CCCCCC","album_extended_title_font_color":"000000","album_extended_title_font_style":"Ubuntu","album_extended_title_font_size":16,"album_extended_title_font_weight":"bold","album_extended_title_margin_bottom":2,"album_extended_title_padding":"2px","album_extended_desc_span_border_width":1,"album_extended_desc_span_border_style":"none","album_extended_desc_span_border_color":"CCCCCC","album_extended_desc_font_color":"000000","album_extended_desc_font_style":"Ubuntu","album_extended_desc_font_size":14,"album_extended_desc_font_weight":"normal","album_extended_desc_padding":"2px","album_extended_desc_more_color":"F2D22E","album_extended_desc_more_size":12,"album_extended_gal_title_font_color":"323A45","album_extended_gal_title_font_style":"Ubuntu","album_extended_gal_title_font_size":18,"album_extended_gal_title_font_weight":"bold","album_extended_gal_title_margin":"0 2px 2px 2px","album_extended_gal_title_shadow":"0px 0px 0px #888888","album_extended_gal_title_align":"center","slideshow_cont_bg_color":"F2F2F2","slideshow_close_btn_transparent":100,"slideshow_rl_btn_bg_color":"FFFFFF","slideshow_rl_btn_border_radius":"20px","slideshow_rl_btn_border_width":0,"slideshow_rl_btn_border_style":"none","slideshow_rl_btn_border_color":"FFFFFF","slideshow_rl_btn_box_shadow":"","slideshow_rl_btn_color":"D6D6D6","slideshow_rl_btn_height":37,"slideshow_rl_btn_size":12,"slideshow_rl_btn_width":37,"slideshow_close_rl_btn_hover_color":"BABABA","slideshow_filmstrip_pos":"bottom","slideshow_filmstrip_thumb_border_width":0,"slideshow_filmstrip_thumb_border_style":"none","slideshow_filmstrip_thumb_border_color":"000000","slideshow_filmstrip_thumb_border_radius":"0","slideshow_filmstrip_thumb_margin":"0px 2px 0 0 ","slideshow_filmstrip_thumb_active_border_width":0,"slideshow_filmstrip_thumb_active_border_color":"FFFFFF","slideshow_filmstrip_thumb_deactive_transparent":100,"slideshow_filmstrip_rl_bg_color":"F2F2F2","slideshow_filmstrip_rl_btn_color":"BABABA","slideshow_filmstrip_rl_btn_size":20,"slideshow_title_font_size":16,"slideshow_title_font":"Ubuntu","slideshow_title_color":"FFFFFF","slideshow_title_opacity":70,"slideshow_title_border_radius":"5px","slideshow_title_background_color":"000000","slideshow_title_padding":"0 0 0 0","slideshow_description_font_size":14,"slideshow_description_font":"Ubuntu","slideshow_description_color":"FFFFFF","slideshow_description_opacity":70,"slideshow_description_border_radius":"0","slideshow_description_background_color":"000000","slideshow_description_padding":"5px 10px 5px 10px","slideshow_dots_width":12,"slideshow_dots_height":12,"slideshow_dots_border_radius":"5px","slideshow_dots_background_color":"F2D22E","slideshow_dots_margin":3,"slideshow_dots_active_background_color":"FFFFFF","slideshow_dots_active_border_width":1,"slideshow_dots_active_border_color":"000000","slideshow_play_pause_btn_size":35,"slideshow_rl_btn_style":"fa-chevron","masonry_thumb_padding":"4","masonry_container_margin":"1","masonry_thumb_border_width":"0","masonry_thumb_border_style":"none","masonry_thumb_border_color":"CCCCCC","masonry_thumb_border_radius":"0","masonry_thumb_hover_effect":"zoom","masonry_thumb_hover_effect_value":"1.08","masonry_thumb_transition":"1","masonry_thumbs_bg_color":"FFFFFF","masonry_thumb_bg_color":"000000","masonry_thumb_bg_transparent":"0","masonry_thumb_transparent":"100","masonry_thumb_align":"center","masonry_thumb_title_font_size":"16","masonry_thumb_title_font_color":"323A45","masonry_thumb_title_font_color_hover":"FFFFFF","masonry_thumb_title_font_style":"Ubuntu","masonry_thumb_title_font_weight":"bold","masonry_thumb_title_margin":"2px","masonry_description_font_size":16,"masonry_description_color":"323A45","masonry_description_font_style":"Ubuntu","masonry_thumb_gal_title_font_size":18,"masonry_thumb_gal_title_font_color":"323A45","masonry_thumb_gal_title_font_style":"Ubuntu","masonry_thumb_gal_title_font_weight":"bold","masonry_thumb_gal_title_shadow":"","masonry_thumb_gal_title_margin":"2px","masonry_thumb_gal_title_align":"center","mosaic_thumb_padding":"2","mosaic_container_margin":"1","mosaic_thumb_border_radius":"0","mosaic_thumb_border_width":"0","mosaic_thumb_border_style":"none","mosaic_thumb_border_color":"CCCCCC","mosaic_thumb_bg_color":"000000","mosaic_thumb_transparent":"100","mosaic_thumbs_bg_color":"FFFFFF","mosaic_thumb_bg_transparent":"0","mosaic_thumb_align":"center","mosaic_thumb_hover_effect":"zoom","mosaic_thumb_hover_effect_value":"1.08","mosaic_thumb_title_margin":"2px","mosaic_thumb_title_font_style":"Ubuntu","mosaic_thumb_title_font_color":"323A45","mosaic_thumb_title_font_color_hover":"FFFFFF","mosaic_thumb_title_shadow":"","mosaic_thumb_title_font_size":16,"mosaic_thumb_title_font_weight":"bold","mosaic_thumb_gal_title_font_color":"323A45","mosaic_thumb_gal_title_font_style":"Ubuntu","mosaic_thumb_gal_title_font_size":16,"mosaic_thumb_gal_title_font_weight":"bold","mosaic_thumb_gal_title_margin":"2px","mosaic_thumb_gal_title_shadow":"","mosaic_thumb_gal_title_align":"center","lightbox_info_pos":"bottom","lightbox_info_align":"left","lightbox_info_bg_color":"FFFFFF","lightbox_info_bg_transparent":"70","lightbox_info_border_width":"1","lightbox_info_border_style":"none","lightbox_info_border_color":"000000","lightbox_info_border_radius":"0px","lightbox_info_padding":"10px 7px 44px 10px","lightbox_info_margin":"10px 10px -5px 10px","lightbox_title_color":"808080","lightbox_title_font_style":"Ubuntu","lightbox_title_font_weight":"bold","lightbox_title_font_size":"16","lightbox_description_color":"B0B0B0","lightbox_description_font_style":"Ubuntu","lightbox_description_font_weight":"bold","lightbox_description_font_size":"13","lightbox_rate_pos":"top","lightbox_rate_align":"left","lightbox_rate_icon":"star","lightbox_rate_color":"F9D062","lightbox_rate_size":"20","lightbox_rate_stars_count":"5","lightbox_rate_padding":"15px","lightbox_rate_hover_color":"F7B50E","lightbox_hit_pos":"bottom","lightbox_hit_align":"left","lightbox_hit_bg_color":"000000","lightbox_hit_bg_transparent":"70","lightbox_hit_border_width":"1","lightbox_hit_border_style":"none","lightbox_hit_border_color":"000000","lightbox_hit_border_radius":"5px","lightbox_hit_padding":"5px","lightbox_hit_margin":"0 5px","lightbox_hit_color":"FFFFFF","lightbox_hit_font_style":"Ubuntu","lightbox_hit_font_weight":"normal","lightbox_hit_font_size":"14","album_masonry_back_font_color":"323A45","album_masonry_back_font_style":"Ubuntu","album_masonry_back_font_size":15,"album_masonry_back_font_weight":"bold","album_masonry_back_padding":"0","album_masonry_title_font_color":"323A45","album_masonry_thumb_title_font_color_hover":"FFFFFF","album_masonry_title_font_style":"Ubuntu","album_masonry_thumb_title_pos":"bottom","album_masonry_title_font_size":16,"album_masonry_title_font_weight":"bold","album_masonry_title_margin":"","album_masonry_title_shadow":"0px 0px 0px #888888","album_masonry_thumb_margin":0,"album_masonry_thumb_padding":4,"album_masonry_thumb_border_radius":"0","album_masonry_container_margin":1,"album_masonry_thumb_border_width":0,"album_masonry_thumb_border_style":"none","album_masonry_thumb_border_color":"CCCCCC","album_masonry_thumb_bg_color":"000000","album_masonry_thumbs_bg_color":"FFFFFF","album_masonry_thumb_bg_transparent":0,"album_masonry_thumb_box_shadow":"","album_masonry_thumb_transparent":100,"album_masonry_thumb_align":"center","album_masonry_thumb_hover_effect":"zoom","album_masonry_thumb_hover_effect_value":"1.08","album_masonry_thumb_transition":1,"album_masonry_gal_title_font_color":"323A45","album_masonry_gal_title_font_style":"Ubuntu","album_masonry_gal_title_font_size":18,"album_masonry_gal_title_font_weight":"bold","album_masonry_gal_title_margin":"0 2px 2px 2px","album_masonry_gal_title_shadow":"0px 0px 0px #888888","album_masonry_gal_title_align":"center","carousel_cont_bg_color":"000000","carousel_cont_btn_transparent":0,"carousel_close_btn_transparent":50,"carousel_rl_btn_bg_color":"FFFFFF","carousel_rl_btn_border_radius":"20px","carousel_rl_btn_border_width":0,"carousel_rl_btn_border_style":"none","carousel_rl_btn_border_color":"FFFFFF","carousel_rl_btn_color":"303030","carousel_rl_btn_height":35,"carousel_rl_btn_size":15,"carousel_play_pause_btn_size":25,"carousel_rl_btn_width":35,"carousel_close_rl_btn_hover_color":"191919","carousel_rl_btn_style":"fa-chevron","carousel_mergin_bottom":"0.5","carousel_font_family":"arial","carousel_feature_border_width":2,"carousel_feature_border_style":"none","carousel_feature_border_color":"5D204F","carousel_caption_background_color":"000000","carousel_caption_bottom":0,"carousel_caption_p_mergin":0,"carousel_caption_p_pedding":5,"carousel_caption_p_font_weight":"bold","carousel_caption_p_font_size":14,"carousel_caption_p_color":"FFFFFF","carousel_title_opacity":100,"carousel_title_border_radius":"5px","mosaic_thumb_transition":"1"}';
|
|
@@ -572,7 +575,7 @@ class ThemesModel_bwg {
|
|
| 572 |
}
|
| 573 |
}
|
| 574 |
else {
|
| 575 |
-
|
| 576 |
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
|
| 577 |
$row->id = 0;
|
| 578 |
$row->name = '';
|
|
@@ -654,28 +657,28 @@ class ThemesModel_bwg {
|
|
| 654 |
if (!isset($row->album_extended_gal_title_align)) {
|
| 655 |
$row->album_extended_gal_title_align = 'center';
|
| 656 |
}
|
| 657 |
-
|
| 658 |
-
|
| 659 |
-
|
| 660 |
-
|
| 661 |
-
|
| 662 |
-
|
| 663 |
-
|
| 664 |
-
|
| 665 |
-
|
| 666 |
-
|
| 667 |
-
|
| 668 |
-
|
| 669 |
-
|
| 670 |
-
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
|
| 678 |
-
|
| 679 |
$row->album_masonry_gal_title_font_color = '323A45';
|
| 680 |
}
|
| 681 |
if (!isset($row->album_masonry_gal_title_font_style)) {
|
|
@@ -759,80 +762,85 @@ class ThemesModel_bwg {
|
|
| 759 |
if (!isset($row->blog_style_gal_title_align)) {
|
| 760 |
$row->blog_style_gal_title_align = 'center';
|
| 761 |
}
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 772 |
-
|
| 773 |
-
|
| 774 |
-
|
| 775 |
-
|
| 776 |
-
|
| 777 |
-
|
| 778 |
-
|
| 779 |
-
|
| 780 |
-
|
| 781 |
-
|
| 782 |
-
|
| 783 |
-
|
| 784 |
-
|
| 785 |
-
|
| 786 |
-
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
|
| 794 |
-
|
| 795 |
-
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
|
| 800 |
-
|
| 801 |
-
|
| 802 |
-
|
| 803 |
-
|
| 804 |
-
|
| 805 |
-
|
| 806 |
-
|
| 807 |
-
|
| 808 |
-
|
| 809 |
-
|
| 810 |
-
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
|
| 814 |
-
|
| 815 |
-
|
| 816 |
-
|
| 817 |
-
|
| 818 |
-
|
| 819 |
-
|
| 820 |
-
|
| 821 |
-
|
| 822 |
-
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
|
| 829 |
-
|
| 830 |
-
|
| 831 |
-
|
| 832 |
-
|
| 833 |
-
|
| 834 |
-
|
| 835 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 836 |
}
|
| 837 |
return $row;
|
| 838 |
}
|
|
@@ -854,7 +862,7 @@ class ThemesModel_bwg {
|
|
| 854 |
* @param array $params
|
| 855 |
* params = [selection, table, where, order_by, limit]
|
| 856 |
*
|
| 857 |
-
* @return
|
| 858 |
*/
|
| 859 |
public function delete_rows( $params ) {
|
| 860 |
global $wpdb;
|
|
@@ -907,10 +915,10 @@ class ThemesModel_bwg {
|
|
| 907 |
/**
|
| 908 |
* Get request value.
|
| 909 |
*
|
| 910 |
-
* @param
|
| 911 |
-
* @param
|
| 912 |
*
|
| 913 |
-
* @return
|
| 914 |
*/
|
| 915 |
public function insert_data_to_db( $table, $data ) {
|
| 916 |
global $wpdb;
|
| 560 |
if ($row->mosaic_thumb_gal_title_shadow) {
|
| 561 |
$row->mosaic_thumb_gal_title_shadow = '';
|
| 562 |
}
|
| 563 |
+
if (!isset($row->album_masonry_container_margin)) {
|
| 564 |
+
$row->album_masonry_container_margin = 1;
|
| 565 |
+
}
|
| 566 |
}
|
| 567 |
else {
|
| 568 |
$theme_defaults = '{"thumb_margin":"4","album_compact_title_font_color_hover":"FFFFFF","compact_container_margin":"1","container_margin":"1","thumb_padding":"0","thumb_border_radius":"0","thumb_border_width":0,"thumb_border_style":"none","thumb_border_color":"CCCCCC","thumb_bg_color":"000000","thumbs_bg_color":"FFFFFF","thumb_bg_transparent":0,"thumb_box_shadow":"","thumb_transparent":100,"thumb_align":"center","thumb_hover_effect":"zoom","thumb_hover_effect_value":"1.08","thumb_transition":1,"thumb_title_margin":"2px","thumb_title_font_style":"Ubuntu","thumb_title_pos":"bottom","thumb_title_font_color":"323A45","thumb_title_font_color_hover":"FFFFFF","thumb_title_shadow":"","thumb_title_font_size":16,"thumb_title_font_weight":"bold","thumb_gal_title_font_color":"323A45","thumb_gal_title_font_style":"Ubuntu","thumb_gal_title_font_size":18,"thumb_gal_title_font_weight":"bold","thumb_gal_title_margin":"2px","thumb_gal_title_shadow":"","thumb_gal_title_align":"center","page_nav_position":"bottom","page_nav_align":"center","page_nav_number":0,"page_nav_font_size":12,"page_nav_font_style":"Ubuntu","page_nav_font_color":"666666","page_nav_font_weight":"bold","page_nav_border_width":1,"page_nav_border_style":"solid","page_nav_border_color":"E3E3E3","page_nav_border_radius":"0","page_nav_margin":"0","page_nav_padding":"3px 6px","page_nav_button_bg_color":"FFFFFF","page_nav_button_bg_transparent":100,"page_nav_box_shadow":"0","page_nav_button_transition":1,"page_nav_button_text":0,"lightbox_ctrl_btn_pos":"bottom","lightbox_ctrl_btn_align":"center","lightbox_ctrl_btn_height":20,"lightbox_ctrl_btn_margin_top":10,"lightbox_ctrl_btn_margin_left":7,"lightbox_ctrl_btn_transparent":100,"lightbox_ctrl_btn_color":"808080","lightbox_toggle_btn_height":20,"lightbox_toggle_btn_width":100,"lightbox_ctrl_cont_bg_color":"FFFFFF","lightbox_ctrl_cont_border_radius":4,"lightbox_ctrl_cont_transparent":85,"lightbox_close_btn_bg_color":"FFFFFF","lightbox_close_btn_border_radius":"16px","lightbox_close_btn_border_width":2,"lightbox_close_btn_border_style":"none","lightbox_close_btn_border_color":"FFFFFF","lightbox_close_btn_box_shadow":"0","lightbox_close_btn_color":"808080","lightbox_close_btn_size":20,"lightbox_close_btn_width":30,"lightbox_close_btn_height":30,"lightbox_close_btn_top":"-20","lightbox_close_btn_right":"-15","lightbox_close_btn_full_color":"000000","lightbox_close_btn_transparent":60,"lightbox_rl_btn_bg_color":"FFFFFF","lightbox_rl_btn_transparent":"60","lightbox_rl_btn_border_radius":"20px","lightbox_rl_btn_border_width":0,"lightbox_rl_btn_border_style":"none","lightbox_rl_btn_border_color":"FFFFFF","lightbox_rl_btn_box_shadow":"","lightbox_rl_btn_color":"ADADAD","lightbox_rl_btn_height":35,"lightbox_rl_btn_width":35,"lightbox_rl_btn_size":25,"lightbox_close_rl_btn_hover_color":"808080","lightbox_comment_pos":"left","lightbox_comment_width":350,"lightbox_comment_bg_color":"FFFFFF","lightbox_comment_font_color":"7A7A7A","lightbox_comment_font_style":"Ubuntu","lightbox_comment_font_size":12,"lightbox_comment_button_bg_color":"2F2F2F","lightbox_comment_button_border_color":"666666","lightbox_comment_button_border_width":1,"lightbox_comment_button_border_style":"none","lightbox_comment_button_border_radius":"7px","lightbox_comment_button_padding":"10px 10px","lightbox_comment_input_bg_color":"F7F8F9","lightbox_comment_input_border_color":"EBEBEB","lightbox_comment_input_border_width":2,"lightbox_comment_input_border_style":"none","lightbox_comment_input_border_radius":"7px","lightbox_comment_input_padding":"5px","lightbox_comment_separator_width":20,"lightbox_comment_separator_style":"none","lightbox_comment_separator_color":"383838","lightbox_comment_author_font_size":14,"lightbox_comment_date_font_size":10,"lightbox_comment_body_font_size":12,"lightbox_comment_share_button_color":"808080","lightbox_filmstrip_rl_bg_color":"EBEBEB","lightbox_filmstrip_rl_btn_size":20,"lightbox_filmstrip_rl_btn_color":"808080","lightbox_filmstrip_thumb_margin":"0 1px","lightbox_filmstrip_thumb_border_width":1,"lightbox_filmstrip_thumb_border_style":"none","lightbox_filmstrip_thumb_border_color":"000000","lightbox_filmstrip_thumb_border_radius":"0","lightbox_filmstrip_thumb_deactive_transparent":80,"lightbox_filmstrip_pos":"bottom","lightbox_filmstrip_thumb_active_border_width":0,"lightbox_filmstrip_thumb_active_border_color":"FFFFFF","lightbox_overlay_bg_transparent":60,"lightbox_bg_color":"FFFFFF","lightbox_overlay_bg_color":"EEEEEE","lightbox_rl_btn_style":"fa-angle","lightbox_bg_transparent":100,"blog_style_margin":"2px","blog_style_padding":"0","blog_style_border_radius":"0","blog_style_border_width":1,"blog_style_border_style":"solid","blog_style_border_color":"F5F5F5","blog_style_bg_color":"FFFFFF","blog_style_transparent":80,"blog_style_box_shadow":"","blog_style_align":"center","blog_style_share_buttons_margin":"5px auto 10px auto","blog_style_share_buttons_border_radius":"0","blog_style_share_buttons_border_width":0,"blog_style_share_buttons_border_style":"none","blog_style_share_buttons_border_color":"000000","blog_style_share_buttons_bg_color":"FFFFFF","blog_style_share_buttons_align":"right","blog_style_img_font_size":16,"blog_style_img_font_family":"Ubuntu","blog_style_img_font_color":"000000","blog_style_share_buttons_font_size":20,"blog_style_share_buttons_color":"B3AFAF","blog_style_share_buttons_bg_transparent":0,"blog_style_gal_title_font_color":"323A45","blog_style_gal_title_font_style":"Ubuntu","blog_style_gal_title_font_size":16,"blog_style_gal_title_font_weight":"bold","blog_style_gal_title_margin":"2px","blog_style_gal_title_shadow":"0px 0px 0px #888888","blog_style_gal_title_align":"center","image_browser_margin":"2px auto","image_browser_padding":"4px","image_browser_border_radius":"0","image_browser_border_width":1,"image_browser_border_style":"none","image_browser_border_color":"F5F5F5","image_browser_bg_color":"EBEBEB","image_browser_box_shadow":"","image_browser_transparent":80,"image_browser_align":"center","image_browser_image_description_margin":"0px 5px 0px 5px","image_browser_image_description_padding":"8px 8px 8px 8px","image_browser_image_description_border_radius":"0","image_browser_image_description_border_width":1,"image_browser_image_description_border_style":"none","image_browser_image_description_border_color":"FFFFFF","image_browser_image_description_bg_color":"EBEBEB","image_browser_image_description_align":"center","image_browser_img_font_size":15,"image_browser_img_font_family":"Ubuntu","image_browser_img_font_color":"000000","image_browser_full_padding":"4px","image_browser_full_border_radius":"0","image_browser_full_border_width":2,"image_browser_full_border_style":"none","image_browser_full_border_color":"F7F7F7","image_browser_full_bg_color":"F5F5F5","image_browser_full_transparent":90,"image_browser_image_title_align":"top","image_browser_gal_title_font_color":"323A45","image_browser_gal_title_font_style":"Ubuntu","image_browser_gal_title_font_size":16,"image_browser_gal_title_font_weight":"bold","image_browser_gal_title_margin":"2px","image_browser_gal_title_shadow":"0px 0px 0px #888888","image_browser_gal_title_align":"center","album_compact_title_margin":"2px","album_compact_thumb_margin":4,"album_compact_back_padding":"0","album_compact_thumb_padding":0,"album_compact_thumb_border_radius":"0","album_compact_thumb_border_width":0,"album_compact_title_font_style":"Ubuntu","album_compact_back_font_color":"323A45","album_compact_title_font_color":"323A45","album_compact_title_shadow":"0px 0px 0px #888888","album_compact_thumb_bg_transparent":0,"album_compact_thumb_box_shadow":"0px 0px 0px #888888","album_compact_thumb_transition":1,"album_compact_thumb_border_style":"none","album_compact_thumb_border_color":"CCCCCC","album_compact_thumb_bg_color":"000000","album_compact_back_font_weight":"bold","album_compact_back_font_size":15,"album_compact_back_font_style":"Ubuntu","album_compact_thumb_title_pos":"bottom","album_compact_thumbs_bg_color":"FFFFFF","album_compact_title_font_size":16,"album_compact_title_font_weight":"bold","album_compact_thumb_align":"center","album_compact_thumb_hover_effect":"zoom","album_compact_thumb_transparent":100,"album_compact_thumb_hover_effect_value":"1.08","album_compact_gal_title_font_color":"323A45","album_compact_gal_title_font_style":"Ubuntu","album_compact_gal_title_font_size":18,"album_compact_gal_title_font_weight":"bold","album_compact_gal_title_margin":"0 2px 2px 2px","album_compact_gal_title_shadow":"0px 0px 0px #888888","album_compact_gal_title_align":"center","album_extended_thumb_margin":2,"album_extended_thumb_padding":0,"album_extended_thumb_border_radius":"0","album_extended_thumb_border_width":0,"album_extended_thumb_border_style":"none","album_extended_thumb_border_color":"CCCCCC","album_extended_thumb_bg_color":"FFFFFF","album_extended_thumbs_bg_color":"FFFFFF","album_extended_thumb_bg_transparent":0,"album_extended_thumb_box_shadow":"","album_extended_thumb_transparent":100,"album_extended_thumb_align":"left","album_extended_thumb_hover_effect":"scale","album_extended_thumb_hover_effect_value":"1.08","album_extended_thumb_transition":1,"album_extended_back_font_color":"323A45","album_extended_back_font_style":"Ubuntu","album_extended_back_font_size":15,"album_extended_back_font_weight":"bold","album_extended_back_padding":"0","album_extended_div_bg_color":"FFFFFF","album_extended_div_bg_transparent":0,"album_extended_div_border_radius":"0 0 0 0","album_extended_div_margin":"0 0 5px 0","album_extended_div_padding":10,"album_extended_div_separator_width":1,"album_extended_div_separator_style":"solid","album_extended_div_separator_color":"E0E0E0","album_extended_thumb_div_bg_color":"FFFFFF","album_extended_thumb_div_border_radius":"0","album_extended_thumb_div_border_width":1,"album_extended_thumb_div_border_style":"solid","album_extended_thumb_div_border_color":"E8E8E8","album_extended_thumb_div_padding":"5px","album_extended_text_div_bg_color":"FFFFFF","album_extended_text_div_border_radius":"0","album_extended_text_div_border_width":1,"album_extended_text_div_border_style":"solid","album_extended_text_div_border_color":"E8E8E8","album_extended_text_div_padding":"5px","album_extended_title_span_border_width":1,"album_extended_title_span_border_style":"none","album_extended_title_span_border_color":"CCCCCC","album_extended_title_font_color":"000000","album_extended_title_font_style":"Ubuntu","album_extended_title_font_size":16,"album_extended_title_font_weight":"bold","album_extended_title_margin_bottom":2,"album_extended_title_padding":"2px","album_extended_desc_span_border_width":1,"album_extended_desc_span_border_style":"none","album_extended_desc_span_border_color":"CCCCCC","album_extended_desc_font_color":"000000","album_extended_desc_font_style":"Ubuntu","album_extended_desc_font_size":14,"album_extended_desc_font_weight":"normal","album_extended_desc_padding":"2px","album_extended_desc_more_color":"F2D22E","album_extended_desc_more_size":12,"album_extended_gal_title_font_color":"323A45","album_extended_gal_title_font_style":"Ubuntu","album_extended_gal_title_font_size":18,"album_extended_gal_title_font_weight":"bold","album_extended_gal_title_margin":"0 2px 2px 2px","album_extended_gal_title_shadow":"0px 0px 0px #888888","album_extended_gal_title_align":"center","slideshow_cont_bg_color":"F2F2F2","slideshow_close_btn_transparent":100,"slideshow_rl_btn_bg_color":"FFFFFF","slideshow_rl_btn_border_radius":"20px","slideshow_rl_btn_border_width":0,"slideshow_rl_btn_border_style":"none","slideshow_rl_btn_border_color":"FFFFFF","slideshow_rl_btn_box_shadow":"","slideshow_rl_btn_color":"D6D6D6","slideshow_rl_btn_height":37,"slideshow_rl_btn_size":12,"slideshow_rl_btn_width":37,"slideshow_close_rl_btn_hover_color":"BABABA","slideshow_filmstrip_pos":"bottom","slideshow_filmstrip_thumb_border_width":0,"slideshow_filmstrip_thumb_border_style":"none","slideshow_filmstrip_thumb_border_color":"000000","slideshow_filmstrip_thumb_border_radius":"0","slideshow_filmstrip_thumb_margin":"0px 2px 0 0 ","slideshow_filmstrip_thumb_active_border_width":0,"slideshow_filmstrip_thumb_active_border_color":"FFFFFF","slideshow_filmstrip_thumb_deactive_transparent":100,"slideshow_filmstrip_rl_bg_color":"F2F2F2","slideshow_filmstrip_rl_btn_color":"BABABA","slideshow_filmstrip_rl_btn_size":20,"slideshow_title_font_size":16,"slideshow_title_font":"Ubuntu","slideshow_title_color":"FFFFFF","slideshow_title_opacity":70,"slideshow_title_border_radius":"5px","slideshow_title_background_color":"000000","slideshow_title_padding":"0 0 0 0","slideshow_description_font_size":14,"slideshow_description_font":"Ubuntu","slideshow_description_color":"FFFFFF","slideshow_description_opacity":70,"slideshow_description_border_radius":"0","slideshow_description_background_color":"000000","slideshow_description_padding":"5px 10px 5px 10px","slideshow_dots_width":12,"slideshow_dots_height":12,"slideshow_dots_border_radius":"5px","slideshow_dots_background_color":"F2D22E","slideshow_dots_margin":3,"slideshow_dots_active_background_color":"FFFFFF","slideshow_dots_active_border_width":1,"slideshow_dots_active_border_color":"000000","slideshow_play_pause_btn_size":35,"slideshow_rl_btn_style":"fa-chevron","masonry_thumb_padding":"4","masonry_container_margin":"1","masonry_thumb_border_width":"0","masonry_thumb_border_style":"none","masonry_thumb_border_color":"CCCCCC","masonry_thumb_border_radius":"0","masonry_thumb_hover_effect":"zoom","masonry_thumb_hover_effect_value":"1.08","masonry_thumb_transition":"1","masonry_thumbs_bg_color":"FFFFFF","masonry_thumb_bg_color":"000000","masonry_thumb_bg_transparent":"0","masonry_thumb_transparent":"100","masonry_thumb_align":"center","masonry_thumb_title_font_size":"16","masonry_thumb_title_font_color":"323A45","masonry_thumb_title_font_color_hover":"FFFFFF","masonry_thumb_title_font_style":"Ubuntu","masonry_thumb_title_font_weight":"bold","masonry_thumb_title_margin":"2px","masonry_description_font_size":16,"masonry_description_color":"323A45","masonry_description_font_style":"Ubuntu","masonry_thumb_gal_title_font_size":18,"masonry_thumb_gal_title_font_color":"323A45","masonry_thumb_gal_title_font_style":"Ubuntu","masonry_thumb_gal_title_font_weight":"bold","masonry_thumb_gal_title_shadow":"","masonry_thumb_gal_title_margin":"2px","masonry_thumb_gal_title_align":"center","mosaic_thumb_padding":"2","mosaic_container_margin":"1","mosaic_thumb_border_radius":"0","mosaic_thumb_border_width":"0","mosaic_thumb_border_style":"none","mosaic_thumb_border_color":"CCCCCC","mosaic_thumb_bg_color":"000000","mosaic_thumb_transparent":"100","mosaic_thumbs_bg_color":"FFFFFF","mosaic_thumb_bg_transparent":"0","mosaic_thumb_align":"center","mosaic_thumb_hover_effect":"zoom","mosaic_thumb_hover_effect_value":"1.08","mosaic_thumb_title_margin":"2px","mosaic_thumb_title_font_style":"Ubuntu","mosaic_thumb_title_font_color":"323A45","mosaic_thumb_title_font_color_hover":"FFFFFF","mosaic_thumb_title_shadow":"","mosaic_thumb_title_font_size":16,"mosaic_thumb_title_font_weight":"bold","mosaic_thumb_gal_title_font_color":"323A45","mosaic_thumb_gal_title_font_style":"Ubuntu","mosaic_thumb_gal_title_font_size":16,"mosaic_thumb_gal_title_font_weight":"bold","mosaic_thumb_gal_title_margin":"2px","mosaic_thumb_gal_title_shadow":"","mosaic_thumb_gal_title_align":"center","lightbox_info_pos":"bottom","lightbox_info_align":"left","lightbox_info_bg_color":"FFFFFF","lightbox_info_bg_transparent":"70","lightbox_info_border_width":"1","lightbox_info_border_style":"none","lightbox_info_border_color":"000000","lightbox_info_border_radius":"0px","lightbox_info_padding":"10px 7px 44px 10px","lightbox_info_margin":"10px 10px -5px 10px","lightbox_title_color":"808080","lightbox_title_font_style":"Ubuntu","lightbox_title_font_weight":"bold","lightbox_title_font_size":"16","lightbox_description_color":"B0B0B0","lightbox_description_font_style":"Ubuntu","lightbox_description_font_weight":"bold","lightbox_description_font_size":"13","lightbox_rate_pos":"top","lightbox_rate_align":"left","lightbox_rate_icon":"star","lightbox_rate_color":"F9D062","lightbox_rate_size":"20","lightbox_rate_stars_count":"5","lightbox_rate_padding":"15px","lightbox_rate_hover_color":"F7B50E","lightbox_hit_pos":"bottom","lightbox_hit_align":"left","lightbox_hit_bg_color":"000000","lightbox_hit_bg_transparent":"70","lightbox_hit_border_width":"1","lightbox_hit_border_style":"none","lightbox_hit_border_color":"000000","lightbox_hit_border_radius":"5px","lightbox_hit_padding":"5px","lightbox_hit_margin":"0 5px","lightbox_hit_color":"FFFFFF","lightbox_hit_font_style":"Ubuntu","lightbox_hit_font_weight":"normal","lightbox_hit_font_size":"14","album_masonry_back_font_color":"323A45","album_masonry_back_font_style":"Ubuntu","album_masonry_back_font_size":15,"album_masonry_back_font_weight":"bold","album_masonry_back_padding":"0","album_masonry_title_font_color":"323A45","album_masonry_thumb_title_font_color_hover":"FFFFFF","album_masonry_title_font_style":"Ubuntu","album_masonry_thumb_title_pos":"bottom","album_masonry_title_font_size":16,"album_masonry_title_font_weight":"bold","album_masonry_title_margin":"","album_masonry_title_shadow":"0px 0px 0px #888888","album_masonry_thumb_margin":0,"album_masonry_thumb_padding":4,"album_masonry_thumb_border_radius":"0","album_masonry_container_margin":1,"album_masonry_thumb_border_width":0,"album_masonry_thumb_border_style":"none","album_masonry_thumb_border_color":"CCCCCC","album_masonry_thumb_bg_color":"000000","album_masonry_thumbs_bg_color":"FFFFFF","album_masonry_thumb_bg_transparent":0,"album_masonry_thumb_box_shadow":"","album_masonry_thumb_transparent":100,"album_masonry_thumb_align":"center","album_masonry_thumb_hover_effect":"zoom","album_masonry_thumb_hover_effect_value":"1.08","album_masonry_thumb_transition":1,"album_masonry_gal_title_font_color":"323A45","album_masonry_gal_title_font_style":"Ubuntu","album_masonry_gal_title_font_size":18,"album_masonry_gal_title_font_weight":"bold","album_masonry_gal_title_margin":"0 2px 2px 2px","album_masonry_gal_title_shadow":"0px 0px 0px #888888","album_masonry_gal_title_align":"center","carousel_cont_bg_color":"000000","carousel_cont_btn_transparent":0,"carousel_close_btn_transparent":50,"carousel_rl_btn_bg_color":"FFFFFF","carousel_rl_btn_border_radius":"20px","carousel_rl_btn_border_width":0,"carousel_rl_btn_border_style":"none","carousel_rl_btn_border_color":"FFFFFF","carousel_rl_btn_color":"303030","carousel_rl_btn_height":35,"carousel_rl_btn_size":15,"carousel_play_pause_btn_size":25,"carousel_rl_btn_width":35,"carousel_close_rl_btn_hover_color":"191919","carousel_rl_btn_style":"fa-chevron","carousel_mergin_bottom":"0.5","carousel_font_family":"arial","carousel_feature_border_width":2,"carousel_feature_border_style":"none","carousel_feature_border_color":"5D204F","carousel_caption_background_color":"000000","carousel_caption_bottom":0,"carousel_caption_p_mergin":0,"carousel_caption_p_pedding":5,"carousel_caption_p_font_weight":"bold","carousel_caption_p_font_size":14,"carousel_caption_p_color":"FFFFFF","carousel_title_opacity":100,"carousel_title_border_radius":"5px","mosaic_thumb_transition":"1"}';
|
| 575 |
}
|
| 576 |
}
|
| 577 |
else {
|
| 578 |
+
// TODO. unknown logic!!!
|
| 579 |
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
|
| 580 |
$row->id = 0;
|
| 581 |
$row->name = '';
|
| 657 |
if (!isset($row->album_extended_gal_title_align)) {
|
| 658 |
$row->album_extended_gal_title_align = 'center';
|
| 659 |
}
|
| 660 |
+
// Masonry default value. TODO change logic in the other version.
|
| 661 |
+
$row->masonry_thumb_hover_effect = 'zoom';
|
| 662 |
+
$row->masonry_thumb_hover_effect_value = '1.08';
|
| 663 |
+
$row->masonry_thumb_bg_color = '000000';
|
| 664 |
+
$row->masonry_thumb_title_font_size = '16';
|
| 665 |
+
$row->masonry_thumb_title_font_color = '323A45' ;
|
| 666 |
+
$row->masonry_thumb_title_font_color_hover = 'FFFFFF';
|
| 667 |
+
$row->masonry_thumb_title_font_style = 'Ubuntu';
|
| 668 |
+
$row->masonry_thumb_title_font_weight = 'bold';
|
| 669 |
+
$row->masonry_thumb_title_margin = '2px';
|
| 670 |
+
$row->masonry_description_font_size = '16';
|
| 671 |
+
$row->masonry_description_color = '323A45';
|
| 672 |
+
$row->masonry_description_font_style = 'Ubuntu';
|
| 673 |
+
$row->masonry_thumb_gal_title_font_size = '18';
|
| 674 |
+
$row->masonry_thumb_gal_title_font_color = '323A45';
|
| 675 |
+
$row->masonry_thumb_gal_title_font_style = 'Ubuntu';
|
| 676 |
+
$row->masonry_thumb_gal_title_font_weight = 'bold';
|
| 677 |
+
$row->masonry_thumb_gal_title_shadow = '';
|
| 678 |
+
$row->masonry_thumb_gal_title_margin = '0 2px 2px 2px';
|
| 679 |
+
$row->masonry_thumb_gal_title_align = 'center';
|
| 680 |
|
| 681 |
+
if (!isset($row->album_masonry_gal_title_font_color)) {
|
| 682 |
$row->album_masonry_gal_title_font_color = '323A45';
|
| 683 |
}
|
| 684 |
if (!isset($row->album_masonry_gal_title_font_style)) {
|
| 762 |
if (!isset($row->blog_style_gal_title_align)) {
|
| 763 |
$row->blog_style_gal_title_align = 'center';
|
| 764 |
}
|
| 765 |
+
if ( $row->thumb_hover_effect ) {
|
| 766 |
+
$row->thumb_hover_effect = 'zoom';
|
| 767 |
+
}
|
| 768 |
+
if ( $row->thumb_hover_effect_value ) {
|
| 769 |
+
$row->thumb_hover_effect_value = '1.08';
|
| 770 |
+
}
|
| 771 |
+
if ( $row->masonry_thumbs_bg_color ) {
|
| 772 |
+
$row->masonry_thumbs_bg_color = 'FFFFFF';
|
| 773 |
+
}
|
| 774 |
+
if ( $row->thumb_bg_color ) {
|
| 775 |
+
$row->thumb_bg_color = '000000';
|
| 776 |
+
}
|
| 777 |
+
if ( $row->thumb_title_font_color ) {
|
| 778 |
+
$row->thumb_title_font_color = '323A45';
|
| 779 |
+
}
|
| 780 |
+
if ( !isset($row->thumb_title_font_color_hover) ) {
|
| 781 |
+
$row->thumb_title_font_color_hover = 'FFFFFF';
|
| 782 |
+
}
|
| 783 |
+
if ( !isset($row->album_compact_title_font_color_hover) ) {
|
| 784 |
+
$row->album_compact_title_font_color_hover = 'FFFFFF';
|
| 785 |
+
}
|
| 786 |
+
if ( $row->thumb_title_shadow ) {
|
| 787 |
+
$row->thumb_title_shadow = '';
|
| 788 |
+
}
|
| 789 |
+
if ( $row->thumb_gal_title_font_color ) {
|
| 790 |
+
$row->thumb_gal_title_font_color = '323A45';
|
| 791 |
+
}
|
| 792 |
+
if ( $row->thumb_gal_title_font_style ) {
|
| 793 |
+
$row->thumb_gal_title_font_style = 'Ubuntu';
|
| 794 |
+
}
|
| 795 |
+
if ( $row->thumb_gal_title_font_size ) {
|
| 796 |
+
$row->thumb_gal_title_font_size = '18';
|
| 797 |
+
}
|
| 798 |
+
if ( $row->thumb_gal_title_shadow ) {
|
| 799 |
+
$row->thumb_gal_title_shadow = '';
|
| 800 |
+
}
|
| 801 |
+
/* Mosaic */
|
| 802 |
+
if ( $row->mosaic_thumb_bg_color ) {
|
| 803 |
+
$row->mosaic_thumb_bg_color = '000000';
|
| 804 |
+
}
|
| 805 |
+
if ( $row->mosaic_thumbs_bg_color ) {
|
| 806 |
+
$row->mosaic_thumbs_bg_color = 'FFFFFF';
|
| 807 |
+
}
|
| 808 |
+
if ( $row->mosaic_thumb_hover_effect ) {
|
| 809 |
+
$row->mosaic_thumb_hover_effect = 'zoom';
|
| 810 |
+
}
|
| 811 |
+
if ( $row->mosaic_thumb_hover_effect_value ) {
|
| 812 |
+
$row->mosaic_thumb_hover_effect_value = '1.08';
|
| 813 |
+
}
|
| 814 |
+
if ( $row->mosaic_thumb_title_font_size ) {
|
| 815 |
+
$row->mosaic_thumb_title_font_size = '16';
|
| 816 |
+
}
|
| 817 |
+
if ( $row->mosaic_thumb_title_font_color ) {
|
| 818 |
+
$row->mosaic_thumb_title_font_color = '323A45';
|
| 819 |
+
}
|
| 820 |
+
if ( !isset($row->mosaic_thumb_title_font_color_hover) ) {
|
| 821 |
+
$row->mosaic_thumb_title_font_color_hover = 'FFFFFF';
|
| 822 |
+
}
|
| 823 |
+
if ( $row->mosaic_thumb_title_font_style ) {
|
| 824 |
+
$row->mosaic_thumb_title_font_style = 'Ubuntu';
|
| 825 |
+
}
|
| 826 |
+
if ( $row->mosaic_thumb_title_shadow ) {
|
| 827 |
+
$row->mosaic_thumb_title_shadow = '';
|
| 828 |
+
}
|
| 829 |
+
if ( $row->mosaic_thumb_gal_title_font_size ) {
|
| 830 |
+
$row->mosaic_thumb_gal_title_font_size = '18';
|
| 831 |
+
}
|
| 832 |
+
if ( $row->mosaic_thumb_gal_title_font_color ) {
|
| 833 |
+
$row->mosaic_thumb_gal_title_font_color = '323A45';
|
| 834 |
+
}
|
| 835 |
+
if ( $row->mosaic_thumb_gal_title_font_style ) {
|
| 836 |
+
$row->mosaic_thumb_gal_title_font_style = 'Ubuntu';
|
| 837 |
+
}
|
| 838 |
+
if ( $row->mosaic_thumb_gal_title_shadow ) {
|
| 839 |
+
$row->mosaic_thumb_gal_title_shadow = '';
|
| 840 |
+
}
|
| 841 |
+
if (!isset($row->album_masonry_container_margin)) {
|
| 842 |
+
$row->album_masonry_container_margin = 1;
|
| 843 |
+
}
|
| 844 |
}
|
| 845 |
return $row;
|
| 846 |
}
|
| 862 |
* @param array $params
|
| 863 |
* params = [selection, table, where, order_by, limit]
|
| 864 |
*
|
| 865 |
+
* @return false|int
|
| 866 |
*/
|
| 867 |
public function delete_rows( $params ) {
|
| 868 |
global $wpdb;
|
| 915 |
/**
|
| 916 |
* Get request value.
|
| 917 |
*
|
| 918 |
+
* @param $table
|
| 919 |
+
* @param $data
|
| 920 |
*
|
| 921 |
+
* @return false|int
|
| 922 |
*/
|
| 923 |
public function insert_data_to_db( $table, $data ) {
|
| 924 |
global $wpdb;
|
admin/views/AdminView.php
CHANGED
|
@@ -99,7 +99,7 @@ class AdminView_bwg {
|
|
| 99 |
?>
|
| 100 |
</h1>
|
| 101 |
<?php
|
| 102 |
-
if (
|
| 103 |
require BWG()->plugin_dir . '/framework/howto/howto.php';
|
| 104 |
}
|
| 105 |
?>
|
|
@@ -211,7 +211,8 @@ class AdminView_bwg {
|
|
| 211 |
* @return string
|
| 212 |
*/
|
| 213 |
protected function pagination($page_url, $total, $items_per_page = 20) {
|
| 214 |
-
$
|
|
|
|
| 215 |
$search = WDWLibrary::get('s', '');
|
| 216 |
$orderby = WDWLibrary::get('orderby', '');
|
| 217 |
$order = WDWLibrary::get('order', '');
|
| 99 |
?>
|
| 100 |
</h1>
|
| 101 |
<?php
|
| 102 |
+
if ($how_to_button) {
|
| 103 |
require BWG()->plugin_dir . '/framework/howto/howto.php';
|
| 104 |
}
|
| 105 |
?>
|
| 211 |
* @return string
|
| 212 |
*/
|
| 213 |
protected function pagination($page_url, $total, $items_per_page = 20) {
|
| 214 |
+
$paged = intval(abs(WDWLibrary::get('paged', 1)));
|
| 215 |
+
$page_number = $paged < 0 ? 1 : $paged;
|
| 216 |
$search = WDWLibrary::get('s', '');
|
| 217 |
$orderby = WDWLibrary::get('orderby', '');
|
| 218 |
$order = WDWLibrary::get('order', '');
|
admin/views/Albums.php
CHANGED
|
@@ -4,12 +4,19 @@
|
|
| 4 |
* Class AlbumsView_bwg
|
| 5 |
*/
|
| 6 |
class AlbumsView_bwg extends AdminView_bwg {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
/**
|
| 8 |
* Display page.
|
| 9 |
*
|
| 10 |
* @param $params
|
| 11 |
*/
|
| 12 |
public function display( $params = array() ) {
|
|
|
|
| 13 |
ob_start();
|
| 14 |
echo $this->body($params);
|
| 15 |
// Pass the content to form.
|
| 4 |
* Class AlbumsView_bwg
|
| 5 |
*/
|
| 6 |
class AlbumsView_bwg extends AdminView_bwg {
|
| 7 |
+
|
| 8 |
+
public function __construct() {
|
| 9 |
+
wp_enqueue_script(BWG()->prefix . '_jquery.ui.touch-punch.min');
|
| 10 |
+
parent::__construct();
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
/**
|
| 14 |
* Display page.
|
| 15 |
*
|
| 16 |
* @param $params
|
| 17 |
*/
|
| 18 |
public function display( $params = array() ) {
|
| 19 |
+
wp_enqueue_script(BWG()->prefix . '_jquery.ui.touch-punch.min');
|
| 20 |
ob_start();
|
| 21 |
echo $this->body($params);
|
| 22 |
// Pass the content to form.
|
admin/views/Galleries.php
CHANGED
|
@@ -4,12 +4,19 @@
|
|
| 4 |
* Class GalleriesView_bwg
|
| 5 |
*/
|
| 6 |
class GalleriesView_bwg extends AdminView_bwg {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
/**
|
| 8 |
* Display page.
|
| 9 |
*
|
| 10 |
* @param $params
|
| 11 |
*/
|
| 12 |
public function display( $params = array() ) {
|
|
|
|
| 13 |
ob_start();
|
| 14 |
echo $this->body($params);
|
| 15 |
$form_attr = array(
|
|
@@ -393,7 +400,7 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
| 393 |
} ?>" type="button" onclick="jQuery('.opacity_add_embed').show(); jQuery('#add_embed_help').hide(); return false;" value="<?php _e('Embed Media', BWG()->prefix); ?>" />
|
| 394 |
<input id="show_bulk_embed" class="button button-secondary button-large" title="<?php _e('Social Bulk Embed', BWG()->prefix); ?>" style="<?php if ( $params['gallery_type'] != '' ) {
|
| 395 |
echo 'display:none';
|
| 396 |
-
} ?>" type="button" onclick="jQuery('.opacity_bulk_embed').show(); return false;" value="<?php _e('Social Bulk Embed', BWG()->prefix); ?>" />
|
| 397 |
<?php
|
| 398 |
if ( is_plugin_active('image-optimizer-wd/io-wd.php') && !empty($params['rows']) ) {
|
| 399 |
?><a href="<?php echo add_query_arg(array('page' => 'iowd_settings', 'target' => 'wd_gallery'), admin_url('admin.php')); ?>" class="button button-primary button-large" target="_blank"><?php _e("Optimize Images", BWG()->prefix); ?></a><?php
|
|
@@ -707,10 +714,6 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
| 707 |
?>
|
| 708 |
</td>
|
| 709 |
<td data-colname="<?php _e('Redirect URL', BWG()->prefix); ?>" class="redirect_cont">
|
| 710 |
-
<i class="wd-info dashicons dashicons-info" data-id="wd-info-redirect"></i>
|
| 711 |
-
<div id="wd-info-redirect" class="wd-hide">
|
| 712 |
-
<p>Enter a URL to redirect users as they click on image thumbnails.</p>
|
| 713 |
-
</div>
|
| 714 |
<textarea rows="4" onkeypress="prevent_new_line(event)" class="bwg_redirect_url" id="redirect_url_<?php echo $row->id; ?>" name="redirect_url_<?php echo $row->id; ?>"><?php echo $row->redirect_url; ?></textarea>
|
| 715 |
</td>
|
| 716 |
<td data-colname="<?php _e('Tags', BWG()->prefix); ?>">
|
| 4 |
* Class GalleriesView_bwg
|
| 5 |
*/
|
| 6 |
class GalleriesView_bwg extends AdminView_bwg {
|
| 7 |
+
|
| 8 |
+
public function __construct() {
|
| 9 |
+
wp_enqueue_script(BWG()->prefix . '_jquery.ui.touch-punch.min');
|
| 10 |
+
parent::__construct();
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
/**
|
| 14 |
* Display page.
|
| 15 |
*
|
| 16 |
* @param $params
|
| 17 |
*/
|
| 18 |
public function display( $params = array() ) {
|
| 19 |
+
wp_enqueue_script(BWG()->prefix . '_jquery.ui.touch-punch.min');
|
| 20 |
ob_start();
|
| 21 |
echo $this->body($params);
|
| 22 |
$form_attr = array(
|
| 400 |
} ?>" type="button" onclick="jQuery('.opacity_add_embed').show(); jQuery('#add_embed_help').hide(); return false;" value="<?php _e('Embed Media', BWG()->prefix); ?>" />
|
| 401 |
<input id="show_bulk_embed" class="button button-secondary button-large" title="<?php _e('Social Bulk Embed', BWG()->prefix); ?>" style="<?php if ( $params['gallery_type'] != '' ) {
|
| 402 |
echo 'display:none';
|
| 403 |
+
} ?>" type="button" onclick="<?php echo (!BWG()->is_pro ? 'alert(\'' . addslashes(__('This option is disabled in free version.', BWG()->prefix)) . '\');' : 'jQuery(\'.opacity_bulk_embed\').show();'); ?> return false;" value="<?php _e('Social Bulk Embed', BWG()->prefix); ?>" />
|
| 404 |
<?php
|
| 405 |
if ( is_plugin_active('image-optimizer-wd/io-wd.php') && !empty($params['rows']) ) {
|
| 406 |
?><a href="<?php echo add_query_arg(array('page' => 'iowd_settings', 'target' => 'wd_gallery'), admin_url('admin.php')); ?>" class="button button-primary button-large" target="_blank"><?php _e("Optimize Images", BWG()->prefix); ?></a><?php
|
| 714 |
?>
|
| 715 |
</td>
|
| 716 |
<td data-colname="<?php _e('Redirect URL', BWG()->prefix); ?>" class="redirect_cont">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 717 |
<textarea rows="4" onkeypress="prevent_new_line(event)" class="bwg_redirect_url" id="redirect_url_<?php echo $row->id; ?>" name="redirect_url_<?php echo $row->id; ?>"><?php echo $row->redirect_url; ?></textarea>
|
| 718 |
</td>
|
| 719 |
<td data-colname="<?php _e('Tags', BWG()->prefix); ?>">
|
admin/views/Options.php
CHANGED
|
@@ -1393,7 +1393,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
| 1393 |
</div>
|
| 1394 |
<div class="wd-box-content wd-width-100 bwg-vertical-block-masonry">
|
| 1395 |
<div class="wd-group">
|
| 1396 |
-
<label class="wd-label"><?php _e('Show image title
|
| 1397 |
<div class="bwg-flex">
|
| 1398 |
<input type="radio" name="masonry_image_title" id="masonry_image_title_0" value="hover" <?php if ($row->masonry_image_title == "hover") echo 'checked="checked"'; ?> /><label for="masonry_image_title_0" class="wd-radio-label"><?php _e('Show on hover', BWG()->prefix); ?></label>
|
| 1399 |
<input type="radio" name="masonry_image_title" id="masonry_image_title_1" value="show" <?php if ($row->masonry_image_title == "show") echo 'checked="checked"'; ?> /><label for="masonry_image_title_1" class="wd-radio-label"><?php _e('Always show', BWG()->prefix); ?></label>
|
|
@@ -1404,12 +1404,12 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
| 1404 |
</div>
|
| 1405 |
<div class="wd-box-content wd-width-100 bwg-vertical-block-masonry" id="tr_show_masonry_thumb_description">
|
| 1406 |
<div class="wd-group">
|
| 1407 |
-
<label class="wd-label"><?php _e('Show image descriptions
|
| 1408 |
<div class="bwg-flex">
|
| 1409 |
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="show_masonry_thumb_description" id="masonry_thumb_desc_1" value="1" <?php if ($row->show_masonry_thumb_description) echo 'checked="checked"'; ?> /><label for="masonry_thumb_desc_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
|
| 1410 |
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="show_masonry_thumb_description" id="masonry_thumb_desc_0" value="0" <?php if (!$row->show_masonry_thumb_description) echo 'checked="checked"'; ?> /><label for="masonry_thumb_desc_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
|
| 1411 |
</div>
|
| 1412 |
-
<p class="description"><?php _e('Enable this setting to display descriptions under images
|
| 1413 |
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
| 1414 |
</div>
|
| 1415 |
</div>
|
| 1393 |
</div>
|
| 1394 |
<div class="wd-box-content wd-width-100 bwg-vertical-block-masonry">
|
| 1395 |
<div class="wd-group">
|
| 1396 |
+
<label class="wd-label"><?php _e('Show image title', BWG()->prefix); ?></label>
|
| 1397 |
<div class="bwg-flex">
|
| 1398 |
<input type="radio" name="masonry_image_title" id="masonry_image_title_0" value="hover" <?php if ($row->masonry_image_title == "hover") echo 'checked="checked"'; ?> /><label for="masonry_image_title_0" class="wd-radio-label"><?php _e('Show on hover', BWG()->prefix); ?></label>
|
| 1399 |
<input type="radio" name="masonry_image_title" id="masonry_image_title_1" value="show" <?php if ($row->masonry_image_title == "show") echo 'checked="checked"'; ?> /><label for="masonry_image_title_1" class="wd-radio-label"><?php _e('Always show', BWG()->prefix); ?></label>
|
| 1404 |
</div>
|
| 1405 |
<div class="wd-box-content wd-width-100 bwg-vertical-block-masonry" id="tr_show_masonry_thumb_description">
|
| 1406 |
<div class="wd-group">
|
| 1407 |
+
<label class="wd-label"><?php _e('Show image descriptions', BWG()->prefix); ?></label>
|
| 1408 |
<div class="bwg-flex">
|
| 1409 |
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="show_masonry_thumb_description" id="masonry_thumb_desc_1" value="1" <?php if ($row->show_masonry_thumb_description) echo 'checked="checked"'; ?> /><label for="masonry_thumb_desc_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
|
| 1410 |
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="show_masonry_thumb_description" id="masonry_thumb_desc_0" value="0" <?php if (!$row->show_masonry_thumb_description) echo 'checked="checked"'; ?> /><label for="masonry_thumb_desc_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
|
| 1411 |
</div>
|
| 1412 |
+
<p class="description"><?php _e('Enable this setting to display descriptions under images.', BWG()->prefix); ?></p>
|
| 1413 |
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
| 1414 |
</div>
|
| 1415 |
</div>
|
admin/views/Widget.php
CHANGED
|
@@ -137,7 +137,7 @@ class WidgetView_bwg {
|
|
| 137 |
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="<?php echo $name_view_type; ?>" id="<?php echo $id_view_type . "_1"; ?>" value="thumbnails" class="sel_thumbnail_gallery" <?php if (isset($instance['view_type']) && $instance['view_type'] == "thumbnails") echo 'checked="checked"'; ?> /><label for="<?php echo $id_view_type . "_1"; ?>"><?php _e('Thumbnail', BWG()->prefix); ?></label><br>
|
| 138 |
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="<?php echo $name_view_type; ?>" id="<?php echo $id_view_type . "_2"; ?>" value="masonry" class="sel_masonry_gallery" <?php if (isset($instance['view_type']) && $instance['view_type'] == "masonry") echo 'checked="checked"'; ?> /><label for="<?php echo $id_view_type . "_2"; ?>"><?php _e('Masonry', BWG()->prefix); ?></label>
|
| 139 |
<?php if ( !BWG()->is_pro ) { ?>
|
| 140 |
-
<p class="description" style="background-color: #e0e0e0; border: 1px solid #c3c3c3; border-radius: 2px; color: #666666; padding: 2px;"><?php echo BWG()->free_msg; ?></p>
|
| 141 |
<?php } ?>
|
| 142 |
</p>
|
| 143 |
<p id="p_albums" style="display:<?php echo ($instance['type'] == "album") ? "" : "none" ?>;">
|
|
@@ -189,12 +189,14 @@ class WidgetView_bwg {
|
|
| 189 |
jQuery(jQuery(div).find("#p_albums")).css("display", "none");
|
| 190 |
jQuery(obj).nextAll(".bwg_hidden").first().attr("value", "gallery");
|
| 191 |
jQuery(jQuery(div).find("#view_type_container")).css("display", "block");
|
|
|
|
| 192 |
}
|
| 193 |
else {
|
| 194 |
jQuery(jQuery(div).find("#p_galleries")).css("display", "none");
|
| 195 |
jQuery(jQuery(div).find("#p_albums")).css("display", "");
|
| 196 |
jQuery(obj).nextAll(".bwg_hidden").first().attr("value", "album");
|
| 197 |
jQuery(jQuery(div).find("#view_type_container")).css("display", "none");
|
|
|
|
| 198 |
}
|
| 199 |
}
|
| 200 |
</script>
|
| 137 |
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="<?php echo $name_view_type; ?>" id="<?php echo $id_view_type . "_1"; ?>" value="thumbnails" class="sel_thumbnail_gallery" <?php if (isset($instance['view_type']) && $instance['view_type'] == "thumbnails") echo 'checked="checked"'; ?> /><label for="<?php echo $id_view_type . "_1"; ?>"><?php _e('Thumbnail', BWG()->prefix); ?></label><br>
|
| 138 |
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="<?php echo $name_view_type; ?>" id="<?php echo $id_view_type . "_2"; ?>" value="masonry" class="sel_masonry_gallery" <?php if (isset($instance['view_type']) && $instance['view_type'] == "masonry") echo 'checked="checked"'; ?> /><label for="<?php echo $id_view_type . "_2"; ?>"><?php _e('Masonry', BWG()->prefix); ?></label>
|
| 139 |
<?php if ( !BWG()->is_pro ) { ?>
|
| 140 |
+
<p class="description" style="display: <?php echo $instance['type'] != 'album' ? 'block' : 'none'; ?>; background-color: #e0e0e0; border: 1px solid #c3c3c3; border-radius: 2px; color: #666666; padding: 2px;"><?php echo BWG()->free_msg; ?></p>
|
| 141 |
<?php } ?>
|
| 142 |
</p>
|
| 143 |
<p id="p_albums" style="display:<?php echo ($instance['type'] == "album") ? "" : "none" ?>;">
|
| 189 |
jQuery(jQuery(div).find("#p_albums")).css("display", "none");
|
| 190 |
jQuery(obj).nextAll(".bwg_hidden").first().attr("value", "gallery");
|
| 191 |
jQuery(jQuery(div).find("#view_type_container")).css("display", "block");
|
| 192 |
+
jQuery(jQuery(div).find("#view_type_container")).next("p.description").css("display", "block");
|
| 193 |
}
|
| 194 |
else {
|
| 195 |
jQuery(jQuery(div).find("#p_galleries")).css("display", "none");
|
| 196 |
jQuery(jQuery(div).find("#p_albums")).css("display", "");
|
| 197 |
jQuery(obj).nextAll(".bwg_hidden").first().attr("value", "album");
|
| 198 |
jQuery(jQuery(div).find("#view_type_container")).css("display", "none");
|
| 199 |
+
jQuery(jQuery(div).find("#view_type_container")).next("p.description").css("display", "none");
|
| 200 |
}
|
| 201 |
}
|
| 202 |
</script>
|
css/bwg_frontend.css
CHANGED
|
@@ -1236,14 +1236,14 @@ div[id^="bwg_container"] .bwg-carousel {
|
|
| 1236 |
.bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel-right"] {
|
| 1237 |
right: 0;
|
| 1238 |
left: auto;
|
|
|
|
| 1239 |
}
|
| 1240 |
|
| 1241 |
.bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel-left"] {
|
| 1242 |
left: 20px;
|
|
|
|
| 1243 |
}
|
| 1244 |
|
| 1245 |
-
|
| 1246 |
-
|
| 1247 |
.bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_video_hide"] {
|
| 1248 |
width:100%;
|
| 1249 |
height:100%;
|
|
@@ -1338,7 +1338,6 @@ div[id^="bwg_container"] .bwg-carousel {
|
|
| 1338 |
background-color:#000000;
|
| 1339 |
text-align: center;
|
| 1340 |
}
|
| 1341 |
-
|
| 1342 |
/* Search line responsiveness*/
|
| 1343 |
/* Tags, Orders, Search */
|
| 1344 |
.bwg_thumbnail.bwg_container {
|
|
@@ -1404,4 +1403,12 @@ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .searc
|
|
| 1404 |
body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoSelect > .CaptionCont > label {
|
| 1405 |
width: 30px;
|
| 1406 |
}
|
| 1407 |
-
/* Search line responsiveness*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1236 |
.bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel-right"] {
|
| 1237 |
right: 0;
|
| 1238 |
left: auto;
|
| 1239 |
+
z-index:999;
|
| 1240 |
}
|
| 1241 |
|
| 1242 |
.bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel-left"] {
|
| 1243 |
left: 20px;
|
| 1244 |
+
z-index:999;
|
| 1245 |
}
|
| 1246 |
|
|
|
|
|
|
|
| 1247 |
.bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_video_hide"] {
|
| 1248 |
width:100%;
|
| 1249 |
height:100%;
|
| 1338 |
background-color:#000000;
|
| 1339 |
text-align: center;
|
| 1340 |
}
|
|
|
|
| 1341 |
/* Search line responsiveness*/
|
| 1342 |
/* Tags, Orders, Search */
|
| 1343 |
.bwg_thumbnail.bwg_container {
|
| 1403 |
body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoSelect > .CaptionCont > label {
|
| 1404 |
width: 30px;
|
| 1405 |
}
|
| 1406 |
+
/* Search line responsiveness*/
|
| 1407 |
+
/* Conflict with Sydney Theme */
|
| 1408 |
+
.bwg_container.bwg_image_browser .fluid-width-video-wrapper,
|
| 1409 |
+
.bwg_container.bwg_blog_style .fluid-width-video-wrapper,
|
| 1410 |
+
.bwg_container.bwg_carousel .fluid-width-video-wrapper {
|
| 1411 |
+
width: 100%;
|
| 1412 |
+
position: unset !important;
|
| 1413 |
+
padding: 0 !important;
|
| 1414 |
+
}
|
css/bwg_tables.css
CHANGED
|
@@ -1415,17 +1415,6 @@ textarea.bwg_popup_input {
|
|
| 1415 |
.wd-table-container {
|
| 1416 |
height: calc(100% - 230px);
|
| 1417 |
}
|
| 1418 |
-
|
| 1419 |
-
.redirect_cont .wd-info.dashicons.dashicons-info {
|
| 1420 |
-
position:absolute;
|
| 1421 |
-
left:85px;
|
| 1422 |
-
}
|
| 1423 |
-
}
|
| 1424 |
-
|
| 1425 |
-
@media screen and (min-width: 782px) {
|
| 1426 |
-
.redirect_cont .wd-info.dashicons.dashicons-info {
|
| 1427 |
-
display: none;
|
| 1428 |
-
}
|
| 1429 |
}
|
| 1430 |
|
| 1431 |
.tab_image {
|
|
@@ -1684,13 +1673,6 @@ textarea.bwg_popup_input {
|
|
| 1684 |
}
|
| 1685 |
}
|
| 1686 |
|
| 1687 |
-
@media screen and (min-width: 768px) and (max-width: 1280px) {
|
| 1688 |
-
.col_drag,
|
| 1689 |
-
.col_desc {
|
| 1690 |
-
display: none !important;
|
| 1691 |
-
}
|
| 1692 |
-
}
|
| 1693 |
-
|
| 1694 |
@media screen and (max-width: 782px) {
|
| 1695 |
.col_drag,
|
| 1696 |
.wd-order,
|
|
@@ -2155,3 +2137,9 @@ li.tabs {
|
|
| 2155 |
.ui-tooltip-content a {
|
| 2156 |
color:#FFFFFF;
|
| 2157 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1415 |
.wd-table-container {
|
| 1416 |
height: calc(100% - 230px);
|
| 1417 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1418 |
}
|
| 1419 |
|
| 1420 |
.tab_image {
|
| 1673 |
}
|
| 1674 |
}
|
| 1675 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1676 |
@media screen and (max-width: 782px) {
|
| 1677 |
.col_drag,
|
| 1678 |
.wd-order,
|
| 2137 |
.ui-tooltip-content a {
|
| 2138 |
color:#FFFFFF;
|
| 2139 |
}
|
| 2140 |
+
|
| 2141 |
+
@media screen and (min-width: 768px) {
|
| 2142 |
+
#images_table .column-primary {
|
| 2143 |
+
width: 360px;
|
| 2144 |
+
}
|
| 2145 |
+
}
|
filemanager/UploadHandler.php
CHANGED
|
@@ -647,6 +647,7 @@ class bwg_UploadHandler {
|
|
| 647 |
$file->iso = $exif['iso'];
|
| 648 |
$file->orientation = $exif['orientation'];
|
| 649 |
$file->copyright = $exif['copyright'];
|
|
|
|
| 650 |
}
|
| 651 |
}
|
| 652 |
else {
|
| 647 |
$file->iso = $exif['iso'];
|
| 648 |
$file->orientation = $exif['orientation'];
|
| 649 |
$file->copyright = $exif['copyright'];
|
| 650 |
+
$file->tags = $exif['tags'];
|
| 651 |
}
|
| 652 |
}
|
| 653 |
else {
|
filemanager/js/default.js
CHANGED
|
@@ -224,6 +224,7 @@ function submitFiles() {
|
|
| 224 |
fileData['iso'] = wdb_all_files_filtered[i]["iso"];
|
| 225 |
fileData['orientation'] = wdb_all_files_filtered[i]["orientation"];
|
| 226 |
fileData['copyright'] = wdb_all_files_filtered[i]["copyright"];
|
|
|
|
| 227 |
filesValid.push(fileData);
|
| 228 |
}
|
| 229 |
}
|
|
@@ -252,6 +253,7 @@ function submitFiles() {
|
|
| 252 |
fileData['iso'] = jQuery(file_object).attr("fileIso");
|
| 253 |
fileData['orientation'] = jQuery(file_object).attr("fileOrientation");
|
| 254 |
fileData['copyright'] = jQuery(file_object).attr("fileCopyright");
|
|
|
|
| 255 |
filesValid.push(fileData);
|
| 256 |
}
|
| 257 |
}
|
|
@@ -634,6 +636,7 @@ function ajax_print_images(files, element, view_type, count) {
|
|
| 634 |
var fileIso = corent_file["iso"];
|
| 635 |
var fileOrientation = corent_file["orientation"];
|
| 636 |
var fileCopyright = corent_file["copyright"];
|
|
|
|
| 637 |
var onmouseover = "onFileMOver(event, this);";
|
| 638 |
var onmouseout = "onFileMOut(event, this);";
|
| 639 |
var onclick = "onFileClick(event, this);";
|
|
@@ -673,6 +676,7 @@ function ajax_print_images(files, element, view_type, count) {
|
|
| 673 |
'fileIso="' + fileIso + '" ' +
|
| 674 |
'fileOrientation="' + fileOrientation + '" ' +
|
| 675 |
'fileCopyright="' + fileCopyright + '" ' +
|
|
|
|
| 676 |
'isDir="' + isDir + '" ' +
|
| 677 |
'onmouseover="' + onmouseover + '" ' +
|
| 678 |
'onmouseout="' + onmouseout + '" ' +
|
| 224 |
fileData['iso'] = wdb_all_files_filtered[i]["iso"];
|
| 225 |
fileData['orientation'] = wdb_all_files_filtered[i]["orientation"];
|
| 226 |
fileData['copyright'] = wdb_all_files_filtered[i]["copyright"];
|
| 227 |
+
fileData['tags'] = wdb_all_files_filtered[i]["tags"];
|
| 228 |
filesValid.push(fileData);
|
| 229 |
}
|
| 230 |
}
|
| 253 |
fileData['iso'] = jQuery(file_object).attr("fileIso");
|
| 254 |
fileData['orientation'] = jQuery(file_object).attr("fileOrientation");
|
| 255 |
fileData['copyright'] = jQuery(file_object).attr("fileCopyright");
|
| 256 |
+
fileData['tags'] = jQuery(file_object).attr("fileTags");
|
| 257 |
filesValid.push(fileData);
|
| 258 |
}
|
| 259 |
}
|
| 636 |
var fileIso = corent_file["iso"];
|
| 637 |
var fileOrientation = corent_file["orientation"];
|
| 638 |
var fileCopyright = corent_file["copyright"];
|
| 639 |
+
var fileTags = corent_file["tags"];
|
| 640 |
var onmouseover = "onFileMOver(event, this);";
|
| 641 |
var onmouseout = "onFileMOut(event, this);";
|
| 642 |
var onclick = "onFileClick(event, this);";
|
| 676 |
'fileIso="' + fileIso + '" ' +
|
| 677 |
'fileOrientation="' + fileOrientation + '" ' +
|
| 678 |
'fileCopyright="' + fileCopyright + '" ' +
|
| 679 |
+
'fileTags="' + fileTags + '" ' +
|
| 680 |
'isDir="' + isDir + '" ' +
|
| 681 |
'onmouseover="' + onmouseover + '" ' +
|
| 682 |
'onmouseout="' + onmouseout + '" ' +
|
filemanager/model.php
CHANGED
|
@@ -132,6 +132,7 @@ class FilemanagerModel {
|
|
| 132 |
$file['iso'] = $exif['iso'];
|
| 133 |
$file['orientation'] = $exif['orientation'];
|
| 134 |
$file['copyright'] = $exif['copyright'];
|
|
|
|
| 135 |
$files[] = $file;
|
| 136 |
}
|
| 137 |
}
|
| 132 |
$file['iso'] = $exif['iso'];
|
| 133 |
$file['orientation'] = $exif['orientation'];
|
| 134 |
$file['copyright'] = $exif['copyright'];
|
| 135 |
+
$file['tags'] = $exif['tags'];
|
| 136 |
$files[] = $file;
|
| 137 |
}
|
| 138 |
}
|
filemanager/view.php
CHANGED
|
@@ -96,7 +96,7 @@ class FilemanagerView {
|
|
| 96 |
break;
|
| 97 |
}
|
| 98 |
$i = 0;
|
| 99 |
-
|
| 100 |
<form id="adminForm" name="adminForm" action="" method="post" class="wp-core-ui">
|
| 101 |
<?php wp_nonce_field( '', 'bwg_nonce' ); ?>
|
| 102 |
<div id="wrapper">
|
|
@@ -124,7 +124,6 @@ class FilemanagerView {
|
|
| 124 |
<span id="search_by_name" class="ctrl_bar_btn">
|
| 125 |
<input type="search" placeholder="Search" class="ctrl_bar_btn search_by_name">
|
| 126 |
</span>
|
| 127 |
-
|
| 128 |
</div>
|
| 129 |
</div>
|
| 130 |
<div id="path">
|
|
@@ -223,6 +222,7 @@ class FilemanagerView {
|
|
| 223 |
fileIso="<?php echo isset( $file[ 'iso' ] ) ? $file[ 'iso' ] : ''; ?>"
|
| 224 |
fileOrientation="<?php echo isset( $file[ 'orientation' ] ) ? $file[ 'orientation' ] : ''; ?>"
|
| 225 |
fileCopyright="<?php echo isset( $file[ 'copyright' ] ) ? $file[ 'copyright' ] : ''; ?>"
|
|
|
|
| 226 |
onmouseover="onFileMOver(event, this);"
|
| 227 |
onmouseout="onFileMOut(event, this);"
|
| 228 |
onclick="onFileClick(event, this);"
|
| 96 |
break;
|
| 97 |
}
|
| 98 |
$i = 0;
|
| 99 |
+
?>
|
| 100 |
<form id="adminForm" name="adminForm" action="" method="post" class="wp-core-ui">
|
| 101 |
<?php wp_nonce_field( '', 'bwg_nonce' ); ?>
|
| 102 |
<div id="wrapper">
|
| 124 |
<span id="search_by_name" class="ctrl_bar_btn">
|
| 125 |
<input type="search" placeholder="Search" class="ctrl_bar_btn search_by_name">
|
| 126 |
</span>
|
|
|
|
| 127 |
</div>
|
| 128 |
</div>
|
| 129 |
<div id="path">
|
| 222 |
fileIso="<?php echo isset( $file[ 'iso' ] ) ? $file[ 'iso' ] : ''; ?>"
|
| 223 |
fileOrientation="<?php echo isset( $file[ 'orientation' ] ) ? $file[ 'orientation' ] : ''; ?>"
|
| 224 |
fileCopyright="<?php echo isset( $file[ 'copyright' ] ) ? $file[ 'copyright' ] : ''; ?>"
|
| 225 |
+
fileTags='<?php echo isset( $file[ 'tags' ] ) ? $file[ 'tags' ] : ''; ?>'
|
| 226 |
onmouseover="onFileMOver(event, this);"
|
| 227 |
onmouseout="onFileMOut(event, this);"
|
| 228 |
onclick="onFileClick(event, this);"
|
framework/WDWLibrary.php
CHANGED
|
@@ -1318,7 +1318,7 @@ class WDWLibrary {
|
|
| 1318 |
if ( !$limit ) {
|
| 1319 |
$limitstart = ' LIMIT 50 OFFSET ' . $limit;
|
| 1320 |
}
|
| 1321 |
-
$where = (($gallery_id) ? ' `gallery_id`=' . $gallery_id . ($image_id
|
| 1322 |
$search = WDWLibrary::get( 's', '' );
|
| 1323 |
if ( $search ) {
|
| 1324 |
$where .= ' AND `filename` LIKE "%' . $search . '%"';
|
|
@@ -1677,6 +1677,7 @@ class WDWLibrary {
|
|
| 1677 |
'shutter_speed' => 0,
|
| 1678 |
'title' => '',
|
| 1679 |
'orientation' => 0,
|
|
|
|
| 1680 |
);
|
| 1681 |
if ( is_callable( 'iptcparse' ) ) {
|
| 1682 |
getimagesize( $file, $info );
|
|
@@ -1684,9 +1685,13 @@ class WDWLibrary {
|
|
| 1684 |
$iptc = iptcparse( $info['APP13'] );
|
| 1685 |
if ( ! empty( $iptc['2#105'][0] ) ) {
|
| 1686 |
$meta['title'] = trim( $iptc['2#105'][0] );
|
| 1687 |
-
}
|
|
|
|
| 1688 |
$meta['title'] = trim( $iptc['2#005'][0] );
|
| 1689 |
}
|
|
|
|
|
|
|
|
|
|
| 1690 |
if ( ! empty( $iptc['2#120'][0] ) ) {
|
| 1691 |
$caption = trim( $iptc['2#120'][0] );
|
| 1692 |
if ( empty( $meta['title'] ) ) {
|
|
@@ -2573,31 +2578,27 @@ class WDWLibrary {
|
|
| 2573 |
?>
|
| 2574 |
<div class="bwg-topbar bwg-topbar-links">
|
| 2575 |
<div class="bwg-topbar-links-container">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2576 |
<?php
|
|
|
|
|
|
|
| 2577 |
if ( $show_guide_link ) {
|
| 2578 |
?>
|
| 2579 |
-
<a href="<?php echo $user_guide_link; ?>" target="_blank">
|
| 2580 |
-
<div class="bwg-topbar-links-item">
|
| 2581 |
-
<?php _e('User guide', BWG()->prefix); ?>
|
| 2582 |
-
</div>
|
| 2583 |
-
</a>
|
| 2584 |
-
<?php
|
| 2585 |
-
}
|
| 2586 |
-
if (!BWG()->is_pro) {
|
| 2587 |
-
if ( $show_guide_link ) {
|
| 2588 |
-
?>
|
| 2589 |
<span class="bwg-topbar-separator"></span>
|
| 2590 |
-
|
| 2591 |
-
|
| 2592 |
-
|
| 2593 |
-
|
| 2594 |
-
|
| 2595 |
-
|
| 2596 |
-
|
| 2597 |
-
|
| 2598 |
-
|
| 2599 |
-
}
|
| 2600 |
-
?>
|
| 2601 |
</div>
|
| 2602 |
</div>
|
| 2603 |
</div>
|
| 1318 |
if ( !$limit ) {
|
| 1319 |
$limitstart = ' LIMIT 50 OFFSET ' . $limit;
|
| 1320 |
}
|
| 1321 |
+
$where = (($gallery_id) ? ' `gallery_id`=' . $gallery_id . ($image_id ? ' AND `id`=' . $image_id : '') : 1);
|
| 1322 |
$search = WDWLibrary::get( 's', '' );
|
| 1323 |
if ( $search ) {
|
| 1324 |
$where .= ' AND `filename` LIKE "%' . $search . '%"';
|
| 1677 |
'shutter_speed' => 0,
|
| 1678 |
'title' => '',
|
| 1679 |
'orientation' => 0,
|
| 1680 |
+
'tags' => '',
|
| 1681 |
);
|
| 1682 |
if ( is_callable( 'iptcparse' ) ) {
|
| 1683 |
getimagesize( $file, $info );
|
| 1685 |
$iptc = iptcparse( $info['APP13'] );
|
| 1686 |
if ( ! empty( $iptc['2#105'][0] ) ) {
|
| 1687 |
$meta['title'] = trim( $iptc['2#105'][0] );
|
| 1688 |
+
}
|
| 1689 |
+
elseif ( ! empty( $iptc['2#005'][0] ) ) {
|
| 1690 |
$meta['title'] = trim( $iptc['2#005'][0] );
|
| 1691 |
}
|
| 1692 |
+
if ( ! empty( $iptc['2#025'] ) ) {
|
| 1693 |
+
$meta['tags'] = json_encode($iptc['2#025']);
|
| 1694 |
+
}
|
| 1695 |
if ( ! empty( $iptc['2#120'][0] ) ) {
|
| 1696 |
$caption = trim( $iptc['2#120'][0] );
|
| 1697 |
if ( empty( $meta['title'] ) ) {
|
| 2578 |
?>
|
| 2579 |
<div class="bwg-topbar bwg-topbar-links">
|
| 2580 |
<div class="bwg-topbar-links-container">
|
| 2581 |
+
<?php if ( $show_guide_link ) { ?>
|
| 2582 |
+
<a href="<?php echo $user_guide_link; ?>" target="_blank">
|
| 2583 |
+
<div class="bwg-topbar-links-item">
|
| 2584 |
+
<?php _e('User guide', BWG()->prefix); ?>
|
| 2585 |
+
</div>
|
| 2586 |
+
</a>
|
| 2587 |
<?php
|
| 2588 |
+
}
|
| 2589 |
+
if (!BWG()->is_pro) {
|
| 2590 |
if ( $show_guide_link ) {
|
| 2591 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2592 |
<span class="bwg-topbar-separator"></span>
|
| 2593 |
+
<?php } ?>
|
| 2594 |
+
<a href="<?php echo $support_forum_link; ?>" target="_blank">
|
| 2595 |
+
<div class="bwg-topbar-links-item">
|
| 2596 |
+
<?php _e('Support Forum', BWG()->prefix); ?>
|
| 2597 |
+
</div>
|
| 2598 |
+
</a>
|
| 2599 |
+
<?php
|
| 2600 |
+
}
|
| 2601 |
+
?>
|
|
|
|
|
|
|
| 2602 |
</div>
|
| 2603 |
</div>
|
| 2604 |
</div>
|
frontend/models/model.php
CHANGED
|
@@ -149,6 +149,10 @@ class BWGModelSite {
|
|
| 149 |
// To disable Jetpack Photon module.
|
| 150 |
$thumb_urls[] = BWG()->upload_url . $row->thumb_url;
|
| 151 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
$images[] = $row;
|
| 153 |
}
|
| 154 |
}
|
| 149 |
// To disable Jetpack Photon module.
|
| 150 |
$thumb_urls[] = BWG()->upload_url . $row->thumb_url;
|
| 151 |
}
|
| 152 |
+
else {
|
| 153 |
+
// To disable Jetpack Photon module.
|
| 154 |
+
$thumb_urls[] = $row->thumb_url;
|
| 155 |
+
}
|
| 156 |
$images[] = $row;
|
| 157 |
}
|
| 158 |
}
|
frontend/views/BWGViewAlbum_extended_preview.php
CHANGED
|
@@ -77,8 +77,20 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
| 77 |
|
| 78 |
/* ToDO: Remove after refactoring.*/
|
| 79 |
$preview_path_url = htmlspecialchars_decode($row->preview_path, ENT_COMPAT | ENT_QUOTES);
|
| 80 |
-
$preview_path_url
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
$scale = max($params['extended_album_thumb_width'] / $image_thumb_width, $params['extended_album_thumb_height'] / $image_thumb_height);
|
| 83 |
$image_thumb_width *= $scale;
|
| 84 |
$image_thumb_height *= $scale;
|
| 77 |
|
| 78 |
/* ToDO: Remove after refactoring.*/
|
| 79 |
$preview_path_url = htmlspecialchars_decode($row->preview_path, ENT_COMPAT | ENT_QUOTES);
|
| 80 |
+
if ( strpos($preview_path_url, '?bwg') !== FALSE) {
|
| 81 |
+
$preview_path_url = explode('?bwg', $preview_path_url);
|
| 82 |
+
$preview_path = $preview_path_url[0];
|
| 83 |
+
}
|
| 84 |
+
else {
|
| 85 |
+
$preview_path = $preview_path_url;
|
| 86 |
+
}
|
| 87 |
+
list($image_thumb_width, $image_thumb_height) = @getimagesize($preview_path);
|
| 88 |
+
if ( !$image_thumb_width ) {
|
| 89 |
+
$image_thumb_width = 1;
|
| 90 |
+
}
|
| 91 |
+
if ( !$image_thumb_height ) {
|
| 92 |
+
$image_thumb_height = 1;
|
| 93 |
+
}
|
| 94 |
$scale = max($params['extended_album_thumb_width'] / $image_thumb_width, $params['extended_album_thumb_height'] / $image_thumb_height);
|
| 95 |
$image_thumb_width *= $scale;
|
| 96 |
$image_thumb_height *= $scale;
|
frontend/views/view.php
CHANGED
|
@@ -643,13 +643,14 @@ class BWGViewSite {
|
|
| 643 |
if ($count_items > $limit * $page_number) {
|
| 644 |
?>
|
| 645 |
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 646 |
jQuery(document).ready(function () {
|
| 647 |
-
jQuery(window).on("scroll",
|
| 648 |
-
if (jQuery(document).scrollTop() + jQuery(window).height() > (jQuery('#<?php echo $form_id; ?>').offset().top + jQuery('#<?php echo $form_id; ?>').height())) {
|
| 649 |
-
spider_page_<?php echo $current_view; ?>('', <?php echo $page_number; ?>, 1, true);
|
| 650 |
-
return false;
|
| 651 |
-
}
|
| 652 |
-
});
|
| 653 |
});
|
| 654 |
</script>
|
| 655 |
<?php
|
| 643 |
if ($count_items > $limit * $page_number) {
|
| 644 |
?>
|
| 645 |
<script type="text/javascript">
|
| 646 |
+
function bwg_scroll_load_action() {
|
| 647 |
+
if (jQuery(document).scrollTop() + jQuery(window).height() > (jQuery('#<?php echo $form_id; ?>').offset().top + jQuery('#<?php echo $form_id; ?>').height())) {
|
| 648 |
+
spider_page_<?php echo $current_view; ?>('', <?php echo $page_number; ?>, 1, true);
|
| 649 |
+
return false;
|
| 650 |
+
}
|
| 651 |
+
}
|
| 652 |
jQuery(document).ready(function () {
|
| 653 |
+
jQuery(window).on("scroll", bwg_scroll_load_action );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 654 |
});
|
| 655 |
</script>
|
| 656 |
<?php
|
js/bwg.js
CHANGED
|
@@ -390,6 +390,11 @@ function spider_ajax_save(form_id, tr_group) {
|
|
| 390 |
jQuery("#loading_div").hide();
|
| 391 |
bwg_lazy_load_gallery();
|
| 392 |
wd_howto_src_change();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 393 |
}
|
| 394 |
});
|
| 395 |
|
|
@@ -755,16 +760,18 @@ function bwg_add_tag(image_id, tagIds, titles) {
|
|
| 755 |
if (jQuery("#check_" + ids_array[i]).attr('checked') == 'checked' || flag) {
|
| 756 |
image_id = ids_array[i];
|
| 757 |
var tag_ids = document.getElementById('tags_' + image_id).value;
|
| 758 |
-
tags_array = tag_ids.split(',');
|
| 759 |
var counter = 0;
|
| 760 |
for (i = 0; i < tagIds.length; i++) {
|
| 761 |
if (tags_array.indexOf(tagIds[i]) == -1) { /* To prevent add same tag multiple times. */
|
| 762 |
tag_ids = tag_ids + tagIds[i] + ',';
|
| 763 |
var html = jQuery("#" + image_id + "_tag_temptagid").clone().html();
|
| 764 |
-
|
|
|
|
|
|
|
| 765 |
.replace(/temptagname/g, titles[i]);
|
| 766 |
-
jQuery("#tags_div_" + image_id).append("<div class='tag_div' id='" + image_id + "_tag_" +
|
| 767 |
-
jQuery("#" + image_id + "_tag_" +
|
| 768 |
|
| 769 |
counter++;
|
| 770 |
}
|
|
@@ -1646,6 +1653,18 @@ function bwg_add_image(files) {
|
|
| 1646 |
|
| 1647 |
jQuery("#ids_string").val(jQuery("#ids_string").val() + bwg_j + ',');
|
| 1648 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1649 |
j_int++;
|
| 1650 |
bwg_j = 'pr_' + j_int;
|
| 1651 |
}
|
| 390 |
jQuery("#loading_div").hide();
|
| 391 |
bwg_lazy_load_gallery();
|
| 392 |
wd_howto_src_change();
|
| 393 |
+
|
| 394 |
+
/* Add click event to toggle button to expand columns.*/
|
| 395 |
+
jQuery( "tbody" ).on( "click", ".toggle-row", function() {
|
| 396 |
+
jQuery( this ).closest( "tr" ).toggleClass( "is-expanded" );
|
| 397 |
+
});
|
| 398 |
}
|
| 399 |
});
|
| 400 |
|
| 760 |
if (jQuery("#check_" + ids_array[i]).attr('checked') == 'checked' || flag) {
|
| 761 |
image_id = ids_array[i];
|
| 762 |
var tag_ids = document.getElementById('tags_' + image_id).value;
|
| 763 |
+
var tags_array = tag_ids.split(',');
|
| 764 |
var counter = 0;
|
| 765 |
for (i = 0; i < tagIds.length; i++) {
|
| 766 |
if (tags_array.indexOf(tagIds[i]) == -1) { /* To prevent add same tag multiple times. */
|
| 767 |
tag_ids = tag_ids + tagIds[i] + ',';
|
| 768 |
var html = jQuery("#" + image_id + "_tag_temptagid").clone().html();
|
| 769 |
+
/* Remove white spaces from keywords to set as id and remove prefix.*/
|
| 770 |
+
var id = tagIds[i].replace(/\s+/g, '_').replace('bwg_', '');
|
| 771 |
+
html = html.replace(/temptagid/g, id)
|
| 772 |
.replace(/temptagname/g, titles[i]);
|
| 773 |
+
jQuery("#tags_div_" + image_id).append("<div class='tag_div' id='" + image_id + "_tag_" + id + "'>");
|
| 774 |
+
jQuery("#" + image_id + "_tag_" + id).html(html);
|
| 775 |
|
| 776 |
counter++;
|
| 777 |
}
|
| 1653 |
|
| 1654 |
jQuery("#ids_string").val(jQuery("#ids_string").val() + bwg_j + ',');
|
| 1655 |
|
| 1656 |
+
if ( jQuery("#tbody_arr").data("meta") == 1 && files[i]['tags'] ) {
|
| 1657 |
+
/* If tags added to image from image file meta keywords.*/
|
| 1658 |
+
var tagsTitles = jQuery.parseJSON(files[i]['tags']);
|
| 1659 |
+
/* Add prefix to keywords to differ from other tags on save.*/
|
| 1660 |
+
var tagsIds = [];
|
| 1661 |
+
for ( var i in tagsTitles ) {
|
| 1662 |
+
tagsIds[i] = 'bwg_' + tagsTitles[i];
|
| 1663 |
+
}
|
| 1664 |
+
/* Add titles instead of ids.*/
|
| 1665 |
+
bwg_add_tag(bwg_j, tagsIds, tagsTitles);
|
| 1666 |
+
}
|
| 1667 |
+
|
| 1668 |
j_int++;
|
| 1669 |
bwg_j = 'pr_' + j_int;
|
| 1670 |
}
|
js/bwg_frontend.js
CHANGED
|
@@ -122,10 +122,12 @@ jQuery(".bwg-masonry-thumb-span img, .bwg-mosaic-thumb-span img").on("error", fu
|
|
| 122 |
function bwg_slideshow_resize() {
|
| 123 |
jQuery(".bwg_slideshow").each(function () {
|
| 124 |
bwg = jQuery(this).attr('data-bwg');
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
|
|
|
|
|
|
| 129 |
}
|
| 130 |
|
| 131 |
function bwg_blog_style_resize() {
|
|
@@ -145,14 +147,20 @@ function bwg_blog_style_resize() {
|
|
| 145 |
function bwg_blog_style_onload() {
|
| 146 |
jQuery(".bwg_blog_style").each(function () {
|
| 147 |
bwg = jQuery(this).attr('data-bwg');
|
| 148 |
-
|
| 149 |
jQuery('.bwg_embed_frame_16x9_'+bwg).each(function (e) {
|
| 150 |
-
|
| 151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
});
|
| 153 |
|
| 154 |
jQuery('.bwg_embed_frame_instapost_'+bwg).each(function (e) {
|
| 155 |
-
jQuery(this).width(jQuery(this).
|
| 156 |
/* 16 is 2*padding inside iframe */
|
| 157 |
/* 96 is 2*padding(top) + 1*padding(bottom) + 40(footer) + 32(header) */
|
| 158 |
jQuery(this).height((jQuery(this).width() - 16) * jQuery(this).attr('data-height') / jQuery(this).attr('data-width') + 96);
|
|
@@ -226,29 +234,33 @@ function bwg_blog_style_ready() {
|
|
| 226 |
function bwg_slideshow_focus() {
|
| 227 |
jQuery(".bwg_slideshow").each(function () {
|
| 228 |
bwg = jQuery(this).attr('data-bwg');
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
var i = 0;
|
| 236 |
-
jQuery(".bwg_slider_" + bwg).children("span").each(function () {
|
| 237 |
-
if (jQuery(this).css('opacity') == 1) {
|
| 238 |
-
jQuery("#bwg_current_image_key_" + bwg).val(i);
|
| 239 |
}
|
| 240 |
-
i
|
| 241 |
-
|
| 242 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
}
|
| 244 |
|
| 245 |
function bwg_slideshow_blur() {
|
| 246 |
jQuery(".bwg_slideshow").each(function () {
|
| 247 |
bwg = jQuery(this).attr('data-bwg');
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
|
|
|
|
|
|
| 252 |
}
|
| 253 |
|
| 254 |
function bwg_carousel_ready() {
|
|
@@ -315,10 +327,10 @@ function bwg_carousel_resize() {
|
|
| 315 |
function bwg_carousel_onload() {
|
| 316 |
jQuery(".bwg-carousel").each(function () {
|
| 317 |
var bwg = jQuery(this).data("bwg");
|
|
|
|
| 318 |
bwg_params_carousel[bwg] = jQuery(this).data("params");
|
| 319 |
bwg_carousel_watermark(bwg);
|
| 320 |
bwg_carousel_params(bwg);
|
| 321 |
-
|
| 322 |
bwg_container_loaded(bwg);
|
| 323 |
});
|
| 324 |
}
|
|
@@ -360,6 +372,7 @@ function bwg_carousel_params(bwg) {
|
|
| 360 |
parent_container.height((parent_container.width() - 16) * parent_container.attr('data-height') / parent_container.attr('data-width') + 96);
|
| 361 |
}
|
| 362 |
});
|
|
|
|
| 363 |
jQuery(".bwg_carousel_image_container_" + bwg).css({width: bwg_params_carousel[bwg]['image_width'] * par,height: bwg_params_carousel[bwg]['image_height'] * par });
|
| 364 |
jQuery(".bwg_carousel_watermark_text_" + bwg + ", .bwg_carousel_watermark_text_" + bwg + ":hover").css({fontSize: ((parent_width) * (bwg_params_carousel[bwg]['watermark_font_size'] / bwg_params_carousel[bwg]['image_width']) * par)});
|
| 365 |
jQuery(".bwg_carousel-image " + bwg).css({width: bwg_params_carousel[bwg]['image_width'] * par, height: bwg_params_carousel[bwg]['image_height'] * par });
|
|
@@ -474,214 +487,216 @@ function bwg_carousel_preload( bwg, right ) {
|
|
| 474 |
function bwg_slideshow_ready() {
|
| 475 |
jQuery(".bwg_slideshow").each(function () {
|
| 476 |
var bwg = jQuery(this).data("bwg");
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
if (jQuery
|
| 483 |
-
jQuery(
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
|
|
|
|
|
|
| 487 |
}
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
}
|
| 495 |
}
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
jQuery(".bwg_slideshow_image_container_" + bwg).height(jQuery(".bwg_slideshow_image_wrap_" + bwg).height() - bwg_params[bwg]['slideshow_filmstrip_height']);
|
| 509 |
-
}
|
| 510 |
-
else {
|
| 511 |
-
jQuery(".bwg_slideshow_image_container_" + bwg).width(jQuery(".bwg_slideshow_image_wrap_" + bwg).width() - bwg_params[bwg]['slideshow_filmstrip_width']);
|
| 512 |
-
}
|
| 513 |
-
var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel";
|
| 514 |
-
/* FF doesn't recognize mousewheel as of FF3.x */
|
| 515 |
-
jQuery(".bwg_slideshow_filmstrip_" + bwg).bind(mousewheelevt, function (e) {
|
| 516 |
-
var evt = window.event || e;
|
| 517 |
-
/* Equalize event object.*/
|
| 518 |
-
evt = evt.originalEvent ? evt.originalEvent : evt;
|
| 519 |
-
/* Convert to originalEvent if possible.*/
|
| 520 |
-
var delta = evt.detail ? evt.detail * (-40) : evt.wheelDelta;
|
| 521 |
-
/* Check for detail first, because it is used by Opera and FF.*/
|
| 522 |
-
if (delta > 0) {
|
| 523 |
-
/* Scroll up.*/
|
| 524 |
-
jQuery(".bwg_slideshow_filmstrip_left_" + bwg).trigger("click");
|
| 525 |
}
|
| 526 |
else {
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 543 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 544 |
}
|
| 545 |
-
/*
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
jQuery(".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 549 |
}
|
| 550 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 551 |
}
|
| 552 |
-
else {
|
| 553 |
-
if (
|
| 554 |
-
jQuery(".
|
| 555 |
-
|
| 556 |
-
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
|
|
|
|
|
|
| 560 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 561 |
}
|
| 562 |
-
/*
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
jQuery(".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 566 |
}
|
| 567 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 568 |
}
|
| 569 |
-
}
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
|
|
|
| 576 |
}
|
| 577 |
else {
|
| 578 |
-
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({
|
| 579 |
}
|
| 580 |
}
|
| 581 |
-
/* Disable
|
| 582 |
window.setTimeout(function () {
|
| 583 |
-
if (
|
| 584 |
-
jQuery(".
|
| 585 |
}
|
| 586 |
}, 500);
|
| 587 |
}
|
| 588 |
-
else {
|
| 589 |
-
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top
|
| 590 |
-
jQuery(".
|
| 591 |
-
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top
|
| 592 |
-
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top:
|
| 593 |
}
|
| 594 |
else {
|
| 595 |
-
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top
|
| 596 |
}
|
| 597 |
}
|
| 598 |
-
/* Disable
|
| 599 |
window.setTimeout(function () {
|
| 600 |
-
if (
|
| 601 |
-
jQuery(".
|
| 602 |
}
|
| 603 |
}, 500);
|
| 604 |
}
|
| 605 |
-
}
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
if (bwg_params[bwg]['left_or_top'] == 'left') {
|
| 610 |
-
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left < 0) {
|
| 611 |
-
jQuery(".bwg_slideshow_filmstrip_right_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
|
| 612 |
-
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left > -bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']) {
|
| 613 |
-
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: 0}, 500, 'linear');
|
| 614 |
-
}
|
| 615 |
-
else {
|
| 616 |
-
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left + bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width'])}, 500, 'linear');
|
| 617 |
-
}
|
| 618 |
-
}
|
| 619 |
-
/* Disable left arrow.*/
|
| 620 |
-
window.setTimeout(function () {
|
| 621 |
-
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left == 0) {
|
| 622 |
-
jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 0.3, filter: "Alpha(opacity=30)"});
|
| 623 |
-
}
|
| 624 |
-
}, 500);
|
| 625 |
}
|
| 626 |
else {
|
| 627 |
-
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 634 |
}
|
| 635 |
}
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
|
|
|
|
|
|
|
|
|
| 640 |
}
|
| 641 |
-
}
|
| 642 |
-
}
|
| 643 |
-
|
| 644 |
-
if (bwg_params[bwg]['width_or_height'] == 'width') {
|
| 645 |
-
/* Set filmstrip initial position.*/
|
| 646 |
-
bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_" + bwg).width(), bwg);
|
| 647 |
-
}
|
| 648 |
-
else {
|
| 649 |
-
/* Set filmstrip initial position.*/
|
| 650 |
-
bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_" + bwg).height(), bwg);
|
| 651 |
-
}
|
| 652 |
-
/* Play/pause.*/
|
| 653 |
-
jQuery("#bwg_slideshow_play_pause_" + bwg).on(bwg_click, function () {
|
| 654 |
-
if (jQuery(".bwg_ctrl_btn_" + bwg).hasClass("fa-play")) {
|
| 655 |
bwg_play(bwg_params[bwg]['data'], bwg);
|
| 656 |
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
|
| 657 |
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("class", "bwg_ctrl_btn_" + bwg + " bwg_slideshow_play_pause_" + bwg + " fa fa-pause");
|
| 658 |
-
if (bwg_params[bwg]['enable_slideshow_music'] == 1) {
|
| 659 |
document.getElementById("bwg_audio_" + bwg).play();
|
| 660 |
}
|
| 661 |
}
|
| 662 |
-
|
| 663 |
-
|
| 664 |
-
window.clearInterval(bwg_params[bwg]['bwg_playInterval']);
|
| 665 |
-
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("title", "Play");
|
| 666 |
-
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("class", "bwg_ctrl_btn_" + bwg + " bwg_slideshow_play_pause_" + bwg + " fa fa-play");
|
| 667 |
-
if (bwg_params[bwg]['enable_slideshow_music'] == 1) {
|
| 668 |
-
document.getElementById("bwg_audio_" + bwg).pause();
|
| 669 |
-
}
|
| 670 |
-
}
|
| 671 |
-
});
|
| 672 |
-
if ( bwg_params[bwg]['enable_slideshow_autoplay'] != 0 ) {
|
| 673 |
-
bwg_play(bwg_params[bwg]['data'], bwg);
|
| 674 |
-
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
|
| 675 |
-
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("class", "bwg_ctrl_btn_" + bwg + " bwg_slideshow_play_pause_" + bwg + " fa fa-pause");
|
| 676 |
-
if (bwg_params[bwg]['enable_slideshow_music'] == 1 && jQuery("#bwg_audio_" + bwg).length) {
|
| 677 |
-
document.getElementById("bwg_audio_" + bwg).play();
|
| 678 |
}
|
|
|
|
|
|
|
| 679 |
}
|
| 680 |
-
if (bwg_params[bwg]['preload_images']) {
|
| 681 |
-
bwg_preload_images(parseInt(jQuery("#bwg_current_image_key_".$bwg).val()), bwg);
|
| 682 |
-
}
|
| 683 |
-
jQuery(".bwg_slideshow_image_" + bwg).removeAttr("width");
|
| 684 |
-
jQuery(".bwg_slideshow_image_" + bwg).removeAttr("height");
|
| 685 |
});
|
| 686 |
}
|
| 687 |
|
|
@@ -856,8 +871,8 @@ function bwg_thumbnail_masonry(that) {
|
|
| 856 |
/* Use getBoundingClientRect instead of jQuery.height() to avoid rounding. */
|
| 857 |
column_heights[order] += jQuery( this )[0].getBoundingClientRect().height;
|
| 858 |
} );
|
| 859 |
-
var container_height = Math.max.apply( Math, column_heights );
|
| 860 |
|
|
|
|
| 861 |
/* Equalize all columns. */
|
| 862 |
for ( i = 0; i < column_count; i++ ) {
|
| 863 |
if ( column_heights[i] < container_height ) {
|
|
@@ -1420,7 +1435,9 @@ function bwg_ajax(form_id, current_view, id, album_gallery_id, cur_album_id, typ
|
|
| 1420 |
jQuery("#ajax_loading_" + current_view).removeClass('bwg-hidden');
|
| 1421 |
|
| 1422 |
/* Disable scroll to prevent bugs with load more.*/
|
| 1423 |
-
|
|
|
|
|
|
|
| 1424 |
|
| 1425 |
/* To prevent bugs with filters.*/
|
| 1426 |
jQuery(".bwg_thumbnail .search_tags").off("sumo:closed");
|
|
@@ -2424,9 +2441,14 @@ function bwg_play( data, bwg ) {
|
|
| 2424 |
|
| 2425 |
/*------------------ Image Browser Functions ---------------------------*/
|
| 2426 |
function bwg_image_browser( bwg ) {
|
| 2427 |
-
jQuery('#bwg_embed_frame_16x9_' + bwg).width(jQuery('#bwg_embed_frame_16x9_' + bwg).
|
| 2428 |
jQuery('#bwg_embed_frame_16x9_' + bwg).height(jQuery('#bwg_embed_frame_16x9_' + bwg).width() * 0.5625);
|
| 2429 |
-
jQuery('#bwg_embed_frame_instapost_' + bwg).width(jQuery('#bwg_embed_frame_16x9_' + bwg).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2430 |
/* 16 is 2*padding inside iframe */
|
| 2431 |
/* 96 is 2*padding(top) + 1*padding(bottom) + 40(footer) + 32(header) */
|
| 2432 |
jQuery('.bwg_embed_frame_instapost_' + bwg).height((jQuery('.bwg_embed_frame_instapost_' + bwg).width() - 16) * jQuery('.bwg_embed_frame_instapost_' + bwg).attr('data-height') / jQuery('.bwg_embed_frame_instapost_' + bwg).attr('data-width') + 96);
|
| 122 |
function bwg_slideshow_resize() {
|
| 123 |
jQuery(".bwg_slideshow").each(function () {
|
| 124 |
bwg = jQuery(this).attr('data-bwg');
|
| 125 |
+
if ( jQuery("#bwg_slideshow_image_container_" + bwg).length ) {
|
| 126 |
+
bwg_params[bwg] = JSON.parse(jQuery("#bwg_slideshow_image_container_" + bwg).attr("data-params"));
|
| 127 |
+
bwg_params[bwg]['event_stack'] = [];
|
| 128 |
+
bwg_popup_resize(bwg);
|
| 129 |
+
}
|
| 130 |
+
});
|
| 131 |
}
|
| 132 |
|
| 133 |
function bwg_blog_style_resize() {
|
| 147 |
function bwg_blog_style_onload() {
|
| 148 |
jQuery(".bwg_blog_style").each(function () {
|
| 149 |
bwg = jQuery(this).attr('data-bwg');
|
| 150 |
+
var data_right_click = jQuery("#bwg_blog_style_"+bwg);
|
| 151 |
jQuery('.bwg_embed_frame_16x9_'+bwg).each(function (e) {
|
| 152 |
+
/* Conflict with Sydney Theme */
|
| 153 |
+
if ( jQuery('.bwg_blog_style_image_' + bwg).find('.fluid-width-video-wrapper').length ) {
|
| 154 |
+
jQuery('.fluid-width-video-wrapper').removeAttr('style');
|
| 155 |
+
var content = jQuery(this).parents('.bwg_blog_style_image_' + bwg).find('.fluid-width-video-wrapper').contents();
|
| 156 |
+
jQuery(this).parents('.fluid-width-video-wrapper').replaceWith(content);
|
| 157 |
+
}
|
| 158 |
+
jQuery(this).width(jQuery(this).parents('.bwg_blog_style_image_' + bwg).width());
|
| 159 |
+
jQuery(this).height(jQuery(this).width() * 0.5625);
|
| 160 |
});
|
| 161 |
|
| 162 |
jQuery('.bwg_embed_frame_instapost_'+bwg).each(function (e) {
|
| 163 |
+
jQuery(this).width(jQuery(this).parents('.bwg_blog_style_image_' + bwg).width());
|
| 164 |
/* 16 is 2*padding inside iframe */
|
| 165 |
/* 96 is 2*padding(top) + 1*padding(bottom) + 40(footer) + 32(header) */
|
| 166 |
jQuery(this).height((jQuery(this).width() - 16) * jQuery(this).attr('data-height') / jQuery(this).attr('data-width') + 96);
|
| 234 |
function bwg_slideshow_focus() {
|
| 235 |
jQuery(".bwg_slideshow").each(function () {
|
| 236 |
bwg = jQuery(this).attr('data-bwg');
|
| 237 |
+
if ( jQuery("#bwg_slideshow_image_container_" + bwg).length ) {
|
| 238 |
+
bwg_params[bwg] = JSON.parse(jQuery("#bwg_slideshow_image_container_" + bwg).attr("data-params"));
|
| 239 |
+
bwg_params[bwg]['event_stack'] = [];
|
| 240 |
+
window.clearInterval(bwg_params[bwg]['bwg_playInterval']);
|
| 241 |
+
if (!jQuery(".bwg_ctrl_btn_" + bwg).hasClass("fa-play") && bwg_params[bwg]['enable_slideshow_autoplay'] != 0) {
|
| 242 |
+
bwg_play(bwg_params[bwg]['data'], bwg);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
}
|
| 244 |
+
var i = 0;
|
| 245 |
+
jQuery(".bwg_slider_" + bwg).children("span").each(function () {
|
| 246 |
+
if (jQuery(this).css('opacity') == 1) {
|
| 247 |
+
jQuery("#bwg_current_image_key_" + bwg).val(i);
|
| 248 |
+
}
|
| 249 |
+
i++;
|
| 250 |
+
});
|
| 251 |
+
}
|
| 252 |
+
});
|
| 253 |
}
|
| 254 |
|
| 255 |
function bwg_slideshow_blur() {
|
| 256 |
jQuery(".bwg_slideshow").each(function () {
|
| 257 |
bwg = jQuery(this).attr('data-bwg');
|
| 258 |
+
if ( jQuery("#bwg_slideshow_image_container_" + bwg).length ) {
|
| 259 |
+
bwg_params[bwg] = JSON.parse(jQuery("#bwg_slideshow_image_container_" + bwg).attr("data-params"));
|
| 260 |
+
bwg_params[bwg]['event_stack'] = [];
|
| 261 |
+
window.clearInterval(bwg_params[bwg]['bwg_playInterval']);
|
| 262 |
+
}
|
| 263 |
+
});
|
| 264 |
}
|
| 265 |
|
| 266 |
function bwg_carousel_ready() {
|
| 327 |
function bwg_carousel_onload() {
|
| 328 |
jQuery(".bwg-carousel").each(function () {
|
| 329 |
var bwg = jQuery(this).data("bwg");
|
| 330 |
+
|
| 331 |
bwg_params_carousel[bwg] = jQuery(this).data("params");
|
| 332 |
bwg_carousel_watermark(bwg);
|
| 333 |
bwg_carousel_params(bwg);
|
|
|
|
| 334 |
bwg_container_loaded(bwg);
|
| 335 |
});
|
| 336 |
}
|
| 372 |
parent_container.height((parent_container.width() - 16) * parent_container.attr('data-height') / parent_container.attr('data-width') + 96);
|
| 373 |
}
|
| 374 |
});
|
| 375 |
+
|
| 376 |
jQuery(".bwg_carousel_image_container_" + bwg).css({width: bwg_params_carousel[bwg]['image_width'] * par,height: bwg_params_carousel[bwg]['image_height'] * par });
|
| 377 |
jQuery(".bwg_carousel_watermark_text_" + bwg + ", .bwg_carousel_watermark_text_" + bwg + ":hover").css({fontSize: ((parent_width) * (bwg_params_carousel[bwg]['watermark_font_size'] / bwg_params_carousel[bwg]['image_width']) * par)});
|
| 378 |
jQuery(".bwg_carousel-image " + bwg).css({width: bwg_params_carousel[bwg]['image_width'] * par, height: bwg_params_carousel[bwg]['image_height'] * par });
|
| 487 |
function bwg_slideshow_ready() {
|
| 488 |
jQuery(".bwg_slideshow").each(function () {
|
| 489 |
var bwg = jQuery(this).data("bwg");
|
| 490 |
+
if ( jQuery("#bwg_slideshow_image_container_" + bwg).length ) {
|
| 491 |
+
bwg_params[bwg] = JSON.parse(jQuery("#bwg_slideshow_image_container_" + bwg).attr("data-params"));
|
| 492 |
+
bwg_params[bwg]['event_stack'] = [];
|
| 493 |
+
bwg_container_loaded(bwg);
|
| 494 |
+
var data = bwg_params[bwg]['data'];
|
| 495 |
+
if (typeof jQuery().swiperight !== 'undefined') {
|
| 496 |
+
if (jQuery.isFunction(jQuery().swiperight)) {
|
| 497 |
+
jQuery("#bwg_container1_" + bwg).swiperight(function () {
|
| 498 |
+
bwg_change_image(parseInt(jQuery("#bwg_current_image_key_" + bwg).val()), (parseInt(jQuery("#bwg_current_image_key_" + bwg).val()) - bwg_iterator(bwg)) >= 0 ? (parseInt(jQuery("#bwg_current_image_key_" + bwg).val()) - bwg_iterator(bwg)) % data.length : data.length - 1, data, '', bwg);
|
| 499 |
+
return false;
|
| 500 |
+
});
|
| 501 |
+
}
|
| 502 |
}
|
| 503 |
+
if (typeof jQuery().swipeleft !== 'undefined') {
|
| 504 |
+
if (jQuery.isFunction(jQuery().swipeleft)) {
|
| 505 |
+
jQuery("#bwg_container1_" + bwg).swipeleft(function () {
|
| 506 |
+
bwg_change_image(parseInt(jQuery("#bwg_current_image_key_" + bwg).val()), (parseInt(jQuery("#bwg_current_image_key_" + bwg).val()) + bwg_iterator(bwg) % data.length), data, '', bwg);
|
| 507 |
+
return false;
|
| 508 |
+
});
|
| 509 |
+
}
|
| 510 |
}
|
| 511 |
+
var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
|
| 512 |
+
var bwg_click = isMobile ? 'touchend' : 'click';
|
| 513 |
+
bwg_popup_resize(bwg);
|
| 514 |
+
jQuery(".bwg_slideshow_watermark_" + bwg).css({display: 'none'});
|
| 515 |
+
jQuery(".bwg_slideshow_title_text_" + bwg).css({display: 'none'});
|
| 516 |
+
jQuery(".bwg_slideshow_description_text_" + bwg).css({display: 'none'});
|
| 517 |
+
setTimeout(function () {
|
| 518 |
+
bwg_change_watermark_container(bwg);
|
| 519 |
+
}, 500);
|
| 520 |
+
/* Set image container height.*/
|
| 521 |
+
if (bwg_params[bwg]['filmstrip_direction'] == 'horizontal') {
|
| 522 |
+
jQuery(".bwg_slideshow_image_container_" + bwg).height(jQuery(".bwg_slideshow_image_wrap_" + bwg).height() - bwg_params[bwg]['slideshow_filmstrip_height']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 523 |
}
|
| 524 |
else {
|
| 525 |
+
jQuery(".bwg_slideshow_image_container_" + bwg).width(jQuery(".bwg_slideshow_image_wrap_" + bwg).width() - bwg_params[bwg]['slideshow_filmstrip_width']);
|
| 526 |
+
}
|
| 527 |
+
var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel";
|
| 528 |
+
/* FF doesn't recognize mousewheel as of FF3.x */
|
| 529 |
+
jQuery(".bwg_slideshow_filmstrip_" + bwg).bind(mousewheelevt, function (e) {
|
| 530 |
+
var evt = window.event || e;
|
| 531 |
+
/* Equalize event object.*/
|
| 532 |
+
evt = evt.originalEvent ? evt.originalEvent : evt;
|
| 533 |
+
/* Convert to originalEvent if possible.*/
|
| 534 |
+
var delta = evt.detail ? evt.detail * (-40) : evt.wheelDelta;
|
| 535 |
+
/* Check for detail first, because it is used by Opera and FF.*/
|
| 536 |
+
if (delta > 0) {
|
| 537 |
+
/* Scroll up.*/
|
| 538 |
+
jQuery(".bwg_slideshow_filmstrip_left_" + bwg).trigger("click");
|
| 539 |
+
}
|
| 540 |
+
else {
|
| 541 |
+
/* Scroll down.*/
|
| 542 |
+
jQuery(".bwg_slideshow_filmstrip_right_" + bwg).trigger("click");
|
| 543 |
+
}
|
| 544 |
+
return false;
|
| 545 |
+
});
|
| 546 |
+
jQuery(".bwg_slideshow_filmstrip_right_" + bwg).on(bwg_click, function () {
|
| 547 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).stop(true, false);
|
| 548 |
+
if (bwg_params[bwg]['left_or_top'] == 'left') { /* For left, width */
|
| 549 |
+
if (bwg_params[bwg]['width_or_height'] == 'width') {
|
| 550 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())) {
|
| 551 |
+
jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
|
| 552 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width() - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))) {
|
| 553 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())}, 500, 'linear');
|
| 554 |
+
}
|
| 555 |
+
else {
|
| 556 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))}, 500, 'linear');
|
| 557 |
+
}
|
| 558 |
}
|
| 559 |
+
/* Disable right arrow.*/
|
| 560 |
+
window.setTimeout(function () {
|
| 561 |
+
if ((jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left) == -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())) {
|
| 562 |
+
jQuery(".bwg_slideshow_filmstrip_right_" + bwg).css({opacity: 0.3, filter: "Alpha(opacity=30)"});
|
| 563 |
+
}
|
| 564 |
+
}, 500);
|
| 565 |
}
|
| 566 |
+
else { /* For left, height */
|
| 567 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height())) {
|
| 568 |
+
jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
|
| 569 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height() - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))) {
|
| 570 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())}, 500, 'linear');
|
| 571 |
+
}
|
| 572 |
+
else {
|
| 573 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))}, 500, 'linear');
|
| 574 |
+
}
|
| 575 |
}
|
| 576 |
+
/* Disable right arrow.*/
|
| 577 |
+
window.setTimeout(function () {
|
| 578 |
+
if ((jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left) == -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height())) {
|
| 579 |
+
jQuery(".bwg_slideshow_filmstrip_right_" + bwg).css({opacity: 0.3, filter: "Alpha(opacity=30)"});
|
| 580 |
+
}
|
| 581 |
+
}, 500);
|
| 582 |
+
}
|
| 583 |
}
|
| 584 |
+
else {
|
| 585 |
+
if (bwg_params[bwg]['width_or_height'] == 'width') { /* For top, width */
|
| 586 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())) {
|
| 587 |
+
jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
|
| 588 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width() - bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width'])) {
|
| 589 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())}, 500, 'linear');
|
| 590 |
+
}
|
| 591 |
+
else {
|
| 592 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top - bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width'])}, 500, 'linear');
|
| 593 |
+
}
|
| 594 |
}
|
| 595 |
+
/* Disable right arrow.*/
|
| 596 |
+
window.setTimeout(function () {
|
| 597 |
+
if ((jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top) == -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())) {
|
| 598 |
+
jQuery(".bwg_slideshow_filmstrip_right_" + bwg).css({opacity: 0.3, filter: "Alpha(opacity=30)"});
|
| 599 |
+
}
|
| 600 |
+
}, 500);
|
| 601 |
}
|
| 602 |
+
else { /* For top, height */
|
| 603 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height())) {
|
| 604 |
+
jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
|
| 605 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height() - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))) {
|
| 606 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())}, 500, 'linear');
|
| 607 |
+
}
|
| 608 |
+
else {
|
| 609 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))}, 500, 'linear');
|
| 610 |
+
}
|
| 611 |
}
|
| 612 |
+
/* Disable right arrow.*/
|
| 613 |
+
window.setTimeout(function () {
|
| 614 |
+
if ((jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top) == -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height())) {
|
| 615 |
+
jQuery(".bwg_slideshow_filmstrip_right_" + bwg).css({opacity: 0.3, filter: "Alpha(opacity=30)"});
|
| 616 |
+
}
|
| 617 |
+
}, 500);
|
| 618 |
+
}
|
| 619 |
}
|
| 620 |
+
});
|
| 621 |
+
jQuery(".bwg_slideshow_filmstrip_left_" + bwg).on(bwg_click, function () {
|
| 622 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).stop(true, false);
|
| 623 |
+
if (bwg_params[bwg]['left_or_top'] == 'left') {
|
| 624 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left < 0) {
|
| 625 |
+
jQuery(".bwg_slideshow_filmstrip_right_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
|
| 626 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left > -bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']) {
|
| 627 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: 0}, 500, 'linear');
|
| 628 |
}
|
| 629 |
else {
|
| 630 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left + bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width'])}, 500, 'linear');
|
| 631 |
}
|
| 632 |
}
|
| 633 |
+
/* Disable left arrow.*/
|
| 634 |
window.setTimeout(function () {
|
| 635 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left == 0) {
|
| 636 |
+
jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 0.3, filter: "Alpha(opacity=30)"});
|
| 637 |
}
|
| 638 |
}, 500);
|
| 639 |
}
|
| 640 |
+
else {
|
| 641 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top < 0) {
|
| 642 |
+
jQuery(".bwg_slideshow_filmstrip_right_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
|
| 643 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top > -bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']) {
|
| 644 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: 0}, 500, 'linear');
|
| 645 |
}
|
| 646 |
else {
|
| 647 |
+
jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top + bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width'])}, 500, 'linear');
|
| 648 |
}
|
| 649 |
}
|
| 650 |
+
/* Disable top arrow.*/
|
| 651 |
window.setTimeout(function () {
|
| 652 |
+
if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top == 0) {
|
| 653 |
+
jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 0.3, filter: "Alpha(opacity=30)"});
|
| 654 |
}
|
| 655 |
}, 500);
|
| 656 |
}
|
| 657 |
+
});
|
| 658 |
+
if (bwg_params[bwg]['width_or_height'] == 'width') {
|
| 659 |
+
/* Set filmstrip initial position.*/
|
| 660 |
+
bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_" + bwg).width(), bwg);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 661 |
}
|
| 662 |
else {
|
| 663 |
+
/* Set filmstrip initial position.*/
|
| 664 |
+
bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_" + bwg).height(), bwg);
|
| 665 |
+
}
|
| 666 |
+
/* Play/pause.*/
|
| 667 |
+
jQuery("#bwg_slideshow_play_pause_" + bwg).on(bwg_click, function () {
|
| 668 |
+
if (jQuery(".bwg_ctrl_btn_" + bwg).hasClass("fa-play")) {
|
| 669 |
+
bwg_play(bwg_params[bwg]['data'], bwg);
|
| 670 |
+
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
|
| 671 |
+
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("class", "bwg_ctrl_btn_" + bwg + " bwg_slideshow_play_pause_" + bwg + " fa fa-pause");
|
| 672 |
+
if (bwg_params[bwg]['enable_slideshow_music'] == 1) {
|
| 673 |
+
document.getElementById("bwg_audio_" + bwg).play();
|
| 674 |
}
|
| 675 |
}
|
| 676 |
+
else {
|
| 677 |
+
/* Pause.*/
|
| 678 |
+
window.clearInterval(bwg_params[bwg]['bwg_playInterval']);
|
| 679 |
+
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("title", "Play");
|
| 680 |
+
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("class", "bwg_ctrl_btn_" + bwg + " bwg_slideshow_play_pause_" + bwg + " fa fa-play");
|
| 681 |
+
if (bwg_params[bwg]['enable_slideshow_music'] == 1) {
|
| 682 |
+
document.getElementById("bwg_audio_" + bwg).pause();
|
| 683 |
}
|
| 684 |
+
}
|
| 685 |
+
});
|
| 686 |
+
if (bwg_params[bwg]['enable_slideshow_autoplay'] != 0) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 687 |
bwg_play(bwg_params[bwg]['data'], bwg);
|
| 688 |
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
|
| 689 |
jQuery(".bwg_slideshow_play_pause_" + bwg).attr("class", "bwg_ctrl_btn_" + bwg + " bwg_slideshow_play_pause_" + bwg + " fa fa-pause");
|
| 690 |
+
if (bwg_params[bwg]['enable_slideshow_music'] == 1 && jQuery("#bwg_audio_" + bwg).length) {
|
| 691 |
document.getElementById("bwg_audio_" + bwg).play();
|
| 692 |
}
|
| 693 |
}
|
| 694 |
+
if (bwg_params[bwg]['preload_images']) {
|
| 695 |
+
bwg_preload_images(parseInt(jQuery("#bwg_current_image_key_".$bwg).val()), bwg);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 696 |
}
|
| 697 |
+
jQuery(".bwg_slideshow_image_" + bwg).removeAttr("width");
|
| 698 |
+
jQuery(".bwg_slideshow_image_" + bwg).removeAttr("height");
|
| 699 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 700 |
});
|
| 701 |
}
|
| 702 |
|
| 871 |
/* Use getBoundingClientRect instead of jQuery.height() to avoid rounding. */
|
| 872 |
column_heights[order] += jQuery( this )[0].getBoundingClientRect().height;
|
| 873 |
} );
|
|
|
|
| 874 |
|
| 875 |
+
var container_height = Math.max.apply( Math, column_heights );
|
| 876 |
/* Equalize all columns. */
|
| 877 |
for ( i = 0; i < column_count; i++ ) {
|
| 878 |
if ( column_heights[i] < container_height ) {
|
| 1435 |
jQuery("#ajax_loading_" + current_view).removeClass('bwg-hidden');
|
| 1436 |
|
| 1437 |
/* Disable scroll to prevent bugs with load more.*/
|
| 1438 |
+
if (typeof bwg_scroll_load_action === "function") {
|
| 1439 |
+
jQuery(window).off("scroll", bwg_scroll_load_action);
|
| 1440 |
+
}
|
| 1441 |
|
| 1442 |
/* To prevent bugs with filters.*/
|
| 1443 |
jQuery(".bwg_thumbnail .search_tags").off("sumo:closed");
|
| 2441 |
|
| 2442 |
/*------------------ Image Browser Functions ---------------------------*/
|
| 2443 |
function bwg_image_browser( bwg ) {
|
| 2444 |
+
jQuery('#bwg_embed_frame_16x9_' + bwg).width(jQuery('#bwg_embed_frame_16x9_' + bwg).parents('.image_browser_image_buttons_' + bwg).width());
|
| 2445 |
jQuery('#bwg_embed_frame_16x9_' + bwg).height(jQuery('#bwg_embed_frame_16x9_' + bwg).width() * 0.5625);
|
| 2446 |
+
jQuery('#bwg_embed_frame_instapost_' + bwg).width(jQuery('#bwg_embed_frame_16x9_' + bwg).parents('.image_browser_image_buttons_' + bwg).width());
|
| 2447 |
+
/* Conflict with Sydney Theme */
|
| 2448 |
+
if ( jQuery('.image_browser_images_conteiner_' + bwg).find('.fluid-width-video-wrapper').length ) {
|
| 2449 |
+
var content = jQuery('.image_browser_images_conteiner_' + bwg).find('.fluid-width-video-wrapper').contents();
|
| 2450 |
+
jQuery('.image_browser_images_conteiner_' + bwg).find('.fluid-width-video-wrapper').replaceWith(content);
|
| 2451 |
+
}
|
| 2452 |
/* 16 is 2*padding inside iframe */
|
| 2453 |
/* 96 is 2*padding(top) + 1*padding(bottom) + 40(footer) + 32(header) */
|
| 2454 |
jQuery('.bwg_embed_frame_instapost_' + bwg).height((jQuery('.bwg_embed_frame_instapost_' + bwg).width() - 16) * jQuery('.bwg_embed_frame_instapost_' + bwg).attr('data-height') / jQuery('.bwg_embed_frame_instapost_' + bwg).attr('data-width') + 96);
|
js/bwg_gallery_box.js
CHANGED
|
@@ -245,8 +245,12 @@ function spider_rate_ajax_save(form_id) {
|
|
| 245 |
url: jQuery('#' + form_id).attr('action'),
|
| 246 |
data: post_data,
|
| 247 |
success: function (data) {
|
| 248 |
-
|
| 249 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 250 |
},
|
| 251 |
beforeSend: function(){
|
| 252 |
},
|
|
@@ -574,7 +578,6 @@ function bwg_change_image_lightbox(current_key, key, data, from_effect) {
|
|
| 574 |
/* Increase image hit counter.*/
|
| 575 |
spider_set_input_value('rate_ajax_task', 'save_hit_count');
|
| 576 |
|
| 577 |
-
spider_rate_ajax_save('bwg_rate_form');
|
| 578 |
jQuery(".bwg_image_hits span").html(++data[key]["hit_count"]);
|
| 579 |
/* Change image id.*/
|
| 580 |
jQuery("#bwg_popup_image").attr('image_id', data[key]["id"]);
|
| 245 |
url: jQuery('#' + form_id).attr('action'),
|
| 246 |
data: post_data,
|
| 247 |
success: function (data) {
|
| 248 |
+
if ( jQuery("#bwg_popup_image").attr("image_id") == post_data["image_id"] ) {
|
| 249 |
+
var str = jQuery(data).find('#' + form_id).html();
|
| 250 |
+
jQuery('#' + form_id).html(str);
|
| 251 |
+
}
|
| 252 |
+
jQuery("#bwg_star").show();
|
| 253 |
+
jQuery("#bwg_rated").hide();
|
| 254 |
},
|
| 255 |
beforeSend: function(){
|
| 256 |
},
|
| 578 |
/* Increase image hit counter.*/
|
| 579 |
spider_set_input_value('rate_ajax_task', 'save_hit_count');
|
| 580 |
|
|
|
|
| 581 |
jQuery(".bwg_image_hits span").html(++data[key]["hit_count"]);
|
| 582 |
/* Change image id.*/
|
| 583 |
jQuery("#bwg_popup_image").attr('image_id', data[key]["id"]);
|
photo-gallery.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Photo Gallery
|
| 4 |
* Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
|
| 5 |
* 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.
|
| 6 |
-
* Version: 1.5.
|
| 7 |
* Author: Photo Gallery Team
|
| 8 |
* Author URI: https://10web.io/pricing/
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
@@ -81,8 +81,8 @@ final class BWG {
|
|
| 81 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
| 82 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
| 83 |
$this->main_file = plugin_basename(__FILE__);
|
| 84 |
-
$this->plugin_version = '1.5.
|
| 85 |
-
$this->db_version = '1.5.
|
| 86 |
$this->prefix = 'bwg';
|
| 87 |
$this->nicename = __('Photo Gallery', $this->prefix);
|
| 88 |
|
|
@@ -595,6 +595,9 @@ final class BWG {
|
|
| 595 |
// Roboto font for top bar.
|
| 596 |
wp_register_style($this->prefix . '-roboto', 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
|
| 597 |
wp_register_style($this->prefix . '-pricing', $this->plugin_url . '/css/pricing.css', array(), $this->plugin_version);
|
|
|
|
|
|
|
|
|
|
| 598 |
}
|
| 599 |
|
| 600 |
/**
|
| 3 |
* Plugin Name: Photo Gallery
|
| 4 |
* Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
|
| 5 |
* 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.
|
| 6 |
+
* Version: 1.5.5
|
| 7 |
* Author: Photo Gallery Team
|
| 8 |
* Author URI: https://10web.io/pricing/
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 81 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
| 82 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
| 83 |
$this->main_file = plugin_basename(__FILE__);
|
| 84 |
+
$this->plugin_version = '1.5.5';
|
| 85 |
+
$this->db_version = '1.5.5';
|
| 86 |
$this->prefix = 'bwg';
|
| 87 |
$this->nicename = __('Photo Gallery', $this->prefix);
|
| 88 |
|
| 595 |
// Roboto font for top bar.
|
| 596 |
wp_register_style($this->prefix . '-roboto', 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
|
| 597 |
wp_register_style($this->prefix . '-pricing', $this->plugin_url . '/css/pricing.css', array(), $this->plugin_version);
|
| 598 |
+
|
| 599 |
+
// For drag and drop on mobiles.
|
| 600 |
+
wp_register_script($this->prefix . '_jquery.ui.touch-punch.min', $this->plugin_url . '/js/jquery.ui.touch-punch.min.js', array(), '0.2.3');
|
| 601 |
}
|
| 602 |
|
| 603 |
/**
|
readme.txt
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
-
=== Photo Gallery by
|
| 2 |
Contributors: webdorado,wdsupport,photogallerysupport,10web
|
| 3 |
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
|
| 4 |
Requires at least: 3.4
|
| 5 |
Tested up to: 4.9
|
| 6 |
-
Stable tag: 1.5.
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 10 |
-
Photo Gallery is a powerful gallery plugin with a list of advanced options for creating
|
| 11 |
|
| 12 |
== Description ==
|
| 13 |
|
|
@@ -279,6 +279,23 @@ Choose whether to display random or the first/last specific number of images.
|
|
| 279 |
|
| 280 |
== Changelog ==
|
| 281 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 282 |
= 1.5.4 =
|
| 283 |
* Changed: Logic of including google fonts.
|
| 284 |
|
| 1 |
+
=== Photo Gallery by 10Web - Responsive Image Gallery ===
|
| 2 |
Contributors: webdorado,wdsupport,photogallerysupport,10web
|
| 3 |
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
|
| 4 |
Requires at least: 3.4
|
| 5 |
Tested up to: 4.9
|
| 6 |
+
Stable tag: 1.5.5
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 10 |
+
Photo Gallery is a powerful image gallery plugin with a list of advanced options for creating responsive image galleries with beautiful lightbox. Add the plugin with cool gallery views.
|
| 11 |
|
| 12 |
== Description ==
|
| 13 |
|
| 279 |
|
| 280 |
== Changelog ==
|
| 281 |
|
| 282 |
+
= 1.5.5 =
|
| 283 |
+
* Added: How to use button to galleries and gallery groups pages.
|
| 284 |
+
* Added: Use uploaded image meta tags.
|
| 285 |
+
* Fixed: Images list toggle button does not work after page update.
|
| 286 |
+
* Fixed: Bring back "drag and drop" and description columns on small screens.
|
| 287 |
+
* Fixed: Slideshow view > Disable autoplay doesn't work when Control buttons are disabled and you navigate slide from the filmstrip.
|
| 288 |
+
* Fixed: Bug with Sticky Nav from Max Mega Menu.
|
| 289 |
+
* Fixed: Rendering in Elementor builder.
|
| 290 |
+
* Fixed: Multiple Galleries of the same view in Elementor preview.
|
| 291 |
+
* Fixed: On Divi, the titles on hover are left aligned.
|
| 292 |
+
* Fixed: Bulk reset with a large amount of images.
|
| 293 |
+
* Fixed: Preload for carousel.
|
| 294 |
+
* Fixed: Old shordcodes convert to Gutenberg.
|
| 295 |
+
* Fixed: Disable Jetpack photon module for embed thumbnails.
|
| 296 |
+
* Fixed: Filters are before the gallery title, after performing a filter they are under the gallery description.
|
| 297 |
+
* Fixed: Youtube embeded video is shown twice in slideshow widget if an effect is selected.
|
| 298 |
+
|
| 299 |
= 1.5.4 =
|
| 300 |
* Changed: Logic of including google fonts.
|
| 301 |
|
