From cb4c198325582b25f88bf536c4fbf39bcf8662d6 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 18 Jul 2016 14:15:17 +0000 Subject: [PATCH] fix #549 @1 --- framework/application/views/helpers/Exemples.php | 2 +- framework/application/views/helpers/Title.php | 3 +++ js/002-common.js | 2 -- less/002-common.less | 5 +++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/framework/application/views/helpers/Exemples.php b/framework/application/views/helpers/Exemples.php index 196e634..05019e9 100644 --- a/framework/application/views/helpers/Exemples.php +++ b/framework/application/views/helpers/Exemples.php @@ -46,7 +46,7 @@ class Fluidbook_View_Helper_Exemples extends CubeIT_View_Helper_Abstract { $featured = array_slice($featured, 0, $max_featured); $normal = array_slice($normal, 0, $max_normal); - $res = $this->htmlElement($title, 'h2', array('class' => 'title col-2')); + $res = $this->title($title, 'h2', array('class' => 'col-2')); $e = 0; diff --git a/framework/application/views/helpers/Title.php b/framework/application/views/helpers/Title.php index 39682cb..8866b07 100644 --- a/framework/application/views/helpers/Title.php +++ b/framework/application/views/helpers/Title.php @@ -5,6 +5,9 @@ class Fluidbook_View_Helper_Title extends CubeIT_View_Helper_HtmlElement { * @return string */ public function title($content, $markup = 'h1', $attributes = array()) { + if(!$content){ + return ''; + } $attributes = $this->_mergeAttributes($attributes, array('class' => 'title')); return $this->htmlElement(str_replace("\n", '
', $content), $markup, $attributes); } diff --git a/js/002-common.js b/js/002-common.js index 8e7c6b0..f33cc6e 100644 --- a/js/002-common.js +++ b/js/002-common.js @@ -36,6 +36,4 @@ function setZoom(ww) { } $('#z,header').css('transform', transform); - - } \ No newline at end of file diff --git a/less/002-common.less b/less/002-common.less index b3a34e4..fee54f4 100644 --- a/less/002-common.less +++ b/less/002-common.less @@ -32,6 +32,11 @@ main { transform-origin: 50% 0 0; } +#mm-0 { + max-width: 100%; + overflow: hidden; +} + // Main heading style h1, h2 { &.title { -- 2.39.5