diff --git a/assets/css/menu.css b/assets/css/menu.css
index b5934203..38a302ba 100644
--- a/assets/css/menu.css
+++ b/assets/css/menu.css
@@ -1,12 +1,12 @@
/* SportsPress menu styles */
@font-face {
font-family: 'sportspress';
- src:url('../fonts/sportspress.eot?p81i3r');
- src:url('../fonts/sportspress.eot?#iefixp81i3r') format('embedded-opentype'),
- url('../fonts/sportspress.woff2?p81i3r') format('woff2'),
- url('../fonts/sportspress.ttf?p81i3r') format('truetype'),
- url('../fonts/sportspress.woff?p81i3r') format('woff'),
- url('../fonts/sportspress.svg?p81i3r#sportspress') format('svg');
+ src:url('../fonts/sportspress.eot?42ynjo');
+ src:url('../fonts/sportspress.eot?#iefix42ynjo') format('embedded-opentype'),
+ url('../fonts/sportspress.woff2?42ynjo') format('woff2'),
+ url('../fonts/sportspress.ttf?42ynjo') format('truetype'),
+ url('../fonts/sportspress.woff?42ynjo') format('woff'),
+ url('../fonts/sportspress.svg?42ynjo#sportspress') format('svg');
font-weight: normal;
font-style: normal;
}
@@ -91,6 +91,9 @@
.sp-icon-globe:before {
content: "\f319";
}
+.sp-icon-history:before {
+ content: "\f321";
+}
.sp-icon-import:before {
content: "\f316";
}
diff --git a/assets/fonts/sportspress.eot b/assets/fonts/sportspress.eot
index ea49a6b8..cd072e1e 100755
Binary files a/assets/fonts/sportspress.eot and b/assets/fonts/sportspress.eot differ
diff --git a/assets/fonts/sportspress.svg b/assets/fonts/sportspress.svg
index d583b458..2fe3fcf8 100755
--- a/assets/fonts/sportspress.svg
+++ b/assets/fonts/sportspress.svg
@@ -51,10 +51,11 @@
-
+
+
diff --git a/assets/fonts/sportspress.ttf b/assets/fonts/sportspress.ttf
index d085c78a..eb011b3d 100755
Binary files a/assets/fonts/sportspress.ttf and b/assets/fonts/sportspress.ttf differ
diff --git a/assets/fonts/sportspress.woff b/assets/fonts/sportspress.woff
index 99771ccf..f6a503a6 100755
Binary files a/assets/fonts/sportspress.woff and b/assets/fonts/sportspress.woff differ
diff --git a/assets/fonts/sportspress.woff2 b/assets/fonts/sportspress.woff2
index 45ef3ba3..a6b4c7f2 100755
Binary files a/assets/fonts/sportspress.woff2 and b/assets/fonts/sportspress.woff2 differ
diff --git a/includes/class-sp-modules.php b/includes/class-sp-modules.php
index 227e1eb6..9ce6c1c8 100644
--- a/includes/class-sp-modules.php
+++ b/includes/class-sp-modules.php
@@ -57,6 +57,13 @@ class SP_Modules {
'link' => 'https://www.themeboy.com/sportspress-extensions/match-stats/',
'desc' => __( 'Display head-to-head team comparison charts in events.', 'sportspress' ),
),
+ 'past_meetings' => array(
+ 'label' => __( 'Past Meetings', 'sportspress' ),
+ 'class' => 'SportsPress_Past_Meetings',
+ 'icon' => 'sp-icon-history',
+ 'link' => 'https://www.themeboy.com/sportspress-extensions/past-meetings/',
+ 'desc' => __( 'Display previous events between teams in list or blocks layout.', 'sportspress' ),
+ ),
'timelines' => array(
'label' => __( 'Timelines', 'sportspress' ),
'class' => 'SportsPress_Timelines',
diff --git a/modules/sportspress-event-past-meetings.php b/modules/sportspress-event-past-meetings.php
deleted file mode 100644
index 9754c9e4..00000000
--- a/modules/sportspress-event-past-meetings.php
+++ /dev/null
@@ -1,142 +0,0 @@
-define_constants();
-
- // Actions
-
- // Filters
- add_filter( 'sportspress_event_templates', array( $this, 'templates' ) );
- add_filter( 'sportspress_text', array( $this, 'add_text_options' ) );
- add_filter( 'sportspress_event_settings', array( $this, 'add_settings' ) );
- }
-
- /**
- * Define constants.
- */
- private function define_constants() {
- if ( !defined( 'SP_EVENT_PAST_MEETINGS_VERSION' ) )
- define( 'SP_EVENT_PAST_MEETINGS_VERSION', '2.7.0' );
-
- if ( !defined( 'SP_EVENT_PAST_MEETINGS_URL' ) )
- define( 'SP_EVENT_PAST_MEETINGS_URL', plugin_dir_url( __FILE__ ) );
-
- if ( !defined( 'SP_EVENT_PAST_MEETINGS_DIR' ) )
- define( 'SP_EVENT_PAST_MEETINGS_DIR', plugin_dir_path( __FILE__ ) );
- }
-
- /**
- * Add templates to event layout.
- *
- * @return array
- */
- public function templates( $templates = array() ) {
- $templates['past_meetings'] = array(
- 'title' => __( 'Past Meetings', 'sportspress' ),
- 'option' => 'sportspress_event_show_past_meetings',
- 'action' => array( $this, 'output' ),
- 'default' => 'no',
- );
-
- return $templates;
- }
-
- /**
- * Output Past Meetings.
- *
- * @access public
- * @return void
- */
- public function output() {
- // Get timelines format option
- $format = get_option( 'sportspress_past_meetings_format', 'blocks' );
- $teams = get_post_meta( get_the_ID(),'sp_team' );
- if ( 'list' === $format ):
- sp_get_template( 'event-list.php', array(
- 'teams_past' => $teams,
- 'date_before' => get_post_time('Y-m-d', true),
- 'title_format' => 'homeaway',
- 'time_format' => 'separate',
- 'columns' => array( 'event', 'time', 'results' ),
- 'order' => 'DESC',
- ) );
- else:
- sp_get_template( 'event-blocks.php', array(
- 'teams_past' => $teams,
- 'date_before' => get_post_time('Y-m-d', true),
- 'order' => 'DESC',
- ) );
- endif;
- }
-
- /**
- * Add text options
- */
- public function add_text_options( $options = array() ) {
- return array_merge( $options, array(
- __( 'Past Meetings', 'sportspress' ),
- ) );
- }
-
- /**
- * Add settings.
- *
- * @return array
- */
- public function add_settings( $settings ) {
-
- $settings = array_merge( $settings,
- array(
- array( 'title' => __( 'Past Meetings', 'sportspress' ), 'type' => 'title', 'id' => 'past_meetings_options' ),
- ),
-
- apply_filters( 'sportspress_past_meetings_options', array(
- array(
- 'title' => __( 'Layout', 'sportspress' ),
- 'id' => 'sportspress_past_meetings_format',
- 'default' => 'horizontal',
- 'type' => 'radio',
- 'options' => array(
- 'blocks'=> __( 'Blocks', 'sportspress' ),
- 'list' => __( 'List', 'sportspress' ),
- ),
- ),
- ) ),
-
- array(
- array( 'type' => 'sectionend', 'id' => 'past_meetings_options' ),
- )
- );
- return $settings;
- }
-
-}
-
-endif;
-
-new SportsPress_Event_Past_Meetings();