這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

DG Random Image

外掛說明

In my blog I use pages for the gallery. I have a main index Gallery that has children for each year which contain the actual gallery pages.

I wanted to display a random image from this gallery and couldn’t find a plugin to do it so I wrote my own. Usage is really simple:
The following line in your template <?php echo DG_Random_Image(array('title' => 'Gallery', 'class' =>'alignleft', 'x' => 125, 'y' => 125)); ?> or just use the widget.

title is the name of the index page, no pictures will be taken from this page, only from childpages.

class is an optional class to assign to the image

x is the width to assign to the thumbnail

y is the height to assign to the thumbnail

It will output the thumbnail for this picture with the given dimensions, linked to the page it belongs to.

安裝方式

Installation is easy:

  1. Upload DG_Random_Image folder and it’s contents to /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php echo DG_Random_Image(array('title' => 'Gallery', 'class' =>'alignleft', 'x' => 125, 'y' => 125)); ?> in your templates

使用者評論

There are no reviews for this plugin.

參與者及開發者

以下人員參與了開源軟體〈DG Random Image〉的開發相關工作。

參與者

將 DG Random Image 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.01

=
* Cleanup of extra folder
* Even easier to use with a widget

1.0

Initial Release