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 a850e9b0 authored by Nicolas's avatar Nicolas
Browse files

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

parent b291ebf1
No related branches found
No related tags found
No related merge requests found
......@@ -208,6 +208,10 @@ class Pdf extends Template implements BlockInterface
*/
public function getTitleCssClasses()
{
if (strlen($this->getData('title_css_classes')) === 0) {
return false;
}
return $this->getData('title_css_classes');
}
......@@ -216,6 +220,10 @@ class Pdf extends Template implements BlockInterface
*/
public function getTitleExtraCss()
{
if (strlen($this->getData('title_extra_css')) === 0) {
return false;
}
return $this->getData('title_extra_css');
}
......@@ -328,6 +336,10 @@ class Pdf extends Template implements BlockInterface
*/
public function getWrapperCssClasses()
{
if (strlen($this->getData('wrapper_css_classes')) === 0) {
return false;
}
return $this->getData('wrapper_css_classes');
}
......@@ -336,6 +348,10 @@ class Pdf extends Template implements BlockInterface
*/
public function getWrapperExtraCss()
{
if (strlen($this->getData('wrapper_extra_css')) === 0) {
return false;
}
return $this->getData('wrapper_extra_css');
}
......
......@@ -31,7 +31,7 @@ endif;
<?php if ($activeTitle): ?>
<div class="mediamanager-title-content">
<?php if ($activeTitle): ?>
<<?= /* @noEscape */ $block->getTitleTag(); ?> <?php if ($block->getTitleCssClasses()): ?>class="<?= /* @noEscape */ $block->getTitleCssClasses(); ?><?php endif; ?>" <?php if ($block->getTitleExtraCss()): ?>style="<?= /* @noEscape */ $block->getTitleExtraCss(); ?>"<?php endif; ?>><?= /* @noEscape */ $block->getTitle() ?></<?= /* @noEscape */ $block->getTitleTag(); ?>>
<<?= /* @noEscape */ $block->getTitleTag(); ?> <?php if ($block->getTitleCssClasses()): ?>class="<?= /* @noEscape */ $block->getTitleCssClasses(); ?>"<?php endif; ?> <?php if ($block->getTitleExtraCss()): ?>style="<?= /* @noEscape */ $block->getTitleExtraCss(); ?>"<?php endif; ?>><?= /* @noEscape */ $block->getTitle() ?></<?= /* @noEscape */ $block->getTitleTag(); ?>>
<?php endif; ?>
</div>
<?php endif; ?>
......
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