Skip to content
Snippets Groups Projects
Commit d642671d authored by efalcy's avatar efalcy Committed by Julian Maurice
Browse files

dev #14506 : calendar mode wall , move read full article text in article header

parent baf20bfb
Branches
Tags
2 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!229Dev#14506 Agenda Display Wall
......@@ -93,9 +93,21 @@ abstract class ZendAfi_View_Helper_Article_RenderAbstract extends ZendAfi_View_H
if (!$article->hasSummary())
return $article->getFullContent();
return $article->getSummary() . $this->view->tagAnchor($this->view->url($article->getUrl()),
$this->view->_("Lire l'article complet"),
['class' => 'article_read_full']);
return $this->renderSummary($article);
}
public function renderSummary($article) {
return $article->getSummary() . $this->renderReadFullArticle($article);
}
public function renderReadFullArticle($article) {
if (!$article->hasSummary())
return '';
return $this->view->tagAnchor($this->view->url($article->getUrl()),
$this->view->_("Lire l'article complet"),
['class' => 'article_read_full']);
}
......
......@@ -29,7 +29,7 @@ class ZendAfi_View_Helper_Article_RenderWall extends ZendAfi_View_Helper_Article
public function renderArticleInfo($article) {
return '';
return $this->renderReadFullArticle($article);
}
......@@ -43,6 +43,9 @@ class ZendAfi_View_Helper_Article_RenderWall extends ZendAfi_View_Helper_Article
}
public function renderSummary($article) {
return $article->getSummary();
}
public function renderAvis($article) {
......
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