dekodeinteraktiv/hogan-image
最新稳定版本:1.2.3
Composer 安装命令:
composer require dekodeinteraktiv/hogan-image
包简介
Image Module for Hogan
README 文档
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-captionandsize-{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.
统计信息
- 总下载量: 9.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2017-12-06