| @@ 32-48 (lines=17) @@ | ||
| 29 | * @return n/a |
|
| 30 | */ |
|
| 31 | ||
| 32 | function __construct() { |
|
| 33 | ||
| 34 | // vars |
|
| 35 | $this->name = 'checkbox'; |
|
| 36 | $this->label = __("Checkbox",'acf'); |
|
| 37 | $this->category = 'choice'; |
|
| 38 | $this->defaults = array( |
|
| 39 | 'layout' => 'vertical', |
|
| 40 | 'choices' => array(), |
|
| 41 | 'default_value' => '', |
|
| 42 | 'toggle' => 0 |
|
| 43 | ); |
|
| 44 | ||
| 45 | ||
| 46 | // do not delete! |
|
| 47 | parent::__construct(); |
|
| 48 | } |
|
| 49 | ||
| 50 | ||
| 51 | /* |
|
| @@ 32-51 (lines=20) @@ | ||
| 29 | * @return n/a |
|
| 30 | */ |
|
| 31 | ||
| 32 | function __construct() { |
|
| 33 | ||
| 34 | // vars |
|
| 35 | $this->name = 'date_picker'; |
|
| 36 | $this->label = __("Date Picker",'acf'); |
|
| 37 | $this->category = 'jquery'; |
|
| 38 | $this->defaults = array( |
|
| 39 | 'display_format' => 'd/m/Y', |
|
| 40 | 'return_format' => 'd/m/Y', |
|
| 41 | 'first_day' => 1 |
|
| 42 | ); |
|
| 43 | ||
| 44 | ||
| 45 | // actions |
|
| 46 | add_action('init', array($this, 'init')); |
|
| 47 | ||
| 48 | ||
| 49 | // do not delete! |
|
| 50 | parent::__construct(); |
|
| 51 | } |
|
| 52 | ||
| 53 | ||
| 54 | /* |
|
| @@ 32-48 (lines=17) @@ | ||
| 29 | * @return n/a |
|
| 30 | */ |
|
| 31 | ||
| 32 | function __construct() { |
|
| 33 | ||
| 34 | // vars |
|
| 35 | $this->name = 'message'; |
|
| 36 | $this->label = __("Message",'acf'); |
|
| 37 | $this->category = 'layout'; |
|
| 38 | $this->defaults = array( |
|
| 39 | 'value' => false, // prevents acf_render_fields() from attempting to load value |
|
| 40 | 'message' => '', |
|
| 41 | 'esc_html' => 0, |
|
| 42 | 'new_lines' => 'wpautop', |
|
| 43 | ); |
|
| 44 | ||
| 45 | ||
| 46 | // do not delete! |
|
| 47 | parent::__construct(); |
|
| 48 | } |
|
| 49 | ||
| 50 | ||
| 51 | /* |
|
| @@ 32-50 (lines=19) @@ | ||
| 29 | * @return n/a |
|
| 30 | */ |
|
| 31 | ||
| 32 | function __construct() { |
|
| 33 | ||
| 34 | // vars |
|
| 35 | $this->name = 'radio'; |
|
| 36 | $this->label = __("Radio Button",'acf'); |
|
| 37 | $this->category = 'choice'; |
|
| 38 | $this->defaults = array( |
|
| 39 | 'layout' => 'vertical', |
|
| 40 | 'choices' => array(), |
|
| 41 | 'default_value' => '', |
|
| 42 | 'other_choice' => 0, |
|
| 43 | 'save_other_choice' => 0, |
|
| 44 | ); |
|
| 45 | ||
| 46 | ||
| 47 | // do not delete! |
|
| 48 | parent::__construct(); |
|
| 49 | ||
| 50 | } |
|
| 51 | ||
| 52 | ||
| 53 | /* |
|
| @@ 32-47 (lines=16) @@ | ||
| 29 | * @return n/a |
|
| 30 | */ |
|
| 31 | ||
| 32 | function __construct() { |
|
| 33 | ||
| 34 | // vars |
|
| 35 | $this->name = 'tab'; |
|
| 36 | $this->label = __("Tab",'acf'); |
|
| 37 | $this->category = 'layout'; |
|
| 38 | $this->defaults = array( |
|
| 39 | 'value' => false, // prevents acf_render_fields() from attempting to load value |
|
| 40 | 'placement' => 'top', |
|
| 41 | 'endpoint' => 0 // added in 5.2.8 |
|
| 42 | ); |
|
| 43 | ||
| 44 | ||
| 45 | // do not delete! |
|
| 46 | parent::__construct(); |
|
| 47 | } |
|
| 48 | ||
| 49 | ||
| 50 | /* |
|