Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b010b882
authored
2011-06-16 13:26:26 +0000
by
Chris Boden
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixed select function to work as intended
1 parent
cc4388cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
com/HTML/HTML.php
com/HTML/HTML.php
View file @
b010b88
<?php
namespace
Tz\WordPress\Tools\HTML
;
function
select_opts
(
Array
$options
,
$selected
=
null
,
$echo
=
tru
e
)
{
function
select_opts
(
Array
$options
,
$selected
=
null
,
$echo
=
fals
e
)
{
$return
=
''
;
foreach
(
$options
as
$val
=>
&
$label
)
{
...
...
@@ -15,7 +15,11 @@ function select_opts(Array $options, $selected = null, $echo = true) {
}
}
if
(
$echo
)
{
echo
$return
;
}
else
{
return
$return
;
}
}
function
select_opts_provinces
(
$selected
=
null
,
$echo
=
true
)
{
...
...
Please
register
or
sign in
to post a comment