Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
labels.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 
12 <div class="fieldset-wrapper admin__collapsible-block-wrapper opened" id="manage-titles-wrapper">
13  <div class="fieldset-wrapper-title">
14  <strong class="admin__collapsible-title" data-toggle="collapse" data-target="#manage-titles-content">
15  <span><?= /* @escapeNotVerified */ __('Manage Titles (Size, Color, etc.)') ?></span>
16  </strong>
17  </div>
18  <div class="fieldset-wrapper-content in collapse" id="manage-titles-content">
19  <fieldset class="admin__fieldset fieldset">
20  <div class="admin__control-table-wrapper">
21  <table class="admin__control-table" id="attribute-labels-table">
22  <thead>
23  <tr>
24  <?php foreach ($block->getStores() as $_store): ?>
25  <th class="col-store-view"><?= /* @escapeNotVerified */ $_store->getName() ?></th>
26  <?php endforeach; ?>
27  </tr>
28  </thead>
29  <tbody>
30  <tr>
31  <?php $_labels = $block->getLabelValues() ?>
32  <?php foreach ($block->getStores() as $_store): ?>
33  <td class="col-store-view">
34  <input class="input-text<?php if ($_store->getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID): ?> required-option<?php endif; ?>" type="text" name="frontend_label[<?= /* @escapeNotVerified */ $_store->getId() ?>]" value="<?= $block->escapeHtml($_labels[$_store->getId()]) ?>"<?php if ($block->getReadOnly()):?> disabled="disabled"<?php endif;?>/>
35  </td>
36  <?php endforeach; ?>
37  </tr>
38  </tbody>
39  </table>
40  </div>
41  </fieldset>
42  </div>
43 </div>
$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
__()
Definition: __.php:13
$_labelsforeach( $block->getStores() as $_store)($_store->getId()==\Magento\Store\Model\Store::DEFAULT_STORE_ID) if($block->getReadOnly()) endforeach
Definition: labels.phtml:34
$block
Definition: block.php:8
endif
Definition: 404.phtml:116