diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-04-17 15:46:41 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-04-17 15:46:41 +0200 |
commit | 5a6d7248fcbc3f88fe66f3b52d51087698c3e6ba (patch) | |
tree | 086d3542a0ec7c3b0e8aeb0ae5d62d7067409bb3 /class/class.art.php | |
parent | 899a4bd60570ff9b77fabe89dd4902f09bbdeb47 (diff) | |
download | wcms-5a6d7248fcbc3f88fe66f3b52d51087698c3e6ba.tar.gz wcms-5a6d7248fcbc3f88fe66f3b52d51087698c3e6ba.zip |
title intro lien
Diffstat (limited to 'class/class.art.php')
-rw-r--r-- | class/class.art.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/class/class.art.php b/class/class.art.php index 0e87b6c..cc383d0 100644 --- a/class/class.art.php +++ b/class/class.art.php @@ -68,24 +68,6 @@ a:hover {}'); public function updatelien() { - function search($haystack, $debut, $fin) - { - $list = []; - - $indexdebut = strpos($haystack, $debut); - if ($indexdebut !== false) { - $indexdebut += strlen($debut); - $indexfin = strpos($haystack, $fin, $indexdebut); - if ($indexfin !== false) { - //$indexfin -= strlen($fin); - array_push($list, substr($haystack, $indexdebut, $indexfin - $indexdebut)); - $haystack = substr($haystack, $indexfin); - $list = array_merge($list, search($haystack, $debut, $fin)); - } - } - return $list; - - } $this->lien = search($this->html('md'), self::DEBUT, self::FIN); } @@ -153,8 +135,6 @@ a:hover {}'); } elseif ($option == 'html') { $html = Markdown::defaultTransform($this->html); $htmla = str_replace('href="http', ' class="external" target="_blank" href="http', $html); - - $htmla = str_replace('class="b"', ' target="_blank" ', $htmla); $htmlmedia = str_replace('src="/', 'src="../media/', $htmla); return $htmlmedia; } |