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

Calder SVG

外掛說明

Animate prepared SVG drawing as a mobile picture. Uses Anime.js and Vivus.js

Examples:

Shortcode

Add desired prepared (see example) images in wordpress standard uploads folder (on multisite uploads/sites/#/), and add shortcode to any page, specifing svg folder to use and animate:

[caldersvg svgs="wp-content/my/folder/containing/svg/files/"]

or

[caldersvg svgs="/var/www/mysite/wp-content/my/folder/containing/svg/files/"]

with all your .svg files in last folder.

The svgs parameter DOES NOT contain a URL (starting by http://), but a relative path on the server.

You can test with default demo files, included inside plugin (under calder-svg/svg/), but you have to copy them under your uploads wordpress folder before, and use something like shortcode:

[caldersvg svgs="../../svg/musicians/"]

SVG file example

If using Inkscape to create the SVG files, please save your files as Optimized SVG, then check that your file is containing a stroke and no fill for each path (else you could experience strange displays).
Like:

fill="none" stroke-width="1" stroke="#cecece"


<svg id="svg7876" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 571.25 650" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <g id="g8426">
        <path id="path8440" fill="none" stroke-width="1" stroke="#cecece" d="m0 596.79c0-44.452 0.29402-53.508 1.7857-55 0.9822-0.99

螢幕擷圖

  • Maria Callas
  • Bob Marley
  • Franz Liszt
  • Joe Cocker
  • Amy Winehouse
  • Wolfgang Amadeus Mozart
  • Rod Stewart

安裝方式

Easy

  1. Search Calder SVG via plugins > add new.
  2. Find the plugin listed and click activate.
  3. Use the Shortcodes

Shortcode

Add desired prepared (see example) images in wordpress standard uploads folder (on multisite uploads/sites/#/), and add shortcode to any page, specifing svg folder to use and animate:

[caldersvg svgs="wp-content/my/folder/containing/svg/files/"]

or
[caldersvg svgs=”/var/www/mysite/wp-content/my/folder/containing/svg/files/”]

with all your .svg files in last folder.

The svgs parameter DOES NOT contain a URL (starting by http://), but a relative path on the server.

You can test with default demo files, included inside plugin (under calder-svg/svg/), but you have to copy them under your uploads wordpress folder before, and use something like shortcode:
[caldersvg svgs=”../../svg/musicians/”]

SVG file example

If using Inkscape to create the SVG files, please save your files as Optimized SVG, then check that your file is containing a stroke and no fill for each path (else you could experience strange displays).
Like:
fill=”none” stroke-width=”1″ stroke=”#cecece”

<svg id="svg7876" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 571.25 650" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <g id="g8426">
        <path id="path8440" fill="none" stroke-width="1" stroke="#cecece" d="m0 596.79c0-44.452 0.29402-53.508 1.7857-55 0.9822-0.99

Examples

常見問題集

Installation Instructions

Easy

  1. Search Calder SVG via plugins > add new.
  2. Find the plugin listed and click activate.
  3. Use the Shortcodes

Shortcode

Add desired prepared (see example) images in wordpress standard uploads folder (on multisite uploads/sites/#/), and add shortcode to any page, specifing svg folder to use and animate:

[caldersvg svgs="wp-content/my/folder/containing/svg/files/"]

or
[caldersvg svgs=”/var/www/mysite/wp-content/my/folder/containing/svg/files/”]

with all your .svg files in last folder.

The svgs parameter DOES NOT contain a URL (starting by http://), but a relative path on the server.

You can test with default demo files, included inside plugin (under calder-svg/svg/), but you have to copy them under your uploads wordpress folder before, and use something like shortcode:
[caldersvg svgs=”../../svg/musicians/”]

SVG file example

If using Inkscape to create the SVG files, please save your files as Optimized SVG, then check that your file is containing a stroke and no fill for each path (else you could experience strange displays).
Like:
fill=”none” stroke-width=”1″ stroke=”#cecece”

<svg id="svg7876" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 571.25 650" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <g id="g8426">
        <path id="path8440" fill="none" stroke-width="1" stroke="#cecece" d="m0 596.79c0-44.452 0.29402-53.508 1.7857-55 0.9822-0.99

Examples

使用者評論

閱讀全部 1 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

2.1 – bug fix

2.0 – complete refactor, be carrefully path changed in shortcode

1.7 – Vivus 0.4.0

1.6 – Animejs 2.0

1.3 – More explanations after feedback

1.0 – First stable release.