Skip to content
Snippets Groups Projects

Hotline#15969 modifier lien bandeau

Merged Laurent requested to merge hotline#15969_modifier_lien_bandeau into hotline_6.51
Compare and
+ 10
4
Preferences
Compare changes
Files
@@ -16,7 +16,7 @@
*
* 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
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_View_Helper_TagBanniere extends Zend_View_Helper_HtmlElement {
public function tagBanniere() {
@@ -24,15 +24,19 @@ class ZendAfi_View_Helper_TagBanniere extends Zend_View_Helper_HtmlElement {
if ($this->_profil->getHeaderImgCycle()) {
Class_ScriptLoader::getInstance()
->addScript(URL_JAVA . 'diaporama/jquery.cycle.all.min')
->addJQueryReady(sprintf('$("#banniere a.home").cycle(%s)',
->addJQueryReady(sprintf('$("#banniere a.home").cycle(%s)',
json_encode(['fx' => 'fade',
'width' => $this->_profil->getLargeurSite(),
'height' => $this->_profil->getHauteurBanniere()])));
}
$top_profil = $this->_profil->getParentsAndSelf()[0];
return sprintf('<div id="banniere">%s<a class="home" href="%s" style="display:block">%s</a></div>',
$this->_getLogos(),
$this->view->url([], null, true),
$this->view->url(['id_profil' => $top_profil->getId()],
null,
true),
$this->_getImages());
}
@@ -42,7 +46,7 @@ class ZendAfi_View_Helper_TagBanniere extends Zend_View_Helper_HtmlElement {
return $this->_getLogo('gauche') . $this->_getLogo('droite');
}
protected function _getLogo($position) {
if ($this->_profil->_has('logo_'.$position.'_img'))
return sprintf(