开发者 | pexlechris |
---|---|
更新时间 | 2024年11月10日 20:30 |
PHP版本: | 7.0 及以上 |
WordPress版本: | 6.6.2 |
版权: | GPLv2 |
版权网址: | 版权信息 |
With Library Viewer Pro, you can! See this support topic: wordpress.org/support/topic/executable-pdf-file
You need to add the following code in the .htaccess file of the folder that you want to deny users execute php files
<Files *.php> deny from all </Files>
Yes. Please read carefully the section "Other Details" of plugin.
You can test your own use cases in the DEMO
Library Viewer have been tested with TinyMCE (Classic Editor), Gutenberg, WPBakery, Visual Composer, Elementor and works fine! Generally can be used, everywhere that shortcodes are accepted...
Yes. If you want to add text above the front-end folders or below the front-end files, you can create via FTP a file with name "include.php" in the FTP folder that you want texts to be shown in front-end.
HTML tags are allowed!
Your texts must be values of php variables ($text_at_beginning , $text_at_end respectively) as you can see below:
`
Also, you can use the hooks
lv_folder_text_at_beginningand
lv_folder_text_at_end` respectively for this scope.
You can do this via FTP/cPanel or you can buy the Library Viewer File Manager Add-on to manage the folder from the front-end.
= Is Library Viewer' file viewer supports all mime types (file extensions)?
From 1.1.2, the Library Viewer' file viewer supports all mime types that wordpress supports.
These that included in the function: wp_get_mime_types()
If you want to add support for mime types that are not included, use the WP filter: lv_mime_types to include them.
Read more in HOOKS DOCUMENTATION
Read also how to add PHP hooks in your WordPress Site in my blog
= I want all files to be downloaded. Is that possible?
Yes, you need to use the Library Viewer' file viewer (my_doc_viewer="library-viewer") and to add the following hook in your functions.php
add_filter('lv_mime_types', function(){ return array(); });
Read how to add PHP hooks in your WordPress Site in my blog
Yes. But only with plain CSS at the moment. So you can add your custom css from WP customizer (from Additional CSS)
Yes. I need new ideas to improve my plugin. Send it to me via email or via support forum
library-viewer-name
has been added in the div with class library-viewer--container
lv_filter_global_{$parameter}
filter introduced. With this filter, you can filter the parameters BEFORE the rest globals' initialization.lv_breadcrumb_html
filter introduced. With this filter, you can filter the html of whole breadcrumb.library
folder doesn't exist, will be created automatically when the shortcode will called in the front-end.current_viewer
was not existed. Now exists.lv_file_anchor_html
, the variable $file_anchor_href has been also added in the array $file (2nd parameter). View hook' documentation for more info..library-viewer--folder h3{margin-top: 0; display: inline-block;}
css has been added.lv_shortcode_class_name
has been replaced by lv_shortcode_class_names
. This is an advanced hook...lv_file_viewer_class_name
has been replaced by lv_file_viewer_class_names
. This is an advanced hook...breadcrumb
value has been removed from Library Viewer globals parameter of all hooks. From now, there is only in Library Viewer Pro's hooksmy_doc_viewer
parameter. If you don't want to be encoded use lv_my_doc_viewer_file_encoded
filter.library-viewer--current-breadcrumb-item
class removed from breadcrumb current item. Replaced with the CSS rule .library-viewer--breadcrumb-item:last-of-type
Hooks:LV__folder_was_viewed
action replaced with lv_folder_was_viewed
action.LV__array_replace_to__in_foldernames
filter replaced with lv_folder_fake_path_symbols
filter.LV__array_replace_from__in_foldernames
filter replaced with lv_folder_real_path_symbols
filter.LV__array_replace_to__in_filenames
filter replaced with lv_file_fake_path_symbols
filter.LV__array_replace_from__in_filenames
filter replaced with lv_file_real_path_symbols
filter.LV__folder_html
filter replaced with lv_folder_html
filter.LV__file_html
filter replaced with lv_file_html
filter.LV__file_was_viewed
filter replaced with lv_file_was_viewed
filter.lv_file_identifier
filter introduced. With this you can change the '/LV/' that is the part of URL of a file.lv_before_breadcrumb_start
action introduced.lv_after_breadcrumb_start
action introduced.lv_breadcrumb_folder_delimiter_html
action introduced. You can change the delimiter of folders of breadcrumb.lv_breadcrumb_items
action introduced. With this filter, you can alter the breadcrumb items, for example the folder name and folder fake link.lv_before_breadcrumb_end
action introduced.lv_after_breadcrumb_end
action introduced.lv_empty_folder_html
filter introduced. If the current folder contains neither files nor folders, an equivalent message will be displayed an with filter. With this filter you can change it.lv_folder_text_at_beginning
filter introduced. This filter allow us to add or change the text at beginning of the folder, i.e. the text before the first containing folder.lv_containing_folders
filter introduced. Containing folders of current folder filter.lv_folder_icon_html
filter introduced. Used to filter the html of folder icon.lv_folder_html
filter introduced. Used to filter the html output of printed folder.lv_before_folder
action introduced.lv_after_folder
action introduced.lv_containing_files
filter introduced. Containing files of current folder filter.lv_file_icon_html
filter introduced. Used to set a file icon using php.lv_file_html
filter introduced. Used to filter the html output of printed file.lv_before_file
action introduced.lv_after_file
action introduced.lv_folder_text_at_end
filter introduced. This filter allow us to add or change the text at end of the folder, i.e. the text after the last containing file.lv_folder_was_viewed
action introduced. Do some actions if a folder was accessed/viewed.lv_file_was_viewed
action introduced. Do some actions if a file was accessed/viewed.lv_my_doc_viewer_file_encoded
introduced. With this filter you can determine if the file will be appended to my_doc_viewer
as encoded or not default is true (encoded).lv_mime_types
introduced. If you want to add support for mime types that are not included, use this filter.LV__folder_html
introduced the $attributes parameterLV__file_html
introduced