// 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.= '<div class="casestudies-grid-item-label" style="'. $hover_style .'">';
$c.= '<h2 class="casestudies-grid-item-title">' . $study->titre . '</h2>';
- $c.= '<h3 class="casestudies-grid-item-tags">' . implode(' / ', $tag_names) . '</h3>';
+ //$c.= '<h3 class="casestudies-grid-item-tags">' . implode(' / ', $tag_names) . '</h3>';
+ $c.= '<h3 class="casestudies-grid-item-tags">' . $study->legende . '</h3>';
$c.= '</div>'; // .casestudies-grid-item-label
$c.= '<h2>' . $s->titre . '</h2>';
//$c.='<h3>' . $s->description . '</h3>';
+ /*
$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.= '<h3>' . implode(' / ', $tag_names) . '</h3>';
+ */
+ $c.= '<h3>' . $s->legende . '</h3>';
+
return $this->link($c, $url, array(
'data-cat' => $s->categories,