[geeklog-cvs] Geeklog-1.x/public_html/admin/plugins/polls index.php, 1.45, 1.46
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/polls
In directory qs1489.pair.com:/tmp/cvs-serv10093/plugins/polls
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/polls/index.php,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** index.php 20 Aug 2007 09:29:06 -0000 1.45
--- index.php 29 Aug 2007 06:55:04 -0000 1.46
***************
*** 82,92 ****
$menu_arr = array (
! array('url' => $_CONF['site_admin_url'] . '/plugins/polls/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' => $LANG25[18], 'instructions' => $LANG25[19],
'icon' => plugin_geticon_polls(),
--- 82,96 ----
$menu_arr = array (
! array('url' => $_CONF['site_admin_url'] . '/plugins/polls/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,
! $LANG25[19],
! plugin_geticon_polls()
! );
! $text_arr = array('has_extras' => true,
'title' => $LANG25[18], 'instructions' => $LANG25[19],
'icon' => plugin_geticon_polls(),
***************
*** 99,103 ****
$retval = ADMIN_list ('polls', 'plugin_getListField_polls', $header_arr,
! $text_arr, $query_arr, $menu_arr, $defsort_arr);
return $retval;
--- 103,107 ----
$retval = ADMIN_list ('polls', 'plugin_getListField_polls', $header_arr,
! $text_arr, $query_arr, $defsort_arr, $menu);
return $retval;
More information about the geeklog-cvs
mailing list