/** * Render the final html that is displayed in the table. */ protected function render_row_html() { if ($this->get_option('raw')) { parent::render_row_html(); } else { ?> <tr class="<?php echo $this->display ? '' : 'papi-hide'; ?> "> <td colspan="2"> <?php $this->render_property_html(); ?> </td> </tr> <?php } }
/** * Get value from the database. * * @return float|int */ public function get_value() { return $this->format_value(parent::get_value(), $this->get_slug(), papi_get_post_id()); }
/** * Render the given property. * * @param Papi_Property $property */ function papi_render_property($property) { $property = Papi_Property::factory($property); if (is_null($property)) { return; } $property->render(); }
/** * Get value from the database. * * @return string */ public function get_value() { $value = $this->format_value(parent::get_value(), $this->get_slug(), papi_get_post_id()); return $this->get_setting('allow_html') ? $value : esc_html($value); }