skipv1_0_0color

skip_color( $name, $args = array() );
.

Description

skip\v1_0_0\color( (string) $name, (constant) $label = FALSE, (array) $args = array() ); 

Adding a jQuery UI color field.

Default UsageThis will create an automated saved field with a jQueryui Colorpicker.

Parameters

$name // (string) (required) The name of the field.
$args // (array/string) (optional) Values for further settings.

$args Settings

  • id (string) ID if the HTML Element.
  • label (string) Label for Element.
  • default (string) Default Value if no Value is set before.
  • classes (string) Name of CSS Classes which will be inserted into HTML seperated by empty space.
  • before_element (string) Content before the element.
  • after_element (string) Content after the element.

Example

Creating a labeled Colorfield in an automatic saved form.

skip_form_start( myformname  );

$args = array( 'id' = myelementid,, 'label' => Background Color ); skip_color( backgroundcolor, $args );

skip_form_end();

Getting back the saved data.

$city = skip_value( myformname , backgroundcolor );

Parameters (3)

0. $name (string)
Name of Color field.
1. $label — Optional. (constant) => FALSE
List of Arguments.
2. $args — Optional. (array) => array()
The args.

Usage

  1. if ( !function_exists( 'skip\v1_0_0\color' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'facebook-fanpage-import/includes/skip/elements/forms/color.php'; 
  3.  
  4. // Name of Color field. 
  5. $name = ''; 
  6.  
  7. // List of Arguments. 
  8. $label = FALSE; 
  9.  
  10. // The args. 
  11. $args = array(); 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = skip\v1_0_0\color($name, $label, $args); 
  15.  

Defined (1)

The function is defined in the following location(s).

/includes/skip/elements/forms/color.php