Skip to content

Commit

Permalink
documented new pagination template properties for anchor attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
WanWizard committed Aug 31, 2012
1 parent 889a790 commit 7b1a0fc
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions classes/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,26 +160,36 @@ <h4 id="global_config">Global Config Array</h4>
'total_items' => 10,
'per_page' => 20,
'template' => array(
'wrapper_start' => '&lt;div class="pagination"&gt; ',
'wrapper_end' => ' &lt;/div&gt;',
'page_start' => '&lt;span class="page-links"&gt; ',
'page_end' => ' &lt;/span&gt;',
'previous_start' => '&lt;span class="previous"&gt; ',
'previous_end' => ' &lt;/span&gt;',
'previous_inactive_start' => ' &lt;/span class="previous-inactive"&gt;',
'previous_inactive_end' => ' &lt;/span&gt;',
'previous_mark' => '&laquo; ',
'next_start' => '&lt;span class="next"&gt; ',
'next_end' => ' &lt;/span&gt;',
'next_inactive_start' => ' &lt;/span class="next-inactive"&gt;',
'next_inactive_end' => ' &lt;/span&gt;',
'next_mark' => ' &raquo;',
'active_start' => '&lt;span class="active"&gt; ',
'active_end' => ' &lt;/span&gt;',
'regular_start' => '',
'regular_end' => '',
'wrapper_start' => '&lt;div class="pagination"&gt; ',
'wrapper_end' => ' &lt;/div&gt;',
'page_start' => '&lt;span class="page-links"&gt; ',
'page_end' => ' &lt;/span&gt;',
'previous_start' => '&lt;span class="previous"&gt; ',
'previous_end' => ' &lt;/span&gt;',
'previous_inactive_start' => ' &lt;span class="previous-inactive"&gt;',
'previous_inactive_end' => ' &lt;/span&gt;',
'previous_inactive_attrs' => array(),
'previous_mark' => '&laquo; ',
'previous_attrs' => array(),
'next_start' => '&lt;span class="next"&gt; ',
'next_end' => ' &lt;/span>',
'next_inactive_start' => ' &lt;span class="next-inactive"&gt;',
'next_inactive_end' => ' &lt;/span&gt;',
'next_inactive_attrs' => array(),
'next_mark' => ' &raquo;',
'next_attrs' => array(),
'active_start' => '&lt;span class="active"&gt; ',
'active_end' => ' &lt;/span&gt;',
'active_attrs' => array(),
'regular_start' => '',
'regular_end' => '',
'regular_attrs' => array(),
),
));</code></pre>
<p class="note">
If you have a standard configuration for your entire application, you can also opt to store this structure
in the app/config/pagination.php config file, so you don't have to define it every time.
</p>
</article>

<article>
Expand Down

0 comments on commit 7b1a0fc

Please sign in to comment.