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

URL2PNG Screenshots

外掛說明

For now the plugin is very basic but functional. Use this function within your theme files, inside loops or any other place in your code. Check out the FAQ. You can also use other functions of the plugin, just have a look at the code.

Skeleton: $url2png->getScreenshot('Website URL', WIDTH, HEIGHT, IMAGETAG, CLASS)

Example: $url2png->getScreenshot('www.bondero.com', 300, 300)
// Result: http://www.example.com/wp-content/screenshots/...

Example: $url2png->getScreenshot('www.bondero.com', 300, 300, true)
// Result: <img src="http://example.com/wp-content/screenshots/.…" alt="Website URL" class="" width="300" />

Example: $url2png->getScreenshot('www.bondero.com', 300, 300, true, 'alignleft')
// Result: <img src="http://example.com/wp-content/screenshots/.…" alt="Website URL" class="alignleft" width="300" />

安裝方式

The installation is simple:

  1. Upload url2png.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Edit the head of the plugin: API Key, Secret Key, Alternative screenshot directory
  4. Place <?php $url2png->getScreenshot('Website URL', WIDTH, HEIGHT, true); ?> or other functions in your templates

Make sure the screenshots directory is writeable by your webserver

常見問題集

What features are planned in future versions?

  • Make API-Key, Secret Key editable through the admin interface
  • Make screenshots featured images by default / on demand
  • Enable the use of shortcode within posts
  • Any other ideas?

More information

Visit BONDERO

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

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

參與者

將〈URL2PNG Screenshots〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.1

  • Readme Change + Plugin Tuning

1.0

  • Initial plugin: Get screenshot, save it to disk, display it