Overview

Packages

  • admin
  • classes
    • media
  • CodeIgniter
    • Libraries
  • core
  • functions
  • JSMin
  • None
  • OpenID
  • PHP
  • PHPMailer
  • plugins
    • admin
    • development
    • feed
    • mail
    • media
    • misc
    • seo
    • spam
    • uploader
    • users
    • zenpage
    • zenphoto
      • news
  • Services
    • JSON

Classes

  • _zp_captcha
  • _zp_HTML_cache
  • admin_approval
  • Album
  • AlbumBase
  • AlbumZip
  • AMFReader
  • AMFStream
  • AnyFile
  • AnyFile_Options
  • Auth_OpenID
  • Auth_OpenID_AlreadySigned
  • Auth_OpenID_AssociateRequest
  • Auth_OpenID_Association
  • Auth_OpenID_AuthRequest
  • Auth_OpenID_AX
  • Auth_OpenID_AX_AttrInfo
  • Auth_OpenID_AX_Error
  • Auth_OpenID_AX_FetchRequest
  • Auth_OpenID_AX_FetchResponse
  • Auth_OpenID_AX_KeyValueMessage
  • Auth_OpenID_AX_Message
  • Auth_OpenID_AX_StoreRequest
  • Auth_OpenID_AX_StoreResponse
  • Auth_OpenID_BcMathWrapper
  • Auth_OpenID_CancelResponse
  • Auth_OpenID_CheckAuthRequest
  • Auth_OpenID_CheckIDRequest
  • Auth_OpenID_Consumer
  • Auth_OpenID_ConsumerResponse
  • Auth_OpenID_CryptUtil
  • Auth_OpenID_DatabaseConnection
  • Auth_OpenID_Decoder
  • Auth_OpenID_DiffieHellman
  • Auth_OpenID_DiffieHellmanSHA1ConsumerSession
  • Auth_OpenID_DiffieHellmanSHA1ServerSession
  • Auth_OpenID_DiffieHellmanSHA256ConsumerSession
  • Auth_OpenID_DiffieHellmanSHA256ServerSession
  • Auth_OpenID_DumbStore
  • Auth_OpenID_Encoder
  • Auth_OpenID_EncodingError
  • Auth_OpenID_Extension
  • Auth_OpenID_FailureResponse
  • Auth_OpenID_FileStore
  • Auth_OpenID_GenericConsumer
  • Auth_OpenID_GmpMathWrapper
  • Auth_OpenID_KVForm
  • Auth_OpenID_MalformedReturnURL
  • Auth_OpenID_MalformedTrustRoot
  • Auth_OpenID_Mapping
  • Auth_OpenID_MathLibrary
  • Auth_OpenID_MDB2Store
  • Auth_OpenID_MemcachedStore
  • Auth_OpenID_Message
  • Auth_OpenID_MySQLStore
  • Auth_OpenID_NamespaceMap
  • Auth_OpenID_NoReturnToError
  • Auth_OpenID_OpenIDStore
  • Auth_OpenID_PAPE_Request
  • Auth_OpenID_PAPE_Response
  • Auth_OpenID_Parse
  • Auth_OpenID_PlainTextConsumerSession
  • Auth_OpenID_PlainTextServerSession
  • Auth_OpenID_PostgreSQLStore
  • Auth_OpenID_Request
  • Auth_OpenID_Server
  • Auth_OpenID_ServerError
  • Auth_OpenID_ServerErrorContainer
  • Auth_OpenID_ServerRequest
  • Auth_OpenID_ServerResponse
  • Auth_OpenID_ServiceEndpoint
  • Auth_OpenID_ServiceEndpointLoader
  • Auth_OpenID_SessionNegotiator
  • Auth_OpenID_SetupNeededResponse
  • Auth_OpenID_Signatory
  • Auth_OpenID_SigningEncoder
  • Auth_OpenID_SQLiteStore
  • Auth_OpenID_SQLStore
  • Auth_OpenID_SRegBase
  • Auth_OpenID_SRegRequest
  • Auth_OpenID_SRegResponse
  • Auth_OpenID_SuccessResponse
  • Auth_OpenID_TrustRoot
  • Auth_OpenID_TypeURIMismatch
  • Auth_OpenID_UntrustedReturnURL
  • Auth_OpenID_WebResponse
  • Auth_Yadis_Discovery
  • Auth_Yadis_DiscoveryResult
  • Auth_Yadis_dom
  • Auth_Yadis_domxml
  • Auth_Yadis_HTTPFetcher
  • Auth_Yadis_HTTPResponse
  • Auth_Yadis_Manager
  • Auth_Yadis_ManagerLoader
  • Auth_Yadis_ParanoidHTTPFetcher
  • Auth_Yadis_ParseHTML
  • Auth_Yadis_PHPSession
  • Auth_Yadis_PlainHTTPFetcher
  • Auth_Yadis_ProxyResolver
  • Auth_Yadis_Service
  • Auth_Yadis_SessionLoader
  • Auth_Yadis_XMLParser
  • Auth_Yadis_XRDS
  • Auth_Yadis_Yadis
  • auto_backup
  • AVCSequenceParameterSetReader
  • bxslider
  • cacheManager
  • cacheManagerFeed
  • CI_jsmin
  • CI_load
  • cloneZenphoto
  • codeIgniter_kludge
  • colorbox
  • Comment
  • comment_form
  • contactformOptions
  • crop_image
  • cycle
  • defaultCodeblocks
  • deprecated_functions
  • DownloadList
  • dynamic_locale
  • dynamicAlbum
  • elFinder_options
  • email_new_user
  • exampleMacros
  • external_auth
  • ExternalFeed
  • externalFeed_options
  • favorites
  • favoritesOptions
  • federated_logon
  • feed
  • fieldExtender
  • flag_thumbnail
  • Gallery
  • galleryArticles
  • getID3
  • getid3_aac
  • getid3_apetag
  • getid3_flv
  • getid3_handler
  • getid3_id3v1
  • getid3_id3v2
  • getid3_lib
  • getid3_lyrics3
  • getid3_mp3
  • getid3_mpeg
  • getid3_quicktime
  • getid3_swf
  • GoogleMap
  • Googlemaps
  • googleVerifyOptions
  • hitcounter
  • HTML
  • htmlmetatags
  • http_auth
  • Image
  • image_effects
  • internal_deprecations
  • ipBlocker
  • jcarousel
  • jPlayer
  • jplayer_options
  • jquery_rating
  • JSMin
  • lib_GD_Options
  • lib_Imagick_Options
  • lib_NoGraphics
  • MediaObject
  • menu_manager
  • MergedRSS
  • MergedRSSOptions
  • mobile
  • Mobile_Detect
  • mobileTheme
  • multipleLayoutOptions
  • null_seo
  • OAuthConsumer
  • OAuthDataStore
  • OAuthRequest
  • OAuthServer
  • OAuthSignatureMethod
  • OAuthSignatureMethod_HMAC_SHA1
  • OAuthSignatureMethod_PLAINTEXT
  • OAuthSignatureMethod_RSA_SHA1
  • OAuthToken
  • OAuthUtil
  • pagedThumbsNav
  • pagedthumbsOptions
  • PclZip
  • PersistentObject
  • PHPMailer
  • PlainText
  • POP3
  • print_album_menu
  • pseudoPlayer
  • publishContent
  • quota_manager
  • reCaptcha
  • ReCaptchaResponse
  • register_user
  • rewriteRules
  • rewriteTokens
  • RSS
  • RSS_internal_deprecations
  • rss_options
  • search_statistics
  • SearchEngine
  • security_logger
  • seo_locale
  • Services_JSON
  • Services_JSON_Error
  • setupexternalFeed
  • setupRSS
  • show_not_loggedin
  • sitemap
  • slideshow
  • SMTP
  • static_html_cache
  • tagsuggest
  • TextObject
  • TextObject_internal_deprecations
  • TextObject_Options
  • ThemeObject
  • themeSwitcher
  • tinymce4Options
  • tinyURL
  • Transientimage
  • tweet
  • TwitterOAuth
  • UploadHandler
  • user_expiry
  • user_groups
  • user_logout_options
  • userAddressFields
  • utf8
  • Video
  • Video_internal_deprecations
  • VideoObject_Options
  • viewer_size_image_options
  • WEBdocs
  • WEBdocs_Options
  • xmpMetadata
  • Zenpage
  • Zenpage_internal_deprecations
  • ZenpageCategory
  • zenpagecms
  • ZenpageItems
  • ZenpageNews
  • ZenpagePage
  • ZenpageRoot
  • Zenphoto_Administrator
  • Zenphoto_Authority
  • zenphoto_org_news
  • zenphoto_seo
  • zenphotoDonate
  • ZipStream
  • zp_PHPMailer
  • zpCaptcha
  • zpFunctions
  • zpLegacySpam
  • zpMutex
  • zpSimpleSpam
  • zpTrivialSpam

