From a65693e5484f8c617bfc9f66d2877f8a88a7a1f2 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 26 Nov 2013 14:19:37 -0800 Subject: [PATCH] CRM-12337 - Navigation.tpl - Use icon for home --- CRM/Core/BAO/Navigation.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/CRM/Core/BAO/Navigation.php b/CRM/Core/BAO/Navigation.php index 361bef7f8a..0c7c4c4796 100644 --- a/CRM/Core/BAO/Navigation.php +++ b/CRM/Core/BAO/Navigation.php @@ -577,11 +577,12 @@ ORDER BY parent_id, weight"; //add additional navigation items $logoutURL = CRM_Utils_System::url('civicrm/logout', 'reset=1'); - $appendSring = "
  • " . ts('Logout') . "
  • "; + $appendString = "
  • " . ts('Logout') . "
  • "; // get home menu from db $homeParams = array('name' => 'Home'); $homeNav = array(); + $homeIcon = ''; self::retrieve($homeParams, $homeNav); if ($homeNav) { list($path, $q) = explode('&', $homeNav['url']); @@ -589,12 +590,12 @@ ORDER BY parent_id, weight"; $homeLabel = $homeNav['label']; // CRM-6804 (we need to special-case this as we don’t ts()-tag variables) if ($homeLabel == 'Home') { - $homeLabel = ts('Home'); + $homeLabel = ts('CiviCRM Home'); } } else { $homeURL = CRM_Utils_System::url('civicrm/dashboard', 'reset=1'); - $homeLabel = ts('Home'); + $homeLabel = ts('CiviCRM Home'); } if ( @@ -603,16 +604,16 @@ ORDER BY parent_id, weight"; module_exists('admin_menu') && user_access('access administration menu') ) ) { - $prepandString = "
  • " . $homeLabel . "
  • "; + $prepandString = "
  • " . $homeIcon . "
  • "; } elseif ($config->userSystem->is_wordpress) { - $prepandString = "
  • " . $homeLabel . "
  • "; + $prepandString = "
  • " . $homeIcon . "
  • "; } else { - $prepandString = "
  • " . $homeLabel . "
  • "; + $prepandString = "
  • " . $homeIcon . "
  • "; } - $navigation = $prepandString . $navigation . $appendSring; + $navigation = $prepandString . $navigation . $appendString; } return $navigation; } -- 2.25.1