From: stephen@cubedesigners.com Date: Wed, 20 Feb 2019 09:26:22 +0000 (+0000) Subject: Replace tags with legend in Case Studies section. WIP #2033 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fdd95b429b37c448b8fd93e1e60cf1c3e4d3a352;p=cubedesigners-v7.git Replace tags with legend in Case Studies section. WIP #2033 @0:10 --- diff --git a/framework/application/views/helpers/CaseStudiesGrid.php b/framework/application/views/helpers/CaseStudiesGrid.php index 451728c..04d818f 100644 --- a/framework/application/views/helpers/CaseStudiesGrid.php +++ b/framework/application/views/helpers/CaseStudiesGrid.php @@ -42,18 +42,21 @@ class Cubedesigners_View_Helper_CaseStudiesGrid extends CubeIT_View_Helper_Abstr // Max display size is 512 but we over-sample the size by 20% because there is a CSS scale effect on hover $image = $this->view->imageProcess($study->visuel, $study->titre, 615, 615, ['class' => 'responsive casestudies-grid-item-image']); $url = Cubedesigners_Util::generateAutoUri($study, $this->_page_data['seourl_stu']); - $tag_names = []; + /* + $tag_names = []; foreach ($study->tags_secondaires as $categoryID) { $tag_names[] = $this->_getTagName($categoryID); } + */ $hover_style = empty($study->hover_color) ? '' : 'background-color:'. CubeIT_Util_Cms::hexToRGBA($study->hover_color, 0.75) .';'; $c = $image; $c.= '
'; $c.= '

' . $study->titre . '

'; - $c.= '

' . implode(' / ', $tag_names) . '

'; + //$c.= '

' . implode(' / ', $tag_names) . '

'; + $c.= '

' . $study->legende . '

'; $c.= '
'; // .casestudies-grid-item-label diff --git a/framework/application/views/helpers/CasestudiesList.php b/framework/application/views/helpers/CasestudiesList.php index 233f43f..54b6286 100644 --- a/framework/application/views/helpers/CasestudiesList.php +++ b/framework/application/views/helpers/CasestudiesList.php @@ -171,14 +171,16 @@ class Cubedesigners_View_Helper_CasestudiesList extends CubeIT_View_Helper_Abstr $c.= '

' . $s->titre . '

'; //$c.='

' . $s->description . '

'; + /* $tag_names = []; - - // Todo: display names of secondary categories (via join?) using IDs in: $s->tags_secondaires); foreach ($s->tags_secondaires as $categoryID) { $tag_names[] = $this->_getTagName($categoryID); } $c.= '

' . implode(' / ', $tag_names) . '

'; + */ + $c.= '

' . $s->legende . '

'; + return $this->link($c, $url, array( 'data-cat' => $s->categories,