New global copyright notice in footer and refine pages title
This commit is contained in:
parent
e95c8d8233
commit
77cacdc7c7
7 changed files with 24 additions and 19 deletions
|
@ -136,6 +136,14 @@ function zuitedesk_preprocess_page(&$vars, $hook) {
|
|||
// Remove pre-navigation links in header.
|
||||
$vars['head'] = preg_replace('/<link rel=\"(prev|up|next)\"[^>]*>\n/', '', $vars['head']);
|
||||
|
||||
// Refine title; suffix for public (U+00B0), authorised (U+207B) and private (U+00AA) nodes:
|
||||
if ($vars['head_title'] == 'SuiteDesk | SuiteDesk') {
|
||||
$vars['head_title'] = 'SuiteDesk';
|
||||
}
|
||||
else {
|
||||
$vars['head_title'] = str_replace(array('°', 'ª', '⁻'), '', $vars['head_title']);
|
||||
}
|
||||
|
||||
// We need to re-do the $layout and body classes because
|
||||
// template_preprocess_page() assumes sidebars are named 'left' and 'right'.
|
||||
if (!empty($vars['sidebar_main'])) {
|
||||
|
@ -151,7 +159,7 @@ function zuitedesk_preprocess_page(&$vars, $hook) {
|
|||
$pl = '';
|
||||
if ($vars['logged_in'] && !empty($deskmenu)) {
|
||||
// Home option:
|
||||
$pl .= _zuitedesk_option(TRUE, "$lang/", t('Desktop'), NULL, t('Workspace'));
|
||||
$pl .= _zuitedesk_option(TRUE, "$lang/", t('Home'), NULL, t('Workspace'));
|
||||
// Mission submenu:
|
||||
$submenu = '';
|
||||
$submenu .= _zuitedesk_option(!empty($_SESSION['SuiteCRM_Session_ID']), "$lang/suitecrm", 'SuiteCRM', 'crm', t('Core sales, customer service and marketing processes with SuiteCRM'));
|
||||
|
|
Reference in a new issue