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

WP Cards

外掛說明

WP Cards uses WordPress widgets and full-page width sidebars to add the ability to drag-and-drop widgetized cards to a website’s homepage. A theme developer just needs to add the included “home.php” file in their theme, or add a call to a dynamic sidebar to their existing home file, and their theme’s homepage will automatically support full-page width cards.

A website admin can reconfigure their site’s homepage on-the-fly without any programming skills or the need to depend on a programmer to make the changes. The admin just needs to log into the WordPress admin area, click-through to the Widgets admin page and drag-and-drop cards into the homepage’s card sidebar. Adding new page elements, moving page elements up and down, or removing page elements can happen in just a matter of seconds, and the website’s homepage is automatically updated.

WP Cards also supports adding a “Jumbotron” card area, Jumbotron cards can be configured to only show up on certain types of pages on the website. For example, a “Search Jumbotron” card can be configured to show up on just the website’s search and 404 pages. Or a “Registration Jumbotron” can be configured to appear just on the website’s homepage.

WP Cards is a framework for adding the card concept to an existing WordPress theme, and is designed to be full extended by other developers. WP Cards comes with a number of already developed cards and can be easily extended by adding new cards to the WP Cards’ “cards” directory, or by adding a “cards” folder to a theme or child theme’s root directory. WP Cards automatically loads all widgets (which use a pre-defined naming convention) from these “cards” directories into the widgets section of the WordPress admin area.

WP Cards’ default cards were built using Bootstrap 3 and are dependent on the Bootstrap 3 CSS and JavaScript files.

WP Cards automatically adds two sidebar areas to the WordPress widgets admin page, these are named “Card Staging Area” and “Home Page Cards”. The “Card Staging Area” is just a sandbox widget area for building out cards before adding them to a live page. The plugin also allows for three additional card areas to be activated from the plugin options page, these include the “Jumbotron Cards” and the “Header/Footer Cards”.

The plugin includes a “WP Cards Template” (wp-cards-template.php) that can be added to any page in order to add a card layout page to a website. An admin would just have to create a new page and set the page template to “WP Cards Template” and a widget area by the same name as the new page is automatically generated in the widget admin area. The admin just needs to drag widgets into the newly created widget area and they will load into the page.

Having cards stored in widget areas generated by the WP Cards plugin enables a website admin to switch out WordPress themes over time, the website’s existing cards will still be available to be used and maintained within a new theme.

螢幕擷圖

  • Example of a “Registration” Jumbotron card
  • Example of a “Search” Jumbotron card
  • Example of a “Banner” Jumbotron card
  • Example of a “Carousel” card
  • Example of a “Spotlight” card
  • Example of a “Category Carousel” card
  • Example of a “Featurette by Category” card
  • Example of a “Latest Post Grid” card

安裝方式

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

使用者評論

2016 年 9 月 3 日
This is a beautiful plugin. I can see designing the entire mobile site with it's layout and design.
閱讀全部 3 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0

  • First upload to WordPress Plugin SVN.

1.1

  • Bug fixes.
  • Added new cards.
  • Added plugin icons.
  • Tested in WP 4.0
  • Added template view selection to the archive-card with views like grid and list that can be overridden in a theme or child theme.

1.2

  • Added a plugin options page, allow user to add Bootstrap files to their theme through the WP-Cards plugin options page.
  • Added supporting CSS to the theme.

1.2.1

  • Released two new views: mini and spotlight.
  • Renamed Card – Archives to Card – Multi View
  • Added more features to Card – Multi View
  • Deleted Card – Recent Posts in favor of using the mini view in Card – Multi View

1.3.1

  • Minor bug fixes.

1.4

  • Added the Owl Carousel as an optional default card.

1.5

  • Added the wp-cards-template.php file to the project. When the WP Cards Template is assigned to a page a new widget area with a corresponding name is dynamically created in the WordPress admin. Any widgets added to that widget area will show up on the page using that custom template.

1.5.1

  • Renamed class to prevent naming collisions.
  • Added plugin options to set/override page container id and content id in template.
  • Added plugin options to enable Jumbotron card area, and Header/Hooter card areas within the custom pages, both options are enabled by default.