Skip to content
Snippets Groups Projects
Commit 34381c7d authored by llaffont's avatar llaffont
Browse files

Refacto rendu articles

parent 0ebcb24b
Branches
Tags 5.31.3
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/RenderContainer/Boite.php -text
library/ZendAfi/View/Helper/Article/RenderContainer/Empty.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
......
<?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_RenderContainer_Boite extends ZendAfi_View_Helper_BaseHelper {
public function renderTitre($article) {
return '';
}
public function renderArticleHTML($html, $article) {
return
$this->view->openBoite($article->getCacherTitre()
? ''
: $this->view->getHelper('Article_RenderContainer_Empty')->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_RenderContainer_Empty extends ZendAfi_View_Helper_BaseHelper {
public function renderTitre($article) {
return $this->view->tagAnchor($this->view->url($article->getUrl()),
$article->getTitre());
}
public function renderArticleHTML($html, $article) {
return $html;
}
}
?>
\ 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