* @copyright Copyright (C) 2021-2022, Sylvain Lelièvre * @license GNU General Public License, version 3 * @link https://deltacms.fr/ * * Delta was created from version 11.2.00.24 of ZwiiCMS * @author Rémi Jean * @copyright Copyright (C) 2008-2018, Rémi Jean * @author Frédéric Tempez * @copyright Copyright (C) 2018-2021, Frédéric Tempez */ class news extends common { const VERSION = '4.0'; const REALNAME = 'News'; const DELETE = true; const UPDATE = '0.0'; const DATADIRECTORY = self::DATA_DIR . 'news/'; public static $actions = [ 'add' => self::GROUP_MODERATOR, 'config' => self::GROUP_MODERATOR, 'delete' => self::GROUP_MODERATOR, 'edit' => self::GROUP_MODERATOR, 'index' => self::GROUP_VISITOR, 'rss' => self::GROUP_VISITOR ]; public static $news = []; public static $comments = []; public static $pages; public static $states = [ false => 'Brouillon', true => 'Publié' ]; public static $states_en = [ false => 'Draft', true => 'Published' ]; public static $users = []; // Nombre d'objets par page public static $itemsList = [ 4 => '4 articles', 8 => '8 articles', 12 => '12 articles', 16 => '16 articles', 22 => '22 articles' ]; // Nombre de colone par page public static $columns = [ 12 => '1 colonne', 6 => '2 colonnes', 4 => '3 colonnes', 3 => '4 colonnes' ]; public static $columns_en = [ 12 => '1 column', 6 => '2 columns', 4 => '3 columns', 3 => '4 columns' ]; public static $nbrCol = 1; public static $height = [ -1 => 'Article complet', 1000 => '1000 caractères', 800 => '800 caractères', 600 => '600 caractères', 400 => '400 caractères', 200 => '200 caractères' ]; public static $height_en = [ -1 => 'Complete article', 1000 => '1000 characters', 800 => '800 characters', 600 => '600 characters', 400 => '400 characters', 200 => '200 characters' ]; public static $borderWidth = [ 0 => 'Aucune', '0.1em' => 'Très fine', '0.15em' => 'Fine', '0.2em' => 'Très petite', '0.25em' => 'Petite' ]; public static $borderWidth_en = [ 0 => 'None', '0.1em' => 'Very fine', '0.15em' => 'Fine', '0.2em' => 'Very small', '0.25em' => 'Small' ]; public static $borderStyle =[ 'none' => 'Aucune', 'solid' => 'Tiret', 'inset' => '3D enfoncé', 'outset'=> '3D surélevé', 'ridge' => 'Relief 1', 'groove'=> 'Relief 2' ]; public static $borderStyle_en =[ 'none' => 'None', 'solid' => 'Dash', 'inset' => '3D recessed', 'outset' => '3D raised', 'ridge' => 'Relief 1', 'groove' => 'Relief 2' ]; // Signature de l'article public static $articleSignature = ''; /** * Flux RSS */ public function rss() { // Inclure les classes include_once 'module/news/vendor/FeedWriter/Item.php'; include_once 'module/news/vendor/FeedWriter/Feed.php'; include_once 'module/news/vendor/FeedWriter/RSS2.php'; include_once 'module/news/vendor/FeedWriter/InvalidOperationException.php'; date_default_timezone_set('UTC'); $feeds = new \FeedWriter\RSS2(); // En-tête $feeds->setTitle($this->getData (['page', $this->getUrl(0),'title'])); $feeds->setLink(helper::baseUrl() . $this->getUrl(0)); $feeds->setDescription($this->getData (['page', $this->getUrl(0), 'metaDescription'])); $feeds->setChannelElement('language', 'fr-FR'); $feeds->setDate(date('r',time())); $feeds->addGenerator(); // Corps des articles $newsIdsPublishedOns = helper::arrayCollumn($this->getData(['module', $this->getUrl(0), 'posts']), 'publishedOn', 'SORT_DESC'); $newsIdsStates = helper::arrayCollumn($this->getData(['module', $this->getUrl(0), 'posts']), 'state', 'SORT_DESC'); foreach($newsIdsPublishedOns as $newsId => $newsPublishedOn) { if($newsPublishedOn <= time() AND $newsIdsStates[$newsId]) { $newsArticle = $feeds->createNewItem(); $author = $this->signature($this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'userId'])); $newsArticle->addElementArray([ 'title' => $this->getData(['module', $this->getUrl(0),'posts', $newsId, 'title']), 'link' => helper::baseUrl() . $this->getUrl(0) . '/' . $newsId . '#' . $newsId, 'description' => $this->getData(['module', $this->getUrl(0),'posts', $newsId, 'content']) ]); $newsArticle->setAuthor($author,'no@mail.com'); $newsArticle->setId(helper::baseUrl() .$this->getUrl(0) . '/' . $newsId . '#' . $newsId); $newsArticle->setDate(date('r', $this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'publishedOn']))); $feeds->addItem($newsArticle); } } // Valeurs en sortie $this->addOutput([ 'display' => self::DISPLAY_RSS, 'content' => $feeds->generateFeed(), 'view' => 'rss' ]); } /** * Ajout d'un article */ public function add() { // Lexique $text = []; $val = $this->getData(['config', 'i18n', 'langAdmin']); switch ($val) { case 'fr' : $text[0] = 'Nouvelle news créée'; $text[1] = 'Nouvelle news'; break; case 'en' : $text[0] = 'New news created'; $text[1] = 'New news'; break; } // Soumission du formulaire if($this->isPost()) { // Crée la news $newsId = helper::increment($this->getInput('newsAddTitle', helper::FILTER_ID), (array) $this->getData(['module', $this->getUrl(0), 'posts'])); $publishedOn = $this->getInput('newsAddPublishedOn', helper::FILTER_DATETIME, true); $publishedOff = $this->getInput('newsAddPublishedOff' ) ? $this->getInput('newsAddPublishedOff', helper::FILTER_DATETIME) : ''; $this->setData(['module', $this->getUrl(0),'posts', $newsId, [ 'content' => $this->getInput('newsAddContent', null), 'publishedOn' => $publishedOn, 'publishedOff' => $publishedOff, 'state' => $this->getInput('newsAddState', helper::FILTER_BOOLEAN), 'title' => $this->getInput('newsAddTitle', helper::FILTER_STRING_SHORT, true), 'userId' => $this->getInput('newsAddUserId', helper::FILTER_ID, true) ]]); // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', 'notification' => $text[0], 'state' => true ]); } // Liste des utilisateurs self::$users = helper::arrayCollumn($this->getData(['user']), 'firstname'); ksort(self::$users); foreach(self::$users as $userId => &$userFirstname) { $userFirstname = $userFirstname . ' ' . $this->getData(['user', $userId, 'lastname']); } unset($userFirstname); // Passage de la langue d'administration à Tinymce et flatpickr $lang_admin = 'fr_FR'; $lang_flatpickr = 'fr'; if( $this->getData(['config', 'i18n', 'langAdmin']) ==='en'){ $lang_admin = 'en_GB'; $lang_flatpickr = 'default'; } ?> addOutput([ 'title' => $text[1], 'vendor' => [ 'flatpickr', 'tinymce' ], 'view' => 'add' ]); } /** * Configuration */ public function config() { // Lexique $text = []; $val = $this->getData(['config', 'i18n', 'langAdmin']); switch ($val) { case 'fr' : $text[0] = 'Modifications enregistrées'; $text[1] = 'Permanent'; $text[2] = 'Configuration du module'; $text[3] = ' à '; break; case 'en' : $text[0] = 'Changes saved'; $text[1] = 'Permanent'; $text[2] = 'Module configuration'; $text[3] = ' at '; break; } // Mise à jour des données de module $this->update(); // Soumission du formulaire if($this->isPost()) { // Générer la feuille de CSS $style = '.newsFrame {'; $style .= 'border:' . $this->getInput('newsThemeBorderStyle',helper::FILTER_STRING_SHORT) . ' ' . $this->getInput('newsThemeBorderColor') . ' ' . $this->getInput('newsThemeBorderWidth',helper::FILTER_STRING_SHORT) . ';'; $style .= 'background-color:' . $this->getInput('newsThemeBackgroundColor') . ';'; $style .= '}'; // Dossier de l'instance if (!is_dir(self::DATADIRECTORY . $this->getUrl(0))) { mkdir (self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', 0755, true); } $success = file_put_contents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $style ); // Fin feuille de style $this->setData(['module', $this->getUrl(0), 'theme',[ 'style' => $success ? self::DATADIRECTORY . $this->getUrl(0) . '/theme.css' : '', 'borderStyle' => $this->getInput('newsThemeBorderStyle',helper::FILTER_STRING_SHORT), 'borderColor' => $this->getInput('newsThemeBorderColor'), 'borderWidth' => $this->getInput('newsThemeBorderWidth',helper::FILTER_STRING_SHORT), 'backgroundColor' => $this->getInput('newsThemeBackgroundColor') ]]); $this->setData(['module', $this->getUrl(0), 'config',[ 'feeds' => $this->getInput('newsConfigShowFeeds',helper::FILTER_BOOLEAN), 'feedsLabel' => $this->getInput('newsConfigFeedslabel',helper::FILTER_STRING_SHORT), 'itemsperPage' => $this->getInput('newsConfigItemsperPage', helper::FILTER_INT,true), 'itemsperCol' => $this->getInput('newsConfigItemsperCol', helper::FILTER_INT,true), 'height' => $this->getInput('newsConfigHeight', helper::FILTER_INT,true), 'versionData' => $this->getData(['module', $this->getUrl(0), 'config', 'versionData']) ]]); // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', 'notification' => $text[0], 'state' => true ]); } else { // Ids des news par ordre de publication $newsIds = array_keys(helper::arrayCollumn($this->getData(['module', $this->getUrl(0), 'posts']), 'publishedOn', 'SORT_DESC')); // Pagination $pagination = helper::pagination($newsIds, $this->getUrl(),$this->getData(['module', $this->getUrl(0), 'config', 'itemsperPage']) ); // Liste des pages self::$pages = $pagination['pages']; // News en fonction de la pagination // Pour les dates suivant la langue d'administration $lang = 'fr_FR'; $zone = 'Europe/Paris'; if ( $this->getData(['config', 'i18n', 'langAdmin']) === 'en'){ $lang = 'en_GB'; $zone = 'Europe/London'; } $fmt = datefmt_create( $lang, IntlDateFormatter::LONG, IntlDateFormatter::SHORT, $zone, IntlDateFormatter::GREGORIAN ); for($i = $pagination['first']; $i < $pagination['last']; $i++) { // Met en forme le tableau /*$dateOn = mb_detect_encoding(strftime('%d %B %Y', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOn'])), 'UTF-8', true) ? strftime('%d %B %Y', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOn'])) : utf8_encode(strftime('%d %B %Y', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOn']))); $dateOn .= $text[3]; $dateOn .= mb_detect_encoding(strftime('%H:%M', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOn'])), 'UTF-8', true) ? strftime('%H:%M', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOn'])) : utf8_encode(strftime('%H:%M', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOn']))); */ $dateOn = datefmt_format($fmt, strtotime( date('Y/m/d H:i:s',$this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOn'])))); if ($this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOff'])) { /* $dateOff = mb_detect_encoding(strftime('%d %B %Y', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOff'])), 'UTF-8', true) ? strftime('%d %B %Y', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOff'])) : utf8_encode(strftime('%d %B %Y', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOff']))); $dateOff .= $text[3]; $dateOff .= mb_detect_encoding(strftime('%H:%M', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOff'])), 'UTF-8', true) ? strftime('%H:%M', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOff'])) : utf8_encode(strftime('%H:%M', $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOff']))); */ $dateOff = datefmt_format($fmt, strtotime( date('Y/m/d H:i:s',$this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'publishedOff'])))); } else { $dateOff = $text[1]; } $states = self::$states; if( $this->getData(['config', 'i18n', 'langAdmin']) === 'en') $states = self::$states_en; self::$news[] = [ $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'title']), $dateOn, $dateOff, $states[$this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i], 'state'])], template::button('newsConfigEdit' . $newsIds[$i], [ 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsIds[$i]. '/' . $_SESSION['csrf'], 'value' => template::ico('pencil') ]), template::button('newsConfigDelete' . $newsIds[$i], [ 'class' => 'newsConfigDelete buttonRed', 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $newsIds[$i] . '/' . $_SESSION['csrf'], 'value' => template::ico('cancel') ]) ]; } // Valeurs en sortie $this->addOutput([ 'title' => $text[2], 'view' => 'config', 'vendor' => [ 'tinycolorpicker' ] ]); } } /** * Suppression */ public function delete() { // Lexique $text = []; $val = $this->getData(['config', 'i18n', 'langAdmin']); switch ($val) { case 'fr' : $text[0] = 'Action non autorisée'; $text[1] = 'News supprimée'; break; case 'en' : $text[0] = 'Unauthorised action'; $text[1] = 'News deleted'; break; } // La news n'existe pas if($this->getData(['module', $this->getUrl(0),'posts', $this->getUrl(2)]) === null) { // Valeurs en sortie $this->addOutput([ 'access' => false ]); } // Jeton incorrect elseif ($this->getUrl(3) !== $_SESSION['csrf']) { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', 'notification' => $text[0] ]); } // Suppression else { $this->deleteData(['module', $this->getUrl(0),'posts', $this->getUrl(2)]); // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', 'notification' => $text[1], 'state' => true ]); } } /** * Édition */ public function edit() { // Lexique $text = []; $val = $this->getData(['config', 'i18n', 'langAdmin']); switch ($val) { case 'fr' : $text[0] = 'Action non autorisée'; $text[1] = 'Modifications enregistrées'; break; case 'en' : $text[0] = 'Unauthorised action'; $text[1] = 'Changes saved'; break; } // Jeton incorrect if ($this->getUrl(3) !== $_SESSION['csrf']) { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', 'notification' => $text[0] ]); } // La news n'existe pas if($this->getData(['module', $this->getUrl(0),'posts', $this->getUrl(2)]) === null) { // Valeurs en sortie $this->addOutput([ 'access' => false ]); } // La news existe else { // Soumission du formulaire if($this->isPost()) { // Si l'id a changée $newsId = $this->getInput('newsEditTitle', helper::FILTER_ID, true); if($newsId !== $this->getUrl(2)) { // Incrémente le nouvel id de la news $newsId = helper::increment($newsId, $this->getData(['module', $this->getUrl(0), 'posts'])); // Supprime l'ancien news $this->deleteData(['module', $this->getUrl(0),'posts', $this->getUrl(2)]); } $publishedOn = $this->getInput('newsEditPublishedOn', helper::FILTER_DATETIME, true); $publishedOff = $this->getInput('newsEditPublishedOff' ) ? $this->getInput('newsEditPublishedOff', helper::FILTER_DATETIME) : ''; $this->setData(['module', $this->getUrl(0),'posts', $newsId, [ 'content' => $this->getInput('newsEditContent', null), 'publishedOn' => $publishedOn, 'publishedOff' => $publishedOff < $publishedOn ? '' : $publishedOff, 'state' => $this->getInput('newsEditState', helper::FILTER_BOOLEAN), 'title' => $this->getInput('newsEditTitle', helper::FILTER_STRING_SHORT, true), 'userId' => $this->getInput('newsEditUserId', helper::FILTER_ID, true) ]]); // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', 'notification' => $text[1], 'state' => true ]); } // Liste des utilisateurs self::$users = helper::arrayCollumn($this->getData(['user']), 'firstname'); ksort(self::$users); foreach(self::$users as $userId => &$userFirstname) { $userFirstname = $userFirstname . ' ' . $this->getData(['user', $userId, 'lastname']); } unset($userFirstname); // Passage de la langue d'administration à Tinymce et flatpickr $lang_admin = 'fr_FR'; $lang_flatpickr = 'fr'; if( $this->getData(['config', 'i18n', 'langAdmin']) ==='en'){ $lang_admin = 'en_GB'; $lang_flatpickr = 'default'; } ?> addOutput([ 'title' => $this->getData(['module', $this->getUrl(0),'posts', $this->getUrl(2), 'title']), 'vendor' => [ 'flatpickr', 'tinymce' ], 'view' => 'edit' ]); } } /** * Accueil */ public function index() { // Mise à jour des données de module $this->update(); // Affichage d'un article if( $this->getUrl(1) // Protection pour la pagination, un ID ne peut pas être un entier, une page oui AND intval($this->getUrl(1)) === 0 ) { // L'article n'existe pas if($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1)]) === null) { // Valeurs en sortie $this->addOutput([ 'access' => false ]); } // L'article existe else { self::$articleSignature = $this->signature($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'userId'])); // Valeurs en sortie $this->addOutput([ 'showBarEditButton' => true, 'title' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'title']), 'view' => 'article' ]); } } else { // Affichage index // Ids des news par ordre de publication $newsIdsPublishedOns = helper::arrayCollumn($this->getData(['module', $this->getUrl(0), 'posts']), 'publishedOn', 'SORT_DESC'); $newsIdsStates = helper::arrayCollumn($this->getData(['module', $this->getUrl(0), 'posts']), 'state', 'SORT_DESC'); $newsIds = []; foreach($newsIdsPublishedOns as $newsId => $newsPublishedOn) { $newsIdsPublishedOff = $this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'publishedOff']); if( $newsPublishedOn <= time() AND $newsIdsStates[$newsId] AND // date de péremption tenant des champs non définis (!is_integer($newsIdsPublishedOff) OR $newsIdsPublishedOff > time() ) ) { $newsIds[] = $newsId; } } // Pagination //$pagination = helper::pagination($newsIds, $this->getUrl(),$this->getData(['config','itemsperPage'])); $pagination = helper::pagination($newsIds, $this->getUrl(),$this->getData(['module', $this->getUrl(0),'config', 'itemsperPage'])); // Nombre de colonnes self::$nbrCol = $this->getData(['module', $this->getUrl(0),'config', 'itemsperCol']); // Liste des pages self::$pages = $pagination['pages']; // News en fonction de la pagination for($i = $pagination['first']; $i < $pagination['last']; $i++) { self::$news[$newsIds[$i]] = $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i]]); // Longueur de la news affichée if ( $this->getData(['module', $this->getUrl(0), 'config', 'height']) !== -1 && strlen($this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'content'])) >= $this->getData(['module', $this->getUrl(0), 'config', 'height']) ) { // Contenu raccourci $content = substr($this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'content']), 0, $this->getData(['module', $this->getUrl(0), 'config', 'height'])); // Ne pas couper un mot $lastSpace = strrpos($content, ' ', -1 ); self::$news[$newsIds[$i]]['content'] = substr(strip_tags($content,'

