Linux 软件免费装

Yet Another Random Quote

开发者 scarpenter
ChristianB
franky999
更新时间 2011年1月8日 22:17
捐献地址: 去捐款
PHP版本: 2.5 及以上
WordPress版本: 3.0.1

标签

random quote random quotes

下载

2.5.0 3.0.2 3.0.3 3.1

详情介绍:

This plugin will let you display a random quote in your wordpress blog. You have to add your own assortment of quotes to choose from the admin section of your blog. You can choose where to display the quotes using the widget or the php function yarq_display() in your template. New in version 3.1, there is the yarq_display_all function: yarq_display_all($order_by = 'id', $asc = true, $format = '') Which displays all quotes in a list. The first parameter takes id, author, source, or quote. The second is for ascending or descending order, and the third lets you override the format specified in admin options. You might call from your theme/template file like so, supplying the <ul> or <ol> wrapping tags yourself: <?php if ( function_exists('yarq_display_all') ) { echo '<h2>All Quotes</h2>'; echo "<ul>\n"; yarq_display_all('id', false); echo "</ul>\n"; } Which can be styled as desired. Alternating <li> items, starting with the first, will use the class "yarq-alt". (<li class="yarq-alt">) Much more at: http://www.movingtofreedom.org/2010/07/11/wordpress-plugin-yarq-v3-yet-another-random-quote/

安装:

  1. Upload yarq.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Add the yarq-widget to the prefered position on your sidebar or place <?php yarq_display(); ?> in your template

升级注意事项:

3.1 New function, "yarq_display_all()", and the widget's title can now be set (or blank). 3.0.3 No need to upgrade unless you want to have the option of turning off the autoformat feature.

更新日志:

3.1 (11/19/10) 3.0.3 (10/10/10)