Commit 439e895f authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Merge branch 'moveicon' into 'master'

Move icon to sidebar

See merge request websites/kde-org-applications!8
parents b7d2a1aa 738cdd69
......@@ -76,6 +76,7 @@ function printSidebar($app, $category, $development)
$content = '';
$url_split = explode('/', $_SERVER['REQUEST_URI']);
$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()) {
$content .= '<div class="infobox"><strong>More about '.$app->name().'</strong>';
......@@ -223,7 +224,6 @@ function printPage($app, $category)
}
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 '</div>';
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