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
   if (!Forums::check_forumperm($ForumID)) {
14
   if (!Forums::check_forumperm($ForumID)) {
15
     continue;
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
   $ForumDescription = display_str($ForumDescription);
18
   $ForumDescription = display_str($ForumDescription);
27
 
19
 
34
   <table class="forum_index">
26
   <table class="forum_index">
35
     <tr class="colhead">
27
     <tr class="colhead">
36
       <td style="width: 2%;"></td>
28
       <td style="width: 2%;"></td>
37
-      <td style="width: 25%;">Forum</td>
29
+      <td style="max-width: 25%;">Forum</td>
38
       <td>Last Post</td>
30
       <td>Last Post</td>
39
       <td style="width: 7%;">Topics</td>
31
       <td style="width: 7%;">Topics</td>
40
       <td style="width: 7%;">Posts</td>
32
       <td style="width: 7%;">Posts</td>
44
   }
36
   }
45
 
37
 
46
   $Read = Forums::is_unread($Locked, $Sticky, $LastPostID, $LastRead, $LastTopicID, $LastTime) ? 'unread' : 'read';
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
   <tr class="row">
40
   <tr class="row">
57
-    <td class="<?=$Read?> <?=$Tooltip?>" title="<?=ucfirst($Read)?>"></td>
41
+    <td class="<?=$Read?> tooltip" title="<?=ucfirst($Read)?>"></td>
58
     <td>
42
     <td>
59
       <h4 class="min_padding">
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
       </h4>
45
       </h4>
62
     </td>
46
     </td>
63
 <? if ($NumPosts == 0) { ?>
47
 <? if ($NumPosts == 0) { ?>
72
         <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>
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
       </span>
57
       </span>
74
 <? if (!empty($LastRead[$LastTopicID])) { ?>
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
         <svg width="15" height="11"><polygon points="0,3 0,8 8,8 8,11 15,5.5 8,0 8,3"/></svg>
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
       </a>
61
       </a>
78
 <? } ?>
62
 <? } ?>

Loading…
Cancel
Save