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

Refonte du design des PDF et ajout d'un fichier CSS

parent a850e9b0
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="NicolasBejean_MediaManager/pdf.css" />
</head>
</page>
...@@ -26,7 +26,7 @@ endif; ...@@ -26,7 +26,7 @@ endif;
<?php if ($activePdf): ?> <?php if ($activePdf): ?>
<?php if ($activeWrapper): ?> <?php if ($activeWrapper): ?>
<div class="widget block block-static-block mediamanager mediamanager-pdf <?php if ($block->getWrapperCssClasses()): ?><?= /* @noEscape */ $block->getWrapperCssClasses(); ?><?php endif; ?>" <?php if ($block->getWrapperExtraCss()): ?>style="<?= /* @noEscape */ $block->getWrapperExtraCss(); ?>"<?php endif; ?>> <div class="mediamanager mediamanager-pdf <?php if ($block->getWrapperCssClasses()): ?><?= /* @noEscape */ $block->getWrapperCssClasses(); ?><?php endif; ?>" <?php if ($block->getWrapperExtraCss()): ?>style="<?= /* @noEscape */ $block->getWrapperExtraCss(); ?>"<?php endif; ?>>
<?php endif; ?> <?php endif; ?>
<?php if ($activeTitle): ?> <?php if ($activeTitle): ?>
<div class="mediamanager-title-content"> <div class="mediamanager-title-content">
...@@ -38,15 +38,20 @@ endif; ...@@ -38,15 +38,20 @@ endif;
<a href="<?= /* @noEscape */ $pdfPath; ?>" <a href="<?= /* @noEscape */ $pdfPath; ?>"
target="<?= /* @noEscape */ $block->getPdfLinkTarget(); ?>" target="<?= /* @noEscape */ $block->getPdfLinkTarget(); ?>"
<?php if ($block->getPdfCssClasses()): ?>class="<?= /* @noEscape */ $block->getPdfCssClasses(); ?>"<?php endif; ?> class="mediamanager-pdf-link <?php if ($block->getPdfCssClasses()): ?><?= /* @noEscape */ $block->getPdfCssClasses(); ?><?php endif; ?>"
<?php if ($block->getPdfExtraCss()): ?>style="<?= /* @noEscape */ $block->getPdfExtraCss(); ?>"<?php endif; ?> <?php if ($block->getPdfExtraCss()): ?>style="<?= /* @noEscape */ $block->getPdfExtraCss(); ?>"<?php endif; ?>
> >
<?php if ($renderType === 'image'): ?> <?php if ($renderType === 'image'): ?>
<?php if ($activeImageBackground): ?> <?php if ($activeImageBackground): ?>
<span <span
class="mediamanager-image <?php if ($block->getImageCssClasses()): ?><?= /* @noEscape */ $block->getImageCssClasses(); ?><?php endif; ?>" class="mediamanager-pdf-image <?php if ($block->getImageCssClasses()): ?><?= /* @noEscape */ $block->getImageCssClasses(); ?><?php endif; ?>"
style="background-image: url('<?= /* @noEscape */ $image; ?>'); <?php if ($block->getImageExtraCss()): ?><?= /* @noEscape */ $block->getImageExtraCss(); ?><?php endif; ?>" style="background-image: url('<?= /* @noEscape */ $image; ?>'); width: <?= /* @noEscape */ $imageWidth; ?>px; height: calc(<?= /* @noEscape */ $imageHeight; ?>px + 20px);
>&nbsp;</span> <?php if ($block->getImageExtraCss()): ?><?= /* @noEscape */ $block->getImageExtraCss(); ?><?php endif; ?>"
>
<span class="mediamanager-pdf-text">
<?= /* @noEscape */ $pdfBlock->getAlt(); ?>
</span>
</span>
<?php else: ?> <?php else: ?>
<img <img
src="<?= /* @noEscape */ $image; ?>" src="<?= /* @noEscape */ $image; ?>"
......
.mediamanager-pdf-link:link {
text-decoration: none;
}
.mediamanager-pdf-image {
background-repeat: no-repeat;
position: relative;
display: inline-block;
}
.mediamanager-pdf-text {
position: absolute;
bottom: 0;
left: 0;
right: 0;
text-align: center;
}
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