Skip to content

Commit 0cc2d84

Browse files
committed
FIX: Code Syntax - layout.php
1 parent 26c799a commit 0cc2d84

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

Template/layout.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<?= $this->asset->css('assets/css/print.min.css', true, 'print') ?>
1919
<?= $this->asset->customCss() ?>
2020

21-
<?php if (! isset($not_editable)): ?>
21+
<?php if (!isset($not_editable)): ?>
2222
<?= $this->asset->js('assets/js/vendor.min.js') ?>
2323
<?= $this->asset->js('assets/js/app.min.js') ?>
2424
<?php endif ?>
@@ -54,14 +54,14 @@
5454
<link rel="manifest" href="<?= $this->url->dir() ?>plugins/ApplicationBranding/Assets/img/favicon/site.webmanifest">
5555
<link rel="mask-icon" href="<?= $this->url->dir() ?>plugins/ApplicationBranding/Assets/img/favicon/safari-pinned-tab.svg" color="#5BBAD5">
5656
<?php
57-
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
57+
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
5858
$url = "https://";
5959
else
6060
$url = "http://";
6161
// Append the host(domain name, ip) to the URL.
62-
$url.= $_SERVER['HTTP_HOST'];
62+
$url .= $_SERVER['HTTP_HOST'];
6363
// Append the requested resource location to the URL
64-
$url.= $_SERVER['REQUEST_URI'];
64+
$url .= $_SERVER['REQUEST_URI'];
6565
?>
6666
<meta property="og:url" content="<?php echo $url ?>">
6767
<?php // og:image must be min 300x300px with 'https' and absolute url to png file ?>
@@ -76,7 +76,7 @@
7676
$outgoingAction = $this->app->getRouterAction();
7777
?>
7878

79-
<?php if (($incomingController == 'PasswordResetController') && ($outgoingAction =='create')): ?>
79+
<?php if (($incomingController == 'PasswordResetController') && ($outgoingAction == 'create')): ?>
8080
<meta name="description" content="<?= t('Change your password for this kanban platform.') ?>">
8181
<meta property="og:description" content="<?= t('Change your password for this kanban platform.') ?>">
8282
<?php else: ?>
@@ -96,7 +96,7 @@
9696
<?php else: ?>
9797
<meta property="og:title" content="<?= $this->text->e($title) ?> | <?= t('My Workspace') ?>">
9898
<?php endif ?>
99-
<?php elseif (($incomingController == 'PasswordResetController') && ($outgoingAction =='create')): ?>
99+
<?php elseif (($incomingController == 'PasswordResetController') && ($outgoingAction == 'create')): ?>
100100
<?php if (!empty($this->task->configModel->get('app_rename'))): ?>
101101
<meta property="og:title" content="<?= t('Reset Password') ?> | <?= $this->task->configModel->get('app_rename') ?>">
102102
<?php else: ?>
@@ -127,7 +127,7 @@
127127
| <?= t('My Workspace') ?>
128128
<?php endif ?>
129129

130-
<?php elseif (($incomingController == 'PasswordResetController') && ($outgoingAction =='create')): ?>
130+
<?php elseif (($incomingController == 'PasswordResetController') && ($outgoingAction == 'create')): ?>
131131
<?php if (!empty($this->task->configModel->get('app_rename'))): ?>
132132
<?= t('Reset Password') ?> | <?= $this->task->configModel->get('app_rename') ?>
133133
<?php else: ?>

Template/layout_customizer.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
<?= $this->asset->css('assets/css/print.min.css', true, 'print') ?>
1919
<?= $this->asset->customCss() ?>
2020

21-
<?php if (! isset($not_editable)): ?>
21+
<?php if (!isset($not_editable)): ?>
2222
<?= $this->asset->js('assets/js/vendor.min.js') ?>
2323
<?= $this->asset->js('assets/js/app.min.js') ?>
2424
<?php endif ?>
2525

2626
<?= $this->hook->asset('css', 'template:layout:css') ?>
2727
<?= $this->hook->asset('js', 'template:layout:js') ?>
2828

