From e802d5204b96d645ec3d40b81b4a8bdc6e0ee675 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 4 Nov 2019 23:31:31 +0100 Subject: refactor: switch to psr-4 autoloading --- app/view/templates/admin.php | 58 +++++++++++++++++++------------------- app/view/templates/alert.php | 26 ++++++++--------- app/view/templates/backtopbar.php | 14 ++++----- app/view/templates/edit.php | 4 +-- app/view/templates/editleftbar.php | 2 +- app/view/templates/edittopbar.php | 6 ++-- app/view/templates/home.php | 12 ++++---- app/view/templates/homemenu.php | 6 ++-- app/view/templates/layout.php | 10 +++---- app/view/templates/media.php | 4 +-- 10 files changed, 71 insertions(+), 71 deletions(-) (limited to 'app/view') diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php index 46e5045..d8255ba 100644 --- a/app/view/templates/admin.php +++ b/app/view/templates/admin.php @@ -29,27 +29,27 @@

Here you can set the home-page view for visitors.

- > + >
- > + >
- > + >
- - - + + + @@ -78,20 +78,20 @@ - + @@ -107,23 +107,23 @@

Common options

- + - + @@ -131,33 +131,33 @@ This will also be shown as a tooltip over links. - +
- > + >

Private

- +
- > + >

Not published

- +
- > + >
@@ -165,7 +165,7 @@
- > + >
@@ -183,7 +183,7 @@
- > + >
@@ -192,13 +192,13 @@
- > + >
- > + >
@@ -224,7 +224,7 @@ - + @@ -249,7 +249,7 @@ - + @@ -266,7 +266,7 @@

Tracking

- + (Need rendering to work) diff --git a/app/view/templates/alert.php b/app/view/templates/alert.php index c4a54b1..bab6410 100644 --- a/app/view/templates/alert.php +++ b/app/view/templates/alert.php @@ -7,7 +7,7 @@ $this->start('head'); ?> - ' : '' ?> + ' : '' ?> @@ -28,7 +28,7 @@ $this->stop(); - ' . Config::alerttitle() . '' : '' ?> + ' . Wcms\Config::alerttitle() . '' : '' ?> stop(); if(!$pageexist) { - if(!empty(Config::existnot())) { - echo '

' . Config::existnot() . '

'; + if(!empty(Wcms\Config::existnot())) { + echo '

' . Wcms\Config::existnot() . '

'; } - if(Config::existnotpass() && !$canedit) { + if(Wcms\Config::existnotpass() && !$canedit) { echo $form; } } else { @@ -55,19 +55,19 @@ $this->stop(); switch ($page->secure()) { case 1: - if(!empty(Config::private())) { - echo '

' . Config::private() . '

'; + if(!empty(Wcms\Config::private())) { + echo '

' . Wcms\Config::private() . '

'; } - if(Config::privatepass()) { + if(Wcms\Config::privatepass()) { echo $form; } break; case 2: - if(!empty(Config::notpublished())) { - echo '

' . Config::notpublished() . '

'; + if(!empty(Wcms\Config::notpublished())) { + echo '

' . Wcms\Config::notpublished() . '

'; } - if(Config::notpublishedpass()) { + if(Wcms\Config::notpublishedpass()) { echo $form; } break; @@ -80,9 +80,9 @@ $this->stop(); ?>

⭐ Create

-

+

> - + home > - + media > - + font isadmin()) { ?> > - + admin @@ -46,7 +46,7 @@ if($user->isadmin()) { } ?> > - + info @@ -75,11 +75,11 @@ if($user->isadmin()) { > - + timeline > - + id() ?> level() ?> diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index 28e245f..2de0c9b 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -5,7 +5,7 @@ start('page') ?> - +
@@ -30,7 +30,7 @@ - + stop('page') ?> \ No newline at end of file diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php index d169473..c901c14 100644 --- a/app/view/templates/editleftbar.php +++ b/app/view/templates/editleftbar.php @@ -46,7 +46,7 @@
- no-thumbnail + no-thumbnail
diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php index 13cef96..5aa13ba 100644 --- a/app/view/templates/edittopbar.php +++ b/app/view/templates/edittopbar.php @@ -18,7 +18,7 @@ - + display id() ?> @@ -27,11 +27,11 @@ - + - download + download diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 2ee791a..9758c95 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -87,11 +87,11 @@ - - + + issupereditor()) { ?> - + tag('sort') ?> @@ -141,7 +141,7 @@ - display()['bookmark'] && (!empty(Config::bookmark()) || !empty($user->bookmark()))) { ?> + display()['bookmark'] && (!empty(Wcms\Config::bookmark()) || !empty($user->bookmark()))) { ?>
@@ -149,7 +149,7 @@
Public
    - $query) { ?> + $query) { ?>
  • @@ -176,7 +176,7 @@ - + diff --git a/app/view/templates/homemenu.php b/app/view/templates/homemenu.php index f807f7c..838ca81 100644 --- a/app/view/templates/homemenu.php +++ b/app/view/templates/homemenu.php @@ -159,10 +159,10 @@ Bookmarks