Exceptions

  • BadFunctionCallException
  • BadMethodCallException
  • Exception
  • getid3_exception
  • JSMin_UnterminatedCommentException
  • JSMin_UnterminatedRegExpException
  • JSMin_UnterminatedStringException
  • LogicException
  • OAuthExcept
  • phpmailerException

Functions

  • __autoload
  • _escape_xref
  • _recaptcha_aes_encrypt
  • _recaptcha_aes_pad
  • _recaptcha_http_post
  • _recaptcha_mailhide_email_parts
  • _recaptcha_mailhide_urlbase64
  • _recaptcha_qsencode
  • accessAllAlbums
  • add_context
  • addalbumsToDatabase
  • addCategoriesToDatabase
  • addGeoCoord
  • addItem
  • addPagesToDatabase
  • addPluginScript
  • addPluginType
  • addSubalbumMenus
  • admin_album_list
  • admin_securityChecks
  • admin_showupdate
  • adminPageNav
  • adminToolbox
  • albumNumber
  • applyMacros
  • Auth_OpenID_arrangeByType
  • Auth_OpenID_AX_checkAlias
  • Auth_OpenID_AX_toTypeURIs
  • Auth_OpenID_bestMatchingService
  • Auth_OpenID_checkFieldName
  • Auth_OpenID_checkSessionType
  • Auth_OpenID_checkTimestamp
  • Auth_OpenID_detectMathLibrary
  • Auth_OpenID_discover
  • Auth_OpenID_discoverURI
  • Auth_OpenID_discoverWithoutYadis
  • Auth_OpenID_discoverWithYadis
  • Auth_OpenID_discoverXRI
  • Auth_OpenID_extractReturnURL
  • Auth_OpenID_findOPLocalIdentifier
  • Auth_OpenID_getAllAssociationTypes
  • Auth_OpenID_getAllowedReturnURLs
  • Auth_OpenID_getAuthorityPattern
  • Auth_OpenID_getAvailableSessionTypes
  • Auth_OpenID_getDefaultAssociationOrder
  • Auth_OpenID_getDefaultGen
  • Auth_OpenID_getDefaultMod
  • Auth_OpenID_getDefaultNegotiator
  • Auth_OpenID_getEncodedPattern
  • Auth_OpenID_getEncryptedNegotiator
  • Auth_OpenID_getEscapeRE
  • Auth_OpenID_getMathLib
  • Auth_OpenID_getOnlyEncryptedOrder
  • Auth_OpenID_getOpenIDConsumerTypeURIs
  • Auth_OpenID_getOpenIDTypeName
  • Auth_OpenID_getOpenIDTypeURIs
  • Auth_OpenID_getOPOrUserServices
  • Auth_OpenID_getSecretSize
  • Auth_OpenID_getSessionTypes
  • Auth_OpenID_getSupportedAssociationTypes
  • Auth_OpenID_getUnreserved
  • Auth_OpenID_getURIPattern
  • Auth_OpenID_getURLIllegalCharRE
  • Auth_OpenID_HMACSHA1
  • Auth_OpenID_HMACSHA256
  • Auth_OpenID_include_init
  • Auth_OpenID_isError
  • Auth_OpenID_isOpenID1
  • Auth_OpenID_legacy_discover
  • Auth_OpenID_makeOpenIDEndpoints
  • Auth_OpenID_math_extensions
  • Auth_OpenID_mkNonce
  • Auth_OpenID_noMathSupport
  • Auth_OpenID_pct_encoded_replace
  • Auth_OpenID_pct_encoded_replace_unreserved
  • Auth_OpenID_registerNamespaceAlias
  • Auth_OpenID_remove_dot_segments
  • Auth_OpenID_removeNamespaceAlias
  • Auth_OpenID_returnToMatches
  • Auth_OpenID_setNoMathSupport
  • Auth_OpenID_SHA1
  • Auth_OpenID_SHA256
  • Auth_OpenID_splitNonce
  • Auth_OpenID_supportsSReg
  • Auth_OpenID_urinorm
  • Auth_OpenID_verifyReturnTo
  • Auth_Yadis_array_scramble
  • Auth_Yadis_escapeForIRI
  • Auth_Yadis_getCanonicalID
  • Auth_Yadis_getDefaultProxy
  • Auth_Yadis_getEscapeRE
  • Auth_Yadis_getIPrivateChars
  • Auth_Yadis_getNSMap
  • Auth_Yadis_getServiceEndpoints
  • Auth_Yadis_getSupportedExtensions
  • Auth_Yadis_getUCSChars
  • Auth_Yadis_getXMLParser
  • Auth_Yadis_getXRDExpiration
  • Auth_Yadis_getXrefRE
  • Auth_Yadis_getXRIAuthorities
  • Auth_Yadis_identifierScheme
  • Auth_Yadis_iriToURI
  • Auth_Yadis_pct_escape_unicode
  • Auth_Yadis_providerIsAuthoritative
  • Auth_Yadis_rootAuthority
  • Auth_Yadis_setDefaultParser
  • Auth_Yadis_startswith
  • Auth_Yadis_toIRINormal
  • Auth_Yadis_toURINormal
  • Auth_Yadis_XRI
  • Auth_Yadis_XRIAppendArgs
  • authorSelector
  • build_query
  • build_url
  • bulkActionRedirect
  • bulkTags
  • byteConvert
  • cacheImage
  • checkAccess
  • checkAlbumimagesort
  • checkAlbumParentid
  • checkAlbumPassword
  • checkChosenItemStatus
  • checkChosenMenuset
  • checked
  • checkFolder
  • checkForEmptyTitle
  • checkForGuest
  • checkForPage
  • checkForPassword
  • checkForUpdate
  • checkHitcounterDisplay
  • checkIfChecked
  • checkIfLockedNews
  • checkIfLockedPage
  • checkIfNew
  • checkInstall
  • checkLayoutUseForImages
  • checkNewsAccess
  • checkNewsCategoryPassword
  • checkObjectsThumb
  • checkPagePassword
  • checkPageValidity
  • checkParentLayouts
  • checkPublishDates
  • checkRequiredField
  • checkSelectedAlbum
  • checkSignature
  • cleanAlbum
  • cleanHTML
  • clearSitemapCache
  • clonedFrom
  • codeblocktabsJS
  • comment_form_addComment
  • comment_form_handle_comment
  • comment_form_PaginationJS
  • comment_form_postcomment
  • comment_form_print10Most
  • comment_form_visualEditor
  • commentFormUseCaptcha
  • commentReply
  • commentsAllowed
  • consolidatedEditMessages
  • copyLayoutSelection
  • copyThemeDirectory
  • countArticles
  • countCombiNews
  • createMenuIfNotExists
  • createRelatedItemsResultArray
  • cron_starter
  • currentRelativeURL
  • customOptions
  • dateDiff
  • datepickerJS
  • dateTimeConvert
  • db_affected_rows
  • db_close
  • db_collation
  • db_connect
  • db_count
  • db_create
  • db_create_table
  • db_error
  • db_fetch_assoc
  • db_fetch_row
  • db_free_result
  • db_getSQLmode
  • db_insert_id
  • db_LIKE_escape
  • db_list_fields
  • db_name
  • db_num_rows
  • db_permissions
  • db_quote
  • db_setSQLmode
  • db_show
  • db_software
  • db_table_update
  • db_truncate_table
  • debug404
  • debugLog
  • debugLogBacktrace
  • debugLogVar
  • defaultCodeblocks_codebox
  • deleteArticle
  • deleteCategory
  • deleteItem
  • deleteLayoutSelection
  • deletePage
  • deleteThemeDirectory
  • detect_fetcher
  • detect_math
  • detect_query_corruption
  • detect_random
  • detect_stores
  • detect_xml
  • dircopy
  • displayError
  • doIncludes
  • elFinder_admin_tabs
  • elFinder_tinymce
  • enableExtension
  • escape
  • executeRSS
  • exitZP
  • exposeZenPhotoInformations
  • extensionEnabled
  • fetchComments
  • filesystemToInternal
  • filter_extractReturnURL
  • filter_MatchesAnyOpenIDConsumerType
  • filter_MatchesAnyOpenIDType
  • filterImageQuery
  • fix_path_redirect
  • formatList
  • fullText
  • galleryAlbumsPerPage
  • genAlbumList
  • generateCaptcha
  • generateLanguageList
  • generateListFromArray
  • generateListFromFiles
  • generateRadiobuttonsFromArray
  • generateSitemapCacheFile
  • generateSitemapIndexCacheFile
  • generateUnorderedListFromArray
  • get_AnyFile_suffixes
  • get_context
  • get_filterScript
  • get_instance
  • get_language_string
  • getAdminThumb
  • getAlbumArray
  • getAlbumBreadcrumb
  • getAlbumBreadcrumbAdmin
  • getAlbumCustomData
  • getAlbumData
  • getAlbumDate
  • getAlbumDesc
  • getAlbumFolder
  • getAlbumGeodata
  • getAlbumId
  • getAlbumInherited
  • getAlbumLinkURL
  • getAlbumLocation
  • getAlbumPage
  • getAlbumPlace
  • getAlbumStatistic
  • getAlbumThumb
  • getAlbumTitle
  • getAlbumURL
  • getAllAccessibleAlbums
  • getAllAlbums
  • getAllArticleDates
  • getAllCategories
  • getAllDates
  • getAllowedTags
  • getAllSubAlbumIDs
  • getAllSubalbums
  • getAllTagsCount
  • getAllTagsFromAlbum
  • getAllTagsFromAlbum_multi_unique
  • getAllTagsFromZenpage
  • getAllTagsUnique
  • getAllTranslations
  • getAnnotatedAlbumTitle
  • getAnnotatedImageTitle
  • getArticles
  • getAuthor
  • getBare
  • getBareAlbumDesc
  • getBareAlbumTitle
  • getBareGalleryDesc
  • getBareGalleryTitle
  • getBareImageDesc
  • getBareImageTitle
  • getBareNewsAlbumTitle
  • getBareNewsTitle
  • getBarePageTitle
  • getCategory
  • getCategoryID
  • getCategoryLink
  • getCategoryParentID
  • getCategorySortOrder
  • getCategoryTitle
  • getCheckboxState
  • getCodeblock
  • getCombiNews
  • getCommentAddress
  • getCommentAuthorEmail
  • getCommentAuthorLink
  • getCommentAuthorName
  • getCommentAuthorSite
  • getCommentBody
  • getCommentCount
  • getCommentDate
  • getCommentDateTime
  • getCommentErrors
  • getCommentsAllowed
  • getCommentStored
  • getCommentTime
  • getConsumer
  • getContentShorten
  • getCurrentMenuItem
  • getCurrentNewsArchive
  • getCurrentNewsCategory
  • getCurrentNewsCategoryID
  • getCurrentNewsCategoryParentID
  • getCurrentNewsPage
  • getCurrentPage
  • getCurrentTheme
  • getCustomAlbumThumb
  • getCustomAlbumThumbMaxSpace
  • getCustomImageURL
  • getCustomPageURL
  • getCustomSizedImageMaxSpace
  • getCustomSizedImageThumbMaxSpace
  • getDefaultHeight
  • getDefaultSizedImage
  • getDefaultWidth
  • getDownloadLink
  • getdownloadList
  • getDownloadURL
  • getE
  • getEnabledPlugins
  • getExpiryDatePost
  • getFavoritesURL
  • getField
  • getFirstImageURL
  • getFullHeight
  • getFullImageURL
  • getFullNewsImage
  • getFullWidth
  • getGalleryDesc
  • getGalleryIndexURL
  • getGalleryTitle
  • getGeoCoord
  • getHeadTitle
  • getHitcounter
  • getImageArgs
  • getImageCacheFilename
  • getImageCachePostfix
  • getImageCity
  • getImageCountry
  • getImageCustomData
  • getImageData
  • getImageDate
  • getImageDesc
  • getImageEXIFData
  • getImageGeodata
  • getImageID
  • getImageLinkURL
  • getImageLocation
  • getImageMetaData
  • getImageParameters
  • getImageProcessorURI
  • getImageProcessorURIFromCacheName
  • getImageRotation
  • getImageSortOrder
  • getImageState
  • getImageStatistic
  • getImageThumb
  • getImageTitle
  • getImageURI
  • getImageURL
  • getItem
  • getItemByID
  • getItemTitleAndURL
  • getjPlayerSkinCSS
  • getjPlayerSkins
  • getLanguageArray
  • getLanguageFlag
  • getLastImageURL
  • getLatestComments
  • getLatestNews
  • getLatestZenpageComments
  • getLayout
  • getLayoutSelector
  • getLink
  • getLinkHTML
  • getLogTabs
  • getMacros
  • getMainSiteName
  • getMainSiteURL
  • getManagedAlbumList
  • getMaxSpaceContainer
  • getMenuFromLink
  • getMenuItemChilds
  • getMenuItems
  • getMenumanagerPredicessor
  • getMenumanagerSuccessor
  • getMenuSetSelector
  • getMenuVisibility
  • getMimeString
  • getNestedAlbumList
  • getNewsAdminOption
  • getNewsAdminOptionPath
  • getNewsAlbumName
  • getNewsAlbumTitle
  • getNewsAlbumURL
  • getNewsArchivePath
  • getNewsArchiveURL
  • getNewsAuthor
  • getNewsCategories
  • getNewsCategoryCustomData
  • getNewsCategoryDesc
  • getNewsCategoryPath
  • getNewsCategoryURL
  • getNewsContent
  • getNewsContentShorten
  • getNewsCustomData
  • getNewsDate
  • getNewsExtraContent
  • getNewsID
  • getNewsImageTags
  • getNewsIndexURL
  • getNewsLink
  • getNewsPagesStatistic
  • getNewsPathNav
  • getNewsReadMore
  • getNewsTitle
  • getNewsTitleLink
  • getNewsTitlePath
  • getNewsType
  • getNewsURL
  • getNewsVideoContent
  • getNextAlbum
  • getNextAlbumURL
  • getNextImageThumb
  • getNextImageURL
  • getNextNewsPageURL
  • getNextNewsURL
  • getNextPageURL
  • getNextPrevNews
  • getNotViewableAlbums
  • getNotViewableImages
  • getNumAlbums
  • getNumAllSubalbums
  • getNumImages
  • getNumNews
  • getNumPages
  • getNumSubalbums
  • getOpenIDURL
  • getOption
  • getOptionFromDB
  • getOptionList
  • getPageAuthor
  • getPageContent
  • getPageCustomData
  • getPageDate
  • getPageExtraContent
  • getPageID
  • getPageLastChangeDate
  • getPageLinkPath
  • getPageLinkURL
  • getPageNavList
  • getPageNumURL
  • getPageParentID
  • getPageRedirect
  • getPages
  • getPageSelector
  • getPageSortorder
  • getPageTitle
  • getPageTitleLink
  • getPageURL
  • getParentAlbums
  • getParentAlbumsAdmin
  • getParentBreadcrumb
  • getParentItems
  • getParentMenuItems
  • getParentNewsCategories
  • getParentPages
  • getPasswordProtectImage
  • getPHPFiles
  • getPlugin
  • getPluginFiles
  • getPluginTabs
  • getPrevAlbum
  • getPrevAlbumURL
  • getPrevImageThumb
  • getPrevImageURL
  • getPrevNewsPageURL
  • getPrevNewsURL
  • getPrevPageURL
  • getProtectedImageURL
  • getRandomImages
  • getRandomImagesAlbum
  • getRating
  • getRelatedItems
  • getRequestURI
  • getReturnTo
  • getRSSHeaderLink
  • getRSSLink
  • getScheme
  • getSearchDate
  • getSearchURL
  • getSearchWords
  • getSelectedLayout
  • getSerializedArray
  • getSetClause
  • getSiteHomeURL
  • getSitemapAlbumList
  • getSitemapAlbums
  • getSitemapGoogleImageVideoExtras
  • getSitemapGoogleLoopIndex
  • getSitemapImages
  • getSitemapIndexLinks
  • getSitemapZenpageNewsArticles
  • getSitemapZenpageNewsCategories
  • getSitemapZenpageNewsIndex
  • getSitemapZenpagePages
  • getSizeCustomImage
  • getSizeDefaultImage
  • getSizeDefaultThumb
  • getSizedImageURL
  • getSizeFullImage
  • getStore
  • getSubCategories
  • getSubtabs
  • getSuffix
  • getTagCountByAccess
  • getTagOrder
  • getTags
  • gettext_pl
  • gettext_th
  • getTheme
  • getThemeFiles
  • getThemeOption
  • getTimezones
  • getTinyMCE4ConfigFiles
  • getTitle
  • getTotalArticles
  • getTotalImagesIn
  • getTotalNewsPages
  • getTotalPages
  • getTrustRoot
  • getUnprotectedImageURL
  • getUrAlbum
  • getURL
  • getUserIP
  • getUserLocale
  • getVersion
  • getViewerImageSize
  • getWatermarkParam
  • getWatermarkPath
  • getWatermarks
  • getWhereClause
  • getXSRFToken
  • getZenpageHitcounter
  • getZenpageRSSHeaderLink
  • getZenpageRSSLink
  • getZenpageStatistic
  • googleVerifyHead
  • handleSearchParms
  • hasDynamicAlbumSuffix
  • hasNextImage
  • hasNextPage
  • hasPrevImage
  • hasPrevPage
  • hitcounter
  • html_decode
  • html_encode
  • html_encodeTagged
  • httpsRedirect
  • httpUploadHandler
  • httpUploadHandler_admin_tabs
  • i18nSetLocale
  • imageBlurGD
  • imageDebug
  • imageError
  • imageNumber
  • imgSrcURI
  • in_context
  • inNewsCategory
  • inProtectedNewsCategory
  • installSignature
  • instrument
  • inSubNewsCategoryOf
  • internalToFilesystem
  • inventMenuItem
  • iptc_make_tag
  • is_AdminEditPage
  • is_connected
  • is_GalleryNewsType
  • is_News
  • is_NewsArchive
  • is_NewsArticle
  • is_NewsCategory
  • is_NewsPage
  • is_NewsType
  • is_Pages
  • is_valid_email_zp
  • is_valid_image
  • is_valid_other_type
  • is_zip
  • isAlbumClass
  • isAlbumPage
  • isArchive
  • isHandledAlbum
  • isImageClass
  • isImagePage
  • isImagePhoto
  • isImageVideo
  • isLandscape
  • isMyAlbum
  • isMyNews
  • isMyPage
  • isolate
  • isProtectedAlbum
  • isProtectedNewsCategory
  • isProtectedPage
  • isSubNewsCategoryOf
  • isValidURL
  • jQueryUpload_head
  • jQueryUpload_headers
  • jQueryUploadHandler
  • jQueryUploadHandler_admin_tabs
  • js_encode
  • json_decode
  • json_encode
  • kses
  • kses_array_lc
  • kses_attr
  • kses_bad_protocol
  • kses_bad_protocol_once
  • kses_bad_protocol_once2
  • kses_check_attr_val
  • kses_decode_entities
  • kses_hair
  • kses_hook
  • kses_html_error
  • kses_js_entities
  • kses_no_null
  • kses_normalize_entities
  • kses_normalize_entities2
  • kses_split
  • kses_split2
  • kses_stripslashes
  • kses_version
  • ksesProcess
  • layoutSelector
  • layoutSelector_album
  • listDBUses
  • listDirectoryFiles
  • listUses
  • load_zenpage_news
  • load_zenpage_pages
  • loadLocalOptions
  • log_message
  • lookupSortKey
  • macro_admin_tabs
  • macroList_show
  • makeAlbumCurrent
  • makeImageCurrent
  • makeSpecialImageName
  • markRelease_button
  • mb_strlen
  • mb_strpos
  • mb_strrpos
  • mb_strtolower
  • mb_strtoupper
  • mb_substr
  • mb_substr_count
  • menu_admin_toolbox_global
  • menu_tabs
  • minDiff
  • mkdir_recursive
  • my_truncate_string
  • myts_date
  • newAlbum
  • newImage
  • next_album
  • next_comment
  • next_image
  • next_news
  • next_page
  • ngettext_pl
  • ngettext_th
  • normalizeColumns
  • omsAdditions
  • openedForComments
  • parse_query
  • parse_size
  • parseAllowedTags
  • parseHttpAcceptLanguage
  • passAlbums
  • passImages
  • pathurlencode
  • PclZipUtilCopyBlock
  • PclZipUtilOptionText
  • PclZipUtilPathInclusion
  • PclZipUtilPathReduction
  • PclZipUtilRename
  • PclZipUtilTranslateWinPath
  • PHPMailerAutoload
  • populateManagedObjectsList
  • postAlbumSort
  • postIndexDecode
  • postIndexEncode
  • prefix
  • prepareAlbumPage
  • prepareCustomPage
  • prepareImagePage
  • prepareIndexPage
  • print404status
  • print_language_string_list
  • printAddToFavorites
  • printAdminFooter
  • printAdminHeader
  • printAdminRightsTable
  • printAdminToolbox
  • printAlbumBreadcrumb
  • printAlbumButtons
  • printAlbumCustomData
  • printAlbumData
  • printAlbumDate
  • printAlbumDesc
  • printAlbumEditForm
  • printAlbumEditRow
  • printAlbumLegend
  • printAlbumLink
  • printAlbumLocation
  • printAlbumMap
  • printAlbumMenu
  • printAlbumMenuJump
  • printAlbumMenuList
  • printAlbumMenuListAlbum
  • printAlbumPlace
  • printAlbumRating
  • printAlbumsSelector
  • printAlbumStatistic
  • printAlbumStatisticItem
  • printAlbumThumbImage
  • printAlbumTitle
  • printAlbumURL
  • printAlbumZip
  • printAllDates
  • printAllNewsCategories
  • printAllTags
  • printAllTagsAs
  • printAllTagsFromAlbum
  • printAllTagsFromZenpage
  • printAnnotatedAlbumTitle
  • printAnnotatedImageTitle
  • printArticleCategories
  • printArticleDatesDropdown
  • printArticlesPerPageDropdown
  • printBareAlbumDesc
  • printBareAlbumTitle
  • printBareGalleryDesc
  • printBareGalleryTitle
  • printBareImageDesc
  • printBareImageTitle
  • printBareNewsTitle
  • printBarePageTitle
  • printBulkActions
  • printCaptcha
  • printCategoriesStatistic
  • printCategoryCheckboxListEntry
  • printCategoryDropdown
  • printCategoryListSortableTable
  • printCategorySelection
  • printCodeblock
  • printCodeblockEdit
  • printCommentAuthorLink
  • printCommentErrors
  • printCommentForm
  • printContactForm
  • printCurrentNewsArchive
  • printCurrentNewsCategory
  • printCustomAlbumThumbImage
  • printCustomAlbumThumbMaxSpace
  • printCustomMenu
  • printCustomPageSelector
  • printCustomPageURL
  • printCustomSizedImage
  • printCustomSizedImageMaxHeight
  • printCustomSizedImageMaxSpace
  • printCustomSizedImageThumbMaxSpace
  • printDefaultSizedImage
  • printDownloadAlbumZipURL
  • printDownloadLink
  • printDownloadLinkAlbumZip
  • printdownloadList
  • printDownloadURL
  • printEditable
  • printEditCommentLink
  • printEditDropdown
  • printExpired
  • printFavoritesLink
  • printFavoritesURL
  • printField
  • printGalleryDesc
  • printGalleryIndexURL
  • printGalleryTitle
  • printGoogleMap
  • printHeadTitle
  • printHomeLink
  • printImageCustomData
  • printImageData
  • printImageDate
  • printImageDesc
  • printImageDiv
  • printImageEXIFData
  • printImageID
  • printImageLink
  • printImageMap
  • printImageMetadata
  • printImageRating
  • printImageSortOrder
  • printImageStatistic
  • printImageThumb
  • printImageTitle
  • printImageURL
  • printItemEditLink
  • printItemsList
  • printItemsListTable
  • printItemStatusDropdown
  • printjCarouselThumbNav
  • printjPlayerPlaylist
  • printLanguageSelector
  • printLatestAlbums
  • printLatestComments
  • printLatestImages
  • printLatestImagesByDate
  • printLatestImagesByMtime
  • printLatestNews
  • printLatestUpdatedAlbums
  • printLatestZenpageComments
  • printLink
  • printLinkHTML
  • printLogoAndLinks
  • printManagedObjects
  • printMenuemanagerPageList
  • printMenuemanagerPageListWithNav
  • printMenumanagerBreadcrumb
  • printMenumanagerNextLink
  • printMenumanagerPrevLink
  • printMostPopularItems
  • printMostRatedAlbums
  • printMostRatedImages
  • printMostRatedItems
  • printNestedAlbumsList
  • printNestedItemsList
  • printNestedMenu
  • printNews
  • printNewsArchive
  • printNewsAuthor
  • printNewsCategories
  • printNewsCategoryCustomData
  • printNewsCategoryDesc
  • printNewsCategoryURL
  • printNewsContent
  • printNewsCustomData
  • printNewsDate
  • printNewsExtraContent
  • printNewsImageTags
  • printNewsIndexURL
  • printNewsLink
  • printNewsPageList
  • printNewsPageListWithNav
  • printNewsReadMoreLink
  • printNewsStatistic
  • printNewsTitle
  • printNewsTitleLink
  • printNewsURL
  • printNextNewsLink
  • printNextNewsPageLink
  • printNextPageLink
  • printNextPageURL
  • printPageArticleTags
  • printPageAuthor
  • printPageContent
  • printPageCustomData
  • printPageDate
  • printPagedThumbsNav
  • printPageExtraContent
  • printPageID
  • printPageLastChangeDate
  • printPageLinkURL
  • printPageList
  • printPageListWithNav
  • printPageMenu
  • printPageNav
  • printPageSelector
  • printPagesListTable
  • printPagesStatistic
  • printPageTitle
  • printPageTitleLink
  • printPageURL
  • printParentBreadcrumb
  • printParentPagesBreadcrumb
  • printPasswordForm
  • printPopularAlbums
  • printPopularImages
  • printPreloadScript
  • printPrevNewsLink
  • printPrevNewsPageLink
  • printPrevPageLink
  • printPrevPageURL
  • printPublished
  • printPublishIconLink
  • printRandomImages
  • printRating
  • printRegisterURL
  • printRegistrationForm
  • printRelatedItems
  • printRSSHeaderLink
  • printRSSLink
  • printSearchBreadcrumb
  • printSearchForm
  • printSiteHomeURL
  • printSizedImageLink
  • printSizedImageURL
  • printSlideShow
  • printSlideShowJS
  • printSlideShowLink
  • printSortableHead
  • printSortOrderDropdown
  • printSubPagesExcerpts
  • printSubtabs
  • printTabs
  • printTags
  • printThumbNav
  • printTopRatedAlbums
  • printTopRatedImages
  • printTopRatedItems
  • printUnpublishedDropdown
  • printUserLogin_out
  • printUserSizeImage
  • printUserSizeSelector
  • printVersion
  • printZenJavascripts
  • printZenpageIconLegend
  • printZenpageItemsBreadcrumb
  • printZenpageNewsCategorySelector
  • printZenpagePagesSelector
  • printZenpageRSSHeaderLink
  • printZenpageRSSLink
  • printZenpageStatistic
  • printZenphotoLink
  • process_language_string_save
  • processAlbumBulkActions
  • processAlbumEdit
  • processCodeblockSave
  • processCommentBulkActions
  • processCredentials
  • processCustomOptionSave
  • processEditSelection
  • processExpired
  • processImageBulkActions
  • processImageEdit
  • processManagedObjects
  • processMenuBulkActions
  • processOrder
  • processRights
  • processTags
  • processZenpageBulkActions
  • propSizes
  • publishItem
  • purgeOption
  • query
  • query_full_array
  • query_single_row
  • rc4
  • read_exif_data_protected
  • readTags
  • recaptcha_check_answer
  • recaptcha_get_html
  • recaptcha_get_signup_url
  • recaptcha_mailhide_html
  • recaptcha_mailhide_url
  • reconfigureAction
  • reconfigureCS
  • reconfigurePage
  • recordMissing
  • rem_context
  • removeParentAlbumNames
  • resetCurrentAlbum
  • restore_context
  • reveal
  • rewrite_get_album_image
  • rewrite_path
  • rewrite_path_zenpage
  • RSS_Channel
  • RSS_Retrieve
  • RSS_Tags
  • rulesList
  • run
  • safe_fnmatch
  • safe_glob
  • sanitize
  • sanitize_numeric
  • sanitize_path
  • sanitize_script
  • sanitize_string
  • sanitizeRedirect
  • save_context
  • saveLayoutSelection
  • saveZenphotoLayoutSelection
  • search_quote
  • secureServer
  • seo_cleanup_button
  • seoFriendly
  • seoFriendlyJS
  • set_context
  • setAlbumCustomData
  • setAlbumSubtabs
  • setImageCustomData
  • setMainDomain
  • setOption
  • setOptionDefault
  • setPluginDomain
  • setThemeColumns
  • setThemeDomain
  • setThemeOption
  • setThemeOptionDefault
  • setupAllowedMaps
  • setupCurrentLocale
  • setupDomain
  • setupTheme
  • shortenContent
  • showOrNotShowField
  • shuffle_assoc
  • signatureChange
  • site_upgrade_button
  • site_upgrade_status
  • sitemap_echonl
  • sitemap_getChangefreq
  • sitemap_getDateformat
  • sitemap_getDBLimit
  • sitemap_getISO8601Date
  • skipScheduledPublishing
  • sortByKey
  • sortByMultilingual
  • sortMultiArray
  • standardScripts
  • standardThemeOptions
  • stickyNews
  • storeConfig
  • storeTags
  • stripSuffix
  • submenuOf
  • switchLog
  • tagSelector
  • tagSuggestJS
  • tagSuggestJS_admin
  • tagSuggestJS_frontend
  • themeIsEditable
  • themeSetup
  • timezoneDiff
  • tinymce4ConfigJS
  • truncate_string
  • unpublishedZenphotoItemCheck
  • unpublishSubalbums
  • unQuote
  • unzip
  • updateArticle
  • updateCacheName
  • updateCategory
  • updateConfigItem
  • updateItemSortorder
  • updateItemsSortorder
  • updateMenuItem
  • updatePage
  • upload_extra
  • upload_form
  • upload_head
  • user_mailing_list_button
  • validateLocale
  • wordpress_import_button
  • wp_prefix
  • wp_query_full_array
  • wpimport_TryAgainError
  • XSRFdefender
  • XSRFToken
  • zenJavascript
  • zenpageAlbumImage
  • zenpageBulkActionMessage
  • zenpageHitcounter
  • zenpageJSCSS
  • zenpageOpenedForComments
  • zenpagePublish
  • zenphoto_PHPMailer
  • zenphoto_sendmail
  • zenPhotoTheme
  • zp_apply_filter
  • zp_clearCookie
  • zp_colorAllocate
  • zp_cookieEncode
  • zp_copyCanvas
  • zp_createImage
  • zp_drawRectangle
  • zp_error
  • zp_filter_slot
  • zp_filter_unique_id
  • zp_getCookie
  • zp_getFonts
  • zp_graphicsLibInfo
  • zp_handle_password
  • zp_handle_password_single
  • zp_has_filter
  • zp_image_types
  • zp_imageCanRotate
  • zp_imageColorTransparent
  • zp_imageDims
  • zp_imageFill
  • zp_imageFontHeight
  • zp_imageFontWidth
  • zp_imageFromString
  • zp_imageGet
  • zp_imageGray
  • zp_imageHeight
  • zp_imageIPTC
  • zp_imageKill
  • zp_imageLoadFont
  • zp_imageMerge
  • zp_imageOutput
  • zp_imageResizeAlpha
  • zp_imageUnsharpMask
  • zp_imageWidth
  • zp_load_album
  • zp_load_gallery
  • zp_load_image
  • zp_load_page
  • zp_load_request
  • zp_load_search
  • zp_loggedin
  • zp_mail
  • zp_register_filter
  • zp_remove_filter
  • zp_resampleImage
  • zp_rotateImage
  • zp_session_start
  • zp_setCookie
  • zp_writeString
  • zpErrorHandler
  • zpFormattedDate
  • zpRewriteURL
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  1: <?php
  2: 
  3: /**
  4:  * Prints a paged thumbnail navigation to be used on a theme's <i>image.php</i>, independent of the album.php's thumbs loop
  5:  * The function contains some predefined CSS id's you can use for styling.
  6:  *
  7:  * @author Malte Müller (acrylian)
  8:  * @package plugins
  9:  */
 10: $plugin_description = gettext("Prints a paged thumbs navigation on image.php, independent of the album.php’s thumbs.");
 11: $plugin_author = "Malte Müller (acrylian)";
 12: $option_interface = 'pagedthumbsOptions';
 13: 
 14: /**
 15:  * Plugin option handling class
 16:  *
 17:  */
 18: class pagedthumbsOptions {
 19: 
 20:     function __construct() {
 21:         if (OFFSET_PATH == 2) {
 22:             setOptionDefault('pagedthumbs_imagesperpage', '10');
 23:             setOptionDefault('pagedthumbs_counter', '');
 24:             gettext($str = '« prev thumbs');
 25:             setOptionDefault('pagedthumbs_prevtext', getAllTranslations($str));
 26:             gettext($str = 'next thumbs »');
 27:             setOptionDefault('pagedthumbs_nexttext', getAllTranslations($str));
 28:             setOptionDefault('pagedthumbs_width', '50');
 29:             setOptionDefault('pagedthumbs_height', '50');
 30:             setOptionDefault('pagedthumbs_crop', '1');
 31:             setOptionDefault('pagedthumbs_placeholders', '');
 32:             setOptionDefault('pagedthumbs_pagelist', '');
 33:             setOptionDefault('pagedthumbs_pagelistprevnext', '');
 34:             setOptionDefault('pagedthumbs_pagelistlength', '6');
 35:             if (class_exists('cacheManager')) {
 36:                 cacheManager::deleteThemeCacheSizes('paged_thumbs_nav');
 37:                 cacheManager::addThemeCacheSize('paged_thumbs_nav', NULL, getOption('pagedthumbs_width'), getOption('pagedthumbs_height'), NULL, NULL, NULL, NULL, true, NULL, NULL, NULL);
 38:             }
 39:         }
 40:     }
 41: 
 42:     function getOptionsSupported() {
 43:         return array(gettext('Thumbs per page')                              => array('key'  => 'pagedthumbs_imagesperpage', 'type' => OPTION_TYPE_TEXTBOX,
 44:                                         'desc' => gettext("Controls the number of images on a page. You might need to change this after switching themes to make it look better.")),
 45:                         gettext('Counter')                                               => array('key'  => 'pagedthumbs_counter', 'type' => OPTION_TYPE_CHECKBOX,
 46:                                         'desc' => gettext("If you want to show the counter “x - y of z images”.")),
 47:                         gettext('Prevtext')                                              => array('key'                  => 'pagedthumbs_prevtext', 'type'               => OPTION_TYPE_TEXTBOX,
 48:                                         'desc'               => gettext("The text for the previous thumbs."), 'multilingual' => 1),
 49:                         gettext('Nexttext')                                              => array('key'                  => 'pagedthumbs_nexttext', 'type'               => OPTION_TYPE_TEXTBOX,
 50:                                         'desc'               => gettext("The text for the next thumbs."), 'multilingual' => 1),
 51:                         gettext('Crop width')                                            => array('key'  => 'pagedthumbs_width', 'type' => OPTION_TYPE_TEXTBOX,
 52:                                         'desc' => gettext("The thumb crop width is the maximum width when height is the shortest side")),
 53:                         gettext('Crop height')                                       => array('key'  => 'pagedthumbs_height', 'type' => OPTION_TYPE_TEXTBOX,
 54:                                         'desc' => gettext("The thumb crop height is the maximum height when width is the shortest side")),
 55:                         gettext('Crop')                                                      => array('key'  => 'pagedthumbs_crop', 'type' => OPTION_TYPE_CHECKBOX,
 56:                                         'desc' => gettext("If checked the thumbnail will be a centered portion of the image with the given width and height after being resized to thumb size (by shortest side). Otherwise, it will be the full image resized to thumb size (by shortest side).")),
 57:                         gettext('Placeholders')                                      => array('key'  => 'pagedthumbs_placeholders', 'type' => OPTION_TYPE_CHECKBOX,
 58:                                         'desc' => gettext("if you want to use placeholder for layout reasons to fill up the thumbs if the number of thumbs does not match images per page. Recommended only for cropped thumbs.")),
 59:                         gettext('Page list')                                             => array('key'  => 'pagedthumbs_pagelist', 'type' => OPTION_TYPE_CHECKBOX,
 60:                                         'desc' => gettext("If you want the list of the pages to be shown.")),
 61:                         gettext('Pages list prev and next links')    => array('key'  => 'pagedthumbs_pagelistprevnext', 'type' => OPTION_TYPE_CHECKBOX,
 62:                                         'desc' => gettext("If you want to show previous and next thumb page links with the page list.")),
 63:                         gettext('Pages list length')                             => array('key'  => 'pagedthumbs_pagelistlength', 'type' => OPTION_TYPE_CHECKBOX,
 64:                                         'desc' => gettext("The number of links for the page list."))
 65:         );
 66:     }
 67: 
 68: }
 69: 
 70: class pagedThumbsNav {
 71: 
 72:     var $imagesperpage;
 73:     var $counter;
 74:     var $prev;
 75:     var $next;
 76:     var $width;
 77:     var $height;
 78:     var $crop;
 79:     var $placeholders;
 80:     var $showpagelist;
 81:     var $pagelistprevnext;
 82:     var $pagelistlength;
 83:     var $totalimages;
 84:     var $totalpages;
 85:     var $images;
 86:     var $currentpage;
 87:     var $currentfloor;
 88:     var $currentciel;
 89:     var $currentimgnr;
 90:     var $searchimages;
 91:     var $prevpageimage;
 92:     var $nextpageimage;
 93: 
 94:     /**
 95:      *
 96:      * @param unknown_type $imagesperpage
 97:      * @param unknown_type $counter
 98:      * @param unknown_type $prev
 99:      * @param unknown_type $next
100:      * @param unknown_type $width
101:      * @param unknown_type $height
102:      * @param unknown_type $crop
103:      * @param unknown_type $placeholders
104:      * @param unknown_type $showpagelist
105:      * @param unknown_type $pagelistprevnext
106:      * @param unknown_type $pagelistlength
107:      * @return pagedThumbsNav
108:      */
109:     function __construct($imagesperpage = 0, $counter = false, $prev = '', $next = '', $width = NULL, $height = NULL, $crop = NULL, $placeholders = NULL, $showpagelist = false, $pagelistprevnext = false, $pagelistlength = 6) {
110:         global $_zp_current_album, $_zp_current_image, $_zp_current_search, $_zp_gallery;
111:         if (is_null($crop)) {
112:             $this->crop = getOption("pagedthumbs_crop");
113:         } else {
114:             $this->crop = $crop;
115:         }
116:         if (empty($imagesperpage)) {
117:             $this->imagesperpage = getOption("pagedthumbs_imagesperpage");
118:         } else {
119:             $this->imagesperpage = $imagesperpage;
120:         }
121:         if (is_null($width)) {
122:             $this->width = getOption("pagedthumbs_width");
123:         } else {
124:             $this->width = $width;
125:         }
126:         if (is_null($height)) {
127:             $this->height = getOption("pagedthumbs_height");
128:         } else {
129:             $this->height = $height;
130:         }
131:         if (empty($prev)) {
132:             $this->prev = get_language_string(getOption("pagedthumbs_prevtext"));
133:         } else {
134:             $this->prev = html_decode($prev);
135:         }
136:         if (empty($next)) {
137:             $this->next = get_language_string(getOption("pagedthumbs_nexttext"));
138:         } else {
139:             $this->next = html_decode($next);
140:         }
141:         if (empty($counter)) {
142:             $this->counter = getOption("pagedthumbs_counter");
143:         }
144:         if (is_null($placeholders)) {
145:             $this->placeholders = getOption("pagedthumbs_placeholders");
146:         } else {
147:             $this->placeholders = $placeholders;
148:         }
149:         if (is_null($showpagelist)) {
150:             $this->showpagelist = getOption("pagedthumbs_pagelist");
151:         } else {
152:             $this->showpagelist = $showpagelist;
153:         }
154:         if (empty($pagelistlength)) {
155:             $this->pagelistlength = getOption("pagedthumbs_pagelistlength");
156:         } else {
157:             $this->pagelistlength = $pagelistlength;
158:         }
159:         if (is_null($pagelistprevnext)) {
160:             $this->pagelistprevnext = getOption("pagedthumbs_pagelistprevnext");
161:         } else {
162:             $this->pagelistprevnext = $pagelistprevnext;
163:         }
164:         // get the image of current album
165:         if (in_context(ZP_SEARCH_LINKED)) {
166:             if ($_zp_current_search->getNumImages() === 0) {
167:                 $this->searchimages = false;
168:             } else {
169:                 $this->searchimages = true;
170:             }
171:         } else {
172:             $this->searchimages = false;
173:         }
174: 
175:         if (in_context(ZP_SEARCH_LINKED) && $this->searchimages) {
176:             $this->images = $_zp_current_search->getImages();
177:         } else {
178:             $this->images = $_zp_current_album->getImages();
179:         }
180:         $this->currentimgnr = imageNumber();
181:         $this->totalimages = count($this->images);
182:         $this->totalpages = ceil($this->totalimages / $this->imagesperpage);
183:         $this->currentpage = floor(($this->currentimgnr - 1) / $this->imagesperpage) + 1;
184:         $this->currentciel = $this->currentpage * $this->imagesperpage - 1;
185:         $this->currentfloor = $this->currentciel - $this->imagesperpage + 1;
186:     }
187: 
188: // constructor end
189: 
190:     /**
191:      * Gets the link to the previous thumbnail page
192:      * @return string
193:      */
194:     function getPrevThumbsLink() {
195:         global $_zp_current_album;
196:         $this->prevpageimage = ""; // define needed for page list
197:         if ($this->totalpages > 1) {
198:             $prevpageimagenr = ($this->currentpage * $this->imagesperpage) - ($this->imagesperpage + 1);
199:             if ($this->currentpage > 1) {
200:                 if (is_array($this->images[$prevpageimagenr])) {
201:                     if (in_context(ZP_SEARCH_LINKED)) {
202:                         $albumobj = newAlbum($this->images[$prevpageimagenr]['folder']);
203:                     } else {
204:                         $albumobj = $_zp_current_album;
205:                     }
206:                     $this->prevpageimage = newImage($albumobj, $this->images[$prevpageimagenr]['filename']);
207:                 } else {
208:                     $this->prevpageimage = newImage($_zp_current_album, $this->images[$prevpageimagenr]);
209:                 }
210:                 return $this->prevpageimage->getLink();
211:             }
212:         }
213:     }
214: 
215:     /**
216:      * Prints the link to the previous thumbnail page
217:      *
218:      */
219:     function printPrevThumbsLink() {
220:         if ($this->currentpage == 1) {
221:             echo "<div id=\"pagedthumbsnav-prevdisabled\">" . html_encode($this->prev);
222:         } else {
223:             echo "<div id=\"pagedthumbsnav-prev\">\n";
224:         }
225:         // Prev thumbnails - show only if there is a prev page
226:         echo "<a href=\"" . html_encode($this->getPrevThumbsLink()) . "\" title=\"" . gettext("previous thumbs") . "\">" . html_encode($this->prev) . "</a>\n";
227:         echo "</div>";
228:     }
229: 
230:     /**
231:      * Gets the thumbnails and returns them as an array with objects
232:      * @return array with objects
233:      */
234:     function getThumbs() {
235:         global $_zp_current_album, $_zp_current_image, $_zp_current_search, $_zp_gallery;
236:         $curimages = array_slice($this->images, $this->currentfloor, $this->imagesperpage);
237:         $thumbs = array();
238:         foreach ($curimages as $item) {
239:             if (is_array($item)) {
240:                 if (in_context(ZP_SEARCH_LINKED)) {
241:                     $albumobj = newAlbum($item['folder']);
242:                 } else {
243:                     $albumobj = $_zp_current_album;
244:                 }
245:                 $thumbs[] = newImage($albumobj, $item['filename']);
246:             } else {
247:                 $thumbs[] = newImage($_zp_current_album, $item);
248:             }
249:         }
250:         return $thumbs;
251:     }
252: 
253:     /**
254:      * Prints the thumbnails
255:      *
256:      */
257:     function printThumbs() {
258:         global $_zp_current_album, $_zp_current_image, $_zp_current_search, $_zp_gallery;
259:         echo "<div id='pagedthumbsimages'>";
260:         $thumbs = $this->getThumbs();
261:         //$thcount = count($thumbs); echo "thcount:".$thcount;
262:         $number = 0;
263:         foreach ($thumbs as $image) {
264:             if ($image->getID() == $_zp_current_image->getID()) {
265:                 $css = " id='pagedthumbsnav-active' ";
266:             } else {
267:                 $css = "";
268:             }
269:             echo "<a $css href=\"" . html_encode($image->getLink()) . "\" title=\"" . html_encode(getBare($image->getTitle())) . "\">";
270: 
271:             if ($this->crop) {
272:                 $html = "<img src='" . html_encode(pathurlencode($image->getCustomImage(null, $this->width, $this->height, $this->width, $this->height, null, null, true))) . "' alt=\"" . html_encode(getBare($image->getTitle())) . "\" width='" . $this->width . "' height='" . $this->height . "' />";
273:             } else {
274:                 $maxwidth = $this->width; // needed because otherwise getMaxSpaceContainer will use the values of the first image for all others, too
275:                 $maxheight = $this->height;
276:                 getMaxSpaceContainer($maxwidth, $maxheight, $image, true);
277:                 $html = "<img src=\"" . html_encode(pathurlencode($image->getCustomImage(NULL, $maxwidth, $maxheight, NULL, NULL, NULL, NULL, true))) . "\" alt=\"" . html_encode(getBare($image->getTitle())) . "\" />";
278:             }
279:             echo zp_apply_filter('custom_image_html', $html, true);
280:             echo "</a>\n";
281:             $number++;
282:         }
283:         if ($this->placeholders) {
284:             if ($number != $this->imagesperpage) {
285:                 $placeholdernr = $this->imagesperpage - ($number);
286:                 for ($nr2 = 1; $nr2 <= $placeholdernr; $nr2++) {
287:                     echo "<span class=\"placeholder\" style=\"width:" . $this->width . "px;height:" . $this->height . "px\"></span>";
288:                 }
289:             }
290:         }
291:         echo "</div>";
292:     }
293: 
294:     /**
295:      * Gets the link for the next page of thumbs
296:      * @return string
297:      */
298:     function getNextThumbsLink() {
299:         global $_zp_current_album;
300:         if ($this->totalpages > 1) {
301:             if ($this->currentpage < $this->totalpages) {
302:                 $nextpageimagenr = $this->currentpage * $this->imagesperpage;
303:                 if (is_array($this->images[$nextpageimagenr])) {
304:                     if (in_context(ZP_SEARCH_LINKED)) {
305:                         $albumobj = newAlbum($this->images[$nextpageimagenr]['folder']);
306:                     } else {
307:                         $albumobj = $_zp_current_album;
308:                     }
309:                     $this->nextpageimage = newImage($albumobj, $this->images[$nextpageimagenr]['filename']);
310:                 } else {
311:                     $this->nextpageimage = newImage($_zp_current_album, $this->images[$nextpageimagenr]);
312:                 }
313:                 return $this->nextpageimage->getLink();
314:             }
315:         }
316:     }
317: 
318:     /**
319:      * Prints the link for the next page of thumbs
320:      *
321:      */
322:     function printNextThumbsLink() {
323:         if ($this->currentpage == $this->totalpages) {
324:             echo "<div id=\"pagedthumbsnav-nextdisabled\">" . html_encode($this->next);
325:         } else {
326:             echo "<div id=\"pagedthumbsnav-next\">\n";
327:         }
328:         echo "<a href=\"" . html_encode($this->getNextThumbsLink()) . "\" title=\"" . gettext("next thumbs") . "\">" . html_encode($this->next) . "</a>\n";
329:         echo "</div>\n";
330:     }
331: 
332:     /**
333:      * Gets From image x to image y counter values
334:      *
335:      */
336:     function getCounter() {
337:         $fromimage = $this->currentfloor + 1;
338:         if ($this->totalimages < $this->currentciel) {
339:             $toimage = $this->totalimages;
340:         } else {
341:             $toimage = $this->currentciel + 1;
342:         }
343:         $counter = array("fromimage" => $fromimage, "toimage" => $toimage);
344:         return $counter;
345:     }
346: 
347:     /**
348:      * Prints the counter
349:      *
350:      */
351:     function printCounter() {
352:         if ($this->counter) {
353:             $counter = $this->getCounter();
354:             echo "<p id=\"pagedthumbsnav-counter\">" . sprintf(gettext('Images %1$u-%2$u of %3$u (%4$u/%5$u)'), $counter["fromimage"], $counter["toimage"], $this->totalimages, $this->currentpage, $this->totalpages) . "</p>\n";
355:         }
356:     }
357: 
358:     /**
359:      * Prints the pagelist for the thumb pages
360:      *
361:      */
362:     function printPagesList() {
363:         if ($this->showpagelist AND $this->totalpages > 1) {
364:             //$total = $this->totalpages;
365:             //$current = $this->currentpage;
366:             $navlen = sanitize_numeric($this->pagelistlength);
367:             $extralinks = 4;
368:             //$extralinks = $extralinks + 2;
369:             $len = floor(($navlen - $extralinks) / 2);
370:             $j = max(round($extralinks / 2), min($this->currentpage - $len - (2 - round($extralinks / 2)), $this->totalpages - $navlen + $extralinks - 1));
371:             $ilim = min($this->totalpages, max($navlen - round($extralinks / 2), $this->currentpage + floor($len)));
372:             $k1 = round(($j - 2) / 2) + 1;
373:             $k2 = $this->totalpages - round(($this->totalpages - $ilim) / 2);
374: 
375:             echo "<ul id=\"pagedthumbsnav-pagelist\">\n";
376:             // prev page
377:             if ($this->pagelistprevnext AND $this->totalpages > 1 AND is_object($this->prevpageimage)) {
378:                 echo "<li><a href=\"" . html_encode($this->prevpageimage->getLink()) . "\" title=\"" . gettext("previous thumbs") . "\">" . html_encode($this->prev) . "</a></li>\n";
379:             }
380:             // 1st page
381:             $this->printPagedThumbsNavPagelink($this->imagesperpage, $this->searchimages, $this->images, $this->currentpage, 1, 1);
382: 
383:             // transitional page
384:             if ($j > 2) {
385:                 $this->printPagedThumbsNavPagelink($this->imagesperpage, $this->searchimages, $this->images, $this->currentpage, $k1, "...");
386:             }
387:             // normal page
388:             for ($i = $j; $i <= $ilim; $i++) {
389:                 $this->printPagedThumbsNavPagelink($this->imagesperpage, $this->searchimages, $this->images, $this->currentpage, $i, $i);
390:             }
391:             // transition page
392:             if ($i < $this->totalpages) {
393:                 $this->printPagedThumbsNavPagelink($this->imagesperpage, $this->searchimages, $this->images, $this->currentpage, $i, "...");
394:             }
395:             // last page
396:             if ($i <= $this->totalpages) {
397:                 $this->printPagedThumbsNavPagelink($this->imagesperpage, $this->searchimages, $this->images, $this->currentpage, $this->totalpages, $this->totalpages);
398:             }
399:             // next page
400:             if ($this->pagelistprevnext AND $this->totalpages > 1 AND is_object($this->nextpageimage)) {
401:                 echo "<li><a href=\"" . html_encode($this->nextpageimage->getLink()) . "\" title=\"" . gettext("next thumbs") . "\">" . html_encode($this->next) . "</a></li>\n";
402:             }
403:             echo "</ul>\n";
404:         }
405:     }
406: 
407:     /* Helper function for printPagedThumbsNav(). Variables are passed from within that function! Not for standalone use!
408:      *
409:      *  @param int $imagesperpage How many thumbs you want to display per list page
410:      *  @param bool $searchimages if we are in search and have images
411:      *  @param string $images array of images
412:      *  @param int $currentpage number of the current paged thumbs page
413:      *  @param int $i The number of the page to print a link
414:      *  @param string $li/**
415:      */
416: 
417:     function printPagedThumbsNavPagelink($i, $linktext) {
418:         global $_zp_gallery, $_zp_current_album;
419:         $i = $i;
420:         $linktex = $linktext;
421:         $imagenr = ($i * $this->imagesperpage) - ($this->imagesperpage);
422:         if (is_array($this->images[$imagenr])) {
423:             $albumobj = newAlbum($this->images[$imagenr]['folder']);
424:             $pageimage = newImage($_zp_current_album, $this->images[$imagenr]['filename']);
425:         } else {
426:             $pageimage = newImage($_zp_current_album, $this->images[$imagenr]);
427:         }
428:         if ($this->currentpage == $i) {
429:             echo "<li class=\"pagedthumbsnav-pagelistactive\">" . html_encode($linktext) . "</a>\n";
430:         } else {
431:             echo "<li><a href=\"" . html_encode($pageimage->getLink()) . "\" title=\"Seite " . $i . "\">" . html_encode($linktext) . "</a></li>\n";
432:         }
433:     }
434: 
435: }
436: 
437: // class end
438: 
439: /**
440:  * Prints a paged thumbnail navigation to be used on a theme's image.php, independent of the album.php's thumbs loop
441:  *
442:  * NOTE: With version 1.0.2 $size is no longer an option for this plugin. This plugin now uses the new maxspace function if cropping set to false.
443:  *
444:  * The function contains some predefined CSS ids you can use for styling.
445:  * NOTE: In 1.0.3 a extra div around the thumbnails has been added: <div id="pagedthumbsimages">.
446:  * The function prints the following HTML:
447:  *
448:  * <div id="pagedthumbsnav">
449:  *
450:  * <div id="pagedthumbsnav-prev">
451:  * <a href="">Previous thumbnail list</a>
452:  * </div> (if the link is inactive id="pagedthumbsnav-prevdisabled", you can hide it via CSS if needed)
453:  *
454:  * <div id="pagedthumbsimages">
455:  * <a href=""><img></a> (...) (the active thumb has class="pagedthumbsnav-active")
456:  * </div>
457:  *
458:  * <div id="pagedthumbsnav-next">
459:  * <a href="">Next thumbnail list</a> (if the link is inactive id="pagedthumbsnav-nextdisabled", you can hide it via CSS if needed)
460:  * </div>
461:  *
462:  * <p id="pagethumbsnav-counter>Images 1 - 10 of 20 (1/3)</p> (optional)
463:  * <ul id="pagedthumbsnav-pagelist"> (optional)
464:  * <li><a href=""></a></li> (active page link has css class "pagedthumbsnav-pagelistactive" attached)
465:  * </ul>
466:  *
467:  * </div>
468:  *
469:  * You can of course build your own order of the elements as this plugin is with version 1.2.7 based on a class. Make a custom theme function and change the order of the functions calls within.
470:  * Alternatively you can use also use the "get" class methods to build something completely customized.
471:  *
472:  * @param int $imagesperpage How many thumbs you want to display per list page
473:  * @param bool $counter If you want to show the counter of the type "Images 1 - 10 of 20 (1/3)"
474:  * @param string $prev The previous thumb list link text
475:  * @param string $next The next thumb list link text
476:  * @param int $width The thumbnail crop width, if set to NULL the general admin setting is used. If cropping is FALSE this is the maxwidth of the thumb
477:  * @param int $height The thumbnail crop height, if set to NULL the general admin setting is used. If cropping is FALSE this is the maxwheight of the thumb
478:  * @param bool $crop Enter 'true' or 'false' to override the admin plugin option setting, enter NULL to use the admin plugin option (default)
479:  * @param bool $placeholders Enter 'true' or 'false' if you want to use placeholder for layout reasons if teh the number of thumbs does not match $imagesperpage. Recommended only for cropped thumbs. This is printed as an empty <span></span> whose width and height are set via inline css. The remaining needs to be style via the css file and can be addressed via  "#pagedthumbsimages span".
480:  * @param bool $showpagelist Enter 'true' or 'false' if you want to a list of the pages available. Can be styled via  "#pagedthumbsnav-pagelist".
481:  * @param bool $showprevnext If you want to show the prev and next links with the pagelist
482:  * @param int $navlen How many page links should be shown (not that there will be dotted ransition links like this: 1 2 3 4 ... 30).
483:  *
484:  */
485: function printPagedThumbsNav($imagesperpage = '', $counter = false, $prev = '', $next = '', $width = NULL, $height = NULL, $crop = NULL, $placeholders = NULL, $showpagelist = false, $pagelistprevnext = false, $pagelistlength = 6) {
486:     $pagedthumbsobj = new pagedThumbsNav($imagesperpage, $counter, $prev, $next, $width, $height, $crop, $placeholders, $showpagelist, $pagelistprevnext, $pagelistlength);
487:     echo "<div id=\"pagedthumbsnav\">\n";
488:     //$thumbs = $pagedthumbsobj->getThumbs();
489:     //echo "<pre>"; print_r($thumbs); echo "</pre>";
490:     $pagedthumbsobj->printPrevThumbsLink();
491:     $pagedthumbsobj->printThumbs();
492:     $pagedthumbsobj->printNextThumbsLink();
493:     $pagedthumbsobj->printCounter();
494:     $pagedthumbsobj->printPagesList();
495:     echo "</div>\n";
496: }
497: 
498: ?>
Zenphoto doc API documentation generated by ApiGen