-
Notifications
You must be signed in to change notification settings - Fork 1
Add icons #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add icons #7
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,6 +151,27 @@ | |
| .noprint { display:none; } | ||
| } | ||
|
|
||
| .icon1 { | ||
| margin: 0px; | ||
| padding: 2px; | ||
| background: white; | ||
| color: white; | ||
| max-height: 26px; | ||
| text-align: center; | ||
| float: inline-start; | ||
| } | ||
|
|
||
| .icon2 { | ||
| margin: 0px; | ||
| padding: 0px; | ||
| background: white; | ||
| color: white; | ||
| max-height: 15px; | ||
| text-align: center; | ||
| vertical-align: middle; | ||
| float: none; | ||
| } | ||
|
|
||
| </style> | ||
| </head> | ||
| <body> | ||
|
|
@@ -177,6 +198,7 @@ | |
| echo '<input type="hidden" name="token" value="'.$token.'" />'; | ||
| } | ||
| ?> | ||
| <img class="icon1" src="pictures/magnifying-glass-tilted-left-svgrepo-com.svg"> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please use "img" for images, as they are not "pictures" (like photos) but icons |
||
| <input name="s" value="<?php echo $sv ?>" /> | ||
| <input type="submit" value="Cherche !"/> | ||
| Tri par <select name="t"> | ||
|
|
@@ -308,8 +330,8 @@ function tri_par_completion($a, $b) {return tri_ligne($a, $b, 'completion');} | |
| echo $c; | ||
| if($i==0) | ||
| { | ||
| echo ' [<a href="http://www.youtube.com/results?search_query='.urlencode($c.', '.$l[$i+1].', '.$l[$i+2]).'">youtube</a>]'; | ||
| echo ' [<a href="http://musicainfo.net/quiksrch.php?vol='.urlencode($c).'">musicainfo</a>]'; | ||
| echo ' [<a href="http://www.youtube.com/results?search_query='.urlencode($c.', '.$l[$i+1].', '.$l[$i+2]).'"><img class="icon2" src="pictures/youtube-svgrepo-com.svg" alt="youtube-logo"> youtube</a>]'; | ||
| echo ' [<a href="http://musicainfo.net/quiksrch.php?vol='.urlencode($c).'"><img class="icon2" src="pictures/web-svgrepo-com.svg" alt="web-logo">musicainfo</a>]'; | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. alt attribute should be used to aid visual impaired people. Can't we use musicainfo logo rather than a generic web one? It should be checked, but if the image is only used for decoration, I think we can use an empty alt="" |
||
| } | ||
| echo '</td>'; | ||
| //if(!$lv) | ||
|
|
@@ -335,7 +357,7 @@ function tri_par_completion($a, $b) {return tri_ligne($a, $b, 'completion');} | |
| */ | ||
| if($token_ok && is_dir($arv_config['docs_dir'].'/'.$l[3])) | ||
| { | ||
| echo '<td><a href="list.php?ref='.$l[3].'&token='.$_GET['token'].'">Documents</a></td>'; | ||
| echo '<td><a href="list.php?ref='.$l[3].'&token='.$_GET['token'].'"><img class="icon2" src="pictures/directory-documents-svgrepo-com.svg" alt="directory-logo">Documents</a></td>'; | ||
| } | ||
| else | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [ZoneTransfer] | ||
| ZoneId=3 | ||
| ReferrerUrl=https://www.svgrepo.com/svg/366083/directory-documents | ||
| HostUrl=https://www.svgrepo.com/download/366083/directory-documents.svg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [ZoneTransfer] | ||
| ZoneId=3 | ||
| ReferrerUrl=https://www.svgrepo.com/svg/468699/download-alt-4 | ||
| HostUrl=https://www.svgrepo.com/download/468699/download-alt-4.svg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [ZoneTransfer] | ||
| ZoneId=3 | ||
| ReferrerUrl=https://www.svgrepo.com/svg/16606/eye | ||
| HostUrl=https://www.svgrepo.com/download/16606/eye.svg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| SVG logo taken from website https://www.svgrepo.com. | ||
|
|
||
| According to this site, those svg logo are open-licensed and can be reused. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [ZoneTransfer] | ||
| ZoneId=3 | ||
| ReferrerUrl=https://www.svgrepo.com/svg/396962/magnifying-glass-tilted-left | ||
| HostUrl=https://www.svgrepo.com/download/396962/magnifying-glass-tilted-left.svg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [ZoneTransfer] | ||
| ZoneId=3 | ||
| ReferrerUrl=https://www.svgrepo.com/svg/501060/web | ||
| HostUrl=https://www.svgrepo.com/download/501060/web.svg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [ZoneTransfer] | ||
| ZoneId=3 | ||
| ReferrerUrl=https://www.svgrepo.com/svg/448261/youtube | ||
| HostUrl=https://www.svgrepo.com/download/448261/youtube.svg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be factorized. Also class names should be semantic: what is icon1? Which use?