Browse Source

Replace some inline styling

spaghetti 7 years ago
parent
commit
10831c4902
40 changed files with 124 additions and 124 deletions
  1. 2
    2
      classes/commentsview.class.php
  2. 2
    2
      classes/donationsview.class.php
  3. 1
    1
      classes/testingview.class.php
  4. 2
    2
      design/views/generic/reply/quickreply.php
  5. 4
    4
      sections/artist/artist.php
  6. 1
    1
      sections/bookmarks/artists.php
  7. 1
    1
      sections/collages/browse.php
  8. 2
    2
      sections/collages/torrent_collage.php
  9. 2
    2
      sections/forums/forum.php
  10. 2
    2
      sections/forums/main.php
  11. 3
    3
      sections/forums/newthread.php
  12. 1
    1
      sections/forums/search.php
  13. 4
    4
      sections/forums/thread.php
  14. 2
    2
      sections/friends/friends.php
  15. 2
    2
      sections/inbox/conversation.php
  16. 1
    1
      sections/inbox/inbox.php
  17. 1
    1
      sections/index/private.php
  18. 1
    1
      sections/questions/popular_questions.php
  19. 1
    1
      sections/questions/questions.php
  20. 1
    1
      sections/questions/view_answers.php
  21. 1
    1
      sections/staffblog/index.php
  22. 2
    2
      sections/store/store.php
  23. 8
    8
      sections/tools/data/registration_log.php
  24. 22
    22
      sections/tools/development/render_base.html
  25. 13
    13
      sections/tools/development/service_stats.php
  26. 1
    1
      sections/tools/managers/change_log.php
  27. 1
    1
      sections/tools/misc/dupe_ip.php
  28. 2
    2
      sections/torrents/browse.php
  29. 9
    9
      sections/torrents/details.php
  30. 1
    1
      sections/torrents/editgroup.php
  31. 2
    2
      sections/torrents/functions.php
  32. 1
    1
      sections/torrents/user.php
  33. 2
    2
      sections/user/linkedfunctions.php
  34. 8
    8
      sections/user/user.php
  35. 4
    4
      sections/userhistory/post_history.php
  36. 3
    3
      sections/userhistory/quote_notifications.php
  37. 2
    2
      sections/userhistory/subscribed_collages.php
  38. 3
    3
      sections/userhistory/subscriptions.php
  39. 1
    1
      static/functions/global.js
  40. 2
    2
      static/functions/news_ajax.js

+ 2
- 2
classes/commentsview.class.php View File

