Gallery by BestWebSoft - Version 4.3.3

Version Description

  • 07.07.2015 =
  • NEW : We`ve made responsive gallery display.
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Gallery by BestWebSoft
Version 4.3.3
Comparing to
See all releases

Code changes from version 4.3.2 to 4.3.3

bws_menu/bws_menu.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Function for displaying BestWebSoft menu
4
- * Version: 1.6.5
5
  */
6
 
7
  if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
@@ -438,7 +438,10 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
438
  'link' => 'http://bestwebsoft.com/products/visitors-online/?k=93c28013a4f830671b3bba9502ed5177&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
439
  'download' => 'http://bestwebsoft.com/products/visitors-online/download/?k=93c28013a4f830671b3bba9502ed5177&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
440
  'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Visitors+online+BestWebSoft&plugin-search-input=Search+Plugins',
441
- 'settings' => 'admin.php?page=visitors-online.php'
 
 
 
442
  )
443
  );
444
 
@@ -967,6 +970,7 @@ if ( ! function_exists( 'bws_get_banner_array' ) ) {
967
  function bws_get_banner_array() {
968
  global $bstwbsftwppdtplgns_banner_array;
969
  $bstwbsftwppdtplgns_banner_array = array(
 
970
  array( 'cstmsrch_hide_banner_on_plugin_page', 'custom-search-plugin/custom-search-plugin.php', '1.28' ),
971
  array( 'prtfl_hide_banner_on_plugin_page', 'portfolio/portfolio.php', '2.33' ),
972
  array( 'rlt_hide_banner_on_plugin_page', 'realty/realty.php', '1.0.0' ),
@@ -990,7 +994,7 @@ if ( ! function_exists( 'bws_get_banner_array' ) ) {
990
  array( 'cntctfrm_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.47' ),
991
  array( 'cptch_hide_banner_on_plugin_page', 'captcha/captcha.php', '3.8.4' ),
992
  array( 'gllr_hide_banner_on_plugin_page', 'gallery-plugin/gallery-plugin.php', '3.9.1' ),
993
- array( 'cntctfrm_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.62' ),
994
  );
995
  }
996
  }
1
  <?php
2
  /*
3
  * Function for displaying BestWebSoft menu
4
+ * Version: 1.6.6
5
  */
6
 
7
  if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
438
  'link' => 'http://bestwebsoft.com/products/visitors-online/?k=93c28013a4f830671b3bba9502ed5177&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
439
  'download' => 'http://bestwebsoft.com/products/visitors-online/download/?k=93c28013a4f830671b3bba9502ed5177&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
440
  'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Visitors+online+BestWebSoft&plugin-search-input=Search+Plugins',
441
+ 'settings' => 'admin.php?page=visitors-online.php',
442
+ 'pro_version' => 'visitors-online-pro/visitors-online-pro.php',
443
+ 'purchase' => 'http://bestwebsoft.com/products/visitors-online/buy/?k=f9a746075ff8a0a6cb192cb46526afd2&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
444
+ 'pro_settings' => 'admin.php?page=visitors-online-pro.php'
445
  )
446
  );
447
 
970
  function bws_get_banner_array() {
971
  global $bstwbsftwppdtplgns_banner_array;
972
  $bstwbsftwppdtplgns_banner_array = array(
973
+ array( 'vstrsnln_hide_banner_on_plugin_page', 'visitors-online/visitors-online.php', '0.2' ),
974
  array( 'cstmsrch_hide_banner_on_plugin_page', 'custom-search-plugin/custom-search-plugin.php', '1.28' ),
975
  array( 'prtfl_hide_banner_on_plugin_page', 'portfolio/portfolio.php', '2.33' ),
976
  array( 'rlt_hide_banner_on_plugin_page', 'realty/realty.php', '1.0.0' ),
994
  array( 'cntctfrm_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.47' ),
995
  array( 'cptch_hide_banner_on_plugin_page', 'captcha/captcha.php', '3.8.4' ),
996
  array( 'gllr_hide_banner_on_plugin_page', 'gallery-plugin/gallery-plugin.php', '3.9.1' ),
997
+ array( 'cntctfrm_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.62' )
998
  );
999
  }
1000
  }
bws_menu/icons/pagination.png CHANGED
File without changes
bws_menu/icons/social-buttons-pack.png CHANGED
File without changes
bws_menu/icons/zendesk-help-center.png CHANGED
File without changes
css/frontend_style.css CHANGED
@@ -60,9 +60,7 @@ ul.gallery {
60
  .gllr_single_image_text {
61
  font-size: 12px;
62
  color: #888;
63
- }
64
- .gllr_image_row {
65
- clear: both;
66
  }
67
  .gallery li {
68
  float: left;
60
  .gllr_single_image_text {
61
  font-size: 12px;
62
  color: #888;
63
+ word-break: break-word;
 
 
64
  }
65
  .gallery li {
66
  float: left;
gallery-plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Gallery by BestWebSoft
4
  Plugin URI: http://bestwebsoft.com/products/
5
  Description: This plugin allows you to implement gallery page into web site.
6
  Author: BestWebSoft
7
- Version: 4.3.2
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -93,7 +93,7 @@ if ( ! function_exists( 'gllr_settings' ) ) {
93
  'order_by' => 'menu_order',
94
  'order' => 'ASC',
95
  'read_more_link_text' => __( 'See images &raquo;', 'gallery' ),
96
- 'image_text' => 1,
97
  'return_link' => 0,
98
  'return_link_text' => 'Return to all albums',
99
  'return_link_page' => 'gallery_template_url',
@@ -1396,15 +1396,32 @@ if ( ! function_exists ( 'gllr_admin_head' ) ) {
1396
 
1397
  if ( ! function_exists ( 'gllr_wp_head' ) ) {
1398
  function gllr_wp_head() {
 
 
 
 
1399
  wp_enqueue_style( 'gllr_stylesheet', plugins_url( 'css/frontend_style.css', __FILE__ ) );
1400
  wp_enqueue_style( 'gllr_fancybox_stylesheet', plugins_url( 'fancybox/jquery.fancybox-1.3.4.css', __FILE__ ) );
1401
  wp_enqueue_script( 'gllr_fancybox_mousewheel_js', plugins_url( 'fancybox/jquery.mousewheel-3.0.4.pack.js', __FILE__ ), array( 'jquery' ) );
1402
  wp_enqueue_script( 'gllr_fancybox_js', plugins_url( 'fancybox/jquery.fancybox-1.3.4.pack.js', __FILE__ ), array( 'jquery' ) );
 
 
1403
  }
1404
  }
1405
 
1406
- if ( ! function_exists( 'gllr_add_for_ios' ) ) {
1407
- function gllr_add_for_ios() { ?>
 
 
 
 
 
 
 
 
 
 
 
1408
  <!-- Start ios -->
1409
  <script type="text/javascript">
1410
  (function($){
@@ -1421,6 +1438,7 @@ if ( ! function_exists( 'gllr_add_for_ios' ) ) {
1421
 
1422
  if ( ! function_exists ( 'gllr_shortcode' ) ) {
1423
  function gllr_shortcode( $attr ) {
 
1424
  $gllr_download_link_title = addslashes( __( 'Download high resolution image', 'gallery' ) );
1425
  extract( shortcode_atts( array(
1426
  'id' => '',
@@ -1429,7 +1447,8 @@ if ( ! function_exists ( 'gllr_shortcode' ) ) {
1429
  ), $attr )
1430
  );
1431
  ob_start();
1432
- $gllr_options = get_option( 'gllr_options' );
 
1433
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
1434
  if ( ! empty( $cat_id ) && ( is_plugin_active( 'gallery-categories/gallery-categories.php' ) || is_plugin_active( 'gallery-categories-pro/gallery-categories-pro.php' ) ) ) {
1435
  global $first_query;
@@ -1548,16 +1567,18 @@ if ( ! function_exists ( 'gllr_shortcode' ) ) {
1548
  <div class="gllr_image_block">
1549
  <p style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0] + $gllr_border_images; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1] + $gllr_border_images; ?>px;">
1550
  <?php if ( ( $url_for_link = get_post_meta( $attachment->ID, $link_key, true ) ) != "" ) { ?>
1551
- <a href="<?php echo $url_for_link; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" target="_blank">
1552
- <img width="<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>" height="<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>" style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px; height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" />
1553
- </a>
1554
- <?php } else { ?>
1555
- <a rel="gallery_fancybox<?php if ( 0 == $gllr_options['single_lightbox_for_multiple_galleries'] ) echo '_' . $post->ID; ?>" href="<?php echo $image_attributes_large[0]; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>">
1556
- <img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" rel="<?php echo $image_attributes_full[0]; ?>" />
1557
- </a>
1558
- <?php } ?>
1559
  </p>
1560
- <div style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0] + $gllr_border_images; ?>px; <?php if ( 0 == $gllr_options["image_text"] ) echo "display:none;"; ?>" class="gllr_single_image_text"><?php echo get_post_meta( $attachment->ID, $key, true ); ?>&nbsp;</div>
 
 
1561
  </div><!-- .gllr_image_block -->
1562
  <?php if ( $count_image_block%$gllr_options['custom_image_row_count'] == $gllr_options['custom_image_row_count']-1 ) { ?>
1563
  </div><!-- .gllr_image_row -->
@@ -2078,7 +2099,7 @@ add_action( 'manage_gallery_posts_custom_column', 'gllr_custom_columns', 10, 2 )
2078
  add_action( 'admin_head', 'gllr_add_admin_script' );
2079
  add_action( 'admin_enqueue_scripts', 'gllr_admin_head' );
2080
  add_action( 'wp_enqueue_scripts', 'gllr_wp_head' );
2081
- add_action( 'wp_head', 'gllr_add_for_ios' );
2082
 
2083
  /* add theme name as class to body tag */
2084
  add_filter( 'body_class', 'gllr_theme_body_classes' );
4
  Plugin URI: http://bestwebsoft.com/products/
5
  Description: This plugin allows you to implement gallery page into web site.
6
  Author: BestWebSoft
7
+ Version: 4.3.3
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
93
  'order_by' => 'menu_order',
94
  'order' => 'ASC',
95
  'read_more_link_text' => __( 'See images &raquo;', 'gallery' ),
96
+ 'image_text' => 0,
97
  'return_link' => 0,
98
  'return_link_text' => 'Return to all albums',
99
  'return_link_page' => 'gallery_template_url',
1396
 
1397
  if ( ! function_exists ( 'gllr_wp_head' ) ) {
1398
  function gllr_wp_head() {
1399
+ global $gllr_options;
1400
+ if ( empty( $gllr_options ) )
1401
+ $gllr_options = get_option( 'gllr_options' );
1402
+
1403
  wp_enqueue_style( 'gllr_stylesheet', plugins_url( 'css/frontend_style.css', __FILE__ ) );
1404
  wp_enqueue_style( 'gllr_fancybox_stylesheet', plugins_url( 'fancybox/jquery.fancybox-1.3.4.css', __FILE__ ) );
1405
  wp_enqueue_script( 'gllr_fancybox_mousewheel_js', plugins_url( 'fancybox/jquery.mousewheel-3.0.4.pack.js', __FILE__ ), array( 'jquery' ) );
1406
  wp_enqueue_script( 'gllr_fancybox_js', plugins_url( 'fancybox/jquery.fancybox-1.3.4.pack.js', __FILE__ ), array( 'jquery' ) );
1407
+ if ( 1 == $gllr_options["image_text"] )
1408
+ wp_enqueue_script( 'gllr_js', plugins_url( 'js/frontend_script.js', __FILE__ ), array( 'jquery' ) );
1409
  }
1410
  }
1411
 
1412
+ if ( ! function_exists( 'gllr_add_wp_head' ) ) {
1413
+ function gllr_add_wp_head() {
1414
+ global $gllr_options;
1415
+ if ( empty( $gllr_options ) )
1416
+ $gllr_options = get_option( 'gllr_options' );
1417
+
1418
+ if ( 1 == $gllr_options["image_text"] ) { ?>
1419
+ <style type="text/css">
1420
+ .gllr_image_row {
1421
+ clear: both;
1422
+ }
1423
+ </style>
1424
+ <?php } ?>
1425
  <!-- Start ios -->
1426
  <script type="text/javascript">
1427
  (function($){
1438
 
1439
  if ( ! function_exists ( 'gllr_shortcode' ) ) {
1440
  function gllr_shortcode( $attr ) {
1441
+ global $gllr_options;
1442
  $gllr_download_link_title = addslashes( __( 'Download high resolution image', 'gallery' ) );
1443
  extract( shortcode_atts( array(
1444
  'id' => '',
1447
  ), $attr )
1448
  );
1449
  ob_start();
1450
+ if ( empty( $gllr_options ) )
1451
+ $gllr_options = get_option( 'gllr_options' );
1452
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
1453
  if ( ! empty( $cat_id ) && ( is_plugin_active( 'gallery-categories/gallery-categories.php' ) || is_plugin_active( 'gallery-categories-pro/gallery-categories-pro.php' ) ) ) {
1454
  global $first_query;
1567
  <div class="gllr_image_block">
1568
  <p style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0] + $gllr_border_images; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1] + $gllr_border_images; ?>px;">
1569
  <?php if ( ( $url_for_link = get_post_meta( $attachment->ID, $link_key, true ) ) != "" ) { ?>
1570
+ <a href="<?php echo $url_for_link; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" target="_blank">
1571
+ <img width="<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>" height="<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>" style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px; height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" />
1572
+ </a>
1573
+ <?php } else { ?>
1574
+ <a rel="gallery_fancybox<?php if ( 0 == $gllr_options['single_lightbox_for_multiple_galleries'] ) echo '_' . $post->ID; ?>" href="<?php echo $image_attributes_large[0]; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>">
1575
+ <img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" rel="<?php echo $image_attributes_full[0]; ?>" />
1576
+ </a>
1577
+ <?php } ?>
1578
  </p>
1579
+ <?php if ( 1 == $gllr_options["image_text"] ) { ?>
1580
+ <div style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0] + $gllr_border_images; ?>px;" class="gllr_single_image_text"><?php echo get_post_meta( $attachment->ID, $key, true ); ?>&nbsp;</div>
1581
+ <?php } ?>
1582
  </div><!-- .gllr_image_block -->
1583
  <?php if ( $count_image_block%$gllr_options['custom_image_row_count'] == $gllr_options['custom_image_row_count']-1 ) { ?>
1584
  </div><!-- .gllr_image_row -->
2099
  add_action( 'admin_head', 'gllr_add_admin_script' );
2100
  add_action( 'admin_enqueue_scripts', 'gllr_admin_head' );
2101
  add_action( 'wp_enqueue_scripts', 'gllr_wp_head' );
2102
+ add_action( 'wp_head', 'gllr_add_wp_head' );
2103
 
2104
  /* add theme name as class to body tag */
2105
  add_filter( 'body_class', 'gllr_theme_body_classes' );
js/frontend_script.js ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function gllr_replace_image_blocks( max_block_count, resize ) {
2
+ (function($) {
3
+
4
+ var row_width = $( ".gllr_image_row" ).width(),
5
+ first_block_count = $( ".gllr_image_row:first .gllr_image_block" ).length,
6
+ block_width = $( ".gllr_image_block:first" ).outerWidth( true );
7
+
8
+ if ( block_width * first_block_count == row_width ) {
9
+ var last_block_css_width = parseInt( $( ".gllr_image_block:last-child" ).find( 'p' ).css( 'width' ) ) - 1;
10
+ $( ".gllr_image_block:last-child" ).find( 'p' ).css( 'width', last_block_css_width );
11
+ }
12
+
13
+ /* check width */
14
+ if ( block_width * first_block_count > row_width ) {
15
+
16
+ var count_blocks_in_row = row_width / block_width;
17
+
18
+ if ( parseInt( count_blocks_in_row ) != count_blocks_in_row ) {
19
+ count_blocks_in_row = Math.floor( count_blocks_in_row );
20
+ } else {
21
+ count_blocks_in_row--;
22
+ }
23
+
24
+ var total_count = 0,
25
+ count_for_replace = first_block_count - count_blocks_in_row;
26
+
27
+ $( '.gllr_image_row' ).each( function() {
28
+ total_count = total_count + count_for_replace;
29
+ if ( $( this ).is( ':last-child' ) ) {
30
+ var last_blocks_count = $( this ).find( ".gllr_image_block" ).length;
31
+
32
+ if ( block_width * last_blocks_count >= row_width ) {
33
+ var count_row_for_create = Math.ceil( last_blocks_count / count_blocks_in_row );
34
+ for ( var i = 0; i < count_row_for_create; i++ ) {
35
+ $( '<div class="gllr_image_row"></div>' ).insertAfter( '.gllr_image_row:last-child' );
36
+ }
37
+ }
38
+ } else {
39
+ var next = $( this ).next().find( '.gllr_image_block:first' );
40
+ $( this ).find( '.gllr_image_block' ).slice( - total_count ).insertBefore( next );
41
+ }
42
+ });
43
+ $( '.gllr_image_row' ).each( function() {
44
+ var blocks_count = $( this ).find( ".gllr_image_block" ).length;
45
+ if ( blocks_count > count_blocks_in_row ) {
46
+ var count_for_replace = blocks_count - count_blocks_in_row;
47
+ $( $( this ).next() ).append( $( this ).find( '.gllr_image_block' ).slice( - count_for_replace ) );
48
+ }
49
+ });
50
+ } else {
51
+ if ( true == resize && first_block_count < max_block_count && ( ( block_width * first_block_count ) < $( '.gallery_box_single' ).width() ) ) {
52
+ var count_blocks_in_row = Math.floor( ( $( '.gallery_box_single' ).width() ) / block_width );
53
+
54
+ if ( count_blocks_in_row > max_block_count ) {
55
+ count_blocks_in_row = max_block_count;
56
+ }
57
+
58
+ if ( first_block_count < count_blocks_in_row ) {
59
+
60
+ var all_rows_count = $( ".gllr_image_row" ).length;
61
+
62
+ for ( var i = 0; i <= all_rows_count; i++ ) {
63
+ var current = $( ".gllr_image_row" ).eq( i );
64
+
65
+ if ( $( current ).length > 0 && $( current ).next().length > 0 ) {
66
+
67
+ if ( $( current ).find( '.gllr_image_block' ).length < count_blocks_in_row ) {
68
+
69
+ var count_for_replace = count_blocks_in_row - $( current ).find( '.gllr_image_block' ).length;
70
+
71
+ if ( $( current ).next().find( '.gllr_image_block' ).length <= count_for_replace ) {
72
+ $( current ).append( $( current ).next().find( '.gllr_image_block' ) );
73
+ $( current ).next().remove();
74
+ } else {
75
+ if ( count_for_replace == 1 )
76
+ $( current ).append( $( current ).next().find( '.gllr_image_block' ).slice( 0, 1 ) );
77
+ else
78
+ $( current ).append( $( current ).next().find( '.gllr_image_block' ).slice( 0, count_for_replace ) );
79
+ }
80
+
81
+ if ( $( current ).find( '.gllr_image_block' ).length < count_blocks_in_row ) {
82
+ i--;
83
+ }
84
+ }
85
+ }
86
+ };
87
+ }
88
+ }
89
+ }
90
+ })(jQuery);
91
+ }
92
+
93
+ (function($) {
94
+ $(document).ready( function() {
95
+ var max_block_count = $( ".gllr_image_row:first .gllr_image_block" ).length;
96
+ if ( $( ".gllr_image_row" ).length > 0 ) {
97
+ gllr_replace_image_blocks( max_block_count, false );
98
+ };
99
+
100
+ $(window).on( 'resize', function() {
101
+ gllr_replace_image_blocks( max_block_count, true );
102
+
103
+ $( '.gllr_image_row' ).each( function() {
104
+ if ( $( this ).find( '.gllr_image_block' ).length < 1 ) {
105
+ $( this ).remove();
106
+ }
107
+ });
108
+ });
109
+ });
110
+ })(jQuery);
languages/gallery-ru_RU.po CHANGED
File without changes
languages/gallery-uk.po CHANGED
File without changes
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bestwebsoft.com/donate/
4
  Tags: add album, add gallery, add picture, add pictures, album, foto, fotoalbum, gallery, galery, galary, gallary, gellery, gellary, gelary, gallerie, gallery decription, gallery image, image, multiple pictures, photo, photoalbum, photogallery, pictures, slide show, slideshow, upload images, upload photos, view images, view pictures, website gallery
5
  Requires at least: 3.2
6
  Tested up to: 4.2.2
7
- Stable tag: 4.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -174,6 +174,9 @@ Please make sure that the problem hasn't been discussed yet on our forum (<a hre
174
 
175
  == Changelog ==
176
 
 
 
 
177
  = V4.3.2 - 24.06.2015 =
178
  * Update : Gallery Settings page is updated.
179
  * Update : The Ukrainian and Russian language files are updated.
@@ -490,6 +493,9 @@ Please make sure that the problem hasn't been discussed yet on our forum (<a hre
490
 
491
  == Upgrade Notice ==
492
 
 
 
 
493
  = V4.3.2 =
494
  Gallery Settings page is updated. The Ukrainian and Russian language files are updated. BWS plugins section is updated.
495
 
4
  Tags: add album, add gallery, add picture, add pictures, album, foto, fotoalbum, gallery, galery, galary, gallary, gellery, gellary, gelary, gallerie, gallery decription, gallery image, image, multiple pictures, photo, photoalbum, photogallery, pictures, slide show, slideshow, upload images, upload photos, view images, view pictures, website gallery
5
  Requires at least: 3.2
6
  Tested up to: 4.2.2
7
+ Stable tag: 4.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
174
 
175
  == Changelog ==
176
 
177
+ = V4.3.3 - 07.07.2015 =
178
+ * NEW : We`ve made responsive gallery display.
179
+
180
  = V4.3.2 - 24.06.2015 =
