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/vendor/amasty/feed/view/adminhtml/templates/googlewizard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/amasty/feed/view/adminhtml/templates/googlewizard/content.phtml
<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Product Feed for Magento 2
 */
    /**
     * @var \Amasty\Feed\Block\Adminhtml\GoogleWizard\Edit\Tab\Content\Element $block
     */
    $element = $block->getElement();
    $value       = $element->getValue();
    $htmlId      = $element->getHtmlId();
    $htmlClass   = $element->getClass();
    $htmlName    = $element->getName();
    $htmlNote    = $element->getNote();
    $readonly    = $element->getReadonly();
?>
<?php if ($htmlNote): ?>
    <p><?= $block->escapeHtml(__($htmlNote->getText())); ?></p>
<?php endif; ?>
<table class="data border data-grid">
    <thead>
        <tr>
            <th class="data-grid-th _sortable not-sort"><?= $block->escapeHtml(__('Header')); ?></th>
            <th class="data-grid-th _sortable not-sort"><?= $block->escapeHtml(__('Attribute')); ?></th>
        </tr>
    </thead>
    <tbody>
    <?php foreach ($value as $idx => $element): ?>
        <tr>
            <td>
                <div><?= $block->escapeHtml($element->getName()); ?></div>
                <small><?= $block->escapeHtml($element->getDescription()); ?></small>
            </td>
            <td>
                <?php if ($idx !== 'condition'): ?>
                    <select name="<?= $block->escapeHtml($htmlName); ?>[<?= $block->escapeHtml($idx); ?>][attribute]"
                            id="amasty_feed_content_attributes_<?= $block->escapeHtml($idx);?>">
                        <?php if (!$element->getRequired()): ?>
                            <option value=''><?= $block->escapeHtml(__('None')); ?></option>
                        <?php endif;?>

                        <?php foreach ($block->getAttributes() as $type => $config): ?>
                            <?php $label = $config['label']; ?>
                            <optgroup label="<?= $block->escapeHtml($label); ?>">
                                <?php foreach ($config['options'] as $value => $label): ?>
                                    <?php $selected = $block->isSelectedAttribute($element, $value); ?>

                                    <option<?= ($selected ? ' selected' : ''); ?>
                                            value="<?= $block->escapeHtml($value); ?>">
                                        <?= $block->escapeHtml($label); ?>
                                    </option>

                                <?php endforeach; ?>
                            </optgroup>
                        <?php endforeach; ?>
                    </select>
                <?php else: ?>
                    <input type="text" value="<?= $block->escapeHtml($element->getValue()); ?>"
                           name="<?= $block->escapeHtml($htmlName); ?>[<?= $block->escapeHtml($idx) ?>][attribute]"
                           id="amasty_feed_content_attributes_<?= $block->escapeHtml($idx); ?>"/>
                <?php endif; ?>
            </td>
        </tr>
    <?php endforeach; ?>
    </tbody>
</table>

Spamworldpro Mini