[geeklog-cvs] geeklog-1.3/system lib-custom.php,1.8,1.9

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sat May 29 11:46:58 EDT 2004


Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv23780/system

Modified Files:
	lib-custom.php 
Log Message:
The contents and order of the entries in {menu_elements} in header.thtml is now configurable in config.php (new $_CONF['menu_elements'] variable).


Index: lib-custom.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-custom.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** lib-custom.php	6 Mar 2004 09:26:48 -0000	1.8
--- lib-custom.php	29 May 2004 15:46:56 -0000	1.9
***************
*** 313,315 ****
--- 313,343 ----
  */
  
+ /**
+ * This is an example of a function that returns menu entries to be used for
+ * the 'custom' entry in $_CONF['menu_elements'] (see config.php).
+ *
+ */
+ /*
+ function CUSTOM_menuEntries ()
+ {
+     global $_CONF, $_USER;
+ 
+     $myentries = array ();
+ 
+     // Sample link #1: Link to Gallery
+     $myentries[] = array ('url'   => $_CONF['site_url'] . '/gallery/',
+                           'label' => 'Gallery');
+ 
+     // Sample link #2: Link to the Personal Calendar - only visible for
+     // logged-in users
+     if (!empty ($_USER['uid']) && ($_USER['uid'] > 1)) {
+         $myentries[] = array ('url'   => $_CONF['site_url']
+                                          . '/calendar.php?mode=personal',
+                               'label' => 'My Calendar');
+     }
+ 
+     return $myentries;
+ }
+ */
+ 
  ?>




More information about the geeklog-cvs mailing list