public function print_form_field($fld, $type, $options = array(), $args = array()) { print Genesis_Club_Utils::form_field($this->get_field_id($fld), $this->get_field_name($fld), $this->tooltips->tip($fld), isset($this->instance[$fld]) ? $this->instance[$fld] : false, $type, $options, $args); }
function form_field($id, $name, $label, $value, $type, $options = array(), $args = array(), $wrap = false) { if (!$label) { $label = $id; } $label_args = is_array($args) && array_key_exists('label_args', $args) ? $args['label_args'] : false; return Genesis_Club_Utils::form_field($id, $name, $this->tooltips->tip($label, $label_args), $value, $type, $options, $args, $wrap); }
function fetch_font($key, $font, $values) { $variants = array_combine($font['variants'], $font['variants']); array_walk($variants, array($this, 'font_variant')); return Genesis_Club_Utils::form_field($key, 'family-' . $key, $font['family'], $values, 'checkboxes', $variants, array('class' => 'families')); }