PHP Class SIS_Admin_Post, Simple-image-sizes

Datei anzeigen Open project: Rahe/Simple-image-sizes

Public Methods

Method Description
__construct ( )
a_featured_rebuild ( ) Rebuild the image size of a content featured image
a_thumbnail_rebuild ( ) : void Rebuild the image
add_actions_list ( $actions, WP_Post $object ) : string Add action in media row
add_field_regenerate ( array $fields, object $post ) : array Get a thumbnail name from its slug
add_thumbnail_name ( array $sizes ) : array Add the thumbnail name in the post insertion, based on new WP filter
admin_post_thumbnail_html ( $content, $ID ) : string Generate HTML on the featured image size
enqueue_assets ( string $hook_suffix = '' ) Register javascripts and css.
sizes_in_form ( array $form_fields, object $post ) : string Add the custom sizes to the image sizes in article edition

Private Methods

Method Description
_get_thumbnail_name ( string $thumbnailSlug = '' ) : array Get a thumbnail name from its slug

Method Details

__construct() public method

public __construct ( )

a_thumbnail_rebuild() public static method

Rebuild the image
Author: Nicolas Juen
public static a_thumbnail_rebuild ( ) : void
return void

add_actions_list() public static method

Add action in media row
Since: 2.2
Author: Nicolas Juen
public static add_actions_list ( $actions, WP_Post $object ) : string
$actions : array of actions and content to display
$object WP_Post
return string $actions

add_field_regenerate() public static method

Get a thumbnail name from its slug
Since: 2.3.1
Author: Nicolas Juen
public static add_field_regenerate ( array $fields, object $post ) : array
$fields array : the fields of the media
$post object : the post object
return array

add_thumbnail_name() public static method

Add the thumbnail name in the post insertion, based on new WP filter
Since: 2.3
Author: Nicolas Juen
Author: radeno based on this post : http://www.wpmayor.com/wordpress-hacks/how-to-add-custom-image-sizes-to-wordpress-uploader/
public static add_thumbnail_name ( array $sizes ) : array
$sizes array
return array

admin_post_thumbnail_html() public static method

Generate HTML on the featured image size
public static admin_post_thumbnail_html ( $content, $ID ) : string
$content
$ID
return string

enqueue_assets() public static method

Register javascripts and css.
Author: Nicolas Juen
public static enqueue_assets ( string $hook_suffix = '' )
$hook_suffix string

sizes_in_form() public static method

Add the custom sizes to the image sizes in article edition
Author: Nicolas Juen
Author: Additional Image Sizes (zui)
public static sizes_in_form ( array $form_fields, object $post ) : string
$form_fields array
$post object
return string