Commit 7d0f0d58 authored by Jonathan Esk-Riddell's avatar Jonathan Esk-Riddell 🏄
Browse files

add icon

parent a34115e0
......@@ -171,6 +171,8 @@ EOT;
function printPage($app, $category, $url_dir)
{
$url_split = explode('/', $_SERVER['REQUEST_URI']);
$url_dir = $url_split[1];
//Print screenshot or dummy "no screenshot available" image
$screenshots = $app->getScreenshots();
if (sizeof($screenshots) === 0) {
......@@ -221,7 +223,7 @@ function printPage($app, $category, $url_dir)
}
print '<div itemprop="description">';
print '<div class="app-icon"><img src="/' . $url_dir . '/icons/'.$app->icon().'" alt="'.$app->name().' Icon" /></div>';
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