ZenphotoCMS 1.6.3

tinyzenpage-functions.php

tinyZenpage - A TinyMCE plugin for Zenphoto with Zenpage

Tags
author

Malte Müller (acrylian)

license

GPL v2

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
string

printSubLevelAlbums()

Recursive helper function for printFullAlbumsList() to get all sub albums of each top level album

printSubLevelAlbums(mixed &$albumobj) : string
Parameters
$albumobj : mixed
Return values
string

unpublishedZenphotoItemCheck()

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
string

shortentitle()

shortens a string, truncate_string() was not exact enough.

shortentitle( $title,  $length) : string
Parameters
$title :

int Title of the image

$length :

int The desired length

Return values
string

printImageslist()

Prints the images and/or albums as thumbnails of the selected album

printImageslist( $number) : string
Parameters
$number :

int The number of images per page

Return values
string

getImageType()

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
string

printNewsArticlesList()

Prints all available articles in Zenpage

printNewsArticlesList(mixed $number) : string
Parameters
$number : mixed
Return values
string

checkAlbumForImages()

Checks if an album has images for display on the form

checkAlbumForImages() : bool
Return values
bool

showZenphotoOptions()

Checks if the full Zenphoto include form options should be shown

showZenphotoOptions() : bool
Return values
bool

printTinyPageNav()

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
string

printZenpageItems()

Prints the Zenpage items as a partial dropdown (pages, news articles, categories)

printZenpageItems() : string
Return values
string

printAllNestedList()

Prints all available pages or categories in Zenpage

printAllNestedList() : string
Return values
string

unpublishedZenpageItemCheck()

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
string

setTinyZenpageLocale()

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 = ''

        
On this page

Search results