Version Description
- Fixed: Minor Bugs
Download this release
Release Info
Developer | webdorado |
Plugin | 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 +153 -231
- frontend/views/BWGViewAlbum_compact_preview.php +27 -27
- frontend/views/BWGViewThumbnails.php +16 -17
- photo-gallery.php +3 -3
- readme.txt +4 -1
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 |
-
$
|
1650 |
'gallery_type' => $params['gallery_type'],
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
'
|
1656 |
-
'
|
1657 |
-
'
|
1658 |
-
'
|
1659 |
-
'
|
1660 |
-
'
|
1661 |
-
'
|
1662 |
-
'
|
1663 |
-
'
|
1664 |
-
'
|
1665 |
-
'
|
1666 |
-
'
|
1667 |
-
'
|
1668 |
-
'
|
1669 |
-
'
|
1670 |
-
'
|
1671 |
-
'
|
1672 |
-
'
|
1673 |
-
'
|
1674 |
-
'
|
1675 |
-
'
|
1676 |
-
'
|
1677 |
-
'
|
1678 |
-
'
|
1679 |
-
'
|
1680 |
-
'
|
1681 |
-
'
|
1682 |
-
'
|
1683 |
-
'
|
1684 |
-
'
|
1685 |
-
'
|
1686 |
-
'
|
1687 |
-
'
|
1688 |
-
'
|
1689 |
-
'
|
1690 |
-
'
|
1691 |
-
'
|
1692 |
-
'
|
1693 |
-
'
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
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 |
-
|
1877 |
-
$defaults_merge = array_merge($params, $defaults);
|
1878 |
-
return $defaults_merge;
|
1879 |
}
|
1880 |
|
1881 |
/**
|
1882 |
* Get font families.
|
1883 |
*
|
1884 |
-
* @
|
|
|
|
|
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 |
-
|
6 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
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 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
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 |
-
|
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 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
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 |
-
|
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 |
-
|
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 |
-
|
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.
|
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.
|
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.
|
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.
|
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.
|