Skip to main content

GV\Entry_Table_Template

The Entry Table Template class .

Renders a \GV\Entry using a \GV\Entry_Renderer.

Source: future/includes/class-gv-template-entry-table.php:14

Details

  • Kind: class
  • Namespace: GV
  • Extends: Entry_Template

Properties

PropertyTypeDescription
$slugstringThe template slug to be loaded (like "table", "list")

Methods

MethodDescription
the_field()Output a field cell.
the_entry()Out the single entry table body.

Method Reference

the_field()

public function the_field( \GV\Field $field, ?Entry $entry=null )

Output a field cell.

Parameters

NameTypeDefaultDescription
$field\GV\FieldThe field to be ouput.
$entry?Entrynull

Returns

  • string | false — The field output or false if "hide_empty" is set.

Source: future/includes/class-gv-template-entry-table.php:27

the_entry()

public function the_entry()

Out the single entry table body.

Returns

  • void

Source: future/includes/class-gv-template-entry-table.php:45