@@ -39,7 +39,7 @@ class CommentsView {
39 39
       </colgroup>
40 40
       <tr class="colhead_dark">
41 41
         <td colspan="<?=(Users::has_avatars_enabled() ? 2 : 1)?>">
42
-          <div style="float: left;"><a class="post_id" href="<?=$Link?>">#<?=$PostID?></a>
42
+          <div class="float_left"><a class="post_id" href="<?=$Link?>">#<?=$PostID?></a>
43 43
             <?=$Header?>
44 44
 <?    if ($Tools) { ?>
45 45
             - <a href="#quickpost" onclick="Quote('<?=$PostID?>','<?=$UserInfo['Username']?>', true);" class="brackets">Quote</a>
@@ -50,7 +50,7 @@ class CommentsView {
50 50
             - <a href="#post<?=$PostID?>" onclick="Delete('<?=$PostID?>');" class="brackets">Delete</a>
51 51
 <?      } ?>
52 52
           </div>
53
-          <div id="bar<?=$PostID?>" style="float: right;">
53
+          <div id="bar<?=$PostID?>" class="float_right">
54 54
             <a href="reports.php?action=report&amp;type=comment&amp;id=<?=$PostID?>" class="brackets">Report</a>
55 55
 <?
56 56
       if (check_perms('users_warn') && $AuthorID != G::$LoggedUser['ID'] && G::$LoggedUser['Class'] >= $UserInfo['Class']) {

+ 2
- 2
classes/donationsview.class.php View File

@@ -103,7 +103,7 @@ class DonationsView {
103 103
       <div class="box">
104 104
         <div class="head">
105 105
           <span><?=!empty($ProfileRewards['ProfileInfoTitle' . $i]) ? display_str($ProfileRewards['ProfileInfoTitle' . $i]) : "Extra Profile " . ($i + 1)?></span>
106
-          <span style="float: right;"><a data-toggle-target="#profilediv_<?=$i?>" data-toggle-replace="Show" class="brackets">Hide</a></span>
106
+          <span class="float_right"><a data-toggle-target="#profilediv_<?=$i?>" data-toggle-replace="Show" class="brackets">Hide</a></span>
107 107
         </div>
108 108
         <div class="pad profileinfo" id="profilediv_<?=$i?>">
109 109
 <?          echo Text::full_format($ProfileRewards['ProfileInfo' . $i]); ?>
@@ -121,7 +121,7 @@ class DonationsView {
121 121
 ?>
122 122
     <div class="box box2" id="donation_history_box">
123 123
       <div class="head">
124
-        Donation History <a data-toggle-target="#donation_history" class="brackets" style="float: right;">Toggle</a>
124
+        Donation History <a data-toggle-target="#donation_history" class="brackets" style="float_right">Toggle</a>
125 125
       </div>
126 126
       <div class="hidden" id="donation_history">
127 127
         <table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">

+ 1
- 1
classes/testingview.class.php View File

@@ -55,7 +55,7 @@ class TestingView {
55 55
       <div class="box box2">
56 56
         <div class="head">
57 57
           <span><?=self::render_method_definition($Method)?></span>
58
-          <span style="float: right;">
58
+          <span class="float_right">
59 59
             <a data-toggle-target="#method_params_<?=$Index?>" class="brackets">Params</a>
60 60
             <a href="#" class="brackets run" data-gazelle-id="<?=$Index?>" data-gazelle-class="<?=$ClassName?>" data-gazelle-method="<?=$MethodName?>">Run</a>
61 61
           </span>

+ 2
- 2
design/views/generic/reply/quickreply.php View File

@@ -73,10 +73,10 @@
73 73
             </colgroup>
74 74
             <tr class="colhead_dark">
75 75
               <td colspan="<?=(Users::has_avatars_enabled() ? 2 : 1)?>">
76
-                <div style="float: left;"><a href="#quickreplypreview">#XXXXXX</a>
76
+                <div class="float_left"><a href="#quickreplypreview">#XXXXXX</a>
77 77
                   by <strong><?=Users::format_username(G::$LoggedUser['ID'], true, true, true, true)?></strong> Just now
78 78
                 </div>
79
-                <div style="float: right;">
79
+                <div class="float_right">
80 80
                   <a href="#quickreplypreview" class="brackets">Report</a>
81 81
                   &nbsp;
82 82
                   <a href="#">&uarr;</a>

+ 4
- 4
sections/artist/artist.php View File

@@ -249,11 +249,11 @@ foreach ($TorrentList as $Group) {
249 249
             <strong><?=$DisplayName?></strong>
250 250
 <?  if (Bookmarks::has_bookmarked('torrent', $GroupID)) { ?>
251 251
             <span class="remove_bookmark float_right">
252
-              <a style="float: right;" href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="brackets" onclick="Unbookmark('torrent', <?=$GroupID?>, 'Bookmark'); return false;">Remove bookmark</a>
252
+              <a class="float_right" href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="brackets" onclick="Unbookmark('torrent', <?=$GroupID?>, 'Bookmark'); return false;">Remove bookmark</a>
253 253
             </span>
254 254
 <?  } else { ?>
255 255
             <span class="add_bookmark float_right">
256
-              <a style="float: right;" href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="brackets" onclick="Bookmark('torrent', <?=$GroupID?>, 'Remove bookmark'); return false;">Bookmark</a>
256
+              <a class="float_right" href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="brackets" onclick="Bookmark('torrent', <?=$GroupID?>, 'Remove bookmark'); return false;">Bookmark</a>
257 257
             </span>
258 258
 <?  } ?>
259 259
             <div class="tags"><?=$TorrentTags->format('torrents.php?taglist=', $Name)?></div>
@@ -502,8 +502,8 @@ if (check_perms('site_torrents_notify')) {
502 502
 <? foreach ($ZIPList as $ListItem) { ?>
503 503
             <li id="list<?=$ListItem?>">
504 504
               <input type="hidden" name="list[]" value="<?=$ListItem?>" />
505
-              <span style="float: left;"><?=$ZIPOptions[$ListItem]['2']?></span>
506
-              <span class="remove remove_collector"><a href="#" onclick="remove_selection('<?=$ListItem?>'); return false;" style="float: right;" class="brackets tooltip" title="Remove format from the Collector">X</a></span>
505
+              <span class="float_left"><?=$ZIPOptions[$ListItem]['2']?></span>
506
+              <span class="remove remove_collector"><a href="#" onclick="remove_selection('<?=$ListItem?>'); return false;" class="float_right brackets tooltip" title="Remove format from the Collector">X</a></span>
507 507
               <br style="clear: all;" />
508 508
             </li>
509 509
 <? } ?>

+ 1
- 1
sections/bookmarks/artists.php View File

@@ -66,7 +66,7 @@ foreach ($ArtistList as $Artist) {
66 66
     <tr class="row bookmark_<?=$ArtistID?>">
67 67
       <td>
68 68
         <a href="artist.php?id=<?=$ArtistID?>"><?=$Name?></a>
69
-        <span style="float: right;">
69
+        <span class="float_right">
70 70
 <?
71 71
   if (check_perms('site_torrents_notify')) {
72 72
     if (($Notify = $Cache->get_value('notify_artists_'.$LoggedUser['ID'])) === false) {

+ 1
- 1
sections/collages/browse.php View File

@@ -321,7 +321,7 @@ foreach ($Collages as $Collage) {
321 321
     <td>
322 322
       <a href="collages.php?id=<?=$ID?>"><?=$Name?></a>
323 323
 <?  if ($BookmarkView) { ?>
324
-      <span style="float: right;">
324
+      <span class="float_right">
325 325
         <a href="#" onclick="Unbookmark('collage', <?=$ID?>, ''); return false;" class="brackets">Remove bookmark</a>
326 326
       </span>
327 327
 <?  } ?>

+ 2
- 2
sections/collages/torrent_collage.php View File

@@ -108,11 +108,11 @@ foreach ($GroupIDs as $GroupID) {
108 108
           <strong><?=$DisplayName?></strong>
109 109
 <?    if (Bookmarks::has_bookmarked('torrent', $GroupID)) { ?>
110 110
           <span class="remove_bookmark float_right">
111
-            <a style="float: right;" href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="remove_bookmark brackets" onclick="Unbookmark('torrent', <?=$GroupID?>, 'Bookmark'); return false;">Remove bookmark</a>
111
+            <a class="float_right" href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="remove_bookmark brackets" onclick="Unbookmark('torrent', <?=$GroupID?>, 'Bookmark'); return false;">Remove bookmark</a>
112 112
           </span>
113 113
 <?    } else { ?>
114 114
           <span class="add_bookmark float_right">
115
-            <a style="float: right;" href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="add_bookmark brackets" onclick="Bookmark('torrent', <?=$GroupID?>, 'Remove bookmark'); return false;">Bookmark</a>
115
+            <a class="float_right" href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="add_bookmark brackets" onclick="Bookmark('torrent', <?=$GroupID?>, 'Remove bookmark'); return false;">Bookmark</a>
116 116
           </span>
117 117
 <?
118 118
     }

+ 2
- 2
sections/forums/forum.php View File

@@ -235,7 +235,7 @@ if (count($Forum) === 0) {
235 235
   <tr class="row">
236 236
     <td class="<?=$Read?> <?=$Tooltip?>" title="<?=ucwords(str_replace('_', ' ', $Read))?>"></td>
237 237
     <td>
238
-      <span style="float: left;" class="last_topic">
238
+      <span class="float_left last_topic">
239 239
 <?
240 240
     $TopicLength = 75 - (2 * count($PageLinks));
241 241
     unset($PageLinks);
@@ -253,7 +253,7 @@ if (count($Forum) === 0) {
253 253
         <svg width="15" height="11"><polygon points="0,3 0,8 8,8 8,11 15,5.5 8,0 8,3"/></svg>
254 254
       </a>
255 255
 <?    } ?>
256
-      <span style="float: right;" class="last_poster">
256
+      <span class="float_right last_poster">
257 257
         by <?=Users::format_username($LastAuthorID, false, false, false, false, false)?> <?=time_diff($LastTime,1)?>
258 258
       </span>
259 259
     </td>

+ 2
- 2
sections/forums/main.php View File

@@ -68,7 +68,7 @@ foreach ($Forums as $Forum) {
68 68
     <td class="number_column">0</td>
69 69
 <? } else { ?>
70 70
     <td>
71
-      <span style="float: left;" class="last_topic">
71
+      <span class="float_left last_topic">
72 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>
73 73
       </span>
74 74
 <? if (!empty($LastRead[$LastTopicID])) { ?>
@@ -76,7 +76,7 @@ foreach ($Forums as $Forum) {
76 76
         <svg width="15" height="11"><polygon points="0,3 0,8 8,8 8,11 15,5.5 8,0 8,3"/></svg>
77 77
       </a>
78 78
 <? } ?>
79
-      <span style="float: right;" class="last_poster">by <?=Users::format_username($LastAuthorID, false, false, false)?> <?=time_diff($LastTime, 1)?></span>
79
+      <span class="float_right last_poster">by <?=Users::format_username($LastAuthorID, false, false, false)?> <?=time_diff($LastTime, 1)?></span>
80 80
     </td>
81 81
     <td class="number_column"><?=number_format($NumTopics)?></td>
82 82
     <td class="number_column"><?=number_format($NumPosts)?></td>

+ 3
- 3
sections/forums/newthread.php View File

@@ -40,7 +40,7 @@ View::show_header('Forums &gt; '.$Forum['Name'].' &gt; New Topic', 'comments,bbc
40 40
         <p><strong id="pollquestion"></strong></p>
41 41
         <div id="pollanswers"></div>
42 42
         <br /><input type="radio" name="vote" id="answer_0" value="0" /> <label for="answer_0">Blank&#8202;&mdash;&#8202;Show the results!</label><br /><br />
43
-        <input type="button" style="float: left;" value="Vote" />
43
+        <input type="button" class="float_left" value="Vote" />
44 44
       </div>
45 45
     </div>
46 46
 <?  } ?>
@@ -53,11 +53,11 @@ View::show_header('Forums &gt; '.$Forum['Name'].' &gt; New Topic', 'comments,bbc
53 53
       </colgroup>
54 54
       <tr class="colhead_dark">
55 55
         <td colspan="<?=Users::has_avatars_enabled() ? 2 : 1 ?>">
56
-          <span style="float: left;"><a href="#newthreadpreview">#XXXXXX</a>
56
+          <span class="float_left"><a href="#newthreadpreview">#XXXXXX</a>
57 57
             by <strong><?=Users::format_username($LoggedUser['ID'], true, true, true, true, true)?></strong>
58 58
           Just now
59 59
           </span>
60
-          <span id="barpreview" style="float: right;">
60
+          <span id="barpreview" class="float_right">
61 61
             <a href="#newthreadpreview" class="brackets">Report</a>
62 62
             &nbsp;
63 63
             <a href="#">&uarr;</a>

+ 1
- 1
sections/forums/search.php View File

@@ -334,7 +334,7 @@ while (list($ID, $Title, $ForumID, $ForumName, $LastTime, $PostID, $Body, $Threa
334 334
 <?
335 335
   }
336 336
   if ($Type == 'body') { ?>
337
-        <a data-toggle-target="#post_<?=$PostID?>_text">(Show)</a> <span style="float: right;" class="tooltip last_read" title="Jump to post"><a href="forums.php?action=viewthread&amp;threadid=<?=$ID?><? if (!empty($PostID)) { echo "&amp;postid=$PostID#post$PostID"; } ?>"></a></span>
337
+        <a data-toggle-target="#post_<?=$PostID?>_text">(Show)</a> <span class="float_right tooltip last_read" title="Jump to post"><a href="forums.php?action=viewthread&amp;threadid=<?=$ID?><? if (!empty($PostID)) { echo "&amp;postid=$PostID#post$PostID"; } ?>"></a></span>
338 338
 <?  } ?>
339 339
       </td>
340 340
       <td>

+ 4
- 4
sections/forums/thread.php View File

@@ -448,7 +448,7 @@ foreach ($Thread as $Key => $Post) {
448 448
   </colgroup>
449 449
   <tr class="colhead_dark">
450 450
     <td colspan="<?=Users::has_avatars_enabled() ? 2 : 1?>">
451
-      <div style="float: left;"><a class="post_id" href="forums.php?action=viewthread&amp;threadid=<?=$ThreadID?>&amp;postid=<?=$PostID?>#post<?=$PostID?>">#<?=$PostID?></a>
451
+      <div class="float_left"><a class="post_id" href="forums.php?action=viewthread&amp;threadid=<?=$ThreadID?>&amp;postid=<?=$PostID?>#post<?=$PostID?>">#<?=$PostID?></a>
452 452
         <?=Users::format_username($AuthorID, true, true, true, true, true, $IsDonorForum);  echo "\n";?>
453 453
         <?=time_diff($AddedTime, 2); echo "\n";?>
454 454
         - <a href="#quickpost" id="quote_<?=$PostID?>" onclick="Quote('<?=$PostID?>', '<?=$Username?>', true);" class="brackets">Quote</a>
@@ -461,7 +461,7 @@ foreach ($Thread as $Key => $Post) {
461 461
 <?
462 462
   }
463 463
   if ($PostID == $ThreadInfo['StickyPostID']) { ?>
464
-        <strong><span class="sticky_post_label" class="brackets">Sticky</span></strong>
464
+        <strong><span class="sticky_post_label brackets">Sticky</span></strong>
465 465
 <?    if (check_perms('site_moderate_forums')) { ?>
466 466
         - <a href="forums.php?action=sticky_post&amp;threadid=<?=$ThreadID?>&amp;postid=<?=$PostID?>&amp;remove=true&amp;auth=<?=$LoggedUser['AuthKey']?>" title="Unsticky this post" class="brackets tooltip">X</a>
467 467
 <?
@@ -475,7 +475,7 @@ foreach ($Thread as $Key => $Post) {
475 475
   }
476 476
 ?>
477 477
       </div>
478
-      <div id="bar<?=$PostID?>" style="float: right;">
478
+      <div id="bar<?=$PostID?>" class="float_right">
479 479
         <a href="reports.php?action=report&amp;type=post&amp;id=<?=$PostID?>" class="brackets">Report</a>
480 480
 <?
481 481
   if (check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
@@ -645,7 +645,7 @@ if (check_perms('site_moderate_forums')) {
645 645
       <tr>
646 646
         <td colspan="2" class="center">
647 647
           <input type="submit" value="Edit thread" tabindex="2" />
648
-          <span style="float: right;">
648
+          <span class="float_right">
649 649
             <input type="submit" name="trash" value="Trash" tabindex="2" />
650 650
           </span>
651 651
         </td>

+ 2
- 2
sections/friends/friends.php View File

@@ -73,7 +73,7 @@ foreach ($Friends as $Friend) {
73 73
   <table class="friends_table vertical_margin">
74 74
     <tr class="colhead">
75 75
       <td colspan="<?=(Users::has_avatars_enabled() ? 3 : 2)?>">
76
-        <span style="float: left;"><?=Users::format_username($FriendID, true, true, true, true)?>
76
+        <span class="float_left"><?=Users::format_username($FriendID, true, true, true, true)?>
77 77
 <?  if (check_paranoia('ratio', $Paranoia, $Class, $FriendID)) { ?>
78 78
         &nbsp;Ratio: <strong><?=Format::get_ratio_html($Uploaded, $Downloaded)?></strong>
79 79
 <?
@@ -89,7 +89,7 @@ foreach ($Friends as $Friend) {
89 89
 <?  } ?>
90 90
         </span>
91 91
 <?  if (check_paranoia('lastseen', $Paranoia, $Class, $FriendID)) { ?>
92
-        <span style="float: right;"><?=time_diff($LastAccess)?></span>
92
+        <span class="float_right"><?=time_diff($LastAccess)?></span>
93 93
 <?  } ?>
94 94
       </td>
95 95
     </tr>

+ 2
- 2
sections/inbox/conversation.php View File

@@ -87,10 +87,10 @@ while (list($SentDate, $SenderID, $Body, $MessageID) = $DB->next_record()) {
87 87
 ?>
88 88
   <div class="box vertical_space">
89 89
     <div class="head" style="overflow: hidden;">
90
-      <div style="float: left;">
90
+      <div class="float_left">
91 91
         <strong><?=$Users[(int)$SenderID]['UserStr']?></strong> <?=time_diff($SentDate)?> - <a href="#quickpost" onclick="Quote('<?=$MessageID?>','<?=$Users[(int)$SenderID]['Username']?>');" class="brackets">Quote</a>
92 92
       </div>
93
-      <div style="float: right;"><a href="#">&uarr;</a> <a href="#messageform">&darr;</a></div>
93
+      <div class="float_right"><a href="#">&uarr;</a> <a href="#messageform">&darr;</a></div>
94 94
     </div>
95 95
     <div class="body" id="message<?=$MessageID?>">
96 96
       <?=Text::full_format($Body)?>

+ 1
- 1
sections/inbox/inbox.php View File

@@ -94,7 +94,7 @@ echo "\t\t$Pages\n";
94 94
         <input type="radio" name="searchtype" value="user"<?=(empty($_GET['searchtype']) || $_GET['searchtype'] === 'user' ? ' checked="checked"' : '')?> /> User
95 95
         <input type="radio" name="searchtype" value="subject"<?=(!empty($_GET['searchtype']) && $_GET['searchtype'] === 'subject' ? ' checked="checked"' : '')?> /> Subject
96 96
         <input type="radio" name="searchtype" value="message"<?=(!empty($_GET['searchtype']) && $_GET['searchtype'] === 'message' ? ' checked="checked"' : '')?> /> Message
97
-        <span style="float: right;">
97
+        <span class="float_right">
98 98
 <?      // provide a temporary toggle for sorting PMs
99 99
     $ToggleTitle = 'Temporary toggle switch for sorting PMs. To permanently change the sorting behavior, edit the setting in your profile.';
100 100
     $BaseURL = 'inbox.php';

+ 1
- 1
sections/index/private.php View File

@@ -514,7 +514,7 @@ foreach ($News as $NewsItem) {
514 514
 <?  if (check_perms('admin_manage_news')) { ?>
515 515
         - <a href="tools.php?action=editnews&amp;id=<?=$NewsID?>" class="brackets">Edit</a>
516 516
 <?  } ?>
517
-      <span style="float: right;"><a data-toggle-target="#newsbody<?=$NewsID?>" data-toggle-replace="Show" class="brackets">Hide</a></span>
517
+      <span class="float_right"><a data-toggle-target="#newsbody<?=$NewsID?>" data-toggle-replace="Show" class="brackets">Hide</a></span>
518 518
       </div>
519 519
       <div id="newsbody<?=$NewsID?>" class="pad"><?=Text::full_format($Body)?></div>
520 520
     </div>

+ 1
- 1
sections/questions/popular_questions.php View File

@@ -41,7 +41,7 @@ View::show_header('Popular Questions', 'questions,bbcode');
41 41
           <a class="post_id" href="questions.php?action=popular_questions#question<?=$Question['ID']?>">#<?=$Question['ID']?></a>
42 42
           Question by <?=Users::format_username($Question['UserID'])?> - <?=time_diff($Question['QuestionDate'])?>
43 43
         </span>
44
-        <span style="float: right;">
44
+        <span class="float_right">
45 45
           <a href="#" id="<?=$Question['ID']?>" class="view_responses brackets"><?=$Question['Responses'] == 1 ? ("View " . $Question['Responses'] . " response") : ("View " . $Question['Responses'] . " responses")?></a>
46 46
 <?    if (check_perms("users_mod")) { ?>
47 47
           -

+ 1
- 1
sections/questions/questions.php View File

@@ -65,7 +65,7 @@ if ($TotalQuestions > QUESTIONS_PER_PAGE) {
65 65
         <a class="post_id" href="questions.php#question<?=$Question['ID']?>">#<?=$Question['ID']?></a>
66 66
         <?=Users::format_username($Question['UserID'])?> - <?=time_diff($Question['Date'])?>
67 67
       </span>
68
-      <span style="float: right;">
68
+      <span class="float_right">
69 69
 <?        if ($Question['Responses'] > 0) { ?>
70 70
           <a href="#" id="<?=$Question['ID']?>" class="view_responses brackets"><?=$Question['Responses'] == 1 ? ("View " . $Question['Responses'] . " response") : ("View " . $Question['Responses'] . " responses")?></a>
71 71
           -

+ 1
- 1
sections/questions/view_answers.php View File

@@ -55,7 +55,7 @@ View::show_header($UserInfo['Username'] . "'s answers", 'questions,bbcode');
55 55
         <a class="post_id" href="questions.php?action=view_answers&amp;userid=<?=$UserID?>#question<?=$Question['ID']?>">#<?=$Question['ID']?></a>
56 56
         Question by <?=Users::format_username($Question['UserID'])?> - <?=time_diff($Question['QuestionDate'])?>
57 57
       </span>
58
-      <span style="float: right;">
58
+      <span class="float_right">
59 59
 <?    if ($Question['Responses'] > 0) { ?>
60 60
         <a href="#" data-gazelle-userid="<?=$UserID?>" id="<?=$Question['ID']?>" class="view_responses brackets"><?=$Question['Responses'] == 1 ? ("View " . $Question['Responses'] . " other response") : ("View " . $Question['Responses'] . " other responses")?></a>
61 61
         -

+ 1
- 1
sections/staffblog/index.php View File

@@ -84,7 +84,7 @@ if (check_perms('admin_manage_blog')) {
84 84
     <div class="box box2 thin">
85 85
       <div class="head">
86 86
         <?=((empty($_GET['action'])) ? 'Create a staff blog post' : 'Edit staff blog post')?>
87
-        <span style="float: right;">
87
+        <span class="float_right">
88 88
           <a data-toggle-target="#postform" data-toggle-replace="<?=(($_REQUEST['action'] != 'editblog') ? 'Hide' : 'Show')?>" class="brackets"><?=(($_REQUEST['action'] != 'editblog') ? 'Show' : 'Hide')?></a>
89 89
         </span>
90 90
       </div>

+ 2
- 2
sections/store/store.php View File

@@ -39,8 +39,8 @@ View::show_header('Store');
39 39
 <div class="thin">
40 40
   <h2 id="general">Store</h2>
41 41
   <div class="box pad">
42
-    <h3 id="lists" style="float: left;">You have <?=number_format($LoggedUser['BonusPoints'])?> <?=BONUS_POINTS?> to spend</h3>
43
-    <h3 id="lists" style="float: right;">You're making <?=$PointsPerHour?> (<?=$PointsPerDay?>)</h3>
42
+    <h3 id="lists" class="float_left">You have <?=number_format($LoggedUser['BonusPoints'])?> <?=BONUS_POINTS?> to spend</h3>
43
+    <h3 id="lists" class="float_right">You're making <?=$PointsPerHour?> (<?=$PointsPerDay?>)</h3>
44 44
     <table width="100%" class="store_table">
45 45
       <tr class="colhead">
46 46
         <td style="width: 100px;">Item</td>

+ 8
- 8
sections/tools/data/registration_log.php View File

@@ -118,16 +118,16 @@ if ($DB->has_results()) {
118 118
       <td><?=Users::format_username($UserID, true, true, true, true)?><br /><?=Users::format_username($InviterID, true, true, true, true)?></td>
119 119
       <td><?=Format::get_ratio_html($Uploaded, $Downloaded)?><br /><?=Format::get_ratio_html($InviterUploaded, $InviterDownloaded)?></td>
120 120
       <td>
121
-        <span style="float: left;"><?=display_str($Email)?></span>
122
-        <span style="float: right;"><a href="userhistory.php?action=email&amp;userid=<?=$UserID?>" title="History" class="brackets tooltip">H</a> <a href="/user.php?action=search&amp;email_history=on&amp;email=<?=display_str($Email)?>" title="Search" class="brackets tooltip">S</a></span><br />
123
-        <span style="float: left;"><?=display_str($InviterEmail)?></span>
124
-        <span style="float: right;"><a href="userhistory.php?action=email&amp;userid=<?=$InviterID?>" title="History" class="brackets tooltip">H</a> <a href="/user.php?action=search&amp;email_history=on&amp;email=<?=display_str($InviterEmail)?>" title="Search" class="brackets tooltip">S</a></span><br />
121
+        <span class="float_left"><?=display_str($Email)?></span>
122
+        <span class="float_right"><a href="userhistory.php?action=email&amp;userid=<?=$UserID?>" title="History" class="brackets tooltip">H</a> <a href="/user.php?action=search&amp;email_history=on&amp;email=<?=display_str($Email)?>" title="Search" class="brackets tooltip">S</a></span><br />
123
+        <span class="float_left"><?=display_str($InviterEmail)?></span>
124
+        <span class="float_right"><a href="userhistory.php?action=email&amp;userid=<?=$InviterID?>" title="History" class="brackets tooltip">H</a> <a href="/user.php?action=search&amp;email_history=on&amp;email=<?=display_str($InviterEmail)?>" title="Search" class="brackets tooltip">S</a></span><br />
125 125
       </td>
126 126
       <td>
127
-        <span style="float: left;"><?=display_str($IP)?></span>
128
-        <span style="float: right;"><?=display_str($Uses)?> <a href="userhistory.php?action=ips&amp;userid=<?=$UserID?>" title="History" class="brackets tooltip">H</a> <a href="/user.php?action=search&amp;ip_history=on&amp;ip=<?=display_str($IP)?>" title="Search" class="brackets tooltip">S</a> <a href="http://whatismyipaddress.com/ip/<?=display_str($IP)?>" title="WI" class="brackets tooltip">WI</a></span><br />
129
-        <span style="float: left;"><?=display_str($InviterIP)?></span>
130
-        <span style="float: right;"><?=display_str($InviterUses)?> <a href="userhistory.php?action=ips&amp;userid=<?=$InviterID?>" title="History" class="brackets tooltip">H</a> <a href="/user.php?action=search&amp;ip_history=on&amp;ip=<?=display_str($InviterIP)?>" title="Search" class="brackets tooltip">S</a> <a href="http://whatismyipaddress.com/ip/<?=display_str($InviterIP)?>" title="WI" class="brackets tooltip">WI</a></span><br />
127
+        <span class="float_left"><?=display_str($IP)?></span>
128
+        <span class="float_right"><?=display_str($Uses)?> <a href="userhistory.php?action=ips&amp;userid=<?=$UserID?>" title="History" class="brackets tooltip">H</a> <a href="/user.php?action=search&amp;ip_history=on&amp;ip=<?=display_str($IP)?>" title="Search" class="brackets tooltip">S</a> <a href="http://whatismyipaddress.com/ip/<?=display_str($IP)?>" title="WI" class="brackets tooltip">WI</a></span><br />
129
+        <span class="float_left"><?=display_str($InviterIP)?></span>
130
+        <span class="float_right"><?=display_str($InviterUses)?> <a href="userhistory.php?action=ips&amp;userid=<?=$InviterID?>" title="History" class="brackets tooltip">H</a> <a href="/user.php?action=search&amp;ip_history=on&amp;ip=<?=display_str($InviterIP)?>" title="Search" class="brackets tooltip">S</a> <a href="http://whatismyipaddress.com/ip/<?=display_str($InviterIP)?>" title="WI" class="brackets tooltip">WI</a></span><br />
131 131
       </td>
132 132
       <td>
133 133
         <?=$IPCC?> <br />

+ 22
- 22
sections/tools/development/render_base.html View File

@@ -139,13 +139,13 @@
139 139
                     </h4>
140 140
                   </td>
141 141
                   <td>
142
-                    <span class="last_topic" style="float: left;">
142
+                    <span class="last_topic float_left">
143 143
                       <a title="New Site Announcements" href="#">New Site Announcements</a>
144 144
                     </span>
145
-                    <span title="Jump to last read" class="last_read" style="float: left;">
145
+                    <span title="Jump to last read" class="last_read float_left">
146 146
                       <a href="#"></a>
147 147
                     </span>
148
-                    <span class="last_poster" style="float: right;">by <a href="#">Ananke</a> <span title="Aug 14 1992, 18:35" class="time">Just now</span></span>
148
+                    <span class="last_poster float_right">by <a href="#">Ananke</a> <span title="Aug 14 1992, 18:35" class="time">Just now</span></span>
149 149
                   </td>
150 150
                   <td>385</td>
151 151
                   <td>95,197</td>
@@ -158,10 +158,10 @@
158 158
                     </h4>
159 159
                   </td>
160 160
                   <td>
161
-                    <span class="last_topic" style="float: left;">
161
+                    <span class="last_topic float_left">
162 162
                       <a title="Dear Mortals, you have violated the rule..." href="#">Dear Mortals, you have violated the rule...</a>
163 163
                     </span>
164
-                    <span class="last_poster" style="float: right;">by <a href="#">Drone</a> <span title="Sep 9 1992, 10:55" class="time">3 mins ago</span></span>
164
+                    <span class="last_poster float_right">by <a href="#">Drone</a> <span title="Sep 9 1992, 10:55" class="time">3 mins ago</span></span>
165 165
                   </td>
166 166
                   <td>2,624</td>
167 167
                   <td>110,432</td>
@@ -186,13 +186,13 @@
186 186
                     </h4>
187 187
                   </td>
188 188
                   <td>
189
-                    <span class="last_topic" style="float: left;">
189
+                    <span class="last_topic float_left">
190 190
                       <a title="Last stand against Drone?" href="#">Last stand against Drone?</a>
191 191
                     </span>
192
-                    <span title="Jump to last read" class="last_read" style="float: left;">
192
+                    <span title="Jump to last read" class="last_read float_left">
193 193
                       <a href="#"></a>
194 194
                     </span>
195
-                    <span class="last_poster" style="float: right;">by <a href="#">Ajax</a> <span class="time">Just now</span></span>
195
+                    <span class="last_poster float_right">by <a href="#">Ajax</a> <span class="time">Just now</span></span>
196 196
                   </td>
197 197
                   <td>37,531</td>
198 198
                   <td>1,545,089</td>
@@ -205,10 +205,10 @@
205 205
                     </h4>
206 206
                   </td>
207 207
                   <td>
208
-                    <span class="last_topic" style="float: left;">
208
+                    <span class="last_topic float_left">
209 209
                       <a title="No fun allowed" href="#">No fun allowed</a>
210 210
                     </span>
211
-                    <span class="last_poster" style="float: right;">by <a href="#">Drone</a> <span class="time">10 mins ago</span></span>
211
+                    <span class="last_poster float_right">by <a href="#">Drone</a> <span class="time">10 mins ago</span></span>
212 212
                   </td>
213 213
                   <td>424</td>
214 214
                   <td>490,163</td>
@@ -221,10 +221,10 @@
221 221
                     </h4>
222 222
                   </td>
223 223
                   <td>
224
-                    <span class="last_topic" style="float: left;">
224
+                    <span class="last_topic float_left">
225 225
                       <a title="List of forbidden literature" href="#">List of forbidden literature</a>
226 226
                     </span>
227
-                    <span class="last_poster" style="float: right;">by <a href="#">Drone</a> <span class="time">7 hours ago</span></span>
227
+                    <span class="last_poster float_right">by <a href="#">Drone</a> <span class="time">7 hours ago</span></span>
228 228
                   </td>
229 229
                   <td>424</td>
230 230
                   <td>490,163</td>
@@ -237,10 +237,10 @@
237 237
                     </h4>
238 238
                   </td>
239 239
                   <td>
240
-                    <span class="last_topic" style="float: left;">
240
+                    <span class="last_topic float_left">
241 241
                       <a title="[Region] The Void" href="#">[Region] The Void</a>
242 242
                     </span>
243
-                    <span class="last_poster" style="float: right;">by <a href="#">Drone</a> <span class="time">25 mins ago</span></span>
243
+                    <span class="last_poster float_right">by <a href="#">Drone</a> <span class="time">25 mins ago</span></span>
244 244
                   </td>
245 245
                   <td>305</td>
246 246
                   <td>15,231</td>
@@ -253,13 +253,13 @@
253 253
                     </h4>
254 254
                   </td>
255 255
                   <td>
256
-                    <span class="last_topic" style="float: left;">
256
+                    <span class="last_topic float_left">
257 257
                       <a title="How did Drone take over the site?" href="#">How did Drone take over the site?</a>
258 258
                     </span>
259
-                    <span title="Jump to last read" class="last_read" style="float: left;">
259
+                    <span title="Jump to last read" class="last_read float_left">
260 260
                       <a href="#"></a>
261 261
                     </span>
262
-                    <span class="last_poster" style="float: right;">by <a href="#">Etheryte</a> <span class="time">5 mins ago</span></span>
262
+                    <span class="last_poster float_right">by <a href="#">Etheryte</a> <span class="time">5 mins ago</span></span>
263 263
                   </td>
264 264
                   <td>25,031</td>
265 265
                   <td>386,278</td>
@@ -284,13 +284,13 @@
284 284
                     </h4>
285 285
                   </td>
286 286
                   <td>
287
-                    <span class="last_topic" style="float: left;">
287
+                    <span class="last_topic float_left">
288 288
                       <a title="Where did all the non-drone threads go?" href="#">Where did all the non-drone threads go?</a>
289 289
                     </span>
290
-                    <span title="Jump to last read" class="last_read" style="float: left;">
290
+                    <span title="Jump to last read" class="last_read float_left">
291 291
                       <a href="#"></a>
292 292
                     </span>
293
-                    <span class="last_poster" style="float: right;">by <a href="#">tuutiki</a> <span class="time">1 min ago</span></span>
293
+                    <span class="last_poster float_right">by <a href="#">tuutiki</a> <span class="time">1 min ago</span></span>
294 294
                   </td>
295 295
                   <td>22,564</td>
296 296
                   <td>608,253</td>
@@ -303,10 +303,10 @@
303 303
                     </h4>
304 304
                   </td>
305 305
                   <td>
306
-                    <span class="last_topic" style="float: left;">
306
+                    <span class="last_topic float_left">
307 307
                       <a title="Drone - Drone [EP] (drone, noise)" href="#">Drone - Drone [EP] (drone, noise)</a>
308 308
                     </span>
309
-                    <span class="last_poster" style="float: right;">by <a href="#">Drone</a> <span class="time">Just now</span></span>
309
+                    <span class="last_poster float_right">by <a href="#">Drone</a> <span class="time">Just now</span></span>
310 310
                   </td>
311 311
                   <td>3,948</td>
312 312
                   <td>24,269</td>

+ 13
- 13
sections/tools/development/service_stats.php View File

@@ -24,11 +24,11 @@ View::show_header("Service Stats");
24 24
       <tr><td colspan="2"><strong>Threads (Active)</strong></td></tr>
25 25
       <tr>
26 26
         <td>Cache:</td>
27
-        <td><?=number_format($MemStats['threads'])?> <span style="float: right;">(100.000%)</span></td>
27
+        <td><?=number_format($MemStats['threads'])?> <span class="float_right">(100.000%)</span></td>
28 28
       </tr>
29 29
       <tr>
30 30
         <td<? if ($DBStats['Threads_connected']['Value'] / $DBStats['Threads_created']['Value'] > 0.7) { echo ' class="invalid" '; } ?>>Database:</td>
31
-        <td><?=number_format($DBStats['Threads_created']['Value'])?> <span style="float: right;">(<?=number_format(($DBStats['Threads_connected']['Value'] / $DBStats['Threads_created']['Value']) * 100,3)?>%)</span></td>
31
+        <td><?=number_format($DBStats['Threads_created']['Value'])?> <span class="float_right">(<?=number_format(($DBStats['Threads_connected']['Value'] / $DBStats['Threads_created']['Value']) * 100,3)?>%)</span></td>
32 32
       </tr>
33 33
       <tr><td colspan="2"></td></tr>
34 34
       <tr><td colspan="2"><strong>Connections</strong></td></tr>
@@ -52,7 +52,7 @@ View::show_header("Service Stats");
52 52
       </tr>
53 53
       <tr>
54 54
         <td<? if ($MemStats['bytes'] / $MemStats['limit_maxbytes'] > 0.85) { echo ' class="tooltip invalid" title="Evictions begin when storage exceeds 85%" '; } ?>>Cache Storage:</td>
55
-        <td><?=Format::get_size($MemStats['bytes'])?> <span style="float: right;">(<?=number_format(($MemStats['bytes'] / $MemStats['limit_maxbytes']) * 100, 3);?>%)</span></td>
55
+        <td><?=Format::get_size($MemStats['bytes'])?> <span class="float_right">(<?=number_format(($MemStats['bytes'] / $MemStats['limit_maxbytes']) * 100, 3);?>%)</span></td>
56 56
       </tr>
57 57
       <tr><td colspan="2"></td></tr>
58 58
       <tr><td colspan="2"><strong>Utilities</strong></td></tr>
@@ -96,47 +96,47 @@ View::show_header("Service Stats");
96 96
       <tr><td colspan="2"><strong>Get/Select (Success)</strong></td></tr>
97 97
       <tr>
98 98
         <td<? if ($MemStats['get_hits'] / $MemStats['cmd_get'] < 0.7) { echo ' class="invalid" '; } ?>>Cache:</td>
99
-        <td><?=number_format($MemStats['get_hits'])?> <span style="float: right;">(<?=number_format(($MemStats['get_hits'] / $MemStats['cmd_get']) * 100, 3);?>%)</span></td>
99
+        <td><?=number_format($MemStats['get_hits'])?> <span class="float_right">(<?=number_format(($MemStats['get_hits'] / $MemStats['cmd_get']) * 100, 3);?>%)</span></td>
100 100
       </tr>
101 101
       <tr>
102 102
         <td>Database:</td>
103
-        <td><?=number_format($DBStats['Com_select']['Value'])?> <span style="float: right;">(100.000%)</span></td>
103
+        <td><?=number_format($DBStats['Com_select']['Value'])?> <span class="float_right">(100.000%)</span></td>
104 104
       </tr>
105 105
       <tr><td colspan="2"><strong>Set/Insert (Success)</strong></td></tr>
106 106
       <tr>
107 107
         <td>Cache:</td>
108
-        <td><?=number_format($MemStats['cmd_set'])?> <span style="float: right;">(100.000%)</span></td>
108
+        <td><?=number_format($MemStats['cmd_set'])?> <span class="float_right">(100.000%)</span></td>
109 109
       </tr>
110 110
       <tr>
111 111
         <td>Database:</td>
112
-        <td><?=number_format($DBStats['Com_insert']['Value'])?> <span style="float: right;">(100.000%)</span></td>
112
+        <td><?=number_format($DBStats['Com_insert']['Value'])?> <span class="float_right">(100.000%)</span></td>
113 113
       </tr>
114 114
       <tr><td colspan="2"><strong>Increment/Decrement (Success)</strong></td></tr>
115 115
       <tr>
116 116
         <td<? if ($MemStats['incr_hits']/($MemStats['incr_hits'] + $MemStats['incr_misses']) < 0.7) { echo ' class="invalid" '; } ?>>Cache Increment:</td>
117
-        <td><?=number_format($MemStats['incr_hits'])?> <span style="float: right;">(<?=number_format(($MemStats['incr_hits'] / ($MemStats['incr_hits'] + $MemStats['incr_misses'])) * 100, 3);?>%)</span></td>
117
+        <td><?=number_format($MemStats['incr_hits'])?> <span class="float_right">(<?=number_format(($MemStats['incr_hits'] / ($MemStats['incr_hits'] + $MemStats['incr_misses'])) * 100, 3);?>%)</span></td>
118 118
       </tr>
119 119
       <tr>
120 120
         <td<? if ($MemStats['decr_hits'] / ($MemStats['decr_hits'] + $MemStats['decr_misses']) < 0.7) { echo ' class="invalid" '; } ?>>Cache Decrement:</td>
121
-        <td><?=number_format($MemStats['decr_hits'])?> <span style="float: right;">(<?=number_format(($MemStats['decr_hits'] / ($MemStats['decr_hits'] + $MemStats['decr_misses'])) * 100, 3);?>%)</span></td>
121
+        <td><?=number_format($MemStats['decr_hits'])?> <span class="float_right">(<?=number_format(($MemStats['decr_hits'] / ($MemStats['decr_hits'] + $MemStats['decr_misses'])) * 100, 3);?>%)</span></td>
122 122
       </tr>
123 123
       <tr><td colspan="2"><strong>CAS/Update (Success)</strong></td></tr>
124 124
       <tr>
125 125
         <td<? if ($MemStats['cas_hits'] > 0 && $MemStats['cas_hits'] / ($MemStats['cas_hits'] + $MemStats['cas_misses']) < 0.7) { echo ' class="tooltip invalid" title="More than 30% of the issued CAS commands were unnecessarily wasting time and resources." '; } elseif ($MemStats['cas_hits'] == 0) { echo ' class="tooltip notice" title="Disable CAS with the -C parameter and save resources since it is not used." '; } ?>>Cache:</td>
126
-        <td><?=number_format($MemStats['cas_hits'])?> <span style="float: right;">(<? if ($MemStats['cas_hits'] > 0) { echo number_format(($MemStats['cas_hits'] / ($MemStats['cas_hits'] + $MemStats['cas_misses'])) * 100, 3); } else { echo '0.000'; } ?>%)</span></td>
126
+        <td><?=number_format($MemStats['cas_hits'])?> <span class="float_right">(<? if ($MemStats['cas_hits'] > 0) { echo number_format(($MemStats['cas_hits'] / ($MemStats['cas_hits'] + $MemStats['cas_misses'])) * 100, 3); } else { echo '0.000'; } ?>%)</span></td>
127 127
       </tr>
128 128
       <tr>
129 129
         <td>Database:</td>
130
-        <td><?=number_format($DBStats['Com_update']['Value'])?> <span style="float: right;">(100.000%)</span></td>
130
+        <td><?=number_format($DBStats['Com_update']['Value'])?> <span class="float_right">(100.000%)</span></td>
131 131
       </tr>
132 132
       <tr><td colspan="2"><strong>Deletes (Success)</strong></td></tr>
133 133
       <tr>
134 134
         <td<? if ($MemStats['delete_hits'] / ($MemStats['delete_hits']+$MemStats['delete_misses']) < 0.7) { echo ' class="tooltip invalid" title="More than 30% of the issued delete commands were unnecessary wasting time and resources." '; } ?>>Cache:</td>
135
-        <td><?=number_format($MemStats['delete_hits'])?> <span style="float: right;">(<?=number_format(($MemStats['delete_hits'] / ($MemStats['delete_hits'] + $MemStats['delete_misses'])) * 100, 3);?>%)</span></td>
135
+        <td><?=number_format($MemStats['delete_hits'])?> <span class="float_right">(<?=number_format(($MemStats['delete_hits'] / ($MemStats['delete_hits'] + $MemStats['delete_misses'])) * 100, 3);?>%)</span></td>
136 136
       </tr>
137 137
       <tr>
138 138
         <td>Database:</td>
139
-        <td><?=number_format($DBStats['Com_delete']['Value'])?> <span style="float: right;">(100.000%)</span></td>
139
+        <td><?=number_format($DBStats['Com_delete']['Value'])?> <span class="float_right">(100.000%)</span></td>
140 140
       </tr>
141 141
       <tr><td colspan="2"></td></tr>
142 142
       <tr><td colspan="2"><strong>Special</strong></td></tr>

+ 1
- 1
sections/tools/managers/change_log.php View File

@@ -91,7 +91,7 @@ View::show_header('Gazelle Change Log', 'datetime_picker', 'datetime_picker');
91 91
     <div class="head">
92 92
       <span><?=$Change['Time2']?> by <?=$Change['Author']?></span>
93 93
 <?    if ($CanEdit) { ?>
94
-      <span style="float: right;">
94
+      <span class="float_right">
95 95
         <form id="delete_<?=$Change['ID']?>" method="post" action="">
96 96
           <input type="hidden" name="perform" value="remove" />
97 97
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />

+ 1
- 1
sections/tools/misc/dupe_ip.php View File

@@ -63,7 +63,7 @@ if ($DB->has_results()) {
63 63
     <tr class="row<?=$Row?>">
64 64
       <td><?=Users::format_username($UserID, true, true, true, true)?></td>
65 65
       <td>
66
-        <span style="float: left;"><?=Tools::get_host_by_ajax($IP)." ($IP)"?></span><span style="float: right;"><a href="userhistory.php?action=ips&amp;userid=<?=$UserID?>" title="History" class="brackets tooltip">H</a> <a href="user.php?action=search&amp;ip_history=on&amp;ip=<?=display_str($IP)?>" title="Search" class="brackets tooltip">S</a></span>
66
+        <span class="float_left"><?=Tools::get_host_by_ajax($IP)." ($IP)"?></span><span class="float_right"><a href="userhistory.php?action=ips&amp;userid=<?=$UserID?>" title="History" class="brackets tooltip">H</a> <a href="user.php?action=search&amp;ip_history=on&amp;ip=<?=display_str($IP)?>" title="Search" class="brackets tooltip">S</a></span>
67 67
       </td>
68 68
       <td><?=display_str($Uses)?></td>
69 69
       <td><?=time_diff($Joined)?></td>

+ 2
- 2
sections/torrents/browse.php View File

@@ -158,7 +158,7 @@ View::show_header('Browse Torrents', 'browse');
158 158
         <span id="ft_advanced_link" class="<?=$HideBasic?>"><a href="#" onclick="return toggleTorrentSearch('advanced');">Advanced</a></span>
159 159
         Search
160 160
       </strong>
161
-      <span style="float: right;">
161
+      <span class="float_right">
162 162
         <a href="#" onclick="return toggleTorrentSearch(0);" id="ft_toggle" class="brackets"><?=$HideFilter ? 'Show' : 'Hide'?></a>
163 163
       </span>
164 164
     </div>
@@ -407,7 +407,7 @@ View::show_header('Browse Torrents', 'browse');
407 407
         </tr>
408 408
       </table>
409 409
       <div class="submit ft_submit">
410
-        <span style="float: left;"><?=number_format($NumResults)?> Results</span>
410
+        <span class="float_left"><?=number_format($NumResults)?> Results</span>
411 411
         <input type="submit" value="Filter torrents" />
412 412
         <input type="hidden" name="action" id="ft_type" value="<?=($AdvancedSearch ? 'advanced' : 'basic')?>" />
413 413
         <input type="hidden" name="searchsubmit" value="1" />

+ 9
- 9
sections/torrents/details.php View File

@@ -226,7 +226,7 @@ $Index++;
226 226
     if (check_perms('site_edit_wiki') && $WikiImage != '') { ?>
227 227
     <div id="add_cover_div">
228 228
       <div style="padding: 10px;">
229
-        <span style="float: right;" class="additional_add_artists">
229
+        <span class="additional_add_artists float_right">
230 230
           <a onclick="addCoverField(); return false;" href="#" class="brackets">Add alternate cover</a>
231 231
         </span>
232 232
       </div>
@@ -249,13 +249,13 @@ if ($Categories[$GroupCategoryID - 1] != 'Other') {
249 249
 ?>
250 250
     <div class="box box_artists">
251 251
       <div class="head"><strong>Artists</strong>
252
-      <?=check_perms('torrents_edit') ? '<span style="float: right;" class="edit_artists"><a onclick="ArtistManager(); return false;" href="#" class="brackets">Edit</a></span>' : ''?>
252
+      <?=check_perms('torrents_edit') ? '<span class="edit_artists"><a onclick="ArtistManager(); return false;" href="#" class="brackets float_right">Edit</a></span>' : ''?>
253 253
       </div>
254 254
       <ul class="stats nobullet" id="artist_list">
255 255
 <?      foreach ($Artists as $Num => $Artist) { ?>
256 256
         <li class="artist"><?=Artists::display_artist($Artist)?>
257 257
         <? if (check_perms('torrents_edit')) { ?>
258
-          <span class="remove remove_artist"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&amp;auth=' + authkey + '&amp;groupid=<?=$GroupID?>&amp;artistid=<?=$Artist['id']?>&amp;importance=4'); this.parentNode.parentNode.style.display = 'none';" class="brackets tooltip" title="Remove artist">X</a></span>
258
+          <span class="remove remove_artist float_right"><a href="javascript:void(0);" onclick="ajax.get('torrents.php?action=delete_alias&amp;auth=' + authkey + '&amp;groupid=<?=$GroupID?>&amp;artistid=<?=$Artist['id']?>&amp;importance=4'); this.parentNode.parentNode.style.display = 'none';" class="brackets tooltip" title="Remove artist">X</a></span>
259 259
         <? } ?>
260 260
         </li>
261 261
 <?        } ?>
@@ -304,8 +304,8 @@ if (count($Tags) > 0) {
304 304
 
305 305
 ?>
306 306
         <li>
307
-          <a href="torrents.php?taglist=<?=$Tag['name']?>" style="float: left; display: block;" class="<?=display_str($Tag['class'])?>" ><?=display_str($Tag['display'])?></a>
308
-          <div style="float: right; display: block; letter-spacing: -1px;" class="edit_tags_votes">
307
+          <a href="torrents.php?taglist=<?=$Tag['name']?>" class="float_left <?=display_str($Tag['class'])?>" ><?=display_str($Tag['display'])?></a>
308
+          <div class="edit_tags_votes float_right">
309 309
 <?    if (check_perms('users_warn')) { ?>
310 310
           <a href="user.php?id=<?=$Tag['userid']?>" title="View the profile of the user that added this tag" class="brackets tooltip view_tag_user">U</a>
311 311
 <?    } ?>
@@ -424,8 +424,8 @@ foreach ($TorrentList as $Torrent) {
424 424
   <table class="filelist_table">
425 425
     <tr class="colhead_dark">
426 426
       <td>
427
-        <div class="filelist_title" style="float: left;">File Names' . $RegenLink . '</div>
428
-        <div class="filelist_path" style="float: right;">' . ($FilePath ? "/$FilePath/" : '') . '</div>
427
+        <div class="filelist_title float_left">File Names' . $RegenLink . '</div>
428
+        <div class="filelist_path float_right">' . ($FilePath ? "/$FilePath/" : '') . '</div>
429 429
       </td>
430 430
       <td class="nobr">
431 431
         <strong>Size</strong>
@@ -621,7 +621,7 @@ if (empty($LoggedUser['DisableRequests']) && count($Requests) > 0) {
621 621
     <div class="box">
622 622
       <div class="head">
623 623
         <span style="font-weight: bold;">Requests (<?=number_format(count($Requests))?>)</span>
624
-        <a data-toggle-target="#requests" data-toggle-replace="Hide" style="float: right;" class="brackets">Show</a>
624
+        <a data-toggle-target="#requests" data-toggle-replace="Hide" class="float_right brackets">Show</a>
625 625
       </div>
626 626
       <table id="requests" class="request_table hidden">
627 627
         <tr class="colhead">
@@ -763,7 +763,7 @@ if (count($PersonalCollages) > 0) {
763 763
 <?
764 764
     if (count($Screenshots) > 0) {
765 765
 ?>
766
-    <a style="float: right;" class='brackets' data-toggle-target=".torrent_screenshots" data-toggle-replace="Hide">Show</a>
766
+    <a class="float_right brackets" data-toggle-target=".torrent_screenshots" data-toggle-replace="Hide">Show</a>
767 767
 <?  }
768 768
 
769 769
     $DB->query("

+ 1
- 1
sections/torrents/editgroup.php View File

@@ -147,7 +147,7 @@ View::show_header('Edit torrent group', 'upload');
147 147
 <?
148 148
   if ($Contributed || check_perms('screenshots_add') || check_perms('torrents_edit')) {
149 149
 ?>
150
-          <a style="float: right;" onclick="AddScreenshotField()" class="brackets">+</a>
150
+          <a class="float_right brackets" onclick="AddScreenshotField()">+</a>
151 151
 <?
152 152
   }
153 153
 

+ 2
- 2
sections/torrents/functions.php View File

@@ -311,8 +311,8 @@ function build_torrents_table($Cache, $DB, $LoggedUser, $GroupID, $GroupName, $G
311 311
   <table class="filelist_table">
312 312
     <tr class="colhead_dark">
313 313
       <td>
314
-        <div class="filelist_title" style="float: left;">File Names' . $RegenLink . '</div>
315
-        <div class="filelist_path" style="float: right;">' . ($FilePath ? "/$FilePath/" : '') . '</div>
314
+        <div class="filelist_title float_left">File Names' . $RegenLink . '</div>
315
+        <div class="filelist_path float_right">' . ($FilePath ? "/$FilePath/" : '') . '</div>
316 316
       </td>
317 317
       <td>
318 318
         <strong>Size</strong>

+ 1
- 1
sections/torrents/user.php View File

@@ -460,7 +460,7 @@ foreach ($Categories as $CatKey => $CatName) {
460 460
         </tr>
461 461
       </table>
462 462
       <div class="submit">
463
-        <span style="float: left;"><?=number_format($TorrentCount)?> Results</span>
463
+        <span class="float_left"><?=number_format($TorrentCount)?> Results</span>
464 464
         <input type="submit" value="Search torrents" />
465 465
       </div>
466 466
     </form>

+ 2
- 2
sections/user/linkedfunctions.php View File

@@ -197,7 +197,7 @@ function user_dupes_table($UserID) {
197 197
       <input type="hidden" id="form_comment_hash" name="form_comment_hash" value="<?=$CommentHash?>" />
198 198
       <div class="box box2" id="l_a_box">
199 199
         <div class="head">
200
-          Linked Accounts (<?=max($DupeCount - 1, 0)?>) <span style="float: right;"><a data-toggle-target=".linkedaccounts" class="brackets">Toggle</a></span>
200
+          Linked Accounts (<?=max($DupeCount - 1, 0)?>) <span class="float_right"><a data-toggle-target=".linkedaccounts" class="brackets">Toggle</a></span>
201 201
         </div>
202 202
         <table width="100%" class="layout hidden linkedaccounts">
203 203
           <?=($DupeCount ? "<tr>\n" : '')?>
@@ -235,7 +235,7 @@ function user_dupes_table($UserID) {
235 235
               <div id="editdupecomments" class="<?=($DupeCount ? 'hidden' : '')?>">
236 236
                 <textarea name="dupecomments" onkeyup="resize('dupecommentsbox');" id="dupecommentsbox" cols="65" rows="5" style="width: 98%;"><?=display_str($Comments)?></textarea>
237 237
               </div>
238
-              <span style="float: right;"><a href="#" onclick="$('#dupecomments').gtoggle(); $('#editdupecomments').gtoggle(); resize('dupecommentsbox'); return false;" class="brackets">Edit linked account comments</a></span>
238
+              <span class="float_right"><a href="#" onclick="$('#dupecomments').gtoggle(); $('#editdupecomments').gtoggle(); resize('dupecommentsbox'); return false;" class="brackets">Edit linked account comments</a></span>
239 239
             </td>
240 240
           </tr>
241 241
         </table>

+ 8
- 8
sections/user/user.php View File

@@ -667,7 +667,7 @@ if ($RatioWatchEnds && (time() < strtotime($RatioWatchEnds)) && ($Downloaded * $
667 667
     <div class="box">
668 668
       <div class="head">
669 669
         <?=!empty($InfoTitle) ? $InfoTitle : 'Profile';?>
670
-        <span style="float: right;"><a data-toggle-target="#profilediv" data-toggle-replace="Show" class="brackets">Hide</a></span>&nbsp;
670
+        <span class="float_right"><a data-toggle-target="#profilediv" data-toggle-replace="Show" class="brackets">Hide</a></span>&nbsp;
671 671
       </div>
672 672
       <div class="pad profileinfo" id="profilediv">
673 673
 <?
@@ -715,7 +715,7 @@ if (check_paranoia_here('snatched')) {
715 715
   <div class="box" id="recent_snatches">
716 716
     <div class="head">
717 717
       Recent Snatches
718
-      <span style="float: right;"><a onclick="$('#recent_snatches_images').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); wall('#recent_snatches_images', '.collage_image', [2,3]); return false;" class="brackets">Show</a></span>&nbsp;
718
+      <span class="float_right"><a onclick="$('#recent_snatches_images').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); wall('#recent_snatches_images', '.collage_image', [2,3]); return false;" class="brackets">Show</a></span>&nbsp;
719 719
     </div>
720 720
     <div id="recent_snatches_images" class="collage_images hidden">
721 721
 <?    foreach ($RecentSnatches as $RS) {
@@ -762,7 +762,7 @@ if (check_paranoia_here('uploads')) {
762 762
   <div class="box" id="recent_uploads">
763 763
     <div class="head">
764 764
       Recent Uploads
765
-      <span style="float: right;"><a onclick="$('#recent_uploads_images').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); wall('#recent_uploads_images', '.collage_image', [2,3]); return false;" class="brackets">Show</a></span>&nbsp;
765
+      <span class="float_right"><a onclick="$('#recent_uploads_images').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); wall('#recent_uploads_images', '.collage_image', [2,3]); return false;" class="brackets">Show</a></span>&nbsp;
766 766
     </div>
767 767
     <div id="recent_uploads_images" class="collage_images hidden">
768 768
 <?    foreach ($RecentUploads as $RU) {
@@ -805,7 +805,7 @@ foreach ($Collages as $CollageInfo) {
805 805
   <div class="box" id="collage<?=$CollageID?>_box">
806 806
     <div class="head">
807 807
       <?=display_str($CName)?> - <a href="collages.php?id=<?=$CollageID?>" class="brackets">See full</a>
808
-      <span style="float: right;">
808
+      <span class="float_right">
809 809
         <a data-toggle-target="#collage<?=$CollageID?>_box .collage_images" data-toggle-replace="Show" class="brackets">Hide</a>
810 810
       </span>
811 811
     </div>
@@ -849,7 +849,7 @@ if ((check_perms('users_view_invites')) && $Invited > 0) {
849 849
 ?>
850 850
     <div class="box" id="invitetree_box">
851 851
       <div class="head">
852
-        Invite Tree <span style="float: right"><a data-toggle-target="#invitetree" class="brackets">Toggle</a></span>
852
+        Invite Tree <span class="float_right"><a data-toggle-target="#invitetree" class="brackets">Toggle</a></span>
853 853
       </div>
854 854
       <div id="invitetree" class="hidden">
855 855
 <?        $Tree->make_tree(); ?>
@@ -878,7 +878,7 @@ if (empty($LoggedUser['DisableRequests']) && check_paranoia_here('requestsvoted_
878 878
 ?>
879 879
     <div class="box" id="requests_box">
880 880
       <div class="head">
881
-        Requests <span style="float: right;"><a data-toggle-target="#requests" class="brackets">Show</a></span>
881
+        Requests <span class="float_right"><a data-toggle-target="#requests" class="brackets">Show</a></span>
882 882
       </div>
883 883
       <div id="requests" class="hidden">
884 884
         <table cellpadding="6" cellspacing="1" border="0" width="100%">
@@ -974,7 +974,7 @@ if (check_perms('users_mod', $Class) || $IsFLS) {
974 974
 ?>
975 975
     <div class="box" id="staffpms_box">
976 976
       <div class="head">
977
-        Staff PMs <a data-toggle-target="#staffpms" class="brackets" style="float:right;">Toggle</a>
977
+        Staff PMs <a data-toggle-target="#staffpms" class="brackets float_right">Toggle</a>
978 978
       </div>
979 979
       <table width="100%" class="message_table hidden" id="staffpms">
980 980
         <tr class="colhead">
@@ -1048,7 +1048,7 @@ if (check_perms('users_mod', $Class)) { ?>
1048 1048
       <div class="head">
1049 1049
         Staff Notes
1050 1050
         <a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;" class="brackets">Edit</a>
1051
-        <span style="float: right;">
1051
+        <span class="float_right">
1052 1052
         <a data-toggle-target="#staffnotes" class="brackets">Toggle</a>
1053 1053
         </span>
1054 1054
       </div>

+ 4
- 4
sections/userhistory/post_history.php View File

@@ -223,7 +223,7 @@ if (empty($Results)) {
223 223
     </colgroup>
224 224
     <tr class="colhead_dark">
225 225
       <td colspan="<?=Users::has_avatars_enabled() ? 2 : 1 ?>">
226
-        <span style="float: left;">
226
+        <span class="float_left">
227 227
           <?=time_diff($AddedTime) ?>
228 228
           in <a href="forums.php?action=viewthread&amp;threadid=<?=$TopicID?>&amp;postid=<?=$PostID?>#post<?=$PostID?>" class="tooltip" title="<?=display_str($ThreadTitle)?>"><?=Format::cut_string($ThreadTitle, 75)?></a>
229 229
 <?
@@ -235,7 +235,7 @@ if (empty($Results)) {
235 235
 ?>
236 236
         </span>
237 237
 <?      if (!empty($LastRead)) { ?>
238
-        <span style="float: left;" class="tooltip last_read" title="Jump to last read">
238
+        <span class="float_left tooltip last_read" title="Jump to last read">
239 239
           <a href="forums.php?action=viewthread&amp;threadid=<?=$TopicID?>&amp;postid=<?=$LastRead?>#post<?=$LastRead?>"></a>
240 240
         </span>
241 241
 <?      }
@@ -244,8 +244,8 @@ if (empty($Results)) {
244 244
         </span>
245 245
 <?    }
246 246
 ?>
247
-        <span id="bar<?=$PostID ?>" style="float: right;">
248
-<?     if ($ViewingOwn && !in_array($TopicID, $UserSubscriptions)) { ?>
247
+        <span id="bar<?=$PostID ?>" class="float_right">
248
+<?    if ($ViewingOwn && !in_array($TopicID, $UserSubscriptions)) { ?>
249 249
           <a href="#" onclick="Subscribe(<?=$TopicID?>); $('.subscribelink<?=$TopicID?>').remove(); return false;" class="brackets subscribelink<?=$TopicID?>">Subscribe</a>
250 250
           &nbsp;
251 251
 <?     } ?>

+ 3
- 3
sections/userhistory/quote_notifications.php View File

@@ -150,15 +150,15 @@ foreach ($Results as $Result) {
150 150
   <table class="forum_post box vertical_margin noavatar">
151 151
     <tr class="colhead_dark notify_<?=$Result['Page']?>">
152 152
       <td colspan="2">
153
-        <span style="float: left;">
153
+        <span class="float_left">
154 154
           <?=$Links?>
155 155
           &gt; Quoted by <?=Users::format_username($Result['QuoterID'], false, false, false, false) . ' ' . time_diff($Result['Date']) ?>
156 156
           <?=($Result['UnRead'] ? ' <span class="new">(New!)</span>' : '')?>
157 157
         </span>
158
-        <span style="float: left;" class="tooltip last_read" title="Jump to quote">
158
+        <span class="float_left tooltip last_read" title="Jump to quote">
159 159
           <a href="<?=$JumpLink?>"></a>
160 160
         </span>
161
-        <span style="float: right;">
161
+        <span class="float_right">
162 162
           <a href="#">&uarr;</a>
163 163
         </span>
164 164
       </td>

+ 2
- 2
sections/userhistory/subscribed_collages.php View File

@@ -210,10 +210,10 @@ if (!$NumResults) {
210 210
   <table style="margin-top: 8px;" class="subscribed_collages_table">
211 211
     <tr class="colhead_dark">
212 212
       <td>
213
-        <span style="float: left;">
213
+        <span class="float_left">
214 214
           <strong><a href="collage.php?id=<?=$CollageID?>"><?=$CollageName?></a></strong> (<?=$NewTorrentCount?> new torrent<?=($NewTorrentCount == 1 ? '' : 's')?>)
215 215
         </span>&nbsp;
216
-        <span style="float: right;">
216
+        <span class="float_right">
217 217
           <a data-toggle-target="#discog_table_<?=$CollageID?>" data-toggle-replace="<?=($ShowAll ? 'Hide' : 'Show')?>" class="brackets"><?=($ShowAll ? 'Show' : 'Hide')?></a>&nbsp;&nbsp;&nbsp;<a href="userhistory.php?action=catchup_collages&amp;auth=<?=$LoggedUser['AuthKey']?>&amp;collageid=<?=$CollageID?>" class="brackets">Catch up</a>&nbsp;&nbsp;&nbsp;<a href="#" onclick="CollageSubscribe(<?=$CollageID?>); return false;" id="subscribelink<?=$CollageID?>" class="brackets">Unsubscribe</a>
218 218
         </span>
219 219
       </td>

+ 3
- 3
sections/userhistory/subscriptions.php View File

@@ -208,17 +208,17 @@ if (!$NumResults) {
208 208
     </colgroup>
209 209
     <tr class="colhead_dark notify_<?=$Result['Page']?>">
210 210
       <td colspan="<?=Users::has_avatars_enabled() ? 2 : 1 ?>">
211
-        <span style="float: left;">
211
+        <span class="float_left">
212 212
           <?=$Links . ($Result['PostID'] < $Result['LastPost'] ? ' <span class="new">(New!)</span>' : '')?>
213 213
         </span>
214 214
         <a class="tooltip last_read" title="Jump to last read" href="<?=$JumpLink?>">
215 215
           <svg width="15" height="11"><polygon points="0,3 0,8 8,8 8,11 15,5.5 8,0 8,3"/></svg>
216 216
         </a>
217 217
 <?    if ($Result['Page'] == 'forums') { ?>
218
-        <span id="bar<?=$Result['PostID'] ?>" style="float: right;">
218
+        <span id="bar<?=$Result['PostID'] ?>" class="float_right">
219 219
           <a href="#" onclick="Subscribe(<?=$Result['PageID']?>); return false;" id="subscribelink<?=$Result['PageID']?>" class="brackets">Unsubscribe</a>
220 220
 <?    } else { ?>
221
-        <span id="bar_<?=$Result['Page'] . $Result['PostID'] ?>" style="float: right;">
221
+        <span id="bar_<?=$Result['Page'] . $Result['PostID'] ?>" class="float_right">
222 222
           <a href="#" onclick="SubscribeComments('<?=$Result['Page']?>', <?=$Result['PageID']?>); return false;" id="subscribelink_<?=$Result['Page'] . $Result['PageID']?>" class="brackets">Unsubscribe</a>
223 223
 <?    } ?>
224 224
           &nbsp;

+ 1
- 1
static/functions/global.js View File

@@ -283,7 +283,7 @@ function add_selection() {
283 283
     listitem.id = 'list' + selected.value;
284 284
     listitem.innerHTML = '            <input type="hidden" name="list[]" value="' + selected.value + '" /> ' +
285 285
 '            <span style="float: left;">' + selected.innerHTML + '</span>' +
286
-'            <a href="#" onclick="remove_selection(\'' + selected.value + '\'); return false;" style="float: right;" class="brackets">X</a>' +
286
+'            <a href="#" onclick="remove_selection(\'' + selected.value + '\'); return false;" class="float_right" class="brackets">X</a>' +
287 287
 '            <br style="clear: all;" />';
288 288
     $('#list').raw().appendChild(listitem);
289 289
     $('#opt' + selected.value).raw().disabled = true;

+ 2
- 2
static/functions/news_ajax.js View File

@@ -32,9 +32,9 @@ function news_ajax(event, count, offset, privileged) {
32 32
           }));
33 33
           // I'm so happy with this condition statement.
34 34
           if (privileged) {
35
-            $('#news' + this[0]).append('<div class="head"><strong>' + this[1] + '</strong> ' + this[2] + ' - <a href="tools.php?action=editnews&amp;id=' + this[0] + '" class="brackets">Edit</a><span style="float: right;"><a class="brackets" data-toggle-target="#newsbody' + this[0] + '" data-toggle-replace="Show">Hide</a></span></div>');
35
+            $('#news' + this[0]).append('<div class="head"><strong>' + this[1] + '</strong> ' + this[2] + ' - <a href="tools.php?action=editnews&amp;id=' + this[0] + '" class="brackets">Edit</a><span class="float_right"><a class="brackets" data-toggle-target="#newsbody' + this[0] + '" data-toggle-replace="Show">Hide</a></span></div>');
36 36
           } else {
37
-            $('#news' + this[0]).append('<div class="head"><strong>' + this[1] + '</strong> ' + this[2] + '<span style="float: right;"><a class="brackets" data-toggle-target="#newsbody' + this[0] + '" data-toggle-replace="Show">Hide</a></span></div>');
37
+            $('#news' + this[0]).append('<div class="head"><strong>' + this[1] + '</strong> ' + this[2] + '<span class="float_right"><a class="brackets" data-toggle-target="#newsbody' + this[0] + '" data-toggle-replace="Show">Hide</a></span></div>');
38 38
           }
39 39
           $('#news' + this[0]).append('<div class="pad" id="newsbody'+this[0]+'">' + this[3] + '</div>');
40 40
         });

Loading…
Cancel
Save