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
 
125
 
126
     if (isset($Icon)) {
126
     if (isset($Icon)) {
127
       if ($Tooltip) {
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
       } else {
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
       return;
322
       return;
323
     }
323
     }
324
 ?>
324
 ?>
325
-  <table class="layout" width="100%">
325
+  <table class="layout">
326
     <tr>
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
     </tr>
328
     </tr>
329
   </table>
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
     foreach ($Perf as $Stat => $Value) {
332
     foreach ($Perf as $Stat => $Value) {
333
 ?>
333
 ?>
334
-    <tr valign="top">
334
+    <tr class="valign_top">
335
       <td class="debug_perf_stat"><?=$Stat?></td>
335
       <td class="debug_perf_stat"><?=$Stat?></td>
336
       <td class="debug_perf_data"><?=$Value?></td>
336
       <td class="debug_perf_data"><?=$Value?></td>
337
     </tr>
337
     </tr>
347
       $Includes = $this->get_includes();
347
       $Includes = $this->get_includes();
348
     }
348
     }
349
 ?>
349
 ?>
350
-  <table class="layout" width="100%">
350
+  <table class="layout">
351
     <tr>
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
     </tr>
353
     </tr>
354
   </table>
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
     foreach ($Includes as $File) {
357
     foreach ($Includes as $File) {
358
 ?>
358
 ?>
359
-    <tr valign="top">
359
+    <tr class="valign_top">
360
       <td><?=$File?></td>
360
       <td><?=$File?></td>
361
     </tr>
361
     </tr>
362
 <?
362
 <?
371
       $Classes = $this->get_classes();
371
       $Classes = $this->get_classes();
372
     }
372
     }
373
 ?>
373
 ?>
374
-  <table class="layout" width="100%">
374
+  <table class="layout">
375
     <tr>
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
     </tr>
377
     </tr>
378
   </table>
378
   </table>
379
-  <table id="debug_classes" class="debug_table hidden" width="100%">
379
+  <table id="debug_classes" class="debug_table hidden">
380
     <tr>
380
     <tr>
381
-      <td align="left">
381
+      <td>
382
         <pre>
382
         <pre>
383
 <?          print_r($Classes); echo "\n"; ?>
383
 <?          print_r($Classes); echo "\n"; ?>
384
         </pre>
384
         </pre>
390
 
390
 
391
   public function extension_table() {
391
   public function extension_table() {
392
 ?>
392
 ?>
393
-  <table class="layout" width="100%">
393
+  <table class="layout">
394
     <tr>
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
     </tr>
396
     </tr>
397
   </table>
397
   </table>
398
-  <table id="debug_extensions" class="debug_table hidden" width="100%">
398
+  <table id="debug_extensions" class="debug_table hidden">
399
     <tr>
399
     <tr>
400
-      <td align="left">
400
+      <td>
401
         <pre>
401
         <pre>
402
 <?          print_r($this->get_extensions()); echo "\n"; ?>
402
 <?          print_r($this->get_extensions()); echo "\n"; ?>
403
         </pre>
403
         </pre>
415
       return;
415
       return;
416
     }
416
     }
417
 ?>
417
 ?>
418
-  <table class="layout" width="100%">
418
+  <table class="layout">
419
     <tr>
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
     </tr>
421
     </tr>
422
   </table>
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
 <?    if ($Flags[0][3] !== false) { ?>
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
     </tr>
431
     </tr>
432
 <?
432
 <?
433
     foreach ($Flags as $Flag) {
433
     foreach ($Flags as $Flag) {
434
       list($Event, $MicroTime, $Memory, $CPUTime) = $Flag;
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
 <?      if ($CPUTime !== false) { ?>
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
     </tr>
443
     </tr>
444
 <?    } ?>
444
 <?    } ?>
445
   </table>
445
   </table>
451
       $Constants = $this->get_constants();
451
       $Constants = $this->get_constants();
452
     }
452
     }
453
 ?>
453
 ?>
454
-  <table class="layout" width="100%">
454
+  <table class="layout">
455
     <tr>
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
     </tr>
457
     </tr>
458
   </table>
458
   </table>
459
-  <table id="debug_constants" class="debug_table hidden" width="100%">
459
+  <table id="debug_constants" class="debug_table hidden">
460
     <tr>
460
     <tr>
461
-      <td align="left" class="debug_data debug_constants_data">
461
+      <td class="debug_data debug_constants_data">
462
         <pre>
462
         <pre>
463
 <?=         display_str(print_r($Constants, true))?>
463
 <?=         display_str(print_r($Constants, true))?>
464
         </pre>
464
         </pre>
476
       return;
476
       return;
477
     }
477
     }
478
 ?>
478
 ?>
479
-  <table class="layout" width="100%">
479
+  <table class="layout">
480
     <tr>
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
     </tr>
482
     </tr>
483
   </table>
483
   </table>
