PHP 클래스 Fragen\GitHub_Updater\Theme

Class Theme
저자: Andy Fragen
저자: Seth Carstens
저자: UCF Web Communications
상속: extends Base
파일 보기 프로젝트 열기: afragen/github-updater

보호된 프로퍼티들

프로퍼티 타입 설명
$tag number Rollback variable.

공개 메소드들

메소드 설명
__construct ( ) Constructor.
customize_theme_update_html ( $prepared_themes ) : mixed Call theme messaging for single site installation.
get_remote_theme_meta ( ) Get remote theme meta to populate $config theme objects.
get_theme_configs ( ) : array Returns an array of configurations for the known themes.
instance ( ) : object The Theme object can be created/obtained via this method - this prevents unnecessary work in rebuilding the object and querying to construct a list of categories, etc.
load_pre_filters ( ) Load pre-update filters.
multisite_branch_switcher ( $theme_key, $theme ) : boolean | void Create branch switcher row for multisite installation.
pre_set_site_transient_update_themes ( array $transient ) : array | object Hook into pre_set_site_transient_update_themes to update.
remove_after_theme_row ( $theme_key, $theme ) Remove default after_theme_row_$stylesheet.
themes_api ( $false, $action, $response ) : mixed Put changelog in themes_api, return WP.org data as appropriate.
wp_theme_update_row ( $theme_key, $theme ) Add custom theme update row, from /wp-admin/includes/update.php Display update details or rollback links for multisite installation.

보호된 메소드들

메소드 설명
append_theme_actions_content ( object $theme ) : string Create theme update messaging for single site installation.
get_theme_meta ( ) : array Reads in WP_Theme class of each theme.
single_install_switcher ( object $theme ) : string Display rollback/branch switcher for single site installation.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

append_theme_actions_content() 보호된 메소드

Create theme update messaging for single site installation.
저자: Seth Carstens
protected append_theme_actions_content ( object $theme ) : string
$theme object
리턴 string (content buffer)

customize_theme_update_html() 공개 메소드

Call theme messaging for single site installation.
저자: Seth Carstens
public customize_theme_update_html ( $prepared_themes ) : mixed
$prepared_themes
리턴 mixed

get_remote_theme_meta() 공개 메소드

Calls to remote APIs to get data.

get_theme_configs() 공개 메소드

Returns an array of configurations for the known themes.
public get_theme_configs ( ) : array
리턴 array

get_theme_meta() 보호된 메소드

Populates variable array.
protected get_theme_meta ( ) : array
리턴 array Indexed array of associative arrays of theme details.

instance() 공개 정적인 메소드

The Theme object can be created/obtained via this method - this prevents unnecessary work in rebuilding the object and querying to construct a list of categories, etc.
public static instance ( ) : object
리턴 object $instance Theme

load_pre_filters() 공개 메소드

Load pre-update filters.
public load_pre_filters ( )

multisite_branch_switcher() 공개 메소드

Create branch switcher row for multisite installation.
public multisite_branch_switcher ( $theme_key, $theme ) : boolean | void
$theme_key
$theme
리턴 boolean | void

pre_set_site_transient_update_themes() 공개 메소드

Finds newest tag and compares to current tag.
public pre_set_site_transient_update_themes ( array $transient ) : array | object
$transient array
리턴 array | object

remove_after_theme_row() 공개 메소드

Remove default after_theme_row_$stylesheet.
저자: @grappler
public remove_after_theme_row ( $theme_key, $theme )
$theme_key
$theme

single_install_switcher() 보호된 메소드

Display rollback/branch switcher for single site installation.
protected single_install_switcher ( object $theme ) : string
$theme object
리턴 string

themes_api() 공개 메소드

Put changelog in themes_api, return WP.org data as appropriate.
public themes_api ( $false, $action, $response ) : mixed
$false
$action
$response
리턴 mixed

wp_theme_update_row() 공개 메소드

Add custom theme update row, from /wp-admin/includes/update.php Display update details or rollback links for multisite installation.
저자: Seth Carstens
public wp_theme_update_row ( $theme_key, $theme )
$theme_key
$theme

프로퍼티 상세

$tag 보호되어 있는 프로퍼티

Rollback variable.
protected number $tag
리턴 number