PHP Class AMP_Post_Template, amp-wp

Mostrar archivo Open project: Automattic/amp-wp Class Usage Examples

Public Methods

Method Description
__construct ( $post_id )
get ( $property, $default = null )
get_customizer_setting ( $name, $default = null )
load ( )
load_parts ( $templates )

Private Methods

Method Description
add_data ( $data )
add_data_by_key ( $key, $value )
build_customizer_settings ( )
build_html_tag_attributes ( )
build_post_commments_data ( )
build_post_content ( )
build_post_data ( )
build_post_featured_image ( )
get_post_image_metadata ( ) Grabs featured image or the first attached image for the post
get_template_path ( $template )
is_valid_template ( $template )
locate_template ( $file )
merge_data_for_key ( $key, $value )
verify_and_include ( $file, $template_type )

Method Details

__construct() public method

public __construct ( $post_id )

get() public method

public get ( $property, $default = null )

get_customizer_setting() public method

public get_customizer_setting ( $name, $default = null )

load() public method

public load ( )

load_parts() public method

public load_parts ( $templates )