[ Index ]

WordPress Cross Reference

title

Body

[close]

/wp-includes/ -> class-wp-customize-control.php (summary)

(no description)

File Size: 817 lines (20 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 6 classes

WP_Customize_Control:: (10 methods):
  __construct()
  enqueue()
  value()
  to_json()
  check_capabilities()
  maybe_render()
  render()
  get_link()
  link()
  render_content()

WP_Customize_Color_Control:: (4 methods):
  __construct()
  enqueue()
  to_json()
  render_content()

WP_Customize_Upload_Control:: (3 methods):
  enqueue()
  to_json()
  render_content()

WP_Customize_Image_Control:: (9 methods):
  __construct()
  prepare_control()
  to_json()
  render_content()
  add_tab()
  remove_tab()
  tab_upload_new()
  tab_uploaded()
  print_tab_image()

WP_Customize_Background_Image_Control:: (3 methods):
  __construct()
  tab_uploaded()
  tab_default_background()

WP_Customize_Header_Image_Control:: (5 methods):
  __construct()
  prepare_control()
  print_header_image()
  tab_uploaded()
  tab_default_headers()


Class: WP_Customize_Control  - X-Ref

Customize Control Class

__construct( $manager, $id, $args = array()   X-Ref
Constructor.

If $args['settings'] is not defined, use the $id as the setting ID.

param: WP_Customize_Manager $manager
param: string $id
param: array $args

enqueue()   X-Ref
Enqueue control related scripts/styles.


value( $setting_key = 'default' )   X-Ref
Fetch a setting's value.
Grabs the main setting by default.

param: string $setting_key
return: mixed The requested setting's value, if the setting exists.

to_json()   X-Ref
Refresh the parameters passed to the JavaScript via JSON.


check_capabilities()   X-Ref
Check if the theme supports the control and check user capabilities.

return: bool False if theme doesn't support the control or user doesn't have the required permissions, otherwise true.

maybe_render()   X-Ref
Check capabilities and render the control.


render()   X-Ref
Render the control. Renders the control wrapper, then calls $this->render_content().


get_link( $setting_key = 'default' )   X-Ref
Get the data link parameter for a setting.

param: string $setting_key
return: string Data link parameter, if $setting_key is a valid setting, empty string otherwise.

link( $setting_key = 'default' )   X-Ref
Render the data link parameter for a setting

param: string $setting_key

render_content()   X-Ref
Render the control's content.

Allows the content to be overriden without having to rewrite the wrapper.


Class: WP_Customize_Color_Control  - X-Ref

Customize Color Control Class

__construct( $manager, $id, $args = array()   X-Ref
Constructor.

If $args['settings'] is not defined, use the $id as the setting ID.

param: WP_Customize_Manager $manager
param: string $id
param: array $args

enqueue()   X-Ref
Enqueue control related scripts/styles.


to_json()   X-Ref
Refresh the parameters passed to the JavaScript via JSON.


render_content()   X-Ref
Render the control's content.


Class: WP_Customize_Upload_Control  - X-Ref

Customize Upload Control Class

enqueue()   X-Ref
Enqueue control related scripts/styles.


to_json()   X-Ref
Refresh the parameters passed to the JavaScript via JSON.


render_content()   X-Ref
Render the control's content.


Class: WP_Customize_Image_Control  - X-Ref

Customize Image Control Class

__construct( $manager, $id, $args )   X-Ref
Constructor.

If $args['settings'] is not defined, use the $id as the setting ID.

param: WP_Customize_Manager $manager
param: string $id
param: array $args

prepare_control()   X-Ref
Prepares the control.

If no tabs exist, removes the control from the manager.


to_json()   X-Ref
Refresh the parameters passed to the JavaScript via JSON.


render_content()   X-Ref
Render the control's content.


add_tab( $id, $label, $callback )   X-Ref
Add a tab to the control.

param: string $id
param: string $label
param: mixed $callback

remove_tab( $id )   X-Ref
Remove a tab from the control.

param: string $id

tab_upload_new()   X-Ref


tab_uploaded()   X-Ref


print_tab_image( $url, $thumbnail_url = null )   X-Ref

param: string $url
param: string $thumbnail_url

Class: WP_Customize_Background_Image_Control  - X-Ref

Customize Background Image Control Class

__construct( $manager )   X-Ref
Constructor.

param: WP_Customize_Manager $manager

tab_uploaded()   X-Ref


tab_default_background()   X-Ref


Class: WP_Customize_Header_Image_Control  - X-Ref

Customize Header Image Control Class

__construct( $manager )   X-Ref
Constructor.

param: WP_Customize_Manager $manager

prepare_control()   X-Ref
Prepares the control.

If no tabs exist, removes the control from the manager.


print_header_image( $choice, $header )   X-Ref

param: mixed $choice Which header image to select. (@see Custom_Image_Header::get_header_image() )
param: array $header

tab_uploaded()   X-Ref


tab_default_headers()   X-Ref




Generated: Tue Mar 25 01:41:18 2014 WordPress honlapkészítés: online1.hu