diff custom-pager.tpl.php @ 1:10b7ded9b083

added custom-pager styles and new variables
author luisf
date Wed, 13 Jul 2011 15:24:05 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/custom-pager.tpl.php	Wed Jul 13 15:24:05 2011 +0100
@@ -0,0 +1,34 @@
+<?php
+// $Id: custom-pager.tpl.php,v 1.1.2.1 2008/12/24 00:58:21 eaton Exp $
+
+/**
+ * @file
+ * custom-pager.tpl.php
+ *
+ * Theme implementation to display a custom pager.
+ *
+ * Default variables:
+ * - $previous: A formatted <A> link to the previous item.
+ * - $next: A formatted <A> link to the next item.
+ * - $key: Formatted text describing the item's position in the list.
+ * - $position: A textual flag indicating how the pager is being displayed.
+ *   Possible values include: 'top', 'bottom', and 'block'.
+ *
+ * Other variables:
+ * - $nav_array: An array containing the raw node IDs and position data of the
+ *   current item in the list.
+ * - $node: The current node object.
+ * - $pager: The pager object itself.
+ *
+ * @see custom_pagers_preprocess_custom_pager()
+ */
+?>
+
+<div class="item-list">
+    <ul class="pager custom-pager-<?php print $position; ?>">
+      <li class="previous"><?php print $previous; ?></li>
+      <li class="next"><?php print $next; ?></li>        
+    </ul>
+</div>
+
+