Version Description
- Fixed: Ampersand in watermark and advertisement text.
- Fixed: Lightbox controlls toggle button on mobile.
- Added: Google fonts.
- Changed: UploadHandler class name to prevent conflict with some themes.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.3.16 |
Comparing to | |
See all releases |
Code changes from version 1.3.15 to 1.3.16
- admin/controllers/BWGControllerGalleries_bwg.php +1 -1
- admin/controllers/BWGControllerOptions_bwg.php +1 -1
- admin/controllers/BWGControllerThemes_bwg.php +5 -5
- admin/models/BWGModelOptions_bwg.php +2 -2
- admin/models/BWGModelThemes_bwg.php +12 -1
- admin/views/BWGViewBWGShortcode.php +43 -10
- admin/views/BWGViewOptions_bwg.php +9 -2
- admin/views/BWGViewThemes_bwg.php +129 -32
- css/bwg_shortcode.css +6 -5
- css/bwg_tables.css +26 -17
- filemanager/UploadHandler.php +2 -2
- filemanager/controller.php +1 -1
- framework/WDWLibrary.php +23 -12
- frontend/views/BWGViewAlbum_compact_preview.php +1 -1
- frontend/views/BWGViewAlbum_extended_preview.php +1 -1
- frontend/views/BWGViewGalleryBox.php +8 -4
- frontend/views/BWGViewImage_browser.php +2 -2
- frontend/views/BWGViewThumbnails.php +3 -3
- js/bwg.js +16 -1
- js/bwg_shortcode.js +24 -0
- photo-gallery.php +40 -16
- readme.txt +7 -1
admin/controllers/BWGControllerGalleries_bwg.php
CHANGED
@@ -319,7 +319,7 @@ class BWGControllerGalleries_bwg {
|
|
319 |
case 'text':
|
320 |
foreach ($images as $image) {
|
321 |
if (isset($_POST['check_' . $image->id]) || isset($_POST['check_all_items'])) {
|
322 |
-
$this->set_text_watermark(ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, $options->built_in_watermark_text, $options->built_in_watermark_font, $options->built_in_watermark_font_size, '#' . $options->built_in_watermark_color, $options->built_in_watermark_opacity, $options->built_in_watermark_position);
|
323 |
}
|
324 |
}
|
325 |
break;
|
319 |
case 'text':
|
320 |
foreach ($images as $image) {
|
321 |
if (isset($_POST['check_' . $image->id]) || isset($_POST['check_all_items'])) {
|
322 |
+
$this->set_text_watermark(ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, html_entity_decode($options->built_in_watermark_text), $options->built_in_watermark_font, $options->built_in_watermark_font_size, '#' . $options->built_in_watermark_color, $options->built_in_watermark_opacity, $options->built_in_watermark_position);
|
323 |
}
|
324 |
}
|
325 |
break;
|
admin/controllers/BWGControllerOptions_bwg.php
CHANGED
@@ -232,7 +232,7 @@ class BWGControllerOptions_bwg {
|
|
232 |
$show_hide_post_meta = (isset($_POST['show_hide_post_meta']) ? esc_html(stripslashes($_POST['show_hide_post_meta'])) : 0);
|
233 |
$placeholder = (isset($_POST['placeholder']) ? esc_html(stripslashes($_POST['placeholder'])) : '');
|
234 |
$slideshow_effect_duration = (isset($_POST['slideshow_effect_duration']) ? esc_html(stripslashes($_POST['slideshow_effect_duration'])) : 1);
|
235 |
-
$popup_effect_duration = (isset($_POST['popup_effect_duration']) ?
|
236 |
|
237 |
$save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
|
238 |
'images_directory' => $images_directory,
|
232 |
$show_hide_post_meta = (isset($_POST['show_hide_post_meta']) ? esc_html(stripslashes($_POST['show_hide_post_meta'])) : 0);
|
233 |
$placeholder = (isset($_POST['placeholder']) ? esc_html(stripslashes($_POST['placeholder'])) : '');
|
234 |
$slideshow_effect_duration = (isset($_POST['slideshow_effect_duration']) ? esc_html(stripslashes($_POST['slideshow_effect_duration'])) : 1);
|
235 |
+
$popup_effect_duration = (isset($_POST['popup_effect_duration']) ? (int) (stripslashes($_POST['popup_effect_duration'])) : 1);
|
236 |
|
237 |
$save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
|
238 |
'images_directory' => $images_directory,
|
admin/controllers/BWGControllerThemes_bwg.php
CHANGED
@@ -241,7 +241,7 @@ class BWGControllerThemes_bwg {
|
|
241 |
$blog_style_share_buttons_bg_color = (isset($_POST['blog_style_share_buttons_bg_color']) ? esc_html(stripslashes( $_POST['blog_style_share_buttons_bg_color'])) : 'FFFFFF');
|
242 |
$blog_style_share_buttons_align = (isset($_POST['blog_style_share_buttons_align']) ? esc_html(stripslashes( $_POST['blog_style_share_buttons_align'])) : '');
|
243 |
$blog_style_img_font_size = (isset($_POST['blog_style_img_font_size']) ? (int) esc_html(stripslashes( $_POST['blog_style_img_font_size'])) : 1);
|
244 |
-
$blog_style_img_font_family = (isset($_POST['blog_style_img_font_family']) ? esc_html(stripslashes( $_POST['blog_style_img_font_family'])) : '
|
245 |
$blog_style_img_font_color = (isset($_POST['blog_style_img_font_color']) ? esc_html(stripslashes( $_POST['blog_style_img_font_color'])) : '000000');
|
246 |
$blog_style_share_buttons_font_size = (isset($_POST['blog_style_share_buttons_font_size']) ? (int) esc_html(stripslashes( $_POST['blog_style_share_buttons_font_size'])) : 20);
|
247 |
$blog_style_share_buttons_color = (isset($_POST['blog_style_share_buttons_color']) ? esc_html(stripslashes( $_POST['blog_style_share_buttons_color'])) : 'C7C3C3');
|
@@ -266,7 +266,7 @@ class BWGControllerThemes_bwg {
|
|
266 |
$image_browser_image_description_bg_color = (isset($_POST['image_browser_image_description_bg_color']) ? esc_html(stripslashes( $_POST['image_browser_image_description_bg_color'])) : 'FFFFFF');
|
267 |
$image_browser_image_description_align = (isset($_POST['image_browser_image_description_align']) ? esc_html(stripslashes( $_POST['image_browser_image_description_align'])) : '');
|
268 |
$image_browser_img_font_size = (isset($_POST['image_browser_img_font_size']) ? (int) esc_html(stripslashes( $_POST['image_browser_img_font_size'])) : 1);
|
269 |
-
$image_browser_img_font_family = (isset($_POST['image_browser_img_font_family']) ? esc_html(stripslashes( $_POST['image_browser_img_font_family'])) : '
|
270 |
$image_browser_img_font_color = (isset($_POST['image_browser_img_font_color']) ? esc_html(stripslashes( $_POST['image_browser_img_font_color'])) : '000000');
|
271 |
$image_browser_full_padding = (isset($_POST['image_browser_full_padding']) ? esc_html(stripslashes( $_POST['image_browser_full_padding'])) : '');
|
272 |
$image_browser_full_border_radius = (isset($_POST['image_browser_full_border_radius']) ? esc_html(stripslashes( $_POST['image_browser_full_border_radius'])) :'');
|
@@ -417,14 +417,14 @@ class BWGControllerThemes_bwg {
|
|
417 |
$slideshow_filmstrip_rl_btn_color = (isset($_POST['slideshow_filmstrip_rl_btn_color']) ? esc_html(stripslashes( $_POST['slideshow_filmstrip_rl_btn_color'])) : 'FFFFFF');
|
418 |
$slideshow_filmstrip_rl_btn_size = (isset($_POST['slideshow_filmstrip_rl_btn_size']) ? (int) esc_html(stripslashes( $_POST['slideshow_filmstrip_rl_btn_size'])) : 15);
|
419 |
$slideshow_title_font_size = (isset($_POST['slideshow_title_font_size']) ? (int) esc_html(stripslashes( $_POST['slideshow_title_font_size'])) : 15);
|
420 |
-
$slideshow_title_font = (isset($_POST['slideshow_title_font']) ? esc_html(stripslashes( $_POST['slideshow_title_font'])) : '
|
421 |
$slideshow_title_color = (isset($_POST['slideshow_title_color']) ? esc_html(stripslashes( $_POST['slideshow_title_color'])) : '000000');
|
422 |
$slideshow_title_opacity = (isset($_POST['slideshow_title_opacity']) ? (int) esc_html(stripslashes( $_POST['slideshow_title_opacity'])) : 80);
|
423 |
$slideshow_title_border_radius = (isset($_POST['slideshow_title_border_radius']) ? esc_html(stripslashes( $_POST['slideshow_title_border_radius'])) : '');
|
424 |
$slideshow_title_background_color = (isset($_POST['slideshow_title_background_color']) ? esc_html(stripslashes( $_POST['slideshow_title_background_color'])) : 'FFFFFF');
|
425 |
$slideshow_title_padding = (isset($_POST['slideshow_title_padding']) ? esc_html(stripslashes( $_POST['slideshow_title_padding'])) : '');
|
426 |
$slideshow_description_font_size = (isset($_POST['slideshow_description_font_size']) ? (int) esc_html(stripslashes( $_POST['slideshow_description_font_size'])) : 15);
|
427 |
-
$slideshow_description_font = (isset($_POST['slideshow_description_font']) ? esc_html(stripslashes( $_POST['slideshow_description_font'])) : '
|
428 |
$slideshow_description_color = (isset($_POST['slideshow_description_color']) ? esc_html(stripslashes( $_POST['slideshow_description_color'])) : '000000');
|
429 |
$slideshow_description_opacity = (isset($_POST['slideshow_description_opacity']) ? (int) esc_html(stripslashes( $_POST['slideshow_description_opacity'])) : 80);
|
430 |
$slideshow_description_border_radius = (isset($_POST['slideshow_description_border_radius']) ? esc_html(stripslashes( $_POST['slideshow_description_border_radius'])) : '');
|
@@ -532,7 +532,7 @@ class BWGControllerThemes_bwg {
|
|
532 |
$carousel_close_rl_btn_hover_color = (isset($_POST['carousel_close_rl_btn_hover_color']) ? esc_html(stripslashes( $_POST['carousel_close_rl_btn_hover_color'])) : 'FFFFFF');
|
533 |
$carousel_rl_btn_style = (isset($_POST['carousel_rl_btn_style']) ? esc_html(stripslashes( $_POST['carousel_rl_btn_style'])) : 'fa-chevron');
|
534 |
$carousel_mergin_bottom = (isset($_POST['carousel_mergin_bottom']) ? esc_html(stripslashes( $_POST['carousel_mergin_bottom'])) : '1');
|
535 |
-
$carousel_font_family = (isset($_POST['carousel_font_family']) ? esc_html(stripslashes( $_POST['carousel_font_family'])) : '
|
536 |
$carousel_feature_border_width = (isset($_POST['carousel_feature_border_width']) ? (int) esc_html(stripslashes( $_POST['carousel_feature_border_width'])) : 2);
|
537 |
$carousel_feature_border_style = (isset($_POST['carousel_feature_border_style']) ? esc_html(stripslashes( $_POST['carousel_feature_border_style'])) : 'solid');
|
538 |
$carousel_feature_border_color = (isset($_POST['carousel_feature_border_color']) ? esc_html(stripslashes( $_POST['carousel_feature_border_color'])) : '5D204F');
|
241 |
$blog_style_share_buttons_bg_color = (isset($_POST['blog_style_share_buttons_bg_color']) ? esc_html(stripslashes( $_POST['blog_style_share_buttons_bg_color'])) : 'FFFFFF');
|
242 |
$blog_style_share_buttons_align = (isset($_POST['blog_style_share_buttons_align']) ? esc_html(stripslashes( $_POST['blog_style_share_buttons_align'])) : '');
|
243 |
$blog_style_img_font_size = (isset($_POST['blog_style_img_font_size']) ? (int) esc_html(stripslashes( $_POST['blog_style_img_font_size'])) : 1);
|
244 |
+
$blog_style_img_font_family = (isset($_POST['blog_style_img_font_family']) ? esc_html(stripslashes( $_POST['blog_style_img_font_family'])) : 'segoe ui');
|
245 |
$blog_style_img_font_color = (isset($_POST['blog_style_img_font_color']) ? esc_html(stripslashes( $_POST['blog_style_img_font_color'])) : '000000');
|
246 |
$blog_style_share_buttons_font_size = (isset($_POST['blog_style_share_buttons_font_size']) ? (int) esc_html(stripslashes( $_POST['blog_style_share_buttons_font_size'])) : 20);
|
247 |
$blog_style_share_buttons_color = (isset($_POST['blog_style_share_buttons_color']) ? esc_html(stripslashes( $_POST['blog_style_share_buttons_color'])) : 'C7C3C3');
|
266 |
$image_browser_image_description_bg_color = (isset($_POST['image_browser_image_description_bg_color']) ? esc_html(stripslashes( $_POST['image_browser_image_description_bg_color'])) : 'FFFFFF');
|
267 |
$image_browser_image_description_align = (isset($_POST['image_browser_image_description_align']) ? esc_html(stripslashes( $_POST['image_browser_image_description_align'])) : '');
|
268 |
$image_browser_img_font_size = (isset($_POST['image_browser_img_font_size']) ? (int) esc_html(stripslashes( $_POST['image_browser_img_font_size'])) : 1);
|
269 |
+
$image_browser_img_font_family = (isset($_POST['image_browser_img_font_family']) ? esc_html(stripslashes( $_POST['image_browser_img_font_family'])) : 'segoe ui');
|
270 |
$image_browser_img_font_color = (isset($_POST['image_browser_img_font_color']) ? esc_html(stripslashes( $_POST['image_browser_img_font_color'])) : '000000');
|
271 |
$image_browser_full_padding = (isset($_POST['image_browser_full_padding']) ? esc_html(stripslashes( $_POST['image_browser_full_padding'])) : '');
|
272 |
$image_browser_full_border_radius = (isset($_POST['image_browser_full_border_radius']) ? esc_html(stripslashes( $_POST['image_browser_full_border_radius'])) :'');
|
417 |
$slideshow_filmstrip_rl_btn_color = (isset($_POST['slideshow_filmstrip_rl_btn_color']) ? esc_html(stripslashes( $_POST['slideshow_filmstrip_rl_btn_color'])) : 'FFFFFF');
|
418 |
$slideshow_filmstrip_rl_btn_size = (isset($_POST['slideshow_filmstrip_rl_btn_size']) ? (int) esc_html(stripslashes( $_POST['slideshow_filmstrip_rl_btn_size'])) : 15);
|
419 |
$slideshow_title_font_size = (isset($_POST['slideshow_title_font_size']) ? (int) esc_html(stripslashes( $_POST['slideshow_title_font_size'])) : 15);
|
420 |
+
$slideshow_title_font = (isset($_POST['slideshow_title_font']) ? esc_html(stripslashes( $_POST['slideshow_title_font'])) : 'segoe ui');
|
421 |
$slideshow_title_color = (isset($_POST['slideshow_title_color']) ? esc_html(stripslashes( $_POST['slideshow_title_color'])) : '000000');
|
422 |
$slideshow_title_opacity = (isset($_POST['slideshow_title_opacity']) ? (int) esc_html(stripslashes( $_POST['slideshow_title_opacity'])) : 80);
|
423 |
$slideshow_title_border_radius = (isset($_POST['slideshow_title_border_radius']) ? esc_html(stripslashes( $_POST['slideshow_title_border_radius'])) : '');
|
424 |
$slideshow_title_background_color = (isset($_POST['slideshow_title_background_color']) ? esc_html(stripslashes( $_POST['slideshow_title_background_color'])) : 'FFFFFF');
|
425 |
$slideshow_title_padding = (isset($_POST['slideshow_title_padding']) ? esc_html(stripslashes( $_POST['slideshow_title_padding'])) : '');
|
426 |
$slideshow_description_font_size = (isset($_POST['slideshow_description_font_size']) ? (int) esc_html(stripslashes( $_POST['slideshow_description_font_size'])) : 15);
|
427 |
+
$slideshow_description_font = (isset($_POST['slideshow_description_font']) ? esc_html(stripslashes( $_POST['slideshow_description_font'])) : 'segoe ui');
|
428 |
$slideshow_description_color = (isset($_POST['slideshow_description_color']) ? esc_html(stripslashes( $_POST['slideshow_description_color'])) : '000000');
|
429 |
$slideshow_description_opacity = (isset($_POST['slideshow_description_opacity']) ? (int) esc_html(stripslashes( $_POST['slideshow_description_opacity'])) : 80);
|
430 |
$slideshow_description_border_radius = (isset($_POST['slideshow_description_border_radius']) ? esc_html(stripslashes( $_POST['slideshow_description_border_radius'])) : '');
|
532 |
$carousel_close_rl_btn_hover_color = (isset($_POST['carousel_close_rl_btn_hover_color']) ? esc_html(stripslashes( $_POST['carousel_close_rl_btn_hover_color'])) : 'FFFFFF');
|
533 |
$carousel_rl_btn_style = (isset($_POST['carousel_rl_btn_style']) ? esc_html(stripslashes( $_POST['carousel_rl_btn_style'])) : 'fa-chevron');
|
534 |
$carousel_mergin_bottom = (isset($_POST['carousel_mergin_bottom']) ? esc_html(stripslashes( $_POST['carousel_mergin_bottom'])) : '1');
|
535 |
+
$carousel_font_family = (isset($_POST['carousel_font_family']) ? esc_html(stripslashes( $_POST['carousel_font_family'])) : 'segoe ui');
|
536 |
$carousel_feature_border_width = (isset($_POST['carousel_feature_border_width']) ? (int) esc_html(stripslashes( $_POST['carousel_feature_border_width'])) : 2);
|
537 |
$carousel_feature_border_style = (isset($_POST['carousel_feature_border_style']) ? esc_html(stripslashes( $_POST['carousel_feature_border_style'])) : 'solid');
|
538 |
$carousel_feature_border_color = (isset($_POST['carousel_feature_border_color']) ? esc_html(stripslashes( $_POST['carousel_feature_border_color'])) : '5D204F');
|
admin/models/BWGModelOptions_bwg.php
CHANGED
@@ -79,7 +79,7 @@ class BWGModelOptions_bwg {
|
|
79 |
$row->slideshow_enable_music = 0;
|
80 |
$row->slideshow_audio_url = '';
|
81 |
$row->slideshow_effect_duration = 1;
|
82 |
-
|
83 |
$row->popup_width = 800;
|
84 |
$row->popup_height = 500;
|
85 |
$row->popup_type = 'fade';
|
@@ -108,7 +108,7 @@ class BWGModelOptions_bwg {
|
|
108 |
$row->watermark_text = 'web-dorado.com';
|
109 |
$row->watermark_link = 'https://web-dorado.com';
|
110 |
$row->watermark_font_size = 20;
|
111 |
-
$row->watermark_font = '
|
112 |
$row->watermark_color = 'FFFFFF';
|
113 |
$row->watermark_opacity = 30;
|
114 |
|
79 |
$row->slideshow_enable_music = 0;
|
80 |
$row->slideshow_audio_url = '';
|
81 |
$row->slideshow_effect_duration = 1;
|
82 |
+
|
83 |
$row->popup_width = 800;
|
84 |
$row->popup_height = 500;
|
85 |
$row->popup_type = 'fade';
|
108 |
$row->watermark_text = 'web-dorado.com';
|
109 |
$row->watermark_link = 'https://web-dorado.com';
|
110 |
$row->watermark_font_size = 20;
|
111 |
+
$row->watermark_font = 'segoe ui';
|
112 |
$row->watermark_color = 'FFFFFF';
|
113 |
$row->watermark_opacity = 30;
|
114 |
|
admin/models/BWGModelThemes_bwg.php
CHANGED
@@ -65,6 +65,13 @@ class BWGModelThemes_bwg {
|
|
65 |
$row->id = $row_id;
|
66 |
$row->name = $row_name;
|
67 |
$row->default_theme = FALSE;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
}
|
69 |
else {
|
70 |
$row->thumb_margin = 4;
|
@@ -500,7 +507,7 @@ class BWGModelThemes_bwg {
|
|
500 |
$row->carousel_close_rl_btn_hover_color = 'CCCCCC';
|
501 |
$row->carousel_rl_btn_style='fa-chevron';
|
502 |
$row->carousel_mergin_bottom = '0.5';
|
503 |
-
$row->carousel_font_family = '
|
504 |
$row->carousel_feature_border_width = 2;
|
505 |
$row->carousel_feature_border_style = 'solid';
|
506 |
$row->carousel_feature_border_color= '5D204F';
|
@@ -521,6 +528,10 @@ class BWGModelThemes_bwg {
|
|
521 |
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
|
522 |
$row->id = 0;
|
523 |
$row->name = '';
|
|
|
|
|
|
|
|
|
524 |
$row->default_theme = 0;
|
525 |
$themes = json_decode($row->options);
|
526 |
foreach ($themes as $key => $value) {
|
65 |
$row->id = $row_id;
|
66 |
$row->name = $row_name;
|
67 |
$row->default_theme = FALSE;
|
68 |
+
$themes = json_decode($row->options);
|
69 |
+
foreach ($themes as $key => $value) {
|
70 |
+
$row->$key = $value;
|
71 |
+
}
|
72 |
+
if (!isset($row->lightbox_bg_transparent)) {
|
73 |
+
$row->lightbox_bg_transparent = 100;
|
74 |
+
}
|
75 |
}
|
76 |
else {
|
77 |
$row->thumb_margin = 4;
|
507 |
$row->carousel_close_rl_btn_hover_color = 'CCCCCC';
|
508 |
$row->carousel_rl_btn_style='fa-chevron';
|
509 |
$row->carousel_mergin_bottom = '0.5';
|
510 |
+
$row->carousel_font_family = 'segoe ui';
|
511 |
$row->carousel_feature_border_width = 2;
|
512 |
$row->carousel_feature_border_style = 'solid';
|
513 |
$row->carousel_feature_border_color= '5D204F';
|
528 |
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
|
529 |
$row->id = 0;
|
530 |
$row->name = '';
|
531 |
+
$themes = json_decode($row->options);
|
532 |
+
foreach ($themes as $key => $value) {
|
533 |
+
$row->$key = $value;
|
534 |
+
}
|
535 |
$row->default_theme = 0;
|
536 |
$themes = json_decode($row->options);
|
537 |
foreach ($themes as $key => $value) {
|
admin/views/BWGViewBWGShortcode.php
CHANGED
@@ -72,18 +72,19 @@ class BWGViewBWGShortcode {
|
|
72 |
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
73 |
<?php
|
74 |
wp_print_scripts('jquery');
|
|
|
75 |
}
|
76 |
wp_print_scripts('jquery-ui-core');
|
77 |
wp_print_scripts('jquery-ui-widget');
|
78 |
wp_print_scripts('jquery-ui-position');
|
79 |
wp_print_scripts('jquery-ui-tooltip');
|
|
|
80 |
wp_print_scripts('wp-pointer');
|
81 |
wp_print_styles('wp-pointer');
|
82 |
wp_print_styles('dashicons');
|
83 |
-
?>
|
84 |
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/bwg_shortcode.css?ver='.wd_bwg_version(); ?>">
|
85 |
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>">
|
86 |
-
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/bwg_shortcode.js?ver='.wd_bwg_version(); ?>"></script>
|
87 |
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/jscolor/jscolor.js?ver='.wd_bwg_version(); ?>"></script>
|
88 |
<?php
|
89 |
if (!$from_menu) {
|
@@ -991,13 +992,20 @@ class BWGViewBWGShortcode {
|
|
991 |
<td>
|
992 |
<select name="watermark_font" class="select_icon" id="watermark_font" style="width:150px;">
|
993 |
<?php
|
994 |
-
|
|
|
|
|
|
|
995 |
?>
|
996 |
-
<option value="<?php echo $watermark_font; ?>" <?php echo ($option_row->watermark_font == $watermark_font) ? 'selected' : ''; ?>><?php echo $watermark_font; ?></option>
|
997 |
<?php
|
998 |
}
|
999 |
?>
|
1000 |
</select>
|
|
|
|
|
|
|
|
|
1001 |
</td>
|
1002 |
</tr>
|
1003 |
<tr id="tr_watermark_color">
|
@@ -1121,7 +1129,7 @@ class BWGViewBWGShortcode {
|
|
1121 |
if (params['id']) {
|
1122 |
shortcode_id = params['id'];
|
1123 |
if(typeof shortcodes[shortcode_id] === 'undefined'){
|
1124 |
-
alert("<?php
|
1125 |
bwg_gallery_type('thumbnails');
|
1126 |
return 0;
|
1127 |
}
|
@@ -1421,7 +1429,7 @@ class BWGViewBWGShortcode {
|
|
1421 |
jQuery("#extended_album_image_thumb_width").val(short_code['extended_album_image_thumb_width']);
|
1422 |
jQuery("#extended_album_image_thumb_height").val(short_code['extended_album_image_thumb_height']);
|
1423 |
jQuery("#extended_albums_per_page_load_more").val(short_code['extended_albums_per_page_load_more']);
|
1424 |
-
|
1425 |
if (short_code['extended_album_enable_page'] == 1) {
|
1426 |
jQuery("#extended_album_page_yes").attr('checked', 'checked');
|
1427 |
}
|
@@ -1603,6 +1611,14 @@ class BWGViewBWGShortcode {
|
|
1603 |
jQuery("#watermark_link").val(decodeURIComponent(short_code['watermark_link']));
|
1604 |
jQuery("#watermark_text").val(short_code['watermark_text']);
|
1605 |
jQuery("#watermark_font_size").val(short_code['watermark_font_size']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1606 |
jQuery("select[id=watermark_font] option[value='" + short_code['watermark_font'] + "']").attr('selected', 'selected');
|
1607 |
jQuery("#watermark_color").val(short_code['watermark_color']);
|
1608 |
jQuery("#watermark_opacity").val(short_code['watermark_opacity']);
|
@@ -1626,6 +1642,22 @@ class BWGViewBWGShortcode {
|
|
1626 |
bwg_gallery_type(short_code['gallery_type']);
|
1627 |
}
|
1628 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1629 |
// Get shortcodes attributes.
|
1630 |
function get_params(module_name) {
|
1631 |
<?php if (!$from_menu) { ?>
|
@@ -1867,10 +1899,11 @@ class BWGViewBWGShortcode {
|
|
1867 |
jQuery(document).ready(function () {
|
1868 |
bwg_loadmore();
|
1869 |
});
|
1870 |
-
var bwg_image_thumb = '<?php addslashes(__('Image thumbnail dimensions:', 'bwg_back')); ?>';
|
1871 |
-
var bwg_image_thumb_width = '<?php addslashes(__('Image thumbnail width: ', 'bwg_back')); ?>';
|
1872 |
-
var bwg_max_column = '<?php addslashes(__('Max. number of image columns:', 'bwg_back')); ?>';
|
1873 |
-
var bwg_image_thumb_height = '<?php addslashes(__('Image thumbnail height:', 'bwg_back')); ?>';
|
|
|
1874 |
</script>
|
1875 |
</body>
|
1876 |
</html>
|
72 |
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
73 |
<?php
|
74 |
wp_print_scripts('jquery');
|
75 |
+
bwg_register_admin_scripts();
|
76 |
}
|
77 |
wp_print_scripts('jquery-ui-core');
|
78 |
wp_print_scripts('jquery-ui-widget');
|
79 |
wp_print_scripts('jquery-ui-position');
|
80 |
wp_print_scripts('jquery-ui-tooltip');
|
81 |
+
wp_print_scripts('bwg_shortcode');
|
82 |
wp_print_scripts('wp-pointer');
|
83 |
wp_print_styles('wp-pointer');
|
84 |
wp_print_styles('dashicons');
|
85 |
+
?>
|
86 |
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/bwg_shortcode.css?ver='.wd_bwg_version(); ?>">
|
87 |
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>">
|
|
|
88 |
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/jscolor/jscolor.js?ver='.wd_bwg_version(); ?>"></script>
|
89 |
<?php
|
90 |
if (!$from_menu) {
|
992 |
<td>
|
993 |
<select name="watermark_font" class="select_icon" id="watermark_font" style="width:150px;">
|
994 |
<?php
|
995 |
+
$google_fonts = WDWLibrary::get_google_fonts();
|
996 |
+
$is_google_fonts = (in_array($option_row->watermark_font, $google_fonts)) ? true : false;
|
997 |
+
$watermark_font_families = $is_google_fonts ? $google_fonts : $watermark_fonts;
|
998 |
+
foreach ($watermark_font_families as $key => $watermark_font) {
|
999 |
?>
|
1000 |
+
<option value="<?php echo $watermark_font; ?>" <?php echo ($option_row->watermark_font == $watermark_font) ? 'selected="selected"' : ''; ?>><?php echo $watermark_font; ?></option>
|
1001 |
<?php
|
1002 |
}
|
1003 |
?>
|
1004 |
</select>
|
1005 |
+
<input type="radio" name="watermark_google_fonts" id="watermark_google_fonts1" onchange="bwg_change_fonts('watermark_font', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts) echo 'checked="checked"'; ?> />
|
1006 |
+
<label for="watermark_google_fonts1" id="watermark_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
1007 |
+
<input type="radio" name="watermark_google_fonts" id="watermark_google_fonts0" onchange="bwg_change_fonts('watermark_font', '')" value="0" <?php if (!$is_google_fonts) echo 'checked="checked"'; ?> />
|
1008 |
+
<label for="watermark_google_fonts0" id="watermark_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
1009 |
</td>
|
1010 |
</tr>
|
1011 |
<tr id="tr_watermark_color">
|
1129 |
if (params['id']) {
|
1130 |
shortcode_id = params['id'];
|
1131 |
if(typeof shortcodes[shortcode_id] === 'undefined'){
|
1132 |
+
alert("<?php echo addslashes(__('There is no shortcode with such ID!', 'bwg_back')); ?>");
|
1133 |
bwg_gallery_type('thumbnails');
|
1134 |
return 0;
|
1135 |
}
|
1429 |
jQuery("#extended_album_image_thumb_width").val(short_code['extended_album_image_thumb_width']);
|
1430 |
jQuery("#extended_album_image_thumb_height").val(short_code['extended_album_image_thumb_height']);
|
1431 |
jQuery("#extended_albums_per_page_load_more").val(short_code['extended_albums_per_page_load_more']);
|
1432 |
+
jQuery("#extended_album_load_more_image_count").val(short_code['extended_album_load_more_image_count']);
|
1433 |
if (short_code['extended_album_enable_page'] == 1) {
|
1434 |
jQuery("#extended_album_page_yes").attr('checked', 'checked');
|
1435 |
}
|
1611 |
jQuery("#watermark_link").val(decodeURIComponent(short_code['watermark_link']));
|
1612 |
jQuery("#watermark_text").val(short_code['watermark_text']);
|
1613 |
jQuery("#watermark_font_size").val(short_code['watermark_font_size']);
|
1614 |
+
if (in_array(short_code['watermark_font'], bwg_objectGGF)) {
|
1615 |
+
jQuery("#watermark_google_fonts1").attr('checked', 'checked');
|
1616 |
+
bwg_change_fonts('watermark_font', 'watermark_google_fonts1');
|
1617 |
+
}
|
1618 |
+
else {
|
1619 |
+
jQuery("#watermark_google_fonts0").attr('checked', 'checked');
|
1620 |
+
bwg_change_fonts('watermark_font', '');
|
1621 |
+
}
|
1622 |
jQuery("select[id=watermark_font] option[value='" + short_code['watermark_font'] + "']").attr('selected', 'selected');
|
1623 |
jQuery("#watermark_color").val(short_code['watermark_color']);
|
1624 |
jQuery("#watermark_opacity").val(short_code['watermark_opacity']);
|
1642 |
bwg_gallery_type(short_code['gallery_type']);
|
1643 |
}
|
1644 |
}
|
1645 |
+
// in_array
|
1646 |
+
function in_array(what, where) {
|
1647 |
+
var t = false;
|
1648 |
+
for (var i in where) {
|
1649 |
+
if (what == where[i]) {
|
1650 |
+
t = true;
|
1651 |
+
break;
|
1652 |
+
}
|
1653 |
+
}
|
1654 |
+
if(t == true) {
|
1655 |
+
return true;
|
1656 |
+
}
|
1657 |
+
else {
|
1658 |
+
return false;
|
1659 |
+
}
|
1660 |
+
}
|
1661 |
// Get shortcodes attributes.
|
1662 |
function get_params(module_name) {
|
1663 |
<?php if (!$from_menu) { ?>
|
1899 |
jQuery(document).ready(function () {
|
1900 |
bwg_loadmore();
|
1901 |
});
|
1902 |
+
var bwg_image_thumb = '<?php echo addslashes(__('Image thumbnail dimensions:', 'bwg_back')); ?>';
|
1903 |
+
var bwg_image_thumb_width = '<?php echo addslashes(__('Image thumbnail width: ', 'bwg_back')); ?>';
|
1904 |
+
var bwg_max_column = '<?php echo addslashes(__('Max. number of image columns:', 'bwg_back')); ?>';
|
1905 |
+
var bwg_image_thumb_height = '<?php echo addslashes(__('Image thumbnail height:', 'bwg_back')); ?>';
|
1906 |
+
var bwg_number_of_image_rows = '<?php echo addslashes(__('Number of image rows:', 'bwg_back')); ?>';
|
1907 |
</script>
|
1908 |
</body>
|
1909 |
</html>
|
admin/views/BWGViewOptions_bwg.php
CHANGED
@@ -559,15 +559,22 @@ class BWGViewOptions_bwg {
|
|
559 |
<label for="watermark_font"><?php _e('Advertisement font style:', 'bwg_back'); ?> </label>
|
560 |
</td>
|
561 |
<td>
|
562 |
-
<select
|
563 |
<?php
|
564 |
-
|
|
|
|
|
|
|
565 |
?>
|
566 |
<option value="<?php echo $watermark_font; ?>" <?php if ($row->watermark_font == $watermark_font) echo 'selected="selected"'; ?>><?php echo $watermark_font; ?></option>
|
567 |
<?php
|
568 |
}
|
569 |
?>
|
570 |
</select>
|
|
|
|
|
|
|
|
|
571 |
<div class="spider_description"></div>
|
572 |
</td>
|
573 |
</tr>
|
559 |
<label for="watermark_font"><?php _e('Advertisement font style:', 'bwg_back'); ?> </label>
|
560 |
</td>
|
561 |
<td>
|
562 |
+
<select name="watermark_font" id="watermark_font" class="select_icon bwg_font_select" style="width:150px;" onchange="preview_watermark()">
|
563 |
<?php
|
564 |
+
$google_fonts = WDWLibrary::get_google_fonts();
|
565 |
+
$is_google_fonts = (in_array($row->watermark_font, $google_fonts) ) ? true : false;
|
566 |
+
$watermark_font_families = ($is_google_fonts == true) ? $google_fonts : $watermark_fonts;
|
567 |
+
foreach ($watermark_font_families as $watermark_font) {
|
568 |
?>
|
569 |
<option value="<?php echo $watermark_font; ?>" <?php if ($row->watermark_font == $watermark_font) echo 'selected="selected"'; ?>><?php echo $watermark_font; ?></option>
|
570 |
<?php
|
571 |
}
|
572 |
?>
|
573 |
</select>
|
574 |
+
<input type="radio" name="watermark_google_fonts" id="watermark_google_fonts1" onchange="bwg_change_fonts('watermark_font', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts) echo 'checked="checked"'; ?> />
|
575 |
+
<label for="watermark_google_fonts1" id="watermark_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
576 |
+
<input type="radio" name="watermark_google_fonts" id="watermark_google_fonts0" onchange="bwg_change_fonts('watermark_font', '')" value="0" <?php if (!$is_google_fonts) echo 'checked="checked"'; ?> />
|
577 |
+
<label for="watermark_google_fonts0" id="watermark_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
578 |
<div class="spider_description"></div>
|
579 |
</td>
|
580 |
</tr>
|
admin/views/BWGViewThemes_bwg.php
CHANGED
@@ -218,6 +218,7 @@ class BWGViewThemes_bwg {
|
|
218 |
'monospace' => 'Monospace',
|
219 |
'serif' => 'Serif',
|
220 |
);
|
|
|
221 |
$aligns = array(
|
222 |
'left' => __('Left', 'bwg_back'),
|
223 |
'center' => __('Center', 'bwg_back'),
|
@@ -467,15 +468,21 @@ class BWGViewThemes_bwg {
|
|
467 |
<tr>
|
468 |
<td class="spider_label"><label for="thumb_title_font_style"><?php _e("Title font family:", 'bwg_back'); ?> </label></td>
|
469 |
<td>
|
470 |
-
<select name="thumb_title_font_style" id="thumb_title_font_style">
|
471 |
<?php
|
472 |
-
|
|
|
|
|
473 |
?>
|
474 |
<option value="<?php echo $key; ?>" <?php echo (($row->thumb_title_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
475 |
<?php
|
476 |
}
|
477 |
?>
|
478 |
</select>
|
|
|
|
|
|
|
|
|
479 |
</td>
|
480 |
</tr>
|
481 |
<tr>
|
@@ -645,14 +652,20 @@ class BWGViewThemes_bwg {
|
|
645 |
<tr>
|
646 |
<td class="spider_label"><label for="masonry_description_font_style"><?php _e("Description font family:", 'bwg_back'); ?> </label></td>
|
647 |
<td>
|
648 |
-
<select name="masonry_description_font_style" id="masonry_description_font_style">
|
649 |
<?php
|
650 |
-
|
|
|
|
|
651 |
?>
|
652 |
<option value="<?php echo $key; ?>" <?php echo (($row->masonry_description_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
653 |
<?php
|
654 |
}
|
655 |
?>
|
|
|
|
|
|
|
|
|
656 |
</select>
|
657 |
</td>
|
658 |
</tr>
|
@@ -966,15 +979,21 @@ class BWGViewThemes_bwg {
|
|
966 |
<tr>
|
967 |
<td class="spider_label"><label for="slideshow_title_font"><?php _e("Title font family:", 'bwg_back'); ?> </label></td>
|
968 |
<td>
|
969 |
-
<select name="slideshow_title_font" id="slideshow_title_font">
|
970 |
<?php
|
971 |
-
|
|
|
|
|
972 |
?>
|
973 |
<option value="<?php echo $key; ?>" <?php echo (($row->slideshow_title_font == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
974 |
<?php
|
975 |
}
|
976 |
?>
|
977 |
</select>
|
|
|
|
|
|
|
|
|
978 |
</td>
|
979 |
</tr>
|
980 |
<tr>
|
@@ -1019,15 +1038,21 @@ class BWGViewThemes_bwg {
|
|
1019 |
<tr>
|
1020 |
<td class="spider_label"><label for="slideshow_description_font"><?php _e("Description font family: ", 'bwg_back'); ?></label></td>
|
1021 |
<td>
|
1022 |
-
<select name="slideshow_description_font" id="slideshow_description_font">
|
1023 |
<?php
|
1024 |
-
|
|
|
|
|
1025 |
?>
|
1026 |
<option value="<?php echo $key; ?>" <?php echo (($row->slideshow_description_font == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1027 |
<?php
|
1028 |
}
|
1029 |
?>
|
1030 |
</select>
|
|
|
|
|
|
|
|
|
1031 |
</td>
|
1032 |
</tr>
|
1033 |
</tbody>
|
@@ -1214,15 +1239,21 @@ class BWGViewThemes_bwg {
|
|
1214 |
<tr>
|
1215 |
<td class="spider_label"><label for="image_browser_img_font_family"><?php _e("Font family:", 'bwg_back'); ?> </label></td>
|
1216 |
<td>
|
1217 |
-
<select name="image_browser_img_font_family" id="image_browser_img_font_family">
|
1218 |
<?php
|
1219 |
-
|
|
|
|
|
1220 |
?>
|
1221 |
<option value="<?php echo $key; ?>" <?php echo (($row->image_browser_img_font_family == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1222 |
<?php
|
1223 |
}
|
1224 |
?>
|
1225 |
</select>
|
|
|
|
|
|
|
|
|
1226 |
</td>
|
1227 |
</tr>
|
1228 |
<tr>
|
@@ -1447,15 +1478,21 @@ class BWGViewThemes_bwg {
|
|
1447 |
<tr>
|
1448 |
<td class="spider_label"><label for="album_compact_title_font_style"><?php _e("Title font family:", 'bwg_back'); ?> </label></td>
|
1449 |
<td>
|
1450 |
-
<select name="album_compact_title_font_style" id="album_compact_title_font_style">
|
1451 |
<?php
|
1452 |
-
|
|
|
|
|
1453 |
?>
|
1454 |
<option value="<?php echo $key; ?>" <?php echo (($row->album_compact_title_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1455 |
<?php
|
1456 |
}
|
1457 |
?>
|
1458 |
</select>
|
|
|
|
|
|
|
|
|
1459 |
</td>
|
1460 |
</tr>
|
1461 |
<tr>
|
@@ -1501,15 +1538,21 @@ class BWGViewThemes_bwg {
|
|
1501 |
<tr>
|
1502 |
<td class="spider_label"><label for="album_compact_back_font_style"><?php _e("Font family:", 'bwg_back'); ?> </label></td>
|
1503 |
<td>
|
1504 |
-
<select name="album_compact_back_font_style" id="album_compact_back_font_style">
|
1505 |
<?php
|
1506 |
-
|
|
|
|
|
1507 |
?>
|
1508 |
<option value="<?php echo $key; ?>" <?php echo (($row->album_compact_back_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1509 |
<?php
|
1510 |
}
|
1511 |
?>
|
1512 |
</select>
|
|
|
|
|
|
|
|
|
1513 |
</td>
|
1514 |
</tr>
|
1515 |
<tr>
|
@@ -1798,15 +1841,21 @@ class BWGViewThemes_bwg {
|
|
1798 |
<tr>
|
1799 |
<td class="spider_label"><label for="album_extended_back_font_style"><?php _e("Back font family:", 'bwg_back'); ?> </label></td>
|
1800 |
<td>
|
1801 |
-
<select name="album_extended_back_font_style" id="album_extended_back_font_style">
|
1802 |
<?php
|
1803 |
-
|
|
|
|
|
1804 |
?>
|
1805 |
<option value="<?php echo $key; ?>" <?php echo (($row->album_extended_back_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1806 |
<?php
|
1807 |
}
|
1808 |
?>
|
1809 |
</select>
|
|
|
|
|
|
|
|
|
1810 |
</td>
|
1811 |
</tr>
|
1812 |
<tr>
|
@@ -1929,15 +1978,21 @@ class BWGViewThemes_bwg {
|
|
1929 |
<tr>
|
1930 |
<td class="spider_label"><label for="album_extended_title_font_style"><?php _e("Title font family:", 'bwg_back'); ?> </label></td>
|
1931 |
<td>
|
1932 |
-
<select name="album_extended_title_font_style" id="album_extended_title_font_style">
|
1933 |
<?php
|
1934 |
-
|
|
|
|
|
1935 |
?>
|
1936 |
<option value="<?php echo $key; ?>" <?php echo (($row->album_extended_title_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1937 |
<?php
|
1938 |
}
|
1939 |
?>
|
1940 |
</select>
|
|
|
|
|
|
|
|
|
1941 |
</td>
|
1942 |
</tr>
|
1943 |
<tr>
|
@@ -2002,15 +2057,21 @@ class BWGViewThemes_bwg {
|
|
2002 |
<tr>
|
2003 |
<td class="spider_label"><label for="album_extended_desc_font_style"><?php _e("Description font family:", 'bwg_back'); ?> </label></td>
|
2004 |
<td>
|
2005 |
-
<select name="album_extended_desc_font_style" id="album_extended_desc_font_style">
|
2006 |
<?php
|
2007 |
-
|
|
|
|
|
2008 |
?>
|
2009 |
<option value="<?php echo $key; ?>" <?php echo (($row->album_extended_desc_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
2010 |
<?php
|
2011 |
}
|
2012 |
?>
|
2013 |
</select>
|
|
|
|
|
|
|
|
|
2014 |
</td>
|
2015 |
</tr>
|
2016 |
<tr>
|
@@ -2105,15 +2166,21 @@ class BWGViewThemes_bwg {
|
|
2105 |
<tr>
|
2106 |
<td class="spider_label"><label for="blog_style_img_font_family"><?php _e("Font family:", 'bwg_back'); ?> </label></td>
|
2107 |
<td>
|
2108 |
-
<select name="blog_style_img_font_family" id="blog_style_img_font_family">
|
2109 |
<?php
|
2110 |
-
|
|
|
|
|
2111 |
?>
|
2112 |
<option value="<?php echo $key; ?>" <?php echo (($row->blog_style_img_font_family == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
2113 |
<?php
|
2114 |
}
|
2115 |
?>
|
2116 |
</select>
|
|
|
|
|
|
|
|
|
2117 |
</td>
|
2118 |
</tr>
|
2119 |
<tr>
|
@@ -2818,15 +2885,21 @@ class BWGViewThemes_bwg {
|
|
2818 |
<tr>
|
2819 |
<td class="spider_label"><label for="lightbox_hit_font_style"><?php _e("Hit counter font family:", 'bwg_back'); ?> </label></td>
|
2820 |
<td>
|
2821 |
-
<select name="lightbox_hit_font_style" id="lightbox_hit_font_style">
|
2822 |
<?php
|
2823 |
-
|
|
|
|
|
2824 |
?>
|
2825 |
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_hit_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
2826 |
<?php
|
2827 |
}
|
2828 |
?>
|
2829 |
</select>
|
|
|
|
|
|
|
|
|
2830 |
</td>
|
2831 |
</tr>
|
2832 |
<tr>
|
@@ -2948,15 +3021,21 @@ class BWGViewThemes_bwg {
|
|
2948 |
<tr>
|
2949 |
<td class="spider_label"><label for="lightbox_title_font_style"><?php _e("Title font family:", 'bwg_back'); ?> </label></td>
|
2950 |
<td>
|
2951 |
-
<select name="lightbox_title_font_style" id="lightbox_title_font_style">
|
2952 |
<?php
|
2953 |
-
|
|
|
|
|
2954 |
?>
|
2955 |
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_title_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
2956 |
<?php
|
2957 |
}
|
2958 |
?>
|
2959 |
</select>
|
|
|
|
|
|
|
|
|
2960 |
</td>
|
2961 |
</tr>
|
2962 |
<tr>
|
@@ -2989,15 +3068,21 @@ class BWGViewThemes_bwg {
|
|
2989 |
<tr>
|
2990 |
<td class="spider_label"><label for="lightbox_description_font_style"><?php _e("Description font family:", 'bwg_back'); ?> </label></td>
|
2991 |
<td>
|
2992 |
-
<select name="lightbox_description_font_style" id="lightbox_description_font_style">
|
2993 |
<?php
|
2994 |
-
|
|
|
|
|
2995 |
?>
|
2996 |
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_description_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
2997 |
<?php
|
2998 |
}
|
2999 |
?>
|
3000 |
</select>
|
|
|
|
|
|
|
|
|
3001 |
</td>
|
3002 |
</tr>
|
3003 |
<tr>
|
@@ -3057,15 +3142,21 @@ class BWGViewThemes_bwg {
|
|
3057 |
<tr id="lightbox_comment15">
|
3058 |
<td class="spider_label"><label for="lightbox_comment_font_style"><?php _e("Comments font family:", 'bwg_back'); ?> </label></td>
|
3059 |
<td>
|
3060 |
-
<select name="lightbox_comment_font_style" id="lightbox_comment_font_style">
|
3061 |
<?php
|
3062 |
-
|
|
|
|
|
3063 |
?>
|
3064 |
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_comment_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
3065 |
<?php
|
3066 |
}
|
3067 |
?>
|
3068 |
</select>
|
|
|
|
|
|
|
|
|
3069 |
</td>
|
3070 |
</tr>
|
3071 |
<tr id="lightbox_comment10">
|
@@ -3228,15 +3319,21 @@ class BWGViewThemes_bwg {
|
|
3228 |
<tr>
|
3229 |
<td class="spider_label"><label for="page_nav_font_style"><?php _e("Font family:", 'bwg_back'); ?> </label></td>
|
3230 |
<td>
|
3231 |
-
<select name="page_nav_font_style" id="page_nav_font_style">
|
3232 |
<?php
|
3233 |
-
|
|
|
|
|
3234 |
?>
|
3235 |
<option value="<?php echo $key; ?>" <?php echo (($row->page_nav_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
3236 |
<?php
|
3237 |
}
|
3238 |
?>
|
3239 |
</select>
|
|
|
|
|
|
|
|
|
3240 |
</td>
|
3241 |
</tr>
|
3242 |
<tr>
|
218 |
'monospace' => 'Monospace',
|
219 |
'serif' => 'Serif',
|
220 |
);
|
221 |
+
$google_fonts = WDWLibrary::get_google_fonts();
|
222 |
$aligns = array(
|
223 |
'left' => __('Left', 'bwg_back'),
|
224 |
'center' => __('Center', 'bwg_back'),
|
468 |
<tr>
|
469 |
<td class="spider_label"><label for="thumb_title_font_style"><?php _e("Title font family:", 'bwg_back'); ?> </label></td>
|
470 |
<td>
|
471 |
+
<select name="thumb_title_font_style" id="thumb_title_font_style" class="select_icon_them">
|
472 |
<?php
|
473 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->thumb_title_font_style), $google_fonts) ) ? true : false;
|
474 |
+
$thumb_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
475 |
+
foreach ($thumb_font_families as $key => $font_family) {
|
476 |
?>
|
477 |
<option value="<?php echo $key; ?>" <?php echo (($row->thumb_title_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
478 |
<?php
|
479 |
}
|
480 |
?>
|
481 |
</select>
|
482 |
+
<input type="radio" name="thumb_title_google_fonts" id="thumb_title_google_fonts1" onchange="bwg_change_fonts('thumb_title_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
483 |
+
<label for="thumb_title_google_fonts1" id="thumb_title_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
484 |
+
<input type="radio" name="thumb_title_google_fonts" id="thumb_title_google_fonts0" onchange="bwg_change_fonts('thumb_title_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
485 |
+
<label for="thumb_title_google_fonts0" id="thumb_title_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
486 |
</td>
|
487 |
</tr>
|
488 |
<tr>
|
652 |
<tr>
|
653 |
<td class="spider_label"><label for="masonry_description_font_style"><?php _e("Description font family:", 'bwg_back'); ?> </label></td>
|
654 |
<td>
|
655 |
+
<select name="masonry_description_font_style" id="masonry_description_font_style" class="select_icon_them">
|
656 |
<?php
|
657 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->masonry_description_font_style), $google_fonts) ) ? true : false;
|
658 |
+
$masonry_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
659 |
+
foreach ($masonry_font_families as $key => $font_family) {
|
660 |
?>
|
661 |
<option value="<?php echo $key; ?>" <?php echo (($row->masonry_description_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
662 |
<?php
|
663 |
}
|
664 |
?>
|
665 |
+
<input type="radio" name="masonry_description_google_fonts" id="masonry_description_google_fonts1" onchange="bwg_change_fonts('masonry_description_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
666 |
+
<label for="masonry_description_google_fonts1" id="masonry_description_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
667 |
+
<input type="radio" name="masonry_description_google_fonts" id="masonry_description_google_fonts0" onchange="bwg_change_fonts('masonry_description_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
668 |
+
<label for="masonry_description_google_fonts0" id="masonry_description_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
669 |
</select>
|
670 |
</td>
|
671 |
</tr>
|
979 |
<tr>
|
980 |
<td class="spider_label"><label for="slideshow_title_font"><?php _e("Title font family:", 'bwg_back'); ?> </label></td>
|
981 |
<td>
|
982 |
+
<select name="slideshow_title_font" id="slideshow_title_font" class="select_icon_them">
|
983 |
<?php
|
984 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->slideshow_title_font), $google_fonts) ) ? true : false;
|
985 |
+
$slideshow_title_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
986 |
+
foreach ($slideshow_title_font_families as $key => $font_family) {
|
987 |
?>
|
988 |
<option value="<?php echo $key; ?>" <?php echo (($row->slideshow_title_font == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
989 |
<?php
|
990 |
}
|
991 |
?>
|
992 |
</select>
|
993 |
+
<input type="radio" name="slideshow_title_google_fonts" id="slideshow_title_google_fonts1" onchange="bwg_change_fonts('slideshow_title_font', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
994 |
+
<label for="slideshow_title_google_fonts1" id="slideshow_title_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
995 |
+
<input type="radio" name="slideshow_title_google_fonts" id="slideshow_title_google_fonts0" onchange="bwg_change_fonts('slideshow_title_font', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
996 |
+
<label for="slideshow_title_google_fonts0" id="slideshow_title_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
997 |
</td>
|
998 |
</tr>
|
999 |
<tr>
|
1038 |
<tr>
|
1039 |
<td class="spider_label"><label for="slideshow_description_font"><?php _e("Description font family: ", 'bwg_back'); ?></label></td>
|
1040 |
<td>
|
1041 |
+
<select name="slideshow_description_font" id="slideshow_description_font" class="select_icon_them">
|
1042 |
<?php
|
1043 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->slideshow_description_font), $google_fonts) ) ? true : false;
|
1044 |
+
$slideshow_description_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
1045 |
+
foreach ($slideshow_description_font_families as $key => $font_family) {
|
1046 |
?>
|
1047 |
<option value="<?php echo $key; ?>" <?php echo (($row->slideshow_description_font == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1048 |
<?php
|
1049 |
}
|
1050 |
?>
|
1051 |
</select>
|
1052 |
+
<input type="radio" name="slideshow_description_google_fonts" id="slideshow_description_google_fonts1" onchange="bwg_change_fonts('slideshow_description_font', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
1053 |
+
<label for="slideshow_description_google_fonts1" id="slideshow_description_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
1054 |
+
<input type="radio" name="slideshow_description_google_fonts" id="slideshow_description_google_fonts0" onchange="bwg_change_fonts('slideshow_description_font', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
1055 |
+
<label for="slideshow_description_google_fonts0" id="slideshow_description_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
1056 |
</td>
|
1057 |
</tr>
|
1058 |
</tbody>
|
1239 |
<tr>
|
1240 |
<td class="spider_label"><label for="image_browser_img_font_family"><?php _e("Font family:", 'bwg_back'); ?> </label></td>
|
1241 |
<td>
|
1242 |
+
<select name="image_browser_img_font_family" id="image_browser_img_font_family" class="select_icon_them">
|
1243 |
<?php
|
1244 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->image_browser_img_font_family), $google_fonts) ) ? true : false;
|
1245 |
+
$image_browser_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
1246 |
+
foreach ($image_browser_font_families as $key => $font_family) {
|
1247 |
?>
|
1248 |
<option value="<?php echo $key; ?>" <?php echo (($row->image_browser_img_font_family == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1249 |
<?php
|
1250 |
}
|
1251 |
?>
|
1252 |
</select>
|
1253 |
+
<input type="radio" name="image_browser_img_google_fonts" id="image_browser_img_google_fonts1" onchange="bwg_change_fonts('image_browser_img_font_family', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
1254 |
+
<label for="image_browser_img_google_fonts1" id="image_browser_img_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
1255 |
+
<input type="radio" name="image_browser_img_google_fonts" id="image_browser_img_google_fonts0" onchange="bwg_change_fonts('image_browser_img_font_family', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
1256 |
+
<label for="image_browser_img_google_fonts0" id="image_browser_img_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
1257 |
</td>
|
1258 |
</tr>
|
1259 |
<tr>
|
1478 |
<tr>
|
1479 |
<td class="spider_label"><label for="album_compact_title_font_style"><?php _e("Title font family:", 'bwg_back'); ?> </label></td>
|
1480 |
<td>
|
1481 |
+
<select name="album_compact_title_font_style" id="album_compact_title_font_style" class="select_icon_them">
|
1482 |
<?php
|
1483 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->album_compact_title_font_style), $google_fonts) ) ? true : false;
|
1484 |
+
$album_compact_title_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
1485 |
+
foreach ($album_compact_title_font_families as $key => $font_family) {
|
1486 |
?>
|
1487 |
<option value="<?php echo $key; ?>" <?php echo (($row->album_compact_title_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1488 |
<?php
|
1489 |
}
|
1490 |
?>
|
1491 |
</select>
|
1492 |
+
<input type="radio" name="album_compact_title_google_fonts" id="album_compact_title_google_fonts1" onchange="bwg_change_fonts('album_compact_title_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
1493 |
+
<label for="album_compact_title_google_fonts1" id="album_compact_title_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
1494 |
+
<input type="radio" name="album_compact_title_google_fonts" id="album_compact_title_google_fonts0" onchange="bwg_change_fonts('album_compact_title_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
1495 |
+
<label for="album_compact_title_google_fonts0" id="album_compact_title_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
1496 |
</td>
|
1497 |
</tr>
|
1498 |
<tr>
|
1538 |
<tr>
|
1539 |
<td class="spider_label"><label for="album_compact_back_font_style"><?php _e("Font family:", 'bwg_back'); ?> </label></td>
|
1540 |
<td>
|
1541 |
+
<select name="album_compact_back_font_style" id="album_compact_back_font_style" class="select_icon_them">
|
1542 |
<?php
|
1543 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->album_compact_back_font_style), $google_fonts) ) ? true : false;
|
1544 |
+
$album_compact_back_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
1545 |
+
foreach ($album_compact_back_font_families as $key => $font_family) {
|
1546 |
?>
|
1547 |
<option value="<?php echo $key; ?>" <?php echo (($row->album_compact_back_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1548 |
<?php
|
1549 |
}
|
1550 |
?>
|
1551 |
</select>
|
1552 |
+
<input type="radio" name="album_compact_back_google_fonts" id="album_compact_back_google_fonts1" onchange="bwg_change_fonts('album_compact_back_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
1553 |
+
<label for="album_compact_back_google_fonts1" id="album_compact_back_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
1554 |
+
<input type="radio" name="album_compact_back_google_fonts" id="album_compact_back_google_fonts0" onchange="bwg_change_fonts('album_compact_back_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
1555 |
+
<label for="album_compact_back_google_fonts0" id="album_compact_back_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
1556 |
</td>
|
1557 |
</tr>
|
1558 |
<tr>
|
1841 |
<tr>
|
1842 |
<td class="spider_label"><label for="album_extended_back_font_style"><?php _e("Back font family:", 'bwg_back'); ?> </label></td>
|
1843 |
<td>
|
1844 |
+
<select name="album_extended_back_font_style" id="album_extended_back_font_style" class="select_icon_them">
|
1845 |
<?php
|
1846 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->album_extended_back_font_style), $google_fonts) ) ? true : false;
|
1847 |
+
$album_extended_back_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
1848 |
+
foreach ($album_extended_back_font_families as $key => $font_family) {
|
1849 |
?>
|
1850 |
<option value="<?php echo $key; ?>" <?php echo (($row->album_extended_back_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1851 |
<?php
|
1852 |
}
|
1853 |
?>
|
1854 |
</select>
|
1855 |
+
<input type="radio" name="album_extended_back_google_fonts" id="album_extended_back_google_fonts1" onchange="bwg_change_fonts('album_extended_back_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
1856 |
+
<label for="album_extended_back_google_fonts1" id="album_extended_back_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
1857 |
+
<input type="radio" name="album_extended_back_google_fonts" id="album_extended_back_google_fonts0" onchange="bwg_change_fonts('album_extended_back_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
1858 |
+
<label for="album_extended_back_google_fonts0" id="album_extended_back_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
1859 |
</td>
|
1860 |
</tr>
|
1861 |
<tr>
|
1978 |
<tr>
|
1979 |
<td class="spider_label"><label for="album_extended_title_font_style"><?php _e("Title font family:", 'bwg_back'); ?> </label></td>
|
1980 |
<td>
|
1981 |
+
<select name="album_extended_title_font_style" id="album_extended_title_font_style" class="select_icon_them">
|
1982 |
<?php
|
1983 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->album_extended_title_font_style), $google_fonts) ) ? true : false;
|
1984 |
+
$album_extended_title_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
1985 |
+
foreach ($album_extended_title_font_families as $key => $font_family) {
|
1986 |
?>
|
1987 |
<option value="<?php echo $key; ?>" <?php echo (($row->album_extended_title_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
1988 |
<?php
|
1989 |
}
|
1990 |
?>
|
1991 |
</select>
|
1992 |
+
<input type="radio" name="album_extended_title_google_fonts" id="album_extended_title_google_fonts1" onchange="bwg_change_fonts('album_extended_title_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
1993 |
+
<label for="album_extended_title_google_fonts1" id="album_extended_title_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
1994 |
+
<input type="radio" name="album_extended_title_google_fonts" id="album_extended_title_google_fonts0" onchange="bwg_change_fonts('album_extended_title_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
1995 |
+
<label for="album_extended_title_google_fonts0" id="album_extended_title_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
1996 |
</td>
|
1997 |
</tr>
|
1998 |
<tr>
|
2057 |
<tr>
|
2058 |
<td class="spider_label"><label for="album_extended_desc_font_style"><?php _e("Description font family:", 'bwg_back'); ?> </label></td>
|
2059 |
<td>
|
2060 |
+
<select name="album_extended_desc_font_style" id="album_extended_desc_font_style" class="select_icon_them">
|
2061 |
<?php
|
2062 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->album_extended_desc_font_style), $google_fonts) ) ? true : false;
|
2063 |
+
$album_extended_desc_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
2064 |
+
foreach ($album_extended_desc_font_families as $key => $font_family) {
|
2065 |
?>
|
2066 |
<option value="<?php echo $key; ?>" <?php echo (($row->album_extended_desc_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
2067 |
<?php
|
2068 |
}
|
2069 |
?>
|
2070 |
</select>
|
2071 |
+
<input type="radio" name="album_extended_desc_google_fonts" id="album_extended_desc_google_fonts1" onchange="bwg_change_fonts('album_extended_desc_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
2072 |
+
<label for="album_extended_desc_google_fonts1" id="album_extended_desc_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
2073 |
+
<input type="radio" name="album_extended_desc_google_fonts" id="album_extended_desc_google_fonts0" onchange="bwg_change_fonts('album_extended_desc_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
2074 |
+
<label for="album_extended_desc_google_fonts0" id="album_extended_desc_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
2075 |
</td>
|
2076 |
</tr>
|
2077 |
<tr>
|
2166 |
<tr>
|
2167 |
<td class="spider_label"><label for="blog_style_img_font_family"><?php _e("Font family:", 'bwg_back'); ?> </label></td>
|
2168 |
<td>
|
2169 |
+
<select name="blog_style_img_font_family" id="blog_style_img_font_family" class="select_icon_them">
|
2170 |
<?php
|
2171 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->blog_style_img_font_family), $google_fonts) ) ? true : false;
|
2172 |
+
$blog_style_img_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
2173 |
+
foreach ($blog_style_img_font_families as $key => $font_family) {
|
2174 |
?>
|
2175 |
<option value="<?php echo $key; ?>" <?php echo (($row->blog_style_img_font_family == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
2176 |
<?php
|
2177 |
}
|
2178 |
?>
|
2179 |
</select>
|
2180 |
+
<input type="radio" name="blog_style_img_google_fonts" id="blog_style_img_google_fonts1" onchange="bwg_change_fonts('blog_style_img_font_family', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
2181 |
+
<label for="blog_style_img_google_fonts1" id="blog_style_img_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
2182 |
+
<input type="radio" name="blog_style_img_google_fonts" id="blog_style_img_google_fonts0" onchange="bwg_change_fonts('blog_style_img_font_family', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
2183 |
+
<label for="blog_style_img_google_fonts0" id="blog_style_img_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
2184 |
</td>
|
2185 |
</tr>
|
2186 |
<tr>
|
2885 |
<tr>
|
2886 |
<td class="spider_label"><label for="lightbox_hit_font_style"><?php _e("Hit counter font family:", 'bwg_back'); ?> </label></td>
|
2887 |
<td>
|
2888 |
+
<select name="lightbox_hit_font_style" id="lightbox_hit_font_style" class="select_icon_them">
|
2889 |
<?php
|
2890 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->lightbox_hit_font_style), $google_fonts) ) ? true : false;
|
2891 |
+
$lightbox_hit_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
2892 |
+
foreach ($lightbox_hit_font_families as $key => $font_family) {
|
2893 |
?>
|
2894 |
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_hit_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
2895 |
<?php
|
2896 |
}
|
2897 |
?>
|
2898 |
</select>
|
2899 |
+
<input type="radio" name="lightbox_hit_google_fonts" id="lightbox_hit_google_fonts1" onchange="bwg_change_fonts('lightbox_hit_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
2900 |
+
<label for="lightbox_hit_google_fonts1" id="lightbox_hit_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
2901 |
+
<input type="radio" name="lightbox_hit_google_fonts" id="lightbox_hit_google_fonts0" onchange="bwg_change_fonts('lightbox_hit_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
2902 |
+
<label for="lightbox_hit_google_fonts0" id="lightbox_hit_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
2903 |
</td>
|
2904 |
</tr>
|
2905 |
<tr>
|
3021 |
<tr>
|
3022 |
<td class="spider_label"><label for="lightbox_title_font_style"><?php _e("Title font family:", 'bwg_back'); ?> </label></td>
|
3023 |
<td>
|
3024 |
+
<select name="lightbox_title_font_style" id="lightbox_title_font_style" class="select_icon_them">
|
3025 |
<?php
|
3026 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->lightbox_title_font_style), $google_fonts) ) ? true : false;
|
3027 |
+
$lightbox_title_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
3028 |
+
foreach ($lightbox_title_font_families as $key => $font_family) {
|
3029 |
?>
|
3030 |
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_title_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
3031 |
<?php
|
3032 |
}
|
3033 |
?>
|
3034 |
</select>
|
3035 |
+
<input type="radio" name="lightbox_title_google_fonts" id="lightbox_title_google_fonts1" onchange="bwg_change_fonts('lightbox_title_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
3036 |
+
<label for="lightbox_title_google_fonts1" id="lightbox_title_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
3037 |
+
<input type="radio" name="lightbox_title_google_fonts" id="lightbox_title_google_fonts0" onchange="bwg_change_fonts('lightbox_title_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
3038 |
+
<label for="lightbox_title_google_fonts0" id="lightbox_title_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
3039 |
</td>
|
3040 |
</tr>
|
3041 |
<tr>
|
3068 |
<tr>
|
3069 |
<td class="spider_label"><label for="lightbox_description_font_style"><?php _e("Description font family:", 'bwg_back'); ?> </label></td>
|
3070 |
<td>
|
3071 |
+
<select name="lightbox_description_font_style" id="lightbox_description_font_style" class="select_icon_them">
|
3072 |
<?php
|
3073 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->lightbox_description_font_style), $google_fonts) ) ? true : false;
|
3074 |
+
$lightbox_description_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
3075 |
+
foreach ($lightbox_description_font_families as $key => $font_family) {
|
3076 |
?>
|
3077 |
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_description_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
3078 |
<?php
|
3079 |
}
|
3080 |
?>
|
3081 |
</select>
|
3082 |
+
<input type="radio" name="lightbox_description_google_fonts" id="lightbox_description_google_fonts1" onchange="bwg_change_fonts('lightbox_description_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
3083 |
+
<label for="lightbox_description_google_fonts1" id="lightbox_description_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
3084 |
+
<input type="radio" name="lightbox_description_google_fonts" id="lightbox_description_google_fonts0" onchange="bwg_change_fonts('lightbox_description_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
3085 |
+
<label for="lightbox_description_google_fonts0" id="lightbox_description_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
3086 |
</td>
|
3087 |
</tr>
|
3088 |
<tr>
|
3142 |
<tr id="lightbox_comment15">
|
3143 |
<td class="spider_label"><label for="lightbox_comment_font_style"><?php _e("Comments font family:", 'bwg_back'); ?> </label></td>
|
3144 |
<td>
|
3145 |
+
<select name="lightbox_comment_font_style" id="lightbox_comment_font_style" class="select_icon_them">
|
3146 |
<?php
|
3147 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->lightbox_comment_font_style), $google_fonts) ) ? true : false;
|
3148 |
+
$lightbox_comment_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
3149 |
+
foreach ($lightbox_comment_font_families as $key => $font_family) {
|
3150 |
?>
|
3151 |
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_comment_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
3152 |
<?php
|
3153 |
}
|
3154 |
?>
|
3155 |
</select>
|
3156 |
+
<input type="radio" name="lightbox_comment_google_fonts" id="lightbox_comment_google_fonts1" onchange="bwg_change_fonts('lightbox_comment_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
3157 |
+
<label for="lightbox_comment_google_fonts1" id="lightbox_comment_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
3158 |
+
<input type="radio" name="lightbox_comment_google_fonts" id="lightbox_comment_google_fonts0" onchange="bwg_change_fonts('lightbox_comment_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
3159 |
+
<label for="lightbox_comment_google_fonts0" id="lightbox_comment_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
3160 |
</td>
|
3161 |
</tr>
|
3162 |
<tr id="lightbox_comment10">
|
3319 |
<tr>
|
3320 |
<td class="spider_label"><label for="page_nav_font_style"><?php _e("Font family:", 'bwg_back'); ?> </label></td>
|
3321 |
<td>
|
3322 |
+
<select name="page_nav_font_style" id="page_nav_font_style" class="select_icon_them">
|
3323 |
<?php
|
3324 |
+
$is_google_fonts = (in_array(str_replace('+', ' ', $row->page_nav_font_style), $google_fonts) ) ? true : false;
|
3325 |
+
$page_nav_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
|
3326 |
+
foreach ($page_nav_font_families as $key => $font_family) {
|
3327 |
?>
|
3328 |
<option value="<?php echo $key; ?>" <?php echo (($row->page_nav_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
3329 |
<?php
|
3330 |
}
|
3331 |
?>
|
3332 |
</select>
|
3333 |
+
<input type="radio" name="page_nav_google_fonts" id="page_nav_google_fonts1" onchange="bwg_change_fonts('page_nav_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
|
3334 |
+
<label for="page_nav_google_fonts1" id="page_nav_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
|
3335 |
+
<input type="radio" name="page_nav_google_fonts" id="page_nav_google_fonts0" onchange="bwg_change_fonts('page_nav_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
|
3336 |
+
<label for="page_nav_google_fonts0" id="page_nav_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
|
3337 |
</td>
|
3338 |
</tr>
|
3339 |
<tr>
|
css/bwg_shortcode.css
CHANGED
@@ -107,9 +107,9 @@ a.wd-btn{
|
|
107 |
outline:none !important;
|
108 |
}
|
109 |
.wd-btn-secondary{
|
110 |
-
|
111 |
color: #666;
|
112 |
-
|
113 |
}
|
114 |
|
115 |
.wd-btn-primary{
|
@@ -143,15 +143,15 @@ a.wd-btn-icon.wd-btn-primary:hover{
|
|
143 |
color:#fff;
|
144 |
}
|
145 |
.wd-btn-import{
|
146 |
-
background-image:url(../images/icons/import.png);
|
147 |
}
|
148 |
.wd-not-image{
|
149 |
padding: 0px 10px 1px 10px !important;
|
150 |
background-repeat: no-repeat;
|
151 |
background-position: 10% 50%;
|
152 |
}
|
153 |
-
.select_icon
|
154 |
-
background-image:url(
|
155 |
background-repeat: no-repeat;
|
156 |
-webkit-appearance: none;
|
157 |
-moz-appearance: none;
|
@@ -159,6 +159,7 @@ a.wd-btn-icon.wd-btn-primary:hover{
|
|
159 |
padding: 0 2px 2px 2px !important;
|
160 |
width: 22%;
|
161 |
height:28px !important;
|
|
|
162 |
}
|
163 |
|
164 |
th.sortable a span,
|
107 |
outline:none !important;
|
108 |
}
|
109 |
.wd-btn-secondary{
|
110 |
+
background-color: #FFFFFF;
|
111 |
color: #666;
|
112 |
+
border: 1px solid #ddd;
|
113 |
}
|
114 |
|
115 |
.wd-btn-primary{
|
143 |
color:#fff;
|
144 |
}
|
145 |
.wd-btn-import{
|
146 |
+
background-image:url("../images/icons/import.png");
|
147 |
}
|
148 |
.wd-not-image{
|
149 |
padding: 0px 10px 1px 10px !important;
|
150 |
background-repeat: no-repeat;
|
151 |
background-position: 10% 50%;
|
152 |
}
|
153 |
+
.select_icon{
|
154 |
+
background-image:url("../images/icons/arrow.png");
|
155 |
background-repeat: no-repeat;
|
156 |
-webkit-appearance: none;
|
157 |
-moz-appearance: none;
|
159 |
padding: 0 2px 2px 2px !important;
|
160 |
width: 22%;
|
161 |
height:28px !important;
|
162 |
+
display: block;
|
163 |
}
|
164 |
|
165 |
th.sortable a span,
|
css/bwg_tables.css
CHANGED
@@ -689,37 +689,40 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
|
|
689 |
}
|
690 |
|
691 |
.wd-btn-delete{
|
692 |
-
background-image:url(../images/icons/delete.png);
|
693 |
}
|
694 |
.wd-btn-add{
|
695 |
-
background-image:url(../images/icons/add-new.png);
|
696 |
}
|
697 |
.wd-btn-save{
|
698 |
-
background-image:url(../images/icons/save.png);
|
699 |
}
|
700 |
.wd-btn-apply{
|
701 |
-
background-image:url(../images/icons/apply.png);
|
702 |
}
|
703 |
.wd-btn-cancel{
|
704 |
-
background-image:url(../images/icons/cancel.png);
|
705 |
}
|
706 |
.wd-btn-import{
|
707 |
-
background-image:url(../images/icons/import.png);
|
708 |
}
|
709 |
.wd-btn-media{
|
710 |
-
background-image:url(../images/icons/media.png);
|
711 |
}
|
712 |
.wd-btn-bulk_media{
|
713 |
-
background-image:url(../images/icons/bulk_embed.png);
|
714 |
}
|
715 |
.wd-btn-watermark{
|
716 |
-
background-image:url(../images/icons/watermark.png);
|
717 |
}
|
718 |
.wd-btn-tumbnail{
|
719 |
-
background-image:url(../images/icons/tumbnail.png);
|
720 |
}
|
721 |
.wd-btn-reset{
|
722 |
-
background-image:url(../images/icons/reset.png);
|
|
|
|
|
|
|
723 |
}
|
724 |
.wd-btn-icon-tumbnail {
|
725 |
padding: 0px 10px 1px 44px !important;
|
@@ -733,7 +736,7 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
|
|
733 |
text-decoration: none;
|
734 |
font-size: 13px;
|
735 |
height: 32px;
|
736 |
-
background: #00A0D2 url(../images/icons/search.png) no-repeat center;
|
737 |
border:1px solid #00A0D2;
|
738 |
width:50px;
|
739 |
float:left;
|
@@ -760,25 +763,26 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
|
|
760 |
background-position: 10% 50%;
|
761 |
}
|
762 |
.select_icon{
|
763 |
-
background-image:url(
|
764 |
background-repeat: no-repeat;
|
765 |
-webkit-appearance: none;
|
766 |
-moz-appearance: none;
|
767 |
background-position:93% 49%;
|
768 |
-
padding:
|
769 |
width: 12%;
|
770 |
height:31px !important;
|
771 |
}
|
772 |
|
773 |
-
.select_icon_them{
|
774 |
-
background-image:url(
|
775 |
background-repeat: no-repeat;
|
776 |
-webkit-appearance: none;
|
777 |
-moz-appearance: none;
|
778 |
background-position:93% 49%;
|
779 |
padding: 0 2px 2px 2px !important;
|
780 |
width: 63%;
|
781 |
-
height:
|
|
|
782 |
}
|
783 |
.bwg_img_remove {
|
784 |
background-image: url("../images/icons/delete_red.png");
|
@@ -866,6 +870,7 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
|
|
866 |
display:inline-block;
|
867 |
width:97%;
|
868 |
}
|
|
|
869 |
input {
|
870 |
height:30px;
|
871 |
}
|
@@ -910,4 +915,8 @@ textarea.bwg_popup_input {
|
|
910 |
resize: vertical;
|
911 |
margin: 1px;
|
912 |
vertical-align: middle;
|
|
|
|
|
|
|
|
|
913 |
}
|
689 |
}
|
690 |
|
691 |
.wd-btn-delete{
|
692 |
+
background-image:url("../images/icons/delete.png");
|
693 |
}
|
694 |
.wd-btn-add{
|
695 |
+
background-image:url("../images/icons/add-new.png");
|
696 |
}
|
697 |
.wd-btn-save{
|
698 |
+
background-image:url("../images/icons/save.png");
|
699 |
}
|
700 |
.wd-btn-apply{
|
701 |
+
background-image:url("../images/icons/apply.png");
|
702 |
}
|
703 |
.wd-btn-cancel{
|
704 |
+
background-image:url("../images/icons/cancel.png");
|
705 |
}
|
706 |
.wd-btn-import{
|
707 |
+
background-image:url("../images/icons/import.png");
|
708 |
}
|
709 |
.wd-btn-media{
|
710 |
+
background-image:url("../images/icons/media.png");
|
711 |
}
|
712 |
.wd-btn-bulk_media{
|
713 |
+
background-image:url("../images/icons/bulk_embed.png");
|
714 |
}
|
715 |
.wd-btn-watermark{
|
716 |
+
background-image:url("../images/icons/watermark.png");
|
717 |
}
|
718 |
.wd-btn-tumbnail{
|
719 |
+
background-image:url("../images/icons/tumbnail.png");
|
720 |
}
|
721 |
.wd-btn-reset{
|
722 |
+
background-image:url("../images/icons/reset.png");
|
723 |
+
}
|
724 |
+
.wd-btn-save_as_copy {
|
725 |
+
background-image:url("../images/icons/save_as_copy.png");
|
726 |
}
|
727 |
.wd-btn-icon-tumbnail {
|
728 |
padding: 0px 10px 1px 44px !important;
|
736 |
text-decoration: none;
|
737 |
font-size: 13px;
|
738 |
height: 32px;
|
739 |
+
background: #00A0D2 url("../images/icons/search.png") no-repeat center;
|
740 |
border:1px solid #00A0D2;
|
741 |
width:50px;
|
742 |
float:left;
|
763 |
background-position: 10% 50%;
|
764 |
}
|
765 |
.select_icon{
|
766 |
+
background-image:url("../images/icons/arrow.png");
|
767 |
background-repeat: no-repeat;
|
768 |
-webkit-appearance: none;
|
769 |
-moz-appearance: none;
|
770 |
background-position:93% 49%;
|
771 |
+
padding: 0px 2px 2px 2px !important;
|
772 |
width: 12%;
|
773 |
height:31px !important;
|
774 |
}
|
775 |
|
776 |
+
.select_icon_them {
|
777 |
+
background-image:url("../images/icons/arrow.png");
|
778 |
background-repeat: no-repeat;
|
779 |
-webkit-appearance: none;
|
780 |
-moz-appearance: none;
|
781 |
background-position:93% 49%;
|
782 |
padding: 0 2px 2px 2px !important;
|
783 |
width: 63%;
|
784 |
+
height:31px !important;
|
785 |
+
display: block;
|
786 |
}
|
787 |
.bwg_img_remove {
|
788 |
background-image: url("../images/icons/delete_red.png");
|
870 |
display:inline-block;
|
871 |
width:97%;
|
872 |
}
|
873 |
+
|
874 |
input {
|
875 |
height:30px;
|
876 |
}
|
915 |
resize: vertical;
|
916 |
margin: 1px;
|
917 |
vertical-align: middle;
|
918 |
+
}
|
919 |
+
|
920 |
+
.bwg_font_select {
|
921 |
+
display: block;
|
922 |
}
|
filemanager/UploadHandler.php
CHANGED
@@ -22,12 +22,12 @@ else {
|
|
22 |
require_once(WD_BWG_DIR . '/filemanager/controller.php');
|
23 |
$controller = new FilemanagerController();
|
24 |
|
25 |
-
$upload_handler = new
|
26 |
'upload_dir' => $controller->uploads_dir . (isset($_GET['dir']) ? str_replace('\\', '', ($_GET['dir'])) : ''),
|
27 |
'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
|
28 |
));
|
29 |
|
30 |
-
class
|
31 |
protected $options;
|
32 |
// PHP File Upload error message codes:
|
33 |
// http://php.net/manual/en/features.file-upload.errors.php
|
22 |
require_once(WD_BWG_DIR . '/filemanager/controller.php');
|
23 |
$controller = new FilemanagerController();
|
24 |
|
25 |
+
$upload_handler = new bwg_UploadHandler(array(
|
26 |
'upload_dir' => $controller->uploads_dir . (isset($_GET['dir']) ? str_replace('\\', '', ($_GET['dir'])) : ''),
|
27 |
'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
|
28 |
));
|
29 |
|
30 |
+
class bwg_UploadHandler {
|
31 |
protected $options;
|
32 |
// PHP File Upload error message codes:
|
33 |
// http://php.net/manual/en/features.file-upload.errors.php
|
filemanager/controller.php
CHANGED
@@ -22,7 +22,7 @@ class FilemanagerController {
|
|
22 |
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
// Constructor & Destructor //
|
24 |
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
-
|
26 |
public function __construct() {
|
27 |
$upload_dir = wp_upload_dir();
|
28 |
$bwg_options = $this->get_options_data();
|
22 |
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
// Constructor & Destructor //
|
24 |
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
+
|
26 |
public function __construct() {
|
27 |
$upload_dir = wp_upload_dir();
|
28 |
$bwg_options = $this->get_options_data();
|
framework/WDWLibrary.php
CHANGED
@@ -200,7 +200,7 @@ class WDWLibrary {
|
|
200 |
return true;
|
201 |
}
|
202 |
</script>
|
203 |
-
<div class="alignleft actions"
|
204 |
<label for="search_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
|
205 |
<input type="text" id="search_value" name="search_value" class="spider_search_value" onkeypress="return check_search_key(event, this);" value="<?php echo esc_html($search_value); ?>" style="width: 150px; margin-right:<?php echo $margin_right; ?>px; <?php echo (get_bloginfo('version') > '3.7') ? ' height: 33px;' : ''; ?>" />
|
206 |
</div>
|
@@ -299,15 +299,14 @@ class WDWLibrary {
|
|
299 |
}
|
300 |
</script>
|
301 |
<?php } ?>
|
302 |
-
|
303 |
-
|
304 |
-
<span class="displaying-num">
|
305 |
<?php
|
306 |
if ($count_items != 0) {
|
307 |
echo $count_items; ?> item<?php echo (($count_items == 1) ? '' : 's');
|
308 |
}
|
309 |
?>
|
310 |
-
|
311 |
<?php
|
312 |
if ($count_items > $items_per_page) {
|
313 |
$first_page = "first-page";
|
@@ -375,9 +374,9 @@ class WDWLibrary {
|
|
375 |
return true;
|
376 |
}
|
377 |
</script>
|
378 |
-
<div class="alignleft actions"
|
379 |
<label for="search_value" style="font-size:14px; width:60px; display:inline-block;"><?php echo $search_by; ?>:</label>
|
380 |
-
<input type="text" id="search_value" name="search_value" class="spider_search_value" onkeypress="return check_search_key(event, this);" value="<?php echo esc_html($search_value); ?>" style="width: 150px;margin-right:5px
|
381 |
</div>
|
382 |
<div class="alignleft actions">
|
383 |
<input type="button" value="" title="<?php echo __('Reset', 'bwg'); ?>" onclick="spider_search()" class="wd-search-btn action">
|
@@ -389,7 +388,6 @@ class WDWLibrary {
|
|
389 |
|
390 |
public static function ajax_html_page_nav($count_items, $page_number, $form_id, $items_per_page = 20, $pager = 0) {
|
391 |
$limit = $items_per_page;
|
392 |
-
|
393 |
if ($count_items) {
|
394 |
if ($count_items % $limit) {
|
395 |
$items_county = ($count_items - $count_items % $limit) / $limit + 1;
|
@@ -450,9 +448,8 @@ class WDWLibrary {
|
|
450 |
}
|
451 |
</script>
|
452 |
<?php } ?>
|
453 |
-
|
454 |
<div id="tablenav-pages" class="alignright tablenav-pages">
|
455 |
-
<span class="
|
456 |
<?php
|
457 |
if ($count_items != 0) {
|
458 |
echo $count_items; ?> <?php echo __('item', 'bwg_back'); ?><?php echo (($count_items == 1) ? '' : 's');
|
@@ -725,6 +722,7 @@ class WDWLibrary {
|
|
725 |
font-family: inherit;
|
726 |
width: 100%;
|
727 |
}
|
|
|
728 |
</style>
|
729 |
<script type="text/javascript">
|
730 |
function clear_input_<?php echo $current_view; ?> (current_view) {
|
@@ -787,6 +785,7 @@ class WDWLibrary {
|
|
787 |
width:256px;
|
788 |
float:right
|
789 |
}
|
|
|
790 |
</style>
|
791 |
<div id="bwg_tag_wrap" >
|
792 |
<div id="bwg_tag_container">
|
@@ -960,12 +959,24 @@ class WDWLibrary {
|
|
960 |
return $escaped_value;
|
961 |
}
|
962 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
963 |
public static function get_theme_row_data($id) {
|
964 |
global $wpdb;
|
965 |
if ($id) {
|
966 |
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
|
967 |
}
|
968 |
-
else {
|
969 |
$row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme=1');
|
970 |
}
|
971 |
if (isset($row->options)) {
|
@@ -1035,7 +1046,7 @@ class WDWLibrary {
|
|
1035 |
$bwg_post_id->post_content = $shortecode_string;
|
1036 |
wp_update_post($bwg_post_id);
|
1037 |
}
|
1038 |
-
$bwg_post_id = get_page_by_title($title, OBJECT, $post_type);
|
1039 |
return get_permalink($bwg_post_id->ID);
|
1040 |
}
|
1041 |
|
200 |
return true;
|
201 |
}
|
202 |
</script>
|
203 |
+
<div class="alignleft actions">
|
204 |
<label for="search_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
|
205 |
<input type="text" id="search_value" name="search_value" class="spider_search_value" onkeypress="return check_search_key(event, this);" value="<?php echo esc_html($search_value); ?>" style="width: 150px; margin-right:<?php echo $margin_right; ?>px; <?php echo (get_bloginfo('version') > '3.7') ? ' height: 33px;' : ''; ?>" />
|
206 |
</div>
|
299 |
}
|
300 |
</script>
|
301 |
<?php } ?>
|
302 |
+
<div class="alignright tablenav-pages" >
|
303 |
+
<span class="displaying-num">
|
|
|
304 |
<?php
|
305 |
if ($count_items != 0) {
|
306 |
echo $count_items; ?> item<?php echo (($count_items == 1) ? '' : 's');
|
307 |
}
|
308 |
?>
|
309 |
+
</span>
|
310 |
<?php
|
311 |
if ($count_items > $items_per_page) {
|
312 |
$first_page = "first-page";
|
374 |
return true;
|
375 |
}
|
376 |
</script>
|
377 |
+
<div class="alignleft actions">
|
378 |
<label for="search_value" style="font-size:14px; width:60px; display:inline-block;"><?php echo $search_by; ?>:</label>
|
379 |
+
<input type="text" id="search_value" name="search_value" class="spider_search_value" onkeypress="return check_search_key(event, this);" value="<?php echo esc_html($search_value); ?>" style="width: 150px;margin-right:5px;<?php echo (get_bloginfo('version') > '3.7') ? ' height: 33px;' : ''; ?>" />
|
380 |
</div>
|
381 |
<div class="alignleft actions">
|
382 |
<input type="button" value="" title="<?php echo __('Reset', 'bwg'); ?>" onclick="spider_search()" class="wd-search-btn action">
|
388 |
|
389 |
public static function ajax_html_page_nav($count_items, $page_number, $form_id, $items_per_page = 20, $pager = 0) {
|
390 |
$limit = $items_per_page;
|
|
|
391 |
if ($count_items) {
|
392 |
if ($count_items % $limit) {
|
393 |
$items_county = ($count_items - $count_items % $limit) / $limit + 1;
|
448 |
}
|
449 |
</script>
|
450 |
<?php } ?>
|
|
|
451 |
<div id="tablenav-pages" class="alignright tablenav-pages">
|
452 |
+
<span class="displaying-num">
|
453 |
<?php
|
454 |
if ($count_items != 0) {
|
455 |
echo $count_items; ?> <?php echo __('item', 'bwg_back'); ?><?php echo (($count_items == 1) ? '' : 's');
|
722 |
font-family: inherit;
|
723 |
width: 100%;
|
724 |
}
|
725 |
+
|
726 |
</style>
|
727 |
<script type="text/javascript">
|
728 |
function clear_input_<?php echo $current_view; ?> (current_view) {
|
785 |
width:256px;
|
786 |
float:right
|
787 |
}
|
788 |
+
|
789 |
</style>
|
790 |
<div id="bwg_tag_wrap" >
|
791 |
<div id="bwg_tag_container">
|
959 |
return $escaped_value;
|
960 |
}
|
961 |
|
962 |
+
public static function get_google_fonts() {
|
963 |
+
$google_fonts = array('ABeeZee' => 'ABeeZee', 'Abel' => 'Abel', 'Abril Fatface' => 'Abril Fatface', 'Aclonica' => 'Aclonica', 'Acme' => 'Acme', 'Actor' => 'Actor', 'Adamina' => 'Adamina', 'Advent Pro' => 'Advent Pro', 'Aguafina Script' => 'Aguafina Script', 'Akronim' => 'Akronim', 'Aladin' => 'Aladin', 'Aldrich' => 'Aldrich', 'Alef' => 'Alef', 'Alegreya' => 'Alegreya', 'Alegreya SC' => 'Alegreya SC', 'Alegreya Sans' => 'Alegreya Sans', 'Alex Brush' => 'Alex Brush', 'Alfa Slab One' => 'Alfa Slab One', 'Alice' => 'Alice', 'Alike' => 'Alike', 'Alike Angular' => 'Alike Angular', 'Allan' => 'Allan', 'Allerta' => 'Allerta', 'Allerta Stencil' => 'Allerta Stencil', 'Allura' => 'Allura', 'Almendra' => 'Almendra', 'Almendra display' => 'Almendra Display', 'Almendra sc' => 'Almendra SC', 'Amarante' => 'Amarante', 'Amaranth' => 'Amaranth', 'Amatic sc' => 'Amatic SC', 'Amethysta' => 'Amethysta', 'Amiri' => 'Amiri', 'Amita' => 'Amita', 'Anaheim' => 'Anaheim', 'Andada' => 'Andada', 'Andika' => 'Andika', 'Angkor' => 'Angkor', 'Annie Use Your Telescope' => 'Annie Use Your Telescope', 'Anonymous Pro' => 'Anonymous Pro', 'Antic' => 'Antic', 'Antic Didone' => 'Antic Didone', 'Antic Slab' => 'Antic Slab', 'Anton' => 'Anton', 'Arapey' => 'Arapey', 'Arbutus' => 'Arbutus', 'Arbutus slab' => 'Arbutus Slab', 'Architects daughter' => 'Architects Daughter', 'Archivo black' => 'Archivo Black', 'Archivo narrow' => 'Archivo Narrow', 'Arimo' => 'Arimo', 'Arizonia' => 'Arizonia', 'Armata' => 'Armata', 'Artifika' => 'Artifika', 'Arvo' => 'Arvo', 'Arya' => 'Arya', 'Asap' => 'Asap', 'Asar' => 'Asar', 'Asset' => 'Asset', 'Astloch' => 'Astloch', 'Asul' => 'Asul', 'Atomic age' => 'Atomic Age', 'Aubrey' => 'Aubrey', 'Audiowide' => 'Audiowide', 'Autour one' => 'Autour One', 'Average' => 'Average', 'Average Sans' => 'Average Sans', 'Averia Gruesa Libre' => 'Averia Gruesa Libre', 'Averia Libre' => 'Averia Libre', 'Averia Sans Libre' => 'Averia Sans Libre', 'Averia Serif Libre' => 'Averia Serif Libre', 'Bad Script' => 'Bad Script', 'Balthazar' => 'Balthazar', 'Bangers' => 'Bangers', 'Basic' => 'Basic', 'Battambang' => 'Battambang', 'Baumans' => 'Baumans', 'Bayon' => 'Bayon', 'Belgrano' => 'Belgrano', 'BenchNine' => 'BenchNine', 'Bentham' => 'Bentham', 'Berkshire Swash' => 'Berkshire Swash', 'Bevan' => 'Bevan', 'Bigelow Rules' => 'Bigelow Rules', 'Bigshot One' => 'Bigshot One', 'Bilbo' => 'Bilbo', 'Bilbo Swash Caps' => 'Bilbo Swash Caps', 'Biryani' => 'Biryani', 'Bitter' => 'Bitter', 'Black Ops One' => 'Black Ops One', 'Bokor' => 'Bokor', 'Bonbon' => 'Bonbon', 'Boogaloo' => 'Boogaloo', 'Bowlby One' => 'Bowlby One', 'bowlby One SC' => 'Bowlby One SC', 'Brawler' => 'Brawler', 'Bree Serif' => 'Bree Serif', 'Bubblegum Sans' => 'Bubblegum Sans', 'Bubbler One' => 'Bubbler One', 'Buda' => 'Buda', 'Buda Light 300' => 'Buda Light 300', 'Buenard' => 'Buenard', 'Butcherman' => 'Butcherman', 'Butterfly Kids' => 'Butterfly Kids', 'Cabin' => 'Cabin', 'Cabin Condensed' => 'Cabin Condensed', 'Cabin Sketch' => 'Cabin Sketch', 'Caesar Dressing' => 'Caesar Dressing', 'Cagliostro' => 'Cagliostro', 'Calligraffitti' => 'Calligraffitti', 'Cambay' => 'Cambay', 'Cambo' => 'Cambo', 'Candal' => 'Candal', 'Cantarell' => 'Cantarell', 'Cantata One' => 'Cantata One', 'Cantora One' => 'Cantora One', 'Capriola' => 'Capriola', 'Cardo' => 'Cardo', 'Carme' => 'Carme', 'Carrois Gothic' => 'Carrois Gothic', 'Carrois Gothic SC' => 'Carrois Gothic SC', 'Carter One' => 'Carter One', 'Caudex' => 'Caudex', 'Caveat Brush' => 'Caveat Brush', 'Cedarville cursive' => 'Cedarville Cursive', 'Ceviche One' => 'Ceviche One', 'Changa One' => 'Changa One', 'Chango' => 'Chango', 'Chau philomene One' => 'Chau Philomene One', 'Chela One' => 'Chela One', 'Chelsea Market' => 'Chelsea Market', 'Chenla' => 'Chenla', 'Cherry Cream Soda' => 'Cherry Cream Soda', 'Chewy' => 'Chewy', 'Chicle' => 'Chicle', 'Chivo' => 'Chivo', 'Chonburi' => 'Chonburi', 'Cinzel' => 'Cinzel', 'Cinzel Decorative' => 'Cinzel Decorative', 'Clicker Script' => 'Clicker Script', 'Coda' => 'Coda', 'Coda Caption' => 'Coda Caption', 'Codystar' => 'Codyst
|
964 |
+
ar', 'Combo' => 'Combo', 'Comfortaa' => 'Comfortaa', 'Coming soon' => 'Coming Soon', 'Concert One' => 'Concert One', 'Condiment' => 'Condiment', 'Content' => 'Content', 'Contrail One' => 'Contrail One', 'Convergence' => 'Convergence', 'Cookie' => 'Cookie', 'Copse' => 'Copse', 'Corben' => 'Corben', 'Courgette' => 'Courgette', 'Cousine' => 'Cousine', 'Coustard' => 'Coustard', 'Covered By Your Grace' => 'Covered By Your Grace', 'Crafty Girls' => 'Crafty Girls', 'Creepster' => 'Creepster', 'Crete Round' => 'Crete Round', 'Crimson Text' => 'Crimson Text', 'Croissant One' => 'Croissant One', 'Crushed' => 'Crushed', 'Cuprum' => 'Cuprum', 'Cutive' => 'Cutive', 'Cutive Mono' => 'Cutive Mono', 'Damion' => 'Damion', 'Dancing Script' => 'Dancing Script', 'Dangrek' => 'Dangrek', 'Dawning of a New Day' => 'Dawning of a New Day', 'Days One' => 'Days One', 'Dekko' => 'Dekko', 'Delius' => 'Delius', 'Delius Swash Caps' => 'Delius Swash Caps', 'Delius Unicase' => 'Delius Unicase', 'Della Respira' => 'Della Respira', 'Denk One' => 'Denk One', 'Devonshire' => 'Devonshire', 'Dhurjati' => 'Dhurjati', 'Didact Gothic' => 'Didact Gothic', 'Diplomata' => 'Diplomata', 'Diplomata SC' => 'Diplomata SC', 'Domine' => 'Domine', 'Donegal One' => 'Donegal One', 'Doppio One' => 'Doppio One', 'Dorsa' => 'Dorsa', 'Dosis' => 'Dosis', 'Dr Sugiyama' => 'Dr Sugiyama', 'Droid Sans' => 'Droid Sans', 'Droid Sans Mono' => 'Droid Sans Mono', 'Droid Serif' => 'Droid Serif', 'Duru Sans' => 'Duru Sans', 'Dynalight' => 'Dynalight', 'Eb Garamond' => 'EB Garamond', 'Eagle Lake' => 'Eagle Lake', 'Eater' => 'Eater', 'Economica' => 'Economica', 'Eczar' => 'Eczar', 'Ek Mukta' => 'Ek Mukta', 'Electrolize' => 'Electrolize', 'Elsie' => 'Elsie', 'Elsie Swash Caps' => 'Elsie Swash Caps', 'Emblema One' => 'Emblema One', 'Emilys Candy' => 'Emilys Candy', 'Engagement' => 'Engagement', 'Englebert' => 'Englebert', 'Enriqueta' => 'Enriqueta', 'Erica One' => 'Erica One', 'Esteban' => 'Esteban', 'Euphoria Script' => 'Euphoria Script', 'Ewert' => 'Ewert', 'Exo' => 'Exo', 'Exo 2' => 'Exo 2', 'Expletus Sans' => 'Expletus Sans', 'Fanwood Text' => 'Fanwood Text', 'Fascinate' => 'Fascinate', 'Fascinate Inline' => 'Fascinate Inline', 'Faster One' => 'Faster One', 'Fasthand' => 'Fasthand', 'Fauna One' => 'Fauna One', 'Federant' => 'Federant', 'Federo' => 'Federo', 'Felipa' => 'Felipa', 'Fenix' => 'Fenix', 'Finger Paint' => 'Finger Paint', 'Fira Mono' => 'Fira Mono', 'Fjalla One' => 'Fjalla One', 'Fjord One' => 'Fjord One', 'Flamenco' => 'Flamenco', 'Flavors' => 'Flavors', 'Fondamento' => 'Fondamento', 'Fontdiner swanky' => 'Fontdiner Swanky', 'Forum' => 'Forum', 'Francois One' => 'Francois One', 'Freckle Face' => 'Freckle Face', 'Fredericka the Great' => 'Fredericka the Great', 'Fredoka One' => 'Fredoka One', 'Freehand' => 'Freehand', 'Fresca' => 'Fresca', 'Frijole' => 'Frijole', 'Fruktur' => 'Fruktur', 'Fugaz One' => 'Fugaz One', 'GFS Didot' => 'GFS Didot', 'GFS Neohellenic' => 'GFS Neohellenic', 'Gabriela' => 'Gabriela', 'Gafata' => 'Gafata', 'Galdeano' => 'Galdeano', 'Galindo' => 'Galindo', 'Gentium Basic' => 'Gentium Basic', 'Gentium Book Basic' => 'Gentium Book Basic', 'Geo' => 'Geo', 'Geostar' => 'Geostar', 'Geostar Fill' => 'Geostar Fill', 'Germania One' => 'Germania One', 'Gidugu' => 'Gidugu', 'Gilda Display' => 'Gilda Display', 'Give You Glory' => 'Give You Glory', 'Glass Antiqua' => 'Glass Antiqua', 'Glegoo' => 'Glegoo', 'Gloria Hallelujah' => 'Gloria Hallelujah', 'Goblin One' => 'Goblin One', 'Gochi Hand' => 'Gochi Hand', 'Gorditas' => 'Gorditas', 'Goudy Bookletter 1911' => 'Goudy Bookletter 1911', 'Graduate' => 'Graduate', 'Grand Hotel' => 'Grand Hotel', 'Gravitas One' => 'Gravitas One', 'Great Vibes' => 'Great Vibes', 'Griffy' => 'Griffy', 'Gruppo' => 'Gruppo', 'Gudea' => 'Gudea', 'Gurajada' => 'Gurajada', 'Habibi' => 'Habibi', 'Halant' => 'Halant', 'Hammersmith One' => 'Hammersmith One', 'Hanalei' => 'Hanalei', 'Hanalei Fill' => 'Hanalei Fill', 'Handlee' => 'Handlee', 'Hanuman' => 'Hanuman', 'Happy Monkey' => 'Happy Monkey', 'Headland One' => 'Headland One', 'Henny Penny' => 'Henny P
|
965 |
+
|
966 |
+
enny', 'Herr Von Muellerhoff' => 'Herr Von Muellerhoff', 'Hind' => 'Hind', 'Holtwood One SC' => 'Holtwood One SC', 'Homemade Apple' => 'Homemade Apple', 'Homenaje' => 'Homenaje', 'IM Fell DW Pica' => 'IM Fell DW Pica', 'IM Fell DW Pica SC' => 'IM Fell DW Pica SC', 'IM Fell Double Pica' => 'IM Fell Double Pica', 'IM Fell Double Pica SC' => 'IM Fell Double Pica SC', 'IM Fell English' => 'IM Fell English', 'IM Fell English SC' => 'IM Fell English SC', 'IM Fell French Canon' => 'IM Fell French Canon', 'IM Fell French Canon SC' => 'IM Fell French Canon SC', 'IM Fell Great Primer' => 'IM Fell Great Primer', 'IM Fell Great Primer SC' => 'IM Fell Great Primer SC', 'Iceberg' => 'Iceberg', 'Iceland' => 'Iceland', 'Imprima' => 'Imprima', 'Inconsolata' => 'Inconsolata', 'Inder' => 'Inder', 'Indie Flower' => 'Indie Flower', 'Inika' => 'Inika', 'Inknut Antiqua' => 'Inknut Antiqua', 'Irish Grover' => 'Irish Grover', 'Istok Web' => 'Istok Web', 'Italiana' => 'Italiana', 'Italianno' => 'Italianno', 'Itim' => 'Itim', 'Jacques Francois' => 'Jacques Francois', 'Jacques Francois Shadow' => 'Jacques Francois Shadow', 'Jaldi' => 'Jaldi', 'Jim Nightshade' => 'Jim Nightshade', 'Jockey One' => 'Jockey One', 'Jolly Lodger' => 'Jolly Lodger', 'Josefin Sans' => 'Josefin Sans', 'Josefin Slab' => 'Josefin Slab', 'Joti One' => 'Joti One', 'Judson' => 'Judson', 'Julee' => 'Julee', 'Julius Sans One' => 'Julius Sans One', 'Junge' => 'Junge', 'Jura' => 'Jura', 'Just Another Hand' => 'Just Another Hand', 'Just Me Again Down Here' => 'Just Me Again Down Here', 'Kadwa' => 'Kadwa', 'Kameron' => 'Kameron', 'Kanit' => 'Kanit', 'Karla' => 'Karla', 'Kaushan Script' => 'Kaushan Script', 'Kavoon' => 'Kavoon', 'Keania One' => 'Keania One', 'kelly Slab' => 'Kelly Slab', 'Kenia' => 'Kenia', 'Khand' => 'Khand', 'Khmer' => 'Khmer', 'Khula' => 'Khula', 'Kite One' => 'Kite One', 'Knewave' => 'Knewave', 'Kotta One' => 'Kotta One', 'Koulen' => 'Koulen', 'Kranky' => 'Kranky', 'Kreon' => 'Kreon', 'Kristi' => 'Kristi', 'Krona One' => 'Krona One', 'Kurale' => 'Kurale', 'La Belle Aurore' => 'La Belle Aurore', 'Laila' => 'Laila', 'Lakki Reddy' => 'Lakki Reddy', 'Lancelot' => 'Lancelot', 'Lateef' => 'Lateef', 'Lato' => 'Lato', 'League Script' => 'League Script', 'Leckerli One' => 'Leckerli One', 'Ledger' => 'Ledger', 'Lekton' => 'Lekton', 'Lemon' => 'Lemon', 'Libre Baskerville' => 'Libre Baskerville', 'Life Savers' => 'Life Savers', 'Lilita One' => 'Lilita One', 'Lily Script One' => 'Lily Script One', 'Limelight' => 'Limelight', 'Linden Hill' => 'Linden Hill', 'Lobster' => 'Lobster', 'Lobster Two' => 'Lobster Two', 'Londrina Outline' => 'Londrina Outline', 'Londrina Shadow' => 'Londrina Shadow', 'Londrina Sketch' => 'Londrina Sketch', 'Londrina Solid' => 'Londrina Solid', 'Lora' => 'Lora', 'Love Ya Like A Sister' => 'Love Ya Like A Sister', 'Loved by the King' => 'Loved by the King', 'Lovers Quarrel' => 'Lovers Quarrel', 'Luckiest Guy' => 'Luckiest Guy', 'Lusitana' => 'Lusitana', 'Lustria' => 'Lustria', 'Macondo' => 'Macondo', 'Macondo Swash Caps' => 'Macondo Swash Caps', 'Magra' => 'Magra', 'Maiden Orange' => 'Maiden Orange', 'Mako' => 'Mako', 'Mandali' => 'Mandali', 'Marcellus' => 'Marcellus', 'Marcellus SC' => 'Marcellus SC', 'Marck Script' => 'Marck Script', 'Margarine' => 'Margarine', 'Marko One' => 'Marko One', 'Marmelad' => 'Marmelad', 'Martel' => 'Martel', 'Martel Sans' => 'Martel Sans', 'Marvel' => 'Marvel', 'Mate' => 'Mate', 'Mate SC' => 'Mate SC', 'Maven Pro' => 'Maven Pro', 'McLaren' => 'McLaren', 'Meddon' => 'Meddon', 'MedievalSharp' => 'MedievalSharp', 'Medula One' => 'Medula One', 'Megrim' => 'Megrim', 'Meie Script' => 'Meie Script', 'Merienda' => 'Merienda', 'Merienda One' => 'Merienda One', 'Merriweather' => 'Merriweather', 'Merriweather Sans' => 'Merriweather Sans', 'Metal' => 'Metal', 'Metal mania' => 'Metal Mania', 'Metamorphous' => 'Metamorphous', 'Metrophobic' => 'Metrophobic', 'Michroma' => 'Michroma', 'Milonga' => 'Milonga', 'Miltonian' => 'Miltonian', 'Miltonian Tattoo' => 'Miltonian Tattoo', 'Miniver' =>
|
967 |
+
'Miniver', 'Miss Fajardose' => 'Miss Fajardose', 'Modak' => 'Modak', 'Modern Antiqua' => 'Modern Antiqua', 'Molengo' => 'Molengo', 'Molle' => 'Molle:400i', 'Monda' => 'Monda', 'Monofett' => 'Monofett', 'Monoton' => 'Monoton', 'Monsieur La Doulaise' => 'Monsieur La Doulaise', 'Montaga' => 'Montaga', 'Montez' => 'Montez', 'Montserrat' => 'Montserrat', 'Montserrat Alternates' => 'Montserrat Alternates', 'Montserrat Subrayada' => 'Montserrat Subrayada', 'Moul' => 'Moul', 'Moulpali' => 'Moulpali', 'Mountains of Christmas' => 'Mountains of Christmas', 'Mouse Memoirs' => 'Mouse Memoirs', 'Mr Bedfort' => 'Mr Bedfort', 'Mr Dafoe' => 'Mr Dafoe', 'Mr De Haviland' => 'Mr De Haviland', 'Mrs Saint Delafield' => 'Mrs Saint Delafield', 'Mrs Sheppards' => 'Mrs Sheppards', 'Muli' => 'Muli', 'Mystery Quest' => 'Mystery Quest', 'NTR' => 'NTR', 'Neucha' => 'Neucha', 'Neuton' => 'Neuton', 'New Rocker' => 'New Rocker', 'News Cycle' => 'News Cycle', 'Niconne' => 'Niconne', 'Nixie One' => 'Nixie One', 'Nobile' => 'Nobile', 'Nokora' => 'Nokora', 'Norican' => 'Norican', 'Nosifer' => 'Nosifer', 'Nothing You Could Do' => 'Nothing You Could Do', 'Noticia Text' => 'Noticia Text', 'Noto Sans' => 'Noto Sans', 'Noto Serif' => 'Noto Serif', 'Nova Cut' => 'Nova Cut', 'Nova Flat' => 'Nova Flat', 'Nova Mono' => 'Nova Mono', 'Nova Oval' => 'Nova Oval', 'Nova Round' => 'Nova Round', 'Nova Script' => 'Nova Script', 'Nova Slim' => 'Nova Slim', 'Nova Square' => 'Nova Square', 'Numans' => 'Numans', 'Nunito' => 'Nunito', 'Odor Mean Chey' => 'Odor Mean Chey', 'Offside' => 'Offside', 'Old standard tt' => 'Old Standard TT', 'Oldenburg' => 'Oldenburg', 'Oleo Script' => 'Oleo Script', 'Oleo Script Swash Caps' => 'Oleo Script Swash Caps', 'Open Sans' => 'Open Sans', 'Open Sans Condensed' => 'Open Sans Condensed:300', 'Oranienbaum' => 'Oranienbaum', 'Orbitron' => 'Orbitron', 'Oregano' => 'Oregano', 'Orienta' => 'Orienta', 'Original Surfer' => 'Original Surfer', 'Oswald' => 'Oswald', 'Over the Rainbow' => 'Over the Rainbow', 'Overlock' => 'Overlock', 'Overlock SC' => 'Overlock SC', 'Ovo' => 'Ovo', 'Oxygen' => 'Oxygen', 'Oxygen Mono' => 'Oxygen Mono', 'PT Mono' => 'PT Mono', 'PT Sans' => 'PT Sans', 'PT Sans Caption' => 'PT Sans Caption', 'PT Sans Narrow' => 'PT Sans Narrow', 'PT Serif' => 'PT Serif', 'PT Serif Caption' => 'PT Serif Caption', 'Pacifico' => 'Pacifico', 'Palanquin' => 'Palanquin', 'Palanquin Dark' => 'Palanquin Dark', 'Paprika' => 'Paprika', 'Parisienne' => 'Parisienne', 'Passero One' => 'Passero One', 'Passion One' => 'Passion One', 'Pathway Gothic One' => 'Pathway Gothic One', 'Patrick Hand' => 'Patrick Hand', 'Patrick Hand SC' => 'Patrick Hand SC', 'Patua One' => 'Patua One', 'Paytone One' => 'Paytone One', 'Peddana' => 'Peddana', 'Peralta' => 'Peralta', 'Permanent Marker' => 'Permanent Marker', 'Petit Formal Script' => 'Petit Formal Script', 'Petrona' => 'Petrona', 'Philosopher' => 'Philosopher', 'Piedra' => 'Piedra', 'Pinyon Script' => 'Pinyon Script', 'Pirata One' => 'Pirata One', 'Plaster' => 'Plaster', 'Play' => 'Play', 'Playball' => 'Playball', 'Playfair Display' => 'Playfair Display', 'Playfair Display SC' => 'Playfair Display SC', 'Podkova' => 'Podkova', 'Poiret One' => 'Poiret One', 'Poller One' => 'Poller One', 'Poly' => 'Poly', 'Pompiere' => 'Pompiere', 'Pontano Sans' => 'Pontano Sans', 'Poppins' => 'Poppins', 'Port Lligat Sans' => 'Port Lligat Sans', 'Port Lligat Slab' => 'Port Lligat Slab', 'Pragati Narrow' => 'Pragati Narrow', 'Prata' => 'Prata', 'Preahvihear' => 'Preahvihear', 'Press start 2P' => 'Press Start 2P', 'Princess Sofia' => 'Princess Sofia', 'Prociono' => 'Prociono', 'Prosto One' => 'Prosto One', 'Puritan' => 'Puritan', 'Purple Purse' => 'Purple Purse', 'Quando' => 'Quando', 'Quantico' => 'Quantico', 'Quattrocento' => 'Quattrocento', 'Quattrocento Sans' => 'Quattrocento Sans', 'Questrial' => 'Questrial', 'Quicksand' => 'Quicksand', 'Quintessential' => 'Quintessential', 'Qwigley' => 'Qwigley', 'Racing sans One' => 'Racing Sans One', 'Radley' => 'Radley', 'Rajdhani' => 'Rajdhani', 'Raleway' => 'Raleway', 'Ral
|
968 |
+
eway Dots' => 'Raleway Dots', 'Ramabhadra' => 'Ramabhadra', 'Ramaraja' => 'Ramaraja', 'Rambla' => 'Rambla', 'Rammetto One' => 'Rammetto One', 'Ranchers' => 'Ranchers', 'Rancho' => 'Rancho', 'Ranga' => 'Ranga', 'Rationale' => 'Rationale', 'Ravi Prakash' => 'Ravi Prakash', 'Redressed' => 'Redressed', 'Reenie Beanie' => 'Reenie Beanie', 'Revalia' => 'Revalia', 'Rhodium Libre' => 'Rhodium Libre', 'Ribeye' => 'Ribeye', 'Ribeye Marrow' => 'Ribeye Marrow', 'Righteous' => 'Righteous', 'Risque' => 'Risque', 'Roboto' => 'Roboto', 'Roboto Condensed' => 'Roboto Condensed', 'Roboto Mono' => 'Roboto Mono', 'Roboto Slab' => 'Roboto Slab', 'Rochester' => 'Rochester', 'Rock Salt' => 'Rock Salt', 'Rokkitt' => 'Rokkitt', 'Romanesco' => 'Romanesco', 'Ropa Sans' => 'Ropa Sans', 'Rosario' => 'Rosario', 'Rosarivo' => 'Rosarivo', 'Rouge Script' => 'Rouge Script', 'Rozha One' => 'Rozha One', 'Rubik' => 'Rubik', 'Rubik Mono One' => 'Rubik Mono One', 'Rubik One' => 'Rubik One', 'Ruda' => 'Ruda', 'Rufina' => 'Rufina', 'Ruge Boogie' => 'Ruge Boogie', 'Ruluko' => 'Ruluko', 'Rum Raisin' => 'Rum Raisin', 'Ruslan Display' => 'Ruslan Display', 'Russo One' => 'Russo One', 'Ruthie' => 'Ruthie', 'Rye' => 'Rye', 'Sacramento' => 'Sacramento', 'Sahitya' => 'Sahitya', 'Sail' => 'Sail', 'Salsa' => 'Salsa', 'Sanchez' => 'Sanchez', 'Sancreek' => 'Sancreek', 'Sansita One' => 'Sansita One', 'Sarina' => 'Sarina', 'Sarpanch' => 'Sarpanch', 'Satisfy' => 'Satisfy', 'Scada' => 'Scada', 'Schoolbell' => 'Schoolbell', 'Seaweed Script' => 'Seaweed Script', 'Sevillana' => 'Sevillana', 'Seymour One' => 'Seymour One', 'Shadows Into Light' => 'Shadows Into Light', 'Shadows Into Light Two' => 'Shadows Into Light Two', 'Shanti' => 'Shanti', 'Share' => 'Share', 'Share Tech' => 'Share Tech', 'Share Tech Mono' => 'Share Tech Mono', 'Shojumaru' => 'Shojumaru', 'Short Stack' => 'Short Stack', 'Siemreap' => 'Siemreap', 'Sigmar One' => 'Sigmar One', 'Signika' => 'Signika', 'Signika Negative' => 'Signika Negative', 'Simonetta' => 'Simonetta', 'Sintony' => 'Sintony', 'Sirin Stencil' => 'Sirin Stencil', 'Six Caps' => 'Six Caps', 'Skranji' => 'Skranji', 'Slabo 13px' => 'Slabo 13px', 'Slackey' => 'Slackey', 'Smokum' => 'Smokum', 'Smythe' => 'Smythe', 'Sniglet' => 'Sniglet', 'Snippet' => 'Snippet', 'Snowburst One' => 'Snowburst One', 'Sofadi One' => 'Sofadi One', 'Sofia' => 'Sofia', 'Sonsie One' => 'Sonsie One', 'Sorts Mill Goudy' => 'Sorts Mill Goudy', 'Source Code Pro' => 'Source Code Pro', 'Source Sans Pro' => 'Source Sans Pro', 'Source Serif Pro' => 'Source Serif Pro', 'Special Elite' => 'Special Elite', 'Spicy Rice' => 'Spicy Rice', 'Spinnaker' => 'Spinnaker', 'Spirax' => 'Spirax', 'Squada One' => 'Squada One', 'Sree Krushnadevaraya' => 'Sree Krushnadevaraya', 'Stalemate' => 'Stalemate', 'Stalinist One' => 'Stalinist One', 'Stardos Stencil' => 'Stardos Stencil', 'Stint Ultra Condensed' => 'Stint Ultra Condensed', 'Stint Ultra Expanded' => 'Stint Ultra Expanded', 'Stoke' => 'Stoke', 'Strait' => 'Strait', 'Sue Ellen Francisco' => 'Sue Ellen Francisco', 'Sumana' => 'Sumana', 'Sunshiney' => 'Sunshiney', 'Supermercado One' => 'Supermercado One', 'Sura' => 'Sura', 'Suranna' => 'Suranna', 'Suravaram' => 'Suravaram', 'Suwannaphum' => 'Suwannaphum', 'Swanky and Moo Moo' => 'Swanky and Moo Moo', 'Syncopate' => 'Syncopate', 'Tangerine' => 'Tangerine', 'Taprom' => 'Taprom', 'Tauri' => 'Tauri', 'Teko' => 'Teko', 'Telex' => 'Telex', 'Tenali Ramakrishna' => 'Tenali Ramakrishna', 'Tenor Sans' => 'Tenor Sans', 'Text Me One' => 'Text Me One', 'The Girl Next Door' => 'The Girl Next Door', 'Tienne' => 'Tienne', 'Tillana' => 'Tillana', 'Timmana' => 'Timmana', 'Tinos' => 'Tinos', 'Titan One' => 'Titan One', 'Titillium Web' => 'Titillium Web', 'Trade Winds' => 'Trade Winds', 'Trocchi' => 'Trocchi', 'Trochut' => 'Trochut', 'Trykker' => 'Trykker', 'Tulpen One' => 'Tulpen One', 'Ubuntu' => 'Ubuntu', 'Ubuntu Condensed' => 'Ubuntu Condensed', 'Ubuntu Mono' => 'Ubuntu Mono', 'Ultra' => 'Ultra', 'Uncial Antiqua' => 'Uncial Antiqua', 'Underdog' => 'Underdog', 'Unica One' => 'Unica One', 'UnifrakturCook' => 'UnifrakturC
|
969 |
+
|
970 |
+
ook:700', 'UnifrakturMaguntia' => 'UnifrakturMaguntia', 'Unkempt' => 'Unkempt', 'Unlock' => 'Unlock', 'Unna' => 'Unna', 'VT323' => 'VT323', 'Vampiro One' => 'Vampiro One', 'Varela' => 'Varela', 'Varela Round' => 'Varela Round', 'Vast Shadow' => 'Vast Shadow', 'Vibur' => 'Vibur', 'Vidaloka' => 'Vidaloka', 'Viga' => 'Viga', 'Voces' => 'Voces', 'Volkhov' => 'Volkhov', 'Vollkorn' => 'Vollkorn', 'Voltaire' => 'Voltaire', 'Waiting for the sunrise' => 'Waiting for the Sunrise', 'Wallpoet' => 'Wallpoet', 'Walter Turncoat' => 'Walter Turncoat', 'Warnes' => 'Warnes', 'Wellfleet' => 'Wellfleet', 'Wendy One' => 'Wendy One', 'Wire One' => 'Wire One', 'Work Sans' => 'Work Sans', 'Yanone Kaffeesatz' => 'Yanone Kaffeesatz', 'Yantramanav' => 'Yantramanav', 'Yellowtail' => 'Yellowtail', 'Yeseva One' => 'Yeseva One', 'Yesteryear' => 'Yesteryear', 'Zeyada' => 'Zeyada');
|
971 |
+
return $google_fonts;
|
972 |
+
}
|
973 |
+
|
974 |
public static function get_theme_row_data($id) {
|
975 |
global $wpdb;
|
976 |
if ($id) {
|
977 |
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
|
978 |
}
|
979 |
+
else {
|
980 |
$row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme=1');
|
981 |
}
|
982 |
if (isset($row->options)) {
|
1046 |
$bwg_post_id->post_content = $shortecode_string;
|
1047 |
wp_update_post($bwg_post_id);
|
1048 |
}
|
1049 |
+
$bwg_post_id = get_page_by_title($title, OBJECT, $post_type);
|
1050 |
return get_permalink($bwg_post_id->ID);
|
1051 |
}
|
1052 |
|
frontend/views/BWGViewAlbum_compact_preview.php
CHANGED
@@ -240,7 +240,7 @@ class BWGViewAlbum_compact_preview {
|
|
240 |
$params_array['watermark_position'] = $params['watermark_position'];
|
241 |
}
|
242 |
if ($params['watermark_type'] == 'text') {
|
243 |
-
$params_array['watermark_text'] = $params['watermark_text'];
|
244 |
$params_array['watermark_font_size'] = $params['watermark_font_size'];
|
245 |
$params_array['watermark_font'] = $params['watermark_font'];
|
246 |
$params_array['watermark_color'] = $params['watermark_color'];
|
240 |
$params_array['watermark_position'] = $params['watermark_position'];
|
241 |
}
|
242 |
if ($params['watermark_type'] == 'text') {
|
243 |
+
$params_array['watermark_text'] = urlencode($params['watermark_text']);
|
244 |
$params_array['watermark_font_size'] = $params['watermark_font_size'];
|
245 |
$params_array['watermark_font'] = $params['watermark_font'];
|
246 |
$params_array['watermark_color'] = $params['watermark_color'];
|
frontend/views/BWGViewAlbum_extended_preview.php
CHANGED
@@ -183,7 +183,7 @@ class BWGViewAlbum_extended_preview {
|
|
183 |
$params_array['watermark_position'] = $params['watermark_position'];
|
184 |
}
|
185 |
if ($params['watermark_type'] == 'text') {
|
186 |
-
$params_array['watermark_text'] = $params['watermark_text'];
|
187 |
$params_array['watermark_font_size'] = $params['watermark_font_size'];
|
188 |
$params_array['watermark_font'] = $params['watermark_font'];
|
189 |
$params_array['watermark_color'] = $params['watermark_color'];
|
183 |
$params_array['watermark_position'] = $params['watermark_position'];
|
184 |
}
|
185 |
if ($params['watermark_type'] == 'text') {
|
186 |
+
$params_array['watermark_text'] = urlencode($params['watermark_text']);
|
187 |
$params_array['watermark_font_size'] = $params['watermark_font_size'];
|
188 |
$params_array['watermark_font'] = $params['watermark_font'];
|
189 |
$params_array['watermark_color'] = $params['watermark_color'];
|
frontend/views/BWGViewGalleryBox.php
CHANGED
@@ -1637,11 +1637,15 @@ class BWGViewGalleryBox {
|
|
1637 |
jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
|
1638 |
}
|
1639 |
}
|
1640 |
-
if (
|
1641 |
-
jQuery(".bwg_toggle_container
|
|
|
|
|
1642 |
}
|
1643 |
-
if (
|
1644 |
-
jQuery(".bwg_toggle_container
|
|
|
|
|
1645 |
}
|
1646 |
}
|
1647 |
jQuery(window).resize(function() {
|
1637 |
jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
|
1638 |
}
|
1639 |
}
|
1640 |
+
if ("<?php echo $theme_row->lightbox_ctrl_btn_pos ;?>" == 'bottom') {
|
1641 |
+
if (jQuery(".bwg_toggle_container i").hasClass('fa-angle-down')) {
|
1642 |
+
jQuery(".bwg_toggle_container").css("bottom", jQuery(".bwg_ctrl_btn_container").height() + "px");
|
1643 |
+
}
|
1644 |
}
|
1645 |
+
if ("<?php echo $theme_row->lightbox_ctrl_btn_pos ;?>" == 'top') {
|
1646 |
+
if (jQuery(".bwg_toggle_container i").hasClass('fa-angle-up')) {
|
1647 |
+
jQuery(".bwg_toggle_container").css("top", jQuery(".bwg_ctrl_btn_container").height() + "px");
|
1648 |
+
}
|
1649 |
}
|
1650 |
}
|
1651 |
jQuery(window).resize(function() {
|
frontend/views/BWGViewImage_browser.php
CHANGED
@@ -136,7 +136,7 @@ class BWGViewImage_browser {
|
|
136 |
if ($params['watermark_type'] == 'text') {
|
137 |
$show_watermark = TRUE;
|
138 |
$watermark_text_image = TRUE;
|
139 |
-
$params_array['watermark_text'] = $params['watermark_text'];
|
140 |
$params_array['watermark_font_size'] = $params['watermark_font_size'];
|
141 |
$params_array['watermark_font'] = $params['watermark_font'];
|
142 |
$params_array['watermark_color'] = $params['watermark_color'];
|
@@ -343,7 +343,7 @@ class BWGViewImage_browser {
|
|
343 |
width: 100%;
|
344 |
text-align: left;
|
345 |
font-size: <?php echo $theme_row->image_browser_img_font_size; ?>px;
|
346 |
-
font-family: <?php echo
|
347 |
padding: <?php echo $theme_row->image_browser_image_description_padding; ?>;
|
348 |
word-break: break-word;
|
349 |
border-style: <?php echo $theme_row->image_browser_image_description_border_style; ?>;
|
136 |
if ($params['watermark_type'] == 'text') {
|
137 |
$show_watermark = TRUE;
|
138 |
$watermark_text_image = TRUE;
|
139 |
+
$params_array['watermark_text'] = urlencode($params['watermark_text']);
|
140 |
$params_array['watermark_font_size'] = $params['watermark_font_size'];
|
141 |
$params_array['watermark_font'] = $params['watermark_font'];
|
142 |
$params_array['watermark_color'] = $params['watermark_color'];
|
343 |
width: 100%;
|
344 |
text-align: left;
|
345 |
font-size: <?php echo $theme_row->image_browser_img_font_size; ?>px;
|
346 |
+
font-family: <?php echo$theme_row->image_browser_img_font_family; ?>;
|
347 |
padding: <?php echo $theme_row->image_browser_image_description_padding; ?>;
|
348 |
word-break: break-word;
|
349 |
border-style: <?php echo $theme_row->image_browser_image_description_border_style; ?>;
|
frontend/views/BWGViewThumbnails.php
CHANGED
@@ -308,7 +308,7 @@ class BWGViewThumbnails {
|
|
308 |
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a {
|
309 |
cursor: pointer;
|
310 |
font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
|
311 |
-
font-family: <?php echo $theme_row->page_nav_font_style; ?>;
|
312 |
font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
|
313 |
color: #<?php echo $theme_row->page_nav_font_color; ?>;
|
314 |
text-decoration: none;
|
@@ -329,7 +329,7 @@ class BWGViewThumbnails {
|
|
329 |
color: #<?php echo $theme_row->album_compact_back_font_color; ?> !important;
|
330 |
cursor: pointer;
|
331 |
display: block;
|
332 |
-
font-family: <?php echo $theme_row->album_compact_back_font_style; ?>;
|
333 |
font-size: <?php echo $theme_row->album_compact_back_font_size; ?>px;
|
334 |
font-weight: <?php echo $theme_row->album_compact_back_font_weight; ?>;
|
335 |
text-decoration: none;
|
@@ -534,7 +534,7 @@ class BWGViewThumbnails {
|
|
534 |
$params_array['watermark_position'] = $params['watermark_position'];
|
535 |
}
|
536 |
if ($params['watermark_type'] == 'text') {
|
537 |
-
$params_array['watermark_text'] = $params['watermark_text'];
|
538 |
$params_array['watermark_font_size'] = $params['watermark_font_size'];
|
539 |
$params_array['watermark_font'] = $params['watermark_font'];
|
540 |
$params_array['watermark_color'] = $params['watermark_color'];
|
308 |
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a {
|
309 |
cursor: pointer;
|
310 |
font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
|
311 |
+
font-family: <?php echo str_replace('+', ' ', $theme_row->page_nav_font_style); ?>;
|
312 |
font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
|
313 |
color: #<?php echo $theme_row->page_nav_font_color; ?>;
|
314 |
text-decoration: none;
|
329 |
color: #<?php echo $theme_row->album_compact_back_font_color; ?> !important;
|
330 |
cursor: pointer;
|
331 |
display: block;
|
332 |
+
font-family: <?php echo str_replace('+', ' ', $theme_row->album_compact_back_font_style); ?>;
|
333 |
font-size: <?php echo $theme_row->album_compact_back_font_size; ?>px;
|
334 |
font-weight: <?php echo $theme_row->album_compact_back_font_weight; ?>;
|
335 |
text-decoration: none;
|
534 |
$params_array['watermark_position'] = $params['watermark_position'];
|
535 |
}
|
536 |
if ($params['watermark_type'] == 'text') {
|
537 |
+
$params_array['watermark_text'] = urlencode($params['watermark_text']);
|
538 |
$params_array['watermark_font_size'] = $params['watermark_font_size'];
|
539 |
$params_array['watermark_font'] = $params['watermark_font'];
|
540 |
$params_array['watermark_color'] = $params['watermark_color'];
|
js/bwg.js
CHANGED
@@ -59,7 +59,7 @@ function save_tag(tag_id) {
|
|
59 |
|
60 |
}
|
61 |
else {
|
62 |
-
jQuery("#wordpress_message_1").css("display", "
|
63 |
}
|
64 |
}
|
65 |
});
|
@@ -1244,4 +1244,19 @@ function bwg_bulk_actions(that, check) {
|
|
1244 |
return false;
|
1245 |
}
|
1246 |
return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1247 |
}
|
59 |
|
60 |
}
|
61 |
else {
|
62 |
+
jQuery("#wordpress_message_1").css("display", "none");
|
63 |
}
|
64 |
}
|
65 |
});
|
1244 |
return false;
|
1245 |
}
|
1246 |
return true;
|
1247 |
+
}
|
1248 |
+
|
1249 |
+
function bwg_change_fonts(cont, google_fonts) {
|
1250 |
+
var fonts;
|
1251 |
+
if (jQuery("#" + google_fonts).is(":checked") == true) {
|
1252 |
+
fonts = bwg_objectGGF;
|
1253 |
+
}
|
1254 |
+
else {
|
1255 |
+
fonts = {'arial' : 'Arial', 'lucida grande' : 'Lucida grande', 'segoe ui' : 'Segoe ui', 'tahoma' : 'Tahoma', 'trebuchet ms' : 'Trebuchet ms', 'verdana' : 'Verdana', 'cursive' : 'Cursive', 'fantasy' : 'Fantasy', 'monospace' : 'Monospace', 'serif' : 'Serif'};
|
1256 |
+
}
|
1257 |
+
var fonts_option = "";
|
1258 |
+
for (var i in fonts) {
|
1259 |
+
fonts_option += '<option value="' + i + '">' + fonts[i] + '</option>';
|
1260 |
+
}
|
1261 |
+
jQuery("#" + cont).html(fonts_option);
|
1262 |
}
|
js/bwg_shortcode.js
CHANGED
@@ -252,6 +252,7 @@ function bwg_gallery_type(gallery_type) {
|
|
252 |
jQuery("#tr_show_sort_images").css('display', 'none');
|
253 |
jQuery("#tr_search_box_width").css('display', 'none');
|
254 |
jQuery("#tr_album").css('display', 'none');
|
|
|
255 |
|
256 |
// Thumbnails, Masonry.
|
257 |
jQuery("#tr_masonry_hor_ver").css('display', 'none');
|
@@ -271,6 +272,7 @@ function bwg_gallery_type(gallery_type) {
|
|
271 |
jQuery("#tr_image_enable_page").css('display', 'none');
|
272 |
jQuery("#tr_thumb_width_height").css('display', 'none');
|
273 |
jQuery("#tr_load_more_image_count").css('display', 'none');
|
|
|
274 |
// Compact Album.
|
275 |
jQuery("#tr_compuct_album_column_number").css('display', 'none');
|
276 |
jQuery("#tr_compuct_albums_per_page").css('display', 'none');
|
@@ -409,6 +411,7 @@ function bwg_gallery_type(gallery_type) {
|
|
409 |
jQuery("#tr_show_sort_images").css('display', '');
|
410 |
jQuery("#tr_load_more_image_count").css('display', '');
|
411 |
jQuery("#tr_show_tag_box").css('display', '');
|
|
|
412 |
bwg_show_search_box();
|
413 |
jQuery("#bwg_pro_version").html('Thumbnails');
|
414 |
jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/thumbnails-view-2/");
|
@@ -441,6 +444,7 @@ function bwg_gallery_type(gallery_type) {
|
|
441 |
jQuery("#tr_image_enable_page").css('display', '');
|
442 |
jQuery("#tr_thumb_width_height").css('display', '');
|
443 |
jQuery("#tr_load_more_image_count").css('display', '');
|
|
|
444 |
bwg_show_search_box();
|
445 |
break;
|
446 |
|
@@ -473,6 +477,7 @@ function bwg_gallery_type(gallery_type) {
|
|
473 |
jQuery("#tr_image_enable_page").css('display', '');
|
474 |
jQuery("#tr_thumb_width_height").css('display', '');
|
475 |
jQuery("#tr_load_more_image_count").css('display', '');
|
|
|
476 |
bwg_show_search_box();
|
477 |
break;
|
478 |
|
@@ -492,6 +497,7 @@ function bwg_gallery_type(gallery_type) {
|
|
492 |
jQuery("#tr_enable_slideshow_filmstrip").css('display', '');
|
493 |
jQuery("#tr_show_sort_images").css('display', 'none');
|
494 |
jQuery("#tr_show_tag_box").css('display', 'none');
|
|
|
495 |
if (jQuery("input[name=enable_slideshow_filmstrip]:checked").val() == 1) {
|
496 |
bwg_enable_disable('', 'tr_slideshow_filmstrip_height', 'slideshow_filmstrip_yes');
|
497 |
}
|
@@ -533,6 +539,7 @@ function bwg_gallery_type(gallery_type) {
|
|
533 |
jQuery("#tr_image_browser_title_enable").css('display', '');
|
534 |
jQuery("#tr_image_browser_description_enable").css('display', '');
|
535 |
jQuery("#tr_show_tag_box").css('display', 'none');
|
|
|
536 |
bwg_show_search_box();
|
537 |
jQuery("#bwg_pro_version").html('Image Browser');
|
538 |
jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/image-browser-view/");
|
@@ -631,6 +638,7 @@ function bwg_gallery_type(gallery_type) {
|
|
631 |
jQuery("#tr_show_sort_images").css('display', '');
|
632 |
jQuery("#tr_blog_style_load_more_image_count").css('display', '');
|
633 |
jQuery("#tr_show_tag_box").css('display', '');
|
|
|
634 |
bwg_show_search_box();
|
635 |
break;
|
636 |
}
|
@@ -650,6 +658,7 @@ function bwg_gallery_type(gallery_type) {
|
|
650 |
jQuery("#tr_carousel_prev_next_butt").css('display', '');
|
651 |
jQuery("#tr_carousel_play_pause_butt").css('display', '');
|
652 |
jQuery("#tr_show_tag_box").css('display', 'none');
|
|
|
653 |
break;
|
654 |
}
|
655 |
|
@@ -705,3 +714,18 @@ function spider_select_value(obj) {
|
|
705 |
obj.focus();
|
706 |
obj.select();
|
707 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
jQuery("#tr_show_sort_images").css('display', 'none');
|
253 |
jQuery("#tr_search_box_width").css('display', 'none');
|
254 |
jQuery("#tr_album").css('display', 'none');
|
255 |
+
jQuery("#tr_tag").css('display', 'none');
|
256 |
|
257 |
// Thumbnails, Masonry.
|
258 |
jQuery("#tr_masonry_hor_ver").css('display', 'none');
|
272 |
jQuery("#tr_image_enable_page").css('display', 'none');
|
273 |
jQuery("#tr_thumb_width_height").css('display', 'none');
|
274 |
jQuery("#tr_load_more_image_count").css('display', 'none');
|
275 |
+
|
276 |
// Compact Album.
|
277 |
jQuery("#tr_compuct_album_column_number").css('display', 'none');
|
278 |
jQuery("#tr_compuct_albums_per_page").css('display', 'none');
|
411 |
jQuery("#tr_show_sort_images").css('display', '');
|
412 |
jQuery("#tr_load_more_image_count").css('display', '');
|
413 |
jQuery("#tr_show_tag_box").css('display', '');
|
414 |
+
jQuery("#tr_tag").css('display', '');
|
415 |
bwg_show_search_box();
|
416 |
jQuery("#bwg_pro_version").html('Thumbnails');
|
417 |
jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/thumbnails-view-2/");
|
444 |
jQuery("#tr_image_enable_page").css('display', '');
|
445 |
jQuery("#tr_thumb_width_height").css('display', '');
|
446 |
jQuery("#tr_load_more_image_count").css('display', '');
|
447 |
+
jQuery("#tr_tag").css('display', '');
|
448 |
bwg_show_search_box();
|
449 |
break;
|
450 |
|
477 |
jQuery("#tr_image_enable_page").css('display', '');
|
478 |
jQuery("#tr_thumb_width_height").css('display', '');
|
479 |
jQuery("#tr_load_more_image_count").css('display', '');
|
480 |
+
jQuery("#tr_tag").css('display', '');
|
481 |
bwg_show_search_box();
|
482 |
break;
|
483 |
|
497 |
jQuery("#tr_enable_slideshow_filmstrip").css('display', '');
|
498 |
jQuery("#tr_show_sort_images").css('display', 'none');
|
499 |
jQuery("#tr_show_tag_box").css('display', 'none');
|
500 |
+
jQuery("#tr_tag").css('display', '');
|
501 |
if (jQuery("input[name=enable_slideshow_filmstrip]:checked").val() == 1) {
|
502 |
bwg_enable_disable('', 'tr_slideshow_filmstrip_height', 'slideshow_filmstrip_yes');
|
503 |
}
|
539 |
jQuery("#tr_image_browser_title_enable").css('display', '');
|
540 |
jQuery("#tr_image_browser_description_enable").css('display', '');
|
541 |
jQuery("#tr_show_tag_box").css('display', 'none');
|
542 |
+
jQuery("#tr_tag").css('display', '');
|
543 |
bwg_show_search_box();
|
544 |
jQuery("#bwg_pro_version").html('Image Browser');
|
545 |
jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/image-browser-view/");
|
638 |
jQuery("#tr_show_sort_images").css('display', '');
|
639 |
jQuery("#tr_blog_style_load_more_image_count").css('display', '');
|
640 |
jQuery("#tr_show_tag_box").css('display', '');
|
641 |
+
jQuery("#tr_tag").css('display', '');
|
642 |
bwg_show_search_box();
|
643 |
break;
|
644 |
}
|
658 |
jQuery("#tr_carousel_prev_next_butt").css('display', '');
|
659 |
jQuery("#tr_carousel_play_pause_butt").css('display', '');
|
660 |
jQuery("#tr_show_tag_box").css('display', 'none');
|
661 |
+
jQuery("#tr_tag").css('display', '');
|
662 |
break;
|
663 |
}
|
664 |
|
714 |
obj.focus();
|
715 |
obj.select();
|
716 |
}
|
717 |
+
|
718 |
+
function bwg_change_fonts(cont, google_fonts) {
|
719 |
+
var fonts;
|
720 |
+
if (jQuery("#" + google_fonts).is(":checked") == true) {
|
721 |
+
fonts = bwg_objectGGF;
|
722 |
+
}
|
723 |
+
else {
|
724 |
+
fonts = {'arial' : 'Arial', 'lucida grande' : 'Lucida grande', 'segoe ui' : 'Segoe ui', 'tahoma' : 'Tahoma', 'trebuchet ms' : 'Trebuchet ms', 'verdana' : 'Verdana', 'cursive' : 'Cursive', 'fantasy' : 'Fantasy', 'monospace' : 'Monospace', 'serif' : 'Serif'};
|
725 |
+
}
|
726 |
+
var fonts_option = "";
|
727 |
+
for (var i in fonts) {
|
728 |
+
fonts_option += '<option value="' + i + '">' + fonts[i] + '</option>';
|
729 |
+
}
|
730 |
+
jQuery("#" + cont).html(fonts_option);
|
731 |
+
}
|
photo-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
-
* Version: 1.3.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -23,7 +23,6 @@ function bwg_use_home_url() {
|
|
23 |
if ($pos) {
|
24 |
$home_url = substr($home_url, 0, $pos);
|
25 |
}
|
26 |
-
|
27 |
$site_url = str_replace("http://", "", WD_BWG_URL);
|
28 |
$site_url = str_replace("https://", "", $site_url);
|
29 |
$pos = strpos($site_url, "/");
|
@@ -89,7 +88,7 @@ function bwg_options_panel() {
|
|
89 |
add_action('admin_print_styles-' . $uninstall_page, 'bwg_styles');
|
90 |
add_action('admin_print_scripts-' . $uninstall_page, 'bwg_options_scripts');
|
91 |
|
92 |
-
add_menu_page('Photo Gallery Add-ons', 'Photo Gallery Add-ons', 'manage_options', 'addons_bwg', 'bwg_addons', WD_BWG_URL . '/addons/images/add-ons-icon.png');
|
93 |
}
|
94 |
add_action('admin_menu', 'bwg_options_panel');
|
95 |
|
@@ -216,9 +215,8 @@ function bwg_add_embed_ajax() {
|
|
216 |
else {
|
217 |
die('Access Denied');
|
218 |
}
|
219 |
-
|
220 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
221 |
-
if(!WDWLibrary::verify_nonce('')){
|
222 |
die(WDWLibrary::delimit_wd_output(json_encode(array("error", "Sorry, your nonce did not verify."))));
|
223 |
}
|
224 |
|
@@ -246,8 +244,8 @@ function bwg_edit_tag() {
|
|
246 |
die('Access Denied');
|
247 |
}
|
248 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
249 |
-
if(!WDWLibrary::verify_nonce('')){
|
250 |
-
|
251 |
}
|
252 |
require_once(WD_BWG_DIR . '/admin/controllers/BWGControllerTags_bwg.php');
|
253 |
$controller_class = 'BWGControllerTags_bwg';
|
@@ -268,7 +266,7 @@ function bwg_ajax() {
|
|
268 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
269 |
$page = WDWLibrary::get('action');
|
270 |
if ($page != '' && (($page == 'BWGShortcode') || ($page == 'addAlbumsGalleries') || ($page == 'editThumb') || ($page == 'addTags'))) {
|
271 |
-
if(!WDWLibrary::verify_nonce($page) && ($page != 'BWGShortcode')
|
272 |
die('Sorry, your nonce did not verify.');
|
273 |
}
|
274 |
|
@@ -480,7 +478,7 @@ function bwg_shortcode($params) {
|
|
480 |
'watermark_link' => '',
|
481 |
'watermark_text' => '',
|
482 |
'watermark_font_size' => 12,
|
483 |
-
'watermark_font' => '
|
484 |
'watermark_color' => 'FFFFFF',
|
485 |
'watermark_opacity' => 30,
|
486 |
'watermark_position' => 'bottom-right',
|
@@ -926,7 +924,7 @@ function bwg_activate() {
|
|
926 |
'watermark_text' => 'web-dorado.com',
|
927 |
'watermark_link' => 'https://web-dorado.com',
|
928 |
'watermark_font_size' => 20,
|
929 |
-
'watermark_font' => '
|
930 |
'watermark_color' => 'FFFFFF',
|
931 |
'watermark_opacity' => 30,
|
932 |
|
@@ -1442,7 +1440,7 @@ function bwg_activate() {
|
|
1442 |
'carousel_close_rl_btn_hover_color' => 'CCCCCC',
|
1443 |
'carousel_rl_btn_style' => 'fa-chevron',
|
1444 |
'carousel_mergin_bottom' => '0.5',
|
1445 |
-
'carousel_font_family' => '
|
1446 |
'carousel_feature_border_width' => 2,
|
1447 |
'carousel_feature_border_style' => 'solid',
|
1448 |
'carousel_feature_border_color' => '5D204F',
|
@@ -1544,7 +1542,7 @@ function bwg_activate() {
|
|
1544 |
'lightbox_comment_width' => 400,
|
1545 |
'lightbox_comment_bg_color' => '000000',
|
1546 |
'lightbox_comment_font_color' => 'CCCCCC',
|
1547 |
-
'lightbox_comment_font_style' => '
|
1548 |
'lightbox_comment_font_size' => 12,
|
1549 |
'lightbox_comment_button_bg_color' => '333333',
|
1550 |
'lightbox_comment_button_border_color' => '666666',
|
@@ -1893,7 +1891,7 @@ function bwg_activate() {
|
|
1893 |
'carousel_close_rl_btn_hover_color' => 'CCCCCC',
|
1894 |
'carousel_rl_btn_style' => 'fa-chevron',
|
1895 |
'carousel_mergin_bottom' => '0.5',
|
1896 |
-
'carousel_font_family' => '
|
1897 |
'carousel_feature_border_width' => 2,
|
1898 |
'carousel_feature_border_style' => 'solid',
|
1899 |
'carousel_feature_border_color' => '5D204F',
|
@@ -1926,7 +1924,7 @@ function bwg_activate() {
|
|
1926 |
));
|
1927 |
}
|
1928 |
$version = WD_BWG_VERSION;
|
1929 |
-
$new_version = '1.3.
|
1930 |
if ($version && version_compare($version, $new_version, '<')) {
|
1931 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1932 |
bwg_update($version);
|
@@ -1978,7 +1976,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
1978 |
|
1979 |
function bwg_update_hook() {
|
1980 |
$version = WD_BWG_VERSION;
|
1981 |
-
$new_version = '1.3.
|
1982 |
if ($version && version_compare($version, $new_version, '<')) {
|
1983 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1984 |
bwg_update($version);
|
@@ -2009,6 +2007,14 @@ if (!isset($_GET['action']) || $_GET['action'] != 'deactivate') {
|
|
2009 |
function bwg_styles() {
|
2010 |
wp_admin_css('thickbox');
|
2011 |
wp_enqueue_style('bwg_tables', WD_BWG_URL . '/css/bwg_tables.css', array(), wd_bwg_version());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012 |
}
|
2013 |
|
2014 |
// Plugin scripts.
|
@@ -2188,6 +2194,8 @@ function bwg_options_scripts() {
|
|
2188 |
'watermark_set' => __('Watermarks Succesfully Set.', 'bwg_back'),
|
2189 |
'reset' => __('Items Succesfully Reset.', 'bwg_back'),
|
2190 |
));
|
|
|
|
|
2191 |
}
|
2192 |
|
2193 |
function bwg_front_end_scripts() {
|
@@ -2222,6 +2230,16 @@ function bwg_front_end_scripts() {
|
|
2222 |
wp_localize_script('bwg_sumoselect', 'bwg_objectsL10n', array(
|
2223 |
'bwg_select_tag' => __('Select Tag.', 'bwg'),
|
2224 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2225 |
}
|
2226 |
add_action('wp_enqueue_scripts', 'bwg_front_end_scripts');
|
2227 |
|
@@ -2377,4 +2395,10 @@ if (is_admin() && (!defined('DOING_AJAX') || !DOING_AJAX)) {
|
|
2377 |
include_once(WD_BWG_DIR . '/photo-gallery-notices.php');
|
2378 |
new BWG_Notices();
|
2379 |
}
|
2380 |
-
|
|
|
|
|
|
|
|
|
|
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
+
* Version: 1.3.16
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
23 |
if ($pos) {
|
24 |
$home_url = substr($home_url, 0, $pos);
|
25 |
}
|
|
|
26 |
$site_url = str_replace("http://", "", WD_BWG_URL);
|
27 |
$site_url = str_replace("https://", "", $site_url);
|
28 |
$pos = strpos($site_url, "/");
|
88 |
add_action('admin_print_styles-' . $uninstall_page, 'bwg_styles');
|
89 |
add_action('admin_print_scripts-' . $uninstall_page, 'bwg_options_scripts');
|
90 |
|
91 |
+
add_menu_page(__('Photo Gallery Add-ons','bwg_back'), __('Photo Gallery Add-ons','bwg_back'), 'manage_options', 'addons_bwg', 'bwg_addons', WD_BWG_URL . '/addons/images/add-ons-icon.png');
|
92 |
}
|
93 |
add_action('admin_menu', 'bwg_options_panel');
|
94 |
|
215 |
else {
|
216 |
die('Access Denied');
|
217 |
}
|
|
|
218 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
219 |
+
if (!WDWLibrary::verify_nonce('')) {
|
220 |
die(WDWLibrary::delimit_wd_output(json_encode(array("error", "Sorry, your nonce did not verify."))));
|
221 |
}
|
222 |
|
244 |
die('Access Denied');
|
245 |
}
|
246 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
247 |
+
if (!WDWLibrary::verify_nonce('')) {
|
248 |
+
die('Sorry, your nonce did not verify.');
|
249 |
}
|
250 |
require_once(WD_BWG_DIR . '/admin/controllers/BWGControllerTags_bwg.php');
|
251 |
$controller_class = 'BWGControllerTags_bwg';
|
266 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
267 |
$page = WDWLibrary::get('action');
|
268 |
if ($page != '' && (($page == 'BWGShortcode') || ($page == 'addAlbumsGalleries') || ($page == 'editThumb') || ($page == 'addTags'))) {
|
269 |
+
if (!WDWLibrary::verify_nonce($page) && ($page != 'BWGShortcode')) {
|
270 |
die('Sorry, your nonce did not verify.');
|
271 |
}
|
272 |
|
478 |
'watermark_link' => '',
|
479 |
'watermark_text' => '',
|
480 |
'watermark_font_size' => 12,
|
481 |
+
'watermark_font' => 'segoe ui',
|
482 |
'watermark_color' => 'FFFFFF',
|
483 |
'watermark_opacity' => 30,
|
484 |
'watermark_position' => 'bottom-right',
|
924 |
'watermark_text' => 'web-dorado.com',
|
925 |
'watermark_link' => 'https://web-dorado.com',
|
926 |
'watermark_font_size' => 20,
|
927 |
+
'watermark_font' => 'segoe ui',
|
928 |
'watermark_color' => 'FFFFFF',
|
929 |
'watermark_opacity' => 30,
|
930 |
|
1440 |
'carousel_close_rl_btn_hover_color' => 'CCCCCC',
|
1441 |
'carousel_rl_btn_style' => 'fa-chevron',
|
1442 |
'carousel_mergin_bottom' => '0.5',
|
1443 |
+
'carousel_font_family' => 'segoe ui',
|
1444 |
'carousel_feature_border_width' => 2,
|
1445 |
'carousel_feature_border_style' => 'solid',
|
1446 |
'carousel_feature_border_color' => '5D204F',
|
1542 |
'lightbox_comment_width' => 400,
|
1543 |
'lightbox_comment_bg_color' => '000000',
|
1544 |
'lightbox_comment_font_color' => 'CCCCCC',
|
1545 |
+
'lightbox_comment_font_style' => 'segoe ui',
|
1546 |
'lightbox_comment_font_size' => 12,
|
1547 |
'lightbox_comment_button_bg_color' => '333333',
|
1548 |
'lightbox_comment_button_border_color' => '666666',
|
1891 |
'carousel_close_rl_btn_hover_color' => 'CCCCCC',
|
1892 |
'carousel_rl_btn_style' => 'fa-chevron',
|
1893 |
'carousel_mergin_bottom' => '0.5',
|
1894 |
+
'carousel_font_family' => 'segoe ui',
|
1895 |
'carousel_feature_border_width' => 2,
|
1896 |
'carousel_feature_border_style' => 'solid',
|
1897 |
'carousel_feature_border_color' => '5D204F',
|
1924 |
));
|
1925 |
}
|
1926 |
$version = WD_BWG_VERSION;
|
1927 |
+
$new_version = '1.3.16';
|
1928 |
if ($version && version_compare($version, $new_version, '<')) {
|
1929 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1930 |
bwg_update($version);
|
1976 |
|
1977 |
function bwg_update_hook() {
|
1978 |
$version = WD_BWG_VERSION;
|
1979 |
+
$new_version = '1.3.16';
|
1980 |
if ($version && version_compare($version, $new_version, '<')) {
|
1981 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1982 |
bwg_update($version);
|
2007 |
function bwg_styles() {
|
2008 |
wp_admin_css('thickbox');
|
2009 |
wp_enqueue_style('bwg_tables', WD_BWG_URL . '/css/bwg_tables.css', array(), wd_bwg_version());
|
2010 |
+
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
2011 |
+
$google_fonts = WDWLibrary::get_google_fonts();
|
2012 |
+
for ($i = 0; $i < count($google_fonts); $i = $i + 150) {
|
2013 |
+
$fonts = array_slice($google_fonts, $i, 150);
|
2014 |
+
$query = implode("|", str_replace(' ', '+', $fonts));
|
2015 |
+
$url = 'https://fonts.googleapis.com/css?family=' . $query . '&subset=greek,latin,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic';
|
2016 |
+
wp_enqueue_style('bwg_googlefonts_' . $i, $url, null, null);
|
2017 |
+
}
|
2018 |
}
|
2019 |
|
2020 |
// Plugin scripts.
|
2194 |
'watermark_set' => __('Watermarks Succesfully Set.', 'bwg_back'),
|
2195 |
'reset' => __('Items Succesfully Reset.', 'bwg_back'),
|
2196 |
));
|
2197 |
+
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
2198 |
+
wp_localize_script('bwg_admin', 'bwg_objectGGF', WDWLibrary::get_google_fonts());
|
2199 |
}
|
2200 |
|
2201 |
function bwg_front_end_scripts() {
|
2230 |
wp_localize_script('bwg_sumoselect', 'bwg_objectsL10n', array(
|
2231 |
'bwg_select_tag' => __('Select Tag.', 'bwg'),
|
2232 |
));
|
2233 |
+
|
2234 |
+
// Google fonts.
|
2235 |
+
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
2236 |
+
$google_fonts = WDWLibrary::get_google_fonts();
|
2237 |
+
for ($i = 0; $i < count($google_fonts); $i = $i + 150) {
|
2238 |
+
$fonts = array_slice($google_fonts, $i, 150);
|
2239 |
+
$query = implode("|", str_replace(' ', '+', $fonts));
|
2240 |
+
$url = 'https://fonts.googleapis.com/css?family=' . $query . '&subset=greek,latin,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic';
|
2241 |
+
wp_enqueue_style('bwg_googlefonts_' . $i, $url, null, null);
|
2242 |
+
}
|
2243 |
}
|
2244 |
add_action('wp_enqueue_scripts', 'bwg_front_end_scripts');
|
2245 |
|
2395 |
include_once(WD_BWG_DIR . '/photo-gallery-notices.php');
|
2396 |
new BWG_Notices();
|
2397 |
}
|
2398 |
+
|
2399 |
+
function bwg_register_admin_scripts() {
|
2400 |
+
wp_register_script('bwg_shortcode', WD_BWG_URL . '/js/bwg_shortcode.js', FALSE, wd_bwg_version());
|
2401 |
+
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
2402 |
+
wp_localize_script('bwg_shortcode', 'bwg_objectGGF', WDWLibrary::get_google_fonts());
|
2403 |
+
}
|
2404 |
+
add_action('admin_enqueue_scripts', 'bwg_register_admin_scripts');
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: album, image gallery, gallery, image, images, lightbox, photo, photo gallery, photos, responsive, thumbnail, widget
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.6
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -224,6 +224,12 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
|
|
224 |
|
225 |
== Changelog ==
|
226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
= 1.3.15 =
|
228 |
* Added: Images bulk rotate.
|
229 |
* Fixed: Messages in masonry album view.
|
4 |
Tags: album, image gallery, gallery, image, images, lightbox, photo, photo gallery, photos, responsive, thumbnail, widget
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 1.3.16
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
224 |
|
225 |
== Changelog ==
|
226 |
|
227 |
+
= 1.3.16 =
|
228 |
+
* Fixed: Ampersand in watermark and advertisement text.
|
229 |
+
* Fixed: Lightbox controlls toggle button on mobile.
|
230 |
+
* Added: Google fonts.
|
231 |
+
* Changed: UploadHandler class name to prevent conflict with some themes.
|
232 |
+
|
233 |
= 1.3.15 =
|
234 |
* Added: Images bulk rotate.
|
235 |
* Fixed: Messages in masonry album view.
|