Skip to content
Snippets Groups Projects
Commit 65702be4 authored by Patrick Barroca's avatar Patrick Barroca
Browse files

rel #23802: item display same as in box

parent 80cf03ed
Branches
Tags
3 merge requests!896Master,!846Dev#23802 add sito arborescence,!844Dev#23802 add sito arborescence
......@@ -78,29 +78,8 @@ class ZendAfi_View_Helper_PublicListViewMode extends ZendAfi_View_Helper_Admin_
if (!$item)
return '';
$html = $this->view->openBoiteContent($item->getTitre());
$thumb = ($img_url = $this->getThumbnail($item->getUrl())) ?
$this->view->tagImg($img_url) : '';
$link = $this
->_tag('div',
$this->_tag('a', $this->_('Voir le site'),
['href' => $item->getUrl()]));
$html .= $this->_tag('div',
$thumb . $item->getDescription() . $link,
['class' => $this->_list->getItemsId()]);
return $html . $this->view->closeBoiteContent();
}
public function getThumbnail($url) {
if (!isset($this->thumbnails_helper))
$this->thumbnails_helper = (new ZendAfi_View_Helper_WebThumbnail())
->setView($this->view);
return $this->thumbnails_helper->webThumbnail($url);
return $this->_tag('div',
$this->view->getHelper('SitoTree')->renderSite($item),
['class' => 'sitotheque']);
}
}
\ 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