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

SparkEmbed

外掛說明

SparkChart Embed — aka SparkEmbed — is a lightweight module that allows Spark Chart (https://www.sparkchart.com/) users to easily embed satellite surveys in a WordPress post or page using a configurable shortcode. The authors of the plugin are not related to SparkChart.com, nor is this an endorsement of the product — and vice versa.

The module can be disabled from the settings page.
Important: The module is disabled by default. If you leave the Enabled box unchecked, the plugin will have no effect at all.

Pattern: [spark]https://survey.sparkchart.com/start/{id}/[/spark]
Shortcodes with the pattern above will display the referenced Spark Chart satellite survey in an iframe.

Shortcode configuration:

The following attributes can be used to configure the display of the iframe and/or its wrapper:

  • class
    • A CSS class that will be applied to the outer wrapper (div). Defaults to none.
    • Example: [spark class=”my_awesome_class”]https://survey.sparkchart.com/start/{id}/[/spark]
  • width
    • The width of the iframe. If no unit is provided, px will be used. Defaults to 100%.
    • Example: [spark width=”88%”]https://survey.sparkchart.com/start/{id}/[/spark]
  • height
    • The height of the iframe. By default, the height of the iframe element will be set to 90% of the height of the current viewport, set through JavaScript. Setting a height value will override that behavior. If no unit is provided, px will be used. Defaults to none.
    • Example: [spark height=”1200″]https://survey.sparkchart.com/start/{id}/[/spark]
  • border_width, border_color, border_style, background_color, padding
    • CSS properties aliases applied to the outer frame. This allows users to specify a border and other styling attributes. Note that it is recommended to use the class attribute and write your own CSS rule instead. Also note the underscore character replacing the hyphen in the original CSS property name.
    • Example: [spark border_width=”1″ border_color=”red”]https://survey.sparkchart.com/start/{id}/[/spark]

Roadmap

  • Allow custom shortcode identifier
  • Add lightbox option

Donations

None needed.

螢幕擷圖

  • The configuration screen.

安裝方式

Install and configure the plugin as needed in the SparkEmbed settings page: /wp-admin/admin.php?page=sparkembed_settings.

Note that the plugin is not enabled by default. Check the Enabled box in the settings page to turn it on.

General information about installing WordPress plugins can be found here

常見問題集

Is it official?

No, the authors have no affiliation with Spark Chart. We use Spark Chart for customer and market surveys internally, but we do not promote or profit in any way from its usage.

Is it really free?

Yes, this plugin is completely free.

I found a bug/I need a feature

Please leave a comment on the plugin’s official page and we will address it as soon as possible.

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Initial release.