Filter events based on format (Competitive, Friendly, Tournament etc)
This commit is contained in:
@@ -14,6 +14,7 @@ $defaults = array(
|
||||
'event' => null,
|
||||
'title' => false,
|
||||
'status' => 'default',
|
||||
'format' => 'all',
|
||||
'date' => 'default',
|
||||
'date_from' => 'default',
|
||||
'date_to' => 'default',
|
||||
@@ -48,6 +49,8 @@ extract( $defaults, EXTR_SKIP );
|
||||
$calendar = new SP_Calendar( $id );
|
||||
if ( $status != 'default' )
|
||||
$calendar->status = $status;
|
||||
if ( $format != 'all' )
|
||||
$calendar->event_format = $format;
|
||||
if ( $date != 'default' )
|
||||
$calendar->date = $date;
|
||||
if ( $date_from != 'default' )
|
||||
|
||||
@@ -13,6 +13,7 @@ $defaults = array(
|
||||
'id' => null,
|
||||
'title' => false,
|
||||
'status' => 'default',
|
||||
'format' => 'all',
|
||||
'date' => 'default',
|
||||
'date_from' => 'default',
|
||||
'date_to' => 'default',
|
||||
@@ -48,6 +49,8 @@ extract( $defaults, EXTR_SKIP );
|
||||
$calendar = new SP_Calendar( $id );
|
||||
if ( $status != 'default' )
|
||||
$calendar->status = $status;
|
||||
if ( $format != 'all' )
|
||||
$calendar->event_format = $format;
|
||||
if ( $date != 'default' )
|
||||
$calendar->date = $date;
|
||||
if ( $date_from != 'default' )
|
||||
|
||||
Reference in New Issue
Block a user