File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
app/code/Magento/Catalog/view/frontend Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 94
94
<argument name =" at_call" xsi : type =" string" >getShortDescription</argument >
95
95
<argument name =" at_code" xsi : type =" string" >short_description</argument >
96
96
<argument name =" css_class" xsi : type =" string" >overview</argument >
97
- <argument name =" at_label" translate = " true " xsi : type =" string" >none</argument >
97
+ <argument name =" at_label" xsi : type =" string" >none</argument >
98
98
<argument name =" title" translate =" true" xsi : type =" string" >Overview</argument >
99
99
<argument name =" add_attribute" xsi : type =" string" >itemprop="description"</argument >
100
100
</arguments >
135
135
<argument name =" at_call" xsi : type =" string" >getDescription</argument >
136
136
<argument name =" at_code" xsi : type =" string" >description</argument >
137
137
<argument name =" css_class" xsi : type =" string" >description</argument >
138
- <argument name =" at_label" translate = " true " xsi : type =" string" >none</argument >
138
+ <argument name =" at_label" xsi : type =" string" >none</argument >
139
139
<argument name =" title" translate =" true" xsi : type =" string" >Details</argument >
140
140
</arguments >
141
141
</block >
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ $_attributeLabel = $block->getAtLabel();
22
22
$ _attributeType = $ block ->getAtType ();
23
23
$ _attributeAddAttribute = $ block ->getAddAttribute ();
24
24
25
+ $ renderLabel = true ;
26
+ // if defined as 'none' in layout, do not render
27
+ if ($ _attributeLabel == 'none ' ) {
28
+ $ renderLabel = false ;
29
+ }
30
+
25
31
if ($ _attributeLabel && $ _attributeLabel == 'default ' ) {
26
32
$ _attributeLabel = $ _product ->getResource ()->getAttribute ($ _code )->getStoreLabel ();
27
33
}
@@ -34,7 +40,7 @@ if ($_attributeType && $_attributeType == 'text') {
34
40
35
41
<?php if ($ _attributeValue ): ?>
36
42
<div class="product attribute <?= /* @escapeNotVerified */ $ _className ?> ">
37
- <?php if ($ _attributeLabel != __ ( ' none ' ) ): ?> <strong class="type"><?= /* @escapeNotVerified */ $ _attributeLabel ?> </strong><?php endif ; ?>
43
+ <?php if ($ renderLabel ): ?> <strong class="type"><?= /* @escapeNotVerified */ $ _attributeLabel ?> </strong><?php endif ; ?>
38
44
<div class="value" <?= /* @escapeNotVerified */ $ _attributeAddAttribute ?> ><?= /* @escapeNotVerified */ $ _attributeValue ?> </div>
39
45
</div>
40
46
<?php endif ; ?>
You can’t perform that action at this time.
0 commit comments