Add event_id to event-blocks shortcode

This commit is contained in:
savvasha
2017-12-10 21:30:39 +02:00
committed by GitHub
parent 4c43023175
commit 7d26c871e2

View File

@@ -468,6 +468,12 @@ class SP_AJAX {
<input class="regular-text" type="text" name="title">
</label>
</p>
<p>
<label>
<?php _e( 'Event ID:', 'sportspress' ); ?>
<input class="regular-text" type="number" name="event_id">
</label>
</p>
<p>
<label>
<?php printf( __( 'Select %s:', 'sportspress' ), __( 'Calendar', 'sportspress' ) ); ?>
@@ -1031,6 +1037,7 @@ class SP_AJAX {
args.show_all_events_link = $div.find('[name=show_all_events_link]:checked').length;
} else if ( 'event_blocks' == type ) {
args.title = $div.find('[name=title]').val();
args.event_id = $div.find('[name=event_id]').val();
args.team = $div.find('[name=team]').val();
args.league = $div.find('[name=league]').val();
args.season = $div.find('[name=season]').val();