Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/app/code/Cnc/CsBlock/view/frontend/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/old/app/code/Cnc/CsBlock/view/frontend/templates/categories_highlight.phtml
<?php
//phpcs:ignoreFile
/**
 * Copyright (c) 2020 Kaliop Digital Commerce (https://digitalcommerce.kaliop.com) All Rights Reserved.
 * https://opensource.org/licenses/OSL-3.0  Open Software License (OSL 3.0)
 * Cnc
 * Radosław Stępień <[email protected]> <[email protected]>
 */

use Cnc\CsBlock\Block\CategoriesHighlight;

/** @var CategoriesHighlight $block */
$categoriesHighlightTitle = $block->getBlockName();
$categoriesHighlightCtaLabel = $block->getCtaButtonLabel();
$categoriesHighlightCtaLink = $block->getCtaButtonLink();
$categoryBlocksTitles = $block->getBlocksNames();
$categoryBlocksImages = $block->getBlocksImages();
$categoryBlocksCategories = $block->getBlocksCategoriesLists();
$categoryBlocksCtaLabels = $block->getBlocksCtaLabels();
$categoryBlocksCtaLinks = $block->getBlocksCtaLinks();
$categoryBlocksCategoriesIcons = $block->getBlocksCategoriesIcons();
?>
<section class="cs-block categories-highlight" data-displayed-on-scroll="">
    <div class="cs-block__container categories-highlight__container">
        <h2 class="cs-block__title"><?= $block->escapeHtml($categoriesHighlightTitle) ?></h2>
        <div class="cs-block__content">
            <div class="categories-highlight-container" data-slideshow="">
                <?php for ($i = 1; $i <= CategoriesHighlight::BLOCKS_COUNT; $i++): ?>
                    <?php if (isset($categoryBlocksTitles[$i]) && !empty($categoryBlocksTitles[$i])): ?>
                    <div class="category-item">
                        <div class="category-item__header">
                            <span class="icon <?= isset($categoryBlocksCategoriesIcons[$i])
                                ? 'icon-' . $categoryBlocksCategoriesIcons[$i]
                                : '' ?>">
                                <?= html_entity_decode($block->escapeHtml($categoryBlocksImages[$i])); ?>
                            </span>
                            <h2 class="label title-2"><?= $block->escapeHtml($categoryBlocksTitles[$i]); ?></h2>
                        </div>
                        <div class="category-item__content">
                            <ul>
                                <?php foreach ($categoryBlocksCategories[$i] as $category): ?>
                                    <?php if ($category->getUrl() && $category->getName()): ?>
                                        <li>
                                            <a href="<?= $block->escapeHtml($category->getUrl()); ?>">
                                                <?= $block->escapeHtml($category->getName()) ?>
                                            </a>
                                        </li>
                                    <?php endif; ?>
                                <?php endforeach; ?>
                            </ul>
                        </div>
                        <div class="category-item__footer">
                            <?php if ($categoryBlocksCtaLinks[$i]): ?>
                                <a class="link-2"
                                   href="<?= $block->escapeHtml($categoryBlocksCtaLinks[$i]) ?>">
                                    <?= $block->escapeHtml($categoryBlocksCtaLabels[$i]) ?>
                                </a>
                            <?php endif; ?>
                        </div>
                    </div>
                    <?php endif; ?>
                <?php endfor; ?>
            </div>
            <?php if (!empty($categoriesHighlightCtaLink)): ?>
                <div class="a-center">
                    <a class="btn"
                       href="<?= $block->escapeHtml($categoriesHighlightCtaLink) ?>">
                        <?= $block->escapeHtml($categoriesHighlightCtaLabel) ?>
                    </a>
                </div>
            <?php endif; ?>
        </div>
    </div>
</section>

Spamworldpro Mini