parent = $framework; $this->option_name = $field['option_name']; $this->option_id = parent::beautifyid( $field['option_name'] ); $this->value = $value; $this->field = wp_parse_args( $field, array( 'id' => '', 'title' => '', 'desc' => '', 'default' => null, 'sizes' => '', 'readonly' => false, 'sub_fields' => null, ) ); // If value does not set, use the default. if ( is_null( $this->value ) ) { $this->value = $this->field['default']; } parent::__construct( $this->field ); } /** * Render field * * Create the HTML interface for your field * * @since 1.0 * @return void */ public function render_field() { $values = (array) $this->value; $count = 0; $class = 'widefat eof-repeat-table'; switch ( $this->field['sizes'] ) { case 'small': $class .= ' small-table'; break; case 'regular': $class .= ' regular-table'; break; default: $class .= ''; break; } ?>
field['desc'] ); ?>