[geeklog-cvs] Geeklog-1.x/public_html/admin configuration.php, 1.10, 1.11

Blaine Lang blaine at qs1489.pair.com
Sat Feb 2 16:56:29 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin
In directory qs1489.pair.com:/tmp/cvs-serv56603

Modified Files:
	configuration.php 
Log Message:
Modifications to config manager to not use a standard block function. Config Manager menu(s) are setup to be part of the configmanager template. The config menu block will use the theme's functions.php to get any block header and footer templates. By default we are using a new pair of templates that don't have a title to tighten up the layout.

Index: configuration.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/configuration.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** configuration.php	27 Jan 2008 09:02:15 -0000	1.10
--- configuration.php	2 Feb 2008 21:56:27 -0000	1.11
***************
*** 39,97 ****
  $config =& config::get_instance();
  
- 
- function configmanager_menu()
- {
-     global $_CONF, $config, $conf_group, $LANG01, $LANG_ADMIN, $LANG_CONFIG,
-            $LANG_configsections, $LANG_configsubgroups;
- 
-     $retval = COM_startBlock($LANG_CONFIG['sections'], '', 'blockheader.thtml');
-     $link_array = array();
- 
-     $groups = $config->_get_groups();
-     if (count($groups) > 0) {
-         foreach ($groups as $group) {
-             if (empty($LANG_configsections[$group]['label'])) {
-                 $group_display = ucwords($group);
-             } else {
-                 $group_display = $LANG_configsections[$group]['label'];
-             }
-             $link = "<div><a href=\"#\" onclick='open_group(\"$group\")'>$group_display</a></div>";
- 
-             if ($group == 'Core') {
-                 $retval .= $link;
-             } else {
-                 $link_array[$group_display] = $link;
-             }
-         }
-     }
- 
-     uksort($link_array, 'strcasecmp');
-     foreach ($link_array as $link) {
-         $retval .= $link;
-     }
- 
-     $retval .= '<div><a href="' . $_CONF['site_admin_url'] . '">'
-             . $LANG_ADMIN['admin_home'] . '</a></div>';
-     $retval .= COM_endBlock('blockfooter.thtml');
- 
-     if (empty($LANG_configsections[$conf_group]['title'])) {
-         $subgroup_title = ucwords($conf_group);
-     } else {
-         $subgroup_title = $LANG_configsections[$conf_group]['title'];
-     }
-     $retval .= COM_startBlock($subgroup_title, '', 'blockheader.thtml');
- 
-     $groups = $config->get_sgroups($conf_group);
-     if (count($groups) > 0) {
-         foreach ($groups as $group) {
-             $group_display =  $LANG_configsubgroups[$conf_group][$group];
-             $retval .= "<div><a href=\"#\" onclick='open_subgroup(\"$conf_group\",\"$group\")'>$group_display</a></div>";
-         }
-     }
-     $retval .= COM_endBlock('blockfooter.thtml');
- 
-     return $retval;
- }
- 
  /**
  * Helper function: Provide language dropdown
--- 39,42 ----




More information about the geeklog-cvs mailing list