aboutsummaryrefslogtreecommitdiff
path: root/w
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-05 18:08:39 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-05 18:08:39 +0100
commit687b1f851abbb28750d2921d4f5beaac24b3249d (patch)
tree8510acd3bcb73509a88fddcd1d928f9ef120836d /w
parente7bdf04e3e58aa2c1821918b72753f274d3684fb (diff)
downloadwcms-687b1f851abbb28750d2921d4f5beaac24b3249d.tar.gz
wcms-687b1f851abbb28750d2921d4f5beaac24b3249d.zip
fix bugs
Diffstat (limited to 'w')
-rw-r--r--w/class/controllerart.php1
-rw-r--r--w/class/modelart.php1
-rw-r--r--w/view/templates/navart.php23
3 files changed, 23 insertions, 2 deletions
diff --git a/w/class/controllerart.php b/w/class/controllerart.php
index 4abc572..ef65f48 100644
--- a/w/class/controllerart.php
+++ b/w/class/controllerart.php
@@ -43,6 +43,7 @@ class Controllerart extends Controllerdb
$head = '';
+
if ($artexist) {
if ($this->art->daterender() < $this->art->datemodif()) {
diff --git a/w/class/modelart.php b/w/class/modelart.php
index 39ef50f..37262ad 100644
--- a/w/class/modelart.php
+++ b/w/class/modelart.php
@@ -30,7 +30,6 @@ class Modelart extends Modeldb
{
$artdata = new \JamesMoss\Flywheel\Document($art->dry());
- var_dump($artdata);
$artdata->setId($art->id());
$this->artstore->store($artdata);
}
diff --git a/w/view/templates/navart.php b/w/view/templates/navart.php
index d591307..b6a7219 100644
--- a/w/view/templates/navart.php
+++ b/w/view/templates/navart.php
@@ -1,4 +1,25 @@
-<div class="menu" style="all: initial; position: fixed; top: 0; right: 0;">
+<style>
+.menu {
+ all:initial;
+ position: fixed;
+ top: 0;
+ right: 0;
+ z-index: 10;
+ background-color: var(--color1);
+}
+
+div#dropmenu {
+ display: none;
+}
+
+.menu:hover div#dropmenu {
+ display: block;
+}
+
+</style>
+
+
+<div class="menu" >
<?= $user->level() ?>
<div id="dropmenu">