'), 0, $lastSpace) ; } // Mise en forme de la signature self::$news[$newsIds[$i]]['userId'] = $this->signature($this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'userId'])); } // Valeurs en sortie $this->addOutput([ 'showBarEditButton' => true, 'showPageContent' => true, 'view' => 'index', 'style' => $this->getData(['module', $this->getUrl(0),'theme', 'style']) ]); } } /** * Retourne la signature d'un utilisateur */ private function signature($userId) { switch ($this->getData(['user', $userId, 'signature'])){ case 1: return $userId; break; case 2: return $this->getData(['user', $userId, 'pseudo']); break; case 3: return $this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']); break; case 4: return $this->getData(['user', $userId, 'lastname']) . ' ' . $this->getData(['user', $userId, 'firstname']); break; default: return $this->getData(['user', $userId, 'firstname']); } } /** * Mise à jour du module * Appelée par les fonctions index et config */ private function update() { $versionData = $this->getData(['module',$this->getUrl(0),'config', 'versionData' ]); // le module n'est pas initialisé if ($versionData === null) { $this->init(); } $versionData = $this->getData(['module',$this->getUrl(0),'config', 'versionData' ]); // Mise à jour 4.0 if (version_compare($versionData, '4.0', '<') ) { // Mettre à jour la version $this->setData(['module',$this->getUrl(0),'config', 'versionData', '4.0' ]); } } /** * Initialisation du thème d'un nouveau module */ private function init() { $fileCSS = self::DATADIRECTORY . $this->getUrl(0) . '/theme.css'; // Données du module absentes require_once('module/news/ressource/defaultdata.php'); if ($this->getData(['module', $this->getUrl(0), 'config' ]) === null) { $this->setData(['module', $this->getUrl(0), 'config', init::$defaultData]); } if ($this->getData(['module', $this->getUrl(0), 'theme' ]) === null) { // Données de thème $this->setData(['module', $this->getUrl(0), 'theme', init::$defaultTheme]); $this->setData(['module', $this->getUrl(0), 'theme', 'style', self::DATADIRECTORY . $this->getUrl(0) . '/theme.css' ]); } // Dossier de l'instance if (!is_dir(self::DATADIRECTORY . $this->getUrl(0) )) { mkdir (self::DATADIRECTORY . $this->getUrl(0), 0755, true); } // Check la présence de la feuille de style if ( !file_exists(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css')) { // Générer la feuille de CSS $style = '.newsFrame {'; $style .= 'border:' . $this->getData(['module', $this->getUrl(0), 'theme', 'borderStyle' ]) . ' ' .$this->getData(['module', $this->getUrl(0), 'theme', 'borderColor' ]) . ' ' . $this->getData(['module', $this->getUrl(0), 'theme', 'borderWidth' ]) . ';'; $style .= 'background-color:' . $this->getData(['module', $this->getUrl(0), 'theme', 'backgroundColor' ]) . ';'; $style .= '}'; // Sauver la feuille de style file_put_contents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css' , $style ); // Stocker le nom de la feuille de style $this->setData(['module', $this->getUrl(0), 'theme', 'style', self::DATADIRECTORY . $this->getUrl(0) . '/theme.css']); } } }