Skip to content

Commit a097ade

Browse files
committed
closing tags
1 parent 5fa02a8 commit a097ade

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

src/WebApp/BootstrapTheme/DefaultLayout.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,34 @@ protected function getBootstrapUri() {
2121

2222
protected function renderLinks() {
2323
$webroot = $this->app->request->webRoot;
24-
$rc = '<link rel="stylesheet" href="'.$webroot.FontAwesome::getUri().'" type="text/css">'.
25-
'<link rel="stylesheet" href="'.$this->getBootstrapUri().'" type="text/css">';
24+
$rc = '<link rel="stylesheet" href="'.$webroot.FontAwesome::getUri().'" type="text/css"/>'.
25+
'<link rel="stylesheet" href="'.$this->getBootstrapUri().'" type="text/css"/>';
2626
if ($this->theme->hasFeature(BootstrapTheme::DATEPICKER)) {
27-
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('bootstrap-datepicker.min.css', TRUE).'" type="text/css">';
27+
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('bootstrap-datepicker.min.css', TRUE).'" type="text/css"/>';
2828
}
2929
if ($this->theme->hasFeature(BootstrapTheme::DATERANGEPICKER)) {
30-
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('bootstrap-daterangepicker.css', TRUE).'" type="text/css">';
30+
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('bootstrap-daterangepicker.css', TRUE).'" type="text/css"/>';
3131
}
3232
if ($this->theme->hasFeature(BootstrapTheme::MULTISELECT)) {
33-
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('filter-multi-select.css', TRUE).'" type="text/css">';
33+
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('filter-multi-select.css', TRUE).'" type="text/css"/>';
3434
}
3535
if ($this->theme->hasFeature(BootstrapTheme::FILEUPLOAD)) {
36-
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('bootstrap-datepicker.min.css', TRUE).'" type="text/css">';
36+
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('bootstrap-datepicker.min.css', TRUE).'" type="text/css"/>';
3737
}
3838
if ($this->theme->hasFeature(BootstrapTheme::MULTIIMAGEUPLOAD) || $this->theme->hasFeature(BootstrapTheme::IMAGEUPLOAD)) {
39-
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('multi-image-upload.css', TRUE).'" type="text/css">';
39+
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('multi-image-upload.css', TRUE).'" type="text/css"/>';
4040
}
4141
if ($this->theme->hasFeature(BootstrapTheme::REMOTESEARCH)) {
42-
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('remote-search.css', TRUE).'" type="text/css">';
42+
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('remote-search.css', TRUE).'" type="text/css"/>';
4343
}
4444
if ($this->theme->hasFeature(BootstrapTheme::DYNAMICFIELDS)) {
45-
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('dynamic-fields.css', TRUE).'" type="text/css">';
45+
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('dynamic-fields.css', TRUE).'" type="text/css"/>';
4646
}
4747
if ($this->theme->hasFeature(BootstrapTheme::CROPPERJS)) {
48-
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('cropper/cropper.min.css', TRUE).'" type="text/css">';
49-
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('cropper/cropper-ui.css', TRUE).'" type="text/css">';
48+
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('cropper/cropper.min.css', TRUE).'" type="text/css"/>';
49+
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('cropper/cropper-ui.css', TRUE).'" type="text/css"/>';
5050
}
51-
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('bootstrap.css', TRUE).'" type="text/css">';
51+
$rc .= '<link rel="stylesheet" href="'.Utils::getCssPath('bootstrap.css', TRUE).'" type="text/css"/>';
5252
$rc .= parent::renderLinks();
5353
return $rc;
5454
}

src/WebApp/BootstrapTheme/MmenuLayout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function getCssPath() {
4444

4545
protected function renderLinks() {
4646
$rc = parent::renderLinks();
47-
$rc .= '<link rel="stylesheet" href="'.$this->getCssPath().'" type="text/css">';
47+
$rc .= '<link rel="stylesheet" href="'.$this->getCssPath().'" type="text/css"/>';
4848
return $rc;
4949
}
5050

src/WebApp/DefaultTheme/DefaultLayout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public function __construct($theme, $page) {
1010
}
1111

1212
protected function renderLinks() {
13-
$rc = '<link rel="stylesheet" href="'.\WebApp\Utils::getCssBaseUrl().'/app.css" type="text/css">'.
14-
'<link rel="stylesheet" href="'.\TgFontAwesome\FontAwesome::getUri().'" type="text/css">';
13+
$rc = '<link rel="stylesheet" href="'.\WebApp\Utils::getCssBaseUrl().'/app.css" type="text/css"/>'.
14+
'<link rel="stylesheet" href="'.\TgFontAwesome\FontAwesome::getUri().'" type="text/css"/>';
1515
$rc .= parent::renderLinks();
1616
return $rc;
1717
}

src/WebApp/DefaultTheme/PaginationRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function renderShowAllCheck() {
8585
} else {
8686
$pageLink .= '&showAll=showAll';
8787
}
88-
return '<li class="page-item" style="padding:0.5em 1em;"><input id="paginationShowAll" type="checkbox" name="showAll" value="showAll"'.$checked.' onChange="webApp.showSpinner(); window.location=\''.htmlentities($pageLink).'\';"></input> <label for="paginationShowAll">'.I18N::_('show_all').'</label></li>';
88+
return '<li class="page-item" style="padding:0.5em 1em;"><input id="paginationShowAll" type="checkbox" name="showAll" value="showAll"'.$checked.' onChange="webApp.showSpinner(); window.location=\''.htmlentities($pageLink).'\';"> <label for="paginationShowAll">'.I18N::_('show_all').'</label></li>';
8989
}
9090

9191
}

