From 64ec4e6c67d0aa31bf4f5997e9b7b3d3cf5cd955 Mon Sep 17 00:00:00 2001
From: Julien Bidoret
Date: Sat, 19 Oct 2024 17:23:44 +0200
Subject: [PATCH 1/4] Switching templates logic style to if:else:endif and
foreach:endforeach (no re-indent)
---
app/view/templates/alertcommandnotfound.php | 4 ++--
app/view/templates/alertexistnot.php | 8 ++++----
app/view/templates/alertlayout.php | 8 ++++----
app/view/templates/alertnotpublished.php | 4 ++--
app/view/templates/alertprivate.php | 4 ++--
app/view/templates/backtopbar.php | 20 ++++++++++----------
app/view/templates/edit.php | 4 ++--
app/view/templates/editrightbar.php | 8 ++++----
app/view/templates/edittabs.php | 4 ++--
app/view/templates/homebookmark.php | 12 ++++++------
app/view/templates/macro_tablesort.php | 4 ++--
app/view/templates/userconfirmdelete.php | 12 +++---------
12 files changed, 43 insertions(+), 49 deletions(-)
diff --git a/app/view/templates/alertcommandnotfound.php b/app/view/templates/alertcommandnotfound.php
index 74309941..99e12be4 100644
--- a/app/view/templates/alertcommandnotfound.php
+++ b/app/view/templates/alertcommandnotfound.php
@@ -8,7 +8,7 @@
👁️ read page = $this->e($id) ?>
-isvisitor()) { ?>
+isvisitor()) : ?>
💡 You may want to try:
-
+
stop() ?>
diff --git a/app/view/templates/alertexistnot.php b/app/view/templates/alertexistnot.php
index f89d49e9..687b7c73 100644
--- a/app/view/templates/alertexistnot.php
+++ b/app/view/templates/alertexistnot.php
@@ -2,17 +2,17 @@
start('alert') ?>
-isvisitor() && Wcms\Config::existnotpass()) { ?>
+isvisitor() && Wcms\Config::existnotpass()) : ?>
insert('alertform', ['id' => $page->id()]) ?>
-
+
-iseditor()) { ?>
+iseditor()) : ?>
⭐ Create
@@ -26,7 +26,7 @@
🏠 Go back to home
-
+
diff --git a/app/view/templates/alertlayout.php b/app/view/templates/alertlayout.php
index c34fb797..4b0c3889 100644
--- a/app/view/templates/alertlayout.php
+++ b/app/view/templates/alertlayout.php
@@ -31,22 +31,22 @@
= !empty(Wcms\Config::alerttitle()) ? '' . Wcms\Config::alerttitle() . '
' : '' ?>
-
+
= $subtitle ?>
-
+
=$this->section('alert')?>
-
+
= empty(Wcms\Config::alertlinktext()) ? Wcms\Config::alertlink() : Wcms\Config::alertlinktext() ?>
-
+