Oberkampf Documentation


displayButtons();

Displays the proper Next and Back Links that you are using for either Thumbnails, Photos, or Search

Parameters

displayButtons(section);

section (Optional)
Simply pass this function a section of either "thumbnails", "photos", or "search".
It will return the correct Next/Back links that are associated with what section you are using per page.
Defaults to "photos".

 

Example Calls:

displayButtons();
Displays next/back links that work when usingdisplayPhoto(); function
This allows you to browse multiple pages of photos within a set.
displayButtons('thumbnails');
Displays next/back links that work when using displayThumbnails(); function
This allows you to browse multiple pages of thumbnails within a set.
displayButtons('search');
Displays next/back links that work when using displaySearch(); function
This allows you to browse multiple pages of thumbnails /photos that were retrieved from a search.

 

 

Required Template Tags

!! These tags are inside the oberkampf.php file ... When you create your oberkampf file they are automatically setup
Do not edit them unless you really know what the heck your doing!!



NOTE:
These link templates are used for multiple sections of your gallery depending on which section you pass displayButtons();

$config['back_link_on'];
Contains all the html code that will be displayed for the Back link when a Back link can be used.
$config['back_link_off']
Contains all the html code that will be displayed for the when the Back link cannot be used. IE: first photo/result
$config['next_link_on'];
Contains all the html code that will be displayed for the Next link when a Next link can be used.
$config['next_link_off']
Contains all the html code that will be displayed for the when the Next link cannot be used. IE: last photo/result