src/WebApp/Layout.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function renderPage() {
2828
}
2929

3030
protected function renderDocumentBegin() {
31-
return '<!doctype html><html lang="'.I18N::$defaultLangCode.'">';
31+
return '<!DOCTYPE html><html lang="'.I18N::$defaultLangCode.'">';
3232
}
3333

3434
protected function renderDocumentEnd() {
@@ -52,7 +52,7 @@ protected function renderOtherHeader() {
5252
}
5353

5454
protected function renderMeta() {
55-
$rc = '<meta charset="utf-8">';
55+
$rc = '<meta charset="utf-8"/>';
5656

5757
// Meta
5858
$meta = $this->page->getMeta();
@@ -67,13 +67,13 @@ protected function renderMeta() {
6767

6868
foreach ($meta AS $name => $content) {
6969
$s = is_array($content) ? implode(',', $content) : $content;
70-
$rc .= '<meta name="'.$name.'" content="'.htmlentities($s).'">';
70+
$rc .= '<meta name="'.$name.'" content="'.htmlentities($s).'"/>';
7171
}
7272

7373
// Alternates
7474
foreach ($this->app->router->getLanguages() AS $key => $label) {
7575
if ($key != $this->app->request->language) {
76-
$rc .= '<meta name="alternate" hreflang="'.$key.'" content="'.htmlentities($this->app->router->getCanonicalPath(NULL, $key).$params).'">';
76+
$rc .= '<meta name="alternate" hreflang="'.$key.'" content="'.htmlentities($this->app->router->getCanonicalPath(NULL, $key).$params).'"/>';
7777
}
7878
}
7979

@@ -89,7 +89,7 @@ protected function renderLinks() {
8989
//if (strpos($file, '://') === FALSE) {
9090
// $rc .= '<link rel="stylesheet" href="'.Utils::getCssBaseUrl().'/'.$file.'" type="text/css">';
9191
//} else {
92-
$rc .= '<link rel="stylesheet" href="'.$file.'" type="text/css">';
92+
$rc .= '<link rel="stylesheet" href="'.$file.'" type="text/css"/>';
9393
//}
9494
}
9595
return $rc;

0 commit comments

Comments
 (0)