/** * Render the main structure based on save or not * * @since 1.0.0 * @access public * @return string HTML of rendered page */ public function render() { $output = null; $output .= '<' . esc_attr($this->element) . ' ' . $this->build_attributes() . '>'; $output .= $this->render_header(); $output .= parent::render(); $output .= wp_nonce_field($this->id(), 'uixNonce_' . $this->id(), true, false); $output .= '</' . esc_attr($this->element) . '>'; return $output; }
/** * Render the Control * * @since 1.0.0 * @see \uix\ui\uix * @access public * @return string HTML of rendered box */ public function render_modal_template() { unset($this->struct['label']); $output = '<script type="text/html" id="' . esc_attr($this->id()) . '-tmpl">'; $output .= wp_nonce_field($this->id(), 'uixNonce_' . $this->id(), true, false); $output .= parent::render(); $output .= '</script>'; $output .= $this->render_footer_template(); return $output; }
/** * Render the Metabox * * @since 1.0.0 * @access public * @return string HTML of rendered metabox */ public function render() { // render fields setup return parent::render(); }