Inheritance: extends Papi_Core_Property
    /**
     * 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 
        }
    }
Exemplo n.º 2
0
 /**
  * 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());
 }
Exemplo n.º 3
0
/**
 * 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();
}
Exemplo n.º 4
0
 /**
  * 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);
 }