From 701c4637294fc9b63d53a8eeb26d46ef94af1941 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 21 Sep 2018 00:17:11 +0200 Subject: 2.6 media update + new skin + lot of bugs fixies --- class/class.w.art.php | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'class/class.w.art.php') diff --git a/class/class.w.art.php b/class/class.w.art.php index ffdb670..2238f71 100644 --- a/class/class.w.art.php +++ b/class/class.w.art.php @@ -56,12 +56,12 @@ class Art $now = new DateTimeImmutable(null, timezone_open("Europe/Paris")); $this->settitre($this->id()); - $this->setsoustitre($this->id()); - $this->setintro('resumé'); - $this->settag('sans tag,'); + $this->setsoustitre(''); + $this->setintro(''); + $this->settag(''); $this->setdatecreation($now); $this->setcss(''); - $this->sethtml('contenu'); + $this->sethtml(''); $this->setsecure(2); $this->setcouleurtext('#000000'); $this->setcouleurbkg('#FFFFFF'); @@ -206,6 +206,7 @@ class Art } $html = str_replace('href="=', 'href="?id=', $html); + $html = str_replace('href="../media/', ' class="file" target="_blank" href="../media/', $html); $html = str_replace('href="http', ' class="external" target="_blank" href="http', $html); $html = str_replace('