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

Kuvat.fi embed

外掛說明

Overview

This plugin is for embedding a folders, photos or videos from the Kuvat.fi photo sharing service.

Kuvat.fi creates a great looking photo site from your photos. It’s easy to use and you can use it with your web browser, tablets and mobile devices. We’re based in Finland and have been running for 15 years.

Usage example

[kuvat width=1 height=1 bgcolor=0 thumbstrip=0 captions=0]https://demo.kuvat.fi/kuvat/[/kuvat]

Parameters

  • width: The desired width of the embedded view. Required. Possible values:
    • 1: Responsive width that fills the entire available horizontal space
    • A width in pixels (eg. 760)
  • height: The desired height of the embedded view. Required. Possible values
    • 1: Responsive height determined by the most used aspect ratio in the embedded folder. Requires width=1.
    • A height in pixels (eg. 420)
  • bgcolor: This sets the background color and theme for the browser. Possible values:
    • 0: Dark gray (default)
    • 1: Black
    • 2: Light gray
    • A hex string (eg. #e8e8e8)
  • thumbstrip: If set to 1, a film strip of the other photos in the same folder is shown. Possible values:
    • 0: Disabled (default)
    • 1: Enabled
  • captions: If set to 1, the caption of the current photo is displayed if the photo has one. By default, this will show multiple lines of text on a shaded background over the image. Possible values:
    • 0: Disabled (default)
    • 1: Enabled
  • captionbg: If set, caption will change to a single line of text on a background color that you can define. Possible values:
    • A hex string (eg. #0066c9)
    • An rgba color (eg. rgba(0,102,201,0.8))
  • captiontext: This will change the text color when used in combination with captionbg. The default text color is white. Possible values:
    • A hex string (eg. #ffffff)
    • An rgba color (eg. rgba(255,255,255,0.8))

螢幕擷圖

  • This is the basic embedded view with a dark theme and thumbnail strip enabled below the current photo.

安裝方式

  1. Upload kuvatfi.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

Where can I learn more about this service?

For more information, please visit our home page.

使用者評論

2017 年 2 月 8 日
Activation fails: Parse error: syntax error, unexpected ‘[‘ in /home/XXXX/public_html/XXXXX/wp-content/plugins/kuvatfi-embed/kuvatfi.php on line 15
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Kuvat.fi embed〉的開發相關工作。

參與者

將〈Kuvat.fi embed〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.1.2

  • Updated readme

1.1.1

  • Updated readme

1.1

  • Added support for responsive dimensions for the embedded view
    • Enable with width=1 and height=1 arguments
  • Added support for captions
    • Enable with the captions argument (eg. [kuvat captions=1]https://demo.kuvat.fi/kuvat/[/kuvat])
    • Change the appearance of the caption with captionbg and captiontext arguments
  • Fixed an error on old PHP versions
  • Removed a conflict with other oembed providers

1.0

  • Initial release.