Exemplo n.º 1
0
 private function InitRecLanguageFile($name, \OWeb\types\Language $lang = null)
 {
     $lManager = \OWeb\manage\Languages::getInstance();
     $l = $lManager->getLanguage($name, $this->get_exploded_nameOf($name));
     if ($lang == null) {
         $this->_l = clone $l;
         $lang = $this->_l;
     } else {
         $lang->merge($l);
     }
     $parent = get_parent_class($name);
     if ($parent != '\\OWeb\\types\\NamedClass' && $parent != 'OWeb\\types\\NamedClass') {
         $this->InitRecLanguageFile($parent, $lang);
     }
 }
Exemplo n.º 2
0
<?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();