Browse Source

Replace snatched icon PNG with inline SVG

spaghetti 8 years ago
parent
commit
a12781cc2d

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

@@ -185,9 +185,11 @@ $OldGroupID = 0;
185 185
     <td class="small"><!-- expand/collapse --></td>
186 186
     <td width="70%"><a href="#">&uarr;</a>&nbsp;<strong>Name</strong></td>
187 187
     <td>Size</td>
188
-    <td class="sign snatches"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/snatched.png" class="tooltip" alt="Snatches" title="Snatches" /></td>
188
+    <td class="sign snatches">
189
+      <a><svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg></a>
190
+    </td>
189 191
     <td class="sign seeders">
190
-    <a><svg width="11" height="15" fill="white" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg></a>
192
+      <a><svg width="11" height="15" fill="white" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg></a>
191 193
     </td>
192 194
     <td class="sign leechers">
193 195
       <a><svg width="11" height="15" fill="white" class="tooltip" alt="Leechers" title="Leechers"><polygon points="0,8 5.5,15 11,8 8,8 8,0 3,0 3,8"></polygon></svg></a>

+ 3
- 1
sections/bookmarks/torrents.php View File

@@ -397,7 +397,9 @@ if ($CollageCovers !== 0) { ?>
397 397
         <td><!-- Category --></td>
398 398
         <td width="70%"><strong>Torrents</strong></td>
399 399
         <td>Size</td>
400
-        <td class="sign snatches"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/snatched.png" class="tooltip" alt="Snatches" title="Snatches" /></td>
400
+        <td class="sign snatches">
401
+          <a><svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg></a>
402
+        </td>
401 403
         <td class="sign seeders">
402 404
           <a><svg width="11" height="15" fill="white" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg></a>
403 405
         </td>

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

@@ -605,7 +605,9 @@ if ($CollageCovers != 0) { ?>
605 605
         <td><!-- Category --></td>
606 606
         <td width="70%"><strong>Torrents</strong></td>
607 607
         <td>Size</td>
608
-        <td class="sign snatches"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/snatched.png" class="tooltip" alt="Snatches" title="Snatches" /></td>
608
+        <td class="sign snatches">
609
+          <a><svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg></a>
610
+        </td>
609 611
         <td class="sign seeders">
610 612
           <a><svg width="11" height="15" fill="white" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg></a>
611 613
         </td>

+ 3
- 1
sections/reportsv2/report.php View File

@@ -77,7 +77,9 @@ View::show_header('Report', 'reportsv2,browse,torrent,bbcode,recommend');
77 77
       <tr class="colhead_dark">
78 78
         <td width="80%"><strong>Reported torrent</strong></td>
79 79
         <td><strong>Size</strong></td>
80
-        <td class="sign snatches"><img src="static/styles/<?=($LoggedUser['StyleName'])?>/images/snatched.png" class="tooltip" alt="Snatches" title="Snatches" /></td>
80
+        <td class="sign snatches">
81
+          <a><svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg></a>
82
+        </td>
81 83
         <td class="sign seeders">
82 84
           <a><svg width="11" height="15" fill="white" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg></a>
83 85
         </td>

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

@@ -412,7 +412,7 @@ function generate_torrent_table($Caption, $Tag, $Details, $Limit) {
412 412
     <td>Name</td>
413 413
     <td style="text-align: right;">Size</td>
414 414
     <td style="text-align: right;">Data</td>
415
-    <td style="text-align: right;" class="sign snatches"><img src="static/styles/<?=$LoggedUser['StyleName']?>/images/snatched.png" alt="Snatches" title="Snatches" class="tooltip" /></td>
415
+    <td style="text-align: right;" class="sign snatches"><svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg></td>
416 416
     <td style="text-align: right;" class="sign seeders"><svg width="11" height="15" fill="white" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg></td>
417 417
     <td style="text-align: right;" class="sign leechers"><svg width="11" height="15" fill="white" class="tooltip" alt="Leechers" title="Leechers"><polygon points="0,8 5.5,15 11,8 8,8 8,0 3,0 3,8"></polygon></svg></td>
418 418
     <td style="text-align: right;">Peers</td>

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

@@ -328,7 +328,7 @@ foreach ($TopVotes as $GroupID => $Group) {
328 328
     <td class="cats_col"><!-- category --></td>
329 329
     <td width="70%">Torrents</td>
330 330
     <td>Size</td>
331
-    <td class="sign snatches"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/snatched.png" alt="Snatches" title="Snatches" class="tooltip" /></td>
331
+    <td class="sign snatches"><svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg></td>
332 332
     <td class="sign seeders"><svg width="11" height="15" fill="white" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg></td>
333 333
     <td class="sign leechers"><svg width="11" height="15" fill="white" class="tooltip" alt="Leechers" title="Leechers"><polygon points="0,8 5.5,15 11,8 8,8 8,0 3,0 3,8"></polygon></svg></td>
334 334
   </tr>

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

@@ -453,7 +453,7 @@ View::show_header('Browse Torrents', 'browse');
453 453
       <td><a href="<?=header_link('size')?>">Size</a></td>
454 454
       <td class="sign snatches">
455 455
         <a href="<?=header_link('snatched')?>">
456
-          <img src="static/styles/<?=$LoggedUser['StyleName']?>/images/snatched.png" class="tooltip" alt="Snatches" title="Snatches" />
456
+          <svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg>
457 457
         </a>
458 458
       </td>
459 459
       <td class="sign seeders">

+ 2
- 1
sections/torrents/details.php View File

@@ -379,7 +379,8 @@ if (empty($LoggedUser['DisableTagging'])) {
379 379
       <tr class="colhead_dark">
380 380
         <td width="80%"><strong>Torrents</strong></td>
381 381
         <td><strong>Size</strong></td>
382
-        <td class="sign snatches"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/snatched.png" class="tooltip" alt="Snatches" title="Snatches" /></td>
382
+        <td class="sign snatches">
383
+          <a><svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg></a>
383 384
         <td class="sign seeders">
384 385
           <a><svg width="11" height="15" fill="white" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg></a>
385 386
         </td>

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

@@ -233,7 +233,7 @@ if (empty($Results)) {
233 233
     <td>Files</td>
234 234
     <td><a href="<?=header_link('time')?>">Time</a></td>
235 235
     <td><a href="<?=header_link('size')?>">Size</a></td>
236
-    <td class="sign snatches"><a href="<?=header_link('snatches')?>"><img src="static/styles/<?=$LoggedUser['StyleName']?>/images/snatched.png" class="tooltip" alt="Snatches" title="Snatches" /></a></td>
236
+    <td class="sign snatches"><a href="<?=header_link('snatches')?>"><svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg></a></td>
237 237
     <td class="sign seeders"><a href="<?=header_link('seeders')?>"><svg width="11" height="15" fill="white" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg></a></td>
238 238
     <td class="sign leechers"><a href="<?=header_link('leechers')?>"><svg width="11" height="15" fill="white" class="tooltip" alt="Leechers" title="Leechers"><polygon points="0,8 5.5,15 11,8 8,8 8,0 3,0 3,8"></polygon></svg></a></td>
239 239
   </tr>

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

@@ -481,7 +481,7 @@ foreach ($Categories as $CatKey => $CatName) {
481 481
       <td><a href="<?=header_link('Size')?>">Size</a></td>
482 482
       <td class="sign snatches">
483 483
         <a href="<?=header_link('Snatched')?>">
484
-          <img src="static/styles/<?=$LoggedUser['StyleName']?>/images/snatched.png" class="tooltip" alt="Snatches" title="Snatches" />
484
+          <svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg>
485 485
         </a>
486 486
       </td>
487 487
       <td class="sign seeders">

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

@@ -263,7 +263,9 @@ if (!$NumResults) {
263 263
       <td width="1%"><!-- expand/collapse --></td>
264 264
       <td width="70%"><strong>Torrents</strong></td>
265 265
       <td>Size</td>
266
-      <td class="sign snatches"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/snatched.png" class="tooltip" alt="Snatches" title="Snatches" /></td>
266
+      <td class="sign snatches">
267
+        <a><svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg></a>
268
+      </td>
267 269
       <td class="sign seeders">
268 270
         <a><svg width="11" height="15" fill="white" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg></a>
269 271
       </td>

BIN
static/styles/beluga/images/snatched.png View File


BIN
static/styles/genaviv/images/snatched.png View File


BIN
static/styles/oppai/images/snatched.png View File


Loading…
Cancel
Save