dekodeinteraktiv / savage-cards
Card setup for Dekode design framework
Installs: 17 209
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 11
Type:wordpress-plugin
pkg:composer/dekodeinteraktiv/savage-cards
Requires
- php: >=7.0
- composer/installers: ~1.2
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