Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 4b0e6a37 authored by Nicolas's avatar Nicolas
Browse files

Ajout d'un return false quand il n'y a pas de contenu

parent b43193b7
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,10 @@ class Image extends Template implements BlockInterface
*/
public function getWidgetContent()
{
if (strlen($this->getData('image_content')) === 0) {
return false;
}
return $this->getData('image_content');
}
......@@ -240,6 +244,10 @@ class Image extends Template implements BlockInterface
*/
public function getWidgetContentCSS()
{
if (strlen($this->getData('image_content_css_classes')) === 0) {
return false;
}
return $this->getData('image_content_css_classes');
}
......@@ -288,6 +296,10 @@ class Image extends Template implements BlockInterface
*/
public function getCssClasses()
{
if (strlen($this->getData('image_css_classes')) === 0) {
return false;
}
return $this->getData('image_css_classes');
}
......@@ -296,6 +308,10 @@ class Image extends Template implements BlockInterface
*/
public function getExtraCss()
{
if (strlen($this->getData('image_extra_css')) === 0) {
return false;
}
return $this->getData('image_extra_css');
}
......@@ -304,6 +320,10 @@ class Image extends Template implements BlockInterface
*/
public function getDataBind()
{
if (strlen($this->getData('image_data')) === 0) {
return false;
}
return $this->getData('image_data');
}
......@@ -336,6 +356,10 @@ class Image extends Template implements BlockInterface
*/
public function getWrapperCssClasses()
{
if (strlen($this->getData('image_wrapper_css_classes')) === 0) {
return false;
}
return $this->getData('image_wrapper_css_classes');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment