/** * Import Button * @package Skip\Forms * @since 1.0 */ function import_button($name, $args, $return = 'echo') { $import_button = new Import_Button($name, $args); return element_return($import_button, $return); }
/** * Textfield getter Function * @see skip_text() * @ignore */ function get_text($name, $args = array(), $return = 'html') { $textfield = new Text($name, $args); return element_return($textfield, $return); }
/** * @ignore */ function skip_html_element($tag, $args = array(), $elements = array(), $return = 'html') { $html_element = new HTML_Element($tag, $args); if (count($elements) > 0) { foreach ($elements as $element) { $html_element->add_element($element); } } return element_return($html_element, $return); }
/** * Export Button * @package Skip\Forms * @since 1.0 */ function export_button($value, $args, $return = 'echo') { $export_button = new Export_Button($value, $args); return element_return($export_button, $return); }
/** * Accordion getter Function * @see skip_accordion() * @ignore */ function get_accordion($elements, $args = array(), $return = 'html') { $accordion = new Accordion($args); if (count($elements) > 0) { foreach ($elements as $element) { $accordion->add_element($element['title'], $element['content'], array_key_exists('args', $element) ? $element['args'] : array()); } } else { return FALSE; } return element_return($accordion, $return); }
/** * Hidden Field getter Function * @see skip_hidden() * @ignore */ function get_hidden($name, $args = array(), $return = 'html') { $hidden = new Hidden($name, $args); return element_return($hidden, $return); }
// This is a text field! } /** * Rendering Button * @since 1.0 * @return string $html Returns The HTML Code