Skip to content

Commit

Permalink
FIX: Code Syntax - title.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed May 19, 2023
1 parent 1035390 commit 26c799a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Template/header/title.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<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')) ?>
<?= $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>
<span class="title">
<?php if (! empty($project) && ! empty($task)): ?>
<?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 if (! empty($project) && $project['task_limit'] && array_key_exists('nb_active_tasks', $project)): ?>
<?php if (!empty($project) && $project['task_limit'] && array_key_exists('nb_active_tasks', $project)): ?>
(<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>)
<?php endif ?>
<?php endif ?>
</span>
<?php if (! empty($description)): ?>
<?php if (!empty($description)): ?>
<?= $this->app->tooltipHTML($description) ?>
<?php endif ?>
</h1>
10 changes: 5 additions & 5 deletions Template/header/title_customizer.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<h1 class="header-title">
<?php if (null !== $this->task->customizerFileModel->getByType(1)) : ?>
<?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')) ?>
<?= $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)): ?>
<?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 if (! empty($project) && $project['task_limit'] && array_key_exists('nb_active_tasks', $project)): ?>
<?php if (!empty($project) && $project['task_limit'] && array_key_exists('nb_active_tasks', $project)): ?>
(<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>)
<?php endif ?>
<?php endif ?>
</span>
<?php if (! empty($description)): ?>
<?php if (!empty($description)): ?>
<?= $this->app->tooltipHTML($description) ?>
<?php endif ?>
</h1>

0 comments on commit 26c799a

Please sign in to comment.