PATH:
home
/
letacommog
/
metras
/
wp-content
/
plugins
/
wp-lastweets
/
vendor
/
htmlburger
/
carbon-fields
/
core
/
Field
<?php namespace Carbon_Fields\Field; /** * HTML field class. * Allows to create a field that displays any HTML in a container. */ class Html_Field extends Field { /** * HTML contents to display * * @var string */ public $field_html = ''; /** * Set the field HTML or callback that returns the HTML. * * @param string|callable $callback_or_html HTML or callable that returns the HTML. * @return self $this */ public function set_html( $callback_or_html ) { if ( is_callable( $callback_or_html ) ) { $this->field_html = call_user_func( $callback_or_html ); } else { $this->field_html = $callback_or_html; } return $this; } /** * Returns an array that holds the field data, suitable for JSON representation. * * @param bool $load Should the value be loaded from the database or use the value from the current instance. * @return array */ public function to_json( $load ) { $field_data = parent::to_json( $load ); $field_data = array_merge( $field_data, array( 'html' => $this->field_html, 'default_value' => $this->field_html, ) ); return $field_data; } /** * Whether this field is required. * The HTML field is non-required by design. * * @return false */ public function is_required() { return false; } /** * Load the field value. * Skipped, no value to be loaded. */ public function load() { // skip; } /** * Save the field value. * Skipped, no value to be saved. */ public function save() { // skip; } /** * Delete the field value. * Skipped, no value to be deleted. */ public function delete() { // skip; } }
[+]
..
[-] Date_Field.php
[edit]
[-] Checkbox_Field.php
[edit]
[-] Broken_Field.php
[edit]
[-] Sidebar_Field.php
[edit]
[-] Textarea_Field.php
[edit]
[-] Radio_Image_Field.php
[edit]
[-] Text_Field.php
[edit]
[-] Multiselect_Field.php
[edit]
[-] Set_Field.php
[edit]
[-] Radio_Field.php
[edit]
[-] Group_Field.php
[edit]
[-] Header_Scripts_Field.php
[edit]
[-] Oembed_Field.php
[edit]
[-] Scripts_Field.php
[edit]
[-] Hidden_Field.php
[edit]
[-] Field.php
[edit]
[-] Date_Time_Field.php
[edit]
[-] Footer_Scripts_Field.php
[edit]
[-] Time_Field.php
[edit]
[-] Image_Field.php
[edit]
[-] Gravity_Form_Field.php
[edit]
[-] Color_Field.php
[edit]
[-] Complex_Field.php
[edit]
[-] Select_Field.php
[edit]
[-] Predefined_Options_Field.php
[edit]
[-] Rich_Text_Field.php
[edit]
[-] Separator_Field.php
[edit]
[-] File_Field.php
[edit]
[-] Association_Field.php
[edit]
[-] Media_Gallery_Field.php
[edit]
[-] Map_Field.php
[edit]
[-] Html_Field.php
[edit]