diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-05-02 00:54:41 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-05-02 00:54:41 +0200 |
commit | 8ad36569c333324614a864225d507972247f22be (patch) | |
tree | b42ddb543f9370d4e1ac5400047d7138bdbeab7d /class/class.app.php | |
parent | df7d23a090526aff78a60872f7ba5d1169cbc735 (diff) | |
download | wcms-8ad36569c333324614a864225d507972247f22be.tar.gz wcms-8ad36569c333324614a864225d507972247f22be.zip |
bugs corriges css + top
Diffstat (limited to 'class/class.app.php')
-rw-r--r-- | class/class.app.php | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/class/class.app.php b/class/class.app.php index fbab4b4..2a863dd 100644 --- a/class/class.app.php +++ b/class/class.app.php @@ -36,7 +36,7 @@ class App $q->bindValue(':datecreation', $now->format('Y-m-d H:i:s')); $q->bindValue(':datemodif', $now->format('Y-m-d H:i:s')); $q->bindValue(':css', $art->css()); - $q->bindValue(':html', $art->html('md')); + $q->bindValue(':html', $art->md()); $q->bindValue(':secure', $art->secure()); $q->bindValue(':couleurtext', $art->couleurtext()); $q->bindValue(':couleurbkg', $art->couleurbkg()); @@ -108,24 +108,6 @@ class App return (bool)$donnees['COUNT(*)']; } - public function introlien(Art $art) - { - $html = $art->html('html'); - foreach ($art->lien('array') as $id) { - $title = ''; - foreach ($this->getlister(['id', 'intro'], 'id') as $item) { - if ($item->id() == $id) { - $title = $item->intro(); - } - } - - $lien = 'href="?id=' . $id . '"'; - $titlelien = ' title="' . $title . '" ' . $lien; - $html = str_replace($lien, $titlelien, $html); - } - return $html; - } - public function update(Art $art) { $now = new DateTimeImmutable(null, timezone_open("Europe/Paris")); @@ -143,7 +125,7 @@ class App $q->bindValue(':datecreation', $art->datecreation('string')); $q->bindValue(':datemodif', $now->format('Y-m-d H:i:s')); $q->bindValue(':css', $art->css()); - $q->bindValue(':html', $art->html('md')); + $q->bindValue(':html', $art->md()); $q->bindValue(':secure', $art->secure()); $q->bindValue(':couleurtext', $art->couleurtext()); $q->bindValue(':couleurbkg', $art->couleurbkg()); |