/** * Generate label, description, sub description for the field * * @since 1.0 * * @param array $field Field options * @param string $value Field value * * @return string */ function element($field, $value = '') { if (!$value) { $value = TA_Theme_Options::get_option($field['name']); } $attr = array('class' => "field field-{$field['type']} clearfix "); if (isset($field['id'])) { $attr['id'] = $field['id']; } if (isset($field['class'])) { $attr['class'] .= $field['class']; } return $this->tag('div', $attr, $this->label($field), $this->tag('div', array('class' => 'input'), $this->{$field['type']}($field, $value), $this->suffix($field), $this->subdesc($field))); }
/** * Get theme option value * * @since 1.0 * * @param string $name Option name * * @return mixed */ function bigboom_theme_option($name) { return TA_Theme_Options::get_option($name); }
/** * Get theme option value * * @since 1.0 * * @param string $name Option name * * @return mixed */ function onehost_theme_option($name) { return TA_Theme_Options::get_option($name); }