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

Attach Files Widget

外掛說明

Simple attachment widget that uses native WordPress upload manager to add files link widgets to your site.

  • Title and Description
  • Attach Existing Files
  • Upload New files
  • Sort files

Documentation

Press “Add attachment” button. Upload or choose exists file. Add title or description for file. Press “Insert Into Widget”.
To remove attachment press “x” link.

At any post or page you can use shortcode [widget_attachments] to display widget content.
Available params:
id – Widget ID (You can see at widget)
limit – How many items can be showed

Example: [widget_attachments id=”3″ limit=5] It will show 5 attached files from Widget ID equal 3;

螢幕擷圖

  • Image Widget admin screen.
  • Wordpress uploader for Widget

安裝方式

Install

  1. In your WordPress administration, go to the Plugins page
  2. Activate the Image Widget plugin and a subpage for the plugin will appear
    in your Manage menu.
  3. Go to the Appearance > Widget page and place the widget in your sidebar in the Design

If you find any bugs or have any ideas, please mail me.

Requirements

  • PHP 5.1 or above
  • WordPress 3.5.1 or above

使用者評論

閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Attach Files Widget〉的開發相關工作。

參與者

將〈Attach Files Widget〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.4

Thx Henrique Vianna

  • Added an extra widget configuration option, that allows the user to choose large, small or no icons (defaults to “no icons”, keeping the original plugin behavior)
  • Added a frontend.css file to the ./assets/css/ folder for styling the icons display (each file name was wrapped in an additional “div” tag, to help with the positioning of the icons)
  • Added filetype icon images to ./assets/images/
  • Some tweaks in the i18n functions
  • Added Brazilian Portuguese (pt_BR) translation files

2.3

  • Fix error with “Featured image”

2.2

  • Add shortcode to display widget content
  • Fix error with plugins like “WP-PAGE-WIDGET”. Widget styles and javascript initialization has been added to “admin_init”

2.1

  • Add files sorting option
  • Fix some bugs

2.0

  • Use new WordPress uploader
  • Add description for files

1.1

  • Fix javascript window.send_to_editor function.

1.0

  • First version