/** * @param array $entries * @param int $post_id * @param array $form * @param string $link_format * @param string $after_link */ function __construct($entries = array(), $post_id = 0, $form = array(), $link_format = '', $after_link = '', $context = '') { $this->entries = $entries; $this->post_id = $post_id; $this->form = $form; $this->link_format = $link_format; $this->after_link = $after_link; $this->context = $context; $this->empty_message = gv_no_results(); }
<tbody> <?php do_action('gravityview_table_body_before', $this); if (0 === $this->getTotalEntries()) { $directory_table_columns = $this->getFields('directory_table-columns'); ?> <tr> <?php do_action('gravityview_table_tr_before', $this); ?> <td colspan="<?php echo $directory_table_columns ? sizeof($directory_table_columns) : ''; ?> " class="gv-no-results"> <?php echo gv_no_results(); ?> </td> <?php do_action('gravityview_table_tr_after', $this); ?> </tr> <?php } else { foreach ($this->getEntries() as $entry) { $this->setCurrentEntry($entry); // Add `alt` class to alternate rows $alt = empty($alt) ? 'alt' : ''; /** * @filter `gravityview_entry_class` Modify the class applied to the entry row * @param string $alt Existing class. Default: if odd row, `alt`, otherwise empty string.