From ae0693d074a63412e7ab9587520096cb60a48e64 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 9 Dec 2018 12:10:16 +0100 Subject: media parser --- app/class/art2.php | 2 ++ app/class/modelhome.php | 2 +- app/class/modelrender.php | 11 +++++++++-- app/view/templates/edit.php | 2 +- app/view/templates/editleftbar.php | 16 +++++++-------- app/view/templates/edittopbar.php | 13 +++++++------ app/view/templates/home.php | 40 ++++++++++++++++++++------------------ app/view/templates/info.php | 21 ++++++++++---------- 8 files changed, 60 insertions(+), 47 deletions(-) (limited to 'app') diff --git a/app/class/art2.php b/app/class/art2.php index 6a61687..2029895 100644 --- a/app/class/art2.php +++ b/app/class/art2.php @@ -169,6 +169,8 @@ class Art2 return $this->date->format('Y-m-d'); } elseif ($option == 'ptime') { return $this->date->format('H:i'); + } elseif ($option = 'dmy') { + return $this->date->format('d/m/Y'); } diff --git a/app/class/modelhome.php b/app/class/modelhome.php index 5d16062..bb271d6 100644 --- a/app/class/modelhome.php +++ b/app/class/modelhome.php @@ -11,7 +11,7 @@ class Modelhome extends Modeldb { $opt = new Opt(Art2::classvarlist()); - $opt->setcol(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'secure']); + $opt->setcol(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'date', 'secure']); $opt->settaglist($table); $opt->submit(); diff --git a/app/class/modelrender.php b/app/class/modelrender.php index d2cdbb4..c36417d 100644 --- a/app/class/modelrender.php +++ b/app/class/modelrender.php @@ -177,8 +177,8 @@ class Modelrender extends Modelart public function parser(string $text) { - $text = str_replace('
- insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> + diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php index 09c13f9..ff08bfc 100644 --- a/app/view/templates/editleftbar.php +++ b/app/view/templates/editleftbar.php @@ -56,20 +56,20 @@ if(!empty($art->templatecss())) { ?>
- template()['cssreccursive'] === true ? 'checked' : '' ?>> - + template()['cssreccursive'] === true ? 'checked' : '' ?>> +
- template()['cssquickcss'] === true ? 'checked' : '' ?>> - + template()['cssquickcss'] === true ? 'checked' : '' ?>> +
- template()['externalcss'] === true ? 'checked' : '' ?>> - + template()['externalcss'] === true ? 'checked' : '' ?>> +
- template()['cssfavicon'] === true ? 'checked' : '' ?>> - + template()['cssfavicon'] === true ? 'checked' : '' ?>> +
-
✖ delete + delete 👁 - id() ?> - + @@ -33,14 +32,16 @@ - + iseditor()) { ?> + 📝font + 📁media + isadmin()) { ?> - font - admin + 🔑admin iseditor()) { ?> -
+
@@ -68,15 +68,16 @@ id edit see - del - log - tag - summary - link to - linkfrom - last modification - date of creation - privacy + del + log + tag + summary + link to + linkfrom + last modification + date of creation + date + privacy @@ -84,15 +85,16 @@ 👁 - - - tag('sort') ?> - description() ?> - linkto('sort') ?> - linkfrom('sort') ?> - datemodif('hrdi') ?> - datecreation('hrdi') ?> - secure('string') ?> + + + tag('sort') ?> + description() ?> + linkto('sort') ?> + linkfrom('sort') ?> + datemodif('hrdi') ?> + datecreation('hrdi') ?> + date('dmy') ?> + secure('string') ?> diff --git a/app/view/templates/info.php b/app/view/templates/info.php index 334540b..638e2b5 100644 --- a/app/view/templates/info.php +++ b/app/view/templates/info.php @@ -38,6 +38,7 @@