29-
<?php if (null !== $this->task->customizerFileModel->getByType(2)) : ?>
29+
<?php if (null !== $this->task->customizerFileModel->getByType(2)): ?>
3030
<link rel="icon" type="image/png" href="<?= $this->url->href('CustomizerFileController', 'image', array('plugin' => 'customizer', 'file_id' => $this->task->customizerFileModel->getIdByType(2))) ?>">
3131
<link rel="apple-touch-icon" sizes="57x57" href="<?= $this->url->href('CustomizerFileController', 'image', array('plugin' => 'customizer', 'file_id' => $this->task->customizerFileModel->getIdByType(2))) ?>">
3232
<link rel="apple-touch-icon" sizes="60x60" href="<?= $this->url->href('CustomizerFileController', 'image', array('plugin' => 'customizer', 'file_id' => $this->task->customizerFileModel->getIdByType(2))) ?>">
@@ -82,17 +82,17 @@
8282
<link rel="mask-icon" href="<?= $this->url->dir() ?>plugins/ApplicationBranding/Assets/img/favicon/safari-pinned-tab.svg" color="#5BBAD5">
8383
<?php endif ?>
8484
<?php
85-
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
86-
$url = "https://";
87-
else
88-
$url = "http://";
85+
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
86+
$url = "https://";
87+
else
88+
$url = "http://";
8989
// Append the host(domain name, ip) to the URL.
90-
$url.= $_SERVER['HTTP_HOST'];
90+
$url. = $_SERVER['HTTP_HOST'];
9191
// Append the requested resource location to the URL
92-
$url.= $_SERVER['REQUEST_URI'];
92+
$url. = $_SERVER['REQUEST_URI'];
9393
?>
9494
<meta property="og:url" content="<?php echo $url ?>">
95-
<?php if (null !== $this->task->customizerFileModel->getByType(2)) : ?>
95+
<?php if (null !== $this->task->customizerFileModel->getByType(2)): ?>
9696
<?php // og:image must be min 300x300px with 'https' and absolute url to png file ?>
9797
<meta property="og:image" content="<?= $this->url->href('CustomizerFileController', 'image', array('plugin' => 'customizer', 'file_id' => $this->task->customizerFileModel->getIdByType(2))) ?>">
9898
<?php else: ?>
@@ -109,7 +109,7 @@
109109
$outgoingAction = $this->app->getRouterAction();
110110
?>
111111

112-
<?php if (($incomingController == 'PasswordResetController') && ($outgoingAction =='create')): ?>
112+
<?php if (($incomingController == 'PasswordResetController') && ($outgoingAction == 'create')): ?>
113113
<meta name="description" content="<?= t('Change your password for this kanban platform.') ?>">
114114
<meta property="og:description" content="<?= t('Change your password for this kanban platform.') ?>">
115115
<?php else: ?>
@@ -129,7 +129,7 @@
129129
<?php else: ?>
130130
<meta property="og:title" content="<?= $this->text->e($title) ?> | <?= t('My Workspace') ?>">
131131
<?php endif ?>
132-
<?php elseif (($incomingController == 'PasswordResetController') && ($outgoingAction =='create')): ?>
132+
<?php elseif (($incomingController == 'PasswordResetController') && ($outgoingAction == 'create')): ?>
133133
<?php if (!empty($this->task->configModel->get('app_rename'))): ?>
134134
<meta property="og:title" content="<?= t('Reset Password') ?> | <?= $this->task->configModel->get('app_rename') ?>">
135135
<?php else: ?>
@@ -160,7 +160,7 @@
160160
| <?= t('My Workspace') ?>
161161
<?php endif ?>
162162

163-
<?php elseif (($incomingController == 'PasswordResetController') && ($outgoingAction =='create')): ?>
163+
<?php elseif (($incomingController == 'PasswordResetController') && ($outgoingAction == 'create')): ?>
164164
<?php if (!empty($this->task->configModel->get('app_rename'))): ?>
165165
<?= t('Reset Password') ?> | <?= $this->task->configModel->get('app_rename') ?>
166166
<?php else: ?>

0 commit comments

Comments
 (0)