Add match days via fixtures importer

This commit is contained in:
Brian Miyaji
2016-09-01 22:42:26 +10:00
parent bf76ed7c97
commit b9d97c0677
2 changed files with 11 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ if ( class_exists( 'WP_Importer' ) ) {
var $skipped;
var $import_label;
var $columns = array();
var $optionals = array();
/**
* Constructor.
@@ -152,7 +153,7 @@ if ( class_exists( 'WP_Importer' ) ) {
<tr>
<?php $index = 0; foreach ( $this->columns as $key => $label ): $value = sp_array_value( $row, $index ); ?>
<td>
<input type="text" class="widefat" value="<?php echo esc_attr( $value ); ?>" name="sp_import[]">
<input type="text" class="widefat" value="<?php echo esc_attr( $value ); ?>" name="sp_import[]"<?php if ( in_array( $key, $this->optionals ) ) { ?> placeholder="<?php _e( 'Default', 'sportspress' ); ?>"<?php } ?>>
</td>
<?php $index ++; endforeach; ?>
<td class="sp-actions-column">