Linux 软件免费装
Banner图

Random File

开发者 coffee2code
更新时间 2023年8月23日 02:16
捐献地址: 去捐款
PHP版本: 2.8 及以上
WordPress版本: 6.3
版权: GPLv2 or later
版权网址: 版权信息

标签

random file coffee2code

下载

1.5.2 1.6 1.6.1 1.6.2 1.7 1.7.1 1.8 1.8.1 1.8.2 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.5.1 1.8.11 1.8.12 1.5 1.0 1.8.10 1.8.3

详情介绍:

This plugin provides template tags that allow you to retrieve the name, path (relative or absolute), url, or fully marked-up link to a randomly chosen file or files in a specified directory. Arguments to the functions permit you to specify limit what file(s) can be randomly selected based on a given set of file extensions. You can also explicitly specify files that should not be randomly selected. This functionality can be useful for displaying random images/logos or including text from random files onto your site (writing excerpts, multi-line quotes, etc). Other ideas: random ads, random CSS files, random theme template selection. Notes: Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

安装:

  1. Install via the built-in WordPress plugin installer. Or download and unzip random-file.zip inside the plugins directory for your site (typically wp-content/plugins/)
  2. Activate the plugin through the 'Plugins' admin menu in WordPress
  3. Make use of the c2c_random_file() or c2c_random_files() template function in your code or template (see examples below).

升级注意事项:

1.8.12 Trivial update: added DEVELOPER-DOCS.md, noted compatibility through WP 6.3+, and updated copyright date (2023) 1.8.11 Trivial update: noted compatibility through WP 5.8+ and minor reorganization and tweaks to unit tests 1.8.10 Trivial update: noted compatibility through WP 5.7+ and updated copyright date (2021). 1.8.9 Trivial update: Restructured unit test file structure, added a TODO.md file, and noted compatibility through WP 5.5+. 1.8.8 Trivial update: Updated a few URLs to be HTTPS and noted compatibility through WP 5.4+. 1.8.7 Trivial update: noted compatibility through WP 5.3+ and updated copyright date (2020) 1.8.6 Trivial update: modernized unit tests, noted compatibility through WP 5.2+ 1.8.5 Trivial update: noted compatibility through WP 5.1+, updated copyright date (2019) 1.8.4 Trivial update: noted compatibility through WP 4.9+, added README.md for GitHub, and updated copyright date (2018) 1.8.3 Recommended minor update: fixed inccorect name of variable, noted compatibility through WP 4.7+, updated copyright date 1.8.2 Trivial update: noted compatibility through WP 4.4+ and updated copyright date (2016) 1.8.1 Trivial update: noted compatibility through WP 4.1+ and updated copyright date (2015) 1.8 Recommended minor update: fixed bug which prevented specified multiple file extensions from working; added unit tests; noted compatibility through WP 3.8+ 1.7.1 Trivial update: noted compatibility through WP 3.5+ 1.7 Recommended minor update: improved compatibility and data sanitization; noted compatibility through WP 3.4+; explicitly stated license 1.6.2 Trivial update: noted compatibility through WP 3.3+ 1.6.1 Trivial update: noted compatibility through WP 3.2+ 1.6 Feature update. Highlights: added c2c_random_files() to retrieve array of random unique files; added hooks to allow customizations; verified WP 3.0 compatibility.

常见问题:

Does this plugin do dynamic random rotation within a loaded page (i.e. randomly rotating images within a loaded page)?

No. This plugin only selects a random file when the page is loaded. Once loaded, it does not currently add any dynamic functionality to automatically retrieve another random file on its own.

Does this plugin include unit tests?

Yes.

更新日志:

1.8.12 (2023-05-21) 1.8.11 (2021-09-18) 1.8.10 (2021-04-23)