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-customer
view
frontend
templates
widget
gender.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
10
?>
11
<div
class
=
"field gender<?php if ($block->isRequired()) echo ' required' ?>"
>
12
<label
class
=
"label"
for
=
"<?= $block->escapeHtmlAttr($block->getFieldId('gender')) ?>"
><span><?=
$block
->escapeHtml(
__
(
'Gender'
)) ?></span></label>
13
<div
class
=
"control"
>
14
<select
id
=
"<?= $block->escapeHtmlAttr($block->getFieldId('gender')) ?>"
name
=
"<?= $block->escapeHtmlAttr($block->getFieldName('gender')) ?>"
title=
"<?= $block->escapeHtmlAttr(__('Gender')) ?>"
<?php
if
(
$block
->isRequired()):?>
class
=
"validate-select"
data-validate=
"{required:true}"
<?php
endif
; ?>>
15
<?php
$options
=
$block
->getGenderOptions(); ?>
16
<?php
$value
=
$block
->getGender();?>
17
<?php
foreach
(
$options
as
$option
):?>
18
<option
value
=
"<?= $block->escapeHtmlAttr($option->getValue()) ?>"
<?php
if
(
$option
->getValue() ==
$value
) echo
' selected="selected"'
?>><?=
$block
->escapeHtml(
__
(
$option
->getLabel())) ?></option>
19
<?php
endforeach
;?>
20
</select>
21
</div>
22
</div>
value
$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
endforeach
foreach( $this->main as $item) endforeach
Definition:
side-menu.phtml:10
__
__()
Definition:
__.php:13
$block
$block
Definition:
block.php:8
name
$value
$value
Definition:
gender.phtml:16
$options
$options
Definition:
gender.phtml:15
endif
if( $block->isRequired()) echo ' required' ?>"> <label class if ( $block->isRequired()) endif
Definition:
gender.phtml:14
$option
$option
Definition:
product_configurable_with_single_child.php:38