Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Websites
KDE.org Applications Subsite
Commits
439e895f
Commit
439e895f
authored
Jun 21, 2019
by
Carl Schwan
🚴
Browse files
Merge branch 'moveicon' into 'master'
Move icon to sidebar See merge request websites/kde-org-applications!8
parents
b7d2a1aa
738cdd69
Changes
1
Hide whitespace changes
Inline
Side-by-side
applicationpage.php
View file @
439e895f
...
@@ -76,6 +76,7 @@ function printSidebar($app, $category, $development)
...
@@ -76,6 +76,7 @@ function printSidebar($app, $category, $development)
$content
=
''
;
$content
=
''
;
$url_split
=
explode
(
'/'
,
$_SERVER
[
'REQUEST_URI'
]);
$url_split
=
explode
(
'/'
,
$_SERVER
[
'REQUEST_URI'
]);
$url_dir
=
$url_split
[
1
];
$url_dir
=
$url_split
[
1
];
$content
.
=
'<div class="w-100"><img src="/'
.
$url_dir
.
'/icons/'
.
$app
->
icon
()
.
'" alt="'
.
$app
->
name
()
.
' Icon" width="64" height="64" class="d-block mx-auto" /></div>'
;
if
(
$app
->
hasHomepage
()
||
$app
->
hasKDEApps
())
{
if
(
$app
->
hasHomepage
()
||
$app
->
hasKDEApps
())
{
$content
.
=
'<div class="infobox"><strong>More about '
.
$app
->
name
()
.
'</strong>'
;
$content
.
=
'<div class="infobox"><strong>More about '
.
$app
->
name
()
.
'</strong>'
;
...
@@ -223,7 +224,6 @@ function printPage($app, $category)
...
@@ -223,7 +224,6 @@ function printPage($app, $category)
}
}
print
'<div itemprop="description">'
;
print
'<div itemprop="description">'
;
print
'<div class="app-icon"><img src="/'
.
$url_dir
.
'/icons/'
.
$app
->
icon
()
.
'" alt="'
.
$app
->
name
()
.
' Icon" width="64" height="64" style="margin: 1em;" /></div>'
;
print
$app
->
descriptionHtml
();
print
$app
->
descriptionHtml
();
print
'</div>'
;
print
'</div>'
;
if
(
$app
->
hasVersions
()
||
$app
->
hasAuthors
()
||
$app
->
hasLicense
())
{
if
(
$app
->
hasVersions
()
||
$app
->
hasAuthors
()
||
$app
->
hasLicense
())
{
...
...
Write
Preview
Supports
Markdown
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