diff --git a/classes/votes.class.php b/classes/votes.class.php
index 17d8ba61..31e27fd6 100644
--- a/classes/votes.class.php
+++ b/classes/votes.class.php
@@ -11,11 +11,11 @@ public static function vote_link($GroupID, $Vote = '') {
if (!$LoggedUser['NoVoteLinks'] && check_perms('site_album_votes')) { ?>
Vote:
- ↑
- ↑
- ↓
- ↓
- x
+ ↑
+ ↑
+ ↓
+ ↓
+ x
}
}
@@ -63,7 +63,7 @@ public static function get_group_votes($GroupID) {
FROM torrents_votes
WHERE GroupID = $GroupID");
if ($DB->record_count() == 0) {
- $GroupVotes = array('Ups'=>0, 'Total'=>0);
+ $GroupVotes = array('Ups' => 0, 'Total' => 0);
} else {
$GroupVotes = $DB->next_record(MYSQLI_ASSOC, false);
}
diff --git a/sections/collages/artist_collage.php b/sections/collages/artist_collage.php
index a85436db..4f6e9b43 100644
--- a/sections/collages/artist_collage.php
+++ b/sections/collages/artist_collage.php
@@ -35,7 +35,7 @@
if ($Username) {
if (!isset($Users[$UserID])) {
- $Users[$UserID] = array('name'=>$Username, 'count'=>1);
+ $Users[$UserID] = array('name' => $Username, 'count' => 1);
} else {
$Users[$UserID]['count']++;
}
@@ -43,25 +43,23 @@
ob_start();
?>
-
-
- =$Artist['Name']?>
- |
-
-
- $ArtistTable.=ob_get_clean();
+
+ =$Artist['Name']?> |
+
+
+ $ArtistTable.= ob_get_clean();
ob_start();
?>
-
-
+
+
if ($Artist['Image']) { ?>
-
+
} else { ?>
- =$Artist['Name']?>
+ =$Artist['Name']?>
} ?>
-
-
+
+
$Collage[] = ob_get_clean();
}
@@ -72,7 +70,7 @@
}
// Silly hack for people who are on the old setting
-$CollageCovers = isset($LoggedUser['CollageCovers']) ? $LoggedUser['CollageCovers'] : 25 * (abs($LoggedUser['HideCollage'] - 1));
+$CollageCovers = (isset($LoggedUser['CollageCovers']) ? $LoggedUser['CollageCovers'] : 25 * (abs($LoggedUser['HideCollage'] - 1)));
$CollagePages = array();
// Pad it out
@@ -266,7 +264,7 @@
<< First |
< Prev |
for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) { ?>
- =$CollageCovers * $i + 1?>-=min($NumGroups,$CollageCovers * ($i + 1))?>=(($i != ceil($NumGroups / $CollageCovers) - 1) ? ' | ' : '')?>
+ =$CollageCovers * $i + 1?>-=min($NumGroups, $CollageCovers * ($i + 1))?>=(($i != ceil($NumGroups / $CollageCovers) - 1) ? ' | ' : '')?>
} ?>
|
Next >
@@ -281,7 +279,7 @@
Artists |
- =$ArtistTable?>
+=$ArtistTable?>
diff --git a/sections/collages/torrent_collage.php b/sections/collages/torrent_collage.php
index 7e29daa4..df7481ca 100644
--- a/sections/collages/torrent_collage.php
+++ b/sections/collages/torrent_collage.php
@@ -88,7 +88,7 @@
if ($GroupVanityHouse) {
$DisplayName .= ' [VH]';
}
- $SnatchedGroupClass = $GroupFlags['IsSnatched'] ? ' snatched_group' : '';
+ $SnatchedGroupClass = ($GroupFlags['IsSnatched'] ? ' snatched_group' : '');
// Start an output buffer, so we can store this output in $TorrentTable
ob_start();
@@ -107,12 +107,14 @@
=$DisplayName?>
- if (Bookmarks::has_bookmarked('torrent', $GroupID)) {
+ // PHP start tag is indented for proper formatting of generated HTML
+ if (Bookmarks::has_bookmarked('torrent', $GroupID)) {
echo "Unbookmark";
} else {
echo "Bookmark";
- } ?>
-
+ }
+ echo "\n";
+ echo Votes::vote_link($GroupID, $UserVotes[$GroupID]['Type']); ?>
=$TorrentTags->format()?>
|
@@ -131,15 +133,15 @@
if ($Torrent['Remastered'] && !$Torrent['RemasterYear']) {
$FirstUnknown = !isset($FirstUnknown);
}
- $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
+ $SnatchedTorrentClass = ($Torrent['IsSnatched'] ? ' snatched_torrent' : '');
if ($Torrent['RemasterTitle'] != $LastRemasterTitle || $Torrent['RemasterYear'] != $LastRemasterYear ||
$Torrent['RemasterRecordLabel'] != $LastRemasterRecordLabel || $Torrent['RemasterCatalogueNumber'] != $LastRemasterCatalogueNumber || $FirstUnknown || $Torrent['Media'] != $LastMedia) {
$EditionID++;
?>
-
- − =Torrents::edition_string($Torrent, $Group)?> |
-
+
+ − =Torrents::edition_string($Torrent, $Group)?> |
+
}
$LastRemasterTitle = $Torrent['RemasterTitle'];
@@ -148,22 +150,22 @@
$LastRemasterCatalogueNumber = $Torrent['RemasterCatalogueNumber'];
$LastMedia = $Torrent['Media'];
?>
-
-
-
- DL
+
+
+
+ DL
if (Torrents::can_use_token($Torrent)) { ?>
- | FL
+ | FL
} ?>
- | RP
-
- » =Torrents::torrent_info($Torrent)?>
- |
- =Format::get_size($Torrent['Size'])?> |
- =number_format($Torrent['Snatched'])?> |
- >=number_format($Torrent['Seeders'])?> |
- =number_format($Torrent['Leechers'])?> |
-
+ | RP
+
+ » =Torrents::torrent_info($Torrent)?>
+ |
+ =Format::get_size($Torrent['Size'])?> |
+ =number_format($Torrent['Snatched'])?> |
+ >=number_format($Torrent['Seeders'])?> |
+ =number_format($Torrent['Leechers'])?> |
+
}
} else {
@@ -183,33 +185,34 @@
} elseif ($Torrent['PersonalFL']) {
$DisplayName .= ' ' . Format::torrent_label('Personal Freeleech!');
}
- $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
+ $SnatchedTorrentClass = ($Torrent['IsSnatched'] ? ' snatched_torrent' : '');
?>
-
- |
-
-
-
- |
-
-
- DL
+
+ |
+
+
+
+ |
+
+
+ DL
if (Torrents::can_use_token($Torrent)) { ?>
- | FL
+ | FL
} ?>
- | RP
-
- =$DisplayName?>
- =$TorrentTags->format()?>
- |
- =Format::get_size($Torrent['Size'])?> |
- =number_format($Torrent['Snatched'])?> |
- >=number_format($Torrent['Seeders'])?> |
- =number_format($Torrent['Leechers'])?> |
-
+ | RP
+
+ =$DisplayName?>
+ Votes::vote_link($GroupID, $UserVotes[$GroupID]['Type']); ?>
+ =$TorrentTags->format()?>
+ |
+ =Format::get_size($Torrent['Size'])?> |
+ =number_format($Torrent['Snatched'])?> |
+ >=number_format($Torrent['Seeders'])?> |
+ =number_format($Torrent['Leechers'])?> |
+
}
- $TorrentTable.=ob_get_clean();
+ $TorrentTable.= ob_get_clean();
// Album art
@@ -221,23 +224,23 @@
unset($ExtendedArtists[3]);
$DisplayName .= Artists::display_artists($ExtendedArtists, false);
} elseif (count($GroupArtists) > 0) {
- $DisplayName .= Artists::display_artists(array('1'=>$GroupArtists), false);
+ $DisplayName .= Artists::display_artists(array('1' => $GroupArtists), false);
}
$DisplayName .= $GroupName;
if ($GroupYear > 0) {
$DisplayName = $DisplayName. " [$GroupYear]";
}
?>
-
-
+
+
if ($WikiImage) {
?>
-
+
} else { ?>
- =$DisplayName?>
+ =$DisplayName?>
} ?>
-
-
+
+
$Collage[] = ob_get_clean();
}
@@ -247,7 +250,7 @@
}
// Silly hack for people who are on the old setting
-$CollageCovers = isset($LoggedUser['CollageCovers']) ? $LoggedUser['CollageCovers'] : 25 * (abs($LoggedUser['HideCollage'] - 1));
+$CollageCovers = (isset($LoggedUser['CollageCovers']) ? $LoggedUser['CollageCovers'] : 25 * (abs($LoggedUser['HideCollage'] - 1)));
$CollagePages = array();
// Pad it out
@@ -318,9 +321,9 @@
if (check_perms('zip_downloader')) {
if (isset($LoggedUser['Collector'])) {
list($ZIPList,$ZIPPrefs) = $LoggedUser['Collector'];
- $ZIPList = explode(':',$ZIPList);
+ $ZIPList = explode(':', $ZIPList);
} else {
- $ZIPList = array('00','11');
+ $ZIPList = array('00', '11');
$ZIPPrefs = 1;
}
?>
@@ -341,7 +344,7 @@
} ?>
-