From 5a6d7248fcbc3f88fe66f3b52d51087698c3e6ba Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 17 Apr 2018 15:46:41 +0200 Subject: title intro lien --- class/class.art.php | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'class/class.art.php') 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; } -- cgit v1.2.3