tinyzenpage-functions.php
tinyZenpage - A TinyMCE plugin for Zenphoto with Zenpage
Tags
Table of Contents
Functions
- printFullAlbumsList() : string
- Prints all albums of the Zenphoto gallery as a partial drop down menu (<option></option> parts).
- printSubLevelAlbums() : string
- Recursive helper function for printFullAlbumsList() to get all sub albums of each top level album
- unpublishedZenphotoItemCheck() : string
- checks if a album or image is un-published and returns a '*'
- shortentitle() : string
- shortens a string, truncate_string() was not exact enough.
- printImageslist() : string
- Prints the images and/or albums as thumbnails of the selected album
- getImageType() : string
- Returns the object "type" of the "image".
- printNewsArticlesList() : string
- Prints all available articles in Zenpage
- checkAlbumForImages() : bool
- Checks if an album has images for display on the form
- showZenphotoOptions() : bool
- Checks if the full Zenphoto include form options should be shown
- printTinyPageNav() : string
- Prints the page navigation for albums or Zenpage news articles
- printZenpageItems() : string
- Prints the Zenpage items as a partial dropdown (pages, news articles, categories)
- printAllNestedList() : string
- Prints all available pages or categories in Zenpage
- unpublishedZenpageItemCheck() : string
- checks if a news article or page is un-published and/or protected and returns a '*'
- setTinyZenpageLocale() : mixed
- Set the locale for gettext translation of this plugin. Somehow ZenPhoto's setupDomain() does not work here.
- printTinyZenpageCategorySelector() : mixed
- Prints the dropdown menu for the category selector for the news articles list
Functions
printFullAlbumsList()
Prints all albums of the Zenphoto gallery as a partial drop down menu (<option></option> parts).
printFullAlbumsList() : string
Return values
stringprintSubLevelAlbums()
Recursive helper function for printFullAlbumsList() to get all sub albums of each top level album
printSubLevelAlbums(mixed &$albumobj) : string
Parameters
- $albumobj : mixed
Return values
stringunpublishedZenphotoItemCheck()
checks if a album or image is un-published and returns a '*'
unpublishedZenphotoItemCheck(mixed $obj[, mixed $dropdown = true ]) : string
Parameters
- $obj : mixed
- $dropdown : mixed = true
Return values
stringshortentitle()
shortens a string, truncate_string() was not exact enough.
shortentitle( $title, $length) : string
Parameters
Return values
stringprintImageslist()
Prints the images and/or albums as thumbnails of the selected album
printImageslist( $number) : string
Parameters
Return values
stringgetImageType()
Returns the object "type" of the "image".
getImageType(mixed $imageobj) : string
Note: If the root object is a video object then If a mediaplayer is enabled a sub-type of video or audio will be determined from the suffix. If it is not one of the known suffixes or if the mediaplayer is not enabled then 'other' is returned as the object type.
Pure images return empty for an object type.
Parameters
- $imageobj : mixed
Return values
stringprintNewsArticlesList()
Prints all available articles in Zenpage
printNewsArticlesList(mixed $number) : string
Parameters
- $number : mixed
Return values
stringcheckAlbumForImages()
Checks if an album has images for display on the form
checkAlbumForImages() : bool
Return values
boolshowZenphotoOptions()
Checks if the full Zenphoto include form options should be shown
showZenphotoOptions() : bool
Return values
boolprintTinyPageNav()
Prints the page navigation for albums or Zenpage news articles
printTinyPageNav([ $pagestotal = "" ][, $currentpage = "" ][, $mode = 'images' ]) : string
Parameters
- $pagestotal : = ""
-
int The number page in total
- $currentpage : = ""
-
int Number of the current page
- $mode : = 'images'
-
string 'images' or 'articles'
Return values
stringprintZenpageItems()
Prints the Zenpage items as a partial dropdown (pages, news articles, categories)
printZenpageItems() : string
Return values
stringprintAllNestedList()
Prints all available pages or categories in Zenpage
printAllNestedList() : string
Return values
stringunpublishedZenpageItemCheck()
checks if a news article or page is un-published and/or protected and returns a '*'
unpublishedZenpageItemCheck(mixed $page) : string
Parameters
- $page : mixed
Return values
stringsetTinyZenpageLocale()
Set the locale for gettext translation of this plugin. Somehow ZenPhoto's setupDomain() does not work here.
setTinyZenpageLocale() : mixed
..
printTinyZenpageCategorySelector()
Prints the dropdown menu for the category selector for the news articles list
printTinyZenpageCategorySelector([mixed $currentpage = '' ]) : mixed
Parameters
- $currentpage : mixed = ''