dekodeinteraktiv / hogan-image
Image Module for Hogan
Installs: 7 892
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 10
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >=7.0
- composer/installers: ~1.2
- dekodeinteraktiv/hogan-core: >=1.1.7
README
Installation
Install the module using Composer composer require dekodeinteraktiv/hogan-image
or simply by downloading this repository and placing it in wp-content/plugins
Available filters
Admin
hogan/module/image/image_size/choices
: Image size choices for image size field. Default (will be merged with return filter return values):
[ 'thumbnail' => _x( 'Small', 'Image Size', 'hogan-image' ), 'medium' => _x( 'Medium', 'Image Size', 'hogan-image' ), 'large' => _x( 'Large', 'Image Size', 'hogan-image' ), ]
hogan/module/image/image_size/constraints
: Image constraints for image size field. Default (will be merged with return filter return values):
[ 'min_width' => '', 'min_height' => '', 'max_width' => '', 'max_height' => '', 'min_size' => '', 'max_size' => '', 'mime_types' => '', ]
hogan/module/image/image_size/preview_size
: Admin preview size of uploaded image. Default: 'medium'hogan/module/image/image_size/library
: Admin media library choice. Default: 'all'
Template
hogan/module/image/figure_classes
: Add classes names to the figure tag. Default:wp-caption
andsize-{thumbnail|medium|large}
.hogan/module/image/figure_caption_classes
: Add classes names to the figure tag. Default:wp-caption-text
.hogan/module/image/image/args
: Attributes for the image markup.hogan/module/image/template/caption
: Filter to change caption content. Defaults to the text inserted in the caption field in admin.- 'hogan/module/image/figure_before_content' : Action hooks to inject content inside the figure element before the image.
- 'hogan/module/image/figure_after_content' : Action hooks to inject content inside the figure element after the image.