Changeset 2531277
- Timestamp:
- 05/13/2021 03:48:52 PM (5 years ago)
- Location:
- simple-ftp-directory-lister/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
simple-ftp-directory-lister.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-ftp-directory-lister/trunk/readme.txt
r2376663 r2531277 4 4 Tags: FTP lister, directory lister, file lister, show files from ftp 5 5 Requires at least: 5.1 6 Tested up to: 5. 46 Tested up to: 5.7 7 7 Requires PHP: 7.2 8 Stable tag: 1.4. 38 Stable tag: 1.4.4 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 62 62 63 63 Yes, you can define the text in CSS. You have to get the language from the page somewhere. For example if your theme writes language class to body tag the css will be: body.en_GB .sdfl-no-files-available-wrapper::after {content: "No files available at the moment.";} 64 65 = Can I completely change the styles your plugin is using? = 66 67 Yes, you can. To use your styles you need to create a folder called simple-ftp-directory-lister within your theme directory with a subfolder called css. From now on all the styles of the plugin will be loaded from this folder. Be aware that you should be using child theme in order to keep any theme changes after you update the theme. There are 5 different css files that controls styles. You need to copy these files from the plugin folder to the css folder you just created. Now change anything you want in these files, the plugin will be loading these and ignore its own css files. Example where you need to create the folder: /wp-content/themes/themeyouareusing/simple-ftp-directory-lister/css/" 64 68 65 69 == Screenshots == … … 70 74 71 75 == Changelog == 76 = 1.4.4 = 77 Added possibility to overtake styles. 72 78 = 1.4.3 = 73 79 Updated example of upload directory. -
simple-ftp-directory-lister/trunk/simple-ftp-directory-lister.php
r2376663 r2531277 3 3 * Plugin Name: Simple FTP Directory Lister 4 4 * Description: Choose folder from FTP - WP UPLOAD DIRECTORY - and display all its files and subfolders. Easy integration. 5 * Version: 1.4. 35 * Version: 1.4.4 6 6 * Requires at least: 5.2 7 7 * Requires PHP: 7.2 … … 176 176 <style> 177 177 <?php 178 $pathToStyles = "assets/css"; 179 $pathToStylesThemeOverride = get_stylesheet_directory() . "/simple-ftp-directory-lister"; 180 if (is_dir( $pathToStylesThemeOverride )){ 181 $pathToStyles = $pathToStylesThemeOverride."/css"; 182 } 183 178 184 179 185 /*load styles */ … … 182 188 183 189 echo "@media (min-width: ".($options_array["mobile_version_breakpoint"]+1)."px) {"; 184 include "assets/css/simple-ftp-directory-lister-horizontal.css";190 include $pathToStyles."/simple-ftp-directory-lister-horizontal.css"; 185 191 echo '}'; 186 192 187 193 echo "@media (max-width: ".$options_array["mobile_version_breakpoint"]."px) {"; 188 include "assets/css/simple-ftp-directory-lister-horizontal-mobile.css";194 include $pathToStyles."/simple-ftp-directory-lister-horizontal-mobile.css"; 189 195 echo '}'; 190 196 } 191 197 else { 192 include "assets/css/simple-ftp-directory-lister-vertical.css";193 } 194 195 include "assets/css/simple-ftp-directory-lister.css";198 include $pathToStyles."/simple-ftp-directory-lister-vertical.css"; 199 } 200 201 include $pathToStyles."/simple-ftp-directory-lister.css"; 196 202 197 203 echo "#mobile-indicator { … … 204 210 } 205 211 }"; 206 include "assets/css/simple-ftp-directory-lister-icons.css";212 include $pathToStyles."/simple-ftp-directory-lister-icons.css"; 207 213 ?> 208 214 </style>
Note: See TracChangeset
for help on using the changeset viewer.