181
  * Update : Gallery Settings page is updated.
182
  * Update : The Ukrainian and Russian language files are updated.
493
 
494
  == Upgrade Notice ==
495
 
496
+ = V4.3.3 =
497
+ We`ve made responsive gallery display.
498
+
499
  = V4.3.2 =
500
  Gallery Settings page is updated. The Ukrainian and Russian language files are updated. BWS plugins section is updated.
501
 
template/gallery-single-template.php CHANGED
@@ -65,7 +65,9 @@ get_header(); ?>
65
  </a>
66
  <?php } ?>
67
  </p>
68
- <div style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0] + $gllr_border_images; ?>px; <?php if ( 0 == $gllr_options["image_text"] ) echo "display:none;"; ?>" class="gllr_single_image_text"><?php echo get_post_meta( $attachment->ID, $key, true ); ?>&nbsp;</div>
 
 
69
  </div><!-- .gllr_image_block -->
70
  <?php if ( $count_image_block%$gllr_options['custom_image_row_count'] == $gllr_options['custom_image_row_count']-1 ) { ?>
71
  </div><!-- .gllr_image_row -->
65
  </a>
66
  <?php } ?>
67
  </p>
68
+ <?php if ( 1 == $gllr_options["image_text"] ) { ?>
69
+ <div style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0] + $gllr_border_images; ?>px;" class="gllr_single_image_text"><?php echo get_post_meta( $attachment->ID, $key, true ); ?>&nbsp;</div>
70
+ <?php } ?>
71
  </div><!-- .gllr_image_block -->
72
  <?php if ( $count_image_block%$gllr_options['custom_image_row_count'] == $gllr_options['custom_image_row_count']-1 ) { ?>
73
  </div><!-- .gllr_image_row -->