Photo Gallery by WD – Responsive Photo Gallery - Version 1.3.63

Version Description

  • Fixed: Minor Bugs
Download this release

Release Info

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

Code changes from version 1.3.62 to 1.3.63

framework/WDWLibrary.php CHANGED
@@ -1186,6 +1186,9 @@ class WDWLibrary {
1186
  if ( $albums_per_page ) {
1187
  $limit_str = 'LIMIT ' . $limit . ',' . $albums_per_page;
1188
  }
 
 
 
1189
  if ( $sort_by != "RAND()" ) {
1190
  $sort_by = '`' . $sort_by . '`';
1191
  }
@@ -1643,247 +1646,166 @@ class WDWLibrary {
1643
  public static function get_shortcode_option_params( $params ) {
1644
  global $wd_bwg_options;
1645
  $theme = self::get_theme_row_data(0);
1646
- $type = (!empty($params['gallery_type'])) ? $params['gallery_type'] : 'thumbnails';
1647
  $use_option_defaults = (isset($params['use_option_defaults']) && $params['use_option_defaults'] == 1) ? TRUE : FALSE;
1648
 
1649
- $everyone_option = array(
1650
  'gallery_type' => $params['gallery_type'],
1651
- 'tag' => (!$use_option_defaults && isset($params['tag'])) ? $params['tag'] : 0,
1652
- 'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
1653
- 'sort_by' => (!$use_option_defaults && isset($params['sort_by'])) ? $params['sort_by'] : 'order',
1654
- 'order_by' => (!$use_option_defaults && isset($params['order_by'])) ? $params['order_by'] : 'asc',
1655
- 'thumb_click_action' => (!$use_option_defaults && isset($params['thumb_click_action'])) ? $params['thumb_click_action'] : $wd_bwg_options->thumb_click_action,
1656
- 'thumb_link_target' => (!$use_option_defaults && isset($params['thumb_link_target'])) ? $params['thumb_link_target'] : $wd_bwg_options->thumb_link_target,
1657
- 'popup_fullscreen' => (!$use_option_defaults && isset($params['popup_fullscreen'])) ? $params['popup_fullscreen'] : $wd_bwg_options->popup_fullscreen,
1658
- 'popup_autoplay' => (!$use_option_defaults && isset($params['popup_autoplay'])) ? $params['popup_autoplay'] : $wd_bwg_options->popup_autoplay,
1659
- 'popup_width' => (!$use_option_defaults && isset($params['popup_width'])) ? $params['popup_width'] : $wd_bwg_options->popup_width,
1660
- 'popup_height' => (!$use_option_defaults && isset($params['popup_height'])) ? $params['popup_height'] : $wd_bwg_options->popup_height,
1661
- 'popup_effect' => (!$use_option_defaults && isset($params['popup_effect'])) ? $params['popup_effect'] : $wd_bwg_options->popup_type,
1662
- 'popup_interval' => (!$use_option_defaults && isset($params['popup_interval'])) ? $params['popup_interval'] : $wd_bwg_options->popup_interval,
1663
- 'popup_enable_filmstrip' => (!$use_option_defaults && isset($params['popup_enable_filmstrip'])) ? $params['popup_enable_filmstrip'] : $wd_bwg_options->popup_enable_filmstrip,
1664
- 'popup_filmstrip_height' => (!$use_option_defaults && isset($params['popup_filmstrip_height'])) ? $params['popup_filmstrip_height'] : $wd_bwg_options->popup_filmstrip_height,
1665
- 'popup_enable_ctrl_btn' => (!$use_option_defaults && isset($params['popup_enable_ctrl_btn'])) ? $params['popup_enable_ctrl_btn'] : $wd_bwg_options->popup_enable_ctrl_btn,
1666
- 'popup_enable_fullscreen' => (!$use_option_defaults && isset($params['popup_enable_fullscreen'])) ? $params['popup_enable_fullscreen'] : $wd_bwg_options->popup_enable_fullscreen,
1667
- 'popup_enable_info' => (!$use_option_defaults && isset($params['popup_enable_info'])) ? $params['popup_enable_info'] : $wd_bwg_options->popup_enable_info,
1668
- 'popup_info_always_show' => (!$use_option_defaults && isset($params['popup_info_always_show'])) ? $params['popup_info_always_show'] : $wd_bwg_options->popup_info_always_show,
1669
- 'popup_info_full_width' => (!$use_option_defaults && isset($params['popup_info_full_width'])) ? $params['popup_info_full_width'] : $wd_bwg_options->popup_info_full_width,
1670
- 'popup_enable_rate' => (!$use_option_defaults && isset($params['popup_enable_rate'])) ? $params['popup_enable_rate'] : $wd_bwg_options->popup_enable_rate,
1671
- 'popup_enable_comment' => (!$use_option_defaults && isset($params['popup_enable_comment'])) ? $params['popup_enable_comment'] : $wd_bwg_options->popup_enable_comment,
1672
- 'popup_hit_counter' => (!$use_option_defaults && isset($params['popup_hit_counter'])) ? $params['popup_hit_counter'] : $wd_bwg_options->popup_hit_counter,
1673
- 'popup_enable_facebook' => (!$use_option_defaults && isset($params['popup_enable_facebook'])) ? $params['popup_enable_facebook'] : $wd_bwg_options->popup_enable_facebook,
1674
- 'popup_enable_twitter' => (!$use_option_defaults && isset($params['popup_enable_twitter'])) ? $params['popup_enable_twitter'] : $wd_bwg_options->popup_enable_twitter,
1675
- 'popup_enable_google' => (!$use_option_defaults && isset($params['popup_enable_google'])) ? $params['popup_enable_google'] : $wd_bwg_options->popup_enable_google,
1676
- 'popup_enable_ecommerce' => (!$use_option_defaults && isset($params['popup_enable_ecommerce'])) ? $params['popup_enable_ecommerce'] : $wd_bwg_options->popup_enable_ecommerce,
1677
- 'popup_enable_pinterest' => (!$use_option_defaults && isset($params['popup_enable_pinterest'])) ? $params['popup_enable_pinterest'] : $wd_bwg_options->popup_enable_pinterest,
1678
- 'popup_enable_tumblr' => (!$use_option_defaults && isset($params['popup_enable_tumblr'])) ? $params['popup_enable_tumblr'] : $wd_bwg_options->popup_enable_tumblr,
1679
- 'popup_effect_duration' => (!$use_option_defaults && isset($params['popup_effect_duration'])) ? $params['popup_effect_duration'] : $wd_bwg_options->popup_effect_duration,
1680
- 'watermark_type' => (!$use_option_defaults && isset($params['watermark_type'])) ? $params['watermark_type'] : $wd_bwg_options->watermark_type,
1681
- 'watermark_text' => (!$use_option_defaults && isset($params['watermark_text'])) ? urlencode($params['watermark_text']) : urlencode($wd_bwg_options->watermark_text),
1682
- 'watermark_font_size' => (!$use_option_defaults && isset($params['watermark_font_size'])) ? $params['watermark_font_size'] : $wd_bwg_options->watermark_font_size,
1683
- 'watermark_font' => (!$use_option_defaults && isset($params['watermark_font'])) ? $params['watermark_font'] : $wd_bwg_options->watermark_font,
1684
- 'watermark_color' => (!$use_option_defaults && isset($params['watermark_color'])) ? $params['watermark_color'] : $wd_bwg_options->watermark_color,
1685
- 'watermark_link' => (!$use_option_defaults && isset($params['watermark_link'])) ? urlencode($params['watermark_link']) : urlencode($wd_bwg_options->watermark_link),
1686
- 'watermark_url' => (!$use_option_defaults && isset($params['watermark_url'])) ? urlencode($params['watermark_url']) : urlencode($wd_bwg_options->watermark_url),
1687
- 'watermark_width' => (!$use_option_defaults && isset($params['watermark_width'])) ? $params['watermark_width'] : $wd_bwg_options->watermark_width,
1688
- 'watermark_height' => (!$use_option_defaults && isset($params['watermark_height'])) ? $params['watermark_height'] : $wd_bwg_options->watermark_height,
1689
- 'watermark_opacity' => (!$use_option_defaults && isset($params['watermark_opacity'])) ? $params['watermark_opacity'] : $wd_bwg_options->watermark_opacity,
1690
- 'watermark_position' => (!$use_option_defaults && isset($params['watermark_position'])) ? $params['watermark_position'] : $wd_bwg_options->watermark_position,
1691
- 'ecommerce_icon' => (!$use_option_defaults && isset($params['ecommerce_icon'])) ? $params['ecommerce_icon'] : $wd_bwg_options->ecommerce_icon_show_hover,
1692
- 'show_search_box' => (!$use_option_defaults && isset($params['show_search_box'])) ? $params['show_search_box'] : $wd_bwg_options->show_search_box,
1693
- 'search_box_width' => (!$use_option_defaults && isset($params['search_box_width'])) ? $params['search_box_width'] : $wd_bwg_options->search_box_width,
1694
- 'show_tag_box' => (!$use_option_defaults && isset($params['show_tag_box'])) ? $params['show_tag_box'] : $wd_bwg_options->show_tag_box,
1695
- 'show_sort_images' => (!$use_option_defaults && isset($params['show_sort_images'])) ? $params['show_sort_images'] : $wd_bwg_options->show_sort_images,
1696
- 'show_gallery_description' => (!$use_option_defaults && isset($params['show_gallery_description'])) ? $params['show_gallery_description'] : $wd_bwg_options->show_gallery_description,
1697
- );
1698
- $default = array();
1699
- switch ( $type ) {
1700
- case 'thumbnails' : {
1701
- $default = array(
1702
- 'gallery_id' => $params['gallery_id'],
1703
- 'gal_title' => isset($params['gal_title']) ? $params['gal_title'] : '',
1704
- 'image_title' => (!$use_option_defaults && isset($params['image_title'])) ? $params['image_title'] : $wd_bwg_options->image_title_show_hover,
1705
- 'load_more_image_count' => (!$use_option_defaults && isset($params['load_more_image_count'])) ? $params['load_more_image_count'] : $wd_bwg_options->images_per_page,
1706
- 'image_column_number' => (!$use_option_defaults && isset($params['image_column_number'])) ? $params['image_column_number'] : $wd_bwg_options->image_column_number,
1707
- 'image_enable_page' => (!$use_option_defaults && isset($params['image_enable_page'])) ? $params['image_enable_page'] : $wd_bwg_options->image_enable_page,
1708
- 'images_per_page' => (!$use_option_defaults && isset($params['images_per_page'])) ? $params['images_per_page'] : $wd_bwg_options->images_per_page,
1709
- 'thumb_width' => (!$use_option_defaults && isset($params['thumb_width'])) ? $params['thumb_width'] : $wd_bwg_options->thumb_width,
1710
- 'thumb_height' => (!$use_option_defaults && isset($params['thumb_height'])) ? $params['thumb_height'] : $wd_bwg_options->thumb_height,
1711
- 'showthumbs_name' => (!$use_option_defaults && isset($params['showthumbs_name'])) ? $params['showthumbs_name'] : $wd_bwg_options->showthumbs_name,
1712
- );
1713
- }
1714
- break;
1715
- case 'thumbnails_masonry': {
1716
- $default = array(
1717
- 'gallery_id' => $params['gallery_id'],
1718
- 'masonry_hor_ver' => (!$use_option_defaults && isset($params['masonry_hor_ver'])) ? $params['masonry_hor_ver'] : 'vertical',
1719
- 'load_more_image_count' => (!$use_option_defaults && isset($params['load_more_image_count'])) ? $params['load_more_image_count'] : $wd_bwg_options->images_per_page,
1720
- 'image_column_number' => (!$use_option_defaults && isset($params['image_column_number'])) ? $params['image_column_number'] : $wd_bwg_options->image_column_number,
1721
- 'image_enable_page' => (!$use_option_defaults && isset($params['image_enable_page'])) ? $params['image_enable_page'] : $wd_bwg_options->image_enable_page,
1722
- 'images_per_page' => (!$use_option_defaults && isset($params['images_per_page'])) ? $params['images_per_page'] : $wd_bwg_options->images_per_page,
1723
- 'thumb_width' => (!$use_option_defaults && isset($params['thumb_width'])) ? $params['thumb_width'] : $wd_bwg_options->thumb_width,
1724
- 'thumb_height' => (!$use_option_defaults && isset($params['thumb_height'])) ? $params['thumb_height'] : $wd_bwg_options->thumb_height,
1725
- 'showthumbs_name' => (!$use_option_defaults && isset($params['showthumbs_name'])) ? $params['showthumbs_name'] : $wd_bwg_options->showthumbs_name,
1726
- );
1727
- }
1728
- break;
1729
- case 'thumbnails_mosaic': {
1730
- $default = array(
1731
- 'gallery_id' => $params['gallery_id'],
1732
- 'mosaic_hor_ver' => (!$use_option_defaults && isset($params['mosaic_hor_ver'])) ? $params['mosaic_hor_ver'] : $wd_bwg_options->mosaic,
1733
- 'image_title' => (!$use_option_defaults && isset($params['image_title'])) ? $params['image_title'] : $wd_bwg_options->image_title_show_hover,
1734
- 'load_more_image_count' => (!$use_option_defaults && isset($params['load_more_image_count'])) ? $params['load_more_image_count'] : $wd_bwg_options->images_per_page,
1735
- 'images_per_page' => (!$use_option_defaults && isset($params['images_per_page'])) ? $params['images_per_page'] : $wd_bwg_options->images_per_page,
1736
- 'image_enable_page' => (!$use_option_defaults && isset($params['image_enable_page'])) ? $params['image_enable_page'] : $wd_bwg_options->image_enable_page,
1737
- 'resizable_mosaic' => (!$use_option_defaults && isset($params['resizable_mosaic'])) ? $params['resizable_mosaic'] : $wd_bwg_options->image_enable_page,
1738
- 'mosaic_total_width' => (!$use_option_defaults && isset($params['mosaic_total_width'])) ? $params['mosaic_total_width'] : $wd_bwg_options->mosaic_total_width,
1739
- 'thumb_width' => (!$use_option_defaults && isset($params['thumb_width'])) ? $params['thumb_width'] : $wd_bwg_options->thumb_width,
1740
- 'thumb_height' => (!$use_option_defaults && isset($params['thumb_height'])) ? $params['thumb_height'] : $wd_bwg_options->thumb_height,
1741
- 'showthumbs_name' => (!$use_option_defaults && isset($params['showthumbs_name'])) ? $params['showthumbs_name'] : $wd_bwg_options->showthumbs_name,
1742
- );
1743
- }
1744
- break;
1745
- case 'slideshow': {
1746
- $default = array(
1747
- 'gallery_id' => $params['gallery_id'],
1748
- 'slideshow_effect' => (!$use_option_defaults && isset($params['slideshow_effect'])) ? $params['slideshow_effect'] : $wd_bwg_options->slideshow_type,
1749
- 'slideshow_interval' => (!$use_option_defaults && isset($params['slideshow_interval'])) ? $params['slideshow_interval'] : $wd_bwg_options->slideshow_interval,
1750
- 'slideshow_width' => (!$use_option_defaults && isset($params['slideshow_width'])) ? $params['slideshow_width'] : $wd_bwg_options->slideshow_width,
1751
- 'slideshow_height' => (!$use_option_defaults && isset($params['slideshow_height'])) ? $params['slideshow_height'] : $wd_bwg_options->slideshow_height,
1752
- 'thumb_width' => (!$use_option_defaults && isset($params['thumb_width'])) ? $params['thumb_width'] : $wd_bwg_options->thumb_width,
1753
- 'thumb_height' => (!$use_option_defaults && isset($params['thumb_height'])) ? $params['thumb_height'] : $wd_bwg_options->thumb_height,
1754
- 'enable_slideshow_autoplay' => (!$use_option_defaults && isset($params['enable_slideshow_autoplay'])) ? $params['enable_slideshow_autoplay'] : $wd_bwg_options->slideshow_enable_autoplay,
1755
- 'enable_slideshow_shuffle' => (!$use_option_defaults && isset($params['enable_slideshow_shuffle'])) ? $params['enable_slideshow_shuffle'] : $wd_bwg_options->slideshow_enable_shuffle,
1756
- 'enable_slideshow_ctrl' => (!$use_option_defaults && isset($params['enable_slideshow_ctrl'])) ? $params['enable_slideshow_ctrl'] : $wd_bwg_options->slideshow_enable_ctrl,
1757
- 'enable_slideshow_filmstrip' => (!$use_option_defaults && isset($params['enable_slideshow_filmstrip'])) ? $params['enable_slideshow_filmstrip'] : $wd_bwg_options->slideshow_enable_filmstrip,
1758
- 'slideshow_filmstrip_height' => (!$use_option_defaults && isset($params['slideshow_filmstrip_height'])) ? $params['slideshow_filmstrip_height'] : $wd_bwg_options->slideshow_filmstrip_height,
1759
- 'slideshow_enable_title' => (!$use_option_defaults && isset($params['slideshow_enable_title'])) ? $params['slideshow_enable_title'] : $wd_bwg_options->slideshow_enable_title,
1760
- 'slideshow_title_full_width' => (!$use_option_defaults && isset($params['slideshow_title_full_width'])) ? $params['slideshow_title_full_width'] : $wd_bwg_options->slideshow_title_full_width,
1761
- 'slideshow_title_position' => (!$use_option_defaults && isset($params['slideshow_title_position'])) ? $params['slideshow_title_position'] : $wd_bwg_options->slideshow_title_position,
1762
- 'slideshow_enable_description' => (!$use_option_defaults && isset($params['slideshow_enable_description'])) ? $params['slideshow_enable_description'] : $wd_bwg_options->slideshow_enable_description,
1763
- 'slideshow_description_position' => (!$use_option_defaults && isset($params['slideshow_description_position'])) ? $params['slideshow_description_position'] : $wd_bwg_options->slideshow_description_position,
1764
- 'enable_slideshow_music' => (!$use_option_defaults && isset($params['enable_slideshow_music'])) ? $params['enable_slideshow_music'] : $wd_bwg_options->slideshow_enable_music,
1765
- 'slideshow_music_url' => (!$use_option_defaults && isset($params['slideshow_music_url'])) ? $params['slideshow_music_url'] : $wd_bwg_options->slideshow_audio_url,
1766
- 'slideshow_effect_duration' => (!$use_option_defaults && isset($params['slideshow_effect_duration'])) ? $params['slideshow_effect_duration'] : $wd_bwg_options->slideshow_effect_duration,
1767
- );
1768
- }
1769
- break;
1770
- case 'image_browser': {
1771
- $default = array(
1772
- 'gallery_id' => $params['gallery_id'],
1773
- 'image_browser_width' => (!$use_option_defaults && isset($params['image_browser_width'])) ? $params['image_browser_width'] : $wd_bwg_options->image_browser_width,
1774
- 'image_browser_title_enable' => (!$use_option_defaults && isset($params['image_browser_title_enable'])) ? $params['image_browser_title_enable'] : $wd_bwg_options->image_browser_title_enable,
1775
- 'image_browser_description_enable' => (!$use_option_defaults && isset($params['image_browser_description_enable'])) ? $params['image_browser_description_enable'] : $wd_bwg_options->image_browser_description_enable,
1776
- );
1777
- }
1778
- break;
1779
- case 'album_compact_preview': {
1780
- $default = array(
1781
- 'album_id' => $params['album_id'],
1782
- 'compuct_album_column_number' => (!$use_option_defaults && isset($params['compuct_album_column_number'])) ? $params['compuct_album_column_number'] : $wd_bwg_options->album_column_number,
1783
- 'compuct_albums_per_page' => (!$use_option_defaults && isset($params['compuct_albums_per_page'])) ? $params['compuct_albums_per_page'] : $wd_bwg_options->albums_per_page,
1784
- 'compuct_album_title' => (!$use_option_defaults && isset($params['compuct_album_title'])) ? $params['compuct_album_title'] : $wd_bwg_options->album_title_show_hover,
1785
- 'compuct_album_view_type' => (!$use_option_defaults && isset($params['compuct_album_view_type'])) ? $params['compuct_album_view_type'] : $wd_bwg_options->album_view_type,
1786
- 'compuct_album_thumb_width' => (!$use_option_defaults && isset($params['compuct_album_thumb_width'])) ? $params['compuct_album_thumb_width'] : $wd_bwg_options->album_thumb_width,
1787
- 'compuct_album_thumb_height' => (!$use_option_defaults && isset($params['compuct_album_thumb_height'])) ? $params['compuct_album_thumb_height'] : $wd_bwg_options->album_thumb_height,
1788
- 'compuct_album_image_column_number' => (!$use_option_defaults && isset($params['compuct_album_image_column_number'])) ? $params['compuct_album_image_column_number'] : $wd_bwg_options->image_column_number,
1789
- 'compuct_album_images_per_page' => (!$use_option_defaults && isset($params['compuct_album_images_per_page'])) ? $params['compuct_album_images_per_page'] : $wd_bwg_options->images_per_page,
1790
- 'compuct_album_image_title' => (!$use_option_defaults && isset($params['compuct_album_image_title'])) ? $params['compuct_album_image_title'] : $wd_bwg_options->image_title_show_hover,
1791
- 'compuct_album_image_thumb_width' => (!$use_option_defaults && isset($params['compuct_album_image_thumb_width'])) ? $params['compuct_album_image_thumb_width'] : $wd_bwg_options->thumb_width,
1792
- 'compuct_album_image_thumb_height' => (!$use_option_defaults && isset($params['compuct_album_image_thumb_height'])) ? $params['compuct_album_image_thumb_height'] : $wd_bwg_options->thumb_height,
1793
- 'compuct_album_enable_page' => (!$use_option_defaults && isset($params['compuct_album_enable_page'])) ? $params['compuct_album_enable_page'] : $wd_bwg_options->album_enable_page,
1794
- 'compuct_album_load_more_image_count' => (!$use_option_defaults && isset($params['compuct_album_load_more_image_count'])) ? $params['compuct_album_load_more_image_count'] : $wd_bwg_options->images_per_page,
1795
- 'compuct_albums_per_page_load_more' => (!$use_option_defaults && isset($params['compuct_albums_per_page_load_more'])) ? $params['compuct_albums_per_page_load_more'] : $wd_bwg_options->albums_per_page,
1796
- 'compuct_album_mosaic_hor_ver' => (!$use_option_defaults && isset($params['compuct_album_mosaic_hor_ver'])) ? $params['compuct_album_mosaic_hor_ver'] : $wd_bwg_options->mosaic,
1797
- 'compuct_album_resizable_mosaic' => (!$use_option_defaults && isset($params['compuct_album_resizable_mosaic'])) ? $params['compuct_album_resizable_mosaic'] : $wd_bwg_options->resizable_mosaic,
1798
- 'compuct_album_mosaic_total_width' => (!$use_option_defaults && isset($params['compuct_album_mosaic_total_width'])) ? $params['compuct_album_mosaic_total_width'] : $wd_bwg_options->mosaic_total_width,
1799
- 'show_album_name' => (!$use_option_defaults && isset($params['show_album_name'])) ? $params['show_album_name'] : $wd_bwg_options->show_album_name,
1800
- );
1801
- }
1802
- break;
1803
- case 'album_masonry_preview': {
1804
- $default = array(
1805
- 'album_id' => $params['album_id'],
1806
- 'masonry_album_column_number' => (!$use_option_defaults && isset($params['masonry_album_column_number'])) ? $params['masonry_album_column_number'] : $wd_bwg_options->album_column_number,
1807
- 'masonry_albums_per_page' => (!$use_option_defaults && isset($params['masonry_albums_per_page'])) ? $params['masonry_albums_per_page'] : $wd_bwg_options->albums_per_page,
1808
- 'masonry_album_title' => (!$use_option_defaults && isset($params['masonry_album_title'])) ? $params['masonry_album_title'] : $wd_bwg_options->album_title_show_hover,
1809
- 'masonry_album_thumb_width' => (!$use_option_defaults && isset($params['masonry_album_thumb_width'])) ? $params['masonry_album_thumb_width'] : $wd_bwg_options->album_thumb_width,
1810
- 'masonry_album_thumb_height' => (!$use_option_defaults && isset($params['masonry_album_thumb_height'])) ? $params['masonry_album_thumb_height'] : $wd_bwg_options->album_thumb_height,
1811
- 'masonry_album_image_column_number' => (!$use_option_defaults && isset($params['masonry_album_image_column_number'])) ? $params['masonry_album_image_column_number'] : $wd_bwg_options->image_column_number,
1812
- 'masonry_album_images_per_page' => (!$use_option_defaults && isset($params['masonry_album_images_per_page'])) ? $params['masonry_album_images_per_page'] : $wd_bwg_options->images_per_page,
1813
- 'masonry_album_image_title' => (!$use_option_defaults && isset($params['masonry_album_image_title'])) ? $params['masonry_album_image_title'] : $wd_bwg_options->image_title_show_hover,
1814
- 'masonry_album_image_thumb_width' => (!$use_option_defaults && isset($params['masonry_album_image_thumb_width'])) ? $params['masonry_album_image_thumb_width'] : $wd_bwg_options->thumb_width,
1815
- 'masonry_album_image_thumb_height' => (!$use_option_defaults && isset($params['masonry_album_image_thumb_height'])) ? $params['masonry_album_image_thumb_height'] : $wd_bwg_options->thumb_height,
1816
- 'masonry_album_enable_page' => (!$use_option_defaults && isset($params['masonry_album_enable_page'])) ? $params['masonry_album_enable_page'] : $wd_bwg_options->show_album_name,
1817
- 'masonry_album_load_more_image_count' => (!$use_option_defaults && isset($params['masonry_album_load_more_image_count'])) ? $params['masonry_album_load_more_image_count'] : $wd_bwg_options->images_per_page,
1818
- 'masonry_albums_per_page_load_more' => (!$use_option_defaults && isset($params['masonry_albums_per_page_load_more'])) ? $params['masonry_albums_per_page_load_more'] : $wd_bwg_options->albums_per_page,
1819
- 'show_album_name' => (!$use_option_defaults && isset($params['show_album_name'])) ? $params['show_album_name'] : $wd_bwg_options->show_album_name,
1820
- );
1821
- }
1822
- break;
1823
- case 'album_extended_preview': {
1824
- $default = array(
1825
- 'album_id' => $params['album_id'],
1826
- 'extended_album_image_column_number' => (!$use_option_defaults && isset($params['extended_album_image_column_number'])) ? $params['extended_album_image_column_number'] : $wd_bwg_options->album_column_number,
1827
- 'extended_album_images_per_page' => (!$use_option_defaults && isset($params['extended_album_images_per_page'])) ? $params['extended_album_images_per_page'] : $wd_bwg_options->images_per_page,
1828
- 'extended_albums_per_page' => (!$use_option_defaults && isset($params['extended_albums_per_page'])) ? $params['extended_albums_per_page'] : $wd_bwg_options->albums_per_page,
1829
- 'extended_album_height' => (!$use_option_defaults && isset($params['extended_album_height'])) ? $params['extended_album_height'] : $wd_bwg_options->extended_album_height,
1830
- 'extended_album_description_enable' => (!$use_option_defaults && isset($params['extended_album_description_enable'])) ? $params['extended_album_description_enable'] : $wd_bwg_options->extended_album_description_enable,
1831
- 'extended_album_view_type' => (!$use_option_defaults && isset($params['extended_album_view_type'])) ? $params['extended_album_view_type'] : $wd_bwg_options->album_view_type,
1832
- 'extended_album_thumb_width' => (!$use_option_defaults && isset($params['extended_album_thumb_width'])) ? $params['extended_album_thumb_width'] : $wd_bwg_options->album_thumb_width,
1833
- 'extended_album_thumb_height' => (!$use_option_defaults && isset($params['extended_album_thumb_height'])) ? $params['extended_album_thumb_height'] : $wd_bwg_options->album_thumb_height,
1834
- 'extended_album_image_title' => (!$use_option_defaults && isset($params['extended_album_image_title'])) ? $params['extended_album_image_title'] : $wd_bwg_options->image_title_show_hover,
1835
- 'extended_album_image_thumb_width' => (!$use_option_defaults && isset($params['extended_album_image_thumb_width'])) ? $params['extended_album_image_thumb_width'] : $wd_bwg_options->thumb_width,
1836
- 'extended_album_image_thumb_height' => (!$use_option_defaults && isset($params['extended_album_image_thumb_height'])) ? $params['extended_album_image_thumb_height'] : $wd_bwg_options->thumb_height,
1837
- 'extended_album_enable_page' => (!$use_option_defaults && isset($params['extended_album_enable_page'])) ? $params['extended_album_enable_page'] : $wd_bwg_options->show_album_name,
1838
- 'extended_album_load_more_image_count' => (!$use_option_defaults && isset($params['extended_album_load_more_image_count'])) ? $params['extended_album_load_more_image_count'] : $wd_bwg_options->images_per_page,
1839
- 'extended_albums_per_page_load_more' => (!$use_option_defaults && isset($params['extended_albums_per_page_load_more'])) ? $params['extended_albums_per_page_load_more'] : $wd_bwg_options->albums_per_page,
1840
- 'show_album_name' => (!$use_option_defaults && isset($params['show_album_name'])) ? $params['show_album_name'] : $wd_bwg_options->show_album_name,
1841
- );
1842
- }
1843
- break;
1844
- case 'blog_style': {
1845
- $default = array(
1846
- 'gallery_id' => $params['gallery_id'],
1847
- 'blog_style_width' => (!$use_option_defaults && isset($params['blog_style_width'])) ? $params['blog_style_width'] : $wd_bwg_options->image_browser_width,
1848
- 'blog_style_title_enable' => (!$use_option_defaults && isset($params['blog_style_title_enable'])) ? $params['blog_style_title_enable'] : $wd_bwg_options->blog_style_title_enable,
1849
- 'blog_style_images_per_page' => (!$use_option_defaults && isset($params['blog_style_images_per_page'])) ? $params['blog_style_images_per_page'] : $wd_bwg_options->blog_style_images_per_page,
1850
- 'blog_style_enable_page' => (!$use_option_defaults && isset($params['blog_style_enable_page'])) ? $params['blog_style_enable_page'] : $wd_bwg_options->blog_style_enable_page,
1851
- 'blog_style_load_more_image_count' => (!$use_option_defaults && isset($params['blog_style_load_more_image_count'])) ? $params['blog_style_load_more_image_count'] : $wd_bwg_options->images_per_page,
1852
- 'blog_style_description_enable' => (!$use_option_defaults && isset($params['blog_style_description_enable'])) ? $params['blog_style_description_enable'] : $wd_bwg_options->blog_style_description_enable,
1853
- 'showthumbs_name' => (!$use_option_defaults && isset($params['showthumbs_name'])) ? $params['showthumbs_name'] : $wd_bwg_options->showthumbs_name,
1854
- );
1855
- }
1856
- break;
1857
- case 'carousel': {
1858
- $default = array(
1859
- 'gallery_id' => $params['gallery_id'],
1860
- 'carousel_interval' => (!$use_option_defaults && isset($params['carousel_interval'])) ? $params['carousel_interval'] : $wd_bwg_options->carousel_interval,
1861
- 'carousel_width' => (!$use_option_defaults && isset($params['carousel_width'])) ? $params['carousel_width'] : $wd_bwg_options->carousel_width,
1862
- 'carousel_height' => (!$use_option_defaults && isset($params['carousel_height'])) ? $params['carousel_height'] : $wd_bwg_options->carousel_height,
1863
- 'carousel_image_column_number' => (!$use_option_defaults && isset($params['carousel_image_column_number'])) ? $params['carousel_image_column_number'] : $wd_bwg_options->carousel_image_column_number,
1864
- 'carousel_image_par' => (!$use_option_defaults && isset($params['carousel_image_par'])) ? $params['carousel_image_par'] : $wd_bwg_options->carousel_image_par,
1865
- 'carousel_enable_title' => (!$use_option_defaults && isset($params['carousel_enable_title'])) ? $params['carousel_enable_title'] : $wd_bwg_options->carousel_enable_title,
1866
- 'carousel_enable_autoplay' => (!$use_option_defaults && isset($params['carousel_enable_autoplay'])) ? $params['carousel_enable_autoplay'] : $wd_bwg_options->carousel_enable_autoplay,
1867
- 'carousel_r_width' => (!$use_option_defaults && isset($params['carousel_r_width'])) ? $params['carousel_r_width'] : $wd_bwg_options->carousel_r_width,
1868
- 'carousel_fit_containerWidth' => (!$use_option_defaults && isset($params['carousel_fit_containerWidth'])) ? $params['carousel_fit_containerWidth'] : $wd_bwg_options->carousel_fit_containerWidth,
1869
- 'carousel_prev_next_butt' => (!$use_option_defaults && isset($params['carousel_prev_next_butt'])) ? $params['carousel_prev_next_butt'] : $wd_bwg_options->carousel_prev_next_butt,
1870
- 'carousel_play_pause_butt' => (!$use_option_defaults && isset($params['carousel_play_pause_butt'])) ? $params['carousel_play_pause_butt'] : $wd_bwg_options->carousel_play_pause_butt,
1871
- );
1872
- }
1873
- break;
1874
- }
1875
 
1876
- $defaults = array_merge($default, $everyone_option);
1877
- $defaults_merge = array_merge($params, $defaults);
1878
- return $defaults_merge;
1879
  }
1880
 
1881
  /**
1882
  * Get font families.
1883
  *
1884
- * @return array
 
 
1885
  */
1886
- public function get_fonts($font = FALSE) {
1887
  $fonts = array(
1888
  'arial' => 'Arial',
1889
  'Lucida grande' => 'Lucida grande',
1186
  if ( $albums_per_page ) {
1187
  $limit_str = 'LIMIT ' . $limit . ',' . $albums_per_page;
1188
  }
1189
+ if ( $sort_by == "random" ) {
1190
+ $sort_by = "RAND()";
1191
+ }
1192
  if ( $sort_by != "RAND()" ) {
1193
  $sort_by = '`' . $sort_by . '`';
1194
  }
1646
  public static function get_shortcode_option_params( $params ) {
1647
  global $wd_bwg_options;
1648
  $theme = self::get_theme_row_data(0);
 
1649
  $use_option_defaults = (isset($params['use_option_defaults']) && $params['use_option_defaults'] == 1) ? TRUE : FALSE;
1650
 
1651
+ $defaults = array(
1652
  'gallery_type' => $params['gallery_type'],
1653
+ 'gallery_id' => isset($params['gallery_id']) ? $params['gallery_id'] : 0,
1654
+ 'gal_title' => isset($params['gal_title']) ? $params['gal_title'] : '',
1655
+ 'album_id' => isset($params['album_id']) ? $params['album_id'] : 0,
1656
+ 'tag' => isset($params['tag']) ? $params['tag'] : 0,
1657
+ 'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
1658
+ 'sort_by' => (isset($params['sort_by'])) ? $params['sort_by'] : 'order',
1659
+ 'order_by' => (isset($params['order_by'])) ? $params['order_by'] : 'asc',
1660
+ 'thumb_click_action' => ($use_option_defaults ? $wd_bwg_options->thumb_click_action : (isset($params['thumb_click_action']) && $params['thumb_click_action'] != 'undefined' ? $params['thumb_click_action'] : 'open_lightbox')),
1661
+ 'image_title' => ($use_option_defaults ? $wd_bwg_options->image_title_show_hover : (isset($params['image_title']) ? $params['image_title'] : 'none')),
1662
+ 'popup_fullscreen' => ($use_option_defaults ? $wd_bwg_options->popup_fullscreen : (isset($params['popup_fullscreen']) ? $params['popup_fullscreen'] : 0)),
1663
+ 'popup_autoplay' => ($use_option_defaults ? $wd_bwg_options->popup_autoplay : (isset($params['popup_autoplay']) ? $params['popup_autoplay'] : 0)),
1664
+ 'popup_enable_pinterest' => ($use_option_defaults ? $wd_bwg_options->popup_enable_pinterest : (isset($params['popup_enable_pinterest']) ? $params['popup_enable_pinterest'] : 0)),
1665
+ 'popup_enable_tumblr' => ($use_option_defaults ? $wd_bwg_options->popup_enable_tumblr : (isset($params['popup_enable_tumblr']) ? $params['popup_enable_tumblr'] : 0)),
1666
+ 'show_search_box' => ($use_option_defaults ? $wd_bwg_options->show_search_box : (isset($params['show_search_box']) ? $params['show_search_box'] : 0)),
1667
+ 'search_box_width' => ($use_option_defaults ? $wd_bwg_options->search_box_width : (isset($params['search_box_width']) ? $params['search_box_width'] : 180)),
1668
+ 'popup_enable_info' => ($use_option_defaults ? $wd_bwg_options->popup_enable_info : (isset($params['popup_enable_info']) ? $params['popup_enable_info'] : 1)),
1669
+ 'popup_info_always_show' => ($use_option_defaults ? $wd_bwg_options->popup_info_always_show : (isset($params['popup_info_always_show']) ? $params['popup_info_always_show'] : 0)),
1670
+ 'popup_info_full_width' => ($use_option_defaults ? $wd_bwg_options->popup_info_full_width : (isset($params['popup_info_full_width']) ? $params['popup_info_full_width'] : 0)),
1671
+ 'popup_enable_rate' => ($use_option_defaults ? $wd_bwg_options->popup_enable_rate : (isset($params['popup_enable_rate']) ? $params['popup_enable_rate'] : 0)),
1672
+ 'thumb_link_target' => ($use_option_defaults ? $wd_bwg_options->thumb_link_target : (isset($params['thumb_link_target']) ? $params['thumb_link_target'] : 1)),
1673
+ 'popup_hit_counter' => ($use_option_defaults ? $wd_bwg_options->popup_hit_counter : (isset($params['popup_hit_counter']) ? $params['popup_hit_counter'] : 0)),
1674
+ 'show_sort_images' => ($use_option_defaults ? $wd_bwg_options->show_sort_images : (isset($params['show_sort_images']) ? $params['show_sort_images'] : 0)),
1675
+ 'image_enable_page' => ($use_option_defaults ? $wd_bwg_options->image_enable_page : (isset($params['image_enable_page']) ? $params['image_enable_page'] : 1)),
1676
+ 'show_tag_box' => ($use_option_defaults ? $wd_bwg_options->show_tag_box : (isset($params['show_tag_box']) ? $params['show_tag_box'] : 0)),
1677
+ 'show_gallery_description' => ($use_option_defaults ? $wd_bwg_options->show_gallery_description : (isset($params['show_gallery_description']) ? $params['show_gallery_description'] : 0)),
1678
+ 'showthumbs_name' => ($use_option_defaults ? $wd_bwg_options->showthumbs_name : (isset($params['showthumbs_name']) ? $params['showthumbs_name'] : $wd_bwg_options->showthumbs_name)),
1679
+ 'popup_effect_duration' => ($use_option_defaults ? $wd_bwg_options->popup_effect_duration : (isset($params['popup_effect_duration']) ? $params['popup_effect_duration'] : 1)),
1680
+ 'slideshow_title_full_width' => ($use_option_defaults ? $wd_bwg_options->slideshow_title_full_width : (isset($params['slideshow_title_full_width']) ? $params['slideshow_title_full_width'] : 0)),
1681
+ 'enable_slideshow_music' => ($use_option_defaults ? $wd_bwg_options->slideshow_enable_music : (isset($params['enable_slideshow_music']) ? $params['enable_slideshow_music'] : 0)),
1682
+ 'slideshow_music_url' => ($use_option_defaults ? $wd_bwg_options->slideshow_audio_url : (isset($params['slideshow_music_url']) ? $params['slideshow_music_url'] : '')),
1683
+ 'slideshow_effect_duration' => ($use_option_defaults ? $wd_bwg_options->slideshow_effect_duration : (isset($params['slideshow_effect_duration']) ? $params['slideshow_effect_duration'] : 1)),
1684
+ 'slideshow_effect' => ($use_option_defaults ? $wd_bwg_options->slideshow_type : (isset($params['slideshow_effect']) ? $params['slideshow_effect'] : 'fade')),
1685
+ 'slideshow_interval' => ($use_option_defaults ? $wd_bwg_options->slideshow_interval : (isset($params['slideshow_interval']) ? $params['slideshow_interval'] : 5)),
1686
+ 'slideshow_width' => ($use_option_defaults ? $wd_bwg_options->slideshow_width : (isset($params['slideshow_width']) ? $params['slideshow_width'] : 800)),
1687
+ 'slideshow_height' => ($use_option_defaults ? $wd_bwg_options->slideshow_height : (isset($params['slideshow_height']) ? $params['slideshow_height'] : 600)),
1688
+ 'thumb_width' => ($use_option_defaults ? $wd_bwg_options->thumb_width : (isset($params['thumb_width']) ? $params['thumb_width'] : 120)),
1689
+ 'thumb_height' => ($use_option_defaults ? $wd_bwg_options->thumb_height : (isset($params['thumb_height']) ? $params['thumb_height'] : 90)),
1690
+ 'enable_slideshow_autoplay' => ($use_option_defaults ? $wd_bwg_options->slideshow_enable_autoplay : (isset($params['enable_slideshow_autoplay']) ? $params['enable_slideshow_autoplay'] : $wd_bwg_options->slideshow_enable_autoplay)),
1691
+ 'enable_slideshow_shuffle' => ($use_option_defaults ? $wd_bwg_options->slideshow_enable_shuffle : (isset($params['enable_slideshow_shuffle']) ? $params['enable_slideshow_shuffle'] : 0)),
1692
+ 'enable_slideshow_ctrl' => ($use_option_defaults ? $wd_bwg_options->slideshow_enable_ctrl : (isset($params['enable_slideshow_ctrl']) ? $params['enable_slideshow_ctrl'] : $wd_bwg_options->slideshow_enable_ctrl)),
1693
+ 'enable_slideshow_filmstrip' => ($use_option_defaults ? $wd_bwg_options->slideshow_enable_filmstrip : (isset($params['enable_slideshow_filmstrip']) ? $params['enable_slideshow_filmstrip'] : 0)),
1694
+ 'slideshow_filmstrip_height' => ($use_option_defaults ? $wd_bwg_options->slideshow_filmstrip_height : (isset($params['slideshow_filmstrip_height']) ? $params['slideshow_filmstrip_height'] : 50)),
1695
+ 'slideshow_enable_title' => ($use_option_defaults ? $wd_bwg_options->slideshow_enable_title : (isset($params['slideshow_enable_title']) ? $params['slideshow_enable_title'] : 0)),
1696
+ 'slideshow_title_position' => ($use_option_defaults ? $wd_bwg_options->slideshow_title_position : (isset($params['slideshow_title_position']) ? $params['slideshow_title_position'] : 'bottom-right')),
1697
+ 'slideshow_enable_description' => ($use_option_defaults ? $wd_bwg_options->slideshow_enable_description : (isset($params['slideshow_enable_description']) ? $params['slideshow_enable_description'] : 0)),
1698
+ 'slideshow_description_position' => ($use_option_defaults ? $wd_bwg_options->slideshow_description_position : (isset($params['slideshow_description_position']) ? $params['slideshow_description_position'] : 'bottom-right')),
1699
+ 'popup_width' => ($use_option_defaults ? $wd_bwg_options->popup_width : (isset($params['popup_width']) ? $params['popup_width'] : 800)),
1700
+ 'popup_height' => ($use_option_defaults ? $wd_bwg_options->popup_height : (isset($params['popup_height']) ? $params['popup_height'] : 500)),
1701
+ 'popup_effect' => ($use_option_defaults ? $wd_bwg_options->popup_type : (isset($params['popup_effect']) ? $params['popup_effect'] : 'none')),
1702
+ 'popup_interval' => ($use_option_defaults ? $wd_bwg_options->popup_interval : (isset($params['popup_interval']) ? $params['popup_interval'] : 5)),
1703
+ 'popup_enable_filmstrip' => ($use_option_defaults ? $wd_bwg_options->popup_enable_filmstrip : (isset($params['popup_enable_filmstrip']) ? $params['popup_enable_filmstrip'] : 0)),
1704
+ 'popup_filmstrip_height' => ($use_option_defaults ? $wd_bwg_options->popup_filmstrip_height : (isset($params['popup_filmstrip_height']) ? $params['popup_filmstrip_height'] : 50)),
1705
+ 'popup_enable_ctrl_btn' => ($use_option_defaults ? $wd_bwg_options->popup_enable_ctrl_btn : (isset($params['popup_enable_ctrl_btn']) ? $params['popup_enable_ctrl_btn'] : 1)),
1706
+ 'popup_enable_fullscreen' => ($use_option_defaults ? $wd_bwg_options->popup_enable_fullscreen : (isset($params['popup_enable_fullscreen']) ? $params['popup_enable_fullscreen'] : 0)),
1707
+ 'popup_enable_comment' => ($use_option_defaults ? $wd_bwg_options->popup_enable_comment : (isset($params['popup_enable_comment']) ? $params['popup_enable_comment'] : 0)),
1708
+ 'popup_enable_facebook' => ($use_option_defaults ? $wd_bwg_options->popup_enable_facebook : (isset($params['popup_enable_facebook']) ? $params['popup_enable_facebook'] : 0)),
1709
+ 'popup_enable_twitter' => ($use_option_defaults ? $wd_bwg_options->popup_enable_twitter : (isset($params['popup_enable_twitter']) ? $params['popup_enable_twitter'] : 0)),
1710
+ 'popup_enable_google' => ($use_option_defaults ? $wd_bwg_options->popup_enable_google : (isset($params['popup_enable_google']) ? $params['popup_enable_google'] : 0)),
1711
+ 'popup_enable_ecommerce' => ($use_option_defaults ? $wd_bwg_options->popup_enable_ecommerce : (isset($params['popup_enable_ecommerce']) ? $params['popup_enable_ecommerce'] : 0)),
1712
+ 'watermark_type' => ($use_option_defaults ? $wd_bwg_options->watermark_type : (isset($params['watermark_type']) ? $params['watermark_type'] : 'none')),
1713
+ 'watermark_text' => ($use_option_defaults ? urlencode($wd_bwg_options->watermark_text) : (isset($params['watermark_text']) ? urlencode($params['watermark_text']) : '')),
1714
+ 'watermark_font_size' => ($use_option_defaults ? $wd_bwg_options->watermark_font_size : (isset($params['watermark_font_size']) ? $params['watermark_font_size'] : 12)),
1715
+ 'watermark_font' => ($use_option_defaults ? $wd_bwg_options->watermark_font : (isset($params['watermark_font']) ? $params['watermark_font'] : 'Arial')),
1716
+ 'watermark_color' => ($use_option_defaults ? $wd_bwg_options->watermark_color : (isset($params['watermark_color']) ? $params['watermark_color'] : 'FFFFFF')),
1717
+ 'watermark_link' => ($use_option_defaults ? urlencode($wd_bwg_options->watermark_link) : (isset($params['watermark_link']) ? urlencode($params['watermark_link']) : '')),
1718
+ 'watermark_url' => ($use_option_defaults ? urlencode($wd_bwg_options->watermark_url) : (isset($params['watermark_url']) ? urlencode($params['watermark_url']) : '')),
1719
+ 'watermark_width' => ($use_option_defaults ? $wd_bwg_options->watermark_width : (isset($params['watermark_width']) ? $params['watermark_width'] : 90)),
1720
+ 'watermark_height' => ($use_option_defaults ? $wd_bwg_options->watermark_height : (isset($params['watermark_height']) ? $params['watermark_height'] : 90)),
1721
+ 'watermark_opacity' => ($use_option_defaults ? $wd_bwg_options->watermark_opacity : (isset($params['watermark_opacity']) ? $params['watermark_opacity'] : 30)),
1722
+ 'watermark_position' => ($use_option_defaults ? $wd_bwg_options->watermark_position : (isset($params['watermark_position']) ? $params['watermark_position'] : 'bottom-right')),
1723
+ 'ecommerce_icon' => ($use_option_defaults ? $wd_bwg_options->ecommerce_icon_show_hover : (isset($params['ecommerce_icon']) ? $params['ecommerce_icon'] : 0)),
1724
+ 'load_more_image_count' => ($use_option_defaults ? $wd_bwg_options->images_per_page : (isset($params['load_more_image_count']) ? $params['load_more_image_count'] : 30)),
1725
+ 'image_column_number' => ($use_option_defaults ? $wd_bwg_options->image_column_number : (isset($params['image_column_number']) ? $params['image_column_number'] : 5)),
1726
+ 'images_per_page' => ($use_option_defaults ? $wd_bwg_options->images_per_page : (isset($params['images_per_page']) ? $params['images_per_page'] : 30)),
1727
+ 'masonry_hor_ver' => ($use_option_defaults ? $wd_bwg_options->masonry : (isset($params['masonry_hor_ver']) ? $params['masonry_hor_ver'] : 'vertical')),
1728
+ 'mosaic_hor_ver' => ($use_option_defaults ? $wd_bwg_options->mosaic : (isset($params['mosaic_hor_ver']) ? $params['mosaic_hor_ver'] : 'vertical')),
1729
+ 'resizable_mosaic' => ($use_option_defaults ? $wd_bwg_options->image_enable_page : (isset($params['resizable_mosaic']) ? $params['resizable_mosaic'] : 0)),
1730
+ 'mosaic_total_width' => ($use_option_defaults ? $wd_bwg_options->mosaic_total_width : (isset($params['mosaic_total_width']) ? $params['mosaic_total_width'] : 100)),
1731
+ 'image_browser_width' => ($use_option_defaults ? $wd_bwg_options->image_browser_width : (isset($params['image_browser_width']) ? $params['image_browser_width'] : 800)),
1732
+ 'image_browser_title_enable' => ($use_option_defaults ? $wd_bwg_options->image_browser_title_enable : (isset($params['image_browser_title_enable']) ? $params['image_browser_title_enable'] : 1)),
1733
+ 'image_browser_description_enable' => ($use_option_defaults ? $wd_bwg_options->image_browser_description_enable : (isset($params['image_browser_description_enable']) ? $params['image_browser_description_enable'] : 1)),
1734
+ 'blog_style_width' => ($use_option_defaults ? $wd_bwg_options->image_browser_width : (isset($params['blog_style_width']) ? $params['blog_style_width'] : 800)),
1735
+ 'blog_style_title_enable' => ($use_option_defaults ? $wd_bwg_options->blog_style_title_enable : (isset($params['blog_style_title_enable']) ? $params['blog_style_title_enable'] : 1)),
1736
+ 'blog_style_images_per_page' => ($use_option_defaults ? $wd_bwg_options->blog_style_images_per_page : (isset($params['blog_style_images_per_page']) ? $params['blog_style_images_per_page'] : 5)),
1737
+ 'blog_style_enable_page' => ($use_option_defaults ? $wd_bwg_options->blog_style_enable_page : (isset($params['blog_style_enable_page']) ? $params['blog_style_enable_page'] : 1)),
1738
+ 'blog_style_load_more_image_count' => ($use_option_defaults ? $wd_bwg_options->images_per_page : (isset($params['blog_style_load_more_image_count']) ? $params['blog_style_load_more_image_count'] : 5)),
1739
+ 'blog_style_description_enable' => ($use_option_defaults ? $wd_bwg_options->blog_style_description_enable : (isset($params['blog_style_description_enable']) ? $params['blog_style_description_enable'] : 0)),
1740
+ 'carousel_interval' => ($use_option_defaults ? $wd_bwg_options->carousel_interval : (isset($params['carousel_interval']) ? $params['carousel_interval'] : 5)),
1741
+ 'carousel_width' => ($use_option_defaults ? $wd_bwg_options->carousel_width : (isset($params['carousel_width']) ? $params['carousel_width'] : 300)),
1742
+ 'carousel_height' => ($use_option_defaults ? $wd_bwg_options->carousel_height : (isset($params['carousel_height']) ? $params['carousel_height'] : 300)),
1743
+ 'carousel_image_column_number' => ($use_option_defaults ? $wd_bwg_options->carousel_image_column_number : (isset($params['carousel_image_column_number']) ? $params['carousel_image_column_number'] : 5)),
1744
+ 'carousel_image_par' => ($use_option_defaults ? $wd_bwg_options->carousel_image_par : (isset($params['carousel_image_par']) ? $params['carousel_image_par'] : '0.75')),
1745
+ 'carousel_enable_title' => ($use_option_defaults ? $wd_bwg_options->carousel_enable_title : (isset($params['carousel_enable_title']) ? $params['carousel_enable_title'] : 0)),
1746
+ 'carousel_enable_autoplay' => ($use_option_defaults ? $wd_bwg_options->carousel_enable_autoplay : (isset($params['carousel_enable_autoplay']) ? $params['carousel_enable_autoplay'] : 0)),
1747
+ 'carousel_r_width' => ($use_option_defaults ? $wd_bwg_options->carousel_r_width : (isset($params['carousel_r_width']) ? $params['carousel_r_width'] : 800)),
1748
+ 'carousel_fit_containerWidth' => ($use_option_defaults ? $wd_bwg_options->carousel_fit_containerWidth : (isset($params['carousel_fit_containerWidth']) ? $params['carousel_fit_containerWidth'] : 1)),
1749
+ 'carousel_prev_next_butt' => ($use_option_defaults ? $wd_bwg_options->carousel_prev_next_butt : (isset($params['carousel_prev_next_butt']) ? $params['carousel_prev_next_butt'] : 1)),
1750
+ 'carousel_play_pause_butt' => ($use_option_defaults ? $wd_bwg_options->carousel_play_pause_butt : (isset($params['carousel_play_pause_butt']) ? $params['carousel_play_pause_butt'] : 1)),
1751
+ 'compuct_album_column_number' => ($use_option_defaults ? $wd_bwg_options->album_column_number : (isset($params['compuct_album_column_number']) ? $params['compuct_album_column_number'] : 5)),
1752
+ 'compuct_albums_per_page' => ($use_option_defaults ? $wd_bwg_options->albums_per_page : (isset($params['compuct_albums_per_page']) ? $params['compuct_albums_per_page'] : 30)),
1753
+ 'compuct_album_title' => ($use_option_defaults ? $wd_bwg_options->album_title_show_hover : (isset($params['compuct_album_title']) ? $params['compuct_album_title'] : 'show')),
1754
+ 'compuct_album_view_type' => ($use_option_defaults ? $wd_bwg_options->album_view_type : (isset($params['compuct_album_view_type']) ? $params['compuct_album_view_type'] : 'thumbnail')),
1755
+ 'compuct_album_thumb_width' => ($use_option_defaults ? $wd_bwg_options->album_thumb_width : (isset($params['compuct_album_thumb_width']) ? $params['compuct_album_thumb_width'] : 120)),
1756
+ 'compuct_album_thumb_height' => ($use_option_defaults ? $wd_bwg_options->album_thumb_height : (isset($params['compuct_album_thumb_height']) ? $params['compuct_album_thumb_height'] : 90)),
1757
+ 'compuct_album_image_column_number' => ($use_option_defaults ? $wd_bwg_options->image_column_number : (isset($params['compuct_album_image_column_number']) ? $params['compuct_album_image_column_number'] : 5)),
1758
+ 'compuct_album_images_per_page' => ($use_option_defaults ? $wd_bwg_options->images_per_page : (isset($params['compuct_album_images_per_page']) ? $params['compuct_album_images_per_page'] : 30)),
1759
+ 'compuct_album_image_title' => ($use_option_defaults ? $wd_bwg_options->image_title_show_hover : (isset($params['compuct_album_image_title']) ? $params['compuct_album_image_title'] : 'show')),
1760
+ 'compuct_album_image_thumb_width' => ($use_option_defaults ? $wd_bwg_options->thumb_width : (isset($params['compuct_album_image_thumb_width']) ? $params['compuct_album_image_thumb_width'] : 120)),
1761
+ 'compuct_album_image_thumb_height' => ($use_option_defaults ? $wd_bwg_options->thumb_height : (isset($params['compuct_album_image_thumb_height']) ? $params['compuct_album_image_thumb_height'] : 90)),
1762
+ 'compuct_album_enable_page' => ($use_option_defaults ? $wd_bwg_options->album_enable_page : (isset($params['compuct_album_enable_page']) ? $params['compuct_album_enable_page'] : 1)),
1763
+ 'compuct_album_load_more_image_count' => ($use_option_defaults ? $wd_bwg_options->images_per_page : (isset($params['compuct_album_load_more_image_count']) ? $params['compuct_album_load_more_image_count'] : 30)),
1764
+ 'compuct_albums_per_page_load_more' => ($use_option_defaults ? $wd_bwg_options->albums_per_page : (isset($params['compuct_albums_per_page_load_more']) ? $params['compuct_albums_per_page_load_more'] : 30)),
1765
+ 'compuct_album_mosaic_hor_ver' => ($use_option_defaults ? $wd_bwg_options->mosaic : (isset($params['compuct_album_mosaic_hor_ver']) ? $params['compuct_album_mosaic_hor_ver'] : 'vertical')),
1766
+ 'compuct_album_resizable_mosaic' => ($use_option_defaults ? $wd_bwg_options->resizable_mosaic : (isset($params['compuct_album_resizable_mosaic']) ? $params['compuct_album_resizable_mosaic'] : 0)),
1767
+ 'compuct_album_mosaic_total_width' => ($use_option_defaults ? $wd_bwg_options->mosaic_total_width : (isset($params['compuct_album_mosaic_total_width']) ? $params['compuct_album_mosaic_total_width'] : 100)),
1768
+ 'show_album_name' => ($use_option_defaults ? $wd_bwg_options->show_album_name : (isset($params['show_album_name']) ? $params['show_album_name'] : 0)),
1769
+ 'masonry_album_column_number' => ($use_option_defaults ? $wd_bwg_options->album_column_number : (isset($params['masonry_album_column_number']) ? $params['masonry_album_column_number'] : 5)),
1770
+ 'masonry_albums_per_page' => ($use_option_defaults ? $wd_bwg_options->albums_per_page : (isset($params['masonry_albums_per_page']) ? $params['masonry_albums_per_page'] : 30)),
1771
+ 'masonry_album_title' => ($use_option_defaults ? $wd_bwg_options->album_title_show_hover : (isset($params['masonry_album_title']) ? $params['masonry_album_title'] : 'show')),
1772
+ 'masonry_album_thumb_width' => ($use_option_defaults ? $wd_bwg_options->album_thumb_width : (isset($params['masonry_album_thumb_width']) ? $params['masonry_album_thumb_width'] : 120)),
1773
+ 'masonry_album_thumb_height' => ($use_option_defaults ? $wd_bwg_options->album_thumb_height : (isset($params['masonry_album_thumb_height']) ? $params['masonry_album_thumb_height'] : 90)),
1774
+ 'masonry_album_image_column_number' => ($use_option_defaults ? $wd_bwg_options->image_column_number : (isset($params['masonry_album_image_column_number']) ? $params['masonry_album_image_column_number'] : 5)),
1775
+ 'masonry_album_images_per_page' => ($use_option_defaults ? $wd_bwg_options->images_per_page : (isset($params['masonry_album_images_per_page']) ? $params['masonry_album_images_per_page'] : 30)),
1776
+ 'masonry_album_image_title' => ($use_option_defaults ? $wd_bwg_options->image_title_show_hover : (isset($params['masonry_album_image_title']) ? $params['masonry_album_image_title'] : 'show')),
1777
+ 'masonry_album_image_thumb_width' => ($use_option_defaults ? $wd_bwg_options->thumb_width : (isset($params['masonry_album_image_thumb_width']) ? $params['masonry_album_image_thumb_width'] : 120)),
1778
+ 'masonry_album_image_thumb_height' => ($use_option_defaults ? $wd_bwg_options->thumb_height : (isset($params['masonry_album_image_thumb_height']) ? $params['masonry_album_image_thumb_height'] : 90)),
1779
+ 'masonry_album_enable_page' => ($use_option_defaults ? $wd_bwg_options->show_album_name : (isset($params['masonry_album_enable_page']) ? $params['masonry_album_enable_page'] : 0)),
1780
+ 'masonry_album_load_more_image_count' => ($use_option_defaults ? $wd_bwg_options->images_per_page : (isset($params['masonry_album_load_more_image_count']) ? $params['masonry_album_load_more_image_count'] : 30)),
1781
+ 'masonry_albums_per_page_load_more' => ($use_option_defaults ? $wd_bwg_options->albums_per_page : (isset($params['masonry_albums_per_page_load_more']) ? $params['masonry_albums_per_page_load_more'] : 30)),
1782
+ 'extended_album_image_column_number' => ($use_option_defaults ? $wd_bwg_options->album_column_number : (isset($params['extended_album_image_column_number']) ? $params['extended_album_image_column_number'] : 5)),
1783
+ 'extended_album_images_per_page' => ($use_option_defaults ? $wd_bwg_options->images_per_page : (isset($params['extended_album_images_per_page']) ? $params['extended_album_images_per_page'] : 30)),
1784
+ 'extended_albums_per_page' => ($use_option_defaults ? $wd_bwg_options->albums_per_page : (isset($params['extended_albums_per_page']) ? $params['extended_albums_per_page'] : 30)),
1785
+ 'extended_album_height' => ($use_option_defaults ? $wd_bwg_options->extended_album_height : (isset($params['extended_album_height']) ? $params['extended_album_height'] : 150)),
1786
+ 'extended_album_description_enable' => ($use_option_defaults ? $wd_bwg_options->extended_album_description_enable : (isset($params['extended_album_description_enable']) ? $params['extended_album_description_enable'] : 1)),
1787
+ 'extended_album_view_type' => ($use_option_defaults ? $wd_bwg_options->album_view_type : (isset($params['extended_album_view_type']) ? $params['extended_album_view_type'] : 'thumbnail')),
1788
+ 'extended_album_thumb_width' => ($use_option_defaults ? $wd_bwg_options->album_thumb_width : (isset($params['extended_album_thumb_width']) ? $params['extended_album_thumb_width'] : 120)),
1789
+ 'extended_album_thumb_height' => ($use_option_defaults ? $wd_bwg_options->album_thumb_height : (isset($params['extended_album_thumb_height']) ? $params['extended_album_thumb_height'] : 90)),
1790
+ 'extended_album_image_title' => ($use_option_defaults ? $wd_bwg_options->image_title_show_hover : (isset($params['extended_album_image_title']) ? $params['extended_album_image_title'] : 'show')),
1791
+ 'extended_album_image_thumb_width' => ($use_option_defaults ? $wd_bwg_options->thumb_width : (isset($params['extended_album_image_thumb_width']) ? $params['extended_album_image_thumb_width'] : 120)),
1792
+ 'extended_album_image_thumb_height' => ($use_option_defaults ? $wd_bwg_options->thumb_height : (isset($params['extended_album_image_thumb_height']) ? $params['extended_album_image_thumb_height'] : 90)),
1793
+ 'extended_album_enable_page' => ($use_option_defaults ? $wd_bwg_options->show_album_name : (isset($params['extended_album_enable_page']) ? $params['extended_album_enable_page'] : 0)),
1794
+ 'extended_album_load_more_image_count' => ($use_option_defaults ? $wd_bwg_options->images_per_page : (isset($params['extended_album_load_more_image_count']) ? $params['extended_album_load_more_image_count'] : 30)),
1795
+ 'extended_albums_per_page_load_more' => ($use_option_defaults ? $wd_bwg_options->albums_per_page : (isset($params['extended_albums_per_page_load_more']) ? $params['extended_albums_per_page_load_more'] : 30)),
1796
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1797
 
1798
+ return array_merge($params, $defaults);
 
 
1799
  }
1800
 
1801
  /**
1802
  * Get font families.
1803
  *
1804
+ * @param bool $font
1805
+ *
1806
+ * @return array|bool|string
1807
  */
1808
+ public static function get_fonts($font = FALSE) {
1809
  $fonts = array(
1810
  'arial' => 'Arial',
1811
  'Lucida grande' => 'Lucida grande',
frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -2,14 +2,14 @@
2
  class BWGViewAlbum_compact_preview {
3
  public function display($params, $from_shortcode = 0, $bwg = 0) {
4
  global $WD_BWG_UPLOAD_DIR;
5
- global $wd_bwg_options;
6
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
7
 
8
- $theme_id = $params['theme_id'];
9
- $order_by = $params['order_by'];
10
- $sort_by = $params['sort_by'];
11
- $album_view_type = $params['compuct_album_view_type'];
12
- $image_right_click = isset($wd_bwg_options->image_right_click) ? $wd_bwg_options->image_right_click : 0;
13
  $placeholder = isset($wd_bwg_options->placeholder) ? $wd_bwg_options->placeholder : '';
14
  $play_icon = isset($wd_bwg_options->play_icon) ? $wd_bwg_options->play_icon : 0;
15
 
@@ -22,27 +22,27 @@ class BWGViewAlbum_compact_preview {
22
  return;
23
  }
24
 
25
- if (!isset($theme_row->album_extended_gal_title_font_color)) {
26
- $theme_row->album_extended_gal_title_font_color = 'CCCCCC';
27
- }
28
- if (!isset($theme_row->album_extended_gal_title_font_style)) {
29
- $theme_row->album_extended_gal_title_font_style = 'segoe ui';
30
- }
31
- if (!isset($theme_row->album_extended_gal_title_font_size)) {
32
- $theme_row->album_extended_gal_title_font_size = 16;
33
- }
34
- if (!isset($theme_row->album_extended_gal_title_font_weight)) {
35
- $theme_row->album_extended_gal_title_font_weight = 'bold';
36
- }
37
- if (!isset($theme_row->album_extended_gal_title_margin)) {
38
- $theme_row->album_extended_gal_title_margin = '2px';
39
- }
40
- if (!isset($theme_row->album_extended_gal_title_shadow)) {
41
- $theme_row->album_extended_gal_title_shadow = '0px 0px 0px #888888';
42
- }
43
- if (!isset($theme_row->album_extended_gal_title_align)) {
44
- $theme_row->album_extended_gal_title_align = 'center';
45
- }
46
 
47
  $album_gallery_id = (isset($_REQUEST['album_gallery_id_' . $bwg]) ? esc_html($_REQUEST['album_gallery_id_' . $bwg]) : $params['album_id']);
48
  $album_row = WDWLibrary::get_album_row_data($album_gallery_id, FALSE);
2
  class BWGViewAlbum_compact_preview {
3
  public function display($params, $from_shortcode = 0, $bwg = 0) {
4
  global $WD_BWG_UPLOAD_DIR;
5
+ global $wd_bwg_options;
6
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
7
 
8
+ $theme_id = $params['theme_id'];
9
+ $order_by = $params['order_by'];
10
+ $sort_by = $params['sort_by'];
11
+ $album_view_type = $params['compuct_album_view_type'];
12
+ $image_right_click = isset($wd_bwg_options->image_right_click) ? $wd_bwg_options->image_right_click : 0;
13
  $placeholder = isset($wd_bwg_options->placeholder) ? $wd_bwg_options->placeholder : '';
14
  $play_icon = isset($wd_bwg_options->play_icon) ? $wd_bwg_options->play_icon : 0;
15
 
22
  return;
23
  }
24
 
25
+ if (!isset($theme_row->album_extended_gal_title_font_color)) {
26
+ $theme_row->album_extended_gal_title_font_color = 'CCCCCC';
27
+ }
28
+ if (!isset($theme_row->album_extended_gal_title_font_style)) {
29
+ $theme_row->album_extended_gal_title_font_style = 'segoe ui';
30
+ }
31
+ if (!isset($theme_row->album_extended_gal_title_font_size)) {
32
+ $theme_row->album_extended_gal_title_font_size = 16;
33
+ }
34
+ if (!isset($theme_row->album_extended_gal_title_font_weight)) {
35
+ $theme_row->album_extended_gal_title_font_weight = 'bold';
36
+ }
37
+ if (!isset($theme_row->album_extended_gal_title_margin)) {
38
+ $theme_row->album_extended_gal_title_margin = '2px';
39
+ }
40
+ if (!isset($theme_row->album_extended_gal_title_shadow)) {
41
+ $theme_row->album_extended_gal_title_shadow = '0px 0px 0px #888888';
42
+ }
43
+ if (!isset($theme_row->album_extended_gal_title_align)) {
44
+ $theme_row->album_extended_gal_title_align = 'center';
45
+ }
46
 
47
  $album_gallery_id = (isset($_REQUEST['album_gallery_id_' . $bwg]) ? esc_html($_REQUEST['album_gallery_id_' . $bwg]) : $params['album_id']);
48
  $album_row = WDWLibrary::get_album_row_data($album_gallery_id, FALSE);
frontend/views/BWGViewThumbnails.php CHANGED
@@ -6,22 +6,22 @@ class BWGViewThumbnails {
6
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
7
 
8
  $order_by = $params['order_by'];
9
- $image_right_click = isset($wd_bwg_options->image_right_click) ? $wd_bwg_options->image_right_click : 0;
10
  $placeholder = isset($wd_bwg_options->placeholder) ? $wd_bwg_options->placeholder : '';
11
  $play_icon = isset($wd_bwg_options->play_icon) ? $wd_bwg_options->play_icon : 0;
12
 
13
- if (isset($_POST['sortImagesByValue_' . $bwg])) {
14
- $sort_by = esc_html($_POST['sortImagesByValue_' . $bwg]);
15
- if ($sort_by == 'random') {
16
- $params['sort_by'] = 'RAND()';
17
- }
18
- else if ($sort_by == 'default') {
19
- $params['sort_by'] = $params['sort_by'];
20
- }
21
- else {
22
- $params['sort_by'] = $sort_by;
23
- }
24
- }
25
  $theme_row = WDWLibrary::get_theme_row_data($params['theme_id']);
26
  if (!$theme_row) {
27
  echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'wd_error');
@@ -33,7 +33,7 @@ class BWGViewThumbnails {
33
  else {
34
  $type = "";
35
  }
36
- if (!isset($theme_row->thumb_gal_title_font_color)) {
37
  $theme_row->thumb_gal_title_font_color = 'CCCCCC';
38
  }
39
  if (!isset($theme_row->thumb_gal_title_font_style)) {
@@ -76,13 +76,12 @@ class BWGViewThumbnails {
76
  }
77
  }
78
  $tags_rows = WDWLibrary::get_tags_rows_data($params['gallery_id']);
79
- $inline_style = $this->inline_styles($bwg, $theme_row, $params);
80
  if ($wd_bwg_options->use_inline_stiles_and_scripts) {
81
  wp_enqueue_style('bwg_frontend');
82
  wp_add_inline_style('bwg_frontend', $inline_style);
83
  wp_enqueue_style('bwg_font-awesome');
84
  wp_enqueue_style('bwg_mCustomScrollbar');
85
- $google_fonts = WDWLibrary::get_google_fonts();
86
  wp_enqueue_style('bwg_googlefonts');
87
  if (isset($params['show_tag_box']) && $params['show_tag_box']) {
88
  wp_enqueue_style('bwg_sumoselect');
@@ -257,7 +256,7 @@ class BWGViewThumbnails {
257
  <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
258
  </div>
259
  </div>
260
- <?php
261
  $params_array = array(
262
  'action' => 'GalleryBox',
263
  'tags' => (isset($params['tag']) ? $params['tag'] : 0),
6
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
7
 
8
  $order_by = $params['order_by'];
9
+ $image_right_click = isset($wd_bwg_options->image_right_click) ? $wd_bwg_options->image_right_click : 0;
10
  $placeholder = isset($wd_bwg_options->placeholder) ? $wd_bwg_options->placeholder : '';
11
  $play_icon = isset($wd_bwg_options->play_icon) ? $wd_bwg_options->play_icon : 0;
12
 
13
+ if (isset($_POST['sortImagesByValue_' . $bwg])) {
14
+ $sort_by = esc_html($_POST['sortImagesByValue_' . $bwg]);
15
+ if ($sort_by == 'random') {
16
+ $params['sort_by'] = 'RAND()';
17
+ }
18
+ else if ($sort_by == 'default') {
19
+ $params['sort_by'] = $params['sort_by'];
20
+ }
21
+ else {
22
+ $params['sort_by'] = $sort_by;
23
+ }
24
+ }
25
  $theme_row = WDWLibrary::get_theme_row_data($params['theme_id']);
26
  if (!$theme_row) {
27
  echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'wd_error');
33
  else {
34
  $type = "";
35
  }
36
+ if (!isset($theme_row->thumb_gal_title_font_color)) {
37
  $theme_row->thumb_gal_title_font_color = 'CCCCCC';
38
  }
39
  if (!isset($theme_row->thumb_gal_title_font_style)) {
76
  }
77
  }
78
  $tags_rows = WDWLibrary::get_tags_rows_data($params['gallery_id']);
79
+ $inline_style = $this->inline_styles($bwg, $theme_row, $params);
80
  if ($wd_bwg_options->use_inline_stiles_and_scripts) {
81
  wp_enqueue_style('bwg_frontend');
82
  wp_add_inline_style('bwg_frontend', $inline_style);
83
  wp_enqueue_style('bwg_font-awesome');
84
  wp_enqueue_style('bwg_mCustomScrollbar');
 
85
  wp_enqueue_style('bwg_googlefonts');
86
  if (isset($params['show_tag_box']) && $params['show_tag_box']) {
87
  wp_enqueue_style('bwg_sumoselect');
256
  <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
257
  </div>
258
  </div>
259
+ <?php
260
  $params_array = array(
261
  'action' => 'GalleryBox',
262
  'tags' => (isset($params['tag']) ? $params['tag'] : 0),
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
- * Version: 1.3.62
8
  * Author: Photo Gallery Team
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1504,7 +1504,7 @@ function bwg_activate() {
1504
  }
1505
 
1506
  $version = get_option('wd_bwg_version');
1507
- $new_version = '1.3.62';
1508
  if ($version && version_compare($version, $new_version, '<')) {
1509
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1510
  bwg_update($version);
@@ -1556,7 +1556,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1556
 
1557
  function bwg_update_hook() {
1558
  $version = get_option('wd_bwg_version');
1559
- $new_version = '1.3.62';
1560
  if ($version && version_compare($version, $new_version, '<')) {
1561
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1562
  bwg_update($version);
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
+ * Version: 1.3.63
8
  * Author: Photo Gallery Team
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1504
  }
1505
 
1506
  $version = get_option('wd_bwg_version');
1507
+ $new_version = '1.3.63';
1508
  if ($version && version_compare($version, $new_version, '<')) {
1509
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1510
  bwg_update($version);
1556
 
1557
  function bwg_update_hook() {
1558
  $version = get_option('wd_bwg_version');
1559
+ $new_version = '1.3.63';
1560
  if ($version && version_compare($version, $new_version, '<')) {
1561
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1562
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
5
  Requires at least: 3.4
6
  Tested up to: 4.9
7
- Stable tag: 1.3.62
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -187,6 +187,9 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
187
 
188
  == Changelog ==
189
 
 
 
 
190
  = 1.3.62 =
191
  * Fixed: Options variable problem.
192
  * Fixed: Vulnerable GET variable.
4
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
5
  Requires at least: 3.4
6
  Tested up to: 4.9
7
+ Stable tag: 1.3.63
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
187
 
188
  == Changelog ==
189
 
190
+ = 1.3.63 =
191
+ * Fixed: Minor Bugs
192
+
193
  = 1.3.62 =
194
  * Fixed: Options variable problem.
195
  * Fixed: Vulnerable GET variable.