diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-03-19 04:06:36 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-03-19 04:06:36 +0100 |
commit | 1654358ea4e4c0a100d7e58b1001ece1f908b7b3 (patch) | |
tree | c7b5848e5cbe6ff45667751589b71819737f75c0 /class/class.art.php | |
parent | ff27ff7217e4ba984ba2f9557a4b7841e7adf61b (diff) | |
download | wcms-1654358ea4e4c0a100d7e58b1001ece1f908b7b3.tar.gz wcms-1654358ea4e4c0a100d7e58b1001ece1f908b7b3.zip |
nouveau style
Diffstat (limited to 'class/class.art.php')
-rw-r--r-- | class/class.art.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/class/class.art.php b/class/class.art.php index 54fa28d..cc7a0d0 100644 --- a/class/class.art.php +++ b/class/class.art.php @@ -1,6 +1,8 @@ <?php use Michelf\Markdown; +use Michelf\MarkdownExtra; + class Art { @@ -51,7 +53,7 @@ class Art $this->setintro('resumé'); $this->settag('sans tag,'); $this->setdatecreation($now); - $this->setcss(''); + $this->setcss('article {}'); $this->sethtml('contenu'); $this->setsecure(2); $this->setcouleurtext('#000000'); @@ -111,13 +113,14 @@ class Art } public function html($option) - { + { if ($option == 'md') { return $this->html; } elseif ($option == 'html') { - return Markdown::defaultTransform($this->html); + $html = MarkdownExtra::defaultTransform($this->html); + $htmla = str_replace('class="b"', ' target="_blank" ', $html); + return $htmla; } - // return $this->html; } public function secure() |