Hi
Would it not be better if you would do
function download_from_files_617_icon($icon) {
$src = '';
if (!empty($icon)) {
$src = plugin_dir_url( __DIR__ ).'/assets/images/'.$icon;
}
return $src;
}
instead of
function download_from_files_617_icon($icon) {
$src = '';
if (!empty($icon)) {
$src = esc_url( home_url('/') ) . str_replace(DOWNLOAD_FROM_FILES_617_WP_ROOT, '', DOWNLOAD_FROM_FILES_617_ROOT) . '/assets/images/' . $icon;
}
return $src;
}
Best regards
Marco
Hi,
I tried to change the type and style of the icons in the wp-content \ plugins \ download-from-files \ assets \ icons folder respecting the names but they always remain the same by default. is there a size limit? or isn’t the right way to operate? i used the following shortcode [download-from-tree target=”wp-content/uploads/Repository”] and icons of 24 pixel. I also tried with 16×16 size icons but with the same result
Hi Dovi,
For now I have done some summary tests, the first anomaly I found is the “Directory up” button in the administrator panel that does not work, after I created a subdir (Home -> wp-content -> uploads -> Repository) in all the other cases work instead.
Is there any constraint in the folder creation levels ??
P.S. I have a Localhost installation (xammp, wordpress 5.7)
Hello, I was planning to use your plugin for single downloads but it seems the templates are not the same for single download??
]]>Hello, it’s a very good plugin, thanks for sharing it. I did not find any information about how to create a Descript.ion file. Could you give some example in documentation? Thanks.
]]>Hi Thanks for a fantastic plugin – this is exactly what I was looking for. One small thing though. When I link to a folder that has only subfolders but no files I get the text “This folder is empty.” at the end of my list of subfolder links.
Could this be made optional? or auto suppressed when there are subfolders (ie Folder i not completely empty). Or specify some text of own choosing?
Otherwise an awesome plugin!
Thanks in advance
Krusedulle
]]>