Browse Source

Fix indentation

pull/14/head
falkTX 5 years ago
parent
commit
993e3e9f4c
2 changed files with 32 additions and 32 deletions
  1. +16
    -16
      Repositories:Applications.php
  2. +16
    -16
      Repositories:Plugins.php

+ 16
- 16
Repositories:Applications.php View File

@@ -11,22 +11,22 @@ function endsWith($haystack, $needle) {

function print_app($package, $screenshot, $name, $category, $details) {

if (! endsWith($screenshot, '.jpg')) {
$screenshot = $screenshot . '.png';
}
echo
'<table><tr><td align="center"><p>
<a href="' . $ROOT . '/screenshots/' . $screenshot . '">
<img src="screenshots/thumb/' . $screenshot . '" alt="' . $screenshot . '" class="img_thumb_150"/>
</a></p></td><td><p><b>
<a href="apt://' . $package . '" style="color: rgb(230,230,100);">' . $name . '</a></b> (' . $category . ')<br/>';
for ($i = 0, $count = count($details); $i < $count; $i++) {
echo $details[$i] . '<br>';
}
echo '</p></td></tr></table>';
if (! endsWith($screenshot, '.jpg')) {
$screenshot = $screenshot . '.png';
}
echo
'<table><tr><td align="center"><p>
<a href="' . $ROOT . '/screenshots/' . $screenshot . '">
<img src="screenshots/thumb/' . $screenshot . '" alt="' . $screenshot . '" class="img_thumb_150"/>
</a></p></td><td><p><b>
<a href="apt://' . $package . '" style="color: rgb(230,230,100);">' . $name . '</a></b> (' . $category . ')<br/>';
for ($i = 0, $count = count($details); $i < $count; $i++) {
echo $details[$i] . '<br>';
}
echo '</p></td></tr></table>';

}



+ 16
- 16
Repositories:Plugins.php View File

@@ -11,22 +11,22 @@ function endsWith($haystack, $needle) {

function print_plugin($package, $screenshot, $name, $category, $details) {

if (! endsWith($screenshot, '.jpg')) {
$screenshot = $screenshot . '.png';
}
echo
'<table><tr><td align="center"><p>
<a href="' . $ROOT . '/screenshots/' . $screenshot . '">
<img src="screenshots/thumb/' . $screenshot . '" alt="' . $screenshot . '" class="img_thumb_150"/>
</a></p></td><td><p><b>
<a href="apt://' . $package . '" style="color: rgb(100,230,100);">' . $name . '</a></b> (' . $category . ')<br/>';
for ($i = 0, $count = count($details); $i < $count; $i++) {
echo $details[$i] . '<br>';
}
echo '</p></td></tr></table>';
if (! endsWith($screenshot, '.jpg')) {
$screenshot = $screenshot . '.png';
}
echo
'<table><tr><td align="center"><p>
<a href="' . $ROOT . '/screenshots/' . $screenshot . '">
<img src="screenshots/thumb/' . $screenshot . '" alt="' . $screenshot . '" class="img_thumb_150"/>
</a></p></td><td><p><b>
<a href="apt://' . $package . '" style="color: rgb(100,230,100);">' . $name . '</a></b> (' . $category . ')<br/>';
for ($i = 0, $count = count($details); $i < $count; $i++) {
echo $details[$i] . '<br>';
}
echo '</p></td></tr></table>';

}



Loading…
Cancel
Save