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/find_my_part.phtml
<?php
/**
 * 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]>
 */
/** @var Cnc\CsBlock\Block\FindMyPart $block */
$findPieceName = $block->getBlockName();
$selectorLabels = $block->getSelectorsLabels();
$findPieceLinkLabel = $block->getCtaButtonLabel();
$firstSelectorCategories = $block->getFirstSelectorCategories();
?>
<section class="cs-block find-piece" data-displayed-on-scroll="top">
    <div class="cs-block__container find-piece__container">
        <h2 class="cs-block__title"><?= $block->escapeHtml($findPieceName) ?></h2>
        <div class="cs-block__content">
            <form action="">
                <fieldset>
                    <div class="fields category-select-container">
                        <!-- Add classname "is-valid" on category-select-container__item to enable next select-->
                        <div class="field category-select-container__item cnc-first-selector">
                            <select name="" id="cnc-first-level-categories">
                                <option selected="selected"><?= $block->escapeHtml($selectorLabels[1]) ?></option>
                                <?php if ($firstSelectorCategories && count($firstSelectorCategories)): ?>
                                    <?php foreach ($firstSelectorCategories as $firstSelectorCategory): ?>
                                        <option value="<?= $block->escapeHtml($firstSelectorCategory->getId()); ?>">
                                            <?= $block->escapeHtml($firstSelectorCategory->getName()); ?>
                                        </option>
                                    <?php endforeach; ?>
                                <?php endif; ?>
                            </select>
                        </div>
                        <div class="field category-select-container__item cnc-second-selector">
                            <select name="" id="cnc-second-level-categories">
                                <option selected="selected"><?= $block->escapeHtml($selectorLabels[2]) ?></option>
                            </select>
                        </div>
                        <div class="field category-select-container__item cnc-third-selector">
                            <select name="" id="cnc-third-level-categories">
                                <option selected="selected"><?= $block->escapeHtml($selectorLabels[3]) ?></option>
                            </select>
                        </div>
                    </div>
                    <a id="cnc-selected-category-link" class="btn btn--pink btn-primary disabled" href="#">
                        <?= $block->escapeHtml($findPieceLinkLabel); ?>
                    </a>
                </fieldset>
            </form>
        </div>
    </div>
</section>
<script type="text/x-magento-init">
    {
        "*": {
            "Cnc_CsBlock/js/find-my-part": {
                "selectorCategoriesUrl":
                    "<?= $block->escapeJs($block->escapeUrl($block->getSelectorCategoriesUrl())) ?>",
                "secondSelectorPlaceholder": "<?= $block->escapeHtml($selectorLabels[2]) ?>",
                "thirdSelectorPlaceholder": "<?= $block->escapeHtml($selectorLabels[3]) ?>"
            }
        }
    }
</script>

Spamworldpro Mini