Skip to content
Snippets Groups Projects
Commit 851e1163 authored by llaffont's avatar llaffont
Browse files

Refacto rendu articles

parent 6e75ceca
No related merge requests found
......@@ -2385,6 +2385,8 @@ library/ZendAfi/View/Helper/Album/XspfPlaylistVisitor.php -text
library/ZendAfi/View/Helper/AlbumRessourceInfos.php -text
library/ZendAfi/View/Helper/Article/FormulairesCsvVisitor.php -text
library/ZendAfi/View/Helper/Article/RenderAbstract.php -text
library/ZendAfi/View/Helper/Article/RenderFullContent.php -text
library/ZendAfi/View/Helper/Article/RenderSummary.php -text
library/ZendAfi/View/Helper/Article/RenderTitleOnly.php -text
library/ZendAfi/View/Helper/AudioJsPlayer.php -text
library/ZendAfi/View/Helper/Avis.php -text
......
<?php
/**
* Copyright (c) 2012, Agence Française Informatique (AFI). All rights reserved.
*
* AFI-OPAC 2.0 is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* AFI-OPAC 2.0 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_View_Helper_Article_RenderFullContent extends ZendAfi_View_Helper_Article_RenderAbstract {
public function article_RenderFullContent($article) {
return $this->renderArticle($article, 'article');
}
public function renderContent($article) {
return $article->getFullContent();
}
public function renderTitre($article) {
return '';
}
public function renderArticleHTML($html, $article) {
return
$this->view->openBoite($article->getCacherTitre() ? '' : parent::renderTitre($article))
.$html
.$this->view->closeBoite();
}
}
?>
\ No newline at end of file
<?php
/**
* Copyright (c) 2012, Agence Française Informatique (AFI). All rights reserved.
*
* AFI-OPAC 2.0 is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* AFI-OPAC 2.0 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_View_Helper_Article_RenderSummary extends ZendAfi_View_Helper_Article_RenderAbstract {
public function article_RenderSummary($article) {
return $this->renderArticle($article, 'article_full');
}
public function renderTitre($article) {
return $article->getCacherTitre() ? '' : parent::renderTitre($article);
}
public function renderLieu($article) {
return '';
}
public function renderAvis($article) {
return '';
}
}
?>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment