YaWK
24.1
Yet another WebKit
|
The Gallery Plugin Class. Help you building powerful image galleries nearly automatically. More...
Public Member Functions | |
__construct () | |
define JS function doImageAction gallery constructor. More... | |
checkDir ($folder) | |
check if folder exists and create it on demand More... | |
drawFolderSelect ($lang, $path) | |
draw (output) html folder select field, containing the sub folders of /media/images as value More... | |
drawFolderSelectFromGallery ($path, $folder) | |
draw (output) html folder select field, containing the current folder of /media/images as value More... | |
scanFonts ($path) | |
scan system font directory for fonts and return fonts as select field option value More... | |
scanImageDirectory ($path) | |
scan image directory and return images as select field option value More... | |
The Gallery Plugin Class. Help you building powerful image galleries nearly automatically.
Gallery Plugin
Whenever you build a website, sooner or later you will get to the point where you need to put a few photos within a lightbox on your page. YaWK's gallery plugin help you out! It can build image galleries automatically. It does a perfect batch job adding a watermark to every image or resize images and much more. To add a new gallery, just place all your images in any folder and put that folder fia ftp to /media/images/{yourfolder}. If you don't like to use ftp, you could also use yawk's built-in file manager to upload your files. Once the upload is complete, go back to the gallery plugin and select your uploaded folder. (Or any other folder that is stored under /media/images) Set some settings and you're ready to go. When the gallery is created, load the gallery widget into any layout position you like, select which gallery to show up and you are done.
Basic Features:
Image Manipulation: irrespective from all of that, you can easy overview all images on a page and adjust
Try it out - this is a really biiiig time-saver! In most cases you don't need to open all images in photoshop. (or something else) Think about it: you don't need to open, edit and save every single image for each - Yet another WebKit's Gallery Plugin is here to do that automatically for you - you just need to set a few parameters, do a single click... - and everything will get set-up as you wish.
Class covers backend functionality only. See Methods Summary for Details!
Definition at line 49 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::__construct | ( | ) |
define JS function doImageAction gallery constructor.
Definition at line 120 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::checkDir | ( | $folder | ) |
check if folder exists and create it on demand
string | $folder | affected folder |
Definition at line 196 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::drawFolderSelect | ( | $lang, | |
$path | |||
) |
draw (output) html folder select field, containing the sub folders of /media/images as value
array | $lang | language array |
string | $path | usually media/images/ |
Definition at line 170 of file gallery.php.
References YAWK\PLUGINS\GALLERY\gallery\scanImageDirectory().
YAWK\PLUGINS\GALLERY\gallery::drawFolderSelectFromGallery | ( | $path, | |
$folder | |||
) |
draw (output) html folder select field, containing the current folder of /media/images as value
string | $path | usually media/images/ |
string | $folder | the folder of this gallery |
Definition at line 183 of file gallery.php.
References YAWK\PLUGINS\GALLERY\gallery\scanImageDirectory().
YAWK\PLUGINS\GALLERY\gallery::scanFonts | ( | $path | ) |
scan system font directory for fonts and return fonts as select field option value
string | $path | the path to search for fonts. If its empty, the default folder will be ../system/fonts/ |
Definition at line 215 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::scanImageDirectory | ( | $path | ) |
scan image directory and return images as select field option value
string | $path | usually media/images/ |
Definition at line 238 of file gallery.php.
Referenced by YAWK\PLUGINS\GALLERY\gallery\drawFolderSelect(), and YAWK\PLUGINS\GALLERY\gallery\drawFolderSelectFromGallery().
YAWK\PLUGINS\GALLERY\gallery::$action |
string | image manipulation action (eg. flip-horizontal) |
Definition at line 58 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$author |
string | images author (originator, photographer) |
Definition at line 68 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$authorUrl |
string | images author's url (originator, photographer) |
Definition at line 70 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$createThumbnails |
int | 0|1 switch: 1 if thumbnails should be created, zero if not. |
Definition at line 78 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$description |
string | gallery description |
Definition at line 66 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$filename |
string | image filename |
Definition at line 76 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$folder |
string | images folder |
Definition at line 60 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$headline |
string | headline |
Definition at line 114 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$id |
int | gallery ID |
Definition at line 52 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$imageHeight |
int | image height in px |
Definition at line 82 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$imageWidth |
int | image width in px |
Definition at line 80 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$itemAuthor |
string | single image author (originator, photographer) |
Definition at line 72 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$itemAuthorUrl |
string | single image author's url (originator, photographer) |
Definition at line 74 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$itemID |
int | item ID |
Definition at line 54 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$itemTitle |
string | item title |
Definition at line 64 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$offsetX |
int | offset X in px |
Definition at line 100 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$offsetY |
int | offset Y in px |
Definition at line 98 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$resizeImages |
int | 0|1 switch: 1 if images should be resized, zero if not |
Definition at line 84 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$resizeType |
string | type of resizing (eg. thumbnail or fit to width...) |
Definition at line 86 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$sort |
int | order sortation number |
Definition at line 56 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$thumbnailWidth |
int | thumbnail width in px |
Definition at line 88 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$title |
string | gallery title |
Definition at line 62 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$watermark |
string | watermark text |
Definition at line 90 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$watermarkBorder |
string | watermark border thickness in px |
Definition at line 112 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$watermarkBorderColor |
string | watermark text border color |
Definition at line 110 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$watermarkColor |
string | watermark text color |
Definition at line 108 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$watermarkEnabled |
int | 0|1 switch: 1 if watermark is enabled, zero if not |
Definition at line 92 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$watermarkFont |
string | path and filename of the .ttf font to use for text watermarking |
Definition at line 102 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$watermarkImage |
string | the image which should be overlayed for watermarking |
Definition at line 94 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$watermarkOpacity |
int | watermark opacity |
Definition at line 106 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$watermarkPosition |
string | watermark position |
Definition at line 96 of file gallery.php.
YAWK\PLUGINS\GALLERY\gallery::$watermarkTextSize |
int | watermark text size in pt |
Definition at line 104 of file gallery.php.