Commit 738cdd69 authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Move icon to sidebar

parent b7d2a1aa
...@@ -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()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment