Changeset 2023737
- Timestamp:
- 02/02/2019 12:50:01 PM (7 years ago)
- Location:
- file-download/trunk
- Files:
-
- 10 added
- 2 edited
-
download-widget.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
svg (added)
-
svg/docx-file-icon.svg (added)
-
svg/generic-file-icon.svg (added)
-
svg/mp3-file-icon.svg (added)
-
svg/mp4-file-icon.svg (added)
-
svg/pdf-file-icon.svg (added)
-
svg/photo-file-icon.svg (added)
-
svg/txt-file-icon.svg (added)
-
svg/xlsx-file-icon.svg (added)
-
svg/zip-file-icon.svg (added)
Legend:
- Unmodified
- Added
- Removed
-
file-download/trunk/download-widget.php
r2020155 r2023737 4 4 Description: A simple file download widget. 5 5 Text Domain: download-widget 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: Fortuner 8 8 Author URI: https://theaword.com/ … … 35 35 $type = @end(explode('.', $instance['the_file'])); 36 36 if($type == 'docx' || $type == 'doc'){ 37 $icon_src = plugins_url(' docx-file-icon.svg', __FILE__);37 $icon_src = plugins_url('svg/docx-file-icon.svg', __FILE__); // dark blue 38 38 }else if ($type == 'pdf'){ 39 $icon_src = plugins_url('pdf-file-icon.svg', __FILE__); 39 $icon_src = plugins_url('svg/pdf-file-icon.svg', __FILE__); // red 40 }else if ($type == 'xls' || $type == 'xlsx' ){ 41 $icon_src = plugins_url('svg/xlsx-file-icon.svg', __FILE__); // dark green 42 }else if ($type == 'mp3'){ 43 $icon_src = plugins_url('svg/mp3-file-icon.svg', __FILE__); // purple 44 }else if ($type == 'mp4'){ 45 $icon_src = plugins_url('svg/mp4-file-icon.svg', __FILE__); // mauve 46 }else if ($type == 'txt'){ 47 $icon_src = plugins_url('svg/txt-file-icon.svg', __FILE__); // pink 48 }else if ($type == 'zip'){ 49 $icon_src = plugins_url('svg/zip-file-icon.svg', __FILE__); // yellow 50 }else if ($type == 'jpg' || $type == 'jpeg' || $type == 'png' || $type == 'gif'){ 51 $icon_src = plugins_url('svg/photo-file-icon.svg', __FILE__); // violet 52 }else if ($type == 'exe'){ 53 $icon_src = plugins_url('svg/exe-file-icon.svg', __FILE__); //brown 40 54 }else{ 41 $icon_src = plugins_url(' generic-file-icon.svg', __FILE__);55 $icon_src = plugins_url('svg/generic-file-icon.svg', __FILE__); //black 42 56 } 43 57 echo "<p><a href='".$instance['the_file']."' download class='file-download-anchor'><img src='".$icon_src."' class='file-download-icon'><span>".$instance['title']."</span></a></p>"; … … 45 59 46 60 public static function file_download_css(){ 47 echo "<style>.file-download-anchor{border: 1px solid gainsboro;display: inline-block;padding: 5px 30px 5px 5px;line-height: 31px;}.file-download-anchor:hover{box-shadow: 0px 0px 6px 0px rgba(0,0,0,.125);}.file-download-icon{float: left;margin-right: 5px;width:30px}</style>";61 echo "<style>.file-download-anchor{border: 1px solid gainsboro;display: inline-block;padding: 8px 30px 8px 8px;line-height: 31px;}.file-download-anchor:hover{box-shadow: 0px 0px 17px 0px rgba(0,0,0,.125);}.file-download-icon{float: left;margin-right: 5px;width:30px}</style>"; 48 62 } 49 63 -
file-download/trunk/readme.txt
r2023704 r2023737 1 1 === File Download === 2 2 Contributors: avneetk 3 Tags: file, download, brochures, upload, media, docx, pdf3 Tags: file, download, upload, media, docx, doc, pdf 4 4 Requires at least: 4.0 5 5 Tested up to: 5.0.3 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 … … 16 16 Upload the File Download to your blog, Activate it. 17 17 And You're done! 18 19 == Changelog == 20 21 = 1.0.2 = 22 *Release Date - 2 Feb 2019* 23 24 * Added new file extensions.
Note: See TracChangeset
for help on using the changeset viewer.