Skip to content
Snippets Groups Projects
Commit d4c04413 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline MT #123916 customize search result in chili theme

parent 77d446c9
No related merge requests found
Pipeline #12269 failed with stage
in 44 minutes and 8 seconds
......@@ -182,13 +182,13 @@ $(id).on('hide.bs.dropdown', function () { $('body').removeClass('overflow_hidde
}
protected function _listModeLink(){
return parent::_listModeLink()->responsiveText();
protected function _listModeLink() {
return parent::_listModeLink()->beNotResponsiveText();
}
protected function _wallModeLink(){
return parent::_wallModeLink()->responsiveText();
protected function _wallModeLink() {
return parent::_wallModeLink()->beNotResponsiveText();
}
......
......@@ -187,22 +187,24 @@ class Intonation_View_Search_Result extends ZendAfi_View_Helper_BaseHelper {
protected function _listModeLink(){
return new Intonation_Library_Link(['Url' => $this->view->url(['liste_format' => Class_Systeme_ModulesAppli::LISTE_FORMAT_LIST]),
'Image' => Class_Template::current()->getIco($this->view, 'list', 'utils'),
'Text' => $this->_tag('span', $this->_('Liste')),
'Title' => $this->_('Afficher le résultat de recherche en mode liste'),
'InlineText' => 1,
'Attribs' => ['class' => 'btn-sm list_format' . ($this->_isWallMode() ? '' : ' active')]]);
return
new Intonation_Library_Link(['Url' => $this->view->url(['liste_format' => Class_Systeme_ModulesAppli::LISTE_FORMAT_LIST]),
'Image' => Class_Template::current()->getIco($this->view, 'list', 'utils'),
'Text' => $this->_tag('span', $this->_('Liste')),
'Title' => $this->_('Afficher le résultat de recherche en mode liste'),
'InlineText' => 1,
'Attribs' => ['class' => 'btn-sm list_format' . ($this->_isWallMode() ? '' : ' active')]]);
}
protected function _wallModeLink(){
return new Intonation_Library_Link(['Url' => $this->view->url(['liste_format' => Class_Systeme_ModulesAppli::LISTE_FORMAT_MUR]),
'Image' => Class_Template::current()->getIco($this->view, 'wall', 'utils'),
'Text' => $this->_tag('span', $this->_('Mur')),
'Title' => $this->_('Afficher le résultat de recherche en mode mur'),
'InlineText' => 1,
'Attribs' => ['class' => 'btn-sm list_format' . ($this->_isWallMode() ? ' active' : '')]]);
return
new Intonation_Library_Link(['Url' => $this->view->url(['liste_format' => Class_Systeme_ModulesAppli::LISTE_FORMAT_MUR]),
'Image' => Class_Template::current()->getIco($this->view, 'wall', 'utils'),
'Text' => $this->_tag('span', $this->_('Mur')),
'Title' => $this->_('Afficher le résultat de recherche en mode mur'),
'InlineText' => 1,
'Attribs' => ['class' => 'btn-sm list_format' . ($this->_isWallMode() ? ' active' : '')]]);
}
......
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