Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-forms
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-forms
Commits
f879cad8
Verified
Commit
f879cad8
authored
3 years ago
by
Bartek Jaskulski
Browse files
Options
Downloads
Patches
Plain Diff
fix: use classes separately in templates
parent
88cafd1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!28
release: 3.0.0
,
!19
Add strong typing for 3.0 version
Pipeline
#6764
passed with stages
in 2 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/input-submit.php
+4
-6
4 additions, 6 deletions
templates/input-submit.php
templates/input.php
+0
-1
0 additions, 1 deletion
templates/input.php
with
4 additions
and
7 deletions
templates/input-submit.php
+
4
−
6
View file @
f879cad8
...
...
@@ -13,16 +13,14 @@
<td
style=
"padding-left:0;"
>
<p
class=
"submit"
>
<input
<?php
if
(
$field
->
has_classes
()
)
:
?>
class=
"
<?php
echo
\esc_attr
(
$field
->
get_classes
()
);
?>
"
<?php
endif
;
?>
<?php
foreach
(
$field
->
get_attributes
(
[]
)
as
$key
=>
$value
)
:
?>
<?php
if
(
$field
->
has_classes
()
)
:
?>
class=
"
<?php
echo
\esc_attr
(
$field
->
get_classes
()
);
?>
"
<?php
endif
;
?>
<?php
foreach
(
$field
->
get_attributes
()
as
$key
=>
$value
)
:
?>
<?php
echo
\esc_attr
(
$key
);
?>
="
<?php
echo
\esc_attr
(
$value
);
?>
"
<?php
endforeach
;
?>
type=
"
<?php
echo
\esc_attr
(
$field
->
get_type
()
);
?>
"
name=
"
<?php
echo
\esc_attr
(
$name_prefix
);
?>
[
<?php
echo
\esc_attr
(
$field
->
get_name
()
);
?>
]"
id=
"
<?php
echo
\esc_attr
(
$field
->
get_id
()
);
?>
"
value=
"
<?php
echo
\esc_html
(
$field
->
get_label
()
);
?>
"
/>
</p>
...
...
This diff is collapsed.
Click to expand it.
templates/input.php
+
0
−
1
View file @
f879cad8
...
...
@@ -17,7 +17,6 @@ if ( $field->get_type() === 'checkbox' && $field->has_sublabel() ) :
<input
type=
"
<?php
echo
\esc_attr
(
$field
->
get_type
()
);
?>
"
name=
"
<?php
echo
\esc_attr
(
$name_prefix
)
.
'['
.
\esc_attr
(
$field
->
get_name
()
)
.
']'
;
?>
"
id=
"
<?php
echo
\esc_attr
(
$field
->
get_id
()
);
?>
"
<?php
if
(
$field
->
has_classes
()
)
:
?>
class=
"
<?php
echo
\esc_attr
(
$field
->
get_classes
()
);
?>
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment