Browse Source

Shrink forum index forum column

spaghetti 7 years ago
parent
commit
70f1a4e387
1 changed files with 4 additions and 20 deletions
  1. 4
    20
      sections/forums/main.php

+ 4
- 20
sections/forums/main.php View File

@@ -14,14 +14,6 @@ foreach ($Forums as $Forum) {
14 14
   if (!Forums::check_forumperm($ForumID)) {
15 15
     continue;
16 16
   }
17
-  // No
18
-/*
19
-  if ($ForumID == DONOR_FORUM) {
20
-    $ForumDescription = Donations::get_forum_description();
21
-  }
22
-  $Tooltip = $ForumID == DONOR_FORUM ? 'tooltip_gold' : 'tooltip';
23
-*/
24
-  $Tooltip = 'tooltip';
25 17
 
26 18
   $ForumDescription = display_str($ForumDescription);
27 19
 
@@ -34,7 +26,7 @@ foreach ($Forums as $Forum) {
34 26
   <table class="forum_index">
35 27
     <tr class="colhead">
36 28
       <td style="width: 2%;"></td>
37
-      <td style="width: 25%;">Forum</td>
29
+      <td style="max-width: 25%;">Forum</td>
38 30
       <td>Last Post</td>
39 31
       <td style="width: 7%;">Topics</td>
40 32
       <td style="width: 7%;">Posts</td>
@@ -44,20 +36,12 @@ foreach ($Forums as $Forum) {
44 36
   }
45 37
 
46 38
   $Read = Forums::is_unread($Locked, $Sticky, $LastPostID, $LastRead, $LastTopicID, $LastTime) ? 'unread' : 'read';
47
-/* Removed per request, as distracting
48
-  if ($Locked) {
49
-    $Read .= '_locked';
50
-  }
51
-  if ($Sticky) {
52
-    $Read .= '_sticky';
53
-  }
54
-*/
55 39
 ?>
56 40
   <tr class="row">
57
-    <td class="<?=$Read?> <?=$Tooltip?>" title="<?=ucfirst($Read)?>"></td>
41
+    <td class="<?=$Read?> tooltip" title="<?=ucfirst($Read)?>"></td>
58 42
     <td>
59 43
       <h4 class="min_padding">
60
-        <a class="<?=$Tooltip?>" href="forums.php?action=viewforum&amp;forumid=<?=$ForumID?>" title="<?=display_str($ForumDescription)?>"><?=display_str($ForumName)?></a>
44
+        <a class="tooltip" href="forums.php?action=viewforum&amp;forumid=<?=$ForumID?>" title="<?=display_str($ForumDescription)?>"><?=display_str($ForumName)?></a>
61 45
       </h4>
62 46
     </td>
63 47
 <? if ($NumPosts == 0) { ?>
@@ -72,7 +56,7 @@ foreach ($Forums as $Forum) {
72 56
         <a href="forums.php?action=viewthread&amp;threadid=<?=$LastTopicID?>" class="tooltip" data-title-plain="<?=display_str($LastTopic)?>"><?=display_str(Format::cut_string($LastTopic, 50, 1))?></a>
73 57
       </span>
74 58
 <? if (!empty($LastRead[$LastTopicID])) { ?>
75
-      <a class="<?=$Tooltip?> last_read" title="Jump to last read" href="forums.php?action=viewthread&amp;threadid=<?=$LastTopicID?>&amp;page=<?=$LastRead[$LastTopicID]['Page']?>#post<?=$LastRead[$LastTopicID]['PostID']?>">
59
+      <a class="tooltip last_read" title="Jump to last read" href="forums.php?action=viewthread&amp;threadid=<?=$LastTopicID?>&amp;page=<?=$LastRead[$LastTopicID]['Page']?>#post<?=$LastRead[$LastTopicID]['PostID']?>">
76 60
         <svg width="15" height="11"><polygon points="0,3 0,8 8,8 8,11 15,5.5 8,0 8,3"/></svg>
77 61
       </a>
78 62
 <? } ?>

Loading…
Cancel
Save