File tree Expand file tree Collapse file tree 4 files changed +42
-2
lines changed
Backend/Controller/Adminhtml/Noroute
Catalog/view/frontend/templates/product/view Expand file tree Collapse file tree 4 files changed +42
-2
lines changed Original file line number Diff line number Diff line change 88
99class Index extends \Magento \Backend \App \Action
1010{
11+ /**
12+ * Array of actions which can be processed without secret key validation
13+ *
14+ * @var string[]
15+ */
16+ protected $ _publicActions = ['index ' ];
17+
1118 /**
1219 * @var \Magento\Framework\View\Result\PageFactory
1320 */
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ $_attributeLabel = $block->getAtLabel();
2222$ _attributeType = $ block ->getAtType ();
2323$ _attributeAddAttribute = $ block ->getAddAttribute ();
2424
25+ $ renderLabel = true ;
26+ // if defined as 'none' in layout, do not render
27+ if ($ _attributeLabel == 'none ' ) {
28+ $ renderLabel = false ;
29+ }
30+
2531if ($ _attributeLabel && $ _attributeLabel == 'default ' ) {
2632 $ _attributeLabel = $ _product ->getResource ()->getAttribute ($ _code )->getStoreLabel ();
2733}
@@ -31,10 +37,9 @@ if ($_attributeType && $_attributeType == 'text') {
3137 $ _attributeValue = $ _helper ->productAttribute ($ _product , $ _product ->$ _call (), $ _code );
3238}
3339?>
34-
3540<?php if ($ _attributeValue ): ?>
3641<div class="product attribute <?= /* @escapeNotVerified */ $ _className ?> ">
37- <?php if ($ _attributeLabel != ' none ' ): ?> <strong class="type"><?= /* @escapeNotVerified */ $ _attributeLabel ?> </strong><?php endif ; ?>
42+ <?php if ($ renderLabel ): ?> <strong class="type"><?= /* @escapeNotVerified */ $ _attributeLabel ?> </strong><?php endif ; ?>
3843 <div class="value" <?= /* @escapeNotVerified */ $ _attributeAddAttribute ?> ><?= /* @escapeNotVerified */ $ _attributeValue ?> </div>
3944</div>
4045<?php endif ; ?>
Original file line number Diff line number Diff line change @@ -18,6 +18,20 @@ class Collection extends AbstractCollection
1818 */
1919 protected $ _idFieldName = 'block_id ' ;
2020
21+ /**
22+ * Event prefix
23+ *
24+ * @var string
25+ */
26+ protected $ _eventPrefix = 'cms_block_collection ' ;
27+
28+ /**
29+ * Event object
30+ *
31+ * @var string
32+ */
33+ protected $ _eventObject = 'block_collection ' ;
34+
2135 /**
2236 * Perform operations after collection load
2337 *
Original file line number Diff line number Diff line change @@ -25,6 +25,20 @@ class Collection extends AbstractCollection
2525 */
2626 protected $ _previewFlag ;
2727
28+ /**
29+ * Event prefix
30+ *
31+ * @var string
32+ */
33+ protected $ _eventPrefix = 'cms_page_collection ' ;
34+
35+ /**
36+ * Event object
37+ *
38+ * @var string
39+ */
40+ protected $ _eventObject = 'page_collection ' ;
41+
2842 /**
2943 * Define resource model
3044 *
You can’t perform that action at this time.
0 commit comments