Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AdminLTE renderer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
IML Open Source
AdminLTE renderer
Commits
357413ab
Commit
357413ab
authored
10 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch 'update_renderer_class' into 'main'
update type declarations See merge request
!19
parents
69013a0c
4b6a0825
Branches
Branches containing commit
No related tags found
1 merge request
!19
update type declarations
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
public_html/classes/htmlelements.class.php
+6
-6
6 additions, 6 deletions
public_html/classes/htmlelements.class.php
with
7 additions
and
6 deletions
.gitignore
+
1
−
0
View file @
357413ab
...
@@ -7,3 +7,4 @@ public_html/classes/lang.class.php
...
@@ -7,3 +7,4 @@ public_html/classes/lang.class.php
public_html/classes/pageinclude.class.php
public_html/classes/pageinclude.class.php
public_html/classes/render-adminlte_v2.4.class.php
public_html/classes/render-adminlte_v2.4.class.php
public_html/config/00_page.tpl.php
public_html/config/00_page.tpl.php
static/*
This diff is collapsed.
Click to expand it.
public_html/classes/htmlelements.class.php
+
6
−
6
View file @
357413ab
...
@@ -25,9 +25,9 @@ class htmlelements
...
@@ -25,9 +25,9 @@ class htmlelements
* set of auto generated icon prefixes
* set of auto generated icon prefixes
* @var array
* @var array
*/
*/
var
$_aIcons
=
array
(
var
$_aIcons
=
[
// 'fa-'=>'fa ',
// 'fa-'=>'fa ',
)
;
]
;
/**
/**
* label of an html tag (pseudo attribute)
* label of an html tag (pseudo attribute)
...
@@ -39,7 +39,7 @@ class htmlelements
...
@@ -39,7 +39,7 @@ class htmlelements
* hash of attributes and values of an html tag
* hash of attributes and values of an html tag
* @var array
* @var array
*/
*/
var
$_aAttributes
=
array
()
;
var
$_aAttributes
=
[]
;
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
...
@@ -166,7 +166,7 @@ class htmlelements
...
@@ -166,7 +166,7 @@ class htmlelements
* @param array $aAttributes attributes of the select tag
* @param array $aAttributes attributes of the select tag
* @return string
* @return string
*/
*/
public
function
getFormInput
(
$aAttributes
)
public
function
getFormInput
(
array
$aAttributes
)
:
string
{
{
$sTpl
=
'<input %s/>'
;
$sTpl
=
'<input %s/>'
;
$this
->
_setAttributes
(
$aAttributes
);
$this
->
_setAttributes
(
$aAttributes
);
...
@@ -191,12 +191,12 @@ class htmlelements
...
@@ -191,12 +191,12 @@ class htmlelements
* @param array $aOptions array for all option fields
* @param array $aOptions array for all option fields
* @return string
* @return string
*/
*/
public
function
getFormSelect
(
array
$aAttributes
,
array
$aOptions
=
array
())
public
function
getFormSelect
(
array
$aAttributes
,
array
$aOptions
=
[]):
string
{
{
// $sTpl = '<select %s>%s</select>';
// $sTpl = '<select %s>%s</select>';
if
(
!
count
(
$aOptions
))
{
if
(
!
count
(
$aOptions
))
{
return
false
;
return
''
;
}
}
$sOptions
=
''
;
$sOptions
=
''
;
foreach
(
$aOptions
as
$aOptionAttributes
)
{
foreach
(
$aOptions
as
$aOptionAttributes
)
{
...
...
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