[ Index ]

WordPress Cross Reference

title

Body

[close]

/wp-admin/ -> custom-header.php (summary)

The custom header image script.

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

Defines 1 class

Custom_Image_Header:: (26 methods):
  __construct()
  init()
  help()
  step()
  js_includes()
  css_includes()
  take_action()
  process_default_headers()
  show_header_selector()
  js()
  js_1()
  pickColor()
  toggle_text()
  js_2()
  onEndCrop()
  step_1()
  step_2()
  step_2_manage_upload()
  step_3()
  finished()
  admin_page()
  attachment_fields_to_edit()
  filter_upload_tabs()
  set_header_image()
  remove_header_image()
  reset_header_image()


Class: Custom_Image_Header  - X-Ref

The custom header image class.

__construct($admin_header_callback, $admin_image_div_callback = '')   X-Ref
Constructor - Register administration header callback.

param: callback $admin_header_callback
param: callback $admin_image_div_callback Optional custom image div output callback.
return: Custom_Image_Header

init()   X-Ref
Set up the hooks for the Custom Header admin page.


help()   X-Ref
Adds contextual help.


step()   X-Ref
Get the current step.

return: int Current step

js_includes()   X-Ref
Set up the enqueue for the JavaScript files.


css_includes()   X-Ref
Set up the enqueue for the CSS files


take_action()   X-Ref
Execute custom header modification.


process_default_headers()   X-Ref
Process the default headers


show_header_selector( $type = 'default' )   X-Ref
Display UI for selecting one of several default headers.

Show the random image option if this theme has multiple header images.
Random image option is on by default if no header has been set.


js()   X-Ref
Execute Javascript depending on step.


js_1()   X-Ref
Display Javascript based on Step 1 and 3.


pickColor(color)   X-Ref
No description

toggle_text()   X-Ref
No description

js_2()   X-Ref
Display Javascript based on Step 2.


onEndCrop( coords )   X-Ref
No description

step_1()   X-Ref
Display first step of custom header image page.


step_2()   X-Ref
Display second step of custom header image page.


step_2_manage_upload()   X-Ref
Upload the file to be cropped in the second step.


step_3()   X-Ref
Display third step of custom header image page.


finished()   X-Ref
Display last step of custom header image page.


admin_page()   X-Ref
Display the page based on the current step.


attachment_fields_to_edit( $form_fields )   X-Ref
Unused since 3.5.0.


filter_upload_tabs( $tabs )   X-Ref
Unused since 3.5.0.


set_header_image( $choice )   X-Ref
Choose a header image, selected from existing uploaded and default headers,
or provide an array of uploaded header data (either new, or from media library).

param: mixed $choice Which header image to select. Allows for values of 'random-default-image',

remove_header_image()   X-Ref
Remove a header image.


reset_header_image()   X-Ref
Reset a header image to the default image for the theme.

This method does not do anything if the theme does not have a default header image.




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