Text Formatted Code
// +---------------------------------------------------------------------------+
// | Menu Plugin 1.0 |
// +---------------------------------------------------------------------------+
// | functions.inc |
// | |
// | This file does two things: 1) it implements the necessary Geeklog Plugin |
// | API methods and 2) implements all the common code needed by this plugin. |
// +---------------------------------------------------------------------------+
// | Copyright (C) 2012 by the following authors: |
// | |
// | Authors: Ben - ben AT geeklog DOT fr |
// | |
// | Based on the original Sitetailor Plugin |
// | Copyright (C) 2008-2011 by the following authors: |
// | |
// | Mark R. Evans - mark AT glfusion DOT org |
// +---------------------------------------------------------------------------+
// | Created with the Geeklog Plugin Toolkit. |
// +---------------------------------------------------------------------------+
// | |
// | This program is free software; you can redistribute it and/or |
// | modify it under the terms of the GNU General Public License |
// | as published by the Free Software Foundation; either version 2 |
// | of the License, or (at your option) any later version. |
// | |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software Foundation, |
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
As for functionality, I can't see how anyone can be without it because altering the MENU is quick and easy after an initial installation and configuration.
Config allow to custom the menu as CUSTOM_menuEntries function (see system/lib-custom.php file)
Text Formatted Code
/**
* This is an example of a function that returns menu entries to be used for
* the 'custom' entry in $_CONF['menu_elements'] (see configuration).
*
*/
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/index.php?mode=personal',
'label' => 'My Calendar');
}
return $myentries;
}
I most heavily rely on the Sub-Menus and External-Links. IF this is all it did, I would still keep using it.