mirror of
https://github.com/e107inc/e107.git
synced 2025-07-16 20:41:27 +02:00
Fixed: proper usage of default values in JS.
This commit is contained in:
@@ -17,34 +17,34 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
$(context).find("a[" + pPhook + "^='prettyPhoto']").once('gallery-prettyPhoto').prettyPhoto(
|
$(context).find("a[" + pPhook + "^='prettyPhoto']").once('gallery-prettyPhoto').prettyPhoto(
|
||||||
{
|
{
|
||||||
hook: pPhook,
|
hook: pPhook,
|
||||||
animation_speed: pPhoto.animation_speed || 'fast', // fast/slow/normal
|
animation_speed: pPhoto.animation_speed, // fast/slow/normal
|
||||||
slideshow: pPhoto.slideshow || 5000, // false OR interval time in ms
|
slideshow: pPhoto.slideshow, // false OR interval time in ms
|
||||||
autoplay_slideshow: pPhoto.autoplay_slideshow || false, // true/false
|
autoplay_slideshow: pPhoto.autoplay_slideshow, // true/false
|
||||||
opacity: pPhoto.opacity || 0.80, // Value between 0 and 1
|
opacity: pPhoto.opacity, // Value between 0 and 1
|
||||||
show_title: pPhoto.show_title || false, // true/false
|
show_title: pPhoto.show_title, // true/false
|
||||||
allow_resize: pPhoto.allow_resize || false, // Resize the photos bigger than viewport. true/false
|
allow_resize: pPhoto.allow_resize, // Resize the photos bigger than viewport. true/false
|
||||||
default_width: pPhoto.default_width || 500,
|
default_width: pPhoto.default_width,
|
||||||
default_height: pPhoto.default_height || 344,
|
default_height: pPhoto.default_height,
|
||||||
counter_separator_label: pPhoto.counter_separator_label || '/', // The separator for the gallery counter 1 "of" 2
|
counter_separator_label: pPhoto.counter_separator_label, // The separator for the gallery counter 1 "of" 2
|
||||||
theme: pPhoto.theme || 'pp_default', // light_rounded / dark_rounded / light_square / dark_square / facebook
|
theme: pPhoto.theme, // light_rounded / dark_rounded / light_square / dark_square / facebook
|
||||||
horizontal_padding: pPhoto.horizontal_padding || 20, // The padding on each side of the picture
|
horizontal_padding: pPhoto.horizontal_padding, // The padding on each side of the picture
|
||||||
hideflash: pPhoto.hideflash || false, // Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto
|
hideflash: pPhoto.hideflash, // Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto
|
||||||
wmode: pPhoto.wmode || 'opaque', // Set the flash wmode attribute
|
wmode: pPhoto.wmode, // Set the flash wmode attribute
|
||||||
autoplay: pPhoto.autoplay || false, // Automatically start videos: true/false
|
autoplay: pPhoto.autoplay, // Automatically start videos: true/false
|
||||||
modal: pPhoto.modal || false, // If set to true, only the close button will close the window
|
modal: pPhoto.modal, // If set to true, only the close button will close the window
|
||||||
deeplinking: pPhoto.deeplinking || false, // Allow prettyPhoto to update the url to enable deeplinking.
|
deeplinking: pPhoto.deeplinking, // Allow prettyPhoto to update the url to enable deeplinking.
|
||||||
overlay_gallery: pPhoto.overlay_gallery || false, // If set to true, a gallery will overlay the fullscreen image on mouse over
|
overlay_gallery: pPhoto.overlay_gallery, // If set to true, a gallery will overlay the fullscreen image on mouse over
|
||||||
keyboard_shortcuts: pPhoto.keyboard_shortcuts || false, // Set to false if you open forms inside prettyPhoto
|
keyboard_shortcuts: pPhoto.keyboard_shortcuts, // Set to false if you open forms inside prettyPhoto
|
||||||
ie6_fallback: pPhoto.ie6_fallback || false, // true/false
|
ie6_fallback: pPhoto.ie6_fallback, // true/false
|
||||||
markup: decodeURIComponent(pPhoto.markup) || null,
|
markup: pPhoto.markup,
|
||||||
gallery_markup: decodeURIComponent(pPhoto.gallery_markup) || null,
|
gallery_markup: pPhoto.gallery_markup,
|
||||||
image_markup: decodeURIComponent(pPhoto.image_markup) || null,
|
image_markup: pPhoto.image_markup,
|
||||||
flash_markup: pPhoto.flash_markup || null,
|
flash_markup: pPhoto.flash_markup,
|
||||||
quicktime_markup: pPhoto.quicktime_markup || null,
|
quicktime_markup: pPhoto.quicktime_markup,
|
||||||
iframe_markup: pPhoto.iframe_markup || null,
|
iframe_markup: pPhoto.iframe_markup,
|
||||||
inline_markup: pPhoto.inline_markup || null,
|
inline_markup: pPhoto.inline_markup,
|
||||||
custom_markup: pPhoto.custom_markup || null,
|
custom_markup: pPhoto.custom_markup,
|
||||||
social_tools: decodeURIComponent(pPhoto.social_tools) || null,
|
social_tools: pPhoto.social_tools,
|
||||||
changepicturecallback: function ()
|
changepicturecallback: function ()
|
||||||
{
|
{
|
||||||
var $ppContent = $(".pp_content");
|
var $ppContent = $(".pp_content");
|
||||||
|
Reference in New Issue
Block a user