Skip to content
Snippets Groups Projects
Commit 02c4efdc authored by llaffont's avatar llaffont
Browse files

Résultat de recherche sous forme de mur en prod

parent 63cc347f
Branches
Tags
No related merge requests found
......@@ -84,7 +84,7 @@ class ZendAfi_View_Helper_ListeNotices extends ZendAfi_View_Helper_BaseHelper {
case Class_Systeme_ModulesAppli::LISTE_FORMAT_TABLEAU: $html.=$this->listeTableau($notices,$preferences["liste_codes"]); break;
case Class_Systeme_ModulesAppli::LISTE_FORMAT_ACCORDEON: $html.=$this->listeAccordeon($notices); break;
case Class_Systeme_ModulesAppli::LISTE_FORMAT_VIGNETTES: $html.=$this->listeVignette($notices,$preferences["liste_codes"]); break;
case Class_Systeme_ModulesAppli::LISTE_FORMAT_MUR: $html.=$this->listeMur($notices, $preferences['liste_codes']); break;
case Class_Systeme_ModulesAppli::LISTE_FORMAT_MUR: $html.=$this->listeMur($notices); break;
}
return ($html.'</div>');
}
......@@ -259,10 +259,9 @@ class ZendAfi_View_Helper_ListeNotices extends ZendAfi_View_Helper_BaseHelper {
//------------------------------------------------------------------------------------------------------
// Format 4 : Mur
//------------------------------------------------------------------------------------------------------
public function listeMur($data, &$champs) {
if (defined('DEVELOPMENT') && (DEVELOPMENT == true)) {
Class_ScriptLoader::getInstance()
->addJQueryReady('
public function listeMur($data) {
Class_ScriptLoader::getInstance()
->addJQueryReady('
$(".notice").mouseover(function(){
var notice = $(this);
var detail = $("<div/>").appendTo(notice);
......@@ -270,11 +269,10 @@ class ZendAfi_View_Helper_ListeNotices extends ZendAfi_View_Helper_BaseHelper {
notice.unbind("mouseover");
})
');
}
$notices = [];
foreach($data as $notice)
$notices []= $this->view->notice_Mur($notice, $champs);
$notices []= $this->view->notice_Mur($notice);
return '<div class="liste_mur">'.implode($notices).'</div>';
}
......
......@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_View_Helper_Notice_Mur extends Zend_View_Helper_HtmlElement {
public function notice_Mur($notice, $champs) {
public function notice_Mur($notice) {
$vignette = $this->view->notice_Vignette($notice);
$datas = '<span>'.$notice->getTitreEtSousTitre().'</span>';
......
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