Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
a9029ddf
Commit
a9029ddf
authored
Jul 02, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change form and html class to use html5 style elements.
parent
4e4ca091
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
form.php
system/form.php
+1
-1
html.php
system/html.php
+3
-3
No files found.
system/form.php
View file @
a9029ddf
...
@@ -317,7 +317,7 @@ class Form {
...
@@ -317,7 +317,7 @@ class Form {
$attributes
[
'value'
]
=
$value
;
$attributes
[
'value'
]
=
$value
;
$attributes
[
'id'
]
=
static
::
id
(
$name
,
$attributes
);
$attributes
[
'id'
]
=
static
::
id
(
$name
,
$attributes
);
return
'<input'
.
HTML
::
attributes
(
$attributes
)
.
'
/
>'
.
PHP_EOL
;
return
'<input'
.
HTML
::
attributes
(
$attributes
)
.
'>'
.
PHP_EOL
;
}
}
/**
/**
...
...
system/html.php
View file @
a9029ddf
...
@@ -32,7 +32,7 @@ class HTML {
...
@@ -32,7 +32,7 @@ class HTML {
*/
*/
public
static
function
style
(
$url
,
$media
=
'all'
)
public
static
function
style
(
$url
,
$media
=
'all'
)
{
{
return
'<link href="'
.
static
::
entities
(
URL
::
to_asset
(
$url
))
.
'" rel="stylesheet" type="text/css" media="'
.
$media
.
'"
/
>'
.
PHP_EOL
;
return
'<link href="'
.
static
::
entities
(
URL
::
to_asset
(
$url
))
.
'" rel="stylesheet" type="text/css" media="'
.
$media
.
'">'
.
PHP_EOL
;
}
}
/**
/**
...
@@ -146,7 +146,7 @@ class HTML {
...
@@ -146,7 +146,7 @@ class HTML {
public
static
function
image
(
$url
,
$alt
=
''
,
$attributes
=
array
())
public
static
function
image
(
$url
,
$alt
=
''
,
$attributes
=
array
())
{
{
$attributes
[
'alt'
]
=
static
::
entities
(
$alt
);
$attributes
[
'alt'
]
=
static
::
entities
(
$alt
);
return
'<img src="'
.
static
::
entities
(
URL
::
to_asset
(
$url
))
.
'"'
.
static
::
attributes
(
$attributes
)
.
'
/
>'
;
return
'<img src="'
.
static
::
entities
(
URL
::
to_asset
(
$url
))
.
'"'
.
static
::
attributes
(
$attributes
)
.
'>'
;
}
}
/**
/**
...
@@ -157,7 +157,7 @@ class HTML {
...
@@ -157,7 +157,7 @@ class HTML {
*/
*/
public
static
function
breaks
(
$count
=
1
)
public
static
function
breaks
(
$count
=
1
)
{
{
return
str_repeat
(
'<br
/
>'
,
$count
);
return
str_repeat
(
'<br>'
,
$count
);
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment