PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
the-grid
/
includes
/
metabox
/
fields
<?php // Exit if accessed directly if (!defined('ABSPATH')) { exit; } if ( ! class_exists( 'TOMB_Color_Field' ) ) { class TOMB_Color_Field extends TOMB_Fields { /** * Enqueue scripts and styles * * @return void */ static function admin_enqueue_scripts() { // This function loads in the required scripts. wp_enqueue_script('wp-color-picker'); wp_enqueue_style('wp-color-picker'); } /** * Get field HTML * * @param mixed $meta * @param array $field * @return string * * @todo add support for std */ static function html( $meta, $field ) { // Set meta as default value if meta is empty. if(empty($meta)) { $meta = $field['std']; } if(!isset($field['rgba'])) { $field['rgba'] = false; } $output = '<input class="tomb-colorpicker" name="'.$field['id'].'" data-alpha="'.$field['rgba'].'" type="text" id="'.$field['id'].'" value="'.$meta.'">'; return $output; } } }
[+]
..
[-] editor.php
[edit]
[-] select.php
[edit]
[-] section_start.php
[edit]
[-] url.php
[edit]
[-] code.php
[edit]
[-] checkbox_list.php
[edit]
[-] image.php
[edit]
[-] multiselect.php
[edit]
[-] break.php
[edit]
[-] number.php
[edit]
[-] gallery.php
[edit]
[-] image_id.php
[edit]
[-] slider.php
[edit]
[-] info_box.php
[edit]
[-] text.php
[edit]
[-] checkbox.php
[edit]
[-] color.php
[edit]
[-] section_end.php
[edit]
[-] title.php
[edit]
[-] hidden.php
[edit]
[-] upload.php
[edit]
[-] email.php
[edit]
[-] radio.php
[edit]
[-] textarea.php
[edit]
[-] custom.php
[edit]
[-] button.php
[edit]
[-] image_select.php
[edit]