Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog-widget
view
adminhtml
templates
product
widget
conditions.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
11
$element
=
$block
->getElement();
12
$fieldId
=
$element
->getHtmlContainerId() ?
' id="'
.
$block
->escapeHtmlAttr(
$element
->getHtmlContainerId()) .
'"'
:
''
;
13
$fieldClass
=
'field admin__field field-'
.
$block
->escapeHtmlAttr(
$element
->getId()) .
' '
14
.
$block
->escapeHtmlAttr(
$element
->getCssClass());
15
$fieldClass
.=
$element
->getRequired() ?
' required'
:
''
;
16
$fieldAttributes
=
$fieldId
.
' class="'
.
$fieldClass
.
'" '
17
.
$block
->getUiId(
'form-field'
,
$block
->escapeHtmlAttr(
$element
->getId()));
18
?>
19
<div<?=
/* @noEscape */
$fieldAttributes
?>>
20
<?=
$element
->getLabelHtml() ?>
21
<div
class
=
"control admin__field-control"
>
22
<div
class
=
"rule-tree"
>
23
<div
class
=
"rule-tree-wrapper"
>
24
<?=
$block
->getInputHtml() ?>
25
</div>
26
</div>
27
</div>
28
</div>
29
30
31
<script>
32
require([
33
"Magento_Rule/rules"
,
34
"prototype"
35
],
function
(VarienRulesForm){
36
window.<?=
$block
->escapeJs(
$block
->getHtmlId()) ?> =
new
VarienRulesForm(
'<?= $block->escapeJs($block->getHtmlId()) ?>'
,
'<?= $block->escapeUrl($block->getNewChildUrl()) ?>'
);
37
});
38
</script>
$element
$element
Definition:
conditions.phtml:11
$block
$block
Definition:
block.php:8
$fieldId
$fieldId
Definition:
conditions.phtml:12
$fieldAttributes
$fieldAttributes
Definition:
conditions.phtml:16
$fieldClass
$fieldClass
Definition:
conditions.phtml:13