Browse
For agents
About
Age Gate
/
3.7.3
Age Gate
v3.7.3
Switch version
3.7.3
trunk
1.0.0
1.0.1
1.1.0
1.2.0
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.4.0
1.4.1
1.4.10
1.4.11
1.4.12
1.4.13
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7
1.4.8
All 113 releases
Overview
Code
age-gate
/
src
/
Resources
/
views
/
admin
/
partials
/
fields
/
input.php
input.php
in Age Gate 3.7.3, at src/Resources/views/admin/partials/fields/input.php
8 lines
609 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
$
this
->
layout
(
'
partials/fields/wrapper
'
,
[
'
field
'
=>
$
field
,
'
lang
'
=>
$
lang
??
false
]
)
?
>
2
3
<
?
php
$
this
->
start
(
'
input
'
)
?
>
4
5
<
input
type
=
"
<?php echo esc_attr(
$
field
['type']) ?>
"
name
=
"
<?php echo esc_attr(
$
this
->
form_key
(
$
field_prefix
. '.' .
$
name
)) ?>
"
id
=
"
<?php echo esc_attr(
$
this
->
form_id
(
$
field_prefix
. '.' .
$
name
)) ?>
"
<
?
php
echo
html_build_attributes
(
$
field
[
'
attributes
'
]
??
[
]
)
?
>
value
=
"
<?php echo esc_attr(stripslashes(
$
data
[
$
name
]
?? (!empty(
$
lang
) ? '' :
$
field
['default'] ?? ''))) ?>
"
/
>
<
?
php
//
phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?
>
6
7
<
?
php
$
this
->
stop
(
)
?
>
8