/** * Render the property description. */ protected function render_description_html() { if (papi_is_empty($this->get_option('description'))) { return; } papi_render_html_tag('p', [papi_nl2br($this->get_option('description'))]); }
/** * Render option page type. */ public function render() { ?> <div class="wrap"> <h2><?php echo esc_html($this->name); ?> </h2> <?php echo wpautop(papi_nl2br($this->description)); ?> <form id="post" method="post" name="post"> <div id="papi-hidden-editor" class="hide-if-js"> <?php wp_nonce_field('papi_save_data', 'papi_meta_nonce'); ?> <?php wp_editor('', 'papiHiddenEditor'); ?> </div> <div id="poststuff"> <div id="post-body"> <?php foreach ($this->boxes as $box) { do_meta_boxes($box->id, 'normal', null); } ?> <?php submit_button(); ?> </div> </div> </form> </div> <?php }