** PLEASE NOTE ** The function call names and parameter settings have been changed since version 2.1. Please check the code you use in your theme if you have added navigation jumps directly.
That is all there is to it - for useage instructions please read the FAQ.
For hardcore coders and people who prefer to call functions from their themes, below I have listed all the functions that the multipage toolkit offers with all the available options.
** To use TAdisplaypages **
Place this in your template file (e.g. index.php)
<?php if(function_exists('TA_display_pages')) { TA_display_pages(); } ?>
Parameters (defaults shown)
$firsttext = ' Page '
$lasttext = ' '
$midtext = ' of ' (only used when display_type is all)
$display_type = 'all' (total , current, all)
Examples
Default
Page 1 of 3
TA_display_pages('(',' pages)','','total');
(3 pages)
TA_display_pages('(you are on page ',' now)','','current');
(you are on page 1 now)
** To use TAcontentjump **
Place this in your template file used to display posts (normally single.php) in the location where you want it to appear. You can call the parameters set from the options page.
To display the options from the 1st instance settings use :-
To display the options from the 2nd instance settings use :-
The above method is the prefered method of manual insertion, but you can still set the parameters directly in the function call if you prefer, they are set out below. Be careful the function call name is different.
TAcontentjump($before = '
', $after = '
', $titlenumber = 2, $quicktype = 1, $navtype = 2, $navnumber = TRUE, $previouspagelink = '«', $nextpagelink = '»', $firstpagetext = 'On First Page', $lastpagetext = 'On Last Page', $displayall = TRUE, $displayall_text = 'View All')Example
Parameters (defaults shown)
$before = '<p>'
$after = '</p>'
$title_number = 2 (used when quick_type set to 2, adds page number to page title
0 = no number, 1 = Page Title (1/3), 2 = 1. Page Title )
$quick_type = 1 (quick jump navigation type 0 = disable ,1 = Drop Down List ,2 = page number links ,3 = list menu)
$nav_type = 2 (navigation type 0 = disable, 1 = use page titles as next or previous,
2 = use $previous/$nextpagelink as next or previous links)
$nav_number = TRUE (only used when nav_type = 1, if TRUE page titles preceeded by page number)
$previouspagelink = '«'
$nextpagelink = '»'
$firstpagetext = 'On First Page' (text to display when on first or last page when using nav_type 1)
$lastpagetext = 'On Last Page'
$display_all = TRUE (Display ALL page link on navigation)
$display_all_text = 'View All' (ALL page link title / text)
**NOTE** nav_type is switched to 2 when post has no page titles !!!
CSS Styling
The plugin display will follow your existing CSS styling
You can do more targeted styling by adding the following ID's in to your templates style.css file
span.contentjumplink { font-size: 2em;
color: #aaa;
vertical-align:middle;
font-weight: bold;
padding: 0 3px 0px 3px}
a.contentjumplink { font-size: 2em;
color: #25A;
vertical-align:middle;
font-weight: bold;
padding: 0 3px 0px 3px}
a.contentjumpall { }
span.contentjumpall { }
span.contentjumptitle { vertical-align: middle ;
color: #aaa;
font-weight: bold;
border:1px #ddd solid ;
border-top-color: #a7a7a7;
padding: 3px 3px 3px 3px }
a.contentjumptitle { vertical-align: middle;
border:1px #ddd solid ;
border-top-color: #a7a7a7;
padding: 3px 3px 3px 3px}
select.contentjumpddl { vertical-align: middle;
margin: 0px 0px 0px 0px ;
color: #25A;
font-weight:bold;
font-family:Verdana, Arial, Helvetica, sans-serif;
width: 160px }
ol.contentlist { background-color:#f5f5f5; width: 20%; text-align:left; line-height: 3px; padding: 0px; }
ol.contentlist li { padding: 0px; }
span.contentlist { color: #aaa; font-weight: bold; }
a.contentlist { padding: 0px; }
li.contentlistall { }
span.contentjumpnumber { vertical-align: middle ;
color: #ccc;
font-weight: bold;
border:1px #ddd solid ;
border-top-color: #a7a7a7;
background-color: #25a;
padding: 3px 3px 3px 3px }
a.contentjumpnumber { vertical-align: middle;
border:1px #ddd solid ;
border-top-color: #a7a7a7;
padding: 3px 3px 3px 3px}
a.contentjumpnumber:hover { border-top-color: #25a; }




