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

CM CSS Columns

描述

The plugin offers different shortcodes to use the CSS3 Multiple Columns.
For better user experience it includes an integration into the visual editor. You can enter all attributes with the help of dialogs, so you don’t need to write the shortcodes by hand.

The plugin simply wraps the enclosed content into a container and defines according CSS rules.
The attributes for the shortcodes and examples you can find under “Other Notes”.

All default values can be changed in the settings page. With saving the settings a static CSS file is written and included for better performance.

Shortcodes

Here is the list of shortcodes with the corresponding attributes:

[css_columns]

This is an enclosing shortcode to distribute content into a CSS3 multiple columns layout. As content you can use any complex markup. A div-Tag with CSS classes and default definitions is used to wrap the content. The default values for the attributes can be changed in the settings page of the plugin.

Possible attributes:

Example:

[css_columns gap=30px width=120px count=3 rule_color="#000000" rule_style=solid rule_width=medium]
.... here goes the complex content ....
[/css_columns]

[css_col_span]

This is an enclosing shortcode, which only can be used within the [css_columns] shortcode. You can define content, which spans over multiple columns.

Possible attributes:

  • cols – Specifies how many columns an element should span across. Same values like column-span on w3schools.com
  • tag – Specifies the tag used for wrapping the spanning content, e.g. span, h2, div, …

Example:

[css_col_span cols=2 tag=div]
... here goes the spanning content ....
[/css_col_span]

[css_no_break]

This is an enclosing shortcode, which only can be used within the [css_columns] shortcode. You can define content, which never breaks into different columns. WARNING Feature is not supported by Firefox yet!

Possible attributes:

  • type – Specifies whether a page break is allowed inside a specified element. Same values like page-break-inside on w3schools.com
  • tag – Specifies the tag used for wrapping the non breaking content, e.g. span, h2, div, …

Example:

[css_no_break type=avoid tag=div]
... here goes the non-breakable complex content ....
[/css_no_break]

螢幕截圖

  • settings page to define the default attribute values
  • marked content in Visual Editor and opening the shortcode menu
  • attribute dialog for inserting [css_columns] shortcode in Visual Editor
  • Visual Editor after inserting the shortcode with default values
  • Frontend rendering result

安裝

  1. Extract and upload cm-css-columns.zip to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Use the shortcodes in the editor.

常見問題

Do I have to use shortcodes?

No. You can also use the dialogs to insert the shortcode with visual editor.

評價

閱讀全部2個評價

貢獻者及開發者

“CM CSS Columns” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

CM CSS Columns 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 CM CSS Columns 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.2.1

  • tested in last WordPress versions

1.2.0

  • Added: attributes dialog for [css_col_span]-shortcode
  • Added: attributes dialog for [css_no_break]-shortcode

1.1.1

  • Added: attributes dialog for [css_columns]-shortcode
  • Fixed: generating and including the CSS file with default values

1.1.0

  • Added: menu button in visual editor to wrap selected text with shortcodes

1.0.2

  • Fixed: backend javascript error

1.0.1

  • Fixed: activation/deactivation

1.0

  • initial release version