YaWK
24.1
Yet another WebKit
|
Embed a photo gallery on your website. More...
Public Member Functions | |
__construct ($db) | |
Load all widget settings from database and fill object. More... | |
drawImageGallery ($db) | |
Draw the gallery. More... | |
init ($db) | |
Init Gallery and load methods. More... | |
loadJavascript () | |
Check if lightbox asset is loaded and set lightbox options. More... | |
printObject () | |
Print all object data. More... | |
![]() | |
getHeading ($heading, $subtext) | |
Get widget heading and subtext, return headline. More... | |
getWidgetSettingsArray ($db) | |
Get widget settings and return it as array. More... | |
Public Attributes | |
$filename = '' | |
$galleryAlbumLabel = 'Image %1 of %2' | |
$galleryDisableScrolling = false | |
$galleryFadeDuration = '600' | |
$galleryFitImagesInViewport = true | |
$galleryHeading = '' | |
$galleryID = '' | |
$galleryImageClass = 'img-responsive img-rounded hvr-grow' | |
$galleryImageFadeDuration = '600' | |
$galleryLayoutRows = 3 | |
$galleryMaxHeight = '' | |
$galleryMaxWidth = '' | |
$galleryNavOnTouchDevices = false | |
$galleryPositionFromTop = '50' | |
$galleryResizeDuration = '700' | |
$galleryShowImageNumberLabel = true | |
$galleryShuffle = false | |
$gallerySubtext = '' | |
$galleryTnHeight = '' | |
$galleryTnWidth = '' | |
$galleryWidthMarkup = '' | |
$galleryWrapAround = false | |
$headline = '' | |
$itemAuthor = '' | |
$itemAuthorUrl = '' | |
$itemID = '' | |
$itemTitle = '' | |
$widget = '' | |
![]() | |
$data | |
$date_publish | |
$date_unpublish | |
$folder | |
$id | |
$marginBottom | |
$marginTop | |
$name | |
$pageID | |
$position | |
$published | |
$sort | |
$widgetTitle | |
$widgetType | |
Additional Inherited Members | |
![]() | |
static | getAllSettingsIntoArray ($db, $widgetID) |
Returns an array with all widget settings data. More... | |
static | getAllWidgetTypes ($db) |
Return all widget types as associative array. More... | |
static | getCurrentWidgetPath ($db) |
return current widget path More... | |
static | getFacebookLikeBox () |
return the facebook likebox widget More... | |
static | getLoginBox () |
return the user login box widget More... | |
static | loadWidgetsOfPage ($db, $page) |
Returns an array of all widgets that are linked with given page->id. More... | |
Embed a photo gallery on your website.
Embed plugin: photo gallery
This is the widget to the gallery plugin. With this widget you can embed image galleries that you've created before using the gallery plugin. Simply set the ID of the photo gallery you would like to embed.
Definition at line 16 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::__construct | ( | $db | ) |
Load all widget settings from database and fill object.
object | $db | Database Object |
Load all widget settings on object init.
Definition at line 85 of file gallery.php.
References $db, $settings, $value, and YAWK\widget\getWidgetSettingsArray().
YAWK\PLUGINS\GALLERY\gallery::drawImageGallery | ( | $db | ) |
Draw the gallery.
db | object Database object |
(for development and testing purpose)
object | $db | database |
array | $lang | language array |
int | $galleryID | gallery ID to load |
$db | \YAWK\db |
$widget | \YAWK\widget |
Definition at line 155 of file gallery.php.
References $col, $db, YAWK\WIDGETS\GALLERY\IMAGES\gallery\$headline, $i, $res, and YAWK\widget\getHeading().
Referenced by YAWK\WIDGETS\GALLERY\IMAGES\gallery\init().
YAWK\WIDGETS\GALLERY\IMAGES\gallery::init | ( | $db | ) |
Init Gallery and load methods.
load Javascript and draw image gallery
Definition at line 110 of file gallery.php.
References $db, YAWK\WIDGETS\GALLERY\IMAGES\gallery\drawImageGallery(), and YAWK\WIDGETS\GALLERY\IMAGES\gallery\loadJavascript().
YAWK\WIDGETS\GALLERY\IMAGES\gallery::loadJavascript | ( | ) |
Check if lightbox asset is loaded and set lightbox options.
check lightbox asset and set options
Definition at line 120 of file gallery.php.
Referenced by YAWK\WIDGETS\GALLERY\IMAGES\gallery\init().
YAWK\WIDGETS\GALLERY\IMAGES\gallery::printObject | ( | ) |
Print all object data.
(for development and testing purpose)
Reimplemented from YAWK\widget.
Definition at line 99 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$filename = '' |
string | Image filename |
Definition at line 30 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryAlbumLabel = 'Image %1 of %2' |
string | The text displayed below the caption when viewing an image set. The default text shows the current image number and the total number of images in the set. |
Definition at line 43 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryDisableScrolling = false |
bool | If true, prevent the page from scrolling while Lightbox is open. This works by settings overflow hidden on the body. |
Definition at line 45 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryFadeDuration = '600' |
string | The time it takes for the Lightbox container and overlay to fade in and out, in milliseconds. |
Definition at line 47 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryFitImagesInViewport = true |
bool | If true, resize images that would extend outside of the viewport so they fit neatly inside of it. This saves the user from having to scroll to see the entire image. |
Definition at line 49 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryHeading = '' |
string | Title that will be shown above widget |
Definition at line 23 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryID = '' |
int | Gallery ID |
Definition at line 21 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryImageClass = 'img-responsive img-rounded hvr-grow' |
string | Image Class |
Definition at line 77 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryImageFadeDuration = '600' |
string | The time it takes for the image to fade in once loaded, in milliseconds. |
Definition at line 51 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryLayoutRows = 3 |
int | How many pictures should be drawn per row? |
Definition at line 70 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryMaxHeight = '' |
string | If set, the image height will be limited to this number, in pixels. Aspect ratio will not be maintained. |
Definition at line 55 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryMaxWidth = '' |
string | If set, the image width will be limited to this number, in pixels. Aspect ratio will not be maintained. |
Definition at line 53 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryNavOnTouchDevices = false |
bool | galleryNavOnTouchDevices If true, the left and right navigation arrows which appear on mouse hover when viewing image sets will always be visible on devices which support touch. |
Definition at line 41 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryPositionFromTop = '50' |
string | The distance from top of viewport that the Lightbox container will appear, in pixels |
Definition at line 61 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryResizeDuration = '700' |
string | The time it takes for the Lightbox container to animate its width and height when transition between different size images, in milliseconds. |
Definition at line 63 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryShowImageNumberLabel = true |
bool | If false, the text indicating the current image number and the total number of images in set (Ex. "image 2 of 4") will be hidden. |
Definition at line 65 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryShuffle = false |
bool | true|false Shuffle Images |
Definition at line 72 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$gallerySubtext = '' |
string | Subtext will be displayed beside title |
Definition at line 25 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryTnHeight = '' |
string | If set, the thumbnail image height will be limited to this number, in pixels. Aspect ratio will not be maintained. |
Definition at line 59 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryTnWidth = '' |
string | If set, the thumbnail image width will be limited to this number, in pixels. Aspect ratio will not be maintained. |
Definition at line 57 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryWidthMarkup = '' |
string | <img Width HTML Markup |
Definition at line 75 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$galleryWrapAround = false |
bool | If true, when a user reaches the last image in a set, the right navigation arrow will appear and they will be to continue moving forward which will take them back to the first image in the set. |
Definition at line 67 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$headline = '' |
string | Headline above widget |
Definition at line 38 of file gallery.php.
Referenced by YAWK\WIDGETS\GALLERY\IMAGES\gallery\drawImageGallery().
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$itemAuthor = '' |
string | Image Author (Copyright Notice) |
Definition at line 34 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$itemAuthorUrl = '' |
string | Image Author URL |
Definition at line 36 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$itemID = '' |
int | Image Item ID |
Definition at line 28 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$itemTitle = '' |
string | Image Description |
Definition at line 32 of file gallery.php.
YAWK\WIDGETS\GALLERY\IMAGES\gallery::$widget = '' |
object | global widget object data |
Definition at line 19 of file gallery.php.