Skip to content

Commit

Permalink
Customizer Compatibility
Browse files Browse the repository at this point in the history
- Add site logo
- WIP #4
- Relates to creecros/Customizer#141
  • Loading branch information
aljawaid committed Feb 5, 2023
1 parent 98bfca2 commit b051919
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Template/header/title_customizer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<h1 class="header-title">
<span class="logo">
<?= $this->url->link('<img src="' . $this->url->dir() . 'plugins/ApplicationBranding/Assets/img/workspace-icon-500x500.png" width="40px" style="vertical-align: middle;" alt="' . t('Workspace logo') .'">', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?>
</span>
<?php if (null !== $this->task->customizerFileModel->getByType(1)) : ?>
<span class="logo">
<a href="<?= $this->url->href('DashboardController', 'show', array(), false, '', t('Dashboard')) ?>" title="<?= t('Dashboard') ?>">
<img src="<?= $this->url->href('CustomizerFileController', 'image', array('plugin' => 'customizer', 'file_id' => $this->task->customizerFileModel->getIdByType(1))) ?>" height="<?= $this->task->configModel->get('headerlogo_size', '30') ?>">
</a>
</span>
<?php else: ?>
<span class="logo">
<?= $this->url->link('<img src="' . $this->url->dir() . 'plugins/ApplicationBranding/Assets/img/workspace-icon-500x500.png" width="40px" style="vertical-align: middle;" alt="' . t('Workspace logo') .'">', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?>
</span>
<?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'])) ?>
Expand Down

0 comments on commit b051919

Please sign in to comment.