dekodeinteraktiv/savage-cards
最新稳定版本:1.0.16
Composer 安装命令:
composer require dekodeinteraktiv/savage-cards
包简介
Card setup for Dekode design framework
README 文档
README
Hogan + Savage = The Mega Powers!
A plugin for setting up a card view for different content. Intended for use with Hogan Grid.
Also contains a custom post type for custom global cards.
Installation
Install the module using Composer composer require dekodeinteraktiv/savage-cards or simply by downloading this repository and placing it in wp-content/plugins
Available filters
Meta fields filters:
savage/card/meta/image_types- customize dropdown for card image options
//default values
[
'featured' => __( 'Use featured image', 'savage-cards' ),
'alternative' => __( 'Use alternative image', 'savage-cards' ),
'none' => __( 'No image', 'savage-cards' ),
]
savage/card/meta/locations- for adding locations to the ACF field group.savage/card/field_group/fields_before- add new fields to group before existing fields.savage/card/field_group/fields_after- add new fields to group after existing fields.savage/card/default_card_post_types- post types that should have the default cardsavage/card/default_card- default card typesavage/card/default_components- default components used in the templatessavage/card/components/savage_link/text- link text for screenreaderssavage/card/components/savage_link/teaser- link text (or button) on cardsavage/card/components/label/auto- set rules for auto-label on cards
Custom card filters
savage/card/custom/bg_color_options- filter for adding themes's color palette to card bg_color options.savage/card/custom/layouts- add layouts to custom card flexible content areasavage/card/custom/layout/editor/allow_media_upload- allow media button in editor layoutsavage/card/custom/layout/editor/toolbar- customize toolbar for editor layoutsavage/card/custom/layout/editor/tabs- customize tabs for editor layout
Available actions
savage/card/template/init- Runs before template markupsavage/card/template/header/{ template name }- top section section of templatesavage/card/template/body/{ template name }- middle section of templatesavage/card/template/footer/{ template name }- bottom section of templatesavage/card/custom/body/layout_content- content of custom card if layouts are used
统计信息
- 总下载量: 17.56k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2017-12-07