Browse Source

Modify markup to be more HTML5 compliant

spaghetti 8 years ago
parent
commit
75fd81cabc
47 changed files with 194 additions and 196 deletions
  1. 2
    2
      classes/badges.class.php
  2. 66
    66
      classes/debug.class.php
  3. 2
    2
      classes/donationsview.class.php
  4. 1
    1
      classes/testingview.class.php
  5. 2
    2
      classes/text.class.php
  6. 5
    5
      design/privateheader.php
  7. 4
    4
      design/publicheader.php
  8. 3
    13
      design/views/generic/reply/quickreply.php
  9. 1
    1
      design/views/generic/reply/staffpm.php
  10. 4
    4
      sections/artist/artist.php
  11. 1
    1
      sections/better/covers.php
  12. 1
    1
      sections/better/screenshots.php
  13. 1
    1
      sections/collages/torrent_collage.php
  14. 1
    1
      sections/forums/forum.php
  15. 2
    2
      sections/forums/newthread.php
  16. 1
    1
      sections/forums/search.php
  17. 12
    12
      sections/forums/thread.php
  18. 3
    3
      sections/index/private.php
  19. 1
    1
      sections/requests/requests.php
  20. 1
    1
      sections/snatchlist/snatchlist.php
  21. 1
    1
      sections/staff/index.php
  22. 1
    1
      sections/staffblog/index.php
  23. 1
    1
      sections/staffpm/user_inbox.php
  24. 2
    2
      sections/staffpm/viewconv.php
  25. 2
    2
      sections/tools/managers/enable_requests.php
  26. 1
    1
      sections/top10/torrents.php
  27. 2
    2
      sections/top10/votes.php
  28. 18
    19
      sections/torrents/browse.php
  29. 5
    5
      sections/torrents/details.php
  30. 1
    1
      sections/torrents/functions.php
  31. 1
    1
      sections/torrents/notify.php
  32. 1
    1
      sections/torrents/user.php
  33. 1
    1
      sections/torrents/voter_picks.php
  34. 1
    1
      sections/upload/upload.php
  35. 1
    1
      sections/user/edit.php
  36. 1
    1
      sections/user/linkedfunctions.php
  37. 1
    1
      sections/user/notify_edit.php
  38. 6
    6
      sections/user/user.php
  39. 2
    2
      sections/userhistory/email_history2.php
  40. 1
    1
      sections/userhistory/subscribed_collages.php
  41. 2
    2
      static/functions/browse.js
  42. 10
    10
      static/functions/global.js
  43. 2
    2
      static/functions/news_ajax.js
  44. 2
    2
      static/functions/public.js
  45. 3
    3
      static/functions/script_start.js
  46. 6
    2
      static/styles/global.css
  47. 5
    0
      static/styles/public/style.css

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

@@ -125,9 +125,9 @@ class Badges {
125 125
 
126 126
     if (isset($Icon)) {
127 127
       if ($Tooltip) {
128
-        $html .= "<a class='badge_icon'><img class='tooltip' title='$Name</br>$Description' src='$Icon' /></a>";
128
+        $html .= '<a class="badge_icon"><img class="tooltip" alt="'.$Name.'" title="'.$Name.'</br>'.$Description.'" src="'.$Icon.'" /></a>';
129 129
       } else {
130
-        $html .= "<a class='badge_icon'><img title='$Name' src='$Icon' /></a>";
130
+        $html .= '<a class="badge_icon"><img alt="'.$Name.'" title="'.$Name.'" src="'.$Icon.'" /></a>';
131 131
       }
132 132
     }
133 133
 

+ 66
- 66
classes/debug.class.php View File

@@ -322,16 +322,16 @@ class DEBUG {
322 322
       return;
323 323
     }
324 324
 ?>
325
-  <table class="layout" width="100%">
325
+  <table class="layout">
326 326
     <tr>
327
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_perf').gtoggle(); return false;" class="brackets">View</a> Performance Statistics:</strong></td>
327
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_perf').gtoggle(); return false;" class="brackets">View</a> Performance Statistics:</strong></td>
328 328
     </tr>
329 329
   </table>
330
-  <table id="debug_perf" class="debug_table hidden" width="100%">
330
+  <table id="debug_perf" class="debug_table hidden">
331 331
 <?
332 332
     foreach ($Perf as $Stat => $Value) {
333 333
 ?>
334
-    <tr valign="top">
334
+    <tr class="valign_top">
335 335
       <td class="debug_perf_stat"><?=$Stat?></td>
336 336
       <td class="debug_perf_data"><?=$Value?></td>
337 337
     </tr>
@@ -347,16 +347,16 @@ class DEBUG {
347 347
       $Includes = $this->get_includes();
348 348
     }
349 349
 ?>
350
-  <table class="layout" width="100%">
350
+  <table class="layout">
351 351
     <tr>
352
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_include').gtoggle(); return false;" class="brackets">View</a> <?=number_format(count($Includes))?> Includes:</strong></td>
352
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_include').gtoggle(); return false;" class="brackets">View</a> <?=number_format(count($Includes))?> Includes:</strong></td>
353 353
     </tr>
354 354
   </table>
355
-  <table id="debug_include" class="debug_table hidden" width="100%">
355
+  <table id="debug_include" class="debug_table hidden">
356 356
 <?
357 357
     foreach ($Includes as $File) {
358 358
 ?>
359
-    <tr valign="top">
359
+    <tr class="valign_top">
360 360
       <td><?=$File?></td>
361 361
     </tr>
362 362
 <?
@@ -371,14 +371,14 @@ class DEBUG {
371 371
       $Classes = $this->get_classes();
372 372
     }
373 373
 ?>
374
-  <table class="layout" width="100%">
374
+  <table class="layout">
375 375
     <tr>
376
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_classes').gtoggle(); return false;" class="brackets">View</a> Classes:</strong></td>
376
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_classes').gtoggle(); return false;" class="brackets">View</a> Classes:</strong></td>
377 377
     </tr>
378 378
   </table>
379
-  <table id="debug_classes" class="debug_table hidden" width="100%">
379
+  <table id="debug_classes" class="debug_table hidden">
380 380
     <tr>
381
-      <td align="left">
381
+      <td>
382 382
         <pre>
383 383
 <?          print_r($Classes); echo "\n"; ?>
384 384
         </pre>
@@ -390,14 +390,14 @@ class DEBUG {
390 390
 
391 391
   public function extension_table() {
392 392
 ?>
393
-  <table class="layout" width="100%">
393
+  <table class="layout">
394 394
     <tr>
395
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_extensions').gtoggle(); return false;" class="brackets">View</a> Extensions:</strong></td>
395
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_extensions').gtoggle(); return false;" class="brackets">View</a> Extensions:</strong></td>
396 396
     </tr>
397 397
   </table>
398
-  <table id="debug_extensions" class="debug_table hidden" width="100%">
398
+  <table id="debug_extensions" class="debug_table hidden">
399 399
     <tr>
400
-      <td align="left">
400
+      <td>
401 401
         <pre>
402 402
 <?          print_r($this->get_extensions()); echo "\n"; ?>
403 403
         </pre>
@@ -415,31 +415,31 @@ class DEBUG {
415 415
       return;
416 416
     }
417 417
 ?>
418
-  <table class="layout" width="100%">
418
+  <table class="layout">
419 419
     <tr>
420
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_flags').gtoggle(); return false;" class="brackets">View</a> Flags:</strong></td>
420
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_flags').gtoggle(); return false;" class="brackets">View</a> Flags:</strong></td>
421 421
     </tr>
422 422
   </table>
423
-  <table id="debug_flags" class="debug_table hidden" width="100%">
424
-    <tr valign="top">
425
-      <td align="left" class="debug_flags_event"><strong>Event</strong></td>
426
-      <td align="left" class="debug_flags_time"><strong>Page time</strong></td>
423
+  <table id="debug_flags" class="debug_table hidden">
424
+    <tr class="valign_top">
425
+      <td class="debug_flags_event"><strong>Event</strong></td>
426
+      <td class="debug_flags_time"><strong>Page time</strong></td>
427 427
 <?    if ($Flags[0][3] !== false) { ?>
428
-      <td align="left" class="debug_flags_time"><strong>CPU time</strong></td>
428
+      <td class="debug_flags_time"><strong>CPU time</strong></td>
429 429
 <?    } ?>
430
-      <td align="left" class="debug_flags_memory"><strong>Memory</strong></td>
430
+      <td class="debug_flags_memory"><strong>Memory</strong></td>
431 431
     </tr>
432 432
 <?
433 433
     foreach ($Flags as $Flag) {
434 434
       list($Event, $MicroTime, $Memory, $CPUTime) = $Flag;
435 435
 ?>
436
-    <tr valign="top">
437
-      <td align="left"><?=$Event?></td>
438
-      <td align="left"><?=number_format($MicroTime, 3)?> ms</td>
436
+    <tr class="valign_top">
437
+      <td><?=$Event?></td>
438
+      <td><?=number_format($MicroTime, 3)?> ms</td>
439 439
 <?      if ($CPUTime !== false) { ?>
440
-      <td align="left"><?=number_format($CPUTime / 1000, 3)?> ms</td>
440
+      <td><?=number_format($CPUTime / 1000, 3)?> ms</td>
441 441
 <?      } ?>
442
-      <td align="left"><?=Format::get_size($Memory)?></td>
442
+      <td><?=Format::get_size($Memory)?></td>
443 443
     </tr>
444 444
 <?    } ?>
445 445
   </table>
@@ -451,14 +451,14 @@ class DEBUG {
451 451
       $Constants = $this->get_constants();
452 452
     }
453 453
 ?>
454
-  <table class="layout" width="100%">
454
+  <table class="layout">
455 455
     <tr>
456
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_constants').gtoggle(); return false;" class="brackets">View</a> Constants:</strong></td>
456
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_constants').gtoggle(); return false;" class="brackets">View</a> Constants:</strong></td>
457 457
     </tr>
458 458
   </table>
459
-  <table id="debug_constants" class="debug_table hidden" width="100%">
459
+  <table id="debug_constants" class="debug_table hidden">
460 460
     <tr>
461
-      <td align="left" class="debug_data debug_constants_data">
461
+      <td class="debug_data debug_constants_data">
462 462
         <pre>
463 463
 <?=         display_str(print_r($Constants, true))?>
464 464
         </pre>
@@ -476,22 +476,22 @@ class DEBUG {
476 476
       return;
477 477
     }
478 478
 ?>
479
-  <table class="layout" width="100%">
479
+  <table class="layout">
480 480
     <tr>
481
-      <td align="left"><strong><a toggle-target="#debug_ocelot" class="brackets">View</a> <?=number_format(count($OcelotRequests))?> Ocelot requests:</strong></td>
481
+      <td><strong><a data-toggle-target="#debug_ocelot" class="brackets">View</a> <?=number_format(count($OcelotRequests))?> Ocelot requests:</strong></td>
482 482
     </tr>
483 483
   </table>
484
-  <table id="debug_ocelot" class="debug_table hidden" width="100%">
484
+  <table id="debug_ocelot" class="debug_table hidden">
485 485
 <?    foreach ($OcelotRequests as $i => $Request) { ?>
486 486
     <tr>
487
-      <td align="left" class="debug_data debug_ocelot_data">
488
-        <a toggle-target="#debug_ocelot_<?=$i?>"><?=display_str($Request['path'])?></a>
487
+      <td class="debug_data debug_ocelot_data">
488
+        <a data-toggle-target="#debug_ocelot_<?=$i?>"><?=display_str($Request['path'])?></a>
489 489
         <pre id="debug_ocelot_<?=$i?>" class="hidden"><?=display_str($Request['response'])?></pre>
490 490
       </td>
491
-      <td align="left" class="debug_info" style="width: 100px;">
491
+      <td class="debug_info" style="width: 100px;">
492 492
         <?=display_str($Request['status'])?>
493 493
       </td>
494
-      <td align="left" class="debug_info debug_timing" style="width: 100px;">
494
+      <td class="debug_info debug_timing" style="width: 100px;">
495 495
         <?=number_format($Request['time'], 5)?> ms
496 496
       </td>
497 497
     </tr>
@@ -512,19 +512,19 @@ class DEBUG {
512 512
     $Header = ' '.number_format(count($CacheKeys))." $Header:";
513 513
 
514 514
 ?>
515
-  <table class="layout" width="100%">
515
+  <table class="layout">
516 516
     <tr>
517
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_cache').gtoggle(); return false;" class="brackets">View</a><?=$Header?></strong></td>
517
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_cache').gtoggle(); return false;" class="brackets">View</a><?=$Header?></strong></td>
518 518
     </tr>
519 519
   </table>
520
-  <table id="debug_cache" class="debug_table hidden" width="100%">
520
+  <table id="debug_cache" class="debug_table hidden">
521 521
 <?    foreach ($CacheKeys as $Key) { ?>
522 522
     <tr>
523 523
       <td class="label nobr debug_info debug_cache_key">
524 524
         <a href="#" onclick="$('#debug_cache_<?=$Key?>').gtoggle(); return false;"><?=display_str($Key)?></a>
525 525
         <a href="tools.php?action=clear_cache&amp;key=<?=$Key?>&amp;type=clear" target="_blank" class="brackets tooltip" title="Clear this cache key">Clear</a>
526 526
       </td>
527
-      <td align="left" class="debug_data debug_cache_data">
527
+      <td class="debug_data debug_cache_data">
528 528
         <pre id="debug_cache_<?=$Key?>" class="hidden">
529 529
 <?=         display_str(print_r(G::$Cache->get_value($Key, true), true))?>
530 530
         </pre>
@@ -543,24 +543,24 @@ class DEBUG {
543 543
       return;
544 544
     }
545 545
 ?>
546
-  <table class="layout" width="100%">
546
+  <table class="layout">
547 547
     <tr>
548
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_error').gtoggle(); return false;" class="brackets">View</a> <?=number_format(count($Errors))?> Errors:</strong></td>
548
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_error').gtoggle(); return false;" class="brackets">View</a> <?=number_format(count($Errors))?> Errors:</strong></td>
549 549
     </tr>
550 550
   </table>
551
-  <table id="debug_error" class="debug_table hidden" width="100%">
551
+  <table id="debug_error" class="debug_table hidden">
552 552
 <?
553 553
     foreach ($Errors as $Error) {
554 554
       list($Error, $Location, $Call, $Args) = $Error;
555 555
 ?>
556
-    <tr valign="top">
557
-      <td align="left" class="debug_info debug_error_call">
556
+    <tr class="valign_top">
557
+      <td class="debug_info debug_error_call">
558 558
         <?=display_str($Call)?>(<?=display_str($Args)?>)
559 559
       </td>
560
-      <td class="debug_data debug_error_data" align="left">
560
+      <td class="debug_data debug_error_data">
561 561
         <?=display_str($Error)?>
562 562
       </td>
563
-      <td align="left">
563
+      <td>
564 564
         <?=display_str($Location)?>
565 565
       </td>
566 566
     </tr>
@@ -580,12 +580,12 @@ class DEBUG {
580 580
     }
581 581
     $Header = ' '.number_format(count($Queries))." $Header:";
582 582
 ?>
583
-  <table class="layout" width="100%">
583
+  <table class="layout">
584 584
     <tr>
585
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_database').gtoggle(); return false;" class="brackets">View</a><?=$Header?></strong></td>
585
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_database').gtoggle(); return false;" class="brackets">View</a><?=$Header?></strong></td>
586 586
     </tr>
587 587
   </table>
588
-  <table id="debug_database" class="debug_table hidden" width="100%">
588
+  <table id="debug_database" class="debug_table hidden">
589 589
 <?
590 590
     foreach ($Queries as $Query) {
591 591
       $SQL = $Query[0] ?? null;
@@ -595,9 +595,9 @@ class DEBUG {
595 595
         $Warnings = implode('<br />', $Warnings);
596 596
       }
597 597
 ?>
598
-    <tr valign="top">
598
+    <tr class="valign_top">
599 599
       <td class="debug_data debug_query_data"><div><?=str_replace("\t", '&nbsp;&nbsp;', nl2br(display_str(trim($SQL))))?></div></td>
600
-      <td class="debug_info debug_query_time" style="width: 130px;" align="left"><?=number_format($Time, 5)?> ms</td>
600
+      <td class="debug_info debug_query_time" style="width: 130px;"><?=number_format($Time, 5)?> ms</td>
601 601
       <td class="debug_info debug_query_warnings"><?=$Warnings?></td>
602 602
     </tr>
603 603
 <?    } ?>
@@ -616,19 +616,19 @@ class DEBUG {
616 616
     }
617 617
     $Header = ' '.number_format(count($Queries))." $Header:";
618 618
 ?>
619
-  <table class="layout" width="100%">
619
+  <table class="layout">
620 620
     <tr>
621
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_sphinx').gtoggle(); return false;" class="brackets">View</a><?=$Header?></strong></td>
621
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_sphinx').gtoggle(); return false;" class="brackets">View</a><?=$Header?></strong></td>
622 622
     </tr>
623 623
   </table>
624
-  <table id="debug_sphinx" class="debug_table hidden" width="100%">
624
+  <table id="debug_sphinx" class="debug_table hidden">
625 625
 <?
626 626
     foreach ($Queries as $Query) {
627 627
       list($Params, $Time) = $Query;
628 628
 ?>
629
-    <tr valign="top">
629
+    <tr class="valign_top">
630 630
       <td class="debug_data debug_sphinx_data"><pre><?=str_replace("\t", '  ', $Params)?></pre></td>
631
-      <td class="debug_info debug_sphinx_time" style="width: 130px;" align="left"><?=number_format($Time, 5)?> ms</td>
631
+      <td class="debug_info debug_sphinx_time" style="width: 130px;"><?=number_format($Time, 5)?> ms</td>
632 632
     </tr>
633 633
 <?    } ?>
634 634
   </table>
@@ -646,23 +646,23 @@ class DEBUG {
646 646
     $Header = ' '.number_format(count($Vars))." $Header:";
647 647
 
648 648
 ?>
649
-  <table class="layout" width="100%">
649
+  <table class="layout">
650 650
     <tr>
651
-      <td align="left"><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_loggedvars').gtoggle(); return false;" class="brackets">View</a><?=$Header?></strong></td>
651
+      <td><strong><a href="#" onclick="$(this).parents('.layout').next('#debug_loggedvars').gtoggle(); return false;" class="brackets">View</a><?=$Header?></strong></td>
652 652
     </tr>
653 653
   </table>
654
-  <table id="debug_loggedvars" class="debug_table hidden" width="100%">
654
+  <table id="debug_loggedvars" class="debug_table hidden">
655 655
 <?
656 656
     foreach ($Vars as $ID => $Var) {
657 657
       list($Key, $Data) = each($Var);
658 658
       $Size = count($Data['data']);
659 659
 ?>
660 660
     <tr>
661
-      <td align="left" class="debug_info debug_loggedvars_name">
661
+      <td class="debug_info debug_loggedvars_name">
662 662
         <a href="#" onclick="$('#debug_loggedvars_<?=$ID?>').gtoggle(); return false;"><?=display_str($Key)?></a> (<?=$Size . ($Size == 1 ? ' element' : ' elements')?>)
663 663
         <div><?=$Data['bt']['path'].':'.$Data['bt']['line'];?></div>
664 664
       </td>
665
-      <td class="debug_data debug_loggedvars_data" align="left">
665
+      <td class="debug_data debug_loggedvars_data">
666 666
         <pre id="debug_loggedvars_<?=$ID?>" class="hidden">
667 667
 <?=         display_str(print_r($Data['data'], true))?>
668 668
         </pre>

+ 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 toggle-target="#profilediv_<?=$i?>" toggle-replace="Show" class="brackets">Hide</a></span>
106
+          <span style="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 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

@@ -56,7 +56,7 @@ class TestingView {
56 56
         <div class="head">
57 57
           <span><?=self::render_method_definition($Method)?></span>
58 58
           <span style="float: right;">
59
-            <a toggle-target="#method_params_<?=$Index?>" class="brackets">Params</a>
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>
62 62
         </div>

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

@@ -734,7 +734,7 @@ class Text {
734 734
                 }
735 735
                 $Str .= '"';
736 736
                 if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
737
-                  $Str .= " onmouseover=\"getCover(event)\" cover=\"".ImageTools::process($Group['WikiImage'], true)."\" onmouseleave=\"ungetCover(event)\"";
737
+                  $Str .= " onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($Group['WikiImage'], true)."\" onmouseleave=\"ungetCover(event)\"";
738 738
                 }
739 739
                 $Name = empty($Group['Name']) ? (empty($Group['NameRJ']) ? $Group['NameJP'] : $Group['NameRJ']) : $Group['Name'];
740 740
                 $Str .= '>'.$Name.'</a>';
@@ -1008,7 +1008,7 @@ class Text {
1008 1008
     }
1009 1009
     if (count(self::$ProcessedSmileys) == 0 && count(self::$Smileys) > 0) {
1010 1010
       foreach (self::$Smileys as $Key => $Val) {
1011
-        self::$ProcessedSmileys[$Key] = '<img border="0" src="'.STATIC_SERVER.'common/smileys/'.$Val.'" alt="" />';
1011
+        self::$ProcessedSmileys[$Key] = '<img src="'.STATIC_SERVER.'common/smileys/'.$Val.'" alt="" />';
1012 1012
       }
1013 1013
       reset(self::$ProcessedSmileys);
1014 1014
     }

+ 5
- 5
design/privateheader.php View File

@@ -3,13 +3,14 @@
3 3
 define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php');
4 4
 
5 5
 ?>
6
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7
-<html>
6
+<!DOCTYPE html>
7
+<html lang="en">
8 8
 <head>
9 9
   <title><?=display_str($PageTitle)?></title>
10 10
   <meta charset="utf-8" />
11
-  <meta id="auth_holder" userid="<?=G::$LoggedUser['ID']?>" authkey="<?=G::$LoggedUser['AuthKey']?>" />
12
-  <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" />
11
+  <meta name="userid" content="<?=G::$LoggedUser['ID']?>" />
12
+  <meta name="authkey" content="<?=G::$LoggedUser['AuthKey']?>" />
13
+  <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico')?>" />
13 14
   <link rel="search" type="application/opensearchdescription+xml" title="<?=SITE_NAME?>" href="<?=STATIC_SERVER?>opensearch.xml">
14 15
   <link rel="alternate" type="application/rss+xml"
15 16
       href="feeds.php?feed=feed_news&amp;user=<?=G::$LoggedUser['ID']?>&amp;auth=<?=G::$LoggedUser['RSS_Auth']?>&amp;passkey=<?=G::$LoggedUser['torrent_pass']?>&amp;authkey=<?=G::$LoggedUser['AuthKey']?>"
@@ -196,7 +197,6 @@ if ($NotificationsManager->is_skipped(NotificationsManager::SUBSCRIPTIONS)) {
196 197
             </div>
197 198
           </li>
198 199
         </ul>
199
-        </ul>
200 200
       </div>
201 201
 <?
202 202
 if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search

+ 4
- 4
design/publicheader.php View File

@@ -2,11 +2,11 @@
2 2
 global $LoggedUser;
3 3
 define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php');
4 4
 ?>
5
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+<!DOCTYPE html>
6 6
 <html>
7 7
 <head>
8 8
   <title><?=display_str($PageTitle)?></title>
9
-  <meta http-equiv="X-UA-Compatible" content="chrome=1; IE=edge" />
9
+  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
10 10
   <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" />
11 11
   <link href="<?=STATIC_SERVER ?>styles/public/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/public/style.css')?>" rel="stylesheet" type="text/css" />
12 12
 <?
@@ -23,7 +23,7 @@ define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php');
23 23
 <?
24 24
   }
25 25
   $img = array_diff(scandir(SERVER_ROOT.'/misc/bg', 1), array('.', '..')); ?>
26
-  <meta id="bg_data" bg="<?=$img[rand(0,count($img)-1)]?>">
26
+  <meta name="bg_data" content="<?=$img[rand(0,count($img)-1)]?>">
27 27
 </head>
28 28
 <body>
29 29
 <div id="head"><span>
@@ -35,6 +35,6 @@ define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php');
35 35
 <div id="content">
36 36
   <table class="layout" id="maincontent">
37 37
     <tr>
38
-      <td align="center" valign="middle">
38
+      <td class="centered">
39 39
         <a href="index.php"><div id="logo"></div></a>
40 40
 <?

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

@@ -52,16 +52,6 @@
52 52
   if (!isset($InputTitle)) {
53 53
     $InputTitle = 'Post comment';
54 54
   }
55
-  if (!isset($Action)) {
56
-    $Action = '';
57
-  }
58
-
59
-  // TODO: Remove inline styles
60
-
61
-  // Old to do?
62
-  // TODO: Preview, come up with a standard, make it look like post or just a
63
-  // block of formatted BBcode, but decide and write some proper XHTML
64
-
65 55
 
66 56
   $ReplyText = new TEXTAREA_PREVIEW('body', 'quickpost', '',
67 57
       $TextareaCols, $TextareaRows, false, false, true, array(
@@ -95,18 +85,18 @@
95 85
             </tr>
96 86
             <tr>
97 87
 <?  if (Users::has_avatars_enabled()) { ?>
98
-              <td class="avatar" valign="top">
88
+              <td class="avatar valign_top">
99 89
                 <?=Users::show_avatar(G::$LoggedUser['Avatar'], G::$LoggedUser['ID'], G::$LoggedUser['Username'], (!isset($HeavyInfo['DisableAvatars']) || $HeavyInfo['DisableAvatars']))?>
100 90
               </td>
101 91
 <?  } ?>
102
-              <td class="body" valign="top">
92
+              <td class="body valign_top">
103 93
                 <div id="contentpreview" style="text-align: left;">
104 94
                   <div id="preview_<?=$ReplyText->getID()?>"></div>
105 95
                 </div>
106 96
               </td>
107 97
             </tr>
108 98
           </table>
109
-          <form class="send_form center" name="reply" id="quickpostform" action="<?=$Action?>" method="post"<? if (!check_perms('users_mod')) { ?> onsubmit="quickpostform.submit_button.disabled = true;"<? } ?>>
99
+          <form class="send_form center" name="reply" id="quickpostform" <?=isset($Action)?'action="'.$Action.'"':''?> method="post"<? if (!check_perms('users_mod')) { ?> onsubmit="quickpostform.submit_button.disabled = true;"<? } ?>>
110 100
             <input type="hidden" name="action" value="<?=$InputAction?>" />
111 101
             <input type="hidden" name="auth" value="<?=G::$LoggedUser['AuthKey']?>" />
112 102
             <input type="hidden" name="<?=$InputName?>" value="<?=$InputID?>" />

+ 1
- 1
design/views/generic/reply/staffpm.php View File

@@ -22,6 +22,6 @@
22 22
 
23 23
         <input type="button" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" />
24 24
         <input type="submit" value="Send message" />
25
-        <input type="button" value="Hide" toggle-target="#compose" />
25
+        <input type="button" value="Hide" data-toggle-target="#compose" />
26 26
       </form>
27 27
     </div>

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

@@ -211,7 +211,7 @@ foreach ($TorrentList as $Group) {
211 211
 
212 212
     $DisplayName .= "<a href=\"torrents.php?id=$GroupID\" class=\"tooltip\" title=\"View torrent group\" ";
213 213
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
214
-      $DisplayName .= 'onmouseover="getCover(event)" cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover()" ';
214
+      $DisplayName .= 'onmouseover="getCover(event)" data-cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover()" ';
215 215
     }
216 216
 
217 217
     $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
@@ -315,7 +315,7 @@ foreach ($TorrentList as $Group) {
315 315
 
316 316
     $DisplayName .= "<a class=\"torrent_name\" href=\"torrents.php?id=$GroupID&amp;torrentid=$TorrentID#torrent$TorrentID\" ";
317 317
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
318
-      $DisplayName .= "onmouseover=\"getCover(event)\" cover=\"".ImageTools::process($WikiImage, true)."\" onmouseleave=\"ungetCover(event)\" ";
318
+      $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage, true)."\" onmouseleave=\"ungetCover(event)\" ";
319 319
     }
320 320
 
321 321
     $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
@@ -637,7 +637,7 @@ if (empty($SimilarArray)) {
637 637
       <div id="info" class="head">
638 638
         <a href="#">&uarr;</a>&nbsp;
639 639
         <strong>Information</strong>
640
-        <a class="brackets" toggle-target="#body">Toggle</a>
640
+        <a class="brackets" data-toggle-target="#body">Toggle</a>
641 641
       </div>
642 642
       <div id="body" class="body"><?=Text::full_format($Body)?></div>
643 643
     </div>
@@ -663,7 +663,7 @@ if (count($Collages) > 0) {
663 663
     $Range = range(0,count($Collages) - 1);
664 664
     shuffle($Range);
665 665
     $Indices = array_slice($Range, 0, MAX_COLLAGES);
666
-    $SeeAll = ' <a toggle-target=".collage_rows">(See all)</a>';
666
+    $SeeAll = ' <a data-toggle-target=".collage_rows">(See all)</a>';
667 667
   } else {
668 668
     $Indices = range(0, count($Collages)-1);
669 669
     $SeeAll = '';

+ 1
- 1
sections/better/covers.php View File

@@ -52,7 +52,7 @@ foreach ($Results as $Result) {
52 52
 
53 53
   $DisplayName = "<a href=\"torrents.php?id=$ID\" class=\"tooltip\" title=\"View torrent group\" ";
54 54
   if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
55
-    $DisplayName .= 'onmouseover="getCover(event)" cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover(event)" ';
55
+    $DisplayName .= 'onmouseover="getCover(event)" data-cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover(event)" ';
56 56
   }
57 57
   $DisplayName .= "dir=\"ltr\">$Name</a>";
58 58
   if ($Year > 0) {

+ 1
- 1
sections/better/screenshots.php View File

@@ -54,7 +54,7 @@ foreach ($Results as $Result) {
54 54
 
55 55
   $DisplayName = "<a href=\"torrents.php?id=$ID\" class=\"tooltip\" title=\"View torrent group\" ";
56 56
   if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
57
-    $DisplayName .= 'onmouseover="getCover(event)" cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover(event)" ';
57
+    $DisplayName .= 'onmouseover="getCover(event)" data-cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover(event)" ';
58 58
   }
59 59
   $DisplayName .= "dir=\"ltr\">$LangName</a>";
60 60
   if ($Year > 0) {

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

@@ -72,7 +72,7 @@ foreach ($GroupIDs as $GroupID) {
72 72
 
73 73
   $DisplayName .= "<a href=\"torrents.php?id=$GroupID\" ";
74 74
   if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
75
-    $DisplayName .= 'onmouseover="getCover(event)" cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover(event)" ';
75
+    $DisplayName .= 'onmouseover="getCover(event)" data-cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover(event)" ';
76 76
   }
77 77
   $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
78 78
   $DisplayName .= "dir=\"ltr\">$GroupName</a>";

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

@@ -87,7 +87,7 @@ View::show_header('Forums &gt; '. $Forums[$ForumID]['Name'], '', '');
87 87
 <? if (Forums::check_forumperm($ForumID, 'Write') && Forums::check_forumperm($ForumID, 'Create')) { ?>
88 88
     <a href="forums.php?action=new&amp;forumid=<?=$ForumID?>" class="brackets">New thread</a>
89 89
 <? } ?>
90
-    <a toggle-target="#searchforum" toggle-replace="Hide search" class="brackets">Search this forum</a>
90
+    <a data-toggle-target="#searchforum" data-toggle-replace="Hide search" class="brackets">Search this forum</a>
91 91
     <div id="searchforum" class="hidden center">
92 92
       <div style="display: inline-block;">
93 93
         <h3>Search this forum:</h3>

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

@@ -35,7 +35,7 @@ View::show_header('Forums &gt; '.$Forum['Name'].' &gt; New Topic', 'comments,bbc
35 35
     </div>
36 36
 <?  if (check_perms('forums_polls_create')) { ?>
37 37
     <div class="box thin clear hidden" id="pollpreview">
38
-      <div class="head colhead_dark"><strong>Poll</strong> <a toggle-target="#threadpoll" class="brackets">View</a></div>
38
+      <div class="head colhead_dark"><strong>Poll</strong> <a data-toggle-target="#threadpoll" class="brackets">View</a></div>
39 39
       <div class="pad" id="threadpoll">
40 40
         <p><strong id="pollquestion"></strong></p>
41 41
         <div id="pollanswers"></div>
@@ -135,7 +135,7 @@ if (check_perms('forums_polls_create')) {
135 135
         <tr>
136 136
           <td colspan="2" class="center">
137 137
             <strong>Poll Settings</strong>
138
-            <a toggle-target="#poll_question, #poll_answers" class="brackets">View</a>
138
+            <a data-toggle-target="#poll_question, #poll_answers" class="brackets">View</a>
139 139
           </td>
140 140
         </tr>
141 141
         <tr id="poll_question" class="hidden">

+ 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 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 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>
338 338
 <?  } ?>
339 339
       </td>
340 340
       <td>

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

@@ -179,7 +179,7 @@ View::show_header($ThreadInfo['Title'] . ' &lt; '.$Forums[$ForumID]['Name'].' &l
179 179
     <div class="center">
180 180
       <a href="reports.php?action=report&amp;type=thread&amp;id=<?=$ThreadID?>" class="brackets">Report thread</a>
181 181
       <a href="#" onclick="Subscribe(<?=$ThreadID?>);return false;" id="subscribelink<?=$ThreadID?>" class="brackets"><?=(in_array($ThreadID, $UserSubscriptions) ? 'Unsubscribe' : 'Subscribe')?></a>
182
-      <a toggle-target="#searchthread" toggle-replace="Hide search" class="brackets">Search this thread</a>
182
+      <a data-toggle-target="#searchthread" data-toggle-replace="Hide search" class="brackets">Search this thread</a>
183 183
     </div>
184 184
     <div id="searchthread" class="hidden center">
185 185
       <div style="display: inline-block;">
@@ -187,7 +187,7 @@ View::show_header($ThreadInfo['Title'] . ' &lt; '.$Forums[$ForumID]['Name'].' &l
187 187
         <form class="search_form" name="forum_thread" action="forums.php" method="get">
188 188
           <input type="hidden" name="action" value="search" />
189 189
           <input type="hidden" name="threadid" value="<?=$ThreadID?>" />
190
-          <table cellpadding="6" cellspacing="1" border="0" class="layout border">
190
+          <table class="layout border">
191 191
             <tr>
192 192
               <td><strong>Search for:</strong></td>
193 193
               <td><input type="search" id="searchbox" name="search" size="70" /></td>
@@ -356,7 +356,7 @@ if ($ThreadInfo['NoPoll'] == 0) {
356 356
   //User has not voted
357 357
 ?>
358 358
       <div id="poll_container">
359
-        <form class="vote_form" name="poll" id="poll" action="">
359
+        <form class="vote_form" name="poll" id="poll">
360 360
           <input type="hidden" name="action" value="poll" />
361 361
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
362 362
           <input type="hidden" name="large" value="1" />
@@ -479,7 +479,7 @@ foreach ($Thread as $Key => $Post) {
479 479
     $AuthorInfo = Users::user_info($AuthorID);
480 480
     if ($LoggedUser['Class'] >= $AuthorInfo['Class']) {
481 481
 ?>
482
-        <form class="manage_form hidden" name="user" id="warn<?=$PostID?>" action="" method="post">
482
+        <form class="manage_form hidden" name="user" id="warn<?=$PostID?>" method="post">
483 483
           <input type="hidden" name="action" value="warn" />
484 484
           <input type="hidden" name="postid" value="<?=$PostID?>" />
485 485
           <input type="hidden" name="userid" value="<?=$AuthorID?>" />
@@ -496,11 +496,11 @@ foreach ($Thread as $Key => $Post) {
496 496
   </tr>
497 497
   <tr>
498 498
 <?  if (Users::has_avatars_enabled()) { ?>
499
-    <td class="avatar" valign="top">
499
+    <td class="avatar valign_top">
500 500
     <?=Users::show_avatar($Avatar, $AuthorID, $Username, $HeavyInfo['DisableAvatars'], 150, true)?>
501 501
     </td>
502 502
 <?  } ?>
503
-    <td class="body" valign="top"<? if (!Users::has_avatars_enabled()) { echo ' colspan="2"'; } ?>>
503
+    <td class="body valign_top"<? if (!Users::has_avatars_enabled()) { echo ' colspan="2"'; } ?>>
504 504
       <div id="content<?=$PostID?>">
505 505
         <?=Text::full_format($Body) ?>
506 506
 <?  if ($EditedUserID) { ?>
@@ -512,9 +512,9 @@ foreach ($Thread as $Key => $Post) {
512 512
 <?    } ?>
513 513
         Last edited by
514 514
         <?=Users::format_username($EditedUserID, false, false, false, false, false, $IsDonorForum) ?> <?=time_diff($EditedTime, 2, true, true)?>
515
+        </div>
515 516
 <?  } ?>
516 517
       </div>
517
-      </div>
518 518
     </td>
519 519
   </tr>
520 520
 </table>
@@ -548,12 +548,12 @@ if (check_perms('site_moderate_forums')) {
548 548
   $Notes = G::$DB->to_array();
549 549
 ?>
550 550
   <br />
551
-  <h3 id="thread_notes">Thread notes</h3> <a toggle-target="#thread_notes_table" class="brackets">Toggle</a>
551
+  <h3 id="thread_notes">Thread notes</h3> <a data-toggle-target="#thread_notes_table" class="brackets">Toggle</a>
552 552
   <form action="forums.php" method="post">
553 553
     <input type="hidden" name="action" value="take_topic_notes" />
554 554
     <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
555 555
     <input type="hidden" name="topicid" value="<?=$ThreadID?>" />
556
-    <table cellpadding="6" cellspacing="1" border="0" width="100%" class="layout border hidden" id="thread_notes_table">
556
+    <table class="layout border hidden" id="thread_notes_table">
557 557
 <?
558 558
   foreach ($Notes as $Note) {
559 559
 ?>
@@ -562,7 +562,7 @@ if (check_perms('site_moderate_forums')) {
562 562
   }
563 563
 ?>
564 564
       <tr>
565
-        <td colspan="2" class="center">
565
+        <td class="center">
566 566
           <div class="field_div textarea_wrap"><textarea id="topic_notes" name="body" cols="90" rows="3" onkeyup="resize('threadnotes');" style=" margin: 0px; width: 735px;"></textarea></div>
567 567
           <input type="submit" value="Save" />
568 568
         </td>
@@ -578,11 +578,11 @@ if (check_perms('site_moderate_forums')) {
578 578
     <input type="hidden" name="threadid" value="<?=$ThreadID?>" />
579 579
     <input type="hidden" name="page" value="<?=$Page?>" />
580 580
     </div>
581
-    <table cellpadding="6" cellspacing="1" border="0" width="100%" class="layout border slight_margin">
581
+    <table class="layout border slight_margin">
582 582
       <tr>
583 583
         <td class="label"><label for="sticky_thread_checkbox">Sticky</label></td>
584 584
         <td>
585
-          <input type="checkbox" id="sticky_thread_checkbox" toggle-target="#ranking_row" name="sticky"<? if ($ThreadInfo['IsSticky']) { echo ' checked="checked"'; } ?> tabindex="2" />
585
+          <input type="checkbox" id="sticky_thread_checkbox" data-toggle-target="#ranking_row" name="sticky"<? if ($ThreadInfo['IsSticky']) { echo ' checked="checked"'; } ?> tabindex="2" />
586 586
         </td>
587 587
       </tr>
588 588
       <tr id="ranking_row"<?=!$ThreadInfo['IsSticky'] ? ' class="hidden"' : ''?>>

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

@@ -155,7 +155,7 @@ if (count($Freeleeches)) {
155 155
     $DisplayTime = '('.str_replace(['week','day','hour','min','Just now','s',' '],['w','d','h','m','0m'],time_diff($ExpiryTime, 1, false)).') ';
156 156
     $DisplayName = '<a href="torrents.php?torrentid='.$ID.'"';
157 157
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
158
-      $DisplayName .= " onmouseover=\"getCover(event)\" cover=\"".ImageTools::process($Image)."\" onmouseleave=\"ungetCover(event)\"";
158
+      $DisplayName .= " onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($Image)."\" onmouseleave=\"ungetCover(event)\"";
159 159
     }
160 160
     $DisplayName .= '>'.($Name?$Name:($NameRJ?$NameRJ:$NameJP)).'</a>';
161 161
 ?>
@@ -467,7 +467,7 @@ $Cache->increment('usage_index');
467 467
   <div class="box" id="recommended">
468 468
     <div class="head colhead_dark">
469 469
       <strong>Latest Vanity House additions</strong>
470
-      <a toggle-target="#vanityhouse", toggle-replace="Hide" class="brackets">Show</a>
470
+      <a data-toggle-target="#vanityhouse", data-toggle-replace="Hide" class="brackets">Show</a>
471 471
     </div>
472 472
 
473 473
     <table class="torrent_table hidden" id="vanityhouse">
@@ -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 toggle-target="#newsbody<?=$NewsID?>" toggle-replace="Show" class="brackets">Hide</a></span>
517
+      <span style="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/requests/requests.php View File

@@ -498,7 +498,7 @@ View::show_header($Title, 'requests');
498 498
       $ArtistLink = Artists::display_artists($ArtistForm, true, true);
499 499
       $FullName = "$ArtistLink<a href=\"requests.php?action=view&amp;id=$RequestID\"><span ";
500 500
       if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
501
-        $FullName .= 'onmouseover="getCover(event)" cover="'.ImageTools::process($Request['Image']).'" onmouseleave="ungetCover(event)" ';
501
+        $FullName .= 'onmouseover="getCover(event)" data-cover="'.ImageTools::process($Request['Image']).'" onmouseleave="ungetCover(event)" ';
502 502
       }
503 503
       $FullName .= "dir=\"ltr\">$Title</span></a>";
504 504
 

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

@@ -30,7 +30,7 @@ View::show_header('Snatch List');
30 30
 foreach ($Torrents as $Torrent) {
31 31
   $DisplayName = "<a href=\"torrents.php?id=$Torrent[ID]&torrentid=$Torrent[fid]\" ";
32 32
   if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
33
-    $DisplayName .= 'onmouseover="getCover(event)" cover="'.ImageTools::process($Torrent['WikiImage'], true).'" onmouseleave="ungetCover(event)" ';
33
+    $DisplayName .= 'onmouseover="getCover(event)" data-cover="'.ImageTools::process($Torrent['WikiImage'], true).'" onmouseleave="ungetCover(event)" ';
34 34
   }
35 35
   $DisplayName .= "dir=\"ltr\">$Torrent[Name]</a>";
36 36
 

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

@@ -18,7 +18,7 @@ list($FrontLineSupport, $ForumStaff, $Staff) = $SupportStaff;
18 18
     <h3>Contact Staff</h3>
19 19
     <div id="below_box">
20 20
       <p>If you are looking for help with a general question, we appreciate it if you would only message through the staff inbox, where we can all help you.</p>
21
-      <p>You can do that by <strong><a toggle-target="#compose">sending a message to the Staff Inbox</a></strong>.</p>
21
+      <p>You can do that by <strong><a data-toggle-target="#compose">sending a message to the Staff Inbox</a></strong>.</p>
22 22
     </div>
23 23
     <? View::parse('generic/reply/staffpm.php', array('Hidden' => true)); ?>
24 24
 <? if ($FrontLineSupport) { ?>

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

@@ -85,7 +85,7 @@ if (check_perms('admin_manage_blog')) {
85 85
       <div class="head">
86 86
         <?=((empty($_GET['action'])) ? 'Create a staff blog post' : 'Edit staff blog post')?>
87 87
         <span style="float: right;">
88
-          <a toggle-target="#postform" toggle-replace="<?=(($_REQUEST['action'] != 'editblog') ? 'Hide' : 'Show')?>" class="brackets"><?=(($_REQUEST['action'] != 'editblog') ? 'Show' : 'Hide')?></a>
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>
91 91
       <form class="<?=((empty($_GET['action'])) ? 'create_form' : 'edit_form')?>" name="blog_post" action="staffblog.php" method="post">

+ 1
- 1
sections/staffpm/user_inbox.php View File

@@ -24,7 +24,7 @@ $StaffPMs = $DB->query("
24 24
   <div class="header">
25 25
     <h2>Staff PMs</h2>
26 26
     <div class="linkbox">
27
-      <a toggle-target="#compose" class="brackets">Compose new</a>
27
+      <a data-toggle-target="#compose" class="brackets">Compose new</a>
28 28
     </div>
29 29
   </div>
30 30
   <br />

+ 2
- 2
sections/staffpm/viewconv.php View File

@@ -232,7 +232,7 @@ if ($ConvID = (int)$_GET['id']) {
232 232
   if ($Status != 'Resolved') { ?>
233 233
           <input type="button" value="Resolve" onclick="location.href='staffpm.php?action=resolve&amp;id=<?=$ConvID?>';" />
234 234
 <?    if ($IsFLS) { //Moved by request ?>
235
-          <input type="button" value="Common answers" toggle-target="#common_answers" />
235
+          <input type="button" value="Common answers" data-toggle-target="#common_answers" />
236 236
 <?    } ?>
237 237
           <input type="button" id="previewbtn" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" />
238 238
           <input type="submit" value="Send message" />
@@ -242,7 +242,7 @@ if ($ConvID = (int)$_GET['id']) {
242 242
   }
243 243
   if (check_perms('users_give_donor')) { ?>
244 244
           <br />
245
-          <input type="button" value="Make Donor" toggle-target="#make_donor_form" />
245
+          <input type="button" value="Make Donor" data-toggle-target="#make_donor_form" />
246 246
 <?  } ?>
247 247
         </form>
248 248
 <?  if (check_perms('users_give_donor')) { ?>

+ 2
- 2
sections/tools/managers/enable_requests.php View File

@@ -139,8 +139,8 @@ $DB->set_query_id($QueryID);
139 139
     <a class="brackets tooltip" href="tools.php?action=enable_requests&amp;view=invalid_email&amp;<?=Format::get_url(array('view', 'action'))?>" title="Non-matching email address">Invalid Email</a>
140 140
     <a class="brackets tooltip" href="tools.php?action=enable_requests&amp;view=ip_overlap&amp;<?=Format::get_url(array('view', 'action'))?>" title="Requests with IP matches to other accounts">IP Overlap</a>
141 141
     <a class="brackets tooltip" href="tools.php?action=enable_requests&amp;view=manual_disable&amp;<?=Format::get_url(array('view', 'action'))?>" title="Requests for accounts that were not disabled for inactivity">Manual Disable</a>
142
-    <a class="brackets tooltip" title="Show/Hide Search" toggle-target="#search_form">Search</a>
143
-    <a class="brackets tooltip" title="Show/Hide Search" toggle-target="#scores">Scores</a>
142
+    <a class="brackets tooltip" title="Show/Hide Search" data-toggle-target="#search_form">Search</a>
143
+    <a class="brackets tooltip" title="Show/Hide Search" data-toggle-target="#scores">Scores</a>
144 144
 </div><br />
145 145
 <div class="thin">
146 146
     <table id="scores" class="hidden" style="width: 50%; margin: 0 auto;">

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

@@ -466,7 +466,7 @@ function generate_torrent_table($Caption, $Tag, $Details, $Limit) {
466 466
 
467 467
     $DisplayName .= "<a href=\"torrents.php?id=$GroupID&amp;torrentid=$TorrentID\" class=\"tooltip\" title=\"View torrent\" ";
468 468
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
469
-      $DisplayName .= 'onmouseover="getCover(event)" cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover()" ';
469
+      $DisplayName .= 'onmouseover="getCover(event)" data-cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover()" ';
470 470
     }
471 471
 
472 472
 

+ 2
- 2
sections/top10/votes.php View File

@@ -174,7 +174,7 @@ foreach ($TopVotes as $GroupID => $Group) {
174 174
 
175 175
   $DisplayName .= '<a href="torrents.php?id='.$GroupID.'" dir="ltr"';
176 176
   if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
177
-    $DisplayName .= ' onmouseover="getCover(event)" cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover(event)"';
177
+    $DisplayName .= ' onmouseover="getCover(event)" data-cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover(event)"';
178 178
   }
179 179
   $DisplayName .= '>'.$GroupName.'</a>';
180 180
   if ($GroupYear > 0) {
@@ -272,7 +272,7 @@ foreach ($TopVotes as $GroupID => $Group) {
272 272
 
273 273
     $DisplayName = $Group['Rank'] .' - <a href="torrents.php?id='.$GroupID.'" dir="ltr"';
274 274
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
275
-      $DisplayName .= ' onmouseover="getCover(event)" cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover(event)"';
275
+      $DisplayName .= ' onmouseover="getCover(event)" data-cover="'.ImageTools::process($WikiImage, true).'" onmouseleave="ungetCover(event)"';
276 276
     }
277 277
     $DisplayName .= '>'.$GroupName.'</a>';
278 278
     if ($Torrent['IsSnatched']) {

+ 18
- 19
sections/torrents/browse.php View File

@@ -148,7 +148,7 @@ View::show_header('Browse Torrents', 'browse');
148 148
   <div class="header">
149 149
     <h2>Torrents</h2>
150 150
   </div>
151
-  <form class="search_form" name="torrents" method="get" action="" onsubmit="$(this).disableUnset();">
151
+  <form class="search_form" name="torrents" method="get" onsubmit="$(this).disableUnset();">
152 152
   <div class="box filter_torrents">
153 153
     <div class="head">
154 154
       <strong>
@@ -172,13 +172,13 @@ View::show_header('Browse Torrents', 'browse');
172 172
       <table class="layout">
173 173
         <tr id="artist_name" class="ftr_advanced<?=$HideAdvanced?>">
174 174
           <td class="label"><!--Artist name:--></td>
175
-          <td colspan="3" class="ft_artistname">
175
+          <td class="ft_artistname">
176 176
             <input type="search" spellcheck="false" size="65" name="artistname" class="inputtext smaller fti_advanced" placeholder="Artist name" value="<?Format::form('artistname')?>" />
177 177
           </td>
178 178
         </tr>
179 179
         <tr id="album_torrent_name" class="ftr_advanced<?=$HideAdvanced?>">
180 180
           <td class="label"><!--Torrent name:--></td>
181
-          <td colspan="3" class="ft_groupname">
181
+          <td class="ft_groupname">
182 182
             <input type="search" spellcheck="false" size="65" name="advgroupname" class="inputtext smaller fti_advanced" placeholder="Torrent name" value="<?Format::form('advgroupname')?>" />
183 183
           </td>
184 184
         </tr>
@@ -202,19 +202,19 @@ View::show_header('Browse Torrents', 'browse');
202 202
         </tr>
203 203
         <tr id="file_list" class="ftr_advanced<?=$HideAdvanced?>">
204 204
           <td class="label"><!--File list:--></td>
205
-          <td colspan="3" class="ft_filelist">
205
+          <td class="ft_filelist">
206 206
             <input type="search" spellcheck="false" size="65" name="filelist" class="inputtext fti_advanced" placeholder="File list" value="<?Format::form('filelist')?>" />
207 207
           </td>
208 208
         </tr>
209 209
         <tr id="torrent_description" class="ftr_advanced<?=$HideAdvanced?>">
210 210
           <td class="label"><!--<span title="Search torrent descriptions (not group information)" class="tooltip">Torrent description:</span>--></td>
211
-          <td colspan="3" class="ft_description">
211
+          <td class="ft_description">
212 212
             <input type="search" spellcheck="false" size="65" name="description" class="inputtext fti_advanced tooltip_left" placeholder="Torrent description" title="Search torrent descriptions (not group information)" value="<?Format::form('description')?>" />
213 213
           </td>
214 214
         </tr>
215 215
         <tr id="rip_specifics" class="ftr_advanced<?=$HideAdvanced?>">
216 216
           <td class="label">Release specifics:</td>
217
-          <td class="nobr ft_ripspecifics" colspan="3">
217
+          <td class="nobr ft_ripspecifics">
218 218
             <select id="container" name="container" class="ft_container fti_advanced">
219 219
               <option value="">Container</option>
220 220
   <?  foreach ($Containers as $Container) { ?>
@@ -264,13 +264,13 @@ View::show_header('Browse Torrents', 'browse');
264 264
         </tr>
265 265
         <tr id="subber" class="ftr_advanced<?=$HideAdvanced?>">
266 266
           <td class="label"><!--Translation Group:--></td>
267
-          <td colspan="3" class="ft_subber">
267
+          <td class="ft_subber">
268 268
             <input type="search" spellcheck="false" size="65" name="subber" class="inputtext smaller fti_advanced" placeholder="Translation Group" value="<?Format::form('subber')?>" />
269 269
           </td>
270 270
         </tr>
271 271
         <tr id="misc" class="ftr_advanced<?=$HideAdvanced?>">
272 272
           <td class="label">Misc:</td>
273
-          <td class="nobr ft_misc" colspan="3">
273
+          <td class="nobr ft_misc">
274 274
             <select name="freetorrent" class="ft_freetorrent fti_advanced">
275 275
               <option value="">Leech Status</option>
276 276
               <option value="1"<?Format::selected('freetorrent', 1)?>>Freeleech</option>
@@ -283,18 +283,17 @@ View::show_header('Browse Torrents', 'browse');
283 283
               <option value="1"<?Format::selected('censored', 1)?>>Censored</option>
284 284
               <option value="0"<?Format::selected('censored', 0)?>>Uncensored</option>
285 285
             </select>
286
-            </select>
287 286
           </td>
288 287
         </tr>
289 288
         <tr id="search_terms" class="ftr_basic<?=$HideBasic?>">
290 289
           <td class="label"><!--Search terms:--></td>
291
-          <td colspan="3" class="ftb_searchstr">
290
+          <td class="ftb_searchstr">
292 291
             <input type="search" spellcheck="false" size="48" name="searchstr" class="inputtext fti_basic" placeholder="Search terms" value="<?Format::form('searchstr')?>" />
293 292
           </td>
294 293
         </tr>
295 294
         <tr id="tagfilter">
296 295
           <td class="label"><!--<span title="Use !tag to exclude tag" class="tooltip">Tags (comma-separated):</span>--></td>
297
-          <td colspan="3" class="ft_taglist">
296
+          <td class="ft_taglist">
298 297
             <input type="search" size="37" id="tags" name="taglist" class="inputtext smaller tooltip_left" title="Use !tag to exclude tag" placeholder="Tags (comma separated)" value="<?=display_str($Search->get_terms('taglist'))?>"<? Users::has_autocomplete_enabled('other'); ?> />&nbsp;
299 298
             <input type="radio" name="tags_type" id="tags_type0" value="0"<?Format::selected('tags_type', 0, 'checked')?> /><label for="tags_type0"> Any</label>&nbsp;&nbsp;
300 299
             <input type="radio" name="tags_type" id="tags_type1" value="1"<?Format::selected('tags_type', 1, 'checked')?> /><label for="tags_type1"> All</label>
@@ -302,7 +301,7 @@ View::show_header('Browse Torrents', 'browse');
302 301
         </tr>
303 302
         <tr id="order">
304 303
           <td class="label">Order by:</td>
305
-          <td colspan="3" class="ft_order">
304
+          <td class="ft_order">
306 305
             <select name="order_by" style="width: auto;" class="ft_order_by">
307 306
               <option value="time"<?Format::selected('order_by', 'time')?>>Time added</option>
308 307
               <option value="year"<?Format::selected('order_by', 'year')?>>Year</option>
@@ -323,7 +322,7 @@ View::show_header('Browse Torrents', 'browse');
323 322
           <td class="label">
324 323
             <label for="group_results">Group by release:</label>
325 324
           </td>
326
-          <td colspan="3" class="ft_group_results">
325
+          <td class="ft_group_results">
327 326
             <input type="checkbox" value="1" name="group_results" id="group_results"<?=$GroupResults ? ' checked="checked"' : ''?> />
328 327
           </td>
329 328
         </tr>
@@ -369,7 +368,7 @@ View::show_header('Browse Torrents', 'browse');
369 368
   $x = 0;
370 369
   foreach ($GenreTags as $Tag) {
371 370
   ?>
372
-          <td width="12.5%"><a href="#" onclick="add_tag('<?=$Tag?>'); return false;"><?=$Tag?></a></td>
371
+          <td><a href="#" onclick="add_tag('<?=$Tag?>'); return false;"><?=$Tag?></a></td>
373 372
   <?
374 373
     $x++;
375 374
     if ($x % 7 == 0) {
@@ -385,10 +384,10 @@ View::show_header('Browse Torrents', 'browse');
385 384
   <? } ?>
386 385
         </tr>
387 386
       </table>
388
-      <table class="layout cat_list" width="100%">
387
+      <table class="layout cat_list">
389 388
         <tr>
390 389
           <td class="label">
391
-            <a class="brackets" toggle-target="#taglist" toggle-replace="<?=(empty($LoggedUser['ShowTags']) ? 'Hide tags' : 'View tags')?>"><?=(empty($LoggedUser['ShowTags']) ? 'View tags' : 'Hide tags')?></a>
390
+            <a class="brackets" data-toggle-target="#taglist" data-toggle-replace="<?=(empty($LoggedUser['ShowTags']) ? 'Hide tags' : 'View tags')?>"><?=(empty($LoggedUser['ShowTags']) ? 'View tags' : 'Hide tags')?></a>
392 391
           </td>
393 392
         </tr>
394 393
       </table>
@@ -448,7 +447,7 @@ View::show_header('Browse Torrents', 'browse');
448 447
       <td class="small"></td>
449 448
   <?  } ?>
450 449
       <td class="small cats_col"></td>
451
-      <td width="100%">Name / <a href="<?=header_link('year')?>">Year</a></td>
450
+      <td>Name / <a href="<?=header_link('year')?>">Year</a></td>
452 451
       <td>Files</td>
453 452
       <td><a href="<?=header_link('time')?>">Time</a></td>
454 453
       <td><a href="<?=header_link('size')?>">Size</a></td>
@@ -514,7 +513,7 @@ View::show_header('Browse Torrents', 'browse');
514 513
     $CoverArt = $GroupInfo['WikiImage'];
515 514
     $DisplayName .= "<a class=\"torrent_title\" href=\"torrents.php?id=$GroupID\" ";
516 515
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
517
-      $DisplayName .= "onmouseover=\"getCover(event)\" cover=\"".ImageTools::process($CoverArt)."\" onmouseleave=\"ungetCover(event)\" ";
516
+      $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($CoverArt)."\" onmouseleave=\"ungetCover(event)\" ";
518 517
     }
519 518
     $DisplayName .= "dir=\"ltr\">$GroupName</a>";
520 519
     if ($GroupYear) {
@@ -627,7 +626,7 @@ $ShowGroups = !(!empty($LoggedUser['TorrentGrouping']) && $LoggedUser['TorrentGr
627 626
     $CoverArt = $GroupInfo['WikiImage'];
628 627
     $DisplayName .= "<a class=\"torrent_name\" href=\"torrents.php?id=$GroupID&amp;torrentid=$TorrentID#torrent$TorrentID\" ";
629 628
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
630
-      $DisplayName .= "onmouseover=\"getCover(event)\" cover=\"".ImageTools::process($CoverArt)."\" onmouseleave=\"ungetCover(event)\" ";
629
+      $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($CoverArt)."\" onmouseleave=\"ungetCover(event)\" ";
631 630
     }
632 631
     $DisplayName .= "dir=\"ltr\">$GroupName</a>";
633 632
     if (isset($GroupedCategories[$CategoryID - 1])) {

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

@@ -556,7 +556,7 @@ foreach ($TorrentList as $Torrent) {
556 556
 <?  }?>
557 557
             | <a href="torrents.php?torrentid=<?=$TorrentID ?>" class="tooltip" title="Permalink">PL</a>
558 558
           ]</span>
559
-          &raquo; <a toggle-target="#torrent_<?=$TorrentID?>"><?=$ExtraInfo; ?></a>
559
+          &raquo; <a data-toggle-target="#torrent_<?=$TorrentID?>"><?=$ExtraInfo; ?></a>
560 560
         </td>
561 561
         <td class="number_column nobr"><?=Format::get_size($Size)?></td>
562 562
         <td class="number_column"><?=number_format($Snatched)?></td>
@@ -641,7 +641,7 @@ if (empty($LoggedUser['DisableRequests']) && count($Requests) > 0) {
641 641
     <div class="box">
642 642
       <div class="head">
643 643
         <span style="font-weight: bold;">Requests (<?=number_format(count($Requests))?>)</span>
644
-        <a toggle-target="#requests" toggle-replace="Hide" style="float: right;" class="brackets">Show</a>
644
+        <a data-toggle-target="#requests" data-toggle-replace="Hide" style="float: right;" class="brackets">Show</a>
645 645
       </div>
646 646
       <table id="requests" class="request_table hidden">
647 647
         <tr class="colhead">
@@ -690,7 +690,7 @@ if (count($Collages) > 0) {
690 690
     $Range = range(0, count($Collages) - 1);
691 691
     shuffle($Range);
692 692
     $Indices = array_slice($Range, 0, MAX_COLLAGES);
693
-    $SeeAll = ' <a toggle-target=".collage_rows">(See all)</a>';
693
+    $SeeAll = ' <a data-toggle-target=".collage_rows">(See all)</a>';
694 694
   } else {
695 695
     $Indices = range(0, count($Collages) - 1);
696 696
     $SeeAll = '';
@@ -741,7 +741,7 @@ if (count($PersonalCollages) > 0) {
741 741
     $Range = range(0,count($PersonalCollages) - 1);
742 742
     shuffle($Range);
743 743
     $Indices = array_slice($Range, 0, MAX_PERS_COLLAGES);
744
-    $SeeAll = ' <a toggle-target=".personal_rows">(See all)</a>';
744
+    $SeeAll = ' <a data-toggle-target=".personal_rows">(See all)</a>';
745 745
   } else {
746 746
     $Indices = range(0, count($PersonalCollages) - 1);
747 747
     $SeeAll = '';
@@ -785,7 +785,7 @@ include(SERVER_ROOT.'/sections/torrents/voter_picks.php');
785 785
 <?
786 786
     if (count($Screenshots) > 0) {
787 787
 ?>
788
-    <a style="float: right;" class='brackets' toggle-target=".torrent_screenshots" toggle-replace="Hide">Show</a>
788
+    <a style="float: right;" class='brackets' data-toggle-target=".torrent_screenshots" data-toggle-replace="Hide">Show</a>
789 789
 <?  }
790 790
 
791 791
     $DB->query("

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

@@ -404,7 +404,7 @@ function build_torrents_table($Cache, $DB, $LoggedUser, $GroupID, $GroupName, $G
404 404
 <?  } ?>
405 405
               | <a href="torrents.php?torrentid=<?=($TorrentID)?>" class="tooltip" title="Permalink">PL</a>
406 406
             ]</span>
407
-            &raquo; <a toggle-target="#torrent_<?=($TorrentID)?>"><?=($ExtraInfo)?></a>
407
+            &raquo; <a data-toggle-target="#torrent_<?=($TorrentID)?>"><?=($ExtraInfo)?></a>
408 408
           </td>
409 409
           <td class="number_column nobr"><?=(Format::get_size($Size))?></td>
410 410
           <td class="number_column"><?=(number_format($Snatched))?></td>

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

@@ -264,7 +264,7 @@ if (empty($Results)) {
264 264
       }
265 265
       $DisplayName .= "<a href=\"torrents.php?id=$GroupID&amp;torrentid=$TorrentID#torrent$TorrentID\" ";
266 266
       if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
267
-         $DisplayName .= "onmouseover=\"getCover(event)\" cover=\"".ImageTools::process($GroupInfo['WikiImage'], true)."\" onmouseleave=\"ungetCover(event)\" ";
267
+         $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($GroupInfo['WikiImage'], true)."\" onmouseleave=\"ungetCover(event)\" ";
268 268
       }
269 269
       $DisplayName .= "class=\"tooltip\" title=\"View torrent\" dir=\"ltr\">" . $GroupInfo['Name'] . '</a>';
270 270
 

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

@@ -513,7 +513,7 @@ foreach ($Categories as $CatKey => $CatName) {
513 513
     }
514 514
     $DisplayName .= '<a href="torrents.php?id='.$GroupID.'&amp;torrentid='.$TorrentID.'" ';
515 515
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
516
-      $DisplayName .= 'onmouseover="getCover(event)" cover="'.ImageTools::process($WikiImage).'" onmouseleave="ungetCover()" ';
516
+      $DisplayName .= 'onmouseover="getCover(event)" data-cover="'.ImageTools::process($WikiImage).'" onmouseleave="ungetCover()" ';
517 517
     }
518 518
     $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
519 519
     $DisplayName .= 'dir="ltr">'.$GroupName.'</a>';

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

@@ -39,7 +39,7 @@ if (count($Top10) > 0) {
39 39
 ?>
40 40
     <table class="box vote_matches_table" id="vote_matches">
41 41
       <tr class="colhead">
42
-        <td><a href="#">&uarr;</a>&nbsp;People who like this also liked... <a toggle-target=".votes_rows" class="brackets" style="float: right;">Toggle</a></td>
42
+        <td><a href="#">&uarr;</a>&nbsp;People who like this also liked... <a data-toggle-target=".votes_rows" class="brackets" style="float: right;">Toggle</a></td>
43 43
       </tr>
44 44
 <?
45 45
   $Top10Groups = array_keys($Top10);

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

@@ -112,7 +112,7 @@ $HideDNU = check_perms('torrents_hide_dnu') && !$NewDNU;
112 112
   <p><?=$NewDNU ? '<strong class="important_text">' : '' ?>Last updated: <?=time_diff($Updated)?><?=$NewDNU ? '</strong>' : '' ?></p>
113 113
   <p>The following releases are currently forbidden from being uploaded to the site. Do not upload them unless your torrent meets a condition specified in the comment.
114 114
 <?  if ($HideDNU) { ?>
115
-  <span id="showdnu"><a toggle-target="#dnulist" toggle-replace="Hide" class="brackets">Show</a></span>
115
+  <span id="showdnu"><a data-toggle-target="#dnulist" data-toggle-replace="Hide" class="brackets">Show</a></span>
116 116
 <?  } ?>
117 117
   </p>
118 118
   <table id="dnulist" class="<?=($HideDNU ? 'hidden' : '')?>">

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

@@ -144,7 +144,7 @@ echo $Val->GenerateJS('userform');
144 144
             <option value="<?=($Style['ID'])?>"<?=$Style['ID'] == $StyleID ? ' selected="selected"' : ''?>><?=($Style['ProperName'])?></option>
145 145
 <?  } ?>
146 146
           </select>&nbsp;&nbsp;
147
-          <a toggle-target="#css_gallery" class="brackets">Show gallery</a>
147
+          <a data-toggle-target="#css_gallery" class="brackets">Show gallery</a>
148 148
           <div id="css_gallery" class="hidden">
149 149
 <?  foreach ($Stylesheets as $Style) { ?>
150 150
             <div class="preview_wrapper">

+ 1
- 1
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 toggle-target=".linkedaccounts" class="brackets">Toggle</a></span>
200
+          Linked Accounts (<?=max($DupeCount - 1, 0)?>) <span style="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" : '')?>

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

@@ -89,7 +89,7 @@ foreach ($Notifications as $N) { // $N stands for Notifications
89 89
     <a href="feeds.php?feed=torrents_notify_<?=$N['ID']?>_<?=$LoggedUser['torrent_pass']?>&amp;user=<?=$LoggedUser['ID']?>&amp;auth=<?=$LoggedUser['RSS_Auth']?>&amp;passkey=<?=$LoggedUser['torrent_pass']?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;name=<?=urlencode($N['Label'])?>"><img src="<?=STATIC_SERVER?>/common/symbols/rss.png" alt="RSS feed" /></a>
90 90
     <?=display_str($N['Label'])?>
91 91
     <a href="user.php?action=notify_delete&amp;id=<?=$N['ID']?>&amp;auth=<?=$LoggedUser['AuthKey']?>" onclick="return confirm('Are you sure you want to delete this notification filter?')" class="brackets">Delete</a>
92
-    <a toggle-target="#filter_<?=$N['ID']?>" class="brackets">Show</a>
92
+    <a data-toggle-target="#filter_<?=$N['ID']?>" class="brackets">Show</a>
93 93
   </h3>
94 94
 <?  } ?>
95 95
   <form class="box pad slight_margin <?=($NewFilter ? 'create_form' : 'edit_form')?>" id="<?=($NewFilter ? 'filter_form' : '')?>" name="notification" action="user.php" method="post">

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

@@ -666,7 +666,7 @@ if ($RatioWatchEnds && (time() < strtotime($RatioWatchEnds)) && ($Downloaded * $
666 666
     <div class="box">
667 667
       <div class="head">
668 668
         <?=!empty($InfoTitle) ? $InfoTitle : 'Profile';?>
669
-        <span style="float: right;"><a toggle-target="#profilediv" toggle-replace="Show" class="brackets">Hide</a></span>&nbsp;
669
+        <span style="float: right;"><a data-toggle-target="#profilediv" data-toggle-replace="Show" class="brackets">Hide</a></span>&nbsp;
670 670
       </div>
671 671
       <div class="pad profileinfo" id="profilediv">
672 672
 <?
@@ -805,7 +805,7 @@ foreach ($Collages as $CollageInfo) {
805 805
     <div class="head">
806 806
       <?=display_str($CName)?> - <a href="collages.php?id=<?=$CollageID?>" class="brackets">See full</a>
807 807
       <span style="float: right;">
808
-        <a toggle-target="#collage<?=$CollageID?>_box .collage_images" toggle-replace="Show" class="brackets">Hide</a>
808
+        <a data-toggle-target="#collage<?=$CollageID?>_box .collage_images" data-toggle-replace="Show" class="brackets">Hide</a>
809 809
       </span>
810 810
     </div>
811 811
     <div id="user_collage_images" class="collage_images">
@@ -858,7 +858,7 @@ if ((check_perms('users_view_invites')) && $Invited > 0) {
858 858
 ?>
859 859
     <div class="box" id="invitetree_box">
860 860
       <div class="head">
861
-        Invite Tree <span style="float: right"><a toggle-target="#invitetree" class="brackets">Toggle</a></span>
861
+        Invite Tree <span style="float: right"><a data-toggle-target="#invitetree" class="brackets">Toggle</a></span>
862 862
       </div>
863 863
       <div id="invitetree" class="hidden">
864 864
 <?        $Tree->make_tree(); ?>
@@ -887,7 +887,7 @@ if (empty($LoggedUser['DisableRequests']) && check_paranoia_here('requestsvoted_
887 887
 ?>
888 888
     <div class="box" id="requests_box">
889 889
       <div class="head">
890
-        Requests <span style="float: right;"><a toggle-target="#requests" class="brackets">Show</a></span>
890
+        Requests <span style="float: right;"><a data-toggle-target="#requests" class="brackets">Show</a></span>
891 891
       </div>
892 892
       <div id="requests" class="hidden">
893 893
         <table cellpadding="6" cellspacing="1" border="0" width="100%">
@@ -983,7 +983,7 @@ if (check_perms('users_mod', $Class) || $IsFLS) {
983 983
 ?>
984 984
     <div class="box" id="staffpms_box">
985 985
       <div class="head">
986
-        Staff PMs <a toggle-target="#staffpms" class="brackets" style="float:right;">Toggle</a>
986
+        Staff PMs <a data-toggle-target="#staffpms" class="brackets" style="float:right;">Toggle</a>
987 987
       </div>
988 988
       <table width="100%" class="message_table hidden" id="staffpms">
989 989
         <tr class="colhead">
@@ -1058,7 +1058,7 @@ if (check_perms('users_mod', $Class)) { ?>
1058 1058
         Staff Notes
1059 1059
         <a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;" class="brackets">Edit</a>
1060 1060
         <span style="float: right;">
1061
-        <a toggle-target="#staffnotes" class="brackets">Toggle</a>
1061
+        <a data-toggle-target="#staffnotes" class="brackets">Toggle</a>
1062 1062
         </span>
1063 1063
       </div>
1064 1064
       <div id="staffnotes" class="pad">

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

@@ -283,7 +283,7 @@ if ($Old ?? false) {
283 283
     $Record['IP'] = apc_exists('DBKEY') ? DBCrypt::decrypt($Record['IP']) : '[Encrypted]';
284 284
 ?>
285 285
     <tr class="row">
286
-      <td><?=display_str($Record['Email'])?><?=(($MatchCount > 0) ? ' <a toggle-target="#matches_'.$j.'">('.$MatchCount.')</a>' : '')?></td>
286
+      <td><?=display_str($Record['Email'])?><?=(($MatchCount > 0) ? ' <a data-toggle-target="#matches_'.$j.'">('.$MatchCount.')</a>' : '')?></td>
287 287
       <td><?=time_diff($Record['StartTime'])?></td>
288 288
       <td><?=time_diff($Record['EndTime'])?></td>
289 289
       <td><?=time_diff($Record['ElapsedTime'])?></td>
@@ -353,7 +353,7 @@ $Invite['Email'] = apc_exists('DBKEY') ? DBCrypt::decrypt($Invite['Email']) : '[
353 353
 $Invite['IP'] = apc_exists('DBKEY') ? DBCrypt::decrypt($Invite['IP']) : '[Encrypted]';
354 354
 ?>
355 355
     <tr class="row">
356
-      <td><?=display_str($Invite['Email'])?><?=(($MatchCount > 0) ? ' <a toggle-target="#matches_invite">('.$MatchCount.')</a>' : '')?></td>
356
+      <td><?=display_str($Invite['Email'])?><?=(($MatchCount > 0) ? ' <a data-toggle-target="#matches_invite">('.$MatchCount.')</a>' : '')?></td>
357 357
       <td>Never</td>
358 358
       <td><?=time_diff($Invite['EndTime'])?></td>
359 359
       <td><?=time_diff($Invite['AccountAge'])?></td>

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

@@ -252,7 +252,7 @@ if (!$NumResults) {
252 252
           <strong><a href="collage.php?id=<?=$CollageID?>"><?=$CollageName?></a></strong> (<?=$NewTorrentCount?> new torrent<?=($NewTorrentCount == 1 ? '' : 's')?>)
253 253
         </span>&nbsp;
254 254
         <span style="float: right;">
255
-          <a toggle-target="#discog_table_<?=$CollageID?>" 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>
255
+          <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>
256 256
         </span>
257 257
       </td>
258 258
     </tr>

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

@@ -314,7 +314,7 @@ $(function() {
314 314
   }
315 315
   //Preload first result's cover
316 316
   if ($('#torrent_table').length > 0) {
317
-    var a = $('a[cover]')[0]
318
-    if (a) preload(a.attributes.cover.value)
317
+    var a = $('a[data-cover]')[0]
318
+    if (a) preload(a.attributes['data-cover'].value)
319 319
   }
320 320
 })

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

@@ -170,7 +170,7 @@ function preload(image) {
170 170
 }
171 171
 
172 172
 function getCover(event) {
173
-  image = event.target.attributes.cover.value
173
+  image = event.target.attributes['data-cover'].value
174 174
   $('#coverCont img').remove()
175 175
   var coverCont = ($('#coverCont').length==0)?document.body.appendChild(document.createElement('div')):$('#coverCont')[0]
176 176
   coverCont.id = 'coverCont'
@@ -182,10 +182,10 @@ function getCover(event) {
182 182
   coverCont.style.display = 'block'
183 183
   //Preload next image
184 184
   if ($('.torrent_table, .request_table').length > 0) {
185
-    var as = $('[cover]')
185
+    var as = $('[data-cover]')
186 186
     var a = event.target
187
-    preload((as[as.toArray().indexOf(a)+1]||as[0]).attributes.cover.value)
188
-    preload((as[as.toArray().indexOf(a)-1]||as[0]).attributes.cover.value)
187
+    preload((as[as.toArray().indexOf(a)+1]||as[0]).attributes['data-cover'].value)
188
+    preload((as[as.toArray().indexOf(a)-1]||as[0]).attributes['data-cover'].value)
189 189
   }
190 190
 }
191 191
 function ungetCover(event) {
@@ -201,15 +201,15 @@ if (typeof NodeList.prototype.forEach !== 'function') {
201 201
 
202 202
 $(function() {
203 203
   if ($('.request_table').length > 0) {
204
-    var a = $('[cover]')[0]
205
-    if (a) preload(a.attributes.cover.value)
204
+    var a = $('[data-cover]')[0]
205
+    if (a) preload(a.attributes['data-cover'].value)
206 206
   }
207 207
 
208
-  document.querySelectorAll('[toggle-target]').forEach(function(el) {
208
+  document.querySelectorAll('[data-toggle-target]').forEach(function(el) {
209 209
     el.addEventListener('click', function(event) {
210
-      $(el.attributes['toggle-target'].value).gtoggle()
211
-      if (el.attributes['toggle-replace']) {
212
-        [el.innerHTML, el.attributes['toggle-replace'].value] = [el.attributes['toggle-replace'].value, el.innerHTML]
210
+      $(el.attributes['data-toggle-target'].value).gtoggle()
211
+      if (el.attributes['data-toggle-replace']) {
212
+        [el.innerHTML, el.attributes['data-toggle-replace'].value] = [el.attributes['data-toggle-replace'].value, el.innerHTML]
213 213
       }
214 214
     })
215 215
   })

+ 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" toggle-target="#newsbody' + this[0] + '" 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 style="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" toggle-target="#newsbody' + this[0] + '" toggle-replace="Show">Hide</a></span></div>');
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>');
38 38
           }
39 39
           $('#news' + this[0]).append('<div class="pad" id="newsbody'+this[0]+'">' + this[3] + '</div>');
40 40
         });

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

@@ -1,6 +1,6 @@
1 1
 $(() => {
2
-  if ($('#bg_data')) {
3
-    $('#content')[0].style.backgroundImage = "url(/misc/bg/"+$('#bg_data')[0].attributes.bg.value+")";
2
+  if ($('[name=bg_data]')) {
3
+    $('#content')[0].style.backgroundImage = "url(/misc/bg/"+$('[name=bg_data]')[0].attributes.content.value+")";
4 4
   }
5 5
 
6 6
   if ($('#no-cookies')) {

+ 3
- 3
static/functions/script_start.js View File

@@ -362,7 +362,7 @@ $.fn.extend({
362 362
   }
363 363
 });
364 364
 
365
-if (document.head.children.auth_holder) {
366
-  var authkey = document.head.children.auth_holder.attributes.authkey.value;
367
-  var userid = parseInt(document.head.children.auth_holder.attributes.userid.value);
365
+if ($('meta[name=authkey]')) {
366
+  var authkey = $('meta[name=authkey]').raw().content;
367
+  var userid = parseInt($('meta[name=userid]').raw().content);
368 368
 }

+ 6
- 2
static/styles/global.css View File

@@ -111,7 +111,7 @@ div.collage_image {
111 111
   width: 20%;
112 112
 }
113 113
 
114
-[toggle-target], [quote-jump] {
114
+[data-toggle-target], [quote-jump] {
115 115
   cursor: pointer;
116 116
 }
117 117
 
@@ -267,7 +267,7 @@ div#AddArtists a {
267 267
   width: 95%
268 268
 }
269 269
 
270
-td.label {
270
+td.label, .valign_top {
271 271
   vertical-align: top;
272 272
 }
273 273
 
@@ -723,6 +723,10 @@ tr.torrent .bookmark>a:after {
723 723
   max-width: 500px;
724 724
 }
725 725
 
726
+.display_block {
727
+  display: block;
728
+}
729
+
726 730
 .sidebar img {
727 731
   max-width: 100%;
728 732
   width: initial;

+ 5
- 0
static/styles/public/style.css View File

@@ -122,6 +122,11 @@ input[type="submit"]:hover {
122 122
   text-align: justify;
123 123
 }
124 124
 
125
+.centered {
126
+  text-align: center;
127
+  vertical-align: middle;
128
+}
129
+
125 130
 .hidden {
126 131
   display: none;
127 132
 }

Loading…
Cancel
Save