diff --git a/application/modules/opac/controllers/IndexController.php b/application/modules/opac/controllers/IndexController.php index 54698e5af06cc4b4252c3c614748fbb67c3a8054..054ed55c63de8fa73127a79aa9afe1d42f7bef9d 100644 --- a/application/modules/opac/controllers/IndexController.php +++ b/application/modules/opac/controllers/IndexController.php @@ -157,7 +157,7 @@ class IndexController extends ZendAfi_Controller_Action { session_write_close(); $this->_helper->getHelper('viewRenderer')->setNoRender(); - if (!$url = urldecode($this->_getParam('url'))) + if (!$url = $this->_getParam('url')) return $this->_response->setHttpResponseCode(404); try { diff --git a/library/templates/Intonation/Assets/css/intonation.css b/library/templates/Intonation/Assets/css/intonation.css index 2b6f7bd899c42952ee85c6dc027968e33d6b9cd8..79f0bb60c98ca239179390ca680b65196e8fec7a 100644 --- a/library/templates/Intonation/Assets/css/intonation.css +++ b/library/templates/Intonation/Assets/css/intonation.css @@ -93,7 +93,8 @@ p > i { position: absolute; top: 0; max-height: 100%; - overflow-y: scroll; + overflow-y: hidden; + width: 100%; } .no_overflow { @@ -193,4 +194,16 @@ pre { left: 0 !important; right: 0 !important; margin: auto !important; +} + +.no_background { + background: none !important; +} + +.no_border { + border: none !important; +} + +.no_shadow { + box-shadow: none !important; } \ No newline at end of file diff --git a/library/templates/Intonation/Library/Settings.php b/library/templates/Intonation/Library/Settings.php index 4db4047b48f2b4f3a081843be11c88fa58ef4ac6..4efe446e1ccb3b67d6931756dc5ec727631dae18 100644 --- a/library/templates/Intonation/Library/Settings.php +++ b/library/templates/Intonation/Library/Settings.php @@ -44,13 +44,10 @@ class Intonation_Library_Settings extends Intonation_System_Abstract { 'position_fixed_top_right', 'position_fixed_mid_left', 'position_fixed_mid_right', - 'transparent', - 'card', - 'col', - 'container-fluid', - 'row', - 'mr-auto', - 'ml-auto' + 'no_background', + 'no_border', + 'no_shadow', + 'no_overflow', ], 'hydrating_mapping' => ['div id site_web_wrapper' => 'container align-self-center', @@ -95,12 +92,12 @@ class Intonation_Library_Settings extends Intonation_System_Abstract { '3' => 'class fas fa-compact-disc', '4' => 'class fas fa-video', '5' => 'class fas fa-keyboard', - '8' => 'class fas fa-align-left', + '8' => 'class fas fa-bullhorn', '9' => 'class fas fa-rss-square', '10' => 'class fas fa-link'], 'icons_map_library' => ['author' => 'class fas fa-user', - 'search_more' => 'class fas fa-search'], + 'search_more' => 'class fas fa-list'], 'icons_map_utils' => ['image_place_holder' => '/library/templates/Intonation/Assets/images/image_place_holder.png', 'previous' => 'class fas fa-chevron-left', diff --git a/library/templates/Intonation/Library/Widget/Carousel/Article/View.php b/library/templates/Intonation/Library/Widget/Carousel/Article/View.php index 6c570e55b24e585467fe1a1a67f7cc3008c92791..1845c57e7aaf4314c4094423046589922715814b 100644 --- a/library/templates/Intonation/Library/Widget/Carousel/Article/View.php +++ b/library/templates/Intonation/Library/Widget/Carousel/Article/View.php @@ -56,7 +56,7 @@ class Intonation_Library_Widget_Carousel_Article_View extends Intonation_Library protected function _getLinkToAllTitle() { - return $this->_('Voir les documents de la boite "%s" dans le résultat de recherche', $this->titre); + return $this->_('Voir tous les articles de la boite "%s" dans une liste', $this->titre); } diff --git a/library/templates/Intonation/View/Cardify.php b/library/templates/Intonation/View/Cardify.php index 088d5479a9ffc2359c6a2423eeb22ede25bce750..15ef690808fe71751cd0d7825e719faa7854d8dc 100644 --- a/library/templates/Intonation/View/Cardify.php +++ b/library/templates/Intonation/View/Cardify.php @@ -56,7 +56,8 @@ class Intonation_View_Cardify extends ZendAfi_View_Helper_BaseHelper { $img = $this->view->tagImg($this->view->url(['module' => 'opac', 'controller' => 'index', 'action' => 'picture', - 'url' => $element->getPicture()], null, true), + 'url' => $element->getPicture(), + 'hidde' => 'extension'], null, true), ['class' => 'd-block text-center img_as_background', 'alt' => '']); diff --git a/library/templates/Intonation/View/RenderCarousel.php b/library/templates/Intonation/View/RenderCarousel.php index 389d77e24c51b42adec2be9bfe21dc9efcfc6cfe..60c60c2efffefb36005f8426e914231755cebdf7 100644 --- a/library/templates/Intonation/View/RenderCarousel.php +++ b/library/templates/Intonation/View/RenderCarousel.php @@ -56,7 +56,9 @@ class Intonation_View_RenderCarousel extends ZendAfi_View_Helper_BaseHelper { protected function _carouselInner($collection, $id) { $html = array_filter($collection->injectInto([], function($html, $element) { - $html [] = $this->_cardify($element, $html); + $html [] = $this->_tag('div', + $this->view->cardify($element), + ['class' => 'carousel-item'. (0 == count($html) ? ' active' : '')]); return $html; })); @@ -66,43 +68,6 @@ class Intonation_View_RenderCarousel extends ZendAfi_View_Helper_BaseHelper { } - protected function _cardify($element, $content) { - return $this->_tag('div', - $this->view->tagImg($this->view->url(['module' => 'opac', - 'controller' => 'index', - 'action' => 'picture', - 'url' => $element->getPicture()], null, true), - ['class' => 'd-block min_h_500', - 'alt' => '']) - - . $this->_tag('div', - $this->_card($element), - ['class' => 'card-block card-img-overlay text-center']), - ['class' => 'carousel-item text-center' . (empty($content) ? ' active' : '')]); - } - - - protected function _card($element) { - $info = $this->_tag('p', - $element->getExplicitTitle(), - ['class' => 'lead']); - - $doc_type = Class_Template::current() - ->getIco($this->view, - $element->getDocType(), - 'doc_types', - ['class' => 'ico_xl', - 'alt' => $this->_('Type de document : %s', $element->getDocTypeLabel())]); - - $content = $info . $doc_type; - - return $this->view->tagAnchor($element->getUrl(), - $content, - ['class' => 'card-link', - 'title' => $element->getLinkTitle()]); - } - - protected function _carouselControl($id) { return $this->_tag('a', Class_Template::current()->getIco($this->view, 'previous', 'utils', ['class' => 'ico_xl']) diff --git a/library/templates/Intonation/View/RenderMultipleCarousel.php b/library/templates/Intonation/View/RenderMultipleCarousel.php index 739257588775a058961ad4a9b01c0d15995c83f9..8d0a4cf88488b9eba5cf0aba7207f7c5a0db5292 100644 --- a/library/templates/Intonation/View/RenderMultipleCarousel.php +++ b/library/templates/Intonation/View/RenderMultipleCarousel.php @@ -25,7 +25,8 @@ class Intonation_View_RenderMultipleCarousel extends ZendAfi_View_Helper_BaseHel public function renderMultipleCarousel($collection) { $id = 'carousel_' . md5(rand(1000, 9999)); - $content = $this->_carouselInner($collection, $id) + $content = $this->_indicators(ceil($collection->count() / 3), $id) + . $this->_carouselInner($collection, $id) . ((3 < $collection->count()) ? $this->_carouselControl($id) : ''); @@ -80,4 +81,20 @@ class Intonation_View_RenderMultipleCarousel extends ZendAfi_View_Helper_BaseHel 'role' => 'button', 'class' => 'carousel-control-next']); } - } \ No newline at end of file + + + protected function _indicators($count, $id) { + $lis = []; + + for ($i = 0; $i < $count; $i++) + $lis [] = $this->_tag('li', + '', + ['class' => (($i == 0) ? 'active' : ''), + 'data-target' => '#' . $id, + 'data-slide-to' => $i]); + + return $this->_tag('ol', + implode($lis), + ['class' => 'carousel-indicators']); + } +} \ No newline at end of file