[geeklog-cvs] Geeklog-1.x/public_html/admin/plugins/staticpages index.php, 1.86, 1.87

Oliver ospiess at qs1489.pair.com
Wed Aug 29 02:55:06 EDT 2007


Update of /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/staticpages
In directory qs1489.pair.com:/tmp/cvs-serv10093/plugins/staticpages

Modified Files:
	index.php 
Log Message:
de-cluttering the admin lists by outsourcing the top menu into a separate function. It has nothing to do with the list itself as such and can be used in other places now also to preserve formatting and move further HTML into a single template

Index: index.php
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/staticpages/index.php,v
retrieving revision 1.86
retrieving revision 1.87
diff -C2 -d -r1.86 -r1.87
*** index.php	9 Aug 2007 19:32:20 -0000	1.86
--- index.php	29 Aug 2007 06:55:04 -0000	1.87
***************
*** 394,409 ****
  
      $menu_arr = array (
!                     array('url' => $_CONF['site_admin_url'] . '/plugins/staticpages/index.php?mode=edit',
!                           'text' => $LANG_ADMIN['create_new']),
!                     array('url' => $_CONF['site_admin_url'],
!                           'text' => $LANG_ADMIN['admin_home'])
      );
  
!      $text_arr = array('has_menu' =>  true,
!                        'has_extras'   => true,
!                        'title' => $LANG_STATIC['staticpagelist'],
!                        'instructions' => $LANG_STATIC['instructions'],
!                        'icon' => plugin_geticon_staticpages(),
!                        'form_url' => $_CONF['site_admin_url'] . "/plugins/staticpages/index.php");
  
      $query_arr = array('table' => 'staticpage',
--- 394,409 ----
  
      $menu_arr = array (
!         array('url' => $_CONF['site_admin_url'] . '/plugins/staticpages/index.php?mode=edit',
!               'text' => $LANG_ADMIN['create_new']),
!         array('url' => $_CONF['site_admin_url'],
!               'text' => $LANG_ADMIN['admin_home'])
      );
+     $menu = ADMIN_createMenu($menu_arr, $LANG_STATIC['instructions'], plugin_geticon_staticpages());
  
!     $text_arr = array(
!         'has_extras'   => true,
!         'title' => $LANG_STATIC['staticpagelist'],
!         'form_url' => $_CONF['site_admin_url'] . "/plugins/staticpages/index.php"
!     );
  
      $query_arr = array('table' => 'staticpage',
***************
*** 414,418 ****
  
      $retval = ADMIN_list ("static_pages", "plugin_getListField_staticpages", $header_arr, $text_arr,
!                             $query_arr, $menu_arr, $defsort_arr);
      return $retval;
  
--- 414,418 ----
  
      $retval = ADMIN_list ("static_pages", "plugin_getListField_staticpages", $header_arr, $text_arr,
!                             $query_arr, $defsort_arr, $menu);
      return $retval;
  




More information about the geeklog-cvs mailing list