From 35ed9962d417e13484885221da040bee7d24912d Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 8 Apr 2016 15:26:59 +1000 Subject: [PATCH] Add events to team pages --- assets/css/sportspress.css | 7 ++ .../admin/settings/class-sp-settings-page.php | 1 + includes/class-sp-calendar.php | 13 +++ includes/class-sp-team.php | 13 ++- includes/sp-template-functions.php | 13 +++ modules/sportspress-calendars.php | 48 ++++++++++- templates/event-blocks.php | 13 +-- templates/event-calendar.php | 50 ++++++----- templates/event-fixtures-results.php | 84 +++++++++++++++++++ templates/event-list.php | 3 + templates/team-events.php | 19 +++++ wpml-config.xml | 1 + 12 files changed, 227 insertions(+), 38 deletions(-) create mode 100644 templates/event-fixtures-results.php create mode 100644 templates/team-events.php diff --git a/assets/css/sportspress.css b/assets/css/sportspress.css index 38b3ca0e..836bfb95 100644 --- a/assets/css/sportspress.css +++ b/assets/css/sportspress.css @@ -318,6 +318,9 @@ width: auto; height: auto; } +.sp-fixtures-results { + clear: both; +} .widget .sp-event-blocks .sp-event-title { margin: 10px; padding: 0; @@ -437,4 +440,8 @@ display: inline-block; margin: 0 0.25em; } + + .sp-template-logo + .sp-post-content { + clear: left; + } } diff --git a/includes/admin/settings/class-sp-settings-page.php b/includes/admin/settings/class-sp-settings-page.php index 834c0d21..f0ccff2c 100644 --- a/includes/admin/settings/class-sp-settings-page.php +++ b/includes/admin/settings/class-sp-settings-page.php @@ -100,6 +100,7 @@ class SP_Settings_Page {