diff --git a/library/templates/Intonation/Assets/css/intonation.css b/library/templates/Intonation/Assets/css/intonation.css index 0563a9fc9791e95aaec3c54733911fbce24e78c0..bbaacc5a7d1e5b49ba22f605662a6cbd813b0612 100644 --- a/library/templates/Intonation/Assets/css/intonation.css +++ b/library/templates/Intonation/Assets/css/intonation.css @@ -407,4 +407,10 @@ label[for=note] ~ div label.multi-element-label + br { .badge { white-space: normal; +} + +main.col, +aside.col, +healer.col { + overflow: hidden; } \ No newline at end of file diff --git a/library/templates/Intonation/Library/Settings.php b/library/templates/Intonation/Library/Settings.php index fb591f41ebf28053d4535aad4c4bbb8affdcacd8..4b004dd611caffb20601a65dac2862f6cc8655b6 100644 --- a/library/templates/Intonation/Library/Settings.php +++ b/library/templates/Intonation/Library/Settings.php @@ -64,7 +64,7 @@ class Intonation_Library_Settings extends Intonation_System_Abstract { ], 'hydrating_mapping' => ['div id site_web_wrapper' => 'container align-self-center', - 'div id site_web_content_wrapper' => 'row justify-content-center', + 'div id site_web_content_wrapper' => 'row justify-content-center no-gutters', 'div class section_wrapper' => 'container-fluid', 'div class section_content_wrapper' => 'row no-gutters', 'div class widget' => 'card', diff --git a/library/templates/Intonation/View/Author/RenderWikipedia.php b/library/templates/Intonation/View/Author/RenderWikipedia.php index 2089d3bb0a16fdccb9c2127cc12748922c3500e4..5eab828986180e02fef9adaab706dbe7940fab24 100644 --- a/library/templates/Intonation/View/Author/RenderWikipedia.php +++ b/library/templates/Intonation/View/Author/RenderWikipedia.php @@ -25,6 +25,9 @@ class Intonation_View_Author_RenderWikipedia extends ZendAfi_View_Helper_BaseHel if (!$bio = $author->renderWikipediaOn($this->view)) return ''; + $bio = $this->_tag('h2', $this->_tag('span', $this->_('Introduction'))) + . $bio; + $dom = new DOMDocument(); try { diff --git a/library/templates/Intonation/View/Cardify.php b/library/templates/Intonation/View/Cardify.php index ebd2a51c1b8ebf5fa2ddeb81e8f7904d2d71d8d4..4e2fb568425c99683aa881106f3f34ca38246e81 100644 --- a/library/templates/Intonation/View/Cardify.php +++ b/library/templates/Intonation/View/Cardify.php @@ -28,12 +28,7 @@ class Intonation_View_Cardify extends ZendAfi_View_Helper_BaseHelper { protected function _cardWithPicture($element) { $img = $this->view->tagImg($element->getPicture(), - ['class' => 'card-img-top', - 'alt' => ($element->getPicture() - ? $this->_('Aïe, aïe, aïe ! L\'image "%s" est brisée.', - $element->getPicture()) - : $this->_('Aïe, aïe, aïe ! Pas d\'image pour "%s".', - $element->getTitle()))]); + ['class' => 'card-img-top']); return $this->view->cardifyOnlyDescription($element, $img); } diff --git a/library/templates/Intonation/View/CardifyWithOverlay.php b/library/templates/Intonation/View/CardifyWithOverlay.php index ab18955504b13daf5e91543654b679e1cab779ba..01cdf26e5e50532e14ed6fbb95b48c1d8f5efc52 100644 --- a/library/templates/Intonation/View/CardifyWithOverlay.php +++ b/library/templates/Intonation/View/CardifyWithOverlay.php @@ -24,7 +24,7 @@ class Intonation_View_CardifyWithOverlay extends ZendAfi_View_Helper_BaseHelper public function cardifyWithOverlay($element) { return $this->_tag('div', $this->_cardWithPicture($element), - ['class' => 'card no_overflow']); + ['class' => 'card no_overflow text-center']); } @@ -63,12 +63,7 @@ class Intonation_View_CardifyWithOverlay extends ZendAfi_View_Helper_BaseHelper ['class' => 'card-block card-img-overlay rounded text-center']); $img = $this->view->tagImg($element->getPicture(), - ['class' => 'text-center img_as_background text-muted', - 'alt' => ($element->getPicture() - ? $this->_('Aïe, aïe, aïe ! L\'image "%s" est brisée.', - $element->getPicture()) - : $this->_('Aïe, aïe, aïe ! Pas d\'image pour "%s".', - $element->getTitle()))]); + ['class' => 'text-center img_as_background text-muted']); return $img . $overlay; } diff --git a/library/templates/Intonation/View/RenderRecord.php b/library/templates/Intonation/View/RenderRecord.php index b37cd1eb2e6f99ddc146ae1bb30e5b370fe0d899..5e2aa1996f069a683b62ea5eccea7bb490fd042f 100644 --- a/library/templates/Intonation/View/RenderRecord.php +++ b/library/templates/Intonation/View/RenderRecord.php @@ -137,24 +137,19 @@ class Intonation_View_RenderRecord extends ZendAfi_View_Helper_BaseHelper { $html = []; if ($same_series = $this->_record->getNoticesMemeSeries()) - $html [] = $this->_div(['class' => 'col-12'], + $html [] = $this->_div(['class' => 'col-12 mt-3'], $this->_tag('h2', $this->_('Les documents de la même série')) . $this->view->renderMultipleCarousel(new Storm_Collection($same_series), $callback)); if ($like = $this->_record->getNoticesSimilaires()) - $html [] = $this->_div(['class' => 'col-12'], + $html [] = $this->_div(['class' => 'col-12 mt-3'], $this->_tag('h2', $this->_('Les similaires')) . $this->view->renderMultipleCarousel(new Storm_Collection($like), $callback)); - return $this->_renderBloc($this->_('Voir Aussi'), $this->_grid(implode($html))); - - $this->_renderAjaxBloc('series') - . $this->_renderAjaxBloc('frbr') - . $this->_renderAjaxBloc('similaires'); } @@ -257,8 +252,7 @@ class Intonation_View_RenderRecord extends ZendAfi_View_Helper_BaseHelper { 'alt' => ($image ? $this->_('Couverture de %s', $this->_getTitle()) - : $this->_('Aïe, aïe, aïe ! Pas d\'image pour "%s".', - $this->_wrapped->getTitle()))]); + : '')]); }