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', 'theme' => 'storm_dashboard_link',
'title' => t('Desktop'), 'title' => t('Desktop'),
'icon' => 'stormoptions', 'icon' => 'stormoptions',
'path' => '/user', 'path' => '/',
'access_arguments' => 'access content', 'access_arguments' => 'access content',
'weight' => -10, 'weight' => -10,
); );

View file

@ -151,7 +151,7 @@ function zuitedesk_preprocess_page(&$vars, $hook) {
$pl = ''; $pl = '';
if ($vars['logged_in'] && !empty($deskmenu)) { if ($vars['logged_in'] && !empty($deskmenu)) {
// Home option: // 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: // Mission submenu:
$submenu = ''; $submenu = '';
$submenu .= _zuitedesk_option($deskmenu[4], "$lang/tasks/kanban", t('Tasks Kanban'), 'kanban', t('Kanban board view for your tasks')); $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); $pl .= _zuitedesk_submenu($submenu, $user_name);
} }
else { 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>'; $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 endif; ?>
<?php print $scripts; ?> <?php print $scripts; ?>
<!--[if lt IE 9]> <!--[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/respond.min.js"></script>
<script src="<?php print $base_path . $directory; ?>/js/html5shiv.min.js"></script> <script src="<?php print $base_path . $directory; ?>/js/html5shiv.min.js"></script>
<![endif]--> <![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>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </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>
<div id="navbar-main" class="collapse navbar-collapse"> <div id="navbar-main" class="collapse navbar-collapse">
<?php print $primary_links; ?> <?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> <h2><?php print t('Welcome to SuiteDesk'); ?></h2>
<h4><?php print t('Collaboration & Planning Tool'); ?></h4> <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> <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"> <div class="da-img">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Slider01.png" alt="<?php print t('Welcome to SuiteDesk'); ?>" width="320" /> <img src="<?php print $base_path . $directory; ?>/images/frontpage/Slider01.png" alt="<?php print t('Welcome to SuiteDesk'); ?>" width="320" />
</div> </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>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </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>
<div id="navbar-main" class="collapse navbar-collapse"> <div id="navbar-main" class="collapse navbar-collapse">
<?php print $primary_links; ?> <?php print $primary_links; ?>