-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8328a6
commit c848861
Showing
6 changed files
with
90 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* @author Andreas Knollmann | ||
* @copyright Copyright (c) 2014-2024 Softwareentwicklung Andreas Knollmann | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT | ||
*/ | ||
|
||
use Infrangible\CatalogAttributeLandingPage\Block\Page; | ||
|
||
/** @var Page $block */ | ||
$image = $block->getPage()->getImage(); | ||
$imagePosition = $block->getImagePosition(); | ||
$cmsBlockHtml = $block->getCmsBlockHtml(); | ||
$additionalCmsBlockHtml = $block->getAdditionalCmsBlockHtml(); | ||
?> | ||
|
||
<?php if ($image && $imagePosition === 'cms'): ?> | ||
<div class="category-image"><img src="<?php echo $block->getPage()->getImageUrl(); ?>" alt="<?php echo $block->getHeadline(); ?>" title="<?php echo $block->getHeadline(); ?>" class="image"/></div> | ||
<?php endif; ?> | ||
|
||
<?php if ($cmsBlockHtml || $additionalCmsBlockHtml) :?> | ||
<div class="category-cms"> | ||
<?php echo $cmsBlockHtml; ?> | ||
<?php echo $additionalCmsBlockHtml; ?> | ||
</div> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* @author Andreas Knollmann | ||
* @copyright Copyright (c) 2014-2024 Softwareentwicklung Andreas Knollmann | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT | ||
*/ | ||
|
||
use Infrangible\CatalogAttributeLandingPage\Block\Page; | ||
|
||
/** @var Page $block */ | ||
$image = $block->getPage()->getImage(); | ||
$imagePosition = $block->getImagePosition(); | ||
$description = $block->getPage()->getDescription(); | ||
$logo = $block->getPage()->getLogo(); | ||
?> | ||
|
||
<?php if ($image && $imagePosition === 'description'): ?> | ||
<div class="category-image"><img src="<?php echo $block->getPage()->getImageUrl(); ?>" alt="<?php echo $block->getHeadline(); ?>" title="<?php echo $block->getHeadline(); ?>" class="image"/></div> | ||
<?php endif; ?> | ||
|
||
<?php if ($description) :?> | ||
<div class="category-description"> | ||
<?php if ($logo): ?> | ||
<img src="<?php echo $block->getPage()->getLogoUrl(); ?>" class="category-logo" alt="<?php echo $block->getHeadline(); ?>" title="<?php echo $block->getHeadline(); ?>" /> | ||
<?php endif; ?> | ||
<?= /* @noEscape */ $description; ?> | ||
</div> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* @author Andreas Knollmann | ||
* @copyright Copyright (c) 2014-2024 Softwareentwicklung Andreas Knollmann | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT | ||
*/ | ||
|
||
use Infrangible\CatalogAttributeLandingPage\Block\Page; | ||
|
||
/** @var Page $block */ | ||
$image = $block->getPage()->getImage(); | ||
$imagePosition = $block->getImagePosition(); | ||
?> | ||
|
||
<?php if ($image && $imagePosition === 'product_list'): ?> | ||
<div class="category-image"><img src="<?php echo $block->getPage()->getImageUrl(); ?>" alt="<?php echo $block->getHeadline(); ?>" title="<?php echo $block->getHeadline(); ?>" class="image"/></div> | ||
<?php endif; ?> |