diff --git a/Repositories:Applications.php b/Repositories:Applications.php index 997df0a..347a789 100644 --- a/Repositories:Applications.php +++ b/Repositories:Applications.php @@ -11,22 +11,22 @@ function endsWith($haystack, $needle) { function print_app($package, $screenshot, $name, $category, $details) { -if (! endsWith($screenshot, '.jpg')) { - $screenshot = $screenshot . '.png'; -} - -echo -'

- -' . $screenshot . ' -

-' . $name . ' (' . $category . ')
'; - -for ($i = 0, $count = count($details); $i < $count; $i++) { - echo $details[$i] . '
'; -} - -echo '

'; + if (! endsWith($screenshot, '.jpg')) { + $screenshot = $screenshot . '.png'; + } + + echo + '

+ + ' . $screenshot . ' +

+ ' . $name . ' (' . $category . ')
'; + + for ($i = 0, $count = count($details); $i < $count; $i++) { + echo $details[$i] . '
'; + } + + echo '

'; } diff --git a/Repositories:Plugins.php b/Repositories:Plugins.php index 48d7a5c..b3ed1fe 100644 --- a/Repositories:Plugins.php +++ b/Repositories:Plugins.php @@ -11,22 +11,22 @@ function endsWith($haystack, $needle) { function print_plugin($package, $screenshot, $name, $category, $details) { -if (! endsWith($screenshot, '.jpg')) { - $screenshot = $screenshot . '.png'; -} - -echo -'

- -' . $screenshot . ' -

-' . $name . ' (' . $category . ')
'; - -for ($i = 0, $count = count($details); $i < $count; $i++) { - echo $details[$i] . '
'; -} - -echo '

'; + if (! endsWith($screenshot, '.jpg')) { + $screenshot = $screenshot . '.png'; + } + + echo + '

+ + ' . $screenshot . ' +

+ ' . $name . ' (' . $category . ')
'; + + for ($i = 0, $count = count($details); $i < $count; $i++) { + echo $details[$i] . '
'; + } + + echo '

'; }