Add match day field to events and calendars

This commit is contained in:
Brian Miyaji
2016-08-22 01:14:32 +10:00
parent b33df471d8
commit 84e80d642a
10 changed files with 107 additions and 9 deletions

View File

@@ -554,6 +554,16 @@ class SP_AJAX {
<input type="text" size="3" name="number" id="number" value="5">
</label>
</p>
<p>
<label>
<?php _e( 'Sort by:', 'sportspress' ); ?>
<select id="orderby" name="orderby">
<option value="default"><?php _e( 'Default', 'sportspress' ); ?></option>
<option value="date"><?php _e( 'Date', 'sportspress' ); ?></option>
<option value="day"><?php _e( 'Match Day', 'sportspress' ); ?></option>
</select>
</label>
</p>
<p>
<label>
<?php _e( 'Sort Order:', 'sportspress' ); ?>
@@ -934,6 +944,7 @@ class SP_AJAX {
args.status = $div.find('[name=status]').val();
args.date = $div.find('[name=date]').val();
args.number = $div.find('[name=number]').val();
args.orderby = $div.find('[name=orderby]').val();
args.order = $div.find('[name=order]').val();
args.show_all_events_link = $div.find('[name=show_all_events_link]:checked').length;
} else if ( 'league_table' == type ) {