Remove dashboard as front page, it's changed to be the user page

This commit is contained in:
Manuel Cillero 2017-07-28 21:55:52 +02:00
parent 49a07d9125
commit 16fd7c8dc1
4 changed files with 7 additions and 6 deletions

View file

@ -1087,7 +1087,7 @@ function storm_storm_dashboard_links($type) {
'theme' => 'storm_dashboard_link',
'title' => t('Desktop'),
'icon' => 'stormoptions',
'path' => '/user',
'path' => '/',
'access_arguments' => 'access content',
'weight' => -10,
);

View file

@ -151,7 +151,7 @@ function zuitedesk_preprocess_page(&$vars, $hook) {
$pl = '';
if ($vars['logged_in'] && !empty($deskmenu)) {
// Home option:
$pl .= _zuitedesk_option(TRUE, "$lang/user", t('Desktop'), NULL, t('Workspace'));
$pl .= _zuitedesk_option(TRUE, "$lang/", t('Desktop'), NULL, t('Workspace'));
// Mission submenu:
$submenu = '';
$submenu .= _zuitedesk_option($deskmenu[4], "$lang/tasks/kanban", t('Tasks Kanban'), 'kanban', t('Kanban board view for your tasks'));
@ -202,7 +202,7 @@ function zuitedesk_preprocess_page(&$vars, $hook) {
$pl .= _zuitedesk_submenu($submenu, $user_name);
}
else {
$pl = _zuitedesk_option(TRUE, "$lang/user", t('Login') . ' <span class="icon-login"></span>', NULL, t('New session for authenticated users'));
$pl = _zuitedesk_option(TRUE, "$lang/user/login", t('Login') . ' <span class="icon-login"></span>', NULL, t('New session for authenticated users'));
}
$vars['primary_links'] = '<h2 class="element-invisible">' . t('Main menu') . '</h2>';

View file

@ -33,6 +33,7 @@ if ($site_name) print '<meta property="og:site_name" content="'. $site_name ."\"
<?php endif; ?>
<?php print $scripts; ?>
<!--[if lt IE 9]>
<link type="text/css" rel="stylesheet" media="all" href="<?php print $base_path . $directory; ?>/css/ie8.css" />
<script src="<?php print $base_path . $directory; ?>/js/respond.min.js"></script>
<script src="<?php print $base_path . $directory; ?>/js/html5shiv.min.js"></script>
<![endif]-->
@ -76,7 +77,7 @@ if ($site_name) print '<meta property="og:site_name" content="'. $site_name ."\"
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="<?php print $base_url . ($language->language != 'es' ? '/' . $language->language : '') . (user_is_logged_in() ? '/user' : ''); ?>" title="<?php print t('SuiteDesk homepage'); ?>" class="logo"><?php print '<img src="' . $base_path . $directory . '/images/suitedesk.png" alt="manuel.cillero.es" />'; ?></a>
<a href="<?php print $language->language != 'es' ? "$base_url/$language->language" : $base_url; ?>" title="<?php print t('SuiteDesk homepage'); ?>" class="logo"><?php print '<img src="' . $base_path . $directory . '/images/suitedesk.png" alt="manuel.cillero.es" />'; ?></a>
</div>
<div id="navbar-main" class="collapse navbar-collapse">
<?php print $primary_links; ?>
@ -101,7 +102,7 @@ if ($site_name) print '<meta property="og:site_name" content="'. $site_name ."\"
<h2><?php print t('Welcome to SuiteDesk'); ?></h2>
<h4><?php print t('Collaboration & Planning Tool'); ?></h4>
<p><?php print t('!suitedesk is my own web based app for planning, knowledge sharing, clients support, collaboration and personal productivity, with both powerful and simplicity in mind.', array('!suitedesk' => '<strong>SuiteDesk</strong>')); ?></p>
<a href="/user" class="da-link button"><?php print t('Log in'); ?></a>
<a href="user/login" class="da-link button"><?php print t('Log in'); ?></a>
<div class="da-img">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Slider01.png" alt="<?php print t('Welcome to SuiteDesk'); ?>" width="320" />
</div>

View file

@ -173,7 +173,7 @@ if ($site_name) print '<meta property="og:site_name" content="'. $site_name ."\"
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="<?php print $base_url . ($language->language != 'es' ? '/' . $language->language : '') . (user_is_logged_in() ? '/user' : ''); ?>" title="<?php print t('SuiteDesk homepage'); ?>" class="logo"><?php print '<img src="' . $base_path . $directory . '/images/suitedesk.png" alt="manuel.cillero.es" />'; ?></a>
<a href="<?php print $language->language != 'es' ? "$base_url/$language->language" : $base_url; ?>" title="<?php print t('SuiteDesk homepage'); ?>" class="logo"><?php print '<img src="' . $base_path . $directory . '/images/suitedesk.png" alt="manuel.cillero.es" />'; ?></a>
</div>
<div id="navbar-main" class="collapse navbar-collapse">
<?php print $primary_links; ?>