Browse Source

Format collage subscription alerts correctly

spaghetti 7 years ago
parent
commit
1a7c368baf
1 changed files with 8 additions and 12 deletions
  1. 8
    12
      sections/userhistory/subscribed_collages.php

+ 8
- 12
sections/userhistory/subscribed_collages.php View File

76
   $ShowGroups = 0;
76
   $ShowGroups = 0;
77
 
77
 
78
   foreach ($CollageSubs as $Collage) {
78
   foreach ($CollageSubs as $Collage) {
79
-    unset($TorrentTable);
79
+    $TorrentTable = '';
80
 
80
 
81
     list($CollageID, $CollageName, $CollageSize, $LastVisit) = $Collage;
81
     list($CollageID, $CollageName, $CollageSize, $LastVisit) = $Collage;
82
     $RS = $DB->query("
82
     $RS = $DB->query("
104
       $Group = $TorrentList[$GroupID];
104
       $Group = $TorrentList[$GroupID];
105
       extract(Torrents::array_group($Group));
105
       extract(Torrents::array_group($Group));
106
 
106
 
107
-      $DisplayName = '';
108
-
109
       $TorrentTags = new Tags($TagList);
107
       $TorrentTags = new Tags($TagList);
110
 
108
 
111
-      if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5]) || !empty($ExtendedArtists[6])) {
112
-        unset($ExtendedArtists[2]);
113
-        unset($ExtendedArtists[3]);
114
-        $DisplayName .= Artists::display_artists($ExtendedArtists);
115
-      } elseif (count($Artists) > 0) {
116
-        $DisplayName .= Artists::display_artists(array('1' => $Artists));
109
+      $DisplayName = '';
110
+
111
+      if (isset($Artists)) {
112
+        $DisplayName .= '<div class="torrent_artists">'.Artists::display_artists($Artists).'</div> ';
117
       }
113
       }
118
-      $DisplayName .= "<a href=\"torrents.php?id=$GroupID\" class=\"tooltip\" title=\"View torrent group\" ";
114
+      $DisplayName .= "<a class=\"torrent_title\" href=\"torrents.php?id=$GroupID\" ";
119
       if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
115
       if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
120
         $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage)."\" onmouseleave=\"ungetCover(event)\" ";
116
         $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage)."\" onmouseleave=\"ungetCover(event)\" ";
121
       }
117
       }
151
         foreach ($Torrents as $TorrentID => $Torrent) {
147
         foreach ($Torrents as $TorrentID => $Torrent) {
152
           $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
148
           $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
153
 ?>
149
 ?>
154
-  <tr class="group_torrent groupid_<?=$CollageID?>_<?=$GroupID?> edition_<?=$EditionID?> hidden<?=$SnatchedTorrentClass . $SnatchedGroupClass?>">
150
+  <tr class="group_torrent groupid_<?=$CollageID?>_<?=$GroupID?> hidden<?=$SnatchedTorrentClass . $SnatchedGroupClass?>">
155
     <td colspan="3">
151
     <td colspan="3">
156
       <span>
152
       <span>
157
         <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download" class="brackets tooltip">DL</a>
153
         <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download" class="brackets tooltip">DL</a>
170
 
166
 
171
         list($TorrentID, $Torrent) = each($Torrents);
167
         list($TorrentID, $Torrent) = each($Torrents);
172
 
168
 
173
-        $DisplayName = "<a href=\"torrents.php?id=$GroupID\" class=\"tooltip\" title=\"View torrent group\" ";
169
+        $DisplayName = "<a class=\"torrent_title\" href=\"torrents.php?id=$GroupID\" ";
174
         if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
170
         if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
175
           $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage)."\" onmouseleave=\"ungetCover(event)\" ";
171
           $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage)."\" onmouseleave=\"ungetCover(event)\" ";
176
         }
172
         }

Loading…
Cancel
Save