OneExperienceKB/Template/layout/header/title.php
Michail Topaloudis 001c40d17a Initial Commit
2021-05-26 09:34:24 +01:00

24 lines
1.1 KiB
PHP

<?php global $themeOneExperienceKBConfig; ?>
<span class="logo">
<?php if (!isset($themeOneExperienceKBConfig['logo'])) : ?>
<?= $this->url->link('K<span>B</span>', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?>
<?php else: ?>
<?= $this->url->link('<img src="'.$themeOneExperienceKBConfig['logo'].'" style="float: left;max-height: 40px;margin-top: -7px;margin-right: 10px;" />', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?>
<?php endif ?>
</span>
<?php if (!isset($themeOneExperienceKBConfig['HeadingTitleColor'])) : ?>
<h1>
<?php else: ?>
<h1 style="color:<?= $themeOneExperienceKBConfig['HeadingTitleColor'] ?>">
<?php endif ?>
<span class="title">
<?php if (! empty($project) && ! empty($task)): ?>
<?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
<?php else: ?>
<?= $this->text->e($title) ?>
<?php endif ?>
</span>
<?php if (! empty($description)): ?>
<?= $this->app->tooltipHTML($description) ?>
<?php endif ?>
</h1>