null, 'title' => false, 'status' => 'default', 'date' => 'default', 'date_from' => 'default', 'date_to' => 'default', 'league' => null, 'season' => null, 'number' => -1, 'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false, 'link_events' => get_option( 'sportspress_link_events', 'yes' ) == 'yes' ? true : false, 'paginated' => get_option( 'sportspress_event_blocks_paginated', 'yes' ) == 'yes' ? true : false, 'rows' => get_option( 'sportspress_event_blocks_rows', 10 ), 'order' => 'default', 'show_all_events_link' => false, 'show_title' => get_option( 'sportspress_event_blocks_show_title', 'no' ) == 'yes' ? true : false, 'show_league' => get_option( 'sportspress_event_blocks_show_league', 'no' ) == 'yes' ? true : false, 'show_season' => get_option( 'sportspress_event_blocks_show_season', 'no' ) == 'yes' ? true : false, 'show_venue' => get_option( 'sportspress_event_blocks_show_venue', 'no' ) == 'yes' ? true : false, ); extract( $defaults, EXTR_SKIP ); $calendar = new SP_Calendar( $id ); if ( $status != 'default' ) $calendar->status = $status; if ( $date != 'default' ) $calendar->date = $date; if ( $date_from != 'default' ) $calendar->from = $date_from; if ( $date_to != 'default' ) $calendar->to = $date_to; if ( $league ) $calendar->league = $league; if ( $season ) $calendar->season = $season; if ( $order != 'default' ) $calendar->order = $order; $data = $calendar->data(); $usecolumns = $calendar->columns; if ( $show_title && false === $title && $id ): $caption = $calendar->caption; if ( $caption ) $title = $caption; else $title = get_the_title( $id ); endif; if ( isset( $columns ) ) { $usecolumns = $columns; } if ( $title ) echo '
-', sp_get_main_results_or_time( $event ) ); ?>name; ?>
name; ?>
name; ?>
post_title; ?> post_title; ?> |