Skip to content

Commit 26c799a

Browse files
committed
FIX: Code Syntax - title.php
1 parent 1035390 commit 26c799a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Template/header/title.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<h1 class="header-title">
22
<span class="logo">
3-
<?= $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')) ?>
3+
<?= $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')) ?>
44
</span>
55
<span class="title">
6-
<?php if (! empty($project) && ! empty($task)): ?>
6+
<?php if (!empty($project) && !empty($task)): ?>
77
<?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
88
<?php else: ?>
99
<?= $this->text->e($title) ?>
10-
<?php if (! empty($project) && $project['task_limit'] && array_key_exists('nb_active_tasks', $project)): ?>
10+
<?php if (!empty($project) && $project['task_limit'] && array_key_exists('nb_active_tasks', $project)): ?>
1111
(<span><?= intval($project['nb_active_tasks']) ?></span> / <span title="<?= t('Task Limit') ?>"><span class="ui-helper-hidden-accessible"><?= t('Task Limit') ?> </span><?= $this->text->e($project['task_limit']) ?></span>)
1212
<?php endif ?>
1313
<?php endif ?>
1414
</span>
15-
<?php if (! empty($description)): ?>
15+
<?php if (!empty($description)): ?>
1616
<?= $this->app->tooltipHTML($description) ?>
1717
<?php endif ?>
1818
</h1>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
<h1 class="header-title">
2-
<?php if (null !== $this->task->customizerFileModel->getByType(1)) : ?>
2+
<?php if (null !== $this->task->customizerFileModel->getByType(1)): ?>
33
<span class="logo">
44
<a href="<?= $this->url->href('DashboardController', 'show', array(), false, '', t('Dashboard')) ?>" title="<?= t('Dashboard') ?>">
55
<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') ?>">
66
</a>
77
</span>
88
<?php else: ?>
99
<span class="logo">
10-
<?= $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')) ?>
10+
<?= $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')) ?>
1111
</span>
1212
<?php endif ?>
1313
<span class="title">
14-
<?php if (! empty($project) && ! empty($task)): ?>
14+
<?php if (!empty($project) && !empty($task)): ?>
1515
<?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
1616
<?php else: ?>
1717
<?= $this->text->e($title) ?>
18-
<?php if (! empty($project) && $project['task_limit'] && array_key_exists('nb_active_tasks', $project)): ?>
18+
<?php if (!empty($project) && $project['task_limit'] && array_key_exists('nb_active_tasks', $project)): ?>
1919
(<span><?= intval($project['nb_active_tasks']) ?></span> / <span title="<?= t('Task Limit') ?>"><span class="ui-helper-hidden-accessible"><?= t('Task Limit') ?> </span><?= $this->text->e($project['task_limit']) ?></span>)
2020
<?php endif ?>
2121
<?php endif ?>
2222
</span>
23-
<?php if (! empty($description)): ?>
23+
<?php if (!empty($description)): ?>
2424
<?= $this->app->tooltipHTML($description) ?>
2525
<?php endif ?>
2626
</h1>

0 commit comments

Comments
 (0)