484
-  <table id="debug_ocelot" class="debug_table hidden" width="100%">
484
+  <table id="debug_ocelot" class="debug_table hidden">
485
 <?    foreach ($OcelotRequests as $i => $Request) { ?>
485
 <?    foreach ($OcelotRequests as $i => $Request) { ?>
486
     <tr>
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
         <pre id="debug_ocelot_<?=$i?>" class="hidden"><?=display_str($Request['response'])?></pre>
489
         <pre id="debug_ocelot_<?=$i?>" class="hidden"><?=display_str($Request['response'])?></pre>
490
       </td>
490
       </td>
491
-      <td align="left" class="debug_info" style="width: 100px;">
491
+      <td class="debug_info" style="width: 100px;">
492
         <?=display_str($Request['status'])?>
492
         <?=display_str($Request['status'])?>
493
       </td>
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
         <?=number_format($Request['time'], 5)?> ms
495
         <?=number_format($Request['time'], 5)?> ms
496
       </td>
496
       </td>
497
     </tr>
497
     </tr>
512
     $Header = ' '.number_format(count($CacheKeys))." $Header:";
512
     $Header = ' '.number_format(count($CacheKeys))." $Header:";
513
 
513
 
514
 ?>
514
 ?>
515
-  <table class="layout" width="100%">
515
+  <table class="layout">
516
     <tr>
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
     </tr>
518
     </tr>
519
   </table>
519
   </table>
520
-  <table id="debug_cache" class="debug_table hidden" width="100%">
520
+  <table id="debug_cache" class="debug_table hidden">
521
 <?    foreach ($CacheKeys as $Key) { ?>
521
 <?    foreach ($CacheKeys as $Key) { ?>
522
     <tr>
522
     <tr>
523
       <td class="label nobr debug_info debug_cache_key">
523
       <td class="label nobr debug_info debug_cache_key">
524
         <a href="#" onclick="$('#debug_cache_<?=$Key?>').gtoggle(); return false;"><?=display_str($Key)?></a>
524
         <a href="#" onclick="$('#debug_cache_<?=$Key?>').gtoggle(); return false;"><?=display_str($Key)?></a>
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>
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
       </td>
526
       </td>
527
-      <td align="left" class="debug_data debug_cache_data">
527
+      <td class="debug_data debug_cache_data">
528
         <pre id="debug_cache_<?=$Key?>" class="hidden">
528
         <pre id="debug_cache_<?=$Key?>" class="hidden">
529
 <?=         display_str(print_r(G::$Cache->get_value($Key, true), true))?>
529
 <?=         display_str(print_r(G::$Cache->get_value($Key, true), true))?>
530
         </pre>
530
         </pre>
543
       return;
543
       return;
544
     }
544
     }
545
 ?>
545
 ?>
546
-  <table class="layout" width="100%">
546
+  <table class="layout">
547
     <tr>
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
     </tr>
549
     </tr>
550
   </table>
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
     foreach ($Errors as $Error) {
553
     foreach ($Errors as $Error) {
554
       list($Error, $Location, $Call, $Args) = $Error;
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
         <?=display_str($Call)?>(<?=display_str($Args)?>)
558
         <?=display_str($Call)?>(<?=display_str($Args)?>)
559
       </td>
559
       </td>
560
-      <td class="debug_data debug_error_data" align="left">
560
+      <td class="debug_data debug_error_data">
561
         <?=display_str($Error)?>
561
         <?=display_str($Error)?>
562
       </td>
562
       </td>
563
-      <td align="left">
563
+      <td>
564
         <?=display_str($Location)?>
564
         <?=display_str($Location)?>
565
       </td>
565
       </td>
566
     </tr>
566
     </tr>
580
     }
580
     }
581
     $Header = ' '.number_format(count($Queries))." $Header:";
581
     $Header = ' '.number_format(count($Queries))." $Header:";
582
 ?>
582
 ?>
583
-  <table class="layout" width="100%">
583
+  <table class="layout">
584
     <tr>
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
     </tr>
586
     </tr>
587
   </table>
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
     foreach ($Queries as $Query) {
590
     foreach ($Queries as $Query) {
591
       $SQL = $Query[0] ?? null;
591
       $SQL = $Query[0] ?? null;
595
         $Warnings = implode('<br />', $Warnings);
595
         $Warnings = implode('<br />', $Warnings);
596
       }
596
       }
597
 ?>
597
 ?>
598
-    <tr valign="top">
598
+    <tr class="valign_top">
599
       <td class="debug_data debug_query_data"><div><?=str_replace("\t", '&nbsp;&nbsp;', nl2br(display_str(trim($SQL))))?></div></td>
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
       <td class="debug_info debug_query_warnings"><?=$Warnings?></td>
601
       <td class="debug_info debug_query_warnings"><?=$Warnings?></td>
602
     </tr>
602
     </tr>
603
 <?    } ?>
603
 <?    } ?>
616
     }
616
     }
617
     $Header = ' '.number_format(count($Queries))." $Header:";
617
     $Header = ' '.number_format(count($Queries))." $Header:";
618
 ?>
618
 ?>
619
-  <table class="layout" width="100%">
619
+  <table class="layout">
620
     <tr>
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
     </tr>
622
     </tr>
623
   </table>
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
     foreach ($Queries as $Query) {
626
     foreach ($Queries as $Query) {
627
       list($Params, $Time) = $Query;
627
       list($Params, $Time) = $Query;
628
 ?>
628
 ?>
629
-    <tr valign="top">
629
+    <tr class="valign_top">
630
       <td class="debug_data debug_sphinx_data"><pre><?=str_replace("\t", '  ', $Params)?></pre></td>
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
     </tr>
632
     </tr>
633
 <?    } ?>
633
 <?    } ?>
634
   </table>
634
   </table>
646
     $Header = ' '.number_format(count($Vars))." $Header:";
646
     $Header = ' '.number_format(count($Vars))." $Header:";
647
 
647
 
648
 ?>
648
 ?>
649
-  <table class="layout" width="100%">
649
+  <table class="layout">
650
     <tr>
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
     </tr>
652
     </tr>
653
   </table>
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
     foreach ($Vars as $ID => $Var) {
656
     foreach ($Vars as $ID => $Var) {
657
       list($Key, $Data) = each($Var);
657
       list($Key, $Data) = each($Var);
658
       $Size = count($Data['data']);
658
       $Size = count($Data['data']);
659
 ?>
659
 ?>
660
     <tr>
660
     <tr>
661
-      <td align="left" class="debug_info debug_loggedvars_name">
661
+      <td class="debug_info debug_loggedvars_name">
662
         <a href="#" onclick="$('#debug_loggedvars_<?=$ID?>').gtoggle(); return false;"><?=display_str($Key)?></a> (<?=$Size . ($Size == 1 ? ' element' : ' elements')?>)
662
         <a href="#" onclick="$('#debug_loggedvars_<?=$ID?>').gtoggle(); return false;"><?=display_str($Key)?></a> (<?=$Size . ($Size == 1 ? ' element' : ' elements')?>)
663
         <div><?=$Data['bt']['path'].':'.$Data['bt']['line'];?></div>
663
         <div><?=$Data['bt']['path'].':'.$Data['bt']['line'];?></div>
664
       </td>
664
       </td>
665
-      <td class="debug_data debug_loggedvars_data" align="left">
665
+      <td class="debug_data debug_loggedvars_data">
666
         <pre id="debug_loggedvars_<?=$ID?>" class="hidden">
666
         <pre id="debug_loggedvars_<?=$ID?>" class="hidden">
667
 <?=         display_str(print_r($Data['data'], true))?>
667
 <?=         display_str(print_r($Data['data'], true))?>
668
         </pre>
668
         </pre>

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

103
       <div class="box">
103
       <div class="box">
104
         <div class="head">
104
         <div class="head">
105
           <span><?=!empty($ProfileRewards['ProfileInfoTitle' . $i]) ? display_str($ProfileRewards['ProfileInfoTitle' . $i]) : "Extra Profile " . ($i + 1)?></span>
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
         </div>
107
         </div>
108
         <div class="pad profileinfo" id="profilediv_<?=$i?>">
108
         <div class="pad profileinfo" id="profilediv_<?=$i?>">
109
 <?          echo Text::full_format($ProfileRewards['ProfileInfo' . $i]); ?>
109
 <?          echo Text::full_format($ProfileRewards['ProfileInfo' . $i]); ?>
121
 ?>
121
 ?>
122
     <div class="box box2" id="donation_history_box">
122
     <div class="box box2" id="donation_history_box">
123
       <div class="head">
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
       </div>
125
       </div>
126
       <div class="hidden" id="donation_history">
126
       <div class="hidden" id="donation_history">
127
         <table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
127
         <table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">

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

56
         <div class="head">
56
         <div class="head">
57
           <span><?=self::render_method_definition($Method)?></span>
57
           <span><?=self::render_method_definition($Method)?></span>
58
           <span style="float: right;">
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
             <a href="#" class="brackets run" data-gazelle-id="<?=$Index?>" data-gazelle-class="<?=$ClassName?>" data-gazelle-method="<?=$MethodName?>">Run</a>
60
             <a href="#" class="brackets run" data-gazelle-id="<?=$Index?>" data-gazelle-class="<?=$ClassName?>" data-gazelle-method="<?=$MethodName?>">Run</a>
61
           </span>
61
           </span>
62
         </div>
62
         </div>

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

734
                 }
734
                 }
735
                 $Str .= '"';
735
                 $Str .= '"';
736
                 if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
                 $Name = empty($Group['Name']) ? (empty($Group['NameRJ']) ? $Group['NameJP'] : $Group['NameRJ']) : $Group['Name'];
739
                 $Name = empty($Group['Name']) ? (empty($Group['NameRJ']) ? $Group['NameJP'] : $Group['NameRJ']) : $Group['Name'];
740
                 $Str .= '>'.$Name.'</a>';
740
                 $Str .= '>'.$Name.'</a>';
1008
     }
1008
     }
1009
     if (count(self::$ProcessedSmileys) == 0 && count(self::$Smileys) > 0) {
1009
     if (count(self::$ProcessedSmileys) == 0 && count(self::$Smileys) > 0) {
1010
       foreach (self::$Smileys as $Key => $Val) {
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
       reset(self::$ProcessedSmileys);
1013
       reset(self::$ProcessedSmileys);
1014
     }
1014
     }

+ 5
- 5
design/privateheader.php View File

3
 define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php');
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
 <head>
8
 <head>
9
   <title><?=display_str($PageTitle)?></title>
9
   <title><?=display_str($PageTitle)?></title>
10
   <meta charset="utf-8" />
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
   <link rel="search" type="application/opensearchdescription+xml" title="<?=SITE_NAME?>" href="<?=STATIC_SERVER?>opensearch.xml">
14
   <link rel="search" type="application/opensearchdescription+xml" title="<?=SITE_NAME?>" href="<?=STATIC_SERVER?>opensearch.xml">
14
   <link rel="alternate" type="application/rss+xml"
15
   <link rel="alternate" type="application/rss+xml"
15
       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']?>"
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
             </div>
197
             </div>
197
           </li>
198
           </li>
198
         </ul>
199
         </ul>
199
-        </ul>
200
       </div>
200
       </div>
201
 <?
201
 <?
202
 if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search
202
 if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search

+ 4
- 4
design/publicheader.php View File

2
 global $LoggedUser;
2
 global $LoggedUser;
3
 define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php');
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
 <html>
6
 <html>
7
 <head>
7
 <head>
8
   <title><?=display_str($PageTitle)?></title>
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
   <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" />
10
   <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" />
11
   <link href="<?=STATIC_SERVER ?>styles/public/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/public/style.css')?>" rel="stylesheet" type="text/css" />
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
 <?
23
 <?
24
   }
24
   }
25
   $img = array_diff(scandir(SERVER_ROOT.'/misc/bg', 1), array('.', '..')); ?>
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
 </head>
27
 </head>
28
 <body>
28
 <body>
29
 <div id="head"><span>
29
 <div id="head"><span>
35
 <div id="content">
35
 <div id="content">
36
   <table class="layout" id="maincontent">
36
   <table class="layout" id="maincontent">
37
     <tr>
37
     <tr>
38
-      <td align="center" valign="middle">
38
+      <td class="centered">
39
         <a href="index.php"><div id="logo"></div></a>
39
         <a href="index.php"><div id="logo"></div></a>
40
 <?
40
 <?

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

52
   if (!isset($InputTitle)) {
52
   if (!isset($InputTitle)) {
53
     $InputTitle = 'Post comment';
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
   $ReplyText = new TEXTAREA_PREVIEW('body', 'quickpost', '',
56
   $ReplyText = new TEXTAREA_PREVIEW('body', 'quickpost', '',
67
       $TextareaCols, $TextareaRows, false, false, true, array(
57
       $TextareaCols, $TextareaRows, false, false, true, array(
95
             </tr>
85
             </tr>
96
             <tr>
86
             <tr>
97
 <?  if (Users::has_avatars_enabled()) { ?>
87
 <?  if (Users::has_avatars_enabled()) { ?>
98
-              <td class="avatar" valign="top">
88
+              <td class="avatar valign_top">
99
                 <?=Users::show_avatar(G::$LoggedUser['Avatar'], G::$LoggedUser['ID'], G::$LoggedUser['Username'], (!isset($HeavyInfo['DisableAvatars']) || $HeavyInfo['DisableAvatars']))?>
89
                 <?=Users::show_avatar(G::$LoggedUser['Avatar'], G::$LoggedUser['ID'], G::$LoggedUser['Username'], (!isset($HeavyInfo['DisableAvatars']) || $HeavyInfo['DisableAvatars']))?>
100
               </td>
90
               </td>
101
 <?  } ?>
91
 <?  } ?>
102
-              <td class="body" valign="top">
92
+              <td class="body valign_top">
103
                 <div id="contentpreview" style="text-align: left;">
93
                 <div id="contentpreview" style="text-align: left;">
104
                   <div id="preview_<?=$ReplyText->getID()?>"></div>
94
                   <div id="preview_<?=$ReplyText->getID()?>"></div>
105
                 </div>
95
                 </div>
106
               </td>
96
               </td>
107
             </tr>
97
             </tr>
108
           </table>
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
             <input type="hidden" name="action" value="<?=$InputAction?>" />
100
             <input type="hidden" name="action" value="<?=$InputAction?>" />
111
             <input type="hidden" name="auth" value="<?=G::$LoggedUser['AuthKey']?>" />
101
             <input type="hidden" name="auth" value="<?=G::$LoggedUser['AuthKey']?>" />
112
             <input type="hidden" name="<?=$InputName?>" value="<?=$InputID?>" />
102
             <input type="hidden" name="<?=$InputName?>" value="<?=$InputID?>" />

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

22
 
22
 
23
         <input type="button" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" />
23
         <input type="button" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" />
24
         <input type="submit" value="Send message" />
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
       </form>
26
       </form>
27
     </div>
27
     </div>

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

211
 
211
 
212
     $DisplayName .= "<a href=\"torrents.php?id=$GroupID\" class=\"tooltip\" title=\"View torrent group\" ";
212
     $DisplayName .= "<a href=\"torrents.php?id=$GroupID\" class=\"tooltip\" title=\"View torrent group\" ";
213
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
     $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
217
     $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
315
 
315
 
316
     $DisplayName .= "<a class=\"torrent_name\" href=\"torrents.php?id=$GroupID&amp;torrentid=$TorrentID#torrent$TorrentID\" ";
316
     $DisplayName .= "<a class=\"torrent_name\" href=\"torrents.php?id=$GroupID&amp;torrentid=$TorrentID#torrent$TorrentID\" ";
317
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
     $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
321
     $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
637
       <div id="info" class="head">
637
       <div id="info" class="head">
638
         <a href="#">&uarr;</a>&nbsp;
638
         <a href="#">&uarr;</a>&nbsp;
639
         <strong>Information</strong>
639
         <strong>Information</strong>
640
-        <a class="brackets" toggle-target="#body">Toggle</a>
640
+        <a class="brackets" data-toggle-target="#body">Toggle</a>
641
       </div>
641
       </div>
642
       <div id="body" class="body"><?=Text::full_format($Body)?></div>
642
       <div id="body" class="body"><?=Text::full_format($Body)?></div>
643
     </div>
643
     </div>
663
     $Range = range(0,count($Collages) - 1);
663
     $Range = range(0,count($Collages) - 1);
664
     shuffle($Range);
664
     shuffle($Range);
665
     $Indices = array_slice($Range, 0, MAX_COLLAGES);
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
   } else {
667
   } else {
668
     $Indices = range(0, count($Collages)-1);
668
     $Indices = range(0, count($Collages)-1);
669
     $SeeAll = '';
669
     $SeeAll = '';

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

52
 
52
 
53
   $DisplayName = "<a href=\"torrents.php?id=$ID\" class=\"tooltip\" title=\"View torrent group\" ";
53
   $DisplayName = "<a href=\"torrents.php?id=$ID\" class=\"tooltip\" title=\"View torrent group\" ";
54
   if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
   $DisplayName .= "dir=\"ltr\">$Name</a>";
57
   $DisplayName .= "dir=\"ltr\">$Name</a>";
58
   if ($Year > 0) {
58
   if ($Year > 0) {

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

54
 
54
 
55
   $DisplayName = "<a href=\"torrents.php?id=$ID\" class=\"tooltip\" title=\"View torrent group\" ";
55
   $DisplayName = "<a href=\"torrents.php?id=$ID\" class=\"tooltip\" title=\"View torrent group\" ";
56
   if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
   $DisplayName .= "dir=\"ltr\">$LangName</a>";
59
   $DisplayName .= "dir=\"ltr\">$LangName</a>";
60
   if ($Year > 0) {
60
   if ($Year > 0) {

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

72
 
72
 
73
   $DisplayName .= "<a href=\"torrents.php?id=$GroupID\" ";
73
   $DisplayName .= "<a href=\"torrents.php?id=$GroupID\" ";
74
   if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
   $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
77
   $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
78
   $DisplayName .= "dir=\"ltr\">$GroupName</a>";
78
   $DisplayName .= "dir=\"ltr\">$GroupName</a>";

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

87
 <? if (Forums::check_forumperm($ForumID, 'Write') && Forums::check_forumperm($ForumID, 'Create')) { ?>
87
 <? if (Forums::check_forumperm($ForumID, 'Write') && Forums::check_forumperm($ForumID, 'Create')) { ?>
88
     <a href="forums.php?action=new&amp;forumid=<?=$ForumID?>" class="brackets">New thread</a>
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
     <div id="searchforum" class="hidden center">
91
     <div id="searchforum" class="hidden center">
92
       <div style="display: inline-block;">
92
       <div style="display: inline-block;">
93
         <h3>Search this forum:</h3>
93
         <h3>Search this forum:</h3>

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

35
     </div>
35
     </div>
36
 <?  if (check_perms('forums_polls_create')) { ?>
36
 <?  if (check_perms('forums_polls_create')) { ?>
37
     <div class="box thin clear hidden" id="pollpreview">
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
       <div class="pad" id="threadpoll">
39
       <div class="pad" id="threadpoll">
40
         <p><strong id="pollquestion"></strong></p>
40
         <p><strong id="pollquestion"></strong></p>
41
         <div id="pollanswers"></div>
41
         <div id="pollanswers"></div>
135
         <tr>
135
         <tr>
136
           <td colspan="2" class="center">
136
           <td colspan="2" class="center">
137
             <strong>Poll Settings</strong>
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
           </td>
139
           </td>
140
         </tr>
140
         </tr>
141
         <tr id="poll_question" class="hidden">
141
         <tr id="poll_question" class="hidden">

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

334
 <?
334
 <?
335
   }
335
   }
336
   if ($Type == 'body') { ?>
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
       </td>
339
       </td>
340
       <td>
340
       <td>

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

179
     <div class="center">
179
     <div class="center">
180
       <a href="reports.php?action=report&amp;type=thread&amp;id=<?=$ThreadID?>" class="brackets">Report thread</a>
180
       <a href="reports.php?action=report&amp;type=thread&amp;id=<?=$ThreadID?>" class="brackets">Report thread</a>
181
       <a href="#" onclick="Subscribe(<?=$ThreadID?>);return false;" id="subscribelink<?=$ThreadID?>" class="brackets"><?=(in_array($ThreadID, $UserSubscriptions) ? 'Unsubscribe' : 'Subscribe')?></a>
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
     </div>
183
     </div>
184
     <div id="searchthread" class="hidden center">
184
     <div id="searchthread" class="hidden center">
185
       <div style="display: inline-block;">
185
       <div style="display: inline-block;">
187
         <form class="search_form" name="forum_thread" action="forums.php" method="get">
187
         <form class="search_form" name="forum_thread" action="forums.php" method="get">
188
           <input type="hidden" name="action" value="search" />
188
           <input type="hidden" name="action" value="search" />
189
           <input type="hidden" name="threadid" value="<?=$ThreadID?>" />
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
             <tr>
191
             <tr>
192
               <td><strong>Search for:</strong></td>
192
               <td><strong>Search for:</strong></td>
193
               <td><input type="search" id="searchbox" name="search" size="70" /></td>
193
               <td><input type="search" id="searchbox" name="search" size="70" /></td>
356
   //User has not voted
356
   //User has not voted
357
 ?>
357
 ?>
358
       <div id="poll_container">
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
           <input type="hidden" name="action" value="poll" />
360
           <input type="hidden" name="action" value="poll" />
361
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
361
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
362
           <input type="hidden" name="large" value="1" />
362
           <input type="hidden" name="large" value="1" />
479
     $AuthorInfo = Users::user_info($AuthorID);
479
     $AuthorInfo = Users::user_info($AuthorID);
480
     if ($LoggedUser['Class'] >= $AuthorInfo['Class']) {
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
           <input type="hidden" name="action" value="warn" />
483
           <input type="hidden" name="action" value="warn" />
484
           <input type="hidden" name="postid" value="<?=$PostID?>" />
484
           <input type="hidden" name="postid" value="<?=$PostID?>" />
485
           <input type="hidden" name="userid" value="<?=$AuthorID?>" />
485
           <input type="hidden" name="userid" value="<?=$AuthorID?>" />
496
   </tr>
496
   </tr>
497
   <tr>
497
   <tr>
498
 <?  if (Users::has_avatars_enabled()) { ?>
498
 <?  if (Users::has_avatars_enabled()) { ?>
499
-    <td class="avatar" valign="top">
499
+    <td class="avatar valign_top">
500
     <?=Users::show_avatar($Avatar, $AuthorID, $Username, $HeavyInfo['DisableAvatars'], 150, true)?>
500
     <?=Users::show_avatar($Avatar, $AuthorID, $Username, $HeavyInfo['DisableAvatars'], 150, true)?>
501
     </td>
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
       <div id="content<?=$PostID?>">
504
       <div id="content<?=$PostID?>">
505
         <?=Text::full_format($Body) ?>
505
         <?=Text::full_format($Body) ?>
506
 <?  if ($EditedUserID) { ?>
506
 <?  if ($EditedUserID) { ?>
512
 <?    } ?>
512
 <?    } ?>
513
         Last edited by
513
         Last edited by
514
         <?=Users::format_username($EditedUserID, false, false, false, false, false, $IsDonorForum) ?> <?=time_diff($EditedTime, 2, true, true)?>
514
         <?=Users::format_username($EditedUserID, false, false, false, false, false, $IsDonorForum) ?> <?=time_diff($EditedTime, 2, true, true)?>
515
+        </div>
515
 <?  } ?>
516
 <?  } ?>
516
       </div>
517
       </div>
517
-      </div>
518
     </td>
518
     </td>
519
   </tr>
519
   </tr>
520
 </table>
520
 </table>
548
   $Notes = G::$DB->to_array();
548
   $Notes = G::$DB->to_array();
549
 ?>
549
 ?>
550
   <br />
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
   <form action="forums.php" method="post">
552
   <form action="forums.php" method="post">
553
     <input type="hidden" name="action" value="take_topic_notes" />
553
     <input type="hidden" name="action" value="take_topic_notes" />
554
     <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
554
     <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
555
     <input type="hidden" name="topicid" value="<?=$ThreadID?>" />
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
   foreach ($Notes as $Note) {
558
   foreach ($Notes as $Note) {
559
 ?>
559
 ?>
562
   }
562
   }
563
 ?>
563
 ?>
564
       <tr>
564
       <tr>
565
-        <td colspan="2" class="center">
565
+        <td class="center">
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>
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
           <input type="submit" value="Save" />
567
           <input type="submit" value="Save" />
568
         </td>
568
         </td>
578
     <input type="hidden" name="threadid" value="<?=$ThreadID?>" />
578
     <input type="hidden" name="threadid" value="<?=$ThreadID?>" />
579
     <input type="hidden" name="page" value="<?=$Page?>" />
579
     <input type="hidden" name="page" value="<?=$Page?>" />
580
     </div>
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
       <tr>
582
       <tr>
583
         <td class="label"><label for="sticky_thread_checkbox">Sticky</label></td>
583
         <td class="label"><label for="sticky_thread_checkbox">Sticky</label></td>
584
         <td>
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
         </td>
586
         </td>
587
       </tr>
587
       </tr>
588
       <tr id="ranking_row"<?=!$ThreadInfo['IsSticky'] ? ' class="hidden"' : ''?>>
588
       <tr id="ranking_row"<?=!$ThreadInfo['IsSticky'] ? ' class="hidden"' : ''?>>

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

155
     $DisplayTime = '('.str_replace(['week','day','hour','min','Just now','s',' '],['w','d','h','m','0m'],time_diff($ExpiryTime, 1, false)).') ';
155
     $DisplayTime = '('.str_replace(['week','day','hour','min','Just now','s',' '],['w','d','h','m','0m'],time_diff($ExpiryTime, 1, false)).') ';
156
     $DisplayName = '<a href="torrents.php?torrentid='.$ID.'"';
156
     $DisplayName = '<a href="torrents.php?torrentid='.$ID.'"';
157
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
     $DisplayName .= '>'.($Name?$Name:($NameRJ?$NameRJ:$NameJP)).'</a>';
160
     $DisplayName .= '>'.($Name?$Name:($NameRJ?$NameRJ:$NameJP)).'</a>';
161
 ?>
161
 ?>
467
   <div class="box" id="recommended">
467
   <div class="box" id="recommended">
468
     <div class="head colhead_dark">
468
     <div class="head colhead_dark">
469
       <strong>Latest Vanity House additions</strong>
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
     </div>
471
     </div>
472
 
472
 
473
     <table class="torrent_table hidden" id="vanityhouse">
473
     <table class="torrent_table hidden" id="vanityhouse">
514
 <?  if (check_perms('admin_manage_news')) { ?>
514
 <?  if (check_perms('admin_manage_news')) { ?>
515
         - <a href="tools.php?action=editnews&amp;id=<?=$NewsID?>" class="brackets">Edit</a>
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
       </div>
518
       </div>
519
       <div id="newsbody<?=$NewsID?>" class="pad"><?=Text::full_format($Body)?></div>
519
       <div id="newsbody<?=$NewsID?>" class="pad"><?=Text::full_format($Body)?></div>
520
     </div>
520
     </div>

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

498
       $ArtistLink = Artists::display_artists($ArtistForm, true, true);
498
       $ArtistLink = Artists::display_artists($ArtistForm, true, true);
499
       $FullName = "$ArtistLink<a href=\"requests.php?action=view&amp;id=$RequestID\"><span ";
499
       $FullName = "$ArtistLink<a href=\"requests.php?action=view&amp;id=$RequestID\"><span ";
500
       if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
       $FullName .= "dir=\"ltr\">$Title</span></a>";
503
       $FullName .= "dir=\"ltr\">$Title</span></a>";
504
 
504
 

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

30
 foreach ($Torrents as $Torrent) {
30
 foreach ($Torrents as $Torrent) {
31
   $DisplayName = "<a href=\"torrents.php?id=$Torrent[ID]&torrentid=$Torrent[fid]\" ";
31
   $DisplayName = "<a href=\"torrents.php?id=$Torrent[ID]&torrentid=$Torrent[fid]\" ";
32
   if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
   $DisplayName .= "dir=\"ltr\">$Torrent[Name]</a>";
35
   $DisplayName .= "dir=\"ltr\">$Torrent[Name]</a>";
36
 
36
 

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

18
     <h3>Contact Staff</h3>
18
     <h3>Contact Staff</h3>
19
     <div id="below_box">
19
     <div id="below_box">
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>
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
     </div>
22
     </div>
23
     <? View::parse('generic/reply/staffpm.php', array('Hidden' => true)); ?>
23
     <? View::parse('generic/reply/staffpm.php', array('Hidden' => true)); ?>
24
 <? if ($FrontLineSupport) { ?>
24
 <? if ($FrontLineSupport) { ?>

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

85
       <div class="head">
85
       <div class="head">
86
         <?=((empty($_GET['action'])) ? 'Create a staff blog post' : 'Edit staff blog post')?>
86
         <?=((empty($_GET['action'])) ? 'Create a staff blog post' : 'Edit staff blog post')?>
87
         <span style="float: right;">
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
         </span>
89
         </span>
90
       </div>
90
       </div>
91
       <form class="<?=((empty($_GET['action'])) ? 'create_form' : 'edit_form')?>" name="blog_post" action="staffblog.php" method="post">
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
   <div class="header">
24
   <div class="header">
25
     <h2>Staff PMs</h2>
25
     <h2>Staff PMs</h2>
26
     <div class="linkbox">
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
     </div>
28
     </div>
29
   </div>
29
   </div>
30
   <br />
30
   <br />

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

232
   if ($Status != 'Resolved') { ?>
232
   if ($Status != 'Resolved') { ?>
233
           <input type="button" value="Resolve" onclick="location.href='staffpm.php?action=resolve&amp;id=<?=$ConvID?>';" />
233
           <input type="button" value="Resolve" onclick="location.href='staffpm.php?action=resolve&amp;id=<?=$ConvID?>';" />
234
 <?    if ($IsFLS) { //Moved by request ?>
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
           <input type="button" id="previewbtn" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" />
237
           <input type="button" id="previewbtn" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" />
238
           <input type="submit" value="Send message" />
238
           <input type="submit" value="Send message" />
242
   }
242
   }
243
   if (check_perms('users_give_donor')) { ?>
243
   if (check_perms('users_give_donor')) { ?>
244
           <br />
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
         </form>
247
         </form>
248
 <?  if (check_perms('users_give_donor')) { ?>
248
 <?  if (check_perms('users_give_donor')) { ?>

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

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>
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
     <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>
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
     <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>
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
 </div><br />
144
 </div><br />
145
 <div class="thin">
145
 <div class="thin">
146
     <table id="scores" class="hidden" style="width: 50%; margin: 0 auto;">
146
     <table id="scores" class="hidden" style="width: 50%; margin: 0 auto;">

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

466
 
466
 
467
     $DisplayName .= "<a href=\"torrents.php?id=$GroupID&amp;torrentid=$TorrentID\" class=\"tooltip\" title=\"View torrent\" ";
467
     $DisplayName .= "<a href=\"torrents.php?id=$GroupID&amp;torrentid=$TorrentID\" class=\"tooltip\" title=\"View torrent\" ";
468
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
 
174
 
175
   $DisplayName .= '<a href="torrents.php?id='.$GroupID.'" dir="ltr"';
175
   $DisplayName .= '<a href="torrents.php?id='.$GroupID.'" dir="ltr"';
176
   if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
   $DisplayName .= '>'.$GroupName.'</a>';
179
   $DisplayName .= '>'.$GroupName.'</a>';
180
   if ($GroupYear > 0) {
180
   if ($GroupYear > 0) {
272
 
272
 
273
     $DisplayName = $Group['Rank'] .' - <a href="torrents.php?id='.$GroupID.'" dir="ltr"';
273
     $DisplayName = $Group['Rank'] .' - <a href="torrents.php?id='.$GroupID.'" dir="ltr"';
274
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
     $DisplayName .= '>'.$GroupName.'</a>';
277
     $DisplayName .= '>'.$GroupName.'</a>';
278
     if ($Torrent['IsSnatched']) {
278
     if ($Torrent['IsSnatched']) {

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

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

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

556
 <?  }?>
556
 <?  }?>
557
             | <a href="torrents.php?torrentid=<?=$TorrentID ?>" class="tooltip" title="Permalink">PL</a>
557
             | <a href="torrents.php?torrentid=<?=$TorrentID ?>" class="tooltip" title="Permalink">PL</a>
558
           ]</span>
558
           ]</span>
559
-          &raquo; <a toggle-target="#torrent_<?=$TorrentID?>"><?=$ExtraInfo; ?></a>
559
+          &raquo; <a data-toggle-target="#torrent_<?=$TorrentID?>"><?=$ExtraInfo; ?></a>
560
         </td>
560
         </td>
561
         <td class="number_column nobr"><?=Format::get_size($Size)?></td>
561
         <td class="number_column nobr"><?=Format::get_size($Size)?></td>
562
         <td class="number_column"><?=number_format($Snatched)?></td>
562
         <td class="number_column"><?=number_format($Snatched)?></td>
641
     <div class="box">
641
     <div class="box">
642
       <div class="head">
642
       <div class="head">
643
         <span style="font-weight: bold;">Requests (<?=number_format(count($Requests))?>)</span>
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
       </div>
645
       </div>
646
       <table id="requests" class="request_table hidden">
646
       <table id="requests" class="request_table hidden">
647
         <tr class="colhead">
647
         <tr class="colhead">
690
     $Range = range(0, count($Collages) - 1);
690
     $Range = range(0, count($Collages) - 1);
691
     shuffle($Range);
691
     shuffle($Range);
692
     $Indices = array_slice($Range, 0, MAX_COLLAGES);
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
   } else {
694
   } else {
695
     $Indices = range(0, count($Collages) - 1);
695
     $Indices = range(0, count($Collages) - 1);
696
     $SeeAll = '';
696
     $SeeAll = '';
741
     $Range = range(0,count($PersonalCollages) - 1);
741
     $Range = range(0,count($PersonalCollages) - 1);
742
     shuffle($Range);
742
     shuffle($Range);
743
     $Indices = array_slice($Range, 0, MAX_PERS_COLLAGES);
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
   } else {
745
   } else {
746
     $Indices = range(0, count($PersonalCollages) - 1);
746
     $Indices = range(0, count($PersonalCollages) - 1);
747
     $SeeAll = '';
747
     $SeeAll = '';
785
 <?
785
 <?
786
     if (count($Screenshots) > 0) {
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
     $DB->query("
791
     $DB->query("

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

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

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

264
       }
264
       }
265
       $DisplayName .= "<a href=\"torrents.php?id=$GroupID&amp;torrentid=$TorrentID#torrent$TorrentID\" ";
265
       $DisplayName .= "<a href=\"torrents.php?id=$GroupID&amp;torrentid=$TorrentID#torrent$TorrentID\" ";
266
       if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
       $DisplayName .= "class=\"tooltip\" title=\"View torrent\" dir=\"ltr\">" . $GroupInfo['Name'] . '</a>';
269
       $DisplayName .= "class=\"tooltip\" title=\"View torrent\" dir=\"ltr\">" . $GroupInfo['Name'] . '</a>';
270
 
270
 

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

513
     }
513
     }
514
     $DisplayName .= '<a href="torrents.php?id='.$GroupID.'&amp;torrentid='.$TorrentID.'" ';
514
     $DisplayName .= '<a href="torrents.php?id='.$GroupID.'&amp;torrentid='.$TorrentID.'" ';
515
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
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
     $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
518
     $GroupName = empty($GroupName) ? (empty($GroupNameRJ) ? $GroupNameJP : $GroupNameRJ) : $GroupName;
519
     $DisplayName .= 'dir="ltr">'.$GroupName.'</a>';
519
     $DisplayName .= 'dir="ltr">'.$GroupName.'</a>';

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

39
 ?>
39
 ?>
40
     <table class="box vote_matches_table" id="vote_matches">
40
     <table class="box vote_matches_table" id="vote_matches">
41
       <tr class="colhead">
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
       </tr>
43
       </tr>
44
 <?
44
 <?
45
   $Top10Groups = array_keys($Top10);
45
   $Top10Groups = array_keys($Top10);

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

112
   <p><?=$NewDNU ? '<strong class="important_text">' : '' ?>Last updated: <?=time_diff($Updated)?><?=$NewDNU ? '</strong>' : '' ?></p>
112
   <p><?=$NewDNU ? '<strong class="important_text">' : '' ?>Last updated: <?=time_diff($Updated)?><?=$NewDNU ? '</strong>' : '' ?></p>
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.
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
 <?  if ($HideDNU) { ?>
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
   </p>
117
   </p>
118
   <table id="dnulist" class="<?=($HideDNU ? 'hidden' : '')?>">
118
   <table id="dnulist" class="<?=($HideDNU ? 'hidden' : '')?>">

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

144
             <option value="<?=($Style['ID'])?>"<?=$Style['ID'] == $StyleID ? ' selected="selected"' : ''?>><?=($Style['ProperName'])?></option>
144
             <option value="<?=($Style['ID'])?>"<?=$Style['ID'] == $StyleID ? ' selected="selected"' : ''?>><?=($Style['ProperName'])?></option>
145
 <?  } ?>
145
 <?  } ?>
146
           </select>&nbsp;&nbsp;
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
           <div id="css_gallery" class="hidden">
148
           <div id="css_gallery" class="hidden">
149
 <?  foreach ($Stylesheets as $Style) { ?>
149
 <?  foreach ($Stylesheets as $Style) { ?>
150
             <div class="preview_wrapper">
150
             <div class="preview_wrapper">

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

197
       <input type="hidden" id="form_comment_hash" name="form_comment_hash" value="<?=$CommentHash?>" />
197
       <input type="hidden" id="form_comment_hash" name="form_comment_hash" value="<?=$CommentHash?>" />
198
       <div class="box box2" id="l_a_box">
198
       <div class="box box2" id="l_a_box">
199
         <div class="head">
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
         </div>
201
         </div>
202
         <table width="100%" class="layout hidden linkedaccounts">
202
         <table width="100%" class="layout hidden linkedaccounts">
203
           <?=($DupeCount ? "<tr>\n" : '')?>
203
           <?=($DupeCount ? "<tr>\n" : '')?>

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

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>
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
     <?=display_str($N['Label'])?>
90
     <?=display_str($N['Label'])?>
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>
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
   </h3>
93
   </h3>
94
 <?  } ?>
94
 <?  } ?>
95
   <form class="box pad slight_margin <?=($NewFilter ? 'create_form' : 'edit_form')?>" id="<?=($NewFilter ? 'filter_form' : '')?>" name="notification" action="user.php" method="post">
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
     <div class="box">
666
     <div class="box">
667
       <div class="head">
667
       <div class="head">
668
         <?=!empty($InfoTitle) ? $InfoTitle : 'Profile';?>
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
       </div>
670
       </div>
671
       <div class="pad profileinfo" id="profilediv">
671
       <div class="pad profileinfo" id="profilediv">
672
 <?
672
 <?
805
     <div class="head">
805
     <div class="head">
806
       <?=display_str($CName)?> - <a href="collages.php?id=<?=$CollageID?>" class="brackets">See full</a>
806
       <?=display_str($CName)?> - <a href="collages.php?id=<?=$CollageID?>" class="brackets">See full</a>
807
       <span style="float: right;">
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
       </span>
809
       </span>
810
     </div>
810
     </div>
811
     <div id="user_collage_images" class="collage_images">
811
     <div id="user_collage_images" class="collage_images">
858
 ?>
858
 ?>
859
     <div class="box" id="invitetree_box">
859
     <div class="box" id="invitetree_box">
860
       <div class="head">
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
       </div>
862
       </div>
863
       <div id="invitetree" class="hidden">
863
       <div id="invitetree" class="hidden">
864
 <?        $Tree->make_tree(); ?>
864
 <?        $Tree->make_tree(); ?>
887
 ?>
887
 ?>
888
     <div class="box" id="requests_box">
888
     <div class="box" id="requests_box">
889
       <div class="head">
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
       </div>
891
       </div>
892
       <div id="requests" class="hidden">
892
       <div id="requests" class="hidden">
893
         <table cellpadding="6" cellspacing="1" border="0" width="100%">
893
         <table cellpadding="6" cellspacing="1" border="0" width="100%">
983
 ?>
983
 ?>
984
     <div class="box" id="staffpms_box">
984
     <div class="box" id="staffpms_box">
985
       <div class="head">
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
       </div>
987
       </div>
988
       <table width="100%" class="message_table hidden" id="staffpms">
988
       <table width="100%" class="message_table hidden" id="staffpms">
989
         <tr class="colhead">
989
         <tr class="colhead">
1058
         Staff Notes
1058
         Staff Notes
1059
         <a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;" class="brackets">Edit</a>
1059
         <a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;" class="brackets">Edit</a>
1060
         <span style="float: right;">
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
         </span>
1062
         </span>
1063
       </div>
1063
       </div>
1064
       <div id="staffnotes" class="pad">
1064
       <div id="staffnotes" class="pad">

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

283
     $Record['IP'] = apc_exists('DBKEY') ? DBCrypt::decrypt($Record['IP']) : '[Encrypted]';
283
     $Record['IP'] = apc_exists('DBKEY') ? DBCrypt::decrypt($Record['IP']) : '[Encrypted]';
284
 ?>
284
 ?>
285
     <tr class="row">
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
       <td><?=time_diff($Record['StartTime'])?></td>
287
       <td><?=time_diff($Record['StartTime'])?></td>
288
       <td><?=time_diff($Record['EndTime'])?></td>
288
       <td><?=time_diff($Record['EndTime'])?></td>
289
       <td><?=time_diff($Record['ElapsedTime'])?></td>
289
       <td><?=time_diff($Record['ElapsedTime'])?></td>
353
 $Invite['IP'] = apc_exists('DBKEY') ? DBCrypt::decrypt($Invite['IP']) : '[Encrypted]';
353
 $Invite['IP'] = apc_exists('DBKEY') ? DBCrypt::decrypt($Invite['IP']) : '[Encrypted]';
354
 ?>
354
 ?>
355
     <tr class="row">
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
       <td>Never</td>
357
       <td>Never</td>
358
       <td><?=time_diff($Invite['EndTime'])?></td>
358
       <td><?=time_diff($Invite['EndTime'])?></td>
359
       <td><?=time_diff($Invite['AccountAge'])?></td>
359
       <td><?=time_diff($Invite['AccountAge'])?></td>

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

252
           <strong><a href="collage.php?id=<?=$CollageID?>"><?=$CollageName?></a></strong> (<?=$NewTorrentCount?> new torrent<?=($NewTorrentCount == 1 ? '' : 's')?>)
252
           <strong><a href="collage.php?id=<?=$CollageID?>"><?=$CollageName?></a></strong> (<?=$NewTorrentCount?> new torrent<?=($NewTorrentCount == 1 ? '' : 's')?>)
253
         </span>&nbsp;
253
         </span>&nbsp;
254
         <span style="float: right;">
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
         </span>
256
         </span>
257
       </td>
257
       </td>
258
     </tr>
258
     </tr>

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

314
   }
314
   }
315
   //Preload first result's cover
315
   //Preload first result's cover
316
   if ($('#torrent_table').length > 0) {
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
 }
170
 }
171
 
171
 
172
 function getCover(event) {
172
 function getCover(event) {
173
-  image = event.target.attributes.cover.value
173
+  image = event.target.attributes['data-cover'].value
174
   $('#coverCont img').remove()
174
   $('#coverCont img').remove()
175
   var coverCont = ($('#coverCont').length==0)?document.body.appendChild(document.createElement('div')):$('#coverCont')[0]
175
   var coverCont = ($('#coverCont').length==0)?document.body.appendChild(document.createElement('div')):$('#coverCont')[0]
176
   coverCont.id = 'coverCont'
176
   coverCont.id = 'coverCont'
182
   coverCont.style.display = 'block'
182
   coverCont.style.display = 'block'
183
   //Preload next image
183
   //Preload next image
184
   if ($('.torrent_table, .request_table').length > 0) {
184
   if ($('.torrent_table, .request_table').length > 0) {
185
-    var as = $('[cover]')
185
+    var as = $('[data-cover]')
186
     var a = event.target
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
 function ungetCover(event) {
191
 function ungetCover(event) {
201
 
201
 
202
 $(function() {
202
 $(function() {
203
   if ($('.request_table').length > 0) {
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
     el.addEventListener('click', function(event) {
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
           }));
32
           }));
33
           // I'm so happy with this condition statement.
33
           // I'm so happy with this condition statement.
34
           if (privileged) {
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
           } else {
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
           $('#news' + this[0]).append('<div class="pad" id="newsbody'+this[0]+'">' + this[3] + '</div>');
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
 $(() => {
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
   if ($('#no-cookies')) {
6
   if ($('#no-cookies')) {

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

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
   width: 20%;
111
   width: 20%;
112
 }
112
 }
113
 
113
 
114
-[toggle-target], [quote-jump] {
114
+[data-toggle-target], [quote-jump] {
115
   cursor: pointer;
115
   cursor: pointer;
116
 }
116
 }
117
 
117
 
267
   width: 95%
267
   width: 95%
268
 }
268
 }
269
 
269
 
270
-td.label {
270
+td.label, .valign_top {
271
   vertical-align: top;
271
   vertical-align: top;
272
 }
272
 }
273
 
273
 
723
   max-width: 500px;
723
   max-width: 500px;
724
 }
724
 }
725
 
725
 
726
+.display_block {
727
+  display: block;
728
+}
729
+
726
 .sidebar img {
730
 .sidebar img {
727
   max-width: 100%;
731
   max-width: 100%;
728
   width: initial;
732
   width: initial;

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

122
   text-align: justify;
122
   text-align: justify;
123
 }
123
 }
124
 
124
 
125
+.centered {
126
+  text-align: center;
127
+  vertical-align: middle;
128
+}
129
+
125
 .hidden {
130
 .hidden {
126
   display: none;
131
   display: none;
127
 }
132
 }

Loading…
Cancel
Save