aboutsummaryrefslogtreecommitdiff
path: root/public/w/home.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-10-07 05:55:26 +0200
committervincent-peugnet <v.peugnet@free.fr>2018-10-07 05:55:26 +0200
commit74ccedd6544daac0845a044b5e6d71d577578c69 (patch)
tree2ec348bfc818fbc2859922ac71f866c407ce0a7b /public/w/home.php
parent67b20c49ec4e5efb4526fc64ef679dfb6dd41e30 (diff)
downloadwcms-74ccedd6544daac0845a044b5e6d71d577578c69.tar.gz
wcms-74ccedd6544daac0845a044b5e6d71d577578c69.zip
2.9 map + filter fix + markdownextra
Diffstat (limited to 'public/w/home.php')
-rw-r--r--public/w/home.php49
1 files changed, 34 insertions, 15 deletions
diff --git a/public/w/home.php b/public/w/home.php
index 7115918..3094d03 100644
--- a/public/w/home.php
+++ b/public/w/home.php
@@ -9,27 +9,27 @@ echo '<section class="home">';
if ($app->session() >= $app::EDITOR) {
$app->bddinit($config);
- $opt = new Opt(Art::classvarlist());
-
- if(!empty($_GET)) {
-
- $_SESSION['opt'] = $_GET;
- $opt->hydrate($_GET);
-
- }
- if(isset($_GET['submit']) && $_GET['submit'] == 'reset') {
- $opt = new Opt(Art::classvarlist());
- } elseif(isset($_SESSION['opt'])) {
- $opt->hydrate($_SESSION['opt']);
-
- }
+ $opt = new Opt(Art::classvarlist());
$opt->setcol(['id', 'tag', 'lien', 'contenu', 'intro', 'titre', 'datemodif', 'datecreation', 'secure']);
$table = $app->getlisteropt($opt);
$app->listcalclien($table);
$opt->settaglist($table);
+ $opt->submit();
+
+
+
+
+
+
+
+
+
+
+
$opt->setcol(['id', 'tag', 'lien', 'contenu', 'intro', 'titre', 'datemodif', 'datecreation', 'secure', 'liento']);
+
$aff->option($app, $opt);
$filtertagfilter = $app->filtertagfilter($table, $opt->tagfilter(), $opt->tagcompare());
@@ -55,8 +55,27 @@ if ($app->session() >= $app::EDITOR) {
$app->artlistsort($table2, $opt->sortby(), $opt->order());
+ echo '<div id="flex">';
+
+
+ $aff->home2table($app, $table2, $app->getlister());
+
+
+
+
+ echo '<div id="map">';
+ $aff->mapheader();
+ if(isset($_GET['map'])) {
+ $aff->mermaid($app->map($table2));
+ }
+ echo '</div>';
+
+
+
+
+
+ echo '</div>';
- $aff->home2table($app, $table2, $app->getlister());
}