Skip to content

Commit 9c7e3ff

Browse files
committed
chore: remove short tags
1 parent 148f292 commit 9c7e3ff

7 files changed

Lines changed: 19 additions & 19 deletions

File tree

templates/Admin/Articles/add.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="navbar-collapse" id="navbarSupportedContent">
1010
<ul class="navbar-nav ml-auto">
1111
<li class="nav-item">
12-
<? // $this->Html->link('<i class="material-icons">list</i> '.__('List'),['action'=>'index'], ['class' => '','escape'=>false]) ?>
12+
<?php // $this->Html->link('<i class="material-icons">list</i> '.__('List'),['action'=>'index'], ['class' => '','escape'=>false]) ?>
1313
</li>
1414
</ul>
1515
</div>

templates/Admin/Articles/edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="navbar-collapse" id="navbarSupportedContent">
1010
<ul class="navbar-nav ml-auto">
1111
<li class="nav-item">
12-
<? // $this->Html->link('<i class="material-icons">list</i> '.__('List'),['action'=>'index'], ['class' => '','escape'=>false]) ?>
12+
<?php // $this->Html->link('<i class="material-icons">list</i> '.__('List'),['action'=>'index'], ['class' => '','escape'=>false]) ?>
1313
</li>
1414
</ul>
1515
</div>

templates/Admin/element/pagesList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?
1+
<?php
22
$this->Html->css([
33
'pages/main.min.css?v='.md5_file(APP.'../webroot/css/pages/main.min.css')
44
],['block' => 'css']);

templates/Pages/view.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<?
1+
<?php
22
use Cake\Core\Configure;
33
?>
44
<div ref="page-<?= $page->id ?>">
55

6-
<? if($this->request->session()->read('Auth.User.id')): ?>
6+
<?php if($this->request->session()->read('Auth.User.id')): ?>
77

88
<!-- FRONT EDIT FUTUR -->
9-
<? /*
9+
<?php /*
1010
$this->append('template', $this->element('Trois/Pages.Component/page-input'));
1111
$this->append('template', $this->element('Trois/Pages.Component/page-section'));
1212
$this->append('template', $this->element('Trois/Pages.Component/page-sections-handler'));
@@ -25,9 +25,9 @@
2525
?>
2626

2727
<!-- vuejs sections -->
28-
<? foreach($page->sections as $key => $section): ?>
28+
<?php foreach($page->sections as $key => $section): ?>
2929
<!--<page-section :ref="'section-'+<?= $section->id ?>" :id="<?= $section->id ?>" :i="<?= $key ?>"></page-section>-->
30-
<? endforeach ?>
30+
<?php endforeach ?>
3131

3232
<!-- section handler HTML -->
3333
<!-- <page-sections-handler></page-sections-handler>-->
@@ -36,14 +36,14 @@
3636
<!-- <page-articles-handler :languages="<?= htmlspecialchars(json_encode(Configure::read('I18n.languages')), ENT_QUOTES, 'UTF-8') ?>" :default-locale="'<?= Configure::read('App.defaultLocale') ?>'"></page-articles-handler>-->
3737

3838

39-
<? else: ?>
39+
<?php else: ?>
4040

4141
<!-- hard sections -->
42-
<? foreach($page->sections as $key => $section): ?>
43-
<? $sectionType = $section->section_type->slug ?>
42+
<?php foreach($page->sections as $key => $section): ?>
43+
<?php $sectionType = $section->section_type->slug ?>
4444
<?= $this->element('Sections/section-'.$sectionType, ['section' => $section, 'lng' => $lng, 'key' => $key]) ?>
45-
<? endforeach ?>
45+
<?php endforeach ?>
4646

47-
<? endif; ?>
47+
<?php endif; ?>
4848

4949
</div>

templates/element/Sections/section-default.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<div class="container">
33
<div class="row">
44
<div class="col-12 col-md-11 col-lg-10 col-lg-8 mx-auto">
5-
<? foreach($section->articles as $block): ?>
5+
<?php foreach($section->articles as $block): ?>
66
<?= $this->element('Blocks/block-'.$block->article_type->slug, ['block' => $block, 'lng' => $lng]) ?>
7-
<? endforeach ?>
7+
<?php endforeach ?>
88
</div>
99
</div>
1010
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<? if($this->request->session()->read('Auth.User.id')): ?>
1+
<?php if($this->request->session()->read('Auth.User.id')): ?>
22
<div class="btn-group" role="group" aria-label="Basic example">
33
<button type="button" class="btn btn-secondary" onclick="window.mainEventHub.emit('page','article-edit', <?= $id ?>)" ><?= __d('Trois/Pages','Edit artcile') ?></button>
44
<button type="button" class="btn btn-secondary" onclick="window.mainEventHub.emit('page','article-add', <?= $id ?>)">Article Middle</button>
55
<button type="button" class="btn btn-secondary" onclick="window.mainEventHub.emit('page','article-add', <?= $id ?>)">Article Right</button>
66
</div>
7-
<? endif; ?>
7+
<?php endif; ?>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<? if($this->request->session()->read('Auth.User.id')): ?>
1+
<?php if($this->request->session()->read('Auth.User.id')): ?>
22
<div class="btn-group" role="group" aria-label="Basic example">
33
<button type="button" class="btn btn-secondary" onclick="window.mainEventHub.emit('page','section-refresh', <?= $id ?>)" >Section Left</button>
44
<button type="button" class="btn btn-secondary" onclick="window.mainEventHub.emit('page','section-add', <?= $id ?>)">Section Middle</button>
55
<button type="button" class="btn btn-secondary" onclick="window.mainEventHub.emit('page','section-add', <?= $id ?>)">Section Right</button>
66
</div>
7-
<? endif; ?>
7+
<?php endif; ?>

0 commit comments

Comments
 (0)