Update modules

This commit is contained in:
Brian Miyaji
2018-10-17 11:04:37 +11:00
parent 66f8c04dc4
commit cddba8720a
8 changed files with 18 additions and 149 deletions

View File

@@ -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";
}

Binary file not shown.

View File

@@ -51,10 +51,11 @@
<glyph unicode="&#xf307;" glyph-name="tshirt" d="M459.6 307.2h-76.8v-179.2h-256v179.2h-76.8v102.4h132.4c10.56-29.84 38.96-51.2 72.4-51.2s61.84 21.36 72.4 51.2h132.4v-102.4zM382.8 102.4v-51.2h-256v51.2h256z" />
<glyph unicode="&#xf309;" glyph-name="color" d="M435.2 204.8c0-98.96-80.24-179.2-179.2-179.2s-179.2 80.24-179.2 179.2c0 49.52 20.080 94.32 52.48 126.72v0l126.72 126.72 126.72-126.72c32.4-32.4 52.48-77.2 52.48-126.72zM343.28 298l-87.44 87.44-89.040-89.040c-23.84-23.28-38.8-55.6-38.8-91.6 0-70.72 57.28-128 128-128s128 57.28 128 128c0 36.88-15.76 69.84-40.72 93.2zM256 102.4l0.080 246.8 70.4-70.4c19.6-18.64 31.92-44.8 31.92-74 0-56.56-45.84-102.4-102.4-102.4z" />
<glyph unicode="&#xf313;" glyph-name="tournament" d="M384 286v149.2h25.6c14.16 0 25.6-11.44 25.6-25.6v-51.2c0-33.44-21.36-61.84-51.2-72.4zM153.6 51.52h204.8v-51.52h-204.8v51.52zM179.2 76.8l25.6 25.6h25.6v25.6l25.6 25.6 25.6-25.6v-25.6h25.6l25.6-25.6h-153.6zM256 179.2c-56.56 0-102.4 45.84-102.4 102.4v179.2h204.8v-179.2c0-56.56-45.84-102.4-102.4-102.4zM76.8 358.4v51.2c0 14.16 11.44 25.6 25.6 25.6h25.6v-149.2c-29.84 10.56-51.2 38.96-51.2 72.4z" />
<glyph unicode="&#xf314;" glyph-name="matrix" d="M358.4 332.8h-51.2v-51.2h51.2v51.2zM204.8 256h-51.2v-51.2h51.2v51.2zM358.4 256h-51.2v-51.2h51.2v51.2zM435.2 435.2h-358.4c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM409.6 76.8h-307.2v307.2h307.2v-307.2zM281.6 332.8h-51.2v-51.2h51.2v51.2zM204.8 179.2h-51.2v-51.2h51.2v51.2zM281.6 179.2h-51.2v-51.2h51.2v51.2z" />
<glyph unicode="&#xf314;" glyph-name="grid" d="M358.4 332.8h-51.2v-51.2h51.2v51.2zM204.8 256h-51.2v-51.2h51.2v51.2zM358.4 256h-51.2v-51.2h51.2v51.2zM435.2 435.2h-358.4c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM409.6 76.8h-307.2v307.2h307.2v-307.2zM281.6 332.8h-51.2v-51.2h51.2v51.2zM204.8 179.2h-51.2v-51.2h51.2v51.2zM281.6 179.2h-51.2v-51.2h51.2v51.2z" />
<glyph unicode="&#xf316;" glyph-name="import" d="M435.2 256c-14.16 0-25.6-11.44-25.6-25.6v-153.6h-307.2v153.6c0 14.16-11.44 25.6-25.6 25.6s-25.6-11.44-25.6-25.6v-179.2c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v179.2c0 14.16-11.44 25.6-25.6 25.6zM281.6 256v156.72c0 12.4-11.44 22.48-25.6 22.48s-25.6-10.080-25.6-22.48v-156.72h-76.8l102.4-102.4 102.4 102.4h-76.8z" />
<glyph unicode="&#xf317;" glyph-name="export" d="M435.2 256c-14.16 0-25.6-11.44-25.6-25.6v-153.6h-307.2v153.6c0 14.16-11.44 25.6-25.6 25.6s-25.6-11.44-25.6-25.6v-179.2c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v179.2c0 14.16-11.44 25.6-25.6 25.6zM230.4 179.2c0-14.16 11.44-25.6 25.6-25.6s25.6 11.44 25.6 25.6v153.6h76.8l-102.4 102.4-102.4-102.4h76.8v-153.6z" />
<glyph unicode="&#xf319;" glyph-name="globe" d="M256 25.6c-113.12 0-204.8 91.68-204.8 204.8s91.68 204.8 204.8 204.8 204.8-91.68 204.8-204.8-91.68-204.8-204.8-204.8zM256 384c-84.8 0-153.6-68.8-153.6-153.6s68.8-153.6 153.6-153.6 153.6 68.8 153.6 153.6-68.8 153.6-153.6 153.6zM331.28 138.080l-4.48-2.64-12.96-7.92-7.68-5.6c-5.68-2.72-11.68-4.88-17.76-6.72v7.52l-2.16 17.36c0 0-1.040 10-2.72 12.64-1.6 2.64-5.44 6.32-9.2 7.92s-6.48 1.6-8.64 4.16c-2.16 2.64-3.84 7.36-6.48 11.6-2.72 4.24-6 8.48-6 10.56s0 23.76 0 23.76l2.72 20 5.92 4.24 7.040 7.92 4.88 1.6 16.8-3.12h11.84l4.88-10 11.36-8.96 7.040-11.040 9.2-3.12h10.32l7.040-8.48 4.32-8.96 1.6-6.32v-10.56l-1.12-6.24c-6.8-11.28-15.52-21.2-25.76-29.6v0 0zM289.36 319.92l-11.92-6.32-4.32-12.16-7.040-6.32h-23.36l-10.8-4.24-0.56-8.4-4.32-6.88-1.12-7.36 2.16-6.32 2.72-6.32c0 0 6.56-7.36 0-12.64 0 0-8.16 0-9.76 2.64s-13.52 10-15.76 12.16c-2.16 2.080-9.2 4.16-9.2 4.16l-8.64 3.2-8.16 0.56 0.56 11.040-0.56 9.44-3.28 6.88-9.2 6.88-0.56 7.36 1.12 4.080c21.92 21.2 52.16 34.4 85.6 34.4 18.88 0 36.48-4.56 52.4-12l-0.32-2.8-15.68-11.040z" />
<glyph unicode="&#xf321;" glyph-name="history" d="M287.411 440.32c-113.817 0-206.362-91.187-209.126-204.672h-62.925l94.183-104.986 94.157 104.986h-73.113c2.765 84.506 71.885 152.192 156.826 152.192 86.682 0 156.928-70.477 156.928-157.44s-70.246-157.44-156.928-157.44c-34.765 0-66.867 11.366-92.877 30.541l-35.993-38.502c35.533-27.878 80.256-44.519 128.87-44.519 115.558 0 209.255 93.978 209.255 209.92-0.026 115.942-93.721 209.92-209.255 209.92zM268.8 343.040v-120.064l76.928-76.928 25.344 25.344-66.432 66.432v105.216h-35.84z" />
<glyph unicode="&#xf322;" glyph-name="archive" d="M409.84 332.8c0 25.76-25.6 25.76-25.6 25.76h-256.24c0 0-25.6 0-25.6-25.76v-25.76h307.44v25.76zM332.96 410h-153.68c0 0-25.6 0-25.6-25.76h204.88c0 25.76-25.6 25.76-25.6 25.76s0 0 0 0zM449.36 309.44c-14.32 12.72-14.32 12.72-14.32 12.72v-40.72h-358v40.72c0 0 0 0-14.32-12.72s-24.56-16.16-18.8-43.12c5.68-26.8 33.44-174 37.6-193.92 4.56-21.84 29.52-21.52 29.52-21.52h289.92c0 0 25.040-0.32 29.52 21.52 4.16 19.92 31.84 167.040 37.6 193.92 5.84 26.96-4.4 30.4-18.72 43.12v0 0zM358.64 179.2c0 0 0-25.76-25.68-25.76h-153.76c-25.6 0-25.6 25.76-25.6 25.76v51.52h26.24v-50.88h153.28v50.88h25.52v-51.52z" />
<glyph unicode="&#xf325;" glyph-name="bracket" d="M434.8 154h-102.4c-14.16 0-25.6 11.44-25.6 25.6v25.6h-25.6v-76.8c0-14.16-11.44-25.6-25.6-25.6h-51.2v-25.6c0-14.16-11.44-25.6-25.6-25.6h-102.4c-14.16 0-25.6 11.44-25.6 25.6v102.4c0 14.16 11.44 25.6 25.6 25.6h102.4c14.16 0 25.6-11.44 25.6-25.6v-25.6h25.6v153.6h-25.6v-25.6c0-14.16-11.44-25.6-25.6-25.6h-102.4c-14.16 0-25.6 11.44-25.6 25.6v102.4c0 14.16 11.44 25.6 25.6 25.6h102.4c14.16 0 25.6-11.44 25.6-25.6v-25.6h51.2c14.16 0 25.6-11.44 25.6-25.6v-76.8h25.6v25.6c0 14.16 11.44 25.6 25.6 25.6h102.4c14.16 0 25.6-11.44 25.6-25.6v-102.4c0-14.16-11.44-25.6-25.6-25.6z" />
<glyph unicode="&#xf328;" glyph-name="friendly" horiz-adv-x="439" d="M324 179.28c-7.040-23.040-20.16-41.6-39.44-55.68-19.2-14.080-40.96-21.12-65.12-21.12s-45.92 7.040-65.12 21.12c-19.2 14.080-32.4 32.64-39.44 55.68-1.52 4.8-1.12 9.36 1.12 13.84 2.32 4.48 5.92 7.44 10.88 8.96 4.8 1.52 9.36 1.12 13.84-1.12 4.48-2.32 7.44-5.92 8.96-10.88 4.8-15.2 13.6-27.6 26.4-36.96 12.88-9.44 27.28-14.16 43.28-14.16s30.4 4.72 43.28 14.16c12.88 9.44 21.68 21.76 26.4 36.96 1.52 4.96 4.56 8.56 9.12 10.88s9.2 2.64 14 1.12c4.8-1.52 8.32-4.56 10.56-8.96 2.4-4.48 2.8-9.12 1.28-13.84v0zM182.88 303.52c0-10.080-3.6-18.72-10.72-25.84s-15.76-10.72-25.84-10.72c-10.080 0-18.72 3.6-25.84 10.72s-10.72 15.76-10.72 25.84 3.6 18.72 10.72 25.84c7.12 7.12 15.76 10.72 25.84 10.72s18.72-3.6 25.84-10.72c7.12-7.12 10.72-15.76 10.72-25.84v0zM329.12 303.52c0-10.080-3.6-18.72-10.72-25.84s-15.76-10.72-25.84-10.72c-10.080 0-18.72 3.6-25.84 10.72s-10.72 15.76-10.72 25.84 3.6 18.72 10.72 25.84c7.12 7.12 15.76 10.72 25.84 10.72s18.72-3.6 25.84-10.72c7.2-7.12 10.72-15.76 10.72-25.84v0zM402.32 230.4c0 24.8-4.88 48.4-14.56 70.96s-22.72 42-39.040 58.32-35.68 29.28-58.32 39.040-46.24 14.56-71.040 14.56c-24.8 0-48.4-4.88-71.040-14.56-22.56-9.68-42-22.72-58.32-39.040s-29.12-35.68-38.88-58.32-14.56-46.16-14.56-70.96c0-24.8 4.88-48.4 14.56-71.040s22.72-42 39.040-58.32c16.32-16.32 35.68-29.28 58.32-39.040s46.24-14.56 71.040-14.56 48.4 4.88 71.040 14.56c22.56 9.68 42 22.72 58.32 39.040s29.28 35.68 39.040 58.32c9.52 22.64 14.4 46.32 14.4 71.040v0zM438.88 230.4c0-39.84-9.84-76.56-29.44-110.16s-46.24-60.24-79.84-79.84-70.32-29.44-110.16-29.44-76.56 9.84-110.16 29.44-60.24 46.24-79.84 79.84-29.44 70.32-29.44 110.16 9.84 76.56 29.44 110.16 46.24 60.24 79.84 79.84 70.32 29.44 110.16 29.44 76.48-9.84 110.16-29.44 60.24-46.24 79.84-79.84c19.6-33.6 29.44-70.32 29.44-110.16v0z" />

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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',

View File

@@ -1,142 +0,0 @@
<?php
/*
Plugin Name: SportsPress Event Past Meetings
Plugin URI: http://themeboy.com/
Description: Show past meetings between two teams of a SportsPress Event.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.7.0
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! class_exists( 'SportsPress_Event_Past_Meetings' ) ) :
/**
* Main SportsPress Event Past Meetings Class
*
* @class SportsPress_Event_Past_Meetings
* @version 2.7.0
*/
class SportsPress_Event_Past_Meetings {
/**
* Constructor
*/
public function __construct() {
// Define constants
$this->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();