Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
options.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 // @deprecated
9 ?>
10 <div class="entry-edit-head">
11  <h4 class="icon-head head-edit-form fieldset-legend"><?= $block->escapeHtml(__('Assigned Options')) ?></h4>
12 </div>
13 <fieldset id="options_form">
14 <?php if (!$options): ?>
15  <?php for ($_i = 1; $_i <= 5; $_i++): ?>
16  <span class="field-row">
17  <label for="option_<?= /* @noEscape */ $_i ?>"><?= $block->escapeHtml(__('Option Title:')) ?></label>
18  <input id="option_<?= /* @noEscape */ $_i ?>" name="option[<?= /* @noEscape */ $_i ?>][code]" value="<?= /* @noEscape */ $_i ?>" class="input-text" type="text" />
19  </span>
20  <?php endfor; ?>
21 <?php elseif ($options->getSize() > 0): ?>
22  <?php foreach ($options->getItems() as $_item): ?>
23  <span class="field-row">
24  <label for="option_<?= $block->escapeHtmlAttr($_item->getId()) ?>"><?= $block->escapeHtml(__('Option Title:')) ?></label>
25  <input id="option_<?= $block->escapeHtmlAttr($_item->getId()) ?>" name="option[<?= $block->escapeHtmlAttr($_item->getId()) ?>][code]" value="<?= $block->escapeHtmlAttr($_item->getCode()) ?>" class="input-text" type="text" />
26  </span>
27  <?php endforeach; ?>
28 <?php endif; ?>
29 </fieldset>
if( $product->isSaleable())(count($options)) foreach( $options as $option)(! $option->getSelections()) endif
Definition: options.phtml:34
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
__()
Definition: __.php:13
$block
Definition: block.php:8
$_item
Definition: default.phtml:11
$options
Definition: options.phtml:15
if(empty( $_rates))( 'You must first configure currency options before being able to see currency rates.') ?></p ></div ><?php else() ?>"> <? $_i
Definition: matrix.phtml:30
endforeach
Definition: options.phtml:38