ZenphotoCMS 1.6.1

paged_thumbs_nav.php

Prints a paged thumbnail navigation to be used on a theme's <i>image.php</i>, independent of the album.php's thumbs loop The function contains some predefined CSS id's you can use for styling.

Tags
author

Malte Müller (acrylian)

Interfaces, Classes, Traits and Enums

pagedthumbsOptions
Plugin option handling class
pagedThumbsNav

Table of Contents

printPagedThumbsNav()  : mixed
Prints a paged thumbnail navigation to be used on a theme's image.php, independent of the album.php's thumbs loop

Functions

printPagedThumbsNav()

Prints a paged thumbnail navigation to be used on a theme's image.php, independent of the album.php's thumbs loop

printPagedThumbsNav([int $imagesperpage = '' ][, bool $counter = false ][, string $prev = '' ][, string $next = '' ][, int $width = NULL ][, int $height = NULL ][, bool $crop = NULL ][, bool $placeholders = NULL ][, bool $showpagelist = false ][, mixed $pagelistprevnext = false ][, mixed $pagelistlength = 6 ]) : mixed

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.

The function contains some predefined CSS ids you can use for styling. NOTE: In 1.0.3 a extra div around the thumbnails has been added:

. The function prints the following HTML:

(if the link is inactive id="pagedthumbsnav-prevdisabled", you can hide it via CSS if needed)
(...) (the active thumb has class="pagedthumbsnav-active")
Next thumbnail list (if the link is inactive id="pagedthumbsnav-nextdisabled", you can hide it via CSS if needed)

(optional)

  • (active page link has css class "pagedthumbsnav-pagelistactive" attached)

    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. Alternatively you can use also use the "get" class methods to build something completely customized.

    Parameters
    $imagesperpage : int = ''

    How many thumbs you want to display per list page

    $counter : bool = false

    If you want to show the counter of the type "Images 1 - 10 of 20 (1/3)"

    $prev : string = ''

    The previous thumb list link text

    $next : string = ''

    The next thumb list link text

    $width : int = NULL

    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

    $height : int = NULL

    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

    $crop : bool = NULL

    Enter 'true' or 'false' to override the admin plugin option setting, enter NULL to use the admin plugin option (default)

    $placeholders : bool = NULL

    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 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".

    $showpagelist : bool = false

    Enter 'true' or 'false' if you want to a list of the pages available. Can be styled via "#pagedthumbsnav-pagelist".

    $pagelistprevnext : mixed = false
    $pagelistlength : mixed = 6
    Return values
    mixed

    Search results