From 59e670424ef9d7769e4252fe0f83e42d39a5c9b4 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 21 Aug 2019 15:25:53 +0200 Subject: Fix : get list code moved to selection --- app/class/modelhome.php | 2 +- app/class/optlist.php | 12 +++++++++- app/view/templates/home.php | 50 ++++------------------------------------- app/view/templates/homemenu.php | 50 ++++++++++++++++++++++++++++++++++++++--- assets/css/home.css | 12 ++++++++++ composer.json | 2 +- 6 files changed, 76 insertions(+), 52 deletions(-) diff --git a/app/class/modelhome.php b/app/class/modelhome.php index c30da44..1154e78 100644 --- a/app/class/modelhome.php +++ b/app/class/modelhome.php @@ -11,7 +11,7 @@ class Modelhome extends Modelart { $opt = new Opt(Art2::classvarlist()); - $opt->setcol(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'date', 'secure', 'visitcount']); + $opt->setcol(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'date', 'secure', 'visitcount', 'editcount', 'affcount']); $opt->settaglist($table); $opt->setauthorlist($table); $opt->submit(); diff --git a/app/class/optlist.php b/app/class/optlist.php index 11e6f72..1fed661 100644 --- a/app/class/optlist.php +++ b/app/class/optlist.php @@ -2,6 +2,7 @@ class Optlist extends Opt { + protected $title = 1; protected $description = 0; protected $thumbnail = 0; protected $date = 0; @@ -32,6 +33,11 @@ class Optlist extends Opt // _______________________________________ G E T _____________________________________ + public function title() + { + return $this->title; + } + public function description() { return $this->description; @@ -58,9 +64,13 @@ class Optlist extends Opt } - // _______________________________________ S E T _____________________________________ + public function settitle($title) + { + $this->title = intval($title); + } + public function setdescription($description) { $this->description = intval($description); diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 867baee..820d185 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -14,7 +14,10 @@ - insert('homemenu', ['user' => $user, 'opt' => $opt]) ?> + insert('homemenu', ['user' => $user, 'opt' => $opt, 'optlist' => $optlist]); + ?>
@@ -28,51 +31,6 @@

Pages ()

- -
> - Generate list - Generate code to display a list of pages -
- - - - description() ? 'checked' : '' ?>> - -
- - thumbnail() ? 'checked' : '' ?>> - -
- - date() ? 'checked' : '' ?>> - -
- - author() ? 'checked' : '' ?>> - -
- - -
- - ' . $optlist->getcode() . ''; - } - - ?> -
- - - -
- -
- -
diff --git a/app/view/templates/homemenu.php b/app/view/templates/homemenu.php index 1003f7d..0a22513 100644 --- a/app/view/templates/homemenu.php +++ b/app/view/templates/homemenu.php @@ -61,18 +61,62 @@ -
- Actions + + + + + +
> + Selection
+ + + + +
Bookmarks