From 6b5ca1eacf768cedeaa13d7f65b9457de198c52a Mon Sep 17 00:00:00 2001 From: mark burdett Date: Fri, 2 May 2014 18:32:13 -0700 Subject: [PATCH] add a few more submenus --- CRM/Contribute/Info.php | 25 +++++++++++++------------ CRM/Event/Info.php | 25 +++++++++++++------------ CRM/Member/Info.php | 25 +++++++++++++------------ css/civicrm.css | 6 +++--- 4 files changed, 42 insertions(+), 39 deletions(-) diff --git a/CRM/Contribute/Info.php b/CRM/Contribute/Info.php index e23b3eb3ef..f2b2cf6e64 100644 --- a/CRM/Contribute/Info.php +++ b/CRM/Contribute/Info.php @@ -103,21 +103,22 @@ class CRM_Contribute_Info extends CRM_Core_Component_Info { if (CRM_Core_Permission::check('access CiviContribute') && CRM_Core_Permission::check('edit contributions') ) { - $shortCuts = array_merge($shortCuts, array( - array('path' => 'civicrm/contribute/add', - 'query' => "reset=1&action=add&context=standalone", - 'ref' => 'new-contribution', - 'title' => ts('Contribution'), - ))); + $shortCut[] = array( + 'path' => 'civicrm/contribute/add', + 'query' => "reset=1&action=add&context=standalone", + 'ref' => 'new-contribution', + 'title' => ts('Contribution'), + ); if ($newCredit) { $title = ts('Contribution') . '
  (' . ts('credit card') . ')'; - $shortCuts = array_merge($shortCuts, array( - array('path' => 'civicrm/contribute/add', - 'query' => "reset=1&action=add&context=standalone&mode=live", - 'ref' => 'new-contribution-cc', - 'title' => $title, - ))); + $shortCut[0]['shortCuts'][] = array( + 'path' => 'civicrm/contribute/add', + 'query' => "reset=1&action=add&context=standalone&mode=live", + 'ref' => 'new-contribution-cc', + 'title' => $title, + ); } + $shortCuts = array_merge($shortCuts, $shortCut); } } } diff --git a/CRM/Event/Info.php b/CRM/Event/Info.php index 57c8d68281..ac38639c02 100644 --- a/CRM/Event/Info.php +++ b/CRM/Event/Info.php @@ -109,21 +109,22 @@ class CRM_Event_Info extends CRM_Core_Component_Info { if (CRM_Core_Permission::check('access CiviEvent') && CRM_Core_Permission::check('edit event participants') ) { - $shortCuts = array_merge($shortCuts, array( - array('path' => 'civicrm/participant/add', - 'query' => "reset=1&action=add&context=standalone", - 'ref' => 'new-participant', - 'title' => ts('Event Registration'), - ))); + $shortCut[] = array( + 'path' => 'civicrm/participant/add', + 'query' => "reset=1&action=add&context=standalone", + 'ref' => 'new-participant', + 'title' => ts('Event Registration'), + ); if ($newCredit) { $title = ts('Event Registration') . '
  (' . ts('credit card') . ')'; - $shortCuts = array_merge($shortCuts, array( - array('path' => 'civicrm/participant/add', - 'query' => "reset=1&action=add&context=standalone&mode=live", - 'ref' => 'new-participant-cc', - 'title' => $title, - ))); + $shortCut[0]['shortCuts'][] = array( + 'path' => 'civicrm/participant/add', + 'query' => "reset=1&action=add&context=standalone&mode=live", + 'ref' => 'new-participant-cc', + 'title' => $title, + ); } + $shortCuts = array_merge($shortCuts, $shortCut); } } } diff --git a/CRM/Member/Info.php b/CRM/Member/Info.php index 8f16f0433f..c1136435d0 100644 --- a/CRM/Member/Info.php +++ b/CRM/Member/Info.php @@ -98,21 +98,22 @@ class CRM_Member_Info extends CRM_Core_Component_Info { if (CRM_Core_Permission::check('access CiviMember') && CRM_Core_Permission::check('edit memberships') ) { - $shortCuts = array_merge($shortCuts, array( - array('path' => 'civicrm/member/add', - 'query' => "reset=1&action=add&context=standalone", - 'ref' => 'new-membership', - 'title' => ts('Membership'), - ))); + $shortCut[] = array( + 'path' => 'civicrm/member/add', + 'query' => "reset=1&action=add&context=standalone", + 'ref' => 'new-membership', + 'title' => ts('Membership'), + ); if ($newCredit) { $title = ts('Membership') . '
  (' . ts('credit card') . ')'; - $shortCuts = array_merge($shortCuts, array( - array('path' => 'civicrm/member/add', - 'query' => "reset=1&action=add&context=standalone&mode=live", - 'ref' => 'new-membership-cc', - 'title' => $title, - ))); + $shortCut[0]['shortCuts'][] = array( + 'path' => 'civicrm/member/add', + 'query' => "reset=1&action=add&context=standalone&mode=live", + 'ref' => 'new-membership-cc', + 'title' => $title, + ); } + $shortCuts = array_merge($shortCuts, $shortCut); } } } diff --git a/css/civicrm.css b/css/civicrm.css index 53ed9afec5..776bb04e10 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -2426,7 +2426,7 @@ div.grippie { } #crm-create-new-list { - width: 180px; + width: 160px; } #crm-contact-actions-list .icon { background-image: url("../i/icons/jquery-ui-FFFFFF.png"); @@ -3759,8 +3759,8 @@ div.m ul#civicrm-menu, padding: 4px; } -.crm-create-new-list-inner { - width: 180px!important; +.crm-create-new-list-inner, .crm-create-new-list-inner ul { + width: 160px!important; } .ac_even { -- 2.25.1