Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.3

Version Description

play icon over the video thumbnail

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Photo Gallery by WD – Responsive Photo Gallery
Version 1.2.3
Comparing to
See all releases

Code changes from version 1.2.2 to 1.2.3

admin/controllers/BWGControllerOptions_bwg.php CHANGED
@@ -184,6 +184,7 @@ class BWGControllerOptions_bwg {
184
  $showthumbs_name = (isset($_POST['thumb_name']) ? esc_html(stripslashes($_POST['thumb_name'])) : 1);
185
  $show_album_name = (isset($_POST['show_album_name_enable']) ? esc_html(stripslashes($_POST['show_album_name_enable'])) : 1);
186
  $show_image_counts = (isset($_POST['show_image_counts']) ? esc_html(stripslashes($_POST['show_image_counts'])) : 0);
 
187
 
188
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
189
  'images_directory' => $images_directory,
@@ -288,6 +289,7 @@ class BWGControllerOptions_bwg {
288
  'showthumbs_name' => $showthumbs_name,
289
  'show_album_name' => $show_album_name,
290
  'show_image_counts' => $show_image_counts,
 
291
  ), array('id' => 1));
292
 
293
  if ($save !== FALSE) {
184
  $showthumbs_name = (isset($_POST['thumb_name']) ? esc_html(stripslashes($_POST['thumb_name'])) : 1);
185
  $show_album_name = (isset($_POST['show_album_name_enable']) ? esc_html(stripslashes($_POST['show_album_name_enable'])) : 1);
186
  $show_image_counts = (isset($_POST['show_image_counts']) ? esc_html(stripslashes($_POST['show_image_counts'])) : 0);
187
+ $play_icon = (isset($_POST['play_icon']) ? esc_html(stripslashes($_POST['play_icon'])) : 1);
188
 
189
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
190
  'images_directory' => $images_directory,
289
  'showthumbs_name' => $showthumbs_name,
290
  'show_album_name' => $show_album_name,
291
  'show_image_counts' => $show_image_counts,
292
+ 'play_icon' => $play_icon,
293
  ), array('id' => 1));
294
 
295
  if ($save !== FALSE) {
admin/models/BWGModelOptions_bwg.php CHANGED
@@ -138,6 +138,7 @@ class BWGModelOptions_bwg {
138
  $row->showthumbs_name = 0;
139
  $row->show_album_name = 0;
140
  $row->show_image_counts = 0;
 
141
  }
142
  return $row;
143
  }
138
  $row->showthumbs_name = 0;
139
  $row->show_album_name = 0;
140
  $row->show_image_counts = 0;
141
+ $row->play_icon = 1;
142
  }
143
  return $row;
144
  }
admin/views/BWGViewAddTags.php CHANGED
@@ -38,7 +38,7 @@ class BWGViewAddTags {
38
  <?php } ?>
39
  <link media="all" type="text/css" href="<?php echo WD_BWG_URL . '/css/bwg_tables.css'; ?>" id="bwg_tables-css" rel="stylesheet">
40
  <script src="<?php echo WD_BWG_URL . '/js/bwg.js'; ?>" type="text/javascript"></script>
41
- <form class="wrap wp-core-ui" id="tags_form" method="post" action="<?php echo add_query_arg(array('action' => 'addTags', 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" style="width:95%; margin: 0 auto;">
42
  <h2 style="width:200px; float:left;">Tags</h2>
43
  <a href="" class="thickbox thickbox-preview" id="content-add_media" title="Add Tag" onclick="bwg_get_tags('<?php echo $image_id; ?>', event);" style="float:right; padding: 9px 0px 4px 0">
44
  <img src="<?php echo WD_BWG_URL . '/images/add_but.png'; ?>" style="border:none;" />
38
  <?php } ?>
39
  <link media="all" type="text/css" href="<?php echo WD_BWG_URL . '/css/bwg_tables.css'; ?>" id="bwg_tables-css" rel="stylesheet">
40
  <script src="<?php echo WD_BWG_URL . '/js/bwg.js'; ?>" type="text/javascript"></script>
41
+ <form class="wrap wp-core-ui" id="tags_form" method="post" action="<?php echo add_query_arg(array('action' => 'addTags', 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" style="width:99%; margin: 0 auto;">
42
  <h2 style="width:200px; float:left;">Tags</h2>
43
  <a href="" class="thickbox thickbox-preview" id="content-add_media" title="Add Tag" onclick="bwg_get_tags('<?php echo $image_id; ?>', event);" style="float:right; padding: 9px 0px 4px 0">
44
  <img src="<?php echo WD_BWG_URL . '/images/add_but.png'; ?>" style="border:none;" />
admin/views/BWGViewEditThumb.php CHANGED
@@ -159,9 +159,9 @@ class BWGViewEditThumb {
159
  }
160
  ini_restore('memory_limit');
161
  wp_print_scripts('jquery');
 
 
162
  ?>
163
- <script src="<?php echo WD_BWG_URL . '/js/Jcrop-1902/js/jquery.Jcrop.min.js'; ?>" type="text/javascript"></script>
164
- <link rel="stylesheet" href="<?php echo WD_BWG_URL . '/js/Jcrop-1902/css/jquery.Jcrop.css'; ?>" type="text/css" />
165
  <style>
166
  body {
167
  height: <?php echo $popup_height; ?>px;
159
  }
160
  ini_restore('memory_limit');
161
  wp_print_scripts('jquery');
162
+ wp_print_scripts('jcrop');
163
+ wp_print_styles('jcrop');
164
  ?>
 
 
165
  <style>
166
  body {
167
  height: <?php echo $popup_height; ?>px;
admin/views/BWGViewOptions_bwg.php CHANGED
@@ -523,292 +523,304 @@ class BWGViewOptions_bwg {
523
 
524
  <!--Lightbox-->
525
  <div class="spider_div_options" id="div_content_3">
526
- <table>
527
- <tbody>
528
- <tr id="tr_popup_full_width">
529
- <td class="spider_label_options">
530
- <label>Full width lightbox:</label>
531
- </td>
532
- <td>
533
- <input type="radio" name="popup_fullscreen" id="popup_fullscreen_1" value="1" <?php if ($row->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen(1)" /><label for="popup_fullscreen_1">Yes</label>
534
- <input type="radio" name="popup_fullscreen" id="popup_fullscreen_0" value="0" <?php if (!$row->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen(0)" /><label for="popup_fullscreen_0">No</label>
535
- <div class="spider_description">Enable full width feature for the lightbox.</div>
536
- </td>
537
- </tr>
538
- <tr id="tr_popup_dimensions" >
539
- <td class="spider_label_options">
540
- <label for="popup_width">Lightbox dimensions:</label>
541
- </td>
542
- <td>
543
- <input type="text" name="popup_width" id="popup_width" value="<?php echo $row->popup_width; ?>" class="spider_int_input" /> x
544
- <input type="text" name="popup_height" id="popup_height" value="<?php echo $row->popup_height; ?>" class="spider_int_input" /> px
545
- <div class="spider_description"></div>
546
- </td>
547
- </tr>
548
- <tr>
549
- <td class="spider_label_options">
550
- <label for="popup_type">Lightbox effect:</label>
551
- </td>
552
- <td>
553
- <select name="popup_type" id="popup_type" style="width:150px;">
554
- <?php
555
- foreach ($effects as $key => $effect) {
556
- ?>
557
- <option value="<?php echo $key; ?>" <?php echo ($key != 'none' && $key != 'fade') ? 'disabled="disabled" title="This effect is disabled in free version."' : ''; ?> <?php if ($row->popup_type == $key) echo 'selected="selected"'; ?>><?php echo $effect; ?></option>
558
- <?php
559
- }
560
- ?>
561
- </select>
562
- <div class="spider_description"></div>
563
- </td>
564
- </tr>
565
- <tr id="tr_popup_autoplay">
566
- <td class="spider_label_options">
567
- <label>Lightbox autoplay: </label>
568
- </td>
569
- <td>
570
- <input type="radio" name="popup_autoplay" id="popup_autoplay_1" value="1" <?php if ($row->popup_autoplay) echo 'checked="checked"'; ?> /><label for="popup_autoplay_1">Yes</label>
571
- <input type="radio" name="popup_autoplay" id="popup_autoplay_0" value="0" <?php if (!$row->popup_autoplay) echo 'checked="checked"'; ?> /><label for="popup_autoplay_0">No</label>
572
- <div class="spider_description"></div>
573
- </td>
574
- </tr>
575
- <tr>
576
- <td class="spider_label_options">
577
- <label for="popup_interval">Time interval:</label>
578
- </td>
579
- <td>
580
- <input type="text" name="popup_interval" id="popup_interval" value="<?php echo $row->popup_interval; ?>" class="spider_int_input" /> sec.
581
- <div class="spider_description"></div>
582
- </td>
583
- </tr>
584
- <tr>
585
- <td class="spider_label_options spider_free_version_label">
586
- <label>Enable filmstrip:</label>
587
- </td>
588
- <td>
589
- <input disabled="disabled" type="radio" name="popup_enable_filmstrip" id="popup_enable_filmstrip_1" value="1" <?php if ($row->popup_enable_filmstrip ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_popup_filmstrip_height', 'popup_enable_filmstrip_1')" /><label for="popup_enable_filmstrip_1">Yes</label>
590
- <input disabled="disabled" type="radio" name="popup_enable_filmstrip" id="popup_enable_filmstrip_0" value="0" <?php if (!$row->popup_enable_filmstrip ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_popup_filmstrip_height', 'popup_enable_filmstrip_0')" /><label for="popup_enable_filmstrip_0">No</label>
591
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
592
- </td>
593
- </tr>
594
- <tr id="tr_popup_filmstrip_height">
595
- <td class="spider_label_options spider_free_version_label">
596
- <label for="popup_filmstrip_height">Filmstrip size:</label>
597
- </td>
598
- <td class="spider_free_version_label">
599
- <input disabled="disabled" type="text" name="popup_filmstrip_height" id="popup_filmstrip_height" value="<?php echo $row->popup_filmstrip_height; ?>" class="spider_int_input spider_free_version_label" /> px
600
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
601
- </td>
602
- </tr>
603
- <tr id="tr_popup_hit_counter">
604
- <td class="spider_label_options spider_free_version_label">
605
- <label>Display hit counter:</label>
606
- </td>
607
- <td>
608
- <input disabled="disabled" type="radio" name="popup_hit_counter" id="popup_hit_counter_1" value="1" <?php if ($row->popup_hit_counter) echo 'checked="checked"'; ?> /><label for="popup_hit_counter_1">Yes</label>
609
- <input disabled="disabled" type="radio" name="popup_hit_counter" id="popup_hit_counter_0" value="0" <?php if (!$row->popup_hit_counter) echo 'checked="checked"'; ?> /><label for="popup_hit_counter_0">No</label>
610
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
611
- </td>
612
- </tr>
613
- <tr>
614
- <td class="spider_label_options">
615
- <label>Enable control buttons:</label>
616
- </td>
617
- <td>
618
- <input type="radio" name="popup_enable_ctrl_btn" id="popup_enable_ctrl_btn_1" value="1" <?php if ($row->popup_enable_ctrl_btn) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_1');
619
- bwg_enable_disable('', 'tr_popup_info', 'popup_enable_ctrl_btn_1');
620
- bwg_enable_disable('', 'tr_popup_comment', 'popup_enable_ctrl_btn_1');
621
- bwg_enable_disable('', 'tr_popup_facebook', 'popup_enable_ctrl_btn_1');
622
- bwg_enable_disable('', 'tr_popup_twitter', 'popup_enable_ctrl_btn_1');
623
- bwg_enable_disable('', 'tr_popup_google', 'popup_enable_ctrl_btn_1');
624
- bwg_enable_disable('', 'tr_popup_pinterest', 'popup_enable_ctrl_btn_1');
625
- bwg_enable_disable('', 'tr_popup_tumblr', 'popup_enable_ctrl_btn_1');
626
- bwg_enable_disable('', 'tr_comment_moderation', 'comment_moderation_1');
627
- bwg_enable_disable('', 'tr_popup_email', 'popup_enable_ctrl_btn_1');
628
- bwg_enable_disable('', 'tr_popup_captcha', 'popup_enable_ctrl_btn_1');
629
- bwg_enable_disable('', 'tr_popup_download', 'popup_enable_ctrl_btn_1');
630
- bwg_enable_disable('', 'tr_popup_fullsize_image', 'popup_enable_ctrl_btn_1');" /><label for="popup_enable_ctrl_btn_1">Yes</label>
631
- <input type="radio" name="popup_enable_ctrl_btn" id="popup_enable_ctrl_btn_0" value="0" <?php if (!$row->popup_enable_ctrl_btn) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_0');
632
- bwg_enable_disable('none', 'tr_popup_info', 'popup_enable_ctrl_btn_0');
633
- bwg_enable_disable('none', 'tr_popup_comment', 'popup_enable_ctrl_btn_0');
634
- bwg_enable_disable('none', 'tr_popup_facebook', 'popup_enable_ctrl_btn_0');
635
- bwg_enable_disable('none', 'tr_popup_twitter', 'popup_enable_ctrl_btn_0');
636
- bwg_enable_disable('none', 'tr_popup_google', 'popup_enable_ctrl_btn_0');
637
- bwg_enable_disable('none', 'tr_popup_pinterest', 'popup_enable_ctrl_btn_0');
638
- bwg_enable_disable('none', 'tr_popup_tumblr', 'popup_enable_ctrl_btn_0');
639
- bwg_enable_disable('none', 'tr_comment_moderation', 'comment_moderation_0');
640
- bwg_enable_disable('none', 'tr_popup_email', 'popup_enable_ctrl_btn_0');
641
- bwg_enable_disable('none', 'tr_popup_captcha', 'popup_enable_ctrl_btn_0');
642
- bwg_enable_disable('none', 'tr_popup_download', 'popup_enable_ctrl_btn_0');
643
- bwg_enable_disable('none', 'tr_popup_fullsize_image', 'popup_enable_ctrl_btn_0');" /><label for="popup_enable_ctrl_btn_0">No</label>
644
- <div class="spider_description"></div>
645
- </td>
646
- </tr>
647
- <tr id="tr_popup_fullscreen">
648
- <td class="spider_label_options">
649
- <label>Enable fullscreen:</label>
650
- </td>
651
- <td>
652
- <input type="radio" name="popup_enable_fullscreen" id="popup_enable_fullscreen_1" value="1" <?php if ($row->popup_enable_fullscreen) echo 'checked="checked"'; ?> /><label for="popup_enable_fullscreen_1">Yes</label>
653
- <input type="radio" name="popup_enable_fullscreen" id="popup_enable_fullscreen_0" value="0" <?php if (!$row->popup_enable_fullscreen) echo 'checked="checked"'; ?> /><label for="popup_enable_fullscreen_0">No</label>
654
- <div class="spider_description"></div>
655
- </td>
656
- </tr>
657
- <tr id="tr_popup_info">
658
- <td class="spider_label_options">
659
- <label>Enable info:</label>
660
- </td>
661
- <td>
662
- <input type="radio" name="popup_enable_info" id="popup_enable_info_1" value="1" <?php if ($row->popup_enable_info) echo 'checked="checked"'; ?> /><label for="popup_enable_info_1">Yes</label>
663
- <input type="radio" name="popup_enable_info" id="popup_enable_info_0" value="0" <?php if (!$row->popup_enable_info) echo 'checked="checked"'; ?> /><label for="popup_enable_info_0">No</label>
664
- <div class="spider_description"></div>
665
- </td>
666
- </tr>
667
- <tr id="tr_popup_info_always_show">
668
- <td class="spider_label_options">
669
- <label>Display info by default:</label>
670
- </td>
671
- <td>
672
- <input type="radio" name="popup_info_always_show" id="popup_info_always_show_1" value="1" <?php if ($row->popup_info_always_show) echo 'checked="checked"'; ?> /><label for="popup_info_always_show_1">Yes</label>
673
- <input type="radio" name="popup_info_always_show" id="popup_info_always_show_0" value="0" <?php if (!$row->popup_info_always_show) echo 'checked="checked"'; ?> /><label for="popup_info_always_show_0">No</label>
674
- <div class="spider_description"></div>
675
- </td>
676
- </tr>
677
- <tr id="tr_popup_rate">
678
- <td class="spider_label_options spider_free_version_label">
679
- <label>Enable rating:</label>
680
- </td>
681
- <td>
682
- <input disabled="disabled" type="radio" name="popup_enable_rate" id="popup_enable_rate_1" value="1" <?php if ($row->popup_enable_rate) echo 'checked="checked"'; ?> /><label for="popup_enable_rate_1">Yes</label>
683
- <input disabled="disabled" type="radio" name="popup_enable_rate" id="popup_enable_rate_0" value="0" <?php if (!$row->popup_enable_rate) echo 'checked="checked"'; ?> /><label for="popup_enable_rate_0">No</label>
684
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
685
- </td>
686
- </tr>
687
- <tr id="tr_popup_comment">
688
- <td class="spider_label_options spider_free_version_label">
689
- <label>Enable comments:</label>
690
- </td>
691
- <td>
692
- <input disabled="disabled" type="radio" name="popup_enable_comment" id="popup_enable_comment_1" value="1" <?php if ($row->popup_enable_comment) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_comment_moderation', 'popup_enable_comment_1');
693
- bwg_enable_disable('', 'tr_popup_email', 'popup_enable_comment_1');
694
- bwg_enable_disable('', 'tr_popup_captcha', 'popup_enable_comment_1');" /><label for="popup_enable_comment_1">Yes</label>
695
- <input disabled="disabled" type="radio" name="popup_enable_comment" id="popup_enable_comment_0" value="0" <?php if (!$row->popup_enable_comment) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_comment_moderation', 'popup_enable_comment_0');
696
- bwg_enable_disable('none', 'tr_popup_email', 'popup_enable_comment_0');
697
- bwg_enable_disable('none', 'tr_popup_captcha', 'popup_enable_comment_0');" /><label for="popup_enable_comment_0">No</label>
698
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
699
- </td>
700
- </tr>
701
- <tr id="tr_comment_moderation">
702
- <td class="spider_label_options spider_free_version_label">
703
- <label>Enable comments moderation:</label>
704
- </td>
705
- <td>
706
- <input disabled="disabled" type="radio" name="comment_moderation" id="comment_moderation_1" value="1" <?php if ($row->comment_moderation) echo 'checked="checked"'; ?> /><label for="comment_moderation_1">Yes</label>
707
- <input disabled="disabled" type="radio" name="comment_moderation" id="comment_moderation_0" value="0" <?php if (!$row->comment_moderation) echo 'checked="checked"'; ?> /><label for="comment_moderation_0">No</label>
708
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
709
- </td>
710
- </tr>
711
- <tr id="tr_popup_email">
712
- <td class="spider_label_options spider_free_version_label">
713
- <label>Enable Email for comments:</label>
714
- </td>
715
- <td>
716
- <input disabled="disabled" type="radio" name="popup_enable_email" id="popup_enable_email_1" value="1" <?php if ($row->popup_enable_email) echo 'checked="checked"'; ?> /><label for="popup_enable_email_1">Yes</label>
717
- <input disabled="disabled" type="radio" name="popup_enable_email" id="popup_enable_email_0" value="0" <?php if (!$row->popup_enable_email) echo 'checked="checked"'; ?> /><label for="popup_enable_email_0">No</label>
718
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
719
- </td>
720
- </tr>
721
- <tr id="tr_popup_captcha">
722
- <td class="spider_label_options spider_free_version_label">
723
- <label>Enable Captcha for comments:</label>
724
- </td>
725
- <td>
726
- <input disabled="disabled" type="radio" name="popup_enable_captcha" id="popup_enable_captcha_1" value="1" <?php if ($row->popup_enable_captcha) echo 'checked="checked"'; ?> /><label for="popup_enable_captcha_1">Yes</label>
727
- <input disabled="disabled" type="radio" name="popup_enable_captcha" id="popup_enable_captcha_0" value="0" <?php if (!$row->popup_enable_captcha) echo 'checked="checked"'; ?> /><label for="popup_enable_captcha_0">No</label>
728
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
729
- </td>
730
- </tr>
731
- <tr id="tr_popup_fullsize_image">
732
- <td class="spider_label_options">
733
- <label>Enable original image display button:</label>
734
- </td>
735
- <td>
736
- <input type="radio" name="popup_enable_fullsize_image" id="popup_enable_fullsize_image_1" value="1" <?php if ($row->popup_enable_fullsize_image) echo 'checked="checked"'; ?> /><label for="popup_enable_fullsize_image_1">Yes</label>
737
- <input type="radio" name="popup_enable_fullsize_image" id="popup_enable_fullsize_image_0" value="0" <?php if (!$row->popup_enable_fullsize_image) echo 'checked="checked"'; ?> /><label for="popup_enable_fullsize_image_0">No</label>
738
- <div class="spider_description"></div>
739
- </td>
740
- </tr>
741
- <tr id="tr_popup_download">
742
- <td class="spider_label_options">
743
- <label>Enable download button:</label>
744
- </td>
745
- <td>
746
- <input type="radio" name="popup_enable_download" id="popup_enable_download_1" value="1" <?php if ($row->popup_enable_download) echo 'checked="checked"'; ?> /><label for="popup_enable_download_1">Yes</label>
747
- <input type="radio" name="popup_enable_download" id="popup_enable_download_0" value="0" <?php if (!$row->popup_enable_download) echo 'checked="checked"'; ?> /><label for="popup_enable_download_0">No</label>
748
- <div class="spider_description"></div>
749
- </td>
750
- </tr>
751
- <tr id="tr_popup_facebook">
752
- <td class="spider_label_options spider_free_version_label">
753
- <label>Enable Facebook button:</label>
754
- </td>
755
- <td>
756
- <input disabled="disabled" type="radio" name="popup_enable_facebook" id="popup_enable_facebook_1" value="1" <?php if ($row->popup_enable_facebook) echo 'checked="checked"'; ?> /><label for="popup_enable_facebook_1">Yes</label>
757
- <input disabled="disabled" type="radio" name="popup_enable_facebook" id="popup_enable_facebook_0" value="0" <?php if (!$row->popup_enable_facebook) echo 'checked="checked"'; ?> /><label for="popup_enable_facebook_0">No</label>
758
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
759
- </td>
760
- </tr>
761
- <tr id="tr_popup_twitter">
762
- <td class="spider_label_options spider_free_version_label">
763
- <label>Enable Twitter button:</label>
764
- </td>
765
- <td>
766
- <input disabled="disabled" type="radio" name="popup_enable_twitter" id="popup_enable_facebook_1" value="1" <?php if ($row->popup_enable_twitter) echo 'checked="checked"'; ?> /><label for="popup_enable_twitter_1">Yes</label>
767
- <input disabled="disabled" type="radio" name="popup_enable_twitter" id="popup_enable_facebook_0" value="0" <?php if (!$row->popup_enable_twitter) echo 'checked="checked"'; ?> /><label for="popup_enable_twitter_0">No</label>
768
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
769
- </td>
770
- </tr>
771
- <tr id="tr_popup_google">
772
- <td class="spider_label_options spider_free_version_label">
773
- <label>Enable Google+ button:</label>
774
- </td>
775
- <td>
776
- <input disabled="disabled" type="radio" name="popup_enable_google" id="popup_enable_google_1" value="1" <?php if ($row->popup_enable_google) echo 'checked="checked"'; ?> /><label for="popup_enable_google_1">Yes</label>
777
- <input disabled="disabled" type="radio" name="popup_enable_google" id="popup_enable_google_0" value="0" <?php if (!$row->popup_enable_google) echo 'checked="checked"'; ?> /><label for="popup_enable_google_0">No</label>
778
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
779
- </td>
780
- </tr>
781
- <tr id="tr_popup_pinterest">
782
- <td class="spider_label_options spider_free_version_label">
783
- <label>Enable Pinterest button:</label>
784
- </td>
785
- <td>
786
- <input disabled="disabled" type="radio" name="popup_enable_pinterest" id="popup_enable_pinterest_1" value="1" <?php if ($row->popup_enable_pinterest) echo 'checked="checked"'; ?> /><label for="popup_enable_pinterest_1">Yes</label>
787
- <input disabled="disabled" type="radio" name="popup_enable_pinterest" id="popup_enable_pinterest_0" value="0" <?php if (!$row->popup_enable_pinterest) echo 'checked="checked"'; ?> /><label for="popup_enable_pinterest_0">No</label>
788
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
789
- </td>
790
- </tr>
791
- <tr id="tr_popup_tumblr">
792
- <td class="spider_label_options spider_free_version_label">
793
- <label>Enable Tumblr button:</label>
794
- </td>
795
- <td>
796
- <input disabled="disabled" type="radio" name="popup_enable_tumblr" id="popup_enable_tumblr_1" value="1" <?php if ($row->popup_enable_tumblr) echo 'checked="checked"'; ?> /><label for="popup_enable_tumblr_1">Yes</label>
797
- <input disabled="disabled" type="radio" name="popup_enable_tumblr" id="popup_enable_tumblr_0" value="0" <?php if (!$row->popup_enable_tumblr) echo 'checked="checked"'; ?> /><label for="popup_enable_tumblr_0">No</label>
798
- <div class="spider_description spider_free_version">This option is disabled in free version.</div>
799
- </td>
800
- </tr>
801
- <tr id="tr_image_count">
802
- <td class="spider_label_options">
803
- <label>Show images count:</label>
804
- </td>
805
- <td>
806
- <input type="radio" name="show_image_counts" id="show_image_counts_current_image_number_1" value="1" <?php if ($row->show_image_counts) echo 'checked="checked"'; ?> /><label for="show_image_counts_current_image_number_1">Yes</label>
807
- <input type="radio" name="show_image_counts" id="show_image_counts_current_image_number_0" value="0" <?php if (!$row->show_image_counts) echo 'checked="checked"'; ?> /><label for="show_image_counts_current_image_number_0">No</label>
808
- <div class="spider_description"></div>
809
- </td>
810
- </tr>
811
- </tbody>
 
 
 
 
 
 
 
 
 
 
 
 
812
  </table>
813
  </div>
814
 
@@ -887,7 +899,7 @@ class BWGViewOptions_bwg {
887
  </tr>
888
  <tr>
889
  <td class="spider_label_options">
890
- <label for="album_thumb_width">Album thumb dimensions: </label>
891
  </td>
892
  <td>
893
  <input type="text" name="album_thumb_width" id="album_thumb_width" value="<?php echo $row->album_thumb_width; ?>" class="spider_int_input" /> x
@@ -1180,7 +1192,7 @@ class BWGViewOptions_bwg {
1180
  </td>
1181
  </tr>
1182
  <tr>
1183
- <td class="spider_label_options"><label>Thumb click action: </label></td>
1184
  <td>
1185
  <input type="radio" name="thumb_click_action" id="thumb_click_action_1" value="open_lightbox" <?php if ($row->thumb_click_action == 'open_lightbox') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_thumb_link_target', 'thumb_click_action_1')" /><label for="thumb_click_action_1">Open lightbox</label>
1186
  <input type="radio" name="thumb_click_action" id="thumb_click_action_2" value="redirect_to_url" <?php if ($row->thumb_click_action == 'redirect_to_url') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_thumb_link_target', 'thumb_click_action_2')" /><label for="thumb_click_action_2">Redirect to url</label>
@@ -1195,6 +1207,14 @@ class BWGViewOptions_bwg {
1195
  <div class="spider_description"></div>
1196
  </td>
1197
  </tr>
 
 
 
 
 
 
 
 
1198
  </tbody>
1199
  </table>
1200
  </div>
523
 
524
  <!--Lightbox-->
525
  <div class="spider_div_options" id="div_content_3">
526
+ <table style="width: 100%;">
527
+ <tr>
528
+ <td style="width: 50%; vertical-align: top;">
529
+ <table style="display: inline-table;">
530
+ <tbody>
531
+ <tr id="tr_popup_full_width">
532
+ <td class="spider_label_options">
533
+ <label>Full width lightbox:</label>
534
+ </td>
535
+ <td>
536
+ <input type="radio" name="popup_fullscreen" id="popup_fullscreen_1" value="1" <?php if ($row->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen(1)" /><label for="popup_fullscreen_1">Yes</label>
537
+ <input type="radio" name="popup_fullscreen" id="popup_fullscreen_0" value="0" <?php if (!$row->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen(0)" /><label for="popup_fullscreen_0">No</label>
538
+ <div class="spider_description">Enable full width feature for the lightbox.</div>
539
+ </td>
540
+ </tr>
541
+ <tr id="tr_popup_dimensions" >
542
+ <td class="spider_label_options">
543
+ <label for="popup_width">Lightbox dimensions:</label>
544
+ </td>
545
+ <td>
546
+ <input type="text" name="popup_width" id="popup_width" value="<?php echo $row->popup_width; ?>" class="spider_int_input" /> x
547
+ <input type="text" name="popup_height" id="popup_height" value="<?php echo $row->popup_height; ?>" class="spider_int_input" /> px
548
+ <div class="spider_description"></div>
549
+ </td>
550
+ </tr>
551
+ <tr>
552
+ <td class="spider_label_options">
553
+ <label for="popup_type">Lightbox effect:</label>
554
+ </td>
555
+ <td>
556
+ <select name="popup_type" id="popup_type" style="width:150px;">
557
+ <?php
558
+ foreach ($effects as $key => $effect) {
559
+ ?>
560
+ <option value="<?php echo $key; ?>" <?php echo ($key != 'none' && $key != 'fade') ? 'disabled="disabled" title="This effect is disabled in free version."' : ''; ?> <?php if ($row->popup_type == $key) echo 'selected="selected"'; ?>><?php echo $effect; ?></option>
561
+ <?php
562
+ }
563
+ ?>
564
+ </select>
565
+ <div class="spider_description"></div>
566
+ </td>
567
+ </tr>
568
+ <tr id="tr_popup_autoplay">
569
+ <td class="spider_label_options">
570
+ <label>Lightbox autoplay: </label>
571
+ </td>
572
+ <td>
573
+ <input type="radio" name="popup_autoplay" id="popup_autoplay_1" value="1" <?php if ($row->popup_autoplay) echo 'checked="checked"'; ?> /><label for="popup_autoplay_1">Yes</label>
574
+ <input type="radio" name="popup_autoplay" id="popup_autoplay_0" value="0" <?php if (!$row->popup_autoplay) echo 'checked="checked"'; ?> /><label for="popup_autoplay_0">No</label>
575
+ <div class="spider_description"></div>
576
+ </td>
577
+ </tr>
578
+ <tr>
579
+ <td class="spider_label_options">
580
+ <label for="popup_interval">Time interval:</label>
581
+ </td>
582
+ <td>
583
+ <input type="text" name="popup_interval" id="popup_interval" value="<?php echo $row->popup_interval; ?>" class="spider_int_input" /> sec.
584
+ <div class="spider_description"></div>
585
+ </td>
586
+ </tr>
587
+ <tr>
588
+ <td class="spider_label_options spider_free_version_label">
589
+ <label>Enable filmstrip:</label>
590
+ </td>
591
+ <td>
592
+ <input disabled="disabled" type="radio" name="popup_enable_filmstrip" id="popup_enable_filmstrip_1" value="1" <?php if ($row->popup_enable_filmstrip ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_popup_filmstrip_height', 'popup_enable_filmstrip_1')" /><label for="popup_enable_filmstrip_1">Yes</label>
593
+ <input disabled="disabled" type="radio" name="popup_enable_filmstrip" id="popup_enable_filmstrip_0" value="0" <?php if (!$row->popup_enable_filmstrip ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_popup_filmstrip_height', 'popup_enable_filmstrip_0')" /><label for="popup_enable_filmstrip_0">No</label>
594
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
595
+ </td>
596
+ </tr>
597
+ <tr id="tr_popup_filmstrip_height">
598
+ <td class="spider_label_options spider_free_version_label">
599
+ <label for="popup_filmstrip_height">Filmstrip size:</label>
600
+ </td>
601
+ <td class="spider_free_version_label">
602
+ <input disabled="disabled" type="text" name="popup_filmstrip_height" id="popup_filmstrip_height" value="<?php echo $row->popup_filmstrip_height; ?>" class="spider_int_input spider_free_version_label" /> px
603
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
604
+ </td>
605
+ </tr>
606
+ <tr id="tr_popup_hit_counter">
607
+ <td class="spider_label_options spider_free_version_label">
608
+ <label>Display hit counter:</label>
609
+ </td>
610
+ <td>
611
+ <input disabled="disabled" type="radio" name="popup_hit_counter" id="popup_hit_counter_1" value="1" <?php if ($row->popup_hit_counter) echo 'checked="checked"'; ?> /><label for="popup_hit_counter_1">Yes</label>
612
+ <input disabled="disabled" type="radio" name="popup_hit_counter" id="popup_hit_counter_0" value="0" <?php if (!$row->popup_hit_counter) echo 'checked="checked"'; ?> /><label for="popup_hit_counter_0">No</label>
613
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
614
+ </td>
615
+ </tr>
616
+ <tr>
617
+ <td class="spider_label_options">
618
+ <label>Enable control buttons:</label>
619
+ </td>
620
+ <td>
621
+ <input type="radio" name="popup_enable_ctrl_btn" id="popup_enable_ctrl_btn_1" value="1" <?php if ($row->popup_enable_ctrl_btn) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_1');
622
+ bwg_enable_disable('', 'tr_popup_info', 'popup_enable_ctrl_btn_1');
623
+ bwg_enable_disable('', 'tr_popup_comment', 'popup_enable_ctrl_btn_1');
624
+ bwg_enable_disable('', 'tr_popup_facebook', 'popup_enable_ctrl_btn_1');
625
+ bwg_enable_disable('', 'tr_popup_twitter', 'popup_enable_ctrl_btn_1');
626
+ bwg_enable_disable('', 'tr_popup_google', 'popup_enable_ctrl_btn_1');
627
+ bwg_enable_disable('', 'tr_popup_pinterest', 'popup_enable_ctrl_btn_1');
628
+ bwg_enable_disable('', 'tr_popup_tumblr', 'popup_enable_ctrl_btn_1');
629
+ bwg_enable_disable('', 'tr_comment_moderation', 'comment_moderation_1');
630
+ bwg_enable_disable('', 'tr_popup_email', 'popup_enable_ctrl_btn_1');
631
+ bwg_enable_disable('', 'tr_popup_captcha', 'popup_enable_ctrl_btn_1');
632
+ bwg_enable_disable('', 'tr_popup_download', 'popup_enable_ctrl_btn_1');
633
+ bwg_enable_disable('', 'tr_popup_fullsize_image', 'popup_enable_ctrl_btn_1');" /><label for="popup_enable_ctrl_btn_1">Yes</label>
634
+ <input type="radio" name="popup_enable_ctrl_btn" id="popup_enable_ctrl_btn_0" value="0" <?php if (!$row->popup_enable_ctrl_btn) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_0');
635
+ bwg_enable_disable('none', 'tr_popup_info', 'popup_enable_ctrl_btn_0');
636
+ bwg_enable_disable('none', 'tr_popup_comment', 'popup_enable_ctrl_btn_0');
637
+ bwg_enable_disable('none', 'tr_popup_facebook', 'popup_enable_ctrl_btn_0');
638
+ bwg_enable_disable('none', 'tr_popup_twitter', 'popup_enable_ctrl_btn_0');
639
+ bwg_enable_disable('none', 'tr_popup_google', 'popup_enable_ctrl_btn_0');
640
+ bwg_enable_disable('none', 'tr_popup_pinterest', 'popup_enable_ctrl_btn_0');
641
+ bwg_enable_disable('none', 'tr_popup_tumblr', 'popup_enable_ctrl_btn_0');
642
+ bwg_enable_disable('none', 'tr_comment_moderation', 'comment_moderation_0');
643
+ bwg_enable_disable('none', 'tr_popup_email', 'popup_enable_ctrl_btn_0');
644
+ bwg_enable_disable('none', 'tr_popup_captcha', 'popup_enable_ctrl_btn_0');
645
+ bwg_enable_disable('none', 'tr_popup_download', 'popup_enable_ctrl_btn_0');
646
+ bwg_enable_disable('none', 'tr_popup_fullsize_image', 'popup_enable_ctrl_btn_0');" /><label for="popup_enable_ctrl_btn_0">No</label>
647
+ <div class="spider_description"></div>
648
+ </td>
649
+ </tr>
650
+ <tr id="tr_popup_fullscreen">
651
+ <td class="spider_label_options">
652
+ <label>Enable fullscreen:</label>
653
+ </td>
654
+ <td>
655
+ <input type="radio" name="popup_enable_fullscreen" id="popup_enable_fullscreen_1" value="1" <?php if ($row->popup_enable_fullscreen) echo 'checked="checked"'; ?> /><label for="popup_enable_fullscreen_1">Yes</label>
656
+ <input type="radio" name="popup_enable_fullscreen" id="popup_enable_fullscreen_0" value="0" <?php if (!$row->popup_enable_fullscreen) echo 'checked="checked"'; ?> /><label for="popup_enable_fullscreen_0">No</label>
657
+ <div class="spider_description"></div>
658
+ </td>
659
+ </tr>
660
+ <tr id="tr_popup_info">
661
+ <td class="spider_label_options">
662
+ <label>Enable info:</label>
663
+ </td>
664
+ <td>
665
+ <input type="radio" name="popup_enable_info" id="popup_enable_info_1" value="1" <?php if ($row->popup_enable_info) echo 'checked="checked"'; ?> /><label for="popup_enable_info_1">Yes</label>
666
+ <input type="radio" name="popup_enable_info" id="popup_enable_info_0" value="0" <?php if (!$row->popup_enable_info) echo 'checked="checked"'; ?> /><label for="popup_enable_info_0">No</label>
667
+ <div class="spider_description"></div>
668
+ </td>
669
+ </tr>
670
+ <tr id="tr_popup_info_always_show">
671
+ <td class="spider_label_options">
672
+ <label>Display info by default:</label>
673
+ </td>
674
+ <td>
675
+ <input type="radio" name="popup_info_always_show" id="popup_info_always_show_1" value="1" <?php if ($row->popup_info_always_show) echo 'checked="checked"'; ?> /><label for="popup_info_always_show_1">Yes</label>
676
+ <input type="radio" name="popup_info_always_show" id="popup_info_always_show_0" value="0" <?php if (!$row->popup_info_always_show) echo 'checked="checked"'; ?> /><label for="popup_info_always_show_0">No</label>
677
+ <div class="spider_description"></div>
678
+ </td>
679
+ </tr>
680
+ </tbody>
681
+ </table>
682
+ </td>
683
+ <td style="width: 50%; vertical-align: top;">
684
+ <table style="display: inline-table;">
685
+ <tbody>
686
+ <tr id="tr_popup_rate">
687
+ <td class="spider_label_options spider_free_version_label">
688
+ <label>Enable rating:</label>
689
+ </td>
690
+ <td>
691
+ <input disabled="disabled" type="radio" name="popup_enable_rate" id="popup_enable_rate_1" value="1" <?php if ($row->popup_enable_rate) echo 'checked="checked"'; ?> /><label for="popup_enable_rate_1">Yes</label>
692
+ <input disabled="disabled" type="radio" name="popup_enable_rate" id="popup_enable_rate_0" value="0" <?php if (!$row->popup_enable_rate) echo 'checked="checked"'; ?> /><label for="popup_enable_rate_0">No</label>
693
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
694
+ </td>
695
+ </tr>
696
+ <tr id="tr_popup_comment">
697
+ <td class="spider_label_options spider_free_version_label">
698
+ <label>Enable comments:</label>
699
+ </td>
700
+ <td>
701
+ <input disabled="disabled" type="radio" name="popup_enable_comment" id="popup_enable_comment_1" value="1" <?php if ($row->popup_enable_comment) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_comment_moderation', 'popup_enable_comment_1');
702
+ bwg_enable_disable('', 'tr_popup_email', 'popup_enable_comment_1');
703
+ bwg_enable_disable('', 'tr_popup_captcha', 'popup_enable_comment_1');" /><label for="popup_enable_comment_1">Yes</label>
704
+ <input disabled="disabled" type="radio" name="popup_enable_comment" id="popup_enable_comment_0" value="0" <?php if (!$row->popup_enable_comment) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_comment_moderation', 'popup_enable_comment_0');
705
+ bwg_enable_disable('none', 'tr_popup_email', 'popup_enable_comment_0');
706
+ bwg_enable_disable('none', 'tr_popup_captcha', 'popup_enable_comment_0');" /><label for="popup_enable_comment_0">No</label>
707
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
708
+ </td>
709
+ </tr>
710
+ <tr id="tr_comment_moderation">
711
+ <td class="spider_label_options spider_free_version_label">
712
+ <label>Enable comments moderation:</label>
713
+ </td>
714
+ <td>
715
+ <input disabled="disabled" type="radio" name="comment_moderation" id="comment_moderation_1" value="1" <?php if ($row->comment_moderation) echo 'checked="checked"'; ?> /><label for="comment_moderation_1">Yes</label>
716
+ <input disabled="disabled" type="radio" name="comment_moderation" id="comment_moderation_0" value="0" <?php if (!$row->comment_moderation) echo 'checked="checked"'; ?> /><label for="comment_moderation_0">No</label>
717
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
718
+ </td>
719
+ </tr>
720
+ <tr id="tr_popup_email">
721
+ <td class="spider_label_options spider_free_version_label">
722
+ <label>Enable Email for comments:</label>
723
+ </td>
724
+ <td>
725
+ <input disabled="disabled" type="radio" name="popup_enable_email" id="popup_enable_email_1" value="1" <?php if ($row->popup_enable_email) echo 'checked="checked"'; ?> /><label for="popup_enable_email_1">Yes</label>
726
+ <input disabled="disabled" type="radio" name="popup_enable_email" id="popup_enable_email_0" value="0" <?php if (!$row->popup_enable_email) echo 'checked="checked"'; ?> /><label for="popup_enable_email_0">No</label>
727
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
728
+ </td>
729
+ </tr>
730
+ <tr id="tr_popup_captcha">
731
+ <td class="spider_label_options spider_free_version_label">
732
+ <label>Enable Captcha for comments:</label>
733
+ </td>
734
+ <td>
735
+ <input disabled="disabled" type="radio" name="popup_enable_captcha" id="popup_enable_captcha_1" value="1" <?php if ($row->popup_enable_captcha) echo 'checked="checked"'; ?> /><label for="popup_enable_captcha_1">Yes</label>
736
+ <input disabled="disabled" type="radio" name="popup_enable_captcha" id="popup_enable_captcha_0" value="0" <?php if (!$row->popup_enable_captcha) echo 'checked="checked"'; ?> /><label for="popup_enable_captcha_0">No</label>
737
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
738
+ </td>
739
+ </tr>
740
+ <tr id="tr_popup_fullsize_image">
741
+ <td class="spider_label_options">
742
+ <label>Enable original image display button:</label>
743
+ </td>
744
+ <td>
745
+ <input type="radio" name="popup_enable_fullsize_image" id="popup_enable_fullsize_image_1" value="1" <?php if ($row->popup_enable_fullsize_image) echo 'checked="checked"'; ?> /><label for="popup_enable_fullsize_image_1">Yes</label>
746
+ <input type="radio" name="popup_enable_fullsize_image" id="popup_enable_fullsize_image_0" value="0" <?php if (!$row->popup_enable_fullsize_image) echo 'checked="checked"'; ?> /><label for="popup_enable_fullsize_image_0">No</label>
747
+ <div class="spider_description"></div>
748
+ </td>
749
+ </tr>
750
+ <tr id="tr_popup_download">
751
+ <td class="spider_label_options">
752
+ <label>Enable download button:</label>
753
+ </td>
754
+ <td>
755
+ <input type="radio" name="popup_enable_download" id="popup_enable_download_1" value="1" <?php if ($row->popup_enable_download) echo 'checked="checked"'; ?> /><label for="popup_enable_download_1">Yes</label>
756
+ <input type="radio" name="popup_enable_download" id="popup_enable_download_0" value="0" <?php if (!$row->popup_enable_download) echo 'checked="checked"'; ?> /><label for="popup_enable_download_0">No</label>
757
+ <div class="spider_description"></div>
758
+ </td>
759
+ </tr>
760
+ <tr id="tr_popup_facebook">
761
+ <td class="spider_label_options spider_free_version_label">
762
+ <label>Enable Facebook button:</label>
763
+ </td>
764
+ <td>
765
+ <input disabled="disabled" type="radio" name="popup_enable_facebook" id="popup_enable_facebook_1" value="1" <?php if ($row->popup_enable_facebook) echo 'checked="checked"'; ?> /><label for="popup_enable_facebook_1">Yes</label>
766
+ <input disabled="disabled" type="radio" name="popup_enable_facebook" id="popup_enable_facebook_0" value="0" <?php if (!$row->popup_enable_facebook) echo 'checked="checked"'; ?> /><label for="popup_enable_facebook_0">No</label>
767
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
768
+ </td>
769
+ </tr>
770
+ <tr id="tr_popup_twitter">
771
+ <td class="spider_label_options spider_free_version_label">
772
+ <label>Enable Twitter button:</label>
773
+ </td>
774
+ <td>
775
+ <input disabled="disabled" type="radio" name="popup_enable_twitter" id="popup_enable_facebook_1" value="1" <?php if ($row->popup_enable_twitter) echo 'checked="checked"'; ?> /><label for="popup_enable_twitter_1">Yes</label>
776
+ <input disabled="disabled" type="radio" name="popup_enable_twitter" id="popup_enable_facebook_0" value="0" <?php if (!$row->popup_enable_twitter) echo 'checked="checked"'; ?> /><label for="popup_enable_twitter_0">No</label>
777
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
778
+ </td>
779
+ </tr>
780
+ <tr id="tr_popup_google">
781
+ <td class="spider_label_options spider_free_version_label">
782
+ <label>Enable Google+ button:</label>
783
+ </td>
784
+ <td>
785
+ <input disabled="disabled" type="radio" name="popup_enable_google" id="popup_enable_google_1" value="1" <?php if ($row->popup_enable_google) echo 'checked="checked"'; ?> /><label for="popup_enable_google_1">Yes</label>
786
+ <input disabled="disabled" type="radio" name="popup_enable_google" id="popup_enable_google_0" value="0" <?php if (!$row->popup_enable_google) echo 'checked="checked"'; ?> /><label for="popup_enable_google_0">No</label>
787
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
788
+ </td>
789
+ </tr>
790
+ <tr id="tr_popup_pinterest">
791
+ <td class="spider_label_options spider_free_version_label">
792
+ <label>Enable Pinterest button:</label>
793
+ </td>
794
+ <td>
795
+ <input disabled="disabled" type="radio" name="popup_enable_pinterest" id="popup_enable_pinterest_1" value="1" <?php if ($row->popup_enable_pinterest) echo 'checked="checked"'; ?> /><label for="popup_enable_pinterest_1">Yes</label>
796
+ <input disabled="disabled" type="radio" name="popup_enable_pinterest" id="popup_enable_pinterest_0" value="0" <?php if (!$row->popup_enable_pinterest) echo 'checked="checked"'; ?> /><label for="popup_enable_pinterest_0">No</label>
797
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
798
+ </td>
799
+ </tr>
800
+ <tr id="tr_popup_tumblr">
801
+ <td class="spider_label_options spider_free_version_label">
802
+ <label>Enable Tumblr button:</label>
803
+ </td>
804
+ <td>
805
+ <input disabled="disabled" type="radio" name="popup_enable_tumblr" id="popup_enable_tumblr_1" value="1" <?php if ($row->popup_enable_tumblr) echo 'checked="checked"'; ?> /><label for="popup_enable_tumblr_1">Yes</label>
806
+ <input disabled="disabled" type="radio" name="popup_enable_tumblr" id="popup_enable_tumblr_0" value="0" <?php if (!$row->popup_enable_tumblr) echo 'checked="checked"'; ?> /><label for="popup_enable_tumblr_0">No</label>
807
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
808
+ </td>
809
+ </tr>
810
+ <tr id="tr_image_count">
811
+ <td class="spider_label_options">
812
+ <label>Show images count:</label>
813
+ </td>
814
+ <td>
815
+ <input type="radio" name="show_image_counts" id="show_image_counts_current_image_number_1" value="1" <?php if ($row->show_image_counts) echo 'checked="checked"'; ?> /><label for="show_image_counts_current_image_number_1">Yes</label>
816
+ <input type="radio" name="show_image_counts" id="show_image_counts_current_image_number_0" value="0" <?php if (!$row->show_image_counts) echo 'checked="checked"'; ?> /><label for="show_image_counts_current_image_number_0">No</label>
817
+ <div class="spider_description"></div>
818
+ </td>
819
+ </tr>
820
+ </tbody>
821
+ </table>
822
+ </td>
823
+ </tr>
824
  </table>
825
  </div>
826
 
899
  </tr>
900
  <tr>
901
  <td class="spider_label_options">
902
+ <label for="album_thumb_width">Album thumbnail dimensions: </label>
903
  </td>
904
  <td>
905
  <input type="text" name="album_thumb_width" id="album_thumb_width" value="<?php echo $row->album_thumb_width; ?>" class="spider_int_input" /> x
1192
  </td>
1193
  </tr>
1194
  <tr>
1195
+ <td class="spider_label_options"><label>Thumbnail click action: </label></td>
1196
  <td>
1197
  <input type="radio" name="thumb_click_action" id="thumb_click_action_1" value="open_lightbox" <?php if ($row->thumb_click_action == 'open_lightbox') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_thumb_link_target', 'thumb_click_action_1')" /><label for="thumb_click_action_1">Open lightbox</label>
1198
  <input type="radio" name="thumb_click_action" id="thumb_click_action_2" value="redirect_to_url" <?php if ($row->thumb_click_action == 'redirect_to_url') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_thumb_link_target', 'thumb_click_action_2')" /><label for="thumb_click_action_2">Redirect to url</label>
1207
  <div class="spider_description"></div>
1208
  </td>
1209
  </tr>
1210
+ <tr>
1211
+ <td class="spider_label_options"><label>Play icon over the video thumbnail: </label></td>
1212
+ <td>
1213
+ <input type="radio" name="play_icon" id="play_icon_yes" value="1" <?php if ($row->play_icon) echo 'checked="checked"'; ?> /><label for="play_icon_yes">Yes</label>
1214
+ <input type="radio" name="play_icon" id="play_icon_no" value="0" <?php if (!$row->play_icon) echo 'checked="checked"'; ?> /><label for="play_icon_no">No</label>
1215
+ <div class="spider_description"></div>
1216
+ </td>
1217
+ </tr>
1218
  </tbody>
1219
  </table>
1220
  </div>
frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -81,6 +81,7 @@ class BWGViewAlbum_compact_preview {
81
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
82
  $sort_direction = ' ' . $params['order_by'] . ' ';
83
  $options_row = $this->model->get_options_row_data();
 
84
  if ($from === "widget") {
85
  $params['album_id'] = $params['id'];
86
  $params['sort_by'] = $params['show'] == 'random' ? 'RAND()' : 'order';
@@ -204,7 +205,7 @@ class BWGViewAlbum_compact_preview {
204
  display: inline-block;
205
  height: <?php echo $params['compuct_album_thumb_height']; ?>px;
206
  margin: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
207
- opacity: <?php echo $theme_row->album_compact_thumb_transparent / 100; ?>;
208
  filter: Alpha(opacity=<?php echo $theme_row->album_compact_thumb_transparent; ?>);
209
  <?php echo ($theme_row->album_compact_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
210
  padding: <?php echo $theme_row->album_compact_thumb_padding; ?>px;
@@ -240,7 +241,7 @@ class BWGViewAlbum_compact_preview {
240
  display: inline-block;
241
  -moz-box-sizing: border-box;
242
  box-sizing: border-box;
243
- background-color: rgba(<?php echo $rgb_album_compact_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['blue']; ?>, <?php echo $theme_row->album_compact_thumb_bg_transparent / 100; ?>);
244
  font-size: 0;
245
  text-align: <?php echo $theme_row->album_compact_thumb_align; ?>;
246
  max-width: <?php echo $items_col_num * ($params['compuct_album_thumb_width'] + 2 * (2 + $theme_row->album_compact_thumb_margin + $theme_row->album_compact_thumb_padding + $theme_row->album_compact_thumb_border_width)); ?>px;
@@ -298,7 +299,7 @@ class BWGViewAlbum_compact_preview {
298
  display: inline-block;
299
  -moz-box-sizing: border-box;
300
  box-sizing: border-box;
301
- background-color: rgba(<?php echo $rgb_album_compact_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['blue']; ?>, <?php echo $theme_row->album_compact_thumb_bg_transparent / 100; ?>);
302
  font-size: 0;
303
  text-align: <?php echo $theme_row->album_compact_thumb_align; ?>;
304
  max-width: <?php echo $items_col_num * ($params['compuct_album_thumb_width'] + 2 * (2 + $theme_row->album_compact_thumb_margin + $theme_row->album_compact_thumb_padding + $theme_row->album_compact_thumb_border_width)); ?>px;
@@ -313,7 +314,7 @@ class BWGViewAlbum_compact_preview {
313
  display: inline-block;
314
  height: <?php echo $params['compuct_album_image_thumb_height']; ?>px;
315
  margin: <?php echo $theme_row->thumb_margin; ?>px;
316
- opacity: <?php echo $theme_row->thumb_transparent / 100; ?>;
317
  filter: Alpha(opacity=<?php echo $theme_row->thumb_transparent; ?>);
318
  <?php echo ($theme_row->thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
319
  padding: <?php echo $theme_row->thumb_padding; ?>px;
@@ -347,7 +348,7 @@ class BWGViewAlbum_compact_preview {
347
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumbnails_<?php echo $bwg; ?> {
348
  -moz-box-sizing: border-box;
349
  display: inline-block;
350
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo $theme_row->thumb_bg_transparent / 100; ?>);
351
  box-sizing: border-box;
352
  font-size: 0;
353
  max-width: <?php echo $params['compuct_album_image_column_number'] * ($params['compuct_album_image_thumb_width'] + 2 * (2 + $theme_row->thumb_margin + $theme_row->thumb_padding + $theme_row->thumb_border_width)); ?>px;
@@ -460,7 +461,7 @@ class BWGViewAlbum_compact_preview {
460
  border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
461
  border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
462
  background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
463
- opacity: <?php echo $theme_row->page_nav_button_bg_transparent / 100; ?>;
464
  filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
465
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
466
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
@@ -478,9 +479,24 @@ class BWGViewAlbum_compact_preview {
478
  }
479
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
480
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
481
- opacity: <?php echo $theme_row->lightbox_overlay_bg_transparent / 100; ?>;
482
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
483
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
484
  </style>
485
 
486
  <div id="bwg_container1_<?php echo $bwg; ?>">
@@ -691,7 +707,7 @@ class BWGViewAlbum_compact_preview {
691
  $thumb_left = ($params['compuct_album_image_thumb_width'] - $image_thumb_width) / 2;
692
  $thumb_top = ($params['compuct_album_image_thumb_height'] - $image_thumb_height) / 2;
693
  ?>
694
- <a style="font-size: 0;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? ('onclick="spider_createpopup(\'' . addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))) . '\', ' . $bwg . ', ' . $params['popup_width'] . ', ' . $params['popup_height'] . ', 1, \'testpopup\', 5); return false;"') : ('href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"')) ?>>
695
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
696
  <?php
697
  if ($params['compuct_album_image_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top') {
@@ -706,8 +722,14 @@ class BWGViewAlbum_compact_preview {
706
  ?>
707
  <span class="bwg_standart_thumb_spun1_<?php echo $bwg; ?>">
708
  <span class="bwg_standart_thumb_spun2_<?php echo $bwg; ?>">
709
- <img style="max-height:none; max-width:none; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo ($is_video ? "" : site_url() . '/' . $WD_BWG_UPLOAD_DIR) . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" />
710
  <?php
 
 
 
 
 
 
 
711
  if ($params['compuct_album_image_title'] == 'hover') {
712
  ?>
713
  <span class="bwg_image_title_spun1_<?php echo $bwg; ?>">
@@ -718,6 +740,7 @@ class BWGViewAlbum_compact_preview {
718
  <?php
719
  }
720
  ?>
 
721
  </span>
722
  </span>
723
  <?php
81
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
82
  $sort_direction = ' ' . $params['order_by'] . ' ';
83
  $options_row = $this->model->get_options_row_data();
84
+ $play_icon = $options_row->play_icon;
85
  if ($from === "widget") {
86
  $params['album_id'] = $params['id'];
87
  $params['sort_by'] = $params['show'] == 'random' ? 'RAND()' : 'order';
205
  display: inline-block;
206
  height: <?php echo $params['compuct_album_thumb_height']; ?>px;
207
  margin: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
208
+ opacity: <?php echo number_format($theme_row->album_compact_thumb_transparent / 100, 2, ".", ""); ?>;
209
  filter: Alpha(opacity=<?php echo $theme_row->album_compact_thumb_transparent; ?>);
210
  <?php echo ($theme_row->album_compact_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
211
  padding: <?php echo $theme_row->album_compact_thumb_padding; ?>px;
241
  display: inline-block;
242
  -moz-box-sizing: border-box;
243
  box-sizing: border-box;
244
+ background-color: rgba(<?php echo $rgb_album_compact_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->album_compact_thumb_bg_transparent / 100, 2, ".", ""); ?>);
245
  font-size: 0;
246
  text-align: <?php echo $theme_row->album_compact_thumb_align; ?>;
247
  max-width: <?php echo $items_col_num * ($params['compuct_album_thumb_width'] + 2 * (2 + $theme_row->album_compact_thumb_margin + $theme_row->album_compact_thumb_padding + $theme_row->album_compact_thumb_border_width)); ?>px;
299
  display: inline-block;
300
  -moz-box-sizing: border-box;
301
  box-sizing: border-box;
302
+ background-color: rgba(<?php echo $rgb_album_compact_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->album_compact_thumb_bg_transparent / 100, 2, ".", ""); ?>);
303
  font-size: 0;
304
  text-align: <?php echo $theme_row->album_compact_thumb_align; ?>;
305
  max-width: <?php echo $items_col_num * ($params['compuct_album_thumb_width'] + 2 * (2 + $theme_row->album_compact_thumb_margin + $theme_row->album_compact_thumb_padding + $theme_row->album_compact_thumb_border_width)); ?>px;
314
  display: inline-block;
315
  height: <?php echo $params['compuct_album_image_thumb_height']; ?>px;
316
  margin: <?php echo $theme_row->thumb_margin; ?>px;
317
+ opacity: <?php echo number_format($theme_row->thumb_transparent / 100, 2, ".", ""); ?>;
318
  filter: Alpha(opacity=<?php echo $theme_row->thumb_transparent; ?>);
319
  <?php echo ($theme_row->thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
320
  padding: <?php echo $theme_row->thumb_padding; ?>px;
348
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumbnails_<?php echo $bwg; ?> {
349
  -moz-box-sizing: border-box;
350
  display: inline-block;
351
+ background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->thumb_bg_transparent / 100, 2, ".", ""); ?>);
352
  box-sizing: border-box;
353
  font-size: 0;
354
  max-width: <?php echo $params['compuct_album_image_column_number'] * ($params['compuct_album_image_thumb_width'] + 2 * (2 + $theme_row->thumb_margin + $theme_row->thumb_padding + $theme_row->thumb_border_width)); ?>px;
461
  border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
462
  border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
463
  background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
464
+ opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
465
  filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
466
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
467
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
479
  }
480
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
481
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
482
+ opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
483
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
484
  }
485
+ .bwg_play_icon_spun_<?php echo $bwg; ?> {
486
+ width: inherit;
487
+ height: inherit;
488
+ display: table;
489
+ position: absolute;
490
+ }
491
+ .bwg_play_icon_<?php echo $bwg; ?> {
492
+ color: #<?php echo $theme_row->thumb_title_font_color; ?>;
493
+ font-size: <?php echo 2 * $theme_row->thumb_title_font_size; ?>px;
494
+ vertical-align: middle;
495
+ display: table-cell !important;
496
+ z-index: 1;
497
+ text-align: center;
498
+ margin: 0 auto;
499
+ }
500
  </style>
501
 
502
  <div id="bwg_container1_<?php echo $bwg; ?>">
707
  $thumb_left = ($params['compuct_album_image_thumb_width'] - $image_thumb_width) / 2;
708
  $thumb_top = ($params['compuct_album_image_thumb_height'] - $image_thumb_height) / 2;
709
  ?>
710
+ <a style="font-size: 0;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? ('onclick="spider_createpopup(\'' . addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))) . '\', ' . $bwg . ', ' . $params['popup_width'] . ', ' . $params['popup_height'] . ', 1, \'testpopup\', 5); return false;"') : ($image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
711
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
712
  <?php
713
  if ($params['compuct_album_image_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top') {
722
  ?>
723
  <span class="bwg_standart_thumb_spun1_<?php echo $bwg; ?>">
724
  <span class="bwg_standart_thumb_spun2_<?php echo $bwg; ?>">
 
725
  <?php
726
+ if ($play_icon && $is_video) {
727
+ ?>
728
+ <span class="bwg_play_icon_spun_<?php echo $bwg; ?>">
729
+ <i title="<?php echo __('Play', 'bwg'); ?>" class="fa fa-play bwg_play_icon_<?php echo $bwg; ?>"></i>
730
+ </span>
731
+ <?php
732
+ }
733
  if ($params['compuct_album_image_title'] == 'hover') {
734
  ?>
735
  <span class="bwg_image_title_spun1_<?php echo $bwg; ?>">
740
  <?php
741
  }
742
  ?>
743
+ <img style="max-height:none; max-width:none; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo ($is_video ? "" : site_url() . '/' . $WD_BWG_UPLOAD_DIR) . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" />
744
  </span>
745
  </span>
746
  <?php
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -28,6 +28,7 @@ class BWGViewAlbum_extended_preview {
28
  global $WD_BWG_UPLOAD_DIR;
29
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
30
  $options_row = $this->model->get_options_row_data();
 
31
 
32
  if (!isset($params['extended_album_image_title'])) {
33
  $params['extended_album_image_title'] = 'none';
@@ -149,7 +150,7 @@ class BWGViewAlbum_extended_preview {
149
  display: block;
150
  -moz-box-sizing: border-box;
151
  box-sizing: border-box;
152
- background-color: rgba(<?php echo $rgb_album_extended_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_extended_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_extended_thumbs_bg_color['blue']; ?>, <?php echo $theme_row->album_extended_thumb_bg_transparent / 100; ?>);
153
  font-size: 0;
154
  text-align: <?php echo $theme_row->album_extended_thumb_align; ?>;
155
  max-width: inherit;
@@ -164,7 +165,7 @@ class BWGViewAlbum_extended_preview {
164
  height: <?php echo $params['extended_album_height']; ?>px;
165
  border-spacing: <?php echo $theme_row->album_extended_div_padding; ?>px;
166
  border-bottom: <?php echo $theme_row->album_extended_div_separator_width; ?>px <?php echo $theme_row->album_extended_div_separator_style; ?> #<?php echo $theme_row->album_extended_div_separator_color; ?>;
167
- background-color: rgba(<?php echo $rgb_album_extended_div_bg_color['red']; ?>, <?php echo $rgb_album_extended_div_bg_color['green']; ?>, <?php echo $rgb_album_extended_div_bg_color['blue']; ?>, <?php echo $theme_row->album_extended_div_bg_transparent / 100; ?>);
168
  border-radius: <?php echo $theme_row->album_extended_div_border_radius; ?>;
169
  margin: <?php echo $theme_row->album_extended_div_margin; ?>;
170
  }
@@ -259,7 +260,7 @@ class BWGViewAlbum_extended_preview {
259
  display: inline-block;
260
  height: <?php echo $params['extended_album_thumb_height']; ?>px;
261
  margin: <?php echo $theme_row->album_extended_thumb_margin; ?>px;
262
- opacity: <?php echo $theme_row->album_extended_thumb_transparent / 100; ?>;
263
  filter: Alpha(opacity=<?php echo $theme_row->album_extended_thumb_transparent; ?>);
264
  <?php echo ($theme_row->album_extended_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
265
  padding: <?php echo $theme_row->album_extended_thumb_padding; ?>px;
@@ -295,7 +296,7 @@ class BWGViewAlbum_extended_preview {
295
  display: inline-block;
296
  height: <?php echo $params['extended_album_image_thumb_height']; ?>px;
297
  margin: <?php echo $theme_row->thumb_margin; ?>px;
298
- opacity: <?php echo $theme_row->thumb_transparent / 100; ?>;
299
  filter: Alpha(opacity=<?php echo $theme_row->thumb_transparent; ?>);
300
  <?php echo ($theme_row->thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
301
  padding: <?php echo $theme_row->thumb_padding; ?>px;
@@ -326,7 +327,7 @@ class BWGViewAlbum_extended_preview {
326
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumbnails_<?php echo $bwg; ?> {
327
  -moz-box-sizing: border-box;
328
  display: inline-block;
329
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo $theme_row->thumb_bg_transparent / 100; ?>);
330
  box-sizing: border-box;
331
  font-size: 0;
332
  max-width: <?php echo $params['extended_album_image_column_number'] * ($params['extended_album_image_thumb_width'] + 2 * (2 + $theme_row->thumb_margin + $theme_row->thumb_padding + $theme_row->thumb_border_width)); ?>px;
@@ -440,7 +441,7 @@ class BWGViewAlbum_extended_preview {
440
  border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
441
  border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
442
  background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
443
- opacity: <?php echo $theme_row->page_nav_button_bg_transparent / 100; ?>;
444
  filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
445
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
446
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
@@ -458,9 +459,24 @@ class BWGViewAlbum_extended_preview {
458
  }
459
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
460
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
461
- opacity: <?php echo $theme_row->lightbox_overlay_bg_transparent / 100; ?>;
462
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
463
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
  </style>
465
  <div id="bwg_container1_<?php echo $bwg; ?>">
466
  <div id="bwg_container2_<?php echo $bwg; ?>">
@@ -679,12 +695,18 @@ class BWGViewAlbum_extended_preview {
679
  $thumb_left = ($params['extended_album_image_thumb_width'] - $image_thumb_width) / 2;
680
  $thumb_top = ($params['extended_album_image_thumb_height'] - $image_thumb_height) / 2;
681
  ?>
682
- <a style="font-size: 0;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? ('onclick="spider_createpopup(\'' . addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))) . '\', ' . $bwg . ', ' . $params['popup_width'] . ', ' . $params['popup_height'] . ', 1, \'testpopup\', 5); return false;"') : ('href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"')) ?>>
683
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
684
  <span class="bwg_standart_thumb_spun1_<?php echo $bwg; ?>">
685
  <span class="bwg_standart_thumb_spun2_<?php echo $bwg; ?>">
686
- <img style="max-height:none; max-width:none; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo ($is_video ? "" : site_url() . '/' . $WD_BWG_UPLOAD_DIR) . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" />
687
  <?php
 
 
 
 
 
 
 
688
  if ($params['extended_album_image_title'] == 'hover') {
689
  ?>
690
  <span class="bwg_image_title_spun1_<?php echo $bwg; ?>">
@@ -695,6 +717,7 @@ class BWGViewAlbum_extended_preview {
695
  <?php
696
  }
697
  ?>
 
698
  </span>
699
  </span>
700
  <?php
28
  global $WD_BWG_UPLOAD_DIR;
29
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
30
  $options_row = $this->model->get_options_row_data();
31
+ $play_icon = $options_row->play_icon;
32
 
33
  if (!isset($params['extended_album_image_title'])) {
34
  $params['extended_album_image_title'] = 'none';
150
  display: block;
151
  -moz-box-sizing: border-box;
152
  box-sizing: border-box;
153
+ background-color: rgba(<?php echo $rgb_album_extended_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_extended_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_extended_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->album_extended_thumb_bg_transparent / 100, 2, ".", ""); ?>);
154
  font-size: 0;
155
  text-align: <?php echo $theme_row->album_extended_thumb_align; ?>;
156
  max-width: inherit;
165
  height: <?php echo $params['extended_album_height']; ?>px;
166
  border-spacing: <?php echo $theme_row->album_extended_div_padding; ?>px;
167
  border-bottom: <?php echo $theme_row->album_extended_div_separator_width; ?>px <?php echo $theme_row->album_extended_div_separator_style; ?> #<?php echo $theme_row->album_extended_div_separator_color; ?>;
168
+ background-color: rgba(<?php echo $rgb_album_extended_div_bg_color['red']; ?>, <?php echo $rgb_album_extended_div_bg_color['green']; ?>, <?php echo $rgb_album_extended_div_bg_color['blue']; ?>, <?php echo number_format($theme_row->album_extended_div_bg_transparent / 100, 2, ".", ""); ?>);
169
  border-radius: <?php echo $theme_row->album_extended_div_border_radius; ?>;
170
  margin: <?php echo $theme_row->album_extended_div_margin; ?>;
171
  }
260
  display: inline-block;
261
  height: <?php echo $params['extended_album_thumb_height']; ?>px;
262
  margin: <?php echo $theme_row->album_extended_thumb_margin; ?>px;
263
+ opacity: <?php echo number_format($theme_row->album_extended_thumb_transparent / 100, 2, ".", ""); ?>;
264
  filter: Alpha(opacity=<?php echo $theme_row->album_extended_thumb_transparent; ?>);
265
  <?php echo ($theme_row->album_extended_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
266
  padding: <?php echo $theme_row->album_extended_thumb_padding; ?>px;
296
  display: inline-block;
297
  height: <?php echo $params['extended_album_image_thumb_height']; ?>px;
298
  margin: <?php echo $theme_row->thumb_margin; ?>px;
299
+ opacity: <?php echo number_format($theme_row->thumb_transparent / 100, 2, ".", ""); ?>;
300
  filter: Alpha(opacity=<?php echo $theme_row->thumb_transparent; ?>);
301
  <?php echo ($theme_row->thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
302
  padding: <?php echo $theme_row->thumb_padding; ?>px;
327
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumbnails_<?php echo $bwg; ?> {
328
  -moz-box-sizing: border-box;
329
  display: inline-block;
330
+ background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->thumb_bg_transparent / 100, 2, ".", ""); ?>);
331
  box-sizing: border-box;
332
  font-size: 0;
333
  max-width: <?php echo $params['extended_album_image_column_number'] * ($params['extended_album_image_thumb_width'] + 2 * (2 + $theme_row->thumb_margin + $theme_row->thumb_padding + $theme_row->thumb_border_width)); ?>px;
441
  border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
442
  border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
443
  background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
444
+ opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
445
  filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
446
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
447
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
459
  }
460
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
461
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
462
+ opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
463
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
464
  }
465
+ .bwg_play_icon_spun_<?php echo $bwg; ?> {
466
+ width: inherit;
467
+ height: inherit;
468
+ display: table;
469
+ position: absolute;
470
+ }
471
+ .bwg_play_icon_<?php echo $bwg; ?> {
472
+ color: #<?php echo $theme_row->thumb_title_font_color; ?>;
473
+ font-size: <?php echo 2 * $theme_row->thumb_title_font_size; ?>px;
474
+ vertical-align: middle;
475
+ display: table-cell !important;
476
+ z-index: 1;
477
+ text-align: center;
478
+ margin: 0 auto;
479
+ }
480
  </style>
481
  <div id="bwg_container1_<?php echo $bwg; ?>">
482
  <div id="bwg_container2_<?php echo $bwg; ?>">
695
  $thumb_left = ($params['extended_album_image_thumb_width'] - $image_thumb_width) / 2;
696
  $thumb_top = ($params['extended_album_image_thumb_height'] - $image_thumb_height) / 2;
697
  ?>
698
+ <a style="font-size: 0;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? ('onclick="spider_createpopup(\'' . addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))) . '\', ' . $bwg . ', ' . $params['popup_width'] . ', ' . $params['popup_height'] . ', 1, \'testpopup\', 5); return false;"') : ($image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
699
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
700
  <span class="bwg_standart_thumb_spun1_<?php echo $bwg; ?>">
701
  <span class="bwg_standart_thumb_spun2_<?php echo $bwg; ?>">
 
702
  <?php
703
+ if ($play_icon && $is_video) {
704
+ ?>
705
+ <span class="bwg_play_icon_spun_<?php echo $bwg; ?>">
706
+ <i title="<?php echo __('Play', 'bwg'); ?>" class="fa fa-play bwg_play_icon_<?php echo $bwg; ?>"></i>
707
+ </span>
708
+ <?php
709
+ }
710
  if ($params['extended_album_image_title'] == 'hover') {
711
  ?>
712
  <span class="bwg_image_title_spun1_<?php echo $bwg; ?>">
717
  <?php
718
  }
719
  ?>
720
+ <img style="max-height:none; max-width:none; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo ($is_video ? "" : site_url() . '/' . $WD_BWG_UPLOAD_DIR) . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" />
721
  </span>
722
  </span>
723
  <?php
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -191,14 +191,14 @@ class BWGViewGalleryBox {
191
  color: #<?php echo $theme_row->lightbox_ctrl_btn_color; ?>;
192
  font-size: <?php echo $theme_row->lightbox_ctrl_btn_height; ?>px;
193
  margin: <?php echo $theme_row->lightbox_ctrl_btn_margin_top; ?>px <?php echo $theme_row->lightbox_ctrl_btn_margin_left; ?>px;
194
- opacity: <?php echo $theme_row->lightbox_ctrl_btn_transparent / 100; ?>;
195
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_ctrl_btn_transparent; ?>);
196
  }
197
  .bwg_toggle_btn {
198
  color: #<?php echo $theme_row->lightbox_ctrl_btn_color; ?>;
199
  font-size: <?php echo $theme_row->lightbox_toggle_btn_height; ?>px;
200
  margin: 0;
201
- opacity: <?php echo $theme_row->lightbox_ctrl_btn_transparent / 100; ?>;
202
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_ctrl_btn_transparent; ?>);
203
  padding: 0;
204
  }
@@ -211,7 +211,7 @@ class BWGViewGalleryBox {
211
  top: 0;
212
  }
213
  .bwg_ctrl_btn_container {
214
- background-color: rgba(<?php echo $rgb_lightbox_ctrl_cont_bg_color['red']; ?>, <?php echo $rgb_lightbox_ctrl_cont_bg_color['green']; ?>, <?php echo $rgb_lightbox_ctrl_cont_bg_color['blue']; ?>, <?php echo $theme_row->lightbox_ctrl_cont_transparent / 100; ?>);
215
  /*background: none repeat scroll 0 0 #<?php echo $theme_row->lightbox_ctrl_cont_bg_color; ?>;*/
216
  <?php
217
  if ($theme_row->lightbox_ctrl_btn_pos == 'top') {
@@ -228,8 +228,6 @@ class BWGViewGalleryBox {
228
  <?php
229
  }?>
230
  height: <?php echo $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top; ?>px;
231
- /*opacity: <?php echo $theme_row->lightbox_ctrl_cont_transparent / 100; ?>;
232
- filter: Alpha(opacity=<?php echo $theme_row->lightbox_ctrl_cont_transparent; ?>);*/
233
  position: absolute;
234
  text-align: <?php echo $theme_row->lightbox_ctrl_btn_align; ?>;
235
  width: 100%;
@@ -256,7 +254,7 @@ class BWGViewGalleryBox {
256
  left: 50%;
257
  line-height: 0;
258
  margin-left: -<?php echo $theme_row->lightbox_toggle_btn_width / 2; ?>px;
259
- opacity: <?php echo $theme_row->lightbox_ctrl_cont_transparent / 100; ?>;
260
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_ctrl_cont_transparent; ?>);
261
  position: absolute;
262
  text-align: center;
@@ -264,7 +262,7 @@ class BWGViewGalleryBox {
264
  z-index: 10150;
265
  }
266
  .bwg_close_btn {
267
- opacity: <?php echo $theme_row->lightbox_close_btn_transparent / 100; ?>;
268
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_close_btn_transparent; ?>);
269
  }
270
  .spider_popup_close {
@@ -301,7 +299,7 @@ class BWGViewGalleryBox {
301
  height: <?php echo $theme_row->lightbox_rl_btn_height; ?>px;
302
  font-size: <?php echo $theme_row->lightbox_rl_btn_size; ?>px;
303
  width: <?php echo $theme_row->lightbox_rl_btn_width; ?>px;
304
- opacity: <?php echo $theme_row->lightbox_rl_btn_transparent / 100; ?>;
305
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_rl_btn_transparent; ?>);
306
  }
307
  .bwg_ctrl_btn:hover,
@@ -512,7 +510,7 @@ class BWGViewGalleryBox {
512
  border: <?php echo $theme_row->lightbox_filmstrip_thumb_active_border_width; ?>px solid #<?php echo $theme_row->lightbox_filmstrip_thumb_active_border_color; ?>;
513
  }
514
  .bwg_thumb_deactive {
515
- opacity: <?php echo $theme_row->lightbox_filmstrip_thumb_deactive_transparent / 100; ?>;
516
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_filmstrip_thumb_deactive_transparent; ?>);
517
  }
518
  .bwg_filmstrip_thumbnail_img {
@@ -569,7 +567,7 @@ class BWGViewGalleryBox {
569
  margin: 4px;
570
  max-height: <?php echo $watermark_height; ?>px;
571
  max-width: <?php echo $watermark_width; ?>px;
572
- opacity: <?php echo $watermark_opacity / 100; ?>;
573
  filter: Alpha(opacity=<?php echo $watermark_opacity; ?>);
574
  position: relative;
575
  z-index: 10141;
@@ -581,7 +579,7 @@ class BWGViewGalleryBox {
581
  font-size: <?php echo $watermark_font_size; ?>px;
582
  font-family: <?php echo $watermark_font; ?>;
583
  color: #<?php echo $watermark_color; ?> !important;
584
- opacity: <?php echo $watermark_opacity / 100; ?>;
585
  filter: Alpha(opacity=<?php echo $watermark_opacity; ?>);
586
  position: relative;
587
  z-index: 10141;
@@ -649,7 +647,7 @@ class BWGViewGalleryBox {
649
  vertical-align: <?php echo $theme_row->lightbox_hit_pos; ?>;
650
  }
651
  .bwg_image_hit {
652
- background: rgba(<?php echo $rgb_bwg_image_hit_bg_color['red']; ?>, <?php echo $rgb_bwg_image_hit_bg_color['green']; ?>, <?php echo $rgb_bwg_image_hit_bg_color['blue']; ?>, <?php echo $theme_row->lightbox_hit_bg_transparent / 100; ?>);
653
  border: <?php echo $theme_row->lightbox_hit_border_width; ?>px <?php echo $theme_row->lightbox_hit_border_style; ?> #<?php echo $theme_row->lightbox_hit_border_color; ?>;
654
  border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
655
  <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_hit_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
@@ -665,7 +663,7 @@ class BWGViewGalleryBox {
665
  font-weight: <?php echo $theme_row->lightbox_hit_font_weight; ?>;
666
  }
667
  .bwg_image_info {
668
- background: rgba(<?php echo $rgb_bwg_image_info_bg_color['red']; ?>, <?php echo $rgb_bwg_image_info_bg_color['green']; ?>, <?php echo $rgb_bwg_image_info_bg_color['blue']; ?>, <?php echo $theme_row->lightbox_info_bg_transparent / 100; ?>);
669
  border: <?php echo $theme_row->lightbox_info_border_width; ?>px <?php echo $theme_row->lightbox_info_border_style; ?> #<?php echo $theme_row->lightbox_info_border_color; ?>;
670
  border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
671
  <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
@@ -958,10 +956,10 @@ class BWGViewGalleryBox {
958
  }
959
  if (width <= (jQuery(window).width() - comment_container_width)) {
960
  jQuery(".bwg_watermark_image").css({
961
- width: (jQuery(".spider_popup_wrap").width() - comment_container_width) * <?php echo $watermark_width / $image_width; ?>
962
  });
963
  jQuery(".bwg_watermark_text, .bwg_watermark_text:hover").css({
964
- fontSize: (jQuery(".spider_popup_wrap").width() - comment_container_width) * <?php echo $watermark_font_size / $image_width; ?>
965
  });
966
  }
967
  }
191
  color: #<?php echo $theme_row->lightbox_ctrl_btn_color; ?>;
192
  font-size: <?php echo $theme_row->lightbox_ctrl_btn_height; ?>px;
193
  margin: <?php echo $theme_row->lightbox_ctrl_btn_margin_top; ?>px <?php echo $theme_row->lightbox_ctrl_btn_margin_left; ?>px;
194
+ opacity: <?php echo number_format($theme_row->lightbox_ctrl_btn_transparent / 100, 2, ".", ""); ?>;
195
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_ctrl_btn_transparent; ?>);
196
  }
197
  .bwg_toggle_btn {
198
  color: #<?php echo $theme_row->lightbox_ctrl_btn_color; ?>;
199
  font-size: <?php echo $theme_row->lightbox_toggle_btn_height; ?>px;
200
  margin: 0;
201
+ opacity: <?php echo number_format($theme_row->lightbox_ctrl_btn_transparent / 100, 2, ".", ""); ?>;
202
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_ctrl_btn_transparent; ?>);
203
  padding: 0;
204
  }
211
  top: 0;
212
  }
213
  .bwg_ctrl_btn_container {
214
+ background-color: rgba(<?php echo $rgb_lightbox_ctrl_cont_bg_color['red']; ?>, <?php echo $rgb_lightbox_ctrl_cont_bg_color['green']; ?>, <?php echo $rgb_lightbox_ctrl_cont_bg_color['blue']; ?>, <?php echo number_format($theme_row->lightbox_ctrl_cont_transparent / 100, 2, ".", ""); ?>);
215
  /*background: none repeat scroll 0 0 #<?php echo $theme_row->lightbox_ctrl_cont_bg_color; ?>;*/
216
  <?php
217
  if ($theme_row->lightbox_ctrl_btn_pos == 'top') {
228
  <?php
229
  }?>
230
  height: <?php echo $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top; ?>px;
 
 
231
  position: absolute;
232
  text-align: <?php echo $theme_row->lightbox_ctrl_btn_align; ?>;
233
  width: 100%;
254
  left: 50%;
255
  line-height: 0;
256
  margin-left: -<?php echo $theme_row->lightbox_toggle_btn_width / 2; ?>px;
257
+ opacity: <?php echo number_format($theme_row->lightbox_ctrl_cont_transparent / 100, 2, ".", ""); ?>;
258
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_ctrl_cont_transparent; ?>);
259
  position: absolute;
260
  text-align: center;
262
  z-index: 10150;
263
  }
264
  .bwg_close_btn {
265
+ opacity: <?php echo number_format($theme_row->lightbox_close_btn_transparent / 100, 2, ".", ""); ?>;
266
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_close_btn_transparent; ?>);
267
  }
268
  .spider_popup_close {
299
  height: <?php echo $theme_row->lightbox_rl_btn_height; ?>px;
300
  font-size: <?php echo $theme_row->lightbox_rl_btn_size; ?>px;
301
  width: <?php echo $theme_row->lightbox_rl_btn_width; ?>px;
302
+ opacity: <?php echo number_format($theme_row->lightbox_rl_btn_transparent / 100, 2, ".", ""); ?>;
303
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_rl_btn_transparent; ?>);
304
  }
305
  .bwg_ctrl_btn:hover,
510
  border: <?php echo $theme_row->lightbox_filmstrip_thumb_active_border_width; ?>px solid #<?php echo $theme_row->lightbox_filmstrip_thumb_active_border_color; ?>;
511
  }
512
  .bwg_thumb_deactive {
513
+ opacity: <?php echo number_format($theme_row->lightbox_filmstrip_thumb_deactive_transparent / 100, 2, ".", ""); ?>;
514
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_filmstrip_thumb_deactive_transparent; ?>);
515
  }
516
  .bwg_filmstrip_thumbnail_img {
567
  margin: 4px;
568
  max-height: <?php echo $watermark_height; ?>px;
569
  max-width: <?php echo $watermark_width; ?>px;
570
+ opacity: <?php echo number_format($watermark_opacity / 100, 2, ".", ""); ?>;
571
  filter: Alpha(opacity=<?php echo $watermark_opacity; ?>);
572
  position: relative;
573
  z-index: 10141;
579
  font-size: <?php echo $watermark_font_size; ?>px;
580
  font-family: <?php echo $watermark_font; ?>;
581
  color: #<?php echo $watermark_color; ?> !important;
582
+ opacity: <?php echo number_format($watermark_opacity / 100, 2, ".", ""); ?>;
583
  filter: Alpha(opacity=<?php echo $watermark_opacity; ?>);
584
  position: relative;
585
  z-index: 10141;
647
  vertical-align: <?php echo $theme_row->lightbox_hit_pos; ?>;
648
  }
649
  .bwg_image_hit {
650
+ background: rgba(<?php echo $rgb_bwg_image_hit_bg_color['red']; ?>, <?php echo $rgb_bwg_image_hit_bg_color['green']; ?>, <?php echo $rgb_bwg_image_hit_bg_color['blue']; ?>, <?php echo number_format($theme_row->lightbox_hit_bg_transparent / 100, 2, ".", ""); ?>);
651
  border: <?php echo $theme_row->lightbox_hit_border_width; ?>px <?php echo $theme_row->lightbox_hit_border_style; ?> #<?php echo $theme_row->lightbox_hit_border_color; ?>;
652
  border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
653
  <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_hit_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
663
  font-weight: <?php echo $theme_row->lightbox_hit_font_weight; ?>;
664
  }
665
  .bwg_image_info {
666
+ background: rgba(<?php echo $rgb_bwg_image_info_bg_color['red']; ?>, <?php echo $rgb_bwg_image_info_bg_color['green']; ?>, <?php echo $rgb_bwg_image_info_bg_color['blue']; ?>, <?php echo number_format($theme_row->lightbox_info_bg_transparent / 100, 2, ".", ""); ?>);
667
  border: <?php echo $theme_row->lightbox_info_border_width; ?>px <?php echo $theme_row->lightbox_info_border_style; ?> #<?php echo $theme_row->lightbox_info_border_color; ?>;
668
  border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
669
  <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
956
  }
957
  if (width <= (jQuery(window).width() - comment_container_width)) {
958
  jQuery(".bwg_watermark_image").css({
959
+ width: ((jQuery(".spider_popup_wrap").width() - comment_container_width) * <?php echo $watermark_width / $image_width; ?>)
960
  });
961
  jQuery(".bwg_watermark_text, .bwg_watermark_text:hover").css({
962
+ fontSize: ((jQuery(".spider_popup_wrap").width() - comment_container_width) * <?php echo $watermark_font_size / $image_width; ?>)
963
  });
964
  }
965
  }
frontend/views/BWGViewImage_browser.php CHANGED
@@ -162,7 +162,7 @@ class BWGViewImage_browser {
162
  box-sizing: border-box;
163
  }
164
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_conteiner_<?php echo $bwg; ?>{
165
- background-color: rgba(<?php echo $image_browser_images_conteiner['red']; ?>, <?php echo $image_browser_images_conteiner['green']; ?>, <?php echo $image_browser_images_conteiner['blue']; ?>, <?php echo $theme_row->image_browser_full_transparent / 100; ?>);
166
  text-align: center;
167
  width: 100%;
168
  border-style: <?php echo $theme_row->image_browser_full_border_style;?>;
@@ -189,7 +189,7 @@ class BWGViewImage_browser {
189
  width:100%;
190
  }
191
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_<?php echo $bwg; ?> {
192
- background-color: rgba(<?php echo $bwg_image_browser_image['red']; ?>, <?php echo $bwg_image_browser_image['green']; ?>, <?php echo $bwg_image_browser_image['blue']; ?>, <?php echo $theme_row->image_browser_transparent / 100; ?>);
193
  text-align: center;
194
  /*display: inline-block;*/
195
  vertical-align: middle;
@@ -231,7 +231,7 @@ class BWGViewImage_browser {
231
  margin: 4px;
232
  font-family: <?php echo $params_array['watermark_font']; ?>;
233
  color: #<?php echo $params_array['watermark_color']; ?> !important;
234
- opacity: <?php echo $params_array['watermark_opacity'] / 100; ?>;
235
  filter: Alpha(opacity=<?php echo $params_array['watermark_opacity']; ?>);
236
  text-decoration: none;
237
  position: relative;
@@ -307,7 +307,7 @@ class BWGViewImage_browser {
307
  border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
308
  border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
309
  background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
310
- opacity: <?php echo $theme_row->page_nav_button_bg_transparent / 100; ?>;
311
  filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
312
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
313
  }
@@ -323,7 +323,7 @@ class BWGViewImage_browser {
323
  }
324
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
325
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
326
- opacity: <?php echo $theme_row->lightbox_overlay_bg_transparent / 100; ?>;
327
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
328
  }
329
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_desp_<?php echo $bwg; ?> {
@@ -362,7 +362,7 @@ class BWGViewImage_browser {
362
  font-size: <?php echo $params_array['watermark_font_size']; ?>px;
363
  font-family: <?php echo $params_array['watermark_font']; ?>;
364
  color: #<?php echo $params_array['watermark_color']; ?> !important;
365
- opacity: <?php echo $params_array['watermark_opacity'] / 100; ?>;
366
  filter: Alpha(opacity=<?php echo $params_array['watermark_opacity']; ?>);
367
  position: relative;
368
  z-index: 10141;
@@ -407,7 +407,7 @@ class BWGViewImage_browser {
407
  }
408
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_img_<?php echo $bwg; ?>{
409
  max-width: 100%;
410
- opacity: <?php echo $params_array['watermark_opacity'] / 100; ?>;
411
  filter: Alpha(opacity=<?php echo $params_array['watermark_opacity']; ?>);
412
  position: relative;
413
  z-index: 10141;
@@ -481,7 +481,7 @@ class BWGViewImage_browser {
481
  }
482
  if (!$is_video) {
483
  ?>
484
- <a style="position:relative;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? ('onclick="spider_createpopup(\'' . addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))) . '\', ' . $bwg . ', ' . $params['popup_width'] . ', ' . $params['popup_height'] . ', 1, \'testpopup\', 5); return false;"') : ('href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"')) ?>>
485
  <img class="bwg_image_browser_img_<?php echo $bwg; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->image_url; ?>" alt="<?php echo $image_row->alt; ?>" />
486
  </a>
487
  <?php
@@ -492,7 +492,7 @@ class BWGViewImage_browser {
492
  }
493
  ?>
494
  <script>
495
- setTimeout(function(){
496
  jQuery('#bwg_video_frame_<?php echo $bwg; ?>').height(jQuery('#bwg_video_frame_<?php echo $bwg; ?>').width() * 0.5625);
497
  if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() <= 108) {
498
  jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'none');
162
  box-sizing: border-box;
163
  }
164
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_conteiner_<?php echo $bwg; ?>{
165
+ background-color: rgba(<?php echo $image_browser_images_conteiner['red']; ?>, <?php echo $image_browser_images_conteiner['green']; ?>, <?php echo $image_browser_images_conteiner['blue']; ?>, <?php echo number_format($theme_row->image_browser_full_transparent / 100, 2, ".", ""); ?>);
166
  text-align: center;
167
  width: 100%;
168
  border-style: <?php echo $theme_row->image_browser_full_border_style;?>;
189
  width:100%;
190
  }
191
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_<?php echo $bwg; ?> {
192
+ background-color: rgba(<?php echo $bwg_image_browser_image['red']; ?>, <?php echo $bwg_image_browser_image['green']; ?>, <?php echo $bwg_image_browser_image['blue']; ?>, <?php echo number_format($theme_row->image_browser_transparent / 100, 2, ".", ""); ?>);
193
  text-align: center;
194
  /*display: inline-block;*/
195
  vertical-align: middle;
231
  margin: 4px;
232
  font-family: <?php echo $params_array['watermark_font']; ?>;
233
  color: #<?php echo $params_array['watermark_color']; ?> !important;
234
+ opacity: <?php echo number_format($params_array['watermark_opacity'] / 100, 2, ".", ""); ?>;
235
  filter: Alpha(opacity=<?php echo $params_array['watermark_opacity']; ?>);
236
  text-decoration: none;
237
  position: relative;
307
  border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
308
  border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
309
  background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
310
+ opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
311
  filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
312
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
313
  }
323
  }
324
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
325
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
326
+ opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
327
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
328
  }
329
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_desp_<?php echo $bwg; ?> {
362
  font-size: <?php echo $params_array['watermark_font_size']; ?>px;
363
  font-family: <?php echo $params_array['watermark_font']; ?>;
364
  color: #<?php echo $params_array['watermark_color']; ?> !important;
365
+ opacity: <?php echo number_format($params_array['watermark_opacity'] / 100, 2, ".", ""); ?>;
366
  filter: Alpha(opacity=<?php echo $params_array['watermark_opacity']; ?>);
367
  position: relative;
368
  z-index: 10141;
407
  }
408
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_img_<?php echo $bwg; ?>{
409
  max-width: 100%;
410
+ opacity: <?php echo number_format($params_array['watermark_opacity'] / 100, 2, ".", ""); ?>;
411
  filter: Alpha(opacity=<?php echo $params_array['watermark_opacity']; ?>);
412
  position: relative;
413
  z-index: 10141;
481
  }
482
  if (!$is_video) {
483
  ?>
484
+ <a style="position:relative;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? ('onclick="spider_createpopup(\'' . addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))) . '\', ' . $bwg . ', ' . $params['popup_width'] . ', ' . $params['popup_height'] . ', 1, \'testpopup\', 5); return false;"') : ($image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
485
  <img class="bwg_image_browser_img_<?php echo $bwg; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->image_url; ?>" alt="<?php echo $image_row->alt; ?>" />
486
  </a>
487
  <?php
492
  }
493
  ?>
494
  <script>
495
+ setTimeout(function() {
496
  jQuery('#bwg_video_frame_<?php echo $bwg; ?>').height(jQuery('#bwg_video_frame_<?php echo $bwg; ?>').width() * 0.5625);
497
  if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() <= 108) {
498
  jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'none');
frontend/views/BWGViewSlideshow.php CHANGED
@@ -202,11 +202,6 @@ class BWGViewSlideshow {
202
  vertical-align: middle;
203
  display: inline-block;
204
  }
205
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_prev_btn_<?php echo $bwg; ?>,
206
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_next_btn_<?php echo $bwg; ?> {
207
- /*opacity: <?php echo $theme_row->slideshow_close_btn_transparent / 100; ?>;
208
- filter: Alpha(opacity=<?php echo $theme_row->slideshow_close_btn_transparent; ?>);*/
209
- }
210
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_watermark_<?php echo $bwg; ?> {
211
  position: relative;
212
  z-index: 15;
@@ -307,7 +302,7 @@ class BWGViewSlideshow {
307
  position: absolute;
308
  top: 50%;
309
  /*z-index: 10135;*/
310
- opacity: <?php echo $theme_row->slideshow_close_btn_transparent / 100; ?>;
311
  filter: Alpha(opacity=<?php echo $theme_row->slideshow_close_btn_transparent; ?>);
312
  }
313
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_left-ico_<?php echo $bwg; ?>:hover,
@@ -365,7 +360,7 @@ class BWGViewSlideshow {
365
  border: <?php echo $theme_row->slideshow_filmstrip_thumb_active_border_width; ?>px solid #<?php echo $theme_row->slideshow_filmstrip_thumb_active_border_color; ?>;
366
  }
367
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_thumb_deactive_<?php echo $bwg; ?> {
368
- opacity: <?php echo $theme_row->slideshow_filmstrip_thumb_deactive_transparent / 100; ?>;
369
  filter: Alpha(opacity=<?php echo $theme_row->slideshow_filmstrip_thumb_deactive_transparent; ?>);
370
  }
371
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_thumbnail_img_<?php echo $bwg; ?> {
@@ -438,7 +433,7 @@ class BWGViewSlideshow {
438
  margin: 4px !important;
439
  max-height: <?php echo $watermark_height; ?>px;
440
  max-width: <?php echo $watermark_width; ?>px;
441
- opacity: <?php echo $watermark_opacity / 100; ?>;
442
  filter: Alpha(opacity=<?php echo $watermark_opacity; ?>);
443
  position: relative;
444
  z-index: 15;
@@ -450,7 +445,7 @@ class BWGViewSlideshow {
450
  font-size: <?php echo $watermark_font_size; ?>px;
451
  font-family: <?php echo $watermark_font; ?>;
452
  color: #<?php echo $watermark_color; ?> !important;
453
- opacity: <?php echo $watermark_opacity / 100; ?>;
454
  filter: Alpha(opacity=<?php echo $watermark_opacity; ?>);
455
  position: relative;
456
  z-index: 15;
@@ -460,7 +455,7 @@ class BWGViewSlideshow {
460
  font-size: <?php echo $theme_row->slideshow_title_font_size; ?>px;
461
  font-family: <?php echo $theme_row->slideshow_title_font; ?>;
462
  color: #<?php echo $theme_row->slideshow_title_color; ?> !important;
463
- opacity: <?php echo $theme_row->slideshow_title_opacity / 100; ?>;
464
  filter: Alpha(opacity=<?php echo $theme_row->slideshow_title_opacity; ?>);
465
  position: relative;
466
  z-index: 11;
@@ -478,7 +473,7 @@ class BWGViewSlideshow {
478
  font-size: <?php echo $theme_row->slideshow_description_font_size; ?>px;
479
  font-family: <?php echo $theme_row->slideshow_description_font; ?>;
480
  color: #<?php echo $theme_row->slideshow_description_color; ?> !important;
481
- opacity: <?php echo $theme_row->slideshow_description_opacity / 100; ?>;
482
  filter: Alpha(opacity=<?php echo $theme_row->slideshow_description_opacity; ?>);
483
  position: relative;
484
  z-index: 15;
202
  vertical-align: middle;
203
  display: inline-block;
204
  }
 
 
 
 
 
205
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_watermark_<?php echo $bwg; ?> {
206
  position: relative;
207
  z-index: 15;
302
  position: absolute;
303
  top: 50%;
304
  /*z-index: 10135;*/
305
+ opacity: <?php echo number_format($theme_row->slideshow_close_btn_transparent / 100, 2, ".", ""); ?>;
306
  filter: Alpha(opacity=<?php echo $theme_row->slideshow_close_btn_transparent; ?>);
307
  }
308
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_left-ico_<?php echo $bwg; ?>:hover,
360
  border: <?php echo $theme_row->slideshow_filmstrip_thumb_active_border_width; ?>px solid #<?php echo $theme_row->slideshow_filmstrip_thumb_active_border_color; ?>;
361
  }
362
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_thumb_deactive_<?php echo $bwg; ?> {
363
+ opacity: <?php echo number_format($theme_row->slideshow_filmstrip_thumb_deactive_transparent / 100, 2, ".", ""); ?>;
364
  filter: Alpha(opacity=<?php echo $theme_row->slideshow_filmstrip_thumb_deactive_transparent; ?>);
365
  }
366
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_thumbnail_img_<?php echo $bwg; ?> {
433
  margin: 4px !important;
434
  max-height: <?php echo $watermark_height; ?>px;
435
  max-width: <?php echo $watermark_width; ?>px;
436
+ opacity: <?php echo number_format($watermark_opacity / 100, 2, ".", ""); ?>;
437
  filter: Alpha(opacity=<?php echo $watermark_opacity; ?>);
438
  position: relative;
439
  z-index: 15;
445
  font-size: <?php echo $watermark_font_size; ?>px;
446
  font-family: <?php echo $watermark_font; ?>;
447
  color: #<?php echo $watermark_color; ?> !important;
448
+ opacity: <?php echo number_format($watermark_opacity / 100, 2, ".", ""); ?>;
449
  filter: Alpha(opacity=<?php echo $watermark_opacity; ?>);
450
  position: relative;
451
  z-index: 15;
455
  font-size: <?php echo $theme_row->slideshow_title_font_size; ?>px;
456
  font-family: <?php echo $theme_row->slideshow_title_font; ?>;
457
  color: #<?php echo $theme_row->slideshow_title_color; ?> !important;
458
+ opacity: <?php echo number_format($theme_row->slideshow_title_opacity / 100, 2, ".", ""); ?>;
459
  filter: Alpha(opacity=<?php echo $theme_row->slideshow_title_opacity; ?>);
460
  position: relative;
461
  z-index: 11;
473
  font-size: <?php echo $theme_row->slideshow_description_font_size; ?>px;
474
  font-family: <?php echo $theme_row->slideshow_description_font; ?>;
475
  color: #<?php echo $theme_row->slideshow_description_color; ?> !important;
476
+ opacity: <?php echo number_format($theme_row->slideshow_description_opacity / 100, 2, ".", ""); ?>;
477
  filter: Alpha(opacity=<?php echo $theme_row->slideshow_description_opacity; ?>);
478
  position: relative;
479
  z-index: 15;
frontend/views/BWGViewThumbnails.php CHANGED
@@ -73,6 +73,7 @@ class BWGViewThumbnails {
73
  $from = (isset($params['from']) ? esc_html($params['from']) : 0);
74
  $sort_direction = ' ' . $params['order_by'] . ' ';
75
  $options_row = $this->model->get_options_row_data();
 
76
  if ($from) {
77
  $params['gallery_id'] = $params['id'];
78
  $params['images_per_page'] = $params['count'];
@@ -139,7 +140,7 @@ class BWGViewThumbnails {
139
  return;
140
  }
141
  $image_rows = $this->model->get_image_rows_data($params['gallery_id'], $params['images_per_page'], $params['sort_by'], $bwg, $type, $sort_direction);
142
- $images_count = count($image_rows);
143
  if (!$image_rows) {
144
  echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
145
  }
@@ -162,7 +163,7 @@ class BWGViewThumbnails {
162
  height: <?php echo $params['thumb_height']; ?>px;
163
  margin: <?php echo $theme_row->thumb_margin; ?>px;
164
  padding: <?php echo $theme_row->thumb_padding; ?>px;
165
- opacity: <?php echo $theme_row->thumb_transparent / 100; ?>;
166
  filter: Alpha(opacity=<?php echo $theme_row->thumb_transparent; ?>);
167
  text-align: center;
168
  vertical-align: middle;
@@ -193,7 +194,7 @@ class BWGViewThumbnails {
193
  width: <?php echo $params['thumb_width']; ?>px;
194
  }
195
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumbnails_<?php echo $bwg; ?> {
196
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo $theme_row->thumb_bg_transparent / 100; ?>);
197
  display: inline-block;
198
  font-size: 0;
199
  max-width: <?php echo $params['image_column_number'] * ($params['thumb_width'] + 2 * (2 + $theme_row->thumb_margin + $theme_row->thumb_padding + $theme_row->thumb_border_width)); ?>px;
@@ -306,7 +307,7 @@ class BWGViewThumbnails {
306
  border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
307
  border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
308
  background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
309
- opacity: <?php echo $theme_row->page_nav_button_bg_transparent / 100; ?>;
310
  filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
311
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
312
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
@@ -324,9 +325,24 @@ class BWGViewThumbnails {
324
  }
325
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
326
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
327
- opacity: <?php echo $theme_row->lightbox_overlay_bg_transparent / 100; ?>;
328
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
329
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
330
  </style>
331
  <div id="bwg_container1_<?php echo $bwg; ?>">
332
  <div id="bwg_container2_<?php echo $bwg; ?>">
@@ -419,7 +435,7 @@ class BWGViewThumbnails {
419
  $thumb_left = ($params['thumb_width'] - $image_thumb_width) / 2;
420
  $thumb_top = ($params['thumb_height'] - $image_thumb_height) / 2;
421
  ?>
422
- <a style="font-size: 0;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? ('onclick="spider_createpopup(\'' . addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))) . '\', ' . $bwg . ', ' . $params['popup_width'] . ', ' . $params['popup_height'] . ', 1, \'testpopup\', 5); return false;"') : ('href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"')) ?>>
423
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
424
  <?php
425
  if ($params['image_title'] == 'show' and $theme_row->thumb_title_pos == 'top') {
@@ -434,8 +450,14 @@ class BWGViewThumbnails {
434
  ?>
435
  <span class="bwg_standart_thumb_spun1_<?php echo $bwg; ?>">
436
  <span class="bwg_standart_thumb_spun2_<?php echo $bwg; ?>">
437
- <img class="bwg_standart_thumb_img_<?php echo $bwg; ?>" style="max-height: none !important; max-width: none !important; padding: 0 !important; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo ($is_video ? "" : site_url() . '/' . $WD_BWG_UPLOAD_DIR) . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" />
438
  <?php
 
 
 
 
 
 
 
439
  if ($params['image_title'] == 'hover') {
440
  ?>
441
  <span class="bwg_title_spun1_<?php echo $bwg; ?>">
@@ -446,6 +468,7 @@ class BWGViewThumbnails {
446
  <?php
447
  }
448
  ?>
 
449
  </span>
450
  </span>
451
  <?php
73
  $from = (isset($params['from']) ? esc_html($params['from']) : 0);
74
  $sort_direction = ' ' . $params['order_by'] . ' ';
75
  $options_row = $this->model->get_options_row_data();
76
+ $play_icon = $options_row->play_icon;
77
  if ($from) {
78
  $params['gallery_id'] = $params['id'];
79
  $params['images_per_page'] = $params['count'];
140
  return;
141
  }
142
  $image_rows = $this->model->get_image_rows_data($params['gallery_id'], $params['images_per_page'], $params['sort_by'], $bwg, $type, $sort_direction);
143
+ $images_count = count($image_rows);
144
  if (!$image_rows) {
145
  echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
146
  }
163
  height: <?php echo $params['thumb_height']; ?>px;
164
  margin: <?php echo $theme_row->thumb_margin; ?>px;
165
  padding: <?php echo $theme_row->thumb_padding; ?>px;
166
+ opacity: <?php echo number_format($theme_row->thumb_transparent / 100, 2, ".", ""); ?>;
167
  filter: Alpha(opacity=<?php echo $theme_row->thumb_transparent; ?>);
168
  text-align: center;
169
  vertical-align: middle;
194
  width: <?php echo $params['thumb_width']; ?>px;
195
  }
196
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumbnails_<?php echo $bwg; ?> {
197
+ background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->thumb_bg_transparent / 100, 2, ".", ""); ?>);
198
  display: inline-block;
199
  font-size: 0;
200
  max-width: <?php echo $params['image_column_number'] * ($params['thumb_width'] + 2 * (2 + $theme_row->thumb_margin + $theme_row->thumb_padding + $theme_row->thumb_border_width)); ?>px;
307
  border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
308
  border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
309
  background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
310
+ opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
311
  filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
312
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
313
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
325
  }
326
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
327
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
328
+ opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
329
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
330
  }
331
+ .bwg_play_icon_spun_<?php echo $bwg; ?> {
332
+ width: inherit;
333
+ height: inherit;
334
+ display: table;
335
+ position: absolute;
336
+ }
337
+ .bwg_play_icon_<?php echo $bwg; ?> {
338
+ color: #<?php echo $theme_row->thumb_title_font_color; ?>;
339
+ font-size: <?php echo 2 * $theme_row->thumb_title_font_size; ?>px;
340
+ vertical-align: middle;
341
+ display: table-cell !important;
342
+ z-index: 1;
343
+ text-align: center;
344
+ margin: 0 auto;
345
+ }
346
  </style>
347
  <div id="bwg_container1_<?php echo $bwg; ?>">
348
  <div id="bwg_container2_<?php echo $bwg; ?>">
435
  $thumb_left = ($params['thumb_width'] - $image_thumb_width) / 2;
436
  $thumb_top = ($params['thumb_height'] - $image_thumb_height) / 2;
437
  ?>
438
+ <a style="font-size: 0;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? ('onclick="spider_createpopup(\'' . addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))) . '\', ' . $bwg . ', ' . $params['popup_width'] . ', ' . $params['popup_height'] . ', 1, \'testpopup\', 5); return false;"') : ($image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
439
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
440
  <?php
441
  if ($params['image_title'] == 'show' and $theme_row->thumb_title_pos == 'top') {
450
  ?>
451
  <span class="bwg_standart_thumb_spun1_<?php echo $bwg; ?>">
452
  <span class="bwg_standart_thumb_spun2_<?php echo $bwg; ?>">
 
453
  <?php
454
+ if ($play_icon && $is_video) {
455
+ ?>
456
+ <span class="bwg_play_icon_spun_<?php echo $bwg; ?>">
457
+ <i title="<?php echo __('Play', 'bwg'); ?>" class="fa fa-play bwg_play_icon_<?php echo $bwg; ?>"></i>
458
+ </span>
459
+ <?php
460
+ }
461
  if ($params['image_title'] == 'hover') {
462
  ?>
463
  <span class="bwg_title_spun1_<?php echo $bwg; ?>">
468
  <?php
469
  }
470
  ?>
471
+ <img class="bwg_standart_thumb_img_<?php echo $bwg; ?>" style="max-height: none !important; max-width: none !important; padding: 0 !important; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo ($is_video ? "" : site_url() . '/' . $WD_BWG_UPLOAD_DIR) . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" />
472
  </span>
473
  </span>
474
  <?php
js/Jcrop-1902/css/Jcrop.gif DELETED
Binary file
js/Jcrop-1902/css/jquery.Jcrop.css DELETED
@@ -1,165 +0,0 @@
1
- /* jquery.Jcrop.css v0.9.12 - MIT License */
2
- /*
3
- The outer-most container in a typical Jcrop instance
4
- If you are having difficulty with formatting related to styles
5
- on a parent element, place any fixes here or in a like selector
6
-
7
- You can also style this element if you want to add a border, etc
8
- A better method for styling can be seen below with .jcrop-light
9
- (Add a class to the holder and style elements for that extended class)
10
- */
11
- .jcrop-holder {
12
- direction: ltr;
13
- text-align: left;
14
- }
15
- /* Selection Border */
16
- .jcrop-vline,
17
- .jcrop-hline {
18
- background: #ffffff url("Jcrop.gif");
19
- font-size: 0;
20
- position: absolute;
21
- }
22
- .jcrop-vline {
23
- height: 100%;
24
- width: 1px !important;
25
- }
26
- .jcrop-vline.right {
27
- right: 0;
28
- }
29
- .jcrop-hline {
30
- height: 1px !important;
31
- width: 100%;
32
- }
33
- .jcrop-hline.bottom {
34
- bottom: 0;
35
- }
36
- /* Invisible click targets */
37
- .jcrop-tracker {
38
- height: 100%;
39
- width: 100%;
40
- /* "turn off" link highlight */
41
- -webkit-tap-highlight-color: transparent;
42
- /* disable callout, image save panel */
43
- -webkit-touch-callout: none;
44
- /* disable cut copy paste */
45
- -webkit-user-select: none;
46
- }
47
- /* Selection Handles */
48
- .jcrop-handle {
49
- background-color: #333333;
50
- border: 1px #eeeeee solid;
51
- width: 7px;
52
- height: 7px;
53
- font-size: 1px;
54
- }
55
- .jcrop-handle.ord-n {
56
- left: 50%;
57
- margin-left: -4px;
58
- margin-top: -4px;
59
- top: 0;
60
- }
61
- .jcrop-handle.ord-s {
62
- bottom: 0;
63
- left: 50%;
64
- margin-bottom: -4px;
65
- margin-left: -4px;
66
- }
67
- .jcrop-handle.ord-e {
68
- margin-right: -4px;
69
- margin-top: -4px;
70
- right: 0;
71
- top: 50%;
72
- }
73
- .jcrop-handle.ord-w {
74
- left: 0;
75
- margin-left: -4px;
76
- margin-top: -4px;
77
- top: 50%;
78
- }
79
- .jcrop-handle.ord-nw {
80
- left: 0;
81
- margin-left: -4px;
82
- margin-top: -4px;
83
- top: 0;
84
- }
85
- .jcrop-handle.ord-ne {
86
- margin-right: -4px;
87
- margin-top: -4px;
88
- right: 0;
89
- top: 0;
90
- }
91
- .jcrop-handle.ord-se {
92
- bottom: 0;
93
- margin-bottom: -4px;
94
- margin-right: -4px;
95
- right: 0;
96
- }
97
- .jcrop-handle.ord-sw {
98
- bottom: 0;
99
- left: 0;
100
- margin-bottom: -4px;
101
- margin-left: -4px;
102
- }
103
- /* Dragbars */
104
- .jcrop-dragbar.ord-n,
105
- .jcrop-dragbar.ord-s {
106
- height: 7px;
107
- width: 100%;
108
- }
109
- .jcrop-dragbar.ord-e,
110
- .jcrop-dragbar.ord-w {
111
- height: 100%;
112
- width: 7px;
113
- }
114
- .jcrop-dragbar.ord-n {
115
- margin-top: -4px;
116
- }
117
- .jcrop-dragbar.ord-s {
118
- bottom: 0;
119
- margin-bottom: -4px;
120
- }
121
- .jcrop-dragbar.ord-e {
122
- margin-right: -4px;
123
- right: 0;
124
- }
125
- .jcrop-dragbar.ord-w {
126
- margin-left: -4px;
127
- }
128
- /* The "jcrop-light" class/extension */
129
- .jcrop-light .jcrop-vline,
130
- .jcrop-light .jcrop-hline {
131
- background: #ffffff;
132
- filter: alpha(opacity=70) !important;
133
- opacity: .70!important;
134
- }
135
- .jcrop-light .jcrop-handle {
136
- -moz-border-radius: 3px;
137
- -webkit-border-radius: 3px;
138
- background-color: #000000;
139
- border-color: #ffffff;
140
- border-radius: 3px;
141
- }
142
- /* The "jcrop-dark" class/extension */
143
- .jcrop-dark .jcrop-vline,
144
- .jcrop-dark .jcrop-hline {
145
- background: #000000;
146
- filter: alpha(opacity=70) !important;
147
- opacity: 0.7 !important;
148
- }
149
- .jcrop-dark .jcrop-handle {
150
- -moz-border-radius: 3px;
151
- -webkit-border-radius: 3px;
152
- background-color: #ffffff;
153
- border-color: #000000;
154
- border-radius: 3px;
155
- }
156
- /* Simple macro to turn off the antlines */
157
- .solid-line .jcrop-vline,
158
- .solid-line .jcrop-hline {
159
- background: #ffffff;
160
- }
161
- /* Fix for twitter bootstrap et al. */
162
- .jcrop-holder img,
163
- img.jcrop-preview {
164
- max-width: none;
165
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/Jcrop-1902/js/jquery.Jcrop.min.js DELETED
@@ -1,22 +0,0 @@
1
- /**
2
- * jquery.Jcrop.min.js v0.9.12 (build:20130202)
3
- * jQuery Image Cropping Plugin - released under MIT License
4
- * Copyright (c) 2008-2013 Tapmodo Interactive LLC
5
- * https://github.com/tapmodo/Jcrop
6
- */
7
- (function(a){a.Jcrop=function(b,c){function i(a){return Math.round(a)+"px"}function j(a){return d.baseClass+"-"+a}function k(){return a.fx.step.hasOwnProperty("backgroundColor")}function l(b){var c=a(b).offset();return[c.left,c.top]}function m(a){return[a.pageX-e[0],a.pageY-e[1]]}function n(b){typeof b!="object"&&(b={}),d=a.extend(d,b),a.each(["onChange","onSelect","onRelease","onDblClick"],function(a,b){typeof d[b]!="function"&&(d[b]=function(){})})}function o(a,b,c){e=l(D),bc.setCursor(a==="move"?a:a+"-resize");if(a==="move")return bc.activateHandlers(q(b),v,c);var d=_.getFixed(),f=r(a),g=_.getCorner(r(f));_.setPressed(_.getCorner(f)),_.setCurrent(g),bc.activateHandlers(p(a,d),v,c)}function p(a,b){return function(c){if(!d.aspectRatio)switch(a){case"e":c[1]=b.y2;break;case"w":c[1]=b.y2;break;case"n":c[0]=b.x2;break;case"s":c[0]=b.x2}else switch(a){case"e":c[1]=b.y+1;break;case"w":c[1]=b.y+1;break;case"n":c[0]=b.x+1;break;case"s":c[0]=b.x+1}_.setCurrent(c),bb.update()}}function q(a){var b=a;return bd.watchKeys
8
- (),function(a){_.moveOffset([a[0]-b[0],a[1]-b[1]]),b=a,bb.update()}}function r(a){switch(a){case"n":return"sw";case"s":return"nw";case"e":return"nw";case"w":return"ne";case"ne":return"sw";case"nw":return"se";case"se":return"nw";case"sw":return"ne"}}function s(a){return function(b){return d.disabled?!1:a==="move"&&!d.allowMove?!1:(e=l(D),W=!0,o(a,m(b)),b.stopPropagation(),b.preventDefault(),!1)}}function t(a,b,c){var d=a.width(),e=a.height();d>b&&b>0&&(d=b,e=b/a.width()*a.height()),e>c&&c>0&&(e=c,d=c/a.height()*a.width()),T=a.width()/d,U=a.height()/e,a.width(d).height(e)}function u(a){return{x:a.x*T,y:a.y*U,x2:a.x2*T,y2:a.y2*U,w:a.w*T,h:a.h*U}}function v(a){var b=_.getFixed();b.w>d.minSelect[0]&&b.h>d.minSelect[1]?(bb.enableHandles(),bb.done()):bb.release(),bc.setCursor(d.allowSelect?"crosshair":"default")}function w(a){if(d.disabled)return!1;if(!d.allowSelect)return!1;W=!0,e=l(D),bb.disableHandles(),bc.setCursor("crosshair");var b=m(a);return _.setPressed(b),bb.update(),bc.activateHandlers(x,v,a.type.substring
9
- (0,5)==="touch"),bd.watchKeys(),a.stopPropagation(),a.preventDefault(),!1}function x(a){_.setCurrent(a),bb.update()}function y(){var b=a("<div></div>").addClass(j("tracker"));return g&&b.css({opacity:0,backgroundColor:"white"}),b}function be(a){G.removeClass().addClass(j("holder")).addClass(a)}function bf(a,b){function t(){window.setTimeout(u,l)}var c=a[0]/T,e=a[1]/U,f=a[2]/T,g=a[3]/U;if(X)return;var h=_.flipCoords(c,e,f,g),i=_.getFixed(),j=[i.x,i.y,i.x2,i.y2],k=j,l=d.animationDelay,m=h[0]-j[0],n=h[1]-j[1],o=h[2]-j[2],p=h[3]-j[3],q=0,r=d.swingSpeed;c=k[0],e=k[1],f=k[2],g=k[3],bb.animMode(!0);var s,u=function(){return function(){q+=(100-q)/r,k[0]=Math.round(c+q/100*m),k[1]=Math.round(e+q/100*n),k[2]=Math.round(f+q/100*o),k[3]=Math.round(g+q/100*p),q>=99.8&&(q=100),q<100?(bh(k),t()):(bb.done(),bb.animMode(!1),typeof b=="function"&&b.call(bs))}}();t()}function bg(a){bh([a[0]/T,a[1]/U,a[2]/T,a[3]/U]),d.onSelect.call(bs,u(_.getFixed())),bb.enableHandles()}function bh(a){_.setPressed([a[0],a[1]]),_.setCurrent([a[2],
10
- a[3]]),bb.update()}function bi(){return u(_.getFixed())}function bj(){return _.getFixed()}function bk(a){n(a),br()}function bl(){d.disabled=!0,bb.disableHandles(),bb.setCursor("default"),bc.setCursor("default")}function bm(){d.disabled=!1,br()}function bn(){bb.done(),bc.activateHandlers(null,null)}function bo(){G.remove(),A.show(),A.css("visibility","visible"),a(b).removeData("Jcrop")}function bp(a,b){bb.release(),bl();var c=new Image;c.onload=function(){var e=c.width,f=c.height,g=d.boxWidth,h=d.boxHeight;D.width(e).height(f),D.attr("src",a),H.attr("src",a),t(D,g,h),E=D.width(),F=D.height(),H.width(E).height(F),M.width(E+L*2).height(F+L*2),G.width(E).height(F),ba.resize(E,F),bm(),typeof b=="function"&&b.call(bs)},c.src=a}function bq(a,b,c){var e=b||d.bgColor;d.bgFade&&k()&&d.fadeTime&&!c?a.animate({backgroundColor:e},{queue:!1,duration:d.fadeTime}):a.css("backgroundColor",e)}function br(a){d.allowResize?a?bb.enableOnly():bb.enableHandles():bb.disableHandles(),bc.setCursor(d.allowSelect?"crosshair":"default"),bb
11
- .setCursor(d.allowMove?"move":"default"),d.hasOwnProperty("trueSize")&&(T=d.trueSize[0]/E,U=d.trueSize[1]/F),d.hasOwnProperty("setSelect")&&(bg(d.setSelect),bb.done(),delete d.setSelect),ba.refresh(),d.bgColor!=N&&(bq(d.shade?ba.getShades():G,d.shade?d.shadeColor||d.bgColor:d.bgColor),N=d.bgColor),O!=d.bgOpacity&&(O=d.bgOpacity,d.shade?ba.refresh():bb.setBgOpacity(O)),P=d.maxSize[0]||0,Q=d.maxSize[1]||0,R=d.minSize[0]||0,S=d.minSize[1]||0,d.hasOwnProperty("outerImage")&&(D.attr("src",d.outerImage),delete d.outerImage),bb.refresh()}var d=a.extend({},a.Jcrop.defaults),e,f=navigator.userAgent.toLowerCase(),g=/msie/.test(f),h=/msie [1-6]\./.test(f);typeof b!="object"&&(b=a(b)[0]),typeof c!="object"&&(c={}),n(c);var z={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},A=a(b),B=!0;if(b.tagName=="IMG"){if(A[0].width!=0&&A[0].height!=0)A.width(A[0].width),A.height(A[0].height);else{var C=new Image;C.src=A[0].src,A.width(C.width),A.height(C.height)}var D=A.clone().removeAttr("id").
12
- css(z).show();D.width(A.width()),D.height(A.height()),A.after(D).hide()}else D=A.css(z).show(),B=!1,d.shade===null&&(d.shade=!0);t(D,d.boxWidth,d.boxHeight);var E=D.width(),F=D.height(),G=a("<div />").width(E).height(F).addClass(j("holder")).css({position:"relative",backgroundColor:d.bgColor}).insertAfter(A).append(D);d.addClass&&G.addClass(d.addClass);var H=a("<div />"),I=a("<div />").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),J=a("<div />").width("100%").height("100%").css("zIndex",320),K=a("<div />").css({position:"absolute",zIndex:600}).dblclick(function(){var a=_.getFixed();d.onDblClick.call(bs,a)}).insertBefore(D).append(I,J);B&&(H=a("<img />").attr("src",D.attr("src")).css(z).width(E).height(F),I.append(H)),h&&K.css({overflowY:"hidden"});var L=d.boundary,M=y().width(E+L*2).height(F+L*2).css({position:"absolute",top:i(-L),left:i(-L),zIndex:290}).mousedown(w),N=d.bgColor,O=d.bgOpacity,P,Q,R,S,T,U,V=!0,W,X,Y;e=l(D);var Z=function(){function a(){var a={},b=["touchstart"
13
- ,"touchmove","touchend"],c=document.createElement("div"),d;try{for(d=0;d<b.length;d++){var e=b[d];e="on"+e;var f=e in c;f||(c.setAttribute(e,"return;"),f=typeof c[e]=="function"),a[b[d]]=f}return a.touchstart&&a.touchend&&a.touchmove}catch(g){return!1}}function b(){return d.touchSupport===!0||d.touchSupport===!1?d.touchSupport:a()}return{createDragger:function(a){return function(b){return d.disabled?!1:a==="move"&&!d.allowMove?!1:(e=l(D),W=!0,o(a,m(Z.cfilter(b)),!0),b.stopPropagation(),b.preventDefault(),!1)}},newSelection:function(a){return w(Z.cfilter(a))},cfilter:function(a){return a.pageX=a.originalEvent.changedTouches[0].pageX,a.pageY=a.originalEvent.changedTouches[0].pageY,a},isSupported:a,support:b()}}(),_=function(){function h(d){d=n(d),c=a=d[0],e=b=d[1]}function i(a){a=n(a),f=a[0]-c,g=a[1]-e,c=a[0],e=a[1]}function j(){return[f,g]}function k(d){var f=d[0],g=d[1];0>a+f&&(f-=f+a),0>b+g&&(g-=g+b),F<e+g&&(g+=F-(e+g)),E<c+f&&(f+=E-(c+f)),a+=f,c+=f,b+=g,e+=g}function l(a){var b=m();switch(a){case"ne":return[
14
- b.x2,b.y];case"nw":return[b.x,b.y];case"se":return[b.x2,b.y2];case"sw":return[b.x,b.y2]}}function m(){if(!d.aspectRatio)return p();var f=d.aspectRatio,g=d.minSize[0]/T,h=d.maxSize[0]/T,i=d.maxSize[1]/U,j=c-a,k=e-b,l=Math.abs(j),m=Math.abs(k),n=l/m,r,s,t,u;return h===0&&(h=E*10),i===0&&(i=F*10),n<f?(s=e,t=m*f,r=j<0?a-t:t+a,r<0?(r=0,u=Math.abs((r-a)/f),s=k<0?b-u:u+b):r>E&&(r=E,u=Math.abs((r-a)/f),s=k<0?b-u:u+b)):(r=c,u=l/f,s=k<0?b-u:b+u,s<0?(s=0,t=Math.abs((s-b)*f),r=j<0?a-t:t+a):s>F&&(s=F,t=Math.abs(s-b)*f,r=j<0?a-t:t+a)),r>a?(r-a<g?r=a+g:r-a>h&&(r=a+h),s>b?s=b+(r-a)/f:s=b-(r-a)/f):r<a&&(a-r<g?r=a-g:a-r>h&&(r=a-h),s>b?s=b+(a-r)/f:s=b-(a-r)/f),r<0?(a-=r,r=0):r>E&&(a-=r-E,r=E),s<0?(b-=s,s=0):s>F&&(b-=s-F,s=F),q(o(a,b,r,s))}function n(a){return a[0]<0&&(a[0]=0),a[1]<0&&(a[1]=0),a[0]>E&&(a[0]=E),a[1]>F&&(a[1]=F),[Math.round(a[0]),Math.round(a[1])]}function o(a,b,c,d){var e=a,f=c,g=b,h=d;return c<a&&(e=c,f=a),d<b&&(g=d,h=b),[e,g,f,h]}function p(){var d=c-a,f=e-b,g;return P&&Math.abs(d)>P&&(c=d>0?a+P:a-P),Q&&Math.abs
15
- (f)>Q&&(e=f>0?b+Q:b-Q),S/U&&Math.abs(f)<S/U&&(e=f>0?b+S/U:b-S/U),R/T&&Math.abs(d)<R/T&&(c=d>0?a+R/T:a-R/T),a<0&&(c-=a,a-=a),b<0&&(e-=b,b-=b),c<0&&(a-=c,c-=c),e<0&&(b-=e,e-=e),c>E&&(g=c-E,a-=g,c-=g),e>F&&(g=e-F,b-=g,e-=g),a>E&&(g=a-F,e-=g,b-=g),b>F&&(g=b-F,e-=g,b-=g),q(o(a,b,c,e))}function q(a){return{x:a[0],y:a[1],x2:a[2],y2:a[3],w:a[2]-a[0],h:a[3]-a[1]}}var a=0,b=0,c=0,e=0,f,g;return{flipCoords:o,setPressed:h,setCurrent:i,getOffset:j,moveOffset:k,getCorner:l,getFixed:m}}(),ba=function(){function f(a,b){e.left.css({height:i(b)}),e.right.css({height:i(b)})}function g(){return h(_.getFixed())}function h(a){e.top.css({left:i(a.x),width:i(a.w),height:i(a.y)}),e.bottom.css({top:i(a.y2),left:i(a.x),width:i(a.w),height:i(F-a.y2)}),e.right.css({left:i(a.x2),width:i(E-a.x2)}),e.left.css({width:i(a.x)})}function j(){return a("<div />").css({position:"absolute",backgroundColor:d.shadeColor||d.bgColor}).appendTo(c)}function k(){b||(b=!0,c.insertBefore(D),g(),bb.setBgOpacity(1,0,1),H.hide(),l(d.shadeColor||d.bgColor,1),bb.
16
- isAwake()?n(d.bgOpacity,1):n(1,1))}function l(a,b){bq(p(),a,b)}function m(){b&&(c.remove(),H.show(),b=!1,bb.isAwake()?bb.setBgOpacity(d.bgOpacity,1,1):(bb.setBgOpacity(1,1,1),bb.disableHandles()),bq(G,0,1))}function n(a,e){b&&(d.bgFade&&!e?c.animate({opacity:1-a},{queue:!1,duration:d.fadeTime}):c.css({opacity:1-a}))}function o(){d.shade?k():m(),bb.isAwake()&&n(d.bgOpacity)}function p(){return c.children()}var b=!1,c=a("<div />").css({position:"absolute",zIndex:240,opacity:0}),e={top:j(),left:j().height(F),right:j().height(F),bottom:j()};return{update:g,updateRaw:h,getShades:p,setBgColor:l,enable:k,disable:m,resize:f,refresh:o,opacity:n}}(),bb=function(){function k(b){var c=a("<div />").css({position:"absolute",opacity:d.borderOpacity}).addClass(j(b));return I.append(c),c}function l(b,c){var d=a("<div />").mousedown(s(b)).css({cursor:b+"-resize",position:"absolute",zIndex:c}).addClass("ord-"+b);return Z.support&&d.bind("touchstart.jcrop",Z.createDragger(b)),J.append(d),d}function m(a){var b=d.handleSize,e=l(a,c++
17
- ).css({opacity:d.handleOpacity}).addClass(j("handle"));return b&&e.width(b).height(b),e}function n(a){return l(a,c++).addClass("jcrop-dragbar")}function o(a){var b;for(b=0;b<a.length;b++)g[a[b]]=n(a[b])}function p(a){var b,c;for(c=0;c<a.length;c++){switch(a[c]){case"n":b="hline";break;case"s":b="hline bottom";break;case"e":b="vline right";break;case"w":b="vline"}e[a[c]]=k(b)}}function q(a){var b;for(b=0;b<a.length;b++)f[a[b]]=m(a[b])}function r(a,b){d.shade||H.css({top:i(-b),left:i(-a)}),K.css({top:i(b),left:i(a)})}function t(a,b){K.width(Math.round(a)).height(Math.round(b))}function v(){var a=_.getFixed();_.setPressed([a.x,a.y]),_.setCurrent([a.x2,a.y2]),w()}function w(a){if(b)return x(a)}function x(a){var c=_.getFixed();t(c.w,c.h),r(c.x,c.y),d.shade&&ba.updateRaw(c),b||A(),a?d.onSelect.call(bs,u(c)):d.onChange.call(bs,u(c))}function z(a,c,e){if(!b&&!c)return;d.bgFade&&!e?D.animate({opacity:a},{queue:!1,duration:d.fadeTime}):D.css("opacity",a)}function A(){K.show(),d.shade?ba.opacity(O):z(O,!0),b=!0}function B
18
- (){F(),K.hide(),d.shade?ba.opacity(1):z(1),b=!1,d.onRelease.call(bs)}function C(){h&&J.show()}function E(){h=!0;if(d.allowResize)return J.show(),!0}function F(){h=!1,J.hide()}function G(a){a?(X=!0,F()):(X=!1,E())}function L(){G(!1),v()}var b,c=370,e={},f={},g={},h=!1;d.dragEdges&&a.isArray(d.createDragbars)&&o(d.createDragbars),a.isArray(d.createHandles)&&q(d.createHandles),d.drawBorders&&a.isArray(d.createBorders)&&p(d.createBorders),a(document).bind("touchstart.jcrop-ios",function(b){a(b.currentTarget).hasClass("jcrop-tracker")&&b.stopPropagation()});var M=y().mousedown(s("move")).css({cursor:"move",position:"absolute",zIndex:360});return Z.support&&M.bind("touchstart.jcrop",Z.createDragger("move")),I.append(M),F(),{updateVisible:w,update:x,release:B,refresh:v,isAwake:function(){return b},setCursor:function(a){M.css("cursor",a)},enableHandles:E,enableOnly:function(){h=!0},showHandles:C,disableHandles:F,animMode:G,setBgOpacity:z,done:L}}(),bc=function(){function f(b){M.css({zIndex:450}),b?a(document).bind("touchmove.jcrop"
19
- ,k).bind("touchend.jcrop",l):e&&a(document).bind("mousemove.jcrop",h).bind("mouseup.jcrop",i)}function g(){M.css({zIndex:290}),a(document).unbind(".jcrop")}function h(a){return b(m(a)),!1}function i(a){return a.preventDefault(),a.stopPropagation(),W&&(W=!1,c(m(a)),bb.isAwake()&&d.onSelect.call(bs,u(_.getFixed())),g(),b=function(){},c=function(){}),!1}function j(a,d,e){return W=!0,b=a,c=d,f(e),!1}function k(a){return b(m(Z.cfilter(a))),!1}function l(a){return i(Z.cfilter(a))}function n(a){M.css("cursor",a)}var b=function(){},c=function(){},e=d.trackDocument;return e||M.mousemove(h).mouseup(i).mouseout(i),D.before(M),{activateHandlers:j,setCursor:n}}(),bd=function(){function e(){d.keySupport&&(b.show(),b.focus())}function f(a){b.hide()}function g(a,b,c){d.allowMove&&(_.moveOffset([b,c]),bb.updateVisible(!0)),a.preventDefault(),a.stopPropagation()}function i(a){if(a.ctrlKey||a.metaKey)return!0;Y=a.shiftKey?!0:!1;var b=Y?10:1;switch(a.keyCode){case 37:g(a,-b,0);break;case 39:g(a,b,0);break;case 38:g(a,0,-b);break;
20
- case 40:g(a,0,b);break;case 27:d.allowSelect&&bb.release();break;case 9:return!0}return!1}var b=a('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}).addClass("jcrop-keymgr"),c=a("<div />").css({position:"absolute",overflow:"hidden"}).append(b);return d.keySupport&&(b.keydown(i).blur(f),h||!d.fixedSupport?(b.css({position:"absolute",left:"-20px"}),c.append(b).insertBefore(D)):b.insertBefore(D)),{watchKeys:e}}();Z.support&&M.bind("touchstart.jcrop",Z.newSelection),J.hide(),br(!0);var bs={setImage:bp,animateTo:bf,setSelect:bg,setOptions:bk,tellSelect:bi,tellScaled:bj,setClass:be,disable:bl,enable:bm,cancel:bn,release:bb.release,destroy:bo,focus:bd.watchKeys,getBounds:function(){return[E*T,F*U]},getWidgetSize:function(){return[E,F]},getScaleFactor:function(){return[T,U]},getOptions:function(){return d},ui:{holder:G,selection:K}};return g&&G.bind("selectstart",function(){return!1}),A.data("Jcrop",bs),bs},a.fn.Jcrop=function(b,c){var d;return this.each(function(){if(a(this).data("Jcrop")){if(
21
- b==="api")return a(this).data("Jcrop");a(this).data("Jcrop").setOptions(b)}else this.tagName=="IMG"?a.Jcrop.Loader(this,function(){a(this).css({display:"block",visibility:"hidden"}),d=a.Jcrop(this,b),a.isFunction(c)&&c.call(d)}):(a(this).css({display:"block",visibility:"hidden"}),d=a.Jcrop(this,b),a.isFunction(c)&&c.call(d))}),this},a.Jcrop.Loader=function(b,c,d){function g(){f.complete?(e.unbind(".jcloader"),a.isFunction(c)&&c.call(f)):window.setTimeout(g,50)}var e=a(b),f=e[0];e.bind("load.jcloader",g).bind("error.jcloader",function(b){e.unbind(".jcloader"),a.isFunction(d)&&d.call(f)}),f.complete&&a.isFunction(c)&&(e.unbind(".jcloader"),c.call(f))},a.Jcrop.defaults={allowSelect:!0,allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,borderOpacity:.4,handleOpacity:.5,handleSize:null,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createDragbars:["n","s","e","w"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges
22
- :!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}})(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/Jcrop-1902/js/jquery.color.js DELETED
@@ -1,661 +0,0 @@
1
- /*!
2
- * jQuery Color Animations v2.0pre
3
- * http://jquery.org/
4
- *
5
- * Copyright 2011 John Resig
6
- * Dual licensed under the MIT or GPL Version 2 licenses.
7
- * http://jquery.org/license
8
- */
9
-
10
- (function( jQuery, undefined ){
11
- var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color outlineColor".split(" "),
12
-
13
- // plusequals test for += 100 -= 100
14
- rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
15
- // a set of RE's that can match strings and generate color tuples.
16
- stringParsers = [{
17
- re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
18
- parse: function( execResult ) {
19
- return [
20
- execResult[ 1 ],
21
- execResult[ 2 ],
22
- execResult[ 3 ],
23
- execResult[ 4 ]
24
- ];
25
- }
26
- }, {
27
- re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
28
- parse: function( execResult ) {
29
- return [
30
- 2.55 * execResult[1],
31
- 2.55 * execResult[2],
32
- 2.55 * execResult[3],
33
- execResult[ 4 ]
34
- ];
35
- }
36
- }, {
37
- re: /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,
38
- parse: function( execResult ) {
39
- return [
40
- parseInt( execResult[ 1 ], 16 ),
41
- parseInt( execResult[ 2 ], 16 ),
42
- parseInt( execResult[ 3 ], 16 )
43
- ];
44
- }
45
- }, {
46
- re: /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,
47
- parse: function( execResult ) {
48
- return [
49
- parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
50
- parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
51
- parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
52
- ];
53
- }
54
- }, {
55
- re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
56
- space: "hsla",
57
- parse: function( execResult ) {
58
- return [
59
- execResult[1],
60
- execResult[2] / 100,
61
- execResult[3] / 100,
62
- execResult[4]
63
- ];
64
- }
65
- }],
66
-
67
- // jQuery.Color( )
68
- color = jQuery.Color = function( color, green, blue, alpha ) {
69
- return new jQuery.Color.fn.parse( color, green, blue, alpha );
70
- },
71
- spaces = {
72
- rgba: {
73
- cache: "_rgba",
74
- props: {
75
- red: {
76
- idx: 0,
77
- type: "byte",
78
- empty: true
79
- },
80
- green: {
81
- idx: 1,
82
- type: "byte",
83
- empty: true
84
- },
85
- blue: {
86
- idx: 2,
87
- type: "byte",
88
- empty: true
89
- },
90
- alpha: {
91
- idx: 3,
92
- type: "percent",
93
- def: 1
94
- }
95
- }
96
- },
97
- hsla: {
98
- cache: "_hsla",
99
- props: {
100
- hue: {
101
- idx: 0,
102
- type: "degrees",
103
- empty: true
104
- },
105
- saturation: {
106
- idx: 1,
107
- type: "percent",
108
- empty: true
109
- },
110
- lightness: {
111
- idx: 2,
112
- type: "percent",
113
- empty: true
114
- }
115
- }
116
- }
117
- },
118
- propTypes = {
119
- "byte": {
120
- floor: true,
121
- min: 0,
122
- max: 255
123
- },
124
- "percent": {
125
- min: 0,
126
- max: 1
127
- },
128
- "degrees": {
129
- mod: 360,
130
- floor: true
131
- }
132
- },
133
- rgbaspace = spaces.rgba.props,
134
- support = color.support = {},
135
-
136
- // colors = jQuery.Color.names
137
- colors,
138
-
139
- // local aliases of functions called often
140
- each = jQuery.each;
141
-
142
- spaces.hsla.props.alpha = rgbaspace.alpha;
143
-
144
- function clamp( value, prop, alwaysAllowEmpty ) {
145
- var type = propTypes[ prop.type ] || {},
146
- allowEmpty = prop.empty || alwaysAllowEmpty;
147
-
148
- if ( allowEmpty && value == null ) {
149
- return null;
150
- }
151
- if ( prop.def && value == null ) {
152
- return prop.def;
153
- }
154
- if ( type.floor ) {
155
- value = ~~value;
156
- } else {
157
- value = parseFloat( value );
158
- }
159
- if ( value == null || isNaN( value ) ) {
160
- return prop.def;
161
- }
162
- if ( type.mod ) {
163
- value = value % type.mod;
164
- // -10 -> 350
165
- return value < 0 ? type.mod + value : value;
166
- }
167
-
168
- // for now all property types without mod have min and max
169
- return type.min > value ? type.min : type.max < value ? type.max : value;
170
- }
171
-
172
- function stringParse( string ) {
173
- var inst = color(),
174
- rgba = inst._rgba = [];
175
-
176
- string = string.toLowerCase();
177
-
178
- each( stringParsers, function( i, parser ) {
179
- var match = parser.re.exec( string ),
180
- values = match && parser.parse( match ),
181
- parsed,
182
- spaceName = parser.space || "rgba",
183
- cache = spaces[ spaceName ].cache;
184
-
185
-
186
- if ( values ) {
187
- parsed = inst[ spaceName ]( values );
188
-
189
- // if this was an rgba parse the assignment might happen twice
190
- // oh well....
191
- inst[ cache ] = parsed[ cache ];
192
- rgba = inst._rgba = parsed._rgba;
193
-
194
- // exit each( stringParsers ) here because we matched
195
- return false;
196
- }
197
- });
198
-
199
- // Found a stringParser that handled it
200
- if ( rgba.length !== 0 ) {
201
-
202
- // if this came from a parsed string, force "transparent" when alpha is 0
203
- // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
204
- if ( Math.max.apply( Math, rgba ) === 0 ) {
205
- jQuery.extend( rgba, colors.transparent );
206
- }
207
- return inst;
208
- }
209
-
210
- // named colors / default - filter back through parse function
211
- if ( string = colors[ string ] ) {
212
- return string;
213
- }
214
- }
215
-
216
- color.fn = color.prototype = {
217
- constructor: color,
218
- parse: function( red, green, blue, alpha ) {
219
- if ( red === undefined ) {
220
- this._rgba = [ null, null, null, null ];
221
- return this;
222
- }
223
- if ( red instanceof jQuery || red.nodeType ) {
224
- red = red instanceof jQuery ? red.css( green ) : jQuery( red ).css( green );
225
- green = undefined;
226
- }
227
-
228
- var inst = this,
229
- type = jQuery.type( red ),
230
- rgba = this._rgba = [],
231
- source;
232
-
233
- // more than 1 argument specified - assume ( red, green, blue, alpha )
234
- if ( green !== undefined ) {
235
- red = [ red, green, blue, alpha ];
236
- type = "array";
237
- }
238
-
239
- if ( type === "string" ) {
240
- return this.parse( stringParse( red ) || colors._default );
241
- }
242
-
243
- if ( type === "array" ) {
244
- each( rgbaspace, function( key, prop ) {
245
- rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
246
- });
247
- return this;
248
- }
249
-
250
- if ( type === "object" ) {
251
- if ( red instanceof color ) {
252
- each( spaces, function( spaceName, space ) {
253
- if ( red[ space.cache ] ) {
254
- inst[ space.cache ] = red[ space.cache ].slice();
255
- }
256
- });
257
- } else {
258
- each( spaces, function( spaceName, space ) {
259
- each( space.props, function( key, prop ) {
260
- var cache = space.cache;
261
-
262
- // if the cache doesn't exist, and we know how to convert
263
- if ( !inst[ cache ] && space.to ) {
264
-
265
- // if the value was null, we don't need to copy it
266
- // if the key was alpha, we don't need to copy it either
267
- if ( red[ key ] == null || key === "alpha") {
268
- return;
269
- }
270
- inst[ cache ] = space.to( inst._rgba );
271
- }
272
-
273
- // this is the only case where we allow nulls for ALL properties.
274
- // call clamp with alwaysAllowEmpty
275
- inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
276
- });
277
- });
278
- }
279
- return this;
280
- }
281
- },
282
- is: function( compare ) {
283
- var is = color( compare ),
284
- same = true,
285
- myself = this;
286
-
287
- each( spaces, function( _, space ) {
288
- var isCache = is[ space.cache ],
289
- localCache;
290
- if (isCache) {
291
- localCache = myself[ space.cache ] || space.to && space.to( myself._rgba ) || [];
292
- each( space.props, function( _, prop ) {
293
- if ( isCache[ prop.idx ] != null ) {
294
- same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
295
- return same;
296
- }
297
- });
298
- }
299
- return same;
300
- });
301
- return same;
302
- },
303
- _space: function() {
304
- var used = [],
305
- inst = this;
306
- each( spaces, function( spaceName, space ) {
307
- if ( inst[ space.cache ] ) {
308
- used.push( spaceName );
309
- }
310
- });
311
- return used.pop();
312
- },
313
- transition: function( other, distance ) {
314
- var end = color( other ),
315
- spaceName = end._space(),
316
- space = spaces[ spaceName ],
317
- start = this[ space.cache ] || space.to( this._rgba ),
318
- result = start.slice();
319
-
320
- end = end[ space.cache ];
321
- each( space.props, function( key, prop ) {
322
- var index = prop.idx,
323
- startValue = start[ index ],
324
- endValue = end[ index ],
325
- type = propTypes[ prop.type ] || {};
326
-
327
- // if null, don't override start value
328
- if ( endValue === null ) {
329
- return;
330
- }
331
- // if null - use end
332
- if ( startValue === null ) {
333
- result[ index ] = endValue;
334
- } else {
335
- if ( type.mod ) {
336
- if ( endValue - startValue > type.mod / 2 ) {
337
- startValue += type.mod;
338
- } else if ( startValue - endValue > type.mod / 2 ) {
339
- startValue -= type.mod;
340
- }
341
- }
342
- result[ prop.idx ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
343
- }
344
- });
345
- return this[ spaceName ]( result );
346
- },
347
- blend: function( opaque ) {
348
- // if we are already opaque - return ourself
349
- if ( this._rgba[ 3 ] === 1 ) {
350
- return this;
351
- }
352
-
353
- var rgb = this._rgba.slice(),
354
- a = rgb.pop(),
355
- blend = color( opaque )._rgba;
356
-
357
- return color( jQuery.map( rgb, function( v, i ) {
358
- return ( 1 - a ) * blend[ i ] + a * v;
359
- }));
360
- },
361
- toRgbaString: function() {
362
- var prefix = "rgba(",
363
- rgba = jQuery.map( this._rgba, function( v, i ) {
364
- return v == null ? ( i > 2 ? 1 : 0 ) : v;
365
- });
366
-
367
- if ( rgba[ 3 ] === 1 ) {
368
- rgba.pop();
369
- prefix = "rgb(";
370
- }
371
-
372
- return prefix + rgba.join(",") + ")";
373
- },
374
- toHslaString: function() {
375
- var prefix = "hsla(",
376
- hsla = jQuery.map( this.hsla(), function( v, i ) {
377
- if ( v == null ) {
378
- v = i > 2 ? 1 : 0;
379
- }
380
-
381
- // catch 1 and 2
382
- if ( i && i < 3 ) {
383
- v = Math.round( v * 100 ) + "%";
384
- }
385
- return v;
386
- });
387
-
388
- if ( hsla[ 3 ] === 1 ) {
389
- hsla.pop();
390
- prefix = "hsl(";
391
- }
392
- return prefix + hsla.join(",") + ")";
393
- },
394
- toHexString: function( includeAlpha ) {
395
- var rgba = this._rgba.slice(),
396
- alpha = rgba.pop();
397
-
398
- if ( includeAlpha ) {
399
- rgba.push( ~~( alpha * 255 ) );
400
- }
401
-
402
- return "#" + jQuery.map( rgba, function( v, i ) {
403
-
404
- // default to 0 when nulls exist
405
- v = ( v || 0 ).toString( 16 );
406
- return v.length === 1 ? "0" + v : v;
407
- }).join("");
408
- },
409
- toString: function() {
410
- return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
411
- }
412
- };
413
- color.fn.parse.prototype = color.fn;
414
-
415
- // hsla conversions adapted from:
416
- // http://www.google.com/codesearch/p#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/inspector/front-end/Color.js&d=7&l=193
417
-
418
- function hue2rgb( p, q, h ) {
419
- h = ( h + 1 ) % 1;
420
- if ( h * 6 < 1 ) {
421
- return p + (q - p) * 6 * h;
422
- }
423
- if ( h * 2 < 1) {
424
- return q;
425
- }
426
- if ( h * 3 < 2 ) {
427
- return p + (q - p) * ((2/3) - h) * 6;
428
- }
429
- return p;
430
- }
431
-
432
- spaces.hsla.to = function ( rgba ) {
433
- if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
434
- return [ null, null, null, rgba[ 3 ] ];
435
- }
436
- var r = rgba[ 0 ] / 255,
437
- g = rgba[ 1 ] / 255,
438
- b = rgba[ 2 ] / 255,
439
- a = rgba[ 3 ],
440
- max = Math.max( r, g, b ),
441
- min = Math.min( r, g, b ),
442
- diff = max - min,
443
- add = max + min,
444
- l = add * 0.5,
445
- h, s;
446
-
447
- if ( min === max ) {
448
- h = 0;
449
- } else if ( r === max ) {
450
- h = ( 60 * ( g - b ) / diff ) + 360;
451
- } else if ( g === max ) {
452
- h = ( 60 * ( b - r ) / diff ) + 120;
453
- } else {
454
- h = ( 60 * ( r - g ) / diff ) + 240;
455
- }
456
-
457
- if ( l === 0 || l === 1 ) {
458
- s = l;
459
- } else if ( l <= 0.5 ) {
460
- s = diff / add;
461
- } else {
462
- s = diff / ( 2 - add );
463
- }
464
- return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];
465
- };
466
-
467
- spaces.hsla.from = function ( hsla ) {
468
- if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
469
- return [ null, null, null, hsla[ 3 ] ];
470
- }
471
- var h = hsla[ 0 ] / 360,
472
- s = hsla[ 1 ],
473
- l = hsla[ 2 ],
474
- a = hsla[ 3 ],
475
- q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
476
- p = 2 * l - q,
477
- r, g, b;
478
-
479
- return [
480
- Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
481
- Math.round( hue2rgb( p, q, h ) * 255 ),
482
- Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
483
- a
484
- ];
485
- };
486
-
487
-
488
- each( spaces, function( spaceName, space ) {
489
- var props = space.props,
490
- cache = space.cache,
491
- to = space.to,
492
- from = space.from;
493
-
494
- // makes rgba() and hsla()
495
- color.fn[ spaceName ] = function( value ) {
496
-
497
- // generate a cache for this space if it doesn't exist
498
- if ( to && !this[ cache ] ) {
499
- this[ cache ] = to( this._rgba );
500
- }
501
- if ( value === undefined ) {
502
- return this[ cache ].slice();
503
- }
504
-
505
- var type = jQuery.type( value ),
506
- arr = ( type === "array" || type === "object" ) ? value : arguments,
507
- local = this[ cache ].slice(),
508
- ret;
509
-
510
- each( props, function( key, prop ) {
511
- var val = arr[ type === "object" ? key : prop.idx ];
512
- if ( val == null ) {
513
- val = local[ prop.idx ];
514
- }
515
- local[ prop.idx ] = clamp( val, prop );
516
- });
517
-
518
- if ( from ) {
519
- ret = color( from( local ) );
520
- ret[ cache ] = local;
521
- return ret;
522
- } else {
523
- return color( local );
524
- }
525
- };
526
-
527
- // makes red() green() blue() alpha() hue() saturation() lightness()
528
- each( props, function( key, prop ) {
529
- // alpha is included in more than one space
530
- if ( color.fn[ key ] ) {
531
- return;
532
- }
533
- color.fn[ key ] = function( value ) {
534
- var vtype = jQuery.type( value ),
535
- fn = ( key === 'alpha' ? ( this._hsla ? 'hsla' : 'rgba' ) : spaceName ),
536
- local = this[ fn ](),
537
- cur = local[ prop.idx ],
538
- match;
539
-
540
- if ( vtype === "undefined" ) {
541
- return cur;
542
- }
543
-
544
- if ( vtype === "function" ) {
545
- value = value.call( this, cur );
546
- vtype = jQuery.type( value );
547
- }
548
- if ( value == null && prop.empty ) {
549
- return this;
550
- }
551
- if ( vtype === "string" ) {
552
- match = rplusequals.exec( value );
553
- if ( match ) {
554
- value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
555
- }
556
- }
557
- local[ prop.idx ] = value;
558
- return this[ fn ]( local );
559
- };
560
- });
561
- });
562
-
563
- // add .fx.step functions
564
- each( stepHooks, function( i, hook ) {
565
- jQuery.cssHooks[ hook ] = {
566
- set: function( elem, value ) {
567
- var parsed, backgroundColor, curElem;
568
-
569
- if ( jQuery.type( value ) !== 'string' || ( parsed = stringParse( value ) ) )
570
- {
571
- value = color( parsed || value );
572
- if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
573
- curElem = hook === "backgroundColor" ? elem.parentNode : elem;
574
- do {
575
- backgroundColor = jQuery.curCSS( curElem, "backgroundColor" );
576
- } while (
577
- ( backgroundColor === "" || backgroundColor === "transparent" ) &&
578
- ( curElem = curElem.parentNode ) &&
579
- curElem.style
580
- );
581
-
582
- value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
583
- backgroundColor :
584
- "_default" );
585
- }
586
-
587
- value = value.toRgbaString();
588
- }
589
- elem.style[ hook ] = value;
590
- }
591
- };
592
- jQuery.fx.step[ hook ] = function( fx ) {
593
- if ( !fx.colorInit ) {
594
- fx.start = color( fx.elem, hook );
595
- fx.end = color( fx.end );
596
- fx.colorInit = true;
597
- }
598
- jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
599
- };
600
- });
601
-
602
- // detect rgba support
603
- jQuery(function() {
604
- var div = document.createElement( "div" ),
605
- div_style = div.style;
606
-
607
- div_style.cssText = "background-color:rgba(1,1,1,.5)";
608
- support.rgba = div_style.backgroundColor.indexOf( "rgba" ) > -1;
609
- });
610
-
611
- // Some named colors to work with
612
- // From Interface by Stefan Petre
613
- // http://interface.eyecon.ro/
614
- colors = jQuery.Color.names = {
615
- aqua: "#00ffff",
616
- azure: "#f0ffff",
617
- beige: "#f5f5dc",
618
- black: "#000000",
619
- blue: "#0000ff",
620
- brown: "#a52a2a",
621
- cyan: "#00ffff",
622
- darkblue: "#00008b",
623
- darkcyan: "#008b8b",
624
- darkgrey: "#a9a9a9",
625
- darkgreen: "#006400",
626
- darkkhaki: "#bdb76b",
627
- darkmagenta: "#8b008b",
628
- darkolivegreen: "#556b2f",
629
- darkorange: "#ff8c00",
630
- darkorchid: "#9932cc",
631
- darkred: "#8b0000",
632
- darksalmon: "#e9967a",
633
- darkviolet: "#9400d3",
634
- fuchsia: "#ff00ff",
635
- gold: "#ffd700",
636
- green: "#008000",
637
- indigo: "#4b0082",
638
- khaki: "#f0e68c",
639
- lightblue: "#add8e6",
640
- lightcyan: "#e0ffff",
641
- lightgreen: "#90ee90",
642
- lightgrey: "#d3d3d3",
643
- lightpink: "#ffb6c1",
644
- lightyellow: "#ffffe0",
645
- lime: "#00ff00",
646
- magenta: "#ff00ff",
647
- maroon: "#800000",
648
- navy: "#000080",
649
- olive: "#808000",
650
- orange: "#ffa500",
651
- pink: "#ffc0cb",
652
- purple: "#800080",
653
- violet: "#800080",
654
- red: "#ff0000",
655
- silver: "#c0c0c0",
656
- white: "#ffffff",
657
- yellow: "#ffff00",
658
- transparent: [ null, null, null, 0 ],
659
- _default: "#ffffff"
660
- };
661
- })( jQuery );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
photo-gallery.php CHANGED
@@ -4,8 +4,9 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://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.2.2
8
- * Author: http://web-dorado.com/
 
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
 
@@ -599,6 +600,7 @@ function bwg_activate() {
599
  `show_image_counts` tinyint(1) NOT NULL,
600
  `upload_img_width` int(4) NOT NULL,
601
  `upload_img_height` int(4) NOT NULL,
 
602
  PRIMARY KEY (`id`)
603
  ) DEFAULT CHARSET=utf8;";
604
  $wpdb->query($bwg_option);
@@ -1119,6 +1121,9 @@ function bwg_activate() {
1119
  'showthumbs_name'=> 0,
1120
  'show_album_name'=> 0,
1121
  'show_image_counts'=> 0,
 
 
 
1122
  ), array(
1123
  '%d',
1124
  '%s',
@@ -1230,6 +1235,9 @@ function bwg_activate() {
1230
  '%d',
1231
  '%d',
1232
  '%d',
 
 
 
1233
  ));
1234
  }
1235
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
@@ -2731,7 +2739,7 @@ function bwg_activate() {
2731
  ));
2732
  }
2733
  $version = get_option("wd_bwg_version");
2734
- $new_version = '1.2.2';
2735
  if ($version && version_compare($version, $new_version, '<')) {
2736
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2737
  bwg_update($version);
@@ -2746,7 +2754,7 @@ register_activation_hook(__FILE__, 'bwg_activate');
2746
 
2747
  function bwg_update_hook() {
2748
  $version = get_option("wd_bwg_version");
2749
- $new_version = '1.2.2';
2750
  if ($version && version_compare($version, $new_version, '<')) {
2751
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2752
  bwg_update($version);
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://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.2.3
8
+ * Author: WebDorado
9
+ * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
11
  */
12
 
600
  `show_image_counts` tinyint(1) NOT NULL,
601
  `upload_img_width` int(4) NOT NULL,
602
  `upload_img_height` int(4) NOT NULL,
603
+ `play_icon` tinyint(1) NOT NULL,
604
  PRIMARY KEY (`id`)
605
  ) DEFAULT CHARSET=utf8;";
606
  $wpdb->query($bwg_option);
1121
  'showthumbs_name'=> 0,
1122
  'show_album_name'=> 0,
1123
  'show_image_counts'=> 0,
1124
+ 'upload_img_width' => 1200,
1125
+ 'upload_img_height' => 1200,
1126
+ 'play_icon'=> 1,
1127
  ), array(
1128
  '%d',
1129
  '%s',
1235
  '%d',
1236
  '%d',
1237
  '%d',
1238
+ '%d',
1239
+ '%d',
1240
+ '%d',
1241
  ));
1242
  }
1243
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
2739
  ));
2740
  }
2741
  $version = get_option("wd_bwg_version");
2742
+ $new_version = '1.2.3';
2743
  if ($version && version_compare($version, $new_version, '<')) {
2744
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2745
  bwg_update($version);
2754
 
2755
  function bwg_update_hook() {
2756
  $version = get_option("wd_bwg_version");
2757
+ $new_version = '1.2.3';
2758
  if ($version && version_compare($version, $new_version, '<')) {
2759
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2760
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, fotogalerie, galleria, galerie, galeri
5
  Requires at least: 3.0
6
  Tested up to: 4.0
7
- Stable tag: 1.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -174,6 +174,12 @@ If any problem occurs, please contact us at [info@web-dorado.com](mailto:info@w
174
 
175
  == Changelog ==
176
 
 
 
 
 
 
 
177
  = 1.2.1 =
178
  minor changes in shortcode generation code
179
 
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, fotogalerie, galleria, galerie, galeri
5
  Requires at least: 3.0
6
  Tested up to: 4.0
7
+ Stable tag: 1.2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
174
 
175
  == Changelog ==
176
 
177
+ = 1.2.3 =
178
+ play icon over the video thumbnail
179
+
180
+ = 1.2.2 =
181
+ add upload images with custom size
182
+
183
  = 1.2.1 =
184
  minor changes in shortcode generation code
185
 
update/bwg_update.php CHANGED
@@ -128,7 +128,7 @@ function bwg_update($version) {
128
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `enable_ML_import` tinyint(1) NOT NULL DEFAULT 0");
129
  }
130
  if (version_compare($version, '1.1.30') == -1) {
131
- // Add enable/disable showing album or thumbnail names
132
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `showthumbs_name` tinyint(1) NOT NULL DEFAULT 0");
133
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `show_album_name` tinyint(1) NOT NULL DEFAULT 0");
134
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `show_image_counts` tinyint(1) NOT NULL DEFAULT 0");
@@ -146,6 +146,10 @@ function bwg_update($version) {
146
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `upload_img_width` int(4) NOT NULL DEFAULT 1200");
147
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `upload_img_height` int(4) NOT NULL DEFAULT 1200");
148
  }
 
 
 
 
149
  return;
150
  }
151
 
128
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `enable_ML_import` tinyint(1) NOT NULL DEFAULT 0");
129
  }
130
  if (version_compare($version, '1.1.30') == -1) {
131
+ // Add enable/disable showing album or thumbnail names.
132
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `showthumbs_name` tinyint(1) NOT NULL DEFAULT 0");
133
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `show_album_name` tinyint(1) NOT NULL DEFAULT 0");
134
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `show_image_counts` tinyint(1) NOT NULL DEFAULT 0");
146
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `upload_img_width` int(4) NOT NULL DEFAULT 1200");
147
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `upload_img_height` int(4) NOT NULL DEFAULT 1200");
148
  }
149
+ if (version_compare($version, '1.2.3') == -1) {
150
+ // Add enable/disable option for play icon on video thumbnail.
151
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `play_icon` tinyint(1) NOT NULL DEFAULT 1");
152
+ }
153
  return;
154
  }
155