<?php if (!$this->article->checkLang($this->getLang())) { $lang = \OWeb\manage\Languages::getDefLang(); } else { $lang = $this->getLang(); } $img_found = false; $img_url = ""; $img_class = ""; if ($this->short) { $content = substr(strip_tags($this->article->getContent($lang)), 0, 1000); $img_class = "article_image_short"; $content = $this->getBBText($content); } else { $content = $this->getBBHtml($this->article->getContent($lang), false, false); } switch ($this->image_level) { case 0: break; case 2: case 1: if ($this->article->getImg() != NULL) { $img_found = true; $img_url = OWEB_HTML_URL_IMG . "/" . $this->article->getImg(); } else { if ($this->image_level == 2) { $cats[] = $this->article->getCategorie(); if ($this->article->getCategorie()->getImg() != NULL) { $img_found = true; $img_url = OWEB_HTML_URL_IMG . "/" . $this->article->getCategorie()->getImg();