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

Correction du rendu des attributs supplémentaires

parent 1a5a3dc2
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,10 @@ class Pdf extends Template implements BlockInterface
*/
public function getPdfCssClasses()
{
if (strlen($this->getData('pdf_css_classes')) === 0) {
return false;
}
return $this->getData('pdf_css_classes');
}
......@@ -240,6 +244,10 @@ class Pdf extends Template implements BlockInterface
*/
public function getPdfExtraCss()
{
if (strlen($this->getData('pdf_extra_css')) === 0) {
return false;
}
return $this->getData('pdf_extra_css');
}
......
......@@ -36,7 +36,11 @@ endif;
</div>
<?php endif; ?>
<a href="<?= /* @noEscape */ $pdfPath; ?>" target="<?= /* @noEscape */ $block->getPdfLinkTarget(); ?>" <?php if ($block->getPdfCssClasses()): ?>class="<?= /* @noEscape */ $block->getPdfCssClasses(); ?><?php endif; ?>" <?php if ($block->getPdfExtraCss()): ?>style="<?= /* @noEscape */ $block->getPdfExtraCss(); ?>"<?php endif; ?>>
<a href="<?= /* @noEscape */ $pdfPath; ?>"
target="<?= /* @noEscape */ $block->getPdfLinkTarget(); ?>"
<?php if ($block->getPdfCssClasses()): ?>class="<?= /* @noEscape */ $block->getPdfCssClasses(); ?>"<?php endif; ?>
<?php if ($block->getPdfExtraCss()): ?>style="<?= /* @noEscape */ $block->getPdfExtraCss(); ?>"<?php endif; ?>
>
<?php if ($renderType === 'image'): ?>
<?php if ($activeImageBackground): ?>
<span
......
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