ACF_Repeater_Table::render()
Renders the full repeater table.
Метод класса: ACF_Repeater_Table{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ACF_Repeater_Table = new ACF_Repeater_Table(); $ACF_Repeater_Table->render();
Список изменений
С версии 6.0.0 | Введена. |
Код ACF_Repeater_Table::render() ACF Repeater Table::render ACF 6.0.4
<?php public function render() { // Attributes for main wrapper div. $div = array( 'class' => 'acf-repeater -' . $this->field['layout'], 'data-min' => $this->field['min'], 'data-max' => $this->field['max'], 'data-pagination' => ! empty( $this->field['pagination'] ), ); if ( $this->field['pagination'] ) { $div['data-per_page'] = $this->field['rows_per_page']; $div['data-total_rows'] = $this->field['total_rows']; $div['data-orig_name'] = $this->field['orig_name']; } if ( empty( $this->value ) ) { $div['class'] .= ' -empty'; } ?> <div <?php echo acf_esc_attrs( $div ); ?>> <?php acf_hidden_input( array( 'name' => $this->field['name'], 'value' => '', 'class' => 'acf-repeater-hidden-input', ) ); ?> <table class="acf-table"> <?php $this->thead(); ?> <tbody> <?php $this->rows(); ?> </tbody> </table> <?php $this->table_actions(); ?> </div> <?php }