Initialisation
davvalent

davvalent commited on 2022-04-21 07:23:53
Showing 6 changed files, with 2659 additions and 0 deletions.

... ...
@@ -0,0 +1,15 @@
1
+# ignore everything
2
+*
3
+
4
+# but do not ignore these files
5
+!/.gitignore
6
+!/README.md
7
+
8
+# ...even if they are in subdirectories
9
+!*/
10
+
11
+# if the files to be tracked are in subdirectories
12
+!wp-content/themes/rookie/functions.php
13
+!wp-content/themes/rookie/style.css
14
+!wp-content/plugins/sportspress/templates/event-fixtures-results.php
15
+!wp-content/plugins/sportspress/templates/player-list.php
0 16
\ No newline at end of file
... ...
@@ -0,0 +1,34 @@
1
+# Phase 1 : sans modifications de la base de données
2
+
3
+```css
4
+/* DANS L'ESPACE ADMIN */
5
+.sp-player-list tr:nth-child(even) {background: #f2ede3}
6
+.sp-event-list tr:nth-child(even) {background: #f2ede3}
7
+.data-event a {float: left}
8
+```
9
+
10
+Fichiers seulement..
11
+
12
+- L'installation locale est branchée sur la base de données live. Attention!
13
+	- Plus maintenant me semble-il
14
+
15
+Éventuellement : data base user en lecture seulement.
16
+
17
+Initialisation d'un dépôt local, branche dev.
18
+
19
+Création de branche prod : merge dev into prod pour déployer.
20
+
21
+Création de dépôt distant --bare
22
+
23
+upload post-receive
24
+
25
+```
26
+$ git remote add origin ssh://ntnlvca@ntnlv.ca:27/home/ntnlvca/public_html/git/lbd.git
27
+$ git push -u origin prod
28
+```
29
+
30
+Work flow à revoir.
31
+
32
+# Phase 2 : déploiement fichiers et base de données
33
+
34
+copie de bdd...
... ...
@@ -0,0 +1,106 @@
1
+<?php
2
+/* tracked */
3
+/**
4
+ * Event Blocks
5
+ *
6
+ * @author 		ThemeBoy
7
+ * @package 	SportsPress/Templates
8
+ * @version     2.2
9
+ */
10
+
11
+if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
12
+
13
+$defaults = array(
14
+	'id' => null,
15
+	'date' => 'default',
16
+	'date_from' => 'default',
17
+	'date_to' => 'default',
18
+	'league' => null,
19
+	'season' => null,
20
+	'team' => null,
21
+	'player' => null,
22
+	'number' => -1,
23
+	'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false,
24
+	'link_events' => get_option( 'sportspress_link_events', 'yes' ) == 'yes' ? true : false,
25
+	'paginated' => get_option( 'sportspress_event_blocks_paginated', 'yes' ) == 'yes' ? true : false,
26
+	'rows' => get_option( 'sportspress_event_blocks_rows', 5 ),
27
+	'show_league' => get_option( 'sportspress_event_blocks_show_league', 'no' ) == 'yes' ? true : false,
28
+	'show_season' => get_option( 'sportspress_event_blocks_show_season', 'no' ) == 'yes' ? true : false,
29
+	'show_venue' => get_option( 'sportspress_event_blocks_show_venue', 'no' ) == 'yes' ? true : false,
30
+);
31
+
32
+extract( $defaults, EXTR_SKIP );
33
+
34
+$calendar = new SP_Calendar( $id );
35
+if ( $date != 'default' )
36
+	$calendar->date = $date;
37
+if ( $date_from != 'default' )
38
+	$calendar->from = $date_from;
39
+if ( $date_to != 'default' )
40
+	$calendar->to = $date_to;
41
+if ( $league )
42
+	$calendar->league = $league;
43
+if ( $season )
44
+	$calendar->season = $season;
45
+if ( $team )
46
+	$calendar->team = $team;
47
+if ( $player )
48
+	$calendar->player = $player;
49
+
50
+$args = array(
51
+	'id' => $id,
52
+	'title' => __( 'Fixtures', 'sportspress' ),
53
+	'status' => 'future',
54
+	'date' => $date,
55
+	'date_from' => $date_from,
56
+	'date_to' => $date_to,
57
+	'league' => $league,
58
+	'season' => $season,
59
+	'team' => $team,
60
+	'player' => $player,
61
+	'number' => $number,
62
+	'link_teams' => $link_teams,
63
+	'link_events' => $link_events,
64
+	'paginated' => $paginated,
65
+	'rows' => $rows,
66
+// ICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICI
67
+	'order' => 'ASC',
68
+	'show_all_events_link' => false,
69
+	'show_title' => true,
70
+	'show_league' => $show_league,
71
+	'show_season' => $show_season,
72
+	'show_venue' => $show_venue,
73
+	'hide_if_empty' => true,
74
+);
75
+
76
+echo '<div class="sp-fixtures-results">';
77
+
78
+ob_start();
79
+sp_get_template( 'event-blocks.php', $args );
80
+$fixtures = ob_get_clean();
81
+
82
+$args['title'] = __( 'Results', 'sportspress' );
83
+$args['status'] = 'publish';
84
+$args['order'] = 'DESC';
85
+
86
+ob_start();
87
+sp_get_template( 'event-blocks.php', $args );
88
+$results = ob_get_clean();
89
+
90
+if ( false == $fixtures || false == $results ) {
91
+
92
+	echo $fixtures;
93
+	echo $results;
94
+
95
+} else {
96
+
97
+	echo '<div class="sp-widget-align-left">';
98
+	echo $fixtures;
99
+	echo '</div>';
100
+
101
+	echo '<div class="sp-widget-align-right">';
102
+	echo $results;
103
+	echo '</div>';
104
+}
105
+
106
+echo '</div>';
0 107
\ No newline at end of file
... ...
@@ -0,0 +1,276 @@
1
+<?php
2
+/* tracked */
3
+/**
4
+ * Player List
5
+ *
6
+ * @author 		ThemeBoy
7
+ * @package 	SportsPress/Templates
8
+ * @version   2.6.15
9
+ */
10
+
11
+if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
12
+
13
+$defaults = array(
14
+	'id' => get_the_ID(),
15
+	'title' => false,
16
+	'number' => -1,
17
+	'grouptag' => 'h4',
18
+	'columns' => null,
19
+	'grouping' => null,
20
+	'orderby' => 'default',
21
+	'order' => 'ASC',
22
+	'show_all_players_link' => false,
23
+	'show_title' => get_option( 'sportspress_list_show_title', 'yes' ) == 'yes' ? true : false,
24
+	'show_player_photo' => get_option( 'sportspress_list_show_photos', 'no' ) == 'yes' ? true : false,
25
+	'show_player_flag' => get_option( 'sportspress_list_show_flags', 'no' ) == 'yes' ? true : false,
26
+	'team_format' => get_option( 'sportspress_list_team_format', 'name' ),
27
+	'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false,
28
+	'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false,
29
+	'responsive' => get_option( 'sportspress_enable_responsive_tables', 'no' ) == 'yes' ? true : false,
30
+	'sortable' => get_option( 'sportspress_enable_sortable_tables', 'yes' ) == 'yes' ? true : false,
31
+	'scrollable' => get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false,
32
+	'paginated' => get_option( 'sportspress_list_paginated', 'yes' ) == 'yes' ? true : false,
33
+	'rows' => get_option( 'sportspress_list_rows', 10 ),
34
+	'leagues' => null,
35
+	'seasons' => null,
36
+	'team' => null,
37
+);
38
+
39
+extract( $defaults, EXTR_SKIP );
40
+
41
+// Backward compatibility
42
+if ( isset( $performance ) )
43
+	$columns = $performance;
44
+
45
+// Determine number of players to display
46
+if ( -1 === $number ):
47
+	$number = (int) get_post_meta( $id, 'sp_number', true );
48
+	if ( $number <= 0 ) $number = -1;
49
+endif;
50
+
51
+// Explode into array
52
+if ( null !== $columns && ! is_array( $columns ) )
53
+	$columns = explode( ',', $columns );
54
+
55
+$list = new SP_Player_List( $id );
56
+if ( isset( $columns ) && null !== $columns ):
57
+	$list->columns = $columns;
58
+endif;
59
+$data = $list->data( false, $leagues, $seasons, $team );
60
+
61
+// The first row should be labels
62
+$labels = $data[0];
63
+
64
+//Create a unique identifier based on the current time in microseconds
65
+$identifier = uniqid( 'playerlist_' );
66
+// If responsive tables are enabled then load the inline css code
67
+if ( true == $responsive ){
68
+	//sportspress_responsive_tables_css( $identifier );
69
+}
70
+// Remove the first row and 'head' row to leave us with the actual data
71
+unset( $data[0] );
72
+
73
+if ( $grouping === null || $grouping === 'default' ):
74
+	$grouping = $list->grouping;
75
+endif;
76
+
77
+if ( $orderby == 'default' ):
78
+	$orderby = $list->orderby;
79
+	$order = $list->order;
80
+else:
81
+	$list->priorities = array(
82
+		array(
83
+			'key' => $orderby,
84
+			'order' => $order,
85
+		),
86
+	);
87
+	uasort( $data, array( $list, 'sort' ) );
88
+endif;
89
+
90
+$output = '';
91
+
92
+if ( $grouping === 'position' ):
93
+	$groups = get_terms( 'sp_position', array(
94
+		'orderby' => 'meta_value_num',
95
+		'meta_query' => array(
96
+			'relation' => 'OR',
97
+			array(
98
+				'key' => 'sp_order',
99
+				'compare' => 'NOT EXISTS'
100
+			),
101
+			array(
102
+				'key' => 'sp_order',
103
+				'compare' => 'EXISTS'
104
+			),
105
+		),
106
+	) );
107
+else:
108
+	if ( $show_title && false === $title && $id ):
109
+		$caption = $list->caption;
110
+		if ( $caption )
111
+			$title = $caption;
112
+		else
113
+			$title = get_the_title( $id );
114
+	endif;
115
+	if ( $title )
116
+		$output .= '<' . $grouptag . ' class="sp-table-caption">' . $title . '</' . $grouptag . '>';
117
+	$group = new stdClass();
118
+	$group->term_id = null;
119
+	$group->name = null;
120
+	$group->slug = null;
121
+	$groups = array( $group );
122
+endif;
123
+
124
+foreach ( $groups as $group ):
125
+	$i = 0;
126
+
127
+	if ( intval( $number ) > 0 )
128
+		$limit = $number;
129
+
130
+	$thead = '<thead>' . '<tr>';
131
+
132
+	if ( ! is_array( $labels ) || array_key_exists( 'number', $labels ) ):
133
+		if ( in_array( $orderby, array( 'number', 'name' ) ) ):
134
+			$thead .= '<th class="data-number">#</th>';
135
+		else:
136
+// ICICICICICICICICICICICICICICICICI**********************************************************************
137
+
138
+// Afficher le libellé "#" même s'il n'est pas sélectionné
139
+
140
+//			$thead .= '<th class="data-rank">' . __( 'Rank', 'sportspress' ) . '</th>';
141
+
142
+			$thead .= '<th class="data-number">#</th>';
143
+		endif;
144
+	endif;
145
+
146
+	foreach( $labels as $key => $label ):
147
+		if ( $key !== 'number' && ( ! is_array( $columns ) || $key == 'name' || in_array( $key, $columns ) ) )
148
+			$thead .= '<th class="data-' . $key . '">'. $label . '</th>';
149
+	endforeach;
150
+
151
+	$thead .= '</tr>' . '</thead>';
152
+
153
+	$tbody = '';
154
+
155
+	foreach( $data as $player_id => $row ): if ( empty( $group->term_id ) || has_term( $group->term_id, 'sp_position', $player_id ) ):
156
+
157
+		if ( isset( $limit ) && $i >= $limit ) continue;
158
+
159
+		$name = sp_array_value( $row, 'name', null );
160
+		if ( ! $name ) continue;
161
+
162
+		$tbody .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
163
+
164
+		// Rank or number
165
+		if ( ! is_array( $labels ) || array_key_exists( 'number', $labels ) ):
166
+			if ( isset( $orderby ) && $orderby != 'number' ):
167
+// ICICICICICICICICICICICICICICICICI*******************************************************************
168
+
169
+// Afficher le numéro du joueur au lieu du rang
170
+
171
+//				$tbody .= '<td class="data-rank" data-label="'.$labels['number'].'">' . ( $i + 1 ) . '</td>';
172
+
173
+				$tbody .= '<td class="data-number" data-label="'.$labels['number'].'">' . sp_array_value( $row, 'number', '&nbsp;' ) . '</td>';
174
+
175
+			else:
176
+
177
+				$tbody .= '<td class="data-number" data-label="'.$labels['number'].'">' . sp_array_value( $row, 'number', '&nbsp;' ) . '</td>';
178
+			endif;
179
+		endif;
180
+
181
+		$name_class = '';
182
+
183
+		if ( $show_player_photo ):
184
+			if ( has_post_thumbnail( $player_id ) ):
185
+				$logo = get_the_post_thumbnail( $player_id, 'sportspress-fit-icon' );
186
+				$name = '<span class="player-photo">' . $logo . '</span>' . $name;
187
+				$name_class .= ' has-photo';
188
+			endif;
189
+		endif;
190
+
191
+		if ( $show_player_flag ):
192
+			$player = new SP_Player( $player_id );
193
+			$nationalities = $player->nationalities();
194
+			if ( ! empty( $nationalities ) ):
195
+				foreach ( $nationalities as $nationality ):
196
+					$name = '<span class="player-flag"><img src="' . plugin_dir_url( SP_PLUGIN_FILE ) . 'assets/images/flags/' . strtolower( $nationality ) . '.png" alt="' . $nationality . '"></span>' . $name;
197
+				endforeach;
198
+				$name_class .= ' has-photo';
199
+			endif;
200
+		endif;
201
+
202
+		if ( $link_posts ):
203
+			$permalink = get_post_permalink( $player_id );
204
+			$name = '<a href="' . $permalink . '">' . $name . '</a>';
205
+		endif;
206
+
207
+		$tbody .= '<td class="data-name' . $name_class . '" data-label="'.$labels['name'].'">' . $name . '</td>';
208
+
209
+		if ( array_key_exists( 'team', $labels ) ):
210
+			$team = sp_array_value( $row, 'team', get_post_meta( $id, 'sp_current_team', true ) );
211
+			$team_name = $team ? sp_team_short_name( $team ) : '-';
212
+			if ( $team_format == 'logo' && has_post_thumbnail( $team ) ){
213
+				$logo = get_the_post_thumbnail( $team, 'sportspress-fit-icon', array( 'title' => ''.$team_name.'' ) );
214
+				$team_name = '<span class="team-logo">' . $logo . '</span>';
215
+			}
216
+			if ( $link_teams && false !== get_post_status( $team ) ):
217
+				$team_name = '<a href="' . get_post_permalink( $team ) . '">' . $team_name . '</a>';
218
+			endif;
219
+			$tbody .= '<td class="data-team" data-label="'.$labels['team'].'">' . $team_name . '</td>';
220
+		endif;
221
+
222
+		if ( array_key_exists( 'position', $labels ) ):
223
+			$position = sp_array_value( $row, 'position', null );
224
+			if ( null === $position || ! $position ):
225
+				$positions = wp_strip_all_tags( get_the_term_list( $player_id, 'sp_position', '', ', ' ) );
226
+			else:
227
+				$position_term = get_term_by( 'id', $position, 'sp_position', ARRAY_A );
228
+				$positions = sp_array_value( $position_term, 'name', '&mdash;' );
229
+			endif;
230
+			$tbody .= '<td class="data-position" data-label="'.$labels['position'].'">' . $positions . '</td>';
231
+		endif;
232
+
233
+		foreach( $labels as $key => $value ):
234
+			if ( in_array( $key, array( 'number', 'name', 'team', 'position' ) ) )
235
+				continue;
236
+			if ( ! is_array( $columns ) || in_array( $key, $columns ) ) {
237
+				$label = $labels[$key];
238
+				if ( preg_match ( "/title=\"(.*?)\"/", $value, $new_label ) ) {
239
+					$label = $new_label[1];
240
+				}
241
+				$tbody .= '<td class="data-' . $key . '" data-label="'.$label.'">' . sp_array_value( $row, $key, '&mdash;' ) . '</td>';
242
+			}
243
+		endforeach;
244
+
245
+		$tbody .= '</tr>';
246
+
247
+		$i++;
248
+
249
+	endif; endforeach;
250
+
251
+	if ( $i === 0 ) continue;
252
+
253
+	$output .= '<div class="sp-template sp-template-player-list">';
254
+
255
+	if ( ! empty( $group->name ) ):
256
+		$output .= '<a name="group-' . $group->slug . '" id="group-' . $group->slug . '"></a>';
257
+		$output .= '<' . $grouptag . ' class="sp-table-caption player-group-name player-list-group-name">' . $group->name . '</' . $grouptag . '>';
258
+	endif;
259
+
260
+	$output .= '<div class="sp-table-wrapper">' .
261
+		'<table class="sp-player-list sp-data-table' . ( $sortable ? ' sp-sortable-table' : '' ). ( $responsive ? ' sp-responsive-table '.$identifier : '' ) . ( $scrollable ? ' sp-scrollable-table' : '' ) . ( $paginated ? ' sp-paginated-table' : '' ) . '" data-sp-rows="' . $rows . '">';
262
+
263
+	$output .= $thead . '<tbody>';
264
+
265
+	$output .= $tbody;
266
+
267
+	$output .= '</tbody>' . '</table>' . '</div>';
268
+
269
+	if ( $show_all_players_link ):
270
+		$output .= '<div class="sp-player-list-link sp-view-all-link"><a href="' . get_permalink( $id ) . '">' . __( 'View all players', 'sportspress' ) . '</a></div>';
271
+	endif;
272
+
273
+	$output .= '</div>';
274
+endforeach;
275
+?>
276
+<?php echo $output; ?>
... ...
@@ -0,0 +1,1239 @@
1
+<?php
2
+/**
3
+ * Rookie functions and definitions
4
+ *
5
+ * @package Rookie
6
+ */
7
+
8
+/**
9
+ * Set the content width based on the theme's design and stylesheet.
10
+ */
11
+if ( ! isset( $content_width ) ) {
12
+	$content_width = 620; /* pixels */
13
+}
14
+if ( ! isset( $full_content_width ) ) {
15
+	$full_content_width = 960; /* pixels */
16
+}
17
+
18
+if ( ! function_exists( 'rookie_setup' ) ) :
19
+/**
20
+ * Sets up theme defaults and registers support for various WordPress features.
21
+ *
22
+ * Note that this function is hooked into the after_setup_theme hook, which
23
+ * runs before the init hook. The init hook is too late for some features, such
24
+ * as indicating support for post thumbnails.
25
+ */
26
+function rookie_setup() {
27
+	/*
28
+	 * Make theme available for translation.
29
+	 * Translations can be filed in the /languages/ directory.
30
+	 * If you're building a theme based on Rookie, use a find and replace
31
+	 * to change 'rookie' to the name of your theme in all the template files
32
+	 */
33
+	load_theme_textdomain( 'rookie', get_template_directory() . '/languages' );
34
+
35
+	// Declare SportsPress support.
36
+	add_theme_support( 'sportspress' );
37
+
38
+	// Declare Mega Slider support.
39
+	add_theme_support( 'mega-slider' );
40
+
41
+	// Declare Social Sidebar support.
42
+	add_theme_support( 'social-sidebar' );
43
+
44
+	// Declare News Widget support.
45
+	add_theme_support( 'news-widget' );
46
+
47
+	// Declare WooCommerce support.
48
+	add_theme_support( 'woocommerce' );
49
+
50
+	// Add default posts and comments RSS feed links to head.
51
+	add_theme_support( 'automatic-feed-links' );
52
+
53
+	// Add featured image support.
54
+	add_theme_support( 'post-thumbnails' );
55
+
56
+	// Add title tag support.
57
+	add_theme_support( 'title-tag' );
58
+
59
+	// Add custom header support.
60
+	add_theme_support( 'custom-header', array(
61
+		'default-image'          => '',
62
+		'width'                  => 1000,
63
+		'height'                 => 150,
64
+		'flex-height'            => true,
65
+		'flex-width'             => true,
66
+		'uploads'                => true,
67
+		'random-default'         => false,
68
+		'header-text'            => true,
69
+		'default-text-color'     => apply_filters( 'rookie_default_header_text_color', '222222' ),
70
+	) );
71
+
72
+	add_editor_style();
73
+
74
+	/*
75
+	 * Enable support for Post Thumbnails on posts and pages.
76
+	 *
77
+	 * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
78
+	 */
79
+	//add_theme_support( 'post-thumbnails' );
80
+
81
+	// This theme uses wp_nav_menu() in one location.
82
+	register_nav_menus( array(
83
+		'primary' => __( 'Primary Menu', 'rookie' ),
84
+	) );
85
+
86
+	/*
87
+	 * Switch default core markup for search form, comment form, and comments
88
+	 * to output valid HTML5.
89
+	 */
90
+	add_theme_support( 'html5', array(
91
+		'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',
92
+	) );
93
+
94
+	/*
95
+	 * Enable support for Post Formats.
96
+	 * See http://codex.wordpress.org/Post_Formats
97
+	 */
98
+	add_theme_support( 'post-formats', array(
99
+		'aside', 'image', 'video', 'quote', 'link',
100
+	) );
101
+
102
+	// Set up the WordPress core custom background feature.
103
+	add_theme_support( 'custom-background', apply_filters( 'rookie_custom_background_args', array(
104
+		'default-color' => 'e8e8e8',
105
+		'default-image' => '',
106
+	) ) );
107
+
108
+	// Add starter content.
109
+	add_theme_support( 'starter-content', array(
110
+		'widgets' => array(
111
+			'footer-1' => array(
112
+				'text_about',
113
+			),
114
+			'footer-2' => array(
115
+				'text_business_info',
116
+			),
117
+			'footer-3' => array(
118
+				'meta',
119
+			),
120
+		),
121
+
122
+		'posts' => rookie_starter_content_posts(),
123
+
124
+		'nav_menus' => array(
125
+			'primary' => array(
126
+				'name' => __( 'Primary Menu', 'rookie' ),
127
+				'items' => array(
128
+					'page_home',
129
+					'page_blog',
130
+				),
131
+			),
132
+		),
133
+
134
+		'options' => array(
135
+			'show_on_front' => 'page',
136
+			'page_on_front' => '{{home}}',
137
+			'page_for_posts' => '{{blog}}',
138
+		),
139
+	) );
140
+}
141
+endif; // rookie_setup
142
+add_action( 'after_setup_theme', 'rookie_setup' );
143
+
144
+if ( ! function_exists( 'rookie_theme_starter_content' ) ):
145
+function rookie_theme_starter_content( $content = array(), $config = array() ) {
146
+	$calendars = (array) get_posts("post_type=sp_calendar&numberposts=1&fields=ids");
147
+	$lists = (array) get_posts("post_type=sp_list&numberposts=1&fields=ids");
148
+	$performance = (array) get_posts("post_type=sp_performance&numberposts=1&order=ASC");
149
+	$tables = (array) get_posts("post_type=sp_table&numberposts=1&fields=ids");
150
+	$columns = (array) get_posts("post_type=sp_column&numberposts=-1");
151
+
152
+	// Sidebar Widgets
153
+	$content['widgets']['sidebar-1'] = array(
154
+		array( 'sportspress-countdown', array(
155
+			'caption' => __( 'Countdown', 'rookie' ),
156
+		) ),
157
+		array( 'sportspress-event-calendar', array(
158
+			'id' => reset( $calendars ),
159
+			'show_all_events_link' => true,
160
+		) ),
161
+		array( 'sportspress-player-list', array(
162
+			'caption' => __( 'Player List', 'rookie' ),
163
+			'id' => reset( $lists ),
164
+			'number' => 8,
165
+			'columns' => array_merge( array( 'number' ), wp_list_pluck( $performance, 'post_name' ) ),
166
+			'orderby' => 'number',
167
+			'show_all_players_link' => true,
168
+		) ),
169
+	);
170
+
171
+	// Homepage Widgets
172
+	$content['widgets']['homepage-1'] = array(
173
+		array( 'sportspress-event-blocks', array(
174
+			'align' => 'left',
175
+			'caption' => __( 'Fixtures', 'rookie' ),
176
+			'status' => 'future',
177
+			'number' => 3,
178
+			'order' => 'ASC',
179
+			'show_all_events_link' => false,
180
+		) ),
181
+		array( 'sportspress-event-blocks', array(
182
+			'align' => 'right',
183
+			'caption' => __( 'Results', 'rookie' ),
184
+			'status' => 'publish',
185
+			'number' => 3,
186
+			'order' => 'DESC',
187
+			'show_all_events_link' => false,
188
+		) ),
189
+		array( 'sportspress-league-table', array(
190
+			'caption' => __( 'League Table', 'rookie' ),
191
+			'id' => reset( $tables ),
192
+			'number' => 10,
193
+			'columns' => wp_list_pluck( $columns, 'post_name' ),
194
+			'show_full_table_link' => true,
195
+		) ),
196
+		array( 'sportspress-player-gallery', array(
197
+			'caption' => __( 'Player Gallery', 'rookie' ),
198
+			'id' => reset( $lists ),
199
+			'number' => 8,
200
+			'columns' => 4,
201
+			'orderby' => 'number',
202
+			'show_all_players_link' => true,
203
+		) ),
204
+	);
205
+
206
+	// Pages
207
+	$content['posts']['home']['page_template'] = 'template-homepage.php';
208
+
209
+	// Custom Menus
210
+	$items = array(
211
+		array(
212
+			'type' => 'post_type',
213
+			'object' => 'page',
214
+			'object_id' => '{{fixtures-results}}',
215
+		),
216
+		array(
217
+			'type' => 'post_type',
218
+			'object' => 'page',
219
+			'object_id' => '{{league-table}}',
220
+		),
221
+		array(
222
+			'type' => 'post_type',
223
+			'object' => 'page',
224
+			'object_id' => '{{roster}}',
225
+		),
226
+	);
227
+	array_splice( $content['nav_menus']['primary']['items'], 1, 0, $items );
228
+
229
+	return apply_filters( 'rookie_theme_starter_content', $content );
230
+}
231
+endif;
232
+add_filter( 'get_theme_starter_content', 'rookie_theme_starter_content', 10, 2 );
233
+
234
+if ( ! function_exists( 'rookie_get_search_form' ) ):
235
+function rookie_get_search_form( $form ) {
236
+	//return $untranslated_text;
237
+	$form = str_replace( 'value="' . esc_attr_x( 'Search', 'submit button' ) . '"', 'value="&#61817;" title="' . esc_attr_x( 'Search', 'submit button' ) . '"', $form );
238
+	return $form;
239
+}
240
+add_filter( 'get_search_form', 'rookie_get_search_form' );
241
+endif;
242
+
243
+/**
244
+ * Render title in head for backwards compatibility.
245
+ */
246
+if ( ! function_exists( '_wp_render_title_tag' ) ):
247
+function rookie_render_title() {
248
+	?>
249
+	<title><?php wp_title( '-', true, 'right' ); ?></title>
250
+	<?php
251
+}
252
+add_action( 'wp_head', 'rookie_render_title' );
253
+endif;
254
+
255
+/**
256
+ * Register widget area.
257
+ *
258
+ * @link http://codex.wordpress.org/Function_Reference/register_sidebar
259
+ */
260
+if ( ! function_exists( 'rookie_widgets_init' ) ):
261
+function rookie_widgets_init() {
262
+	$sidebar = rookie_get_sidebar_setting();
263
+
264
+	if ( in_array( $sidebar, array( 'left', 'right' ) ) ) {
265
+		register_sidebar( array(
266
+			'name'          => __( 'Sidebar', 'rookie' ),
267
+			'id'            => 'sidebar-1',
268
+			'description'   => '',
269
+			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
270
+			'after_widget'  => '</aside>',
271
+			'before_title'  => '<h1 class="widget-title">',
272
+			'after_title'   => '</h1>',
273
+		) );
274
+	} else if ( 'double' === $sidebar ) {
275
+		register_sidebar( array(
276
+			'name'          => sprintf( __( 'Sidebar %d', 'rookie' ), 1 ),
277
+			'id'            => 'sidebar-1',
278
+			'description'   => '',
279
+			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
280
+			'after_widget'  => '</aside>',
281
+			'before_title'  => '<h1 class="widget-title">',
282
+			'after_title'   => '</h1>',
283
+		) );
284
+
285
+		register_sidebar( array(
286
+			'name'          => sprintf( __( 'Sidebar %d', 'rookie' ), 2 ),
287
+			'id'            => 'sidebar-2',
288
+			'description'   => '',
289
+			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
290
+			'after_widget'  => '</aside>',
291
+			'before_title'  => '<h1 class="widget-title">',
292
+			'after_title'   => '</h1>',
293
+		) );
294
+	}
295
+
296
+	register_sidebar( array(
297
+		'name'          => __( 'Header', 'rookie' ),
298
+		'id'            => 'header-1',
299
+		'description'   => '',
300
+		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
301
+		'after_widget'  => '</aside>',
302
+		'before_title'  => '<h1 class="widget-title">',
303
+		'after_title'   => '</h1>',
304
+	) );
305
+
306
+	register_sidebar( array(
307
+		'name'          => __( 'Homepage', 'rookie' ),
308
+		'id'            => 'homepage-1',
309
+		'description'   => '',
310
+		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
311
+		'after_widget'  => '</aside>',
312
+		'before_title'  => '<h1 class="widget-title">',
313
+		'after_title'   => '</h1>',
314
+	) );
315
+
316
+	for ( $i = 1; $i <= 3; $i++ ) {
317
+		register_sidebar( array(
318
+			'name' 				=> sprintf( __( 'Footer %d', 'rookie' ), $i ),
319
+			'id' 				=> sprintf( 'footer-%d', $i ),
320
+			'description' 		=> sprintf( __( 'Widgetized Footer Region %d.', 'rookie' ), $i ),
321
+			'before_widget' 	=> '<aside id="%1$s" class="widget %2$s">',
322
+			'after_widget' 		=> '</aside>',
323
+			'before_title' 		=> '<h3 class="widget-title">',
324
+			'after_title' 		=> '</h3>',
325
+		) );
326
+	}
327
+}
328
+add_action( 'widgets_init', 'rookie_widgets_init' );
329
+endif;
330
+
331
+/**
332
+ * Call Mega Slider action before content.
333
+ */
334
+if ( ! function_exists( 'rookie_mega_slider' ) ):
335
+function rookie_mega_slider() {
336
+	if ( ! is_front_page() ) return;
337
+	do_action( 'mega_slider' );
338
+}
339
+add_action( 'rookie_before_template', 'rookie_mega_slider' );
340
+endif;
341
+
342
+/**
343
+ * Enqueue scripts and styles.
344
+ */
345
+if ( ! function_exists( 'rookie_scripts' ) ):
346
+function rookie_scripts() {
347
+	// Load icon font.
348
+	wp_enqueue_style( 'dashicons' );
349
+
350
+	// Load web fonts.
351
+	wp_enqueue_style( 'rookie-lato', add_query_arg( array( 'family' => 'Lato:400,700,400italic,700italic', 'subset' => 'latin-ext' ), "//fonts.googleapis.com/css", array(), null ) );
352
+	wp_enqueue_style( 'rookie-oswald', add_query_arg( array( 'family' => 'Oswald:400,700', 'subset' => 'latin-ext' ), "//fonts.googleapis.com/css", array(), null ) );
353
+
354
+	// Load our framework stylesheet.
355
+	wp_enqueue_style( 'rookie-framework-style', get_template_directory_uri() . '/framework.css' );
356
+
357
+	// Load RTL framework stylesheet if needed.
358
+	if ( is_rtl() ) {
359
+		wp_enqueue_style( 'rookie-framework-rtl-style', get_template_directory_uri() . '/framework-rtl.css' );
360
+	}
361
+
362
+	// Load our main stylesheet.
363
+	wp_enqueue_style( 'rookie-style', get_stylesheet_uri() );
364
+
365
+	// Custom colors
366
+	add_action( 'wp_print_scripts', 'rookie_custom_colors', 30 );
367
+
368
+	wp_enqueue_script( 'rookie-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
369
+
370
+	wp_enqueue_script( 'rookie-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
371
+
372
+	rookie_enqueue_timeago();
373
+
374
+	wp_enqueue_script( 'rookie-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery', 'jquery-timeago' ), '0.9', true );
375
+
376
+	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
377
+		wp_enqueue_script( 'comment-reply' );
378
+	}
379
+}
380
+add_action( 'wp_enqueue_scripts', 'rookie_scripts' );
381
+endif;
382
+
383
+/**
384
+ * Enqueue customize scripts.
385
+ */
386
+if ( ! function_exists( 'rookie_customize_scripts' ) ):
387
+function rookie_customize_scripts() {
388
+	$screen = get_current_screen();
389
+	if ( 'customize' == $screen->id ) {
390
+		wp_enqueue_script( 'rookie-customize-panel', get_template_directory_uri() . '/js/customize-panel.js', array( 'jquery' ), '1.3.2', true );
391
+	} elseif ( 'appearance_page_rookie' == $screen->id ) {
392
+		wp_enqueue_style( 'rookie-admin', get_template_directory_uri() . '/admin.css');
393
+	}
394
+}
395
+add_action( 'admin_enqueue_scripts', 'rookie_customize_scripts' );
396
+endif;
397
+
398
+/**
399
+ * Enqueue jQuery timeago if locale available.
400
+ */
401
+if ( ! function_exists( 'rookie_enqueue_timeago' ) ):
402
+function rookie_enqueue_timeago() {
403
+	$locale = get_locale();
404
+	$locale = str_replace( '_', '-', $locale );
405
+	$file = '/js/locales/jquery.timeago.' . $locale . '.js';
406
+
407
+	// Check if locale exists with country code
408
+	if ( ! is_readable( get_template_directory() . $file ) ) {
409
+		$locale = substr( $locale, 0, 2 );
410
+		$file = '/js/locales/jquery.timeago.' . $locale . '.js';
411
+
412
+		// Check if locale exists without country code
413
+		if ( ! is_readable( get_template_directory() . $file ) ) {
414
+			return;
415
+		}
416
+	}
417
+
418
+	// Enqueue script
419
+	wp_enqueue_script( 'jquery-timeago', get_template_directory_uri() . '/js/jquery.timeago.js', array( 'jquery' ), '1.4.1', true );
420
+
421
+	// Enqueue locale
422
+	wp_enqueue_script( 'jquery-timeago-' . $locale, get_template_directory_uri() . $file, array( 'jquery', 'jquery-timeago' ), '1.4.1', true );
423
+}
424
+endif;
425
+
426
+/**
427
+ * Enqueue scripts and styles.
428
+ */
429
+if ( ! function_exists( 'rookie_custom_colors' ) ):
430
+function rookie_custom_colors() {
431
+
432
+	/*
433
+	 * Get color options set via Customizer.
434
+	 * @see rookie_customize_register()
435
+	 */
436
+	$colors = (array) get_option( 'themeboy', array() );
437
+	$colors = array_map( 'esc_attr', $colors );
438
+
439
+	// Get layout options
440
+	if ( empty( $colors['content_width'] ) ) {
441
+		$width = 1000;
442
+	} else {
443
+		$width = rookie_sanitize_content_width( $colors['content_width'] );
444
+	}
445
+
446
+	global $content_width;
447
+
448
+	if ( empty( $colors['sidebar'] ) ) {
449
+		$sidebar = '';
450
+	} else {
451
+		$sidebar = $colors['sidebar'];
452
+	}
453
+
454
+	if ( 'no' == $sidebar || is_page_template( 'template-fullwidth.php' ) ) {
455
+		$content_width = $width - 40;
456
+	} elseif ( 'double' === $sidebar )  {
457
+		$content_width = $width * .52 - 40;
458
+	} else {
459
+		$content_width = $width * .66 - 40;
460
+	}
461
+
462
+	?>
463
+	<style type="text/css"> /* Rookie Custom Layout */
464
+	@media screen and (min-width: 1025px) {
465
+		.site-header, .site-content, .site-footer, .site-info {
466
+			width: <?php echo $width; ?>px; }
467
+	}
468
+	</style>
469
+	<?php
470
+
471
+	// Return if colors not customized
472
+	if ( ! isset( $colors['customize'] ) ) {
473
+		$enabled = get_option( 'sportspress_enable_frontend_css', 'no' );
474
+		if ( 'yes' !== $enabled ) return;
475
+	} elseif ( ! $colors['customize'] ) {
476
+		return;
477
+	}
478
+
479
+	$colors['sponsors_background'] = get_option( 'sportspress_footer_sponsors_css_background', '#f4f4f4' );
480
+
481
+	// Defaults
482
+	if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e';
483
+	if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
484
+	if ( empty( $colors['content'] ) ) $colors['content'] = '#222222';
485
+	if ( empty( $colors['text'] ) ) $colors['text'] = '#222222';
486
+	if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';
487
+	if ( empty( $colors['link'] ) ) $colors['link'] = '#00a69c';
488
+	if ( empty( $colors['content_background'] ) ) $colors['content_background'] = '#ffffff';
489
+
490
+	// Calculate colors
491
+	$colors['highlight'] = rookie_hex_lighter( $colors['background'], 30, true );
492
+	$colors['border'] = rookie_hex_darker( $colors['background'], 20, true );
493
+	$colors['text_lighter'] = rookie_hex_mix( $colors['text'], $colors['background'] );
494
+	$colors['heading_alpha'] = 'rgba(' . implode( ', ', rookie_rgb_from_hex( $colors['heading'] ) ) . ', 0.7)';
495
+	$colors['link_dark'] = rookie_hex_darker( $colors['link'], 30, true );
496
+	$colors['link_hover'] = rookie_hex_darker( $colors['link'], 30, true );
497
+	$colors['sponsors_border'] = rookie_hex_darker( $colors['sponsors_background'], 20, true );
498
+	$colors['content_border'] = rookie_hex_darker( $colors['content_background'], 31, true );
499
+
500
+	?>
501
+	<style type="text/css"> /* Rookie Custom Colors */
502
+
503
+/* MODIFICATIONS */
504
+
505
+	.main-navigation .nav-menu > .menu-item-has-children:hover > a {
506
+		background: #c92a2e;
507
+		}
508
+	.main-navigation li.menu-item-has-children:hover a,
509
+	.main-navigation ul ul {
510
+		background: #f1ebd3;
511
+		}
512
+	.main-navigation li.menu-item-has-children:hover a:hover,
513
+	.main-navigation ul ul li.page_item_has_children:hover > a {
514
+		background: #c92a2e;
515
+		}
516
+	.main-navigation .nav-menu > .menu-item-has-children:hover > a,
517
+	.main-navigation ul ul a {
518
+		color: #ffffff;
519
+		}
520
+	.main-navigation li.menu-item-has-children:hover a:hover,
521
+	.main-navigation ul ul li.page_item_has_children:hover > a,
522
+	.main-navigation li.menu-item-has-children:hover ul .current-menu-item > a:hover,
523
+	.main-navigation li.menu-item-has-children:hover ul .current_page_item > a:hover	{
524
+		color: #ffffff;
525
+		}
526
+
527
+/* MODIFICATIONS */
528
+
529
+.site-content { background: <?php echo $colors['content_background']; ?>; }
530
+	pre,
531
+	code,
532
+	kbd,
533
+	tt,
534
+	var,
535
+	table,
536
+
537
+/*.main-navigation li.menu-item-has-children:hover a:hover,
538
+	.main-navigation ul ul li.page_item_has_children:hover > a,*/
539
+
540
+	.entry-footer-links,
541
+	.comment-content,
542
+	.sp-table-wrapper .dataTables_paginate,
543
+	.sp-event-staff,
544
+	.sp-template-countdown .event-name,
545
+	.sp-template-countdown .event-venue,
546
+	.sp-template-countdown .event-league,
547
+	.sp-template-countdown time span,
548
+	.sp-template-details dl,
549
+	.mega-slider__row,
550
+	.woocommerce .woocommerce-breadcrumb,
551
+	.woocommerce-page .woocommerce-breadcrumb,
552
+	.opta-widget-container form {
553
+		background: <?php echo $colors['background']; ?>; }
554
+	.comment-content:after {
555
+		border-right-color: <?php echo $colors['background']; ?>; }
556
+	.widget_calendar #today,
557
+	.sp-highlight,
558
+	.sp-template-event-calendar #today,
559
+	.sp-template-event-blocks .event-title,
560
+	.mega-slider__row:hover {
561
+		background: <?php echo $colors['highlight']; ?>; }
562
+	.sp-tournament-bracket .sp-team .sp-team-name:before {
563
+		border-left-color: <?php echo $colors['highlight']; ?>;
564
+		border-right-color: <?php echo $colors['highlight']; ?>; }
565
+	.sp-tournament-bracket .sp-event {
566
+		border-color: <?php echo $colors['highlight']; ?> !important; }
567
+	caption,
568
+	.main-navigation,
569
+	.site-footer,
570
+	.sp-heading,
571
+	.sp-table-caption,
572
+	.sp-template-gallery .gallery-caption,
573
+	.sp-template-event-logos .sp-team-result,
574
+	.sp-statistic-bar,
575
+	.opta-widget-container h2 {
576
+		background: <?php echo $colors['primary']; ?>; }
577
+	pre,
578
+	code,
579
+	kbd,
580
+	tt,
581
+	var,
582
+	table,
583
+	th,
584
+	td,
585
+	tbody td,
586
+	th:first-child, td:first-child,
587
+	th:last-child, td:last-child,
588
+	input[type="text"],
589
+	input[type="email"],
590
+	input[type="url"],
591
+	input[type="password"],
592
+	input[type="search"],
593
+    input[type="tel"],
594
+    input[type="date"],
595
+	textarea,
596
+	.entry-footer-links,
597
+	.comment-metadata .edit-link,
598
+	.comment-content,
599
+	.sp-table-wrapper .dataTables_paginate,
600
+	.sp-event-staff,
601
+	.sp-template-countdown .event-name,
602
+	.sp-template-countdown .event-venue,
603
+	.sp-template-countdown .event-league,
604
+	.sp-template-countdown time span,
605
+	.sp-template-countdown time span:first-child,
606
+	.sp-template-event-blocks .event-title,
607
+	.sp-template-details dl,
608
+	.sp-template-tournament-bracket table,
609
+	.sp-template-tournament-bracket thead th,
610
+	.mega-slider_row,
611
+	.woocommerce .woocommerce-breadcrumb,
612
+	.woocommerce-page .woocommerce-breadcrumb,
613
+	.opta-widget-container form {
614
+		border-color: <?php echo $colors['border']; ?>; }
615
+	.comment-content:before {
616
+		border-right-color: <?php echo $colors['border']; ?>; }
617
+	.sp-tab-menu {
618
+		border-bottom-color: <?php echo $colors['content_border']; ?>; }
619
+	body,
620
+	button,
621
+	input,
622
+	select,
623
+	textarea,
624
+
625
+  /* MODIFICATIONS */
626
+
627
+/*	.main-navigation .nav-menu > .menu-item-has-children:hover > a, */
628
+	.main-navigation ul ul a,
629
+	.widget_recent_entries ul li:before,
630
+	.widget_pages ul li:before,
631
+	.widget_categories ul li:before,
632
+	.widget_archive ul li:before,
633
+	.widget_recent_comments ul li:before,
634
+	.widget_nav_menu ul li:before,
635
+	.widget_links ul li:before,
636
+	.widget_meta ul li:before,
637
+	.entry-title a,
638
+	a .entry-title,
639
+	.page-title a,
640
+	a .page-title,
641
+	.entry-title a:hover,
642
+	a:hover .entry-title,
643
+	.page-title a:hover,
644
+	a:hover .page-title:hover,
645
+	.woocommerce ul.products li.product h3,
646
+	.woocommerce-page ul.products li.product h3 {
647
+		color: <?php echo $colors['content']; ?>; }
648
+	pre,
649
+	code,
650
+	kbd,
651
+	tt,
652
+	var,
653
+	table,
654
+
655
+  /* MODIFICATIONS */
656
+
657
+/*	.main-navigation li.menu-item-has-children:hover a:hover, */
658
+
659
+	.main-navigation ul ul li.page_item_has_children:hover > a,
660
+	.entry-meta,
661
+	.entry-footer-links,
662
+	.comment-content,
663
+	.sp-data-table,
664
+	.site-footer .sp-data-table,
665
+	.sp-table-wrapper .dataTables_paginate,
666
+	.sp-template,
667
+	.sp-template-countdown .event-venue,
668
+	.sp-template-countdown .event-league,
669
+	.sp-template-countdown .event-name a,
670
+	.sp-template-countdown time span,
671
+	.sp-template-details dl,
672
+	.sp-template-event-blocks .event-title,
673
+	.sp-template-event-blocks .event-title a,
674
+	.sp-tournament-bracket .sp-event .sp-event-date,
675
+	.mega-slider,
676
+	.woocommerce .woocommerce-breadcrumb,
677
+	.woocommerce-page .woocommerce-breadcrumb {
678
+		color: <?php echo $colors['text']; ?>; }
679
+	.widget_recent_entries ul li a,
680
+	.widget_pages ul li a,
681
+	.widget_categories ul li a,
682
+	.widget_archive ul li a,
683
+	.widget_recent_comments ul li a,
684
+	.widget_nav_menu ul li a,
685
+	.widget_links ul li a,
686
+	.widget_meta ul li a,
687
+	.widget_calendar #prev a,
688
+	.widget_calendar #next a,
689
+	.nav-links a,
690
+	.comment-metadata a,
691
+	.comment-body .reply a,
692
+	.wp-caption-text,
693
+	.sp-view-all-link,
694
+	.sp-template-event-calendar #prev a,
695
+	.sp-template-event-calendar #next a,
696
+	.sp-template-tournament-bracket .sp-event-venue,
697
+	.woocommerce .woocommerce-breadcrumb,
698
+	.woocommerce-page .woocommerce-breadcrumb,
699
+	.woocommerce .woocommerce-breadcrumb a,
700
+	.woocommerce-page .woocommerce-breadcrumb a {
701
+		color: <?php echo $colors['text_lighter']; ?>; }
702
+	caption,
703
+	button,
704
+	input[type="button"],
705
+	input[type="reset"],
706
+	input[type="submit"],
707
+	.main-navigation .nav-menu > li:hover > a,
708
+	.main-navigation.toggled .menu-toggle,
709
+	.site-footer,
710
+	.sp-template .gallery-caption,
711
+	.sp-template .gallery-caption a,
712
+	.sp-heading,
713
+	.sp-heading:hover,
714
+	.sp-heading a:hover,
715
+	.sp-table-caption,
716
+	.sp-template-event-logos .sp-team-result,
717
+	.sp-template-tournament-bracket .sp-result,
718
+	.single-sp_player .entry-header .entry-title strong {
719
+		color: <?php echo $colors['heading']; ?>; }
720
+	.main-navigation a,
721
+	.main-navigation .menu-toggle {
722
+		color: <?php echo $colors['heading_alpha']; ?>; }
723
+	a,
724
+	blockquote:before,
725
+	q:before,
726
+	.main-navigation ul ul .current-menu-item > a,
727
+	.main-navigation ul ul .current-menu-parent > a,
728
+	.main-navigation ul ul .current-menu-ancestor > a,
729
+	.main-navigation ul ul .current_page_item > a,
730
+
731
+    /* MODIFICATIONS */
732
+
733
+/*	.main-navigation ul ul .current_page_parent > a, */
734
+
735
+	.main-navigation ul ul .current_page_ancestor > a,
736
+	.main-navigation li.menu-item-has-children:hover ul .current-menu-item > a:hover,
737
+	.main-navigation li.menu-item-has-children:hover ul .current-menu-parent > a:hover,
738
+	.main-navigation li.menu-item-has-children:hover ul .current-menu-ancestor > a:hover,
739
+
740
+    /* MODIFICATIONS */
741
+
742
+/*	.main-navigation li.menu-item-has-children:hover ul .current_page_item > a:hover,*/
743
+
744
+	.main-navigation li.menu-item-has-children:hover ul .current_page_parent > a:hover,
745
+	.main-navigation li.menu-item-has-children:hover ul .current_page_ancestor > a:hover,
746
+	.widget_recent_entries ul li a:hover,
747
+	.widget_pages ul li a:hover,
748
+	.widget_categories ul li a:hover,
749
+	.widget_archive ul li a:hover,
750
+	.widget_recent_comments ul li a:hover,
751
+	.widget_nav_menu ul li a:hover,
752
+	.widget_links ul li a:hover,
753
+	.widget_meta ul li a:hover,
754
+	.widget_calendar #prev a:hover,
755
+	.widget_calendar #next a:hover,
756
+	.nav-links a:hover,
757
+	.sticky .entry-title:before,
758
+	.comment-metadata a:hover,
759
+	.comment-body .reply a:hover,
760
+	.sp-view-all-link:hover,
761
+	.sp-template-event-calendar #prev a:hover,
762
+	.sp-template-event-calendar #next a:hover,
763
+	.single-sp_staff .entry-header .entry-title strong,
764
+	.sp-message {
765
+		color: <?php echo $colors['link']; ?>; }
766
+	cite:before,
767
+	button,
768
+	input[type="button"],
769
+	input[type="reset"],
770
+	input[type="submit"],
771
+	.main-navigation .nav-menu > li:hover > a,
772
+	.main-navigation .search-form .search-submit:hover,
773
+	.nav-links .meta-nav,
774
+	.entry-footer a,
775
+	.sp-template-player-gallery .gallery-item strong,
776
+	.sp-template-tournament-bracket .sp-result,
777
+	.single-sp_player .entry-header .entry-title strong,
778
+	.sp-statistic-bar-fill,
779
+	.mega-slider__row--active,
780
+	.mega-slider__row--active:hover {
781
+		background: <?php echo $colors['link']; ?>; }
782
+	.sp-message {
783
+		border-color: <?php echo $colors['link']; ?>; }
784
+	caption,
785
+	.sp-table-caption,
786
+	.opta-widget-container h2 {
787
+		border-top-color: <?php echo $colors['link']; ?>; }
788
+	.sp-tab-menu-item-active a {
789
+		border-bottom-color: <?php echo $colors['link']; ?>; }
790
+	button:hover,
791
+	input[type="button"]:hover,
792
+	input[type="reset"]:hover,
793
+	input[type="submit"]:hover,
794
+	button:focus,
795
+	input[type="button"]:focus,
796
+	input[type="reset"]:focus,
797
+	input[type="submit"]:focus,
798
+	button:active,
799
+	input[type="button"]:active,
800
+	input[type="reset"]:active,
801
+	input[type="submit"]:active,
802
+	.entry-footer a:hover,
803
+	.nav-links a:hover .meta-nav,
804
+	.sp-template-tournament-bracket .sp-event-title:hover .sp-result {
805
+		background: <?php echo $colors['link_dark']; ?>; }
806
+	.widget_search .search-submit {
807
+		border-color: <?php echo $colors['link_dark']; ?>; }
808
+	a:hover {
809
+		color: <?php echo $colors['link_hover']; ?>; }
810
+	.sp-template-event-logos {
811
+		color: inherit; }
812
+	.sp-footer-sponsors .sp-sponsors {
813
+		border-color: <?php echo $colors['sponsors_border']; ?>; }
814
+	@media screen and (max-width: 600px) {
815
+		.main-navigation .nav-menu > li:hover > a,
816
+		.main-navigation ul ul li.page_item_has_children:hover > a {
817
+			color: <?php echo $colors['heading']; ?>;
818
+			background: transparent; }
819
+		.main-navigation .nav-menu li a:hover,
820
+		.main-navigation .search-form .search-submit {
821
+			color: <?php echo $colors['heading']; ?>;
822
+			background: <?php echo $colors['link']; ?>; }
823
+		.main-navigation .nav-menu > .menu-item-has-children:hover > a,
824
+		.main-navigation li.menu-item-has-children:hover a {
825
+			background: transparent; }
826
+		.main-navigation ul ul {
827
+			background: rgba(0, 0, 0, 0.1); }
828
+		.main-navigation .nav-menu > .menu-item-has-children:hover > a:hover,
829
+		.main-navigation li.menu-item-has-children:hover a:hover {
830
+			background: <?php echo $colors['link']; ?>;
831
+			color: #fff;
832
+		}
833
+		.main-navigation ul ul a,
834
+		.main-navigation .nav-menu > .menu-item-has-children:hover > a {
835
+			color: <?php echo $colors['heading_alpha']; ?>; }
836
+		.main-navigation .nav-menu > .current-menu-item > a,
837
+		.main-navigation .nav-menu > .current-menu-parent > a,
838
+		.main-navigation .nav-menu > .current-menu-ancestor > a,
839
+		.main-navigation .nav-menu > .current_page_item > a,
840
+		.main-navigation .nav-menu > .current_page_parent > a,
841
+		.main-navigation .nav-menu > .current_page_ancestor > a,
842
+		.main-navigation .nav-menu > .current-menu-item:hover > a,
843
+		.main-navigation .nav-menu > .current-menu-parent:hover > a,
844
+		.main-navigation .nav-menu > .current-menu-ancestor:hover > a,
845
+		.main-navigation .nav-menu > .current_page_item:hover > a,
846
+		.main-navigation .nav-menu > .current_page_parent:hover > a,
847
+		.main-navigation .nav-menu > .current_page_ancestor:hover > a,
848
+		.main-navigation ul ul .current-menu-parent > a,
849
+		.main-navigation ul ul .current-menu-ancestor > a,
850
+		.main-navigation ul ul .current_page_parent > a,
851
+		.main-navigation ul ul .current_page_ancestor > a,
852
+		.main-navigation li.menu-item-has-children:hover ul .current-menu-item > a:hover,
853
+		.main-navigation li.menu-item-has-children:hover ul .current-menu-parent > a:hover,
854
+		.main-navigation li.menu-item-has-children:hover ul .current-menu-ancestor > a:hover,
855
+		.main-navigation li.menu-item-has-children:hover ul .current_page_item > a:hover,
856
+		.main-navigation li.menu-item-has-children:hover ul .current_page_parent > a:hover,
857
+		.main-navigation li.menu-item-has-children:hover ul .current_page_ancestor > a:hover {
858
+			color: #fff;
859
+		}
860
+	}
861
+	@media screen and (min-width: 601px) {
862
+		.content-area,
863
+		.widecolumn {
864
+			box-shadow: 1px 0 0 <?php echo $colors['content_border']; ?>;
865
+		}
866
+		.widget-area {
867
+			box-shadow: inset 1px 0 0 <?php echo $colors['content_border']; ?>; }
868
+		.widget-area-left {
869
+			box-shadow: inset -1px 0 0 <?php echo $colors['content_border']; ?>; }
870
+		.rtl .content-area,
871
+		.rtl .widecolumn {
872
+			box-shadow: -1px 0 0 <?php echo $colors['content_border']; ?>;
873
+		}
874
+
875
+		.rtl .widget-area,
876
+		.rtl .widget-area-left {
877
+			box-shadow: inset -1px 0 0 <?php echo $colors['content_border']; ?>; }
878
+		.rtl .widget-area-right {
879
+			box-shadow: inset 1px 0 0 <?php echo $colors['content_border']; ?>; }
880
+	}
881
+	@media screen and (max-width: 1199px) {
882
+		.social-sidebar {
883
+			box-shadow: inset 0 1px 0 <?php echo $colors['content_border']; ?>; }
884
+	}
885
+
886
+	<?php do_action( 'sportspress_frontend_css', $colors ); ?>
887
+
888
+	</style>
889
+	<?php
890
+}
891
+endif;
892
+
893
+if ( is_admin() ):
894
+	require_once get_template_directory() . '/inc/admin.php';
895
+endif;
896
+
897
+/**
898
+ * Custom template tags for this theme.
899
+ */
900
+require get_template_directory() . '/inc/template-tags.php';
901
+
902
+/**
903
+ * Customizer additions.
904
+ */
905
+require get_template_directory() . '/inc/customizer.php';
906
+
907
+/**
908
+ * Load Jetpack compatibility file.
909
+ */
910
+require get_template_directory() . '/inc/jetpack.php';
911
+
912
+/**
913
+* Include the TGMPA class.
914
+*/
915
+require_once get_template_directory() . '/inc/class-tgm-plugin-activation.php';
916
+
917
+/**
918
+ * Move SportsPress header sponsors selector.
919
+ */
920
+if ( ! function_exists( 'rookie_header_sponsors' ) ):
921
+function rookie_header_sponsors() {
922
+	return '.site-branding hgroup';
923
+}
924
+add_filter( 'sportspress_header_sponsors_selector', 'rookie_header_sponsors' );
925
+endif;
926
+
927
+/**
928
+ * Display footer elements
929
+ */
930
+if ( ! function_exists( 'rookie_footer' ) ):
931
+function rookie_footer() {
932
+	rookie_footer_copyright();
933
+	rookie_footer_credit();
934
+}
935
+endif;
936
+
937
+/**
938
+ * Display footer copyright notice
939
+ */
940
+if ( ! function_exists( 'rookie_footer_copyright' ) ):
941
+function rookie_footer_copyright() {
942
+	?>
943
+	<div class="site-copyright">
944
+		<?php echo apply_filters( 'rookie_footer_copyright', sprintf( _x( '&copy; %1$s %2$s', 'copyright info', 'rookie' ), date( 'Y' ), get_bloginfo( 'name' ) ) ); ?>
945
+	</div><!-- .site-copyright -->
946
+	<?php
947
+}
948
+endif;
949
+
950
+/**
951
+ * Display footer credit
952
+ */
953
+if ( ! function_exists( 'rookie_footer_credit' ) ):
954
+function rookie_footer_credit() {
955
+	?>
956
+<?php
957
+  // MODIFICATIONS
958
+?>
959
+	<div class="site-credit">
960
+		:) Yannit Rozo est drôôle
961
+  <!--
962
+    <?php echo apply_filters( 'rookie_footer_credit', '<a href="http://themeboy.com/">' . sprintf( __( 'Designed by %s', 'rookie' ), 'ThemeBoy' ) . '</a>' ); ?>
963
+  -->
964
+	</div>
965
+	<?php
966
+}
967
+endif;
968
+
969
+function rookie_register_required_plugins() {
970
+	$plugins = array(
971
+		array(
972
+			'name'      => 'SportsPress',
973
+			'slug'      => 'sportspress',
974
+			'required'  => true,
975
+			'is_callable' => array( 'SportsPress', 'instance' ),
976
+		),
977
+	);
978
+
979
+	$config = array(
980
+		'id' => 'rookie',
981
+		'default_path' => '',
982
+		'menu'         => 'tgmpa-install-plugins',
983
+		'has_notices'  => true,
984
+		'dismissable'  => true,
985
+		'is_automatic' => true,
986
+		'message'      => '',
987
+		'strings'      => array(
988
+			'nag_type' => 'updated'
989
+		)
990
+	);
991
+
992
+	$plugins = apply_filters( 'rookie_required_plugins', $plugins );
993
+
994
+	tgmpa( $plugins, $config );
995
+}
996
+add_action( 'tgmpa_register', 'rookie_register_required_plugins' );
997
+
998
+/**
999
+ * Disable default gallery style
1000
+ */
1001
+add_filter( 'use_default_gallery_style', '__return_false' );
1002
+
1003
+/**
1004
+ * Helper functions
1005
+ */
1006
+
1007
+/**
1008
+ * Sanitizes a hex color. Identical to core's sanitize_hex_color(), which is not available on the wp_head hook.
1009
+ *
1010
+ * Returns either '', a 3 or 6 digit hex color (with #), or null.
1011
+ * For sanitizing values without a #, see sanitize_hex_color_no_hash().
1012
+ */
1013
+if ( ! function_exists( 'rookie_sanitize_hex_color' ) ) {
1014
+    function rookie_sanitize_hex_color( $color ) {
1015
+        if ( '' === $color )
1016
+            return '';
1017
+
1018
+        // 3 or 6 hex digits, or the empty string.
1019
+        if ( preg_match( '|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) )
1020
+            return $color;
1021
+
1022
+        return null;
1023
+    }
1024
+}
1025
+
1026
+/**
1027
+ * Sanitizes a checkbox option. Defaults to 'no'.
1028
+ */
1029
+if ( ! function_exists( 'rookie_sanitize_checkbox' ) ) {
1030
+    function rookie_sanitize_checkbox( $value ) {
1031
+    	return true == $value;
1032
+    }
1033
+}
1034
+
1035
+/**
1036
+ * Sanitizes a radio option. Defaults to setting default from customize API.
1037
+ */
1038
+if ( ! function_exists( 'rookie_sanitize_choices' ) ) {
1039
+    function rookie_sanitize_choices( $value, $setting ) {
1040
+    	global $wp_customize;
1041
+
1042
+    	$control = $wp_customize->get_control( $setting->id );
1043
+
1044
+    	return $value;
1045
+
1046
+    	if ( array_key_exists( $value, $control->choices ) ) {
1047
+	        return $value;
1048
+	    } else {
1049
+        	return $setting->default;
1050
+    	}
1051
+    }
1052
+}
1053
+
1054
+/**
1055
+ * Sanitizes content width option. Defaults to 1000.
1056
+ */
1057
+if ( ! function_exists( 'rookie_sanitize_content_width' ) ) {
1058
+    function rookie_sanitize_content_width( $value ) {
1059
+    	$value = absint( $value );
1060
+    	if ( 500 > $value ) {
1061
+    		$value = 1000;
1062
+    	}
1063
+    	return round( $value, -1 );
1064
+    }
1065
+}
1066
+
1067
+/**
1068
+ * Sanitizes a header image style option. Defaults to first element in options array.
1069
+ */
1070
+if ( ! function_exists( 'rookie_sanitize_header_image_style' ) ) {
1071
+    function rookie_sanitize_header_image_style( $value ) {
1072
+		$style_options = apply_filters( 'rookie_header_image_style_options', array(
1073
+	        'background' => __( 'Background', 'rookie' ),
1074
+	        'image' => __( 'Image', 'rookie' ),
1075
+	    ) );
1076
+
1077
+		// Return given value if it's a valid option
1078
+		if ( array_key_exists( $value, $style_options ) ) {
1079
+			return $value;
1080
+		}
1081
+
1082
+		// Otherwise, return the first valid option
1083
+		reset( $style_options );
1084
+		$value = key( $style_options );
1085
+		return $value;
1086
+    }
1087
+}
1088
+
1089
+/**
1090
+ * Define pages for starter content.
1091
+ */
1092
+if ( ! function_exists( 'rookie_starter_content_posts' ) ) {
1093
+	function rookie_starter_content_posts() {
1094
+		$posts = array(
1095
+			'home',
1096
+			'blog',
1097
+		);
1098
+
1099
+		if ( class_exists( 'SportsPress' ) ) {
1100
+			$tables = (array) get_posts("post_type=sp_table&numberposts=1&fields=ids");
1101
+			$calendars = (array) get_posts("post_type=sp_calendar&numberposts=1&fields=ids");
1102
+			$lists = (array) get_posts("post_type=sp_list&numberposts=1&fields=ids");
1103
+
1104
+			$posts['fixtures-results'] = array(
1105
+				'post_type' => 'page',
1106
+				'post_title' => __( 'Fixtures & Results', 'rookie' ),
1107
+				'post_content' => wp_strip_all_tags( get_post_field( 'post_content', reset( $calendars ) ) ) .
1108
+					'[event_blocks title="' . __( 'Fixtures', 'rookie' ) . '" status="future" date="" order="ASC" number="3" show_all_events_link="0" align="left"]' .
1109
+					'[event_blocks title="' . __( 'Results', 'rookie' ) . '" status="publish" date="" order="DESC" number="3" show_all_events_link="0" align="right"]' .
1110
+					'[event_calendar show_all_events_link="0"]' .
1111
+					'[event_list ' . reset( $calendars ) . ' title="Event List" columns="event,teams,time" number="5" show_all_events_link="1"]',
1112
+			);
1113
+			$posts['league-table'] = array(
1114
+				'post_type' => 'page',
1115
+				'post_title' => __( 'League Table', 'rookie' ),
1116
+				'post_content' => wp_strip_all_tags( get_post_field( 'post_content', reset( $tables ) ) ) .
1117
+					'[league_table ' . reset( $tables ) . ']',
1118
+			);
1119
+			$posts['roster'] = array(
1120
+				'post_type' => 'page',
1121
+				'post_title' => __( 'Roster', 'rookie' ),
1122
+				'post_content' => wp_strip_all_tags( get_post_field( 'post_content', reset( $lists ) ) ) .
1123
+					'[player_gallery ' . reset( $lists ) . ' orderby="number" show_all_players_link="0"]',
1124
+			);
1125
+			$posts['home']['post_content'] = '';
1126
+		} else {
1127
+			$tgmpa = new TGM_Plugin_Activation();
1128
+			$tgmpa->init();
1129
+			if ( isset( $tgmpa->strings['notice_cannot_install_activate'] ) ) {
1130
+				$posts['home']['post_content'] = wp_kses_post( $tgmpa->strings['notice_cannot_install_activate'] );
1131
+			}
1132
+		}
1133
+
1134
+		return $posts;
1135
+	}
1136
+}
1137
+
1138
+if ( ! function_exists( 'rookie_get_sidebar_setting' ) ) {
1139
+    function rookie_get_sidebar_setting() {
1140
+		// Get theme options
1141
+		$options = (array) get_option( 'themeboy', array() );
1142
+		$options = array_map( 'esc_attr', $options );
1143
+
1144
+		// Apply default setting
1145
+		if ( empty( $options['sidebar'] ) ) {
1146
+		    $options['sidebar'] = is_rtl() ? 'left' : 'right';
1147
+		}
1148
+
1149
+		return $options['sidebar'];
1150
+	}
1151
+}
1152
+
1153
+if ( ! function_exists( 'rookie_rgb_from_hex' ) ) {
1154
+	function rookie_rgb_from_hex( $color ) {
1155
+		$color = str_replace( '#', '', $color );
1156
+		// Convert shorthand colors to full format, e.g. "FFF" -> "FFFFFF"
1157
+		$color = preg_replace( '~^(.)(.)(.)$~', '$1$1$2$2$3$3', $color );
1158
+
1159
+		$rgb['r'] = hexdec( $color[0].$color[1] );
1160
+		$rgb['g'] = hexdec( $color[2].$color[3] );
1161
+		$rgb['b'] = hexdec( $color[4].$color[5] );
1162
+		return $rgb;
1163
+	}
1164
+}
1165
+
1166
+if ( ! function_exists( 'rookie_hex_darker' ) ) {
1167
+	function rookie_hex_darker( $color, $factor = 30, $absolute = false ) {
1168
+		$base = rookie_rgb_from_hex( $color );
1169
+		$color = '#';
1170
+
1171
+		foreach ($base as $k => $v) :
1172
+	    	if ( $absolute ) {
1173
+	    		$amount = $factor;
1174
+	    	} else {
1175
+		        $amount = $v / 100;
1176
+		        $amount = round($amount * $factor);
1177
+		    }
1178
+	        $new_decimal = max( $v - $amount, 0 );
1179
+
1180
+	        $new_hex_component = dechex($new_decimal);
1181
+	        if(strlen($new_hex_component) < 2) :
1182
+	        	$new_hex_component = "0" . $new_hex_component;
1183
+	        endif;
1184
+	        $color .= $new_hex_component;
1185
+		endforeach;
1186
+
1187
+		return $color;
1188
+	}
1189
+}
1190
+
1191
+if ( ! function_exists( 'rookie_hex_lighter' ) ) {
1192
+	function rookie_hex_lighter( $color, $factor = 30, $absolute = false ) {
1193
+		$base = rookie_rgb_from_hex( $color );
1194
+		$color = '#';
1195
+
1196
+	    foreach ($base as $k => $v) :
1197
+	    	if ( $absolute ) {
1198
+	    		$amount = $factor;
1199
+	    	} else {
1200
+		        $amount = 255 - $v;
1201
+		        $amount = $amount / 100;
1202
+		        $amount = round($amount * $factor);
1203
+		    }
1204
+	        $new_decimal = min( $v + $amount, 255 );
1205
+
1206
+	        $new_hex_component = dechex($new_decimal);
1207
+	        if(strlen($new_hex_component) < 2) :
1208
+	        	$new_hex_component = "0" . $new_hex_component;
1209
+	        endif;
1210
+	        $color .= $new_hex_component;
1211
+	   	endforeach;
1212
+
1213
+	   	return $color;
1214
+	}
1215
+}
1216
+
1217
+if ( ! function_exists( 'rookie_hex_mix' ) ) {
1218
+	function rookie_hex_mix( $x, $y ) {
1219
+		$rgbx = rookie_rgb_from_hex( $x );
1220
+		$rgby = rookie_rgb_from_hex( $y );
1221
+		$r = str_pad( dechex( ( $rgbx['r'] + $rgby['r'] ) / 2 ), 2, '0', STR_PAD_LEFT );
1222
+		$g = str_pad( dechex( ( $rgbx['g'] + $rgby['g'] ) / 2 ), 2, '0', STR_PAD_LEFT );
1223
+		$b = str_pad( dechex( ( $rgbx['b'] + $rgby['b'] ) / 2 ), 2, '0', STR_PAD_LEFT );
1224
+		return '#' . $r . $g . $b;
1225
+	}
1226
+}
1227
+
1228
+/**
1229
+ * Detect the brightness of a hex color
1230
+ * Adapted from http://www.webmasterworld.com/forum88/9769.htm
1231
+ */
1232
+if ( ! function_exists( 'rookie_hex_brightness' ) ) {
1233
+	function rookie_hex_brightness( $color = 'ffffff' ) {
1234
+		$color = str_replace( '#', '', $color );
1235
+		$rgb = rookie_rgb_from_hex( $color );
1236
+
1237
+		return ( ( $rgb['r'] * 0.299 ) + ( $rgb['g'] * 0.587 ) + ( $rgb['b'] * 0.114 ) );
1238
+	}
1239
+}
... ...
@@ -0,0 +1,989 @@
1
+/*
2
+Theme Name: Rookie
3
+Theme URI: https://www.themeboy.com/rookie/
4
+Author: ThemeBoy
5
+Author URI: https://www.themeboy.com
6
+Description: Rookie is a fully responsive theme made for sports organisations looking to use the SportsPress plugin. Once you’ve installed the theme and SportsPress, you'll be able to select a preset for your sport and demo content to help you get started on building your sports website.
7
+Version: 1.5.4
8
+Requires at least: 3.8
9
+Tested up to: 5.7
10
+Requires PHP: 5.6
11
+Stable tag: 1.5.4
12
+License: GNU General Public License v2 or later
13
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
+Text Domain: rookie
15
+Tags: one-column, two-columns, three-columns, left-sidebar, right-sidebar, flexible-header, buddypress, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, entertainment, news
16
+
17
+This theme, like WordPress, is licensed under the GPL.
18
+Use it to make something cool, have fun, and share what you've learned with others.
19
+
20
+Rookie is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
21
+
22
+Resetting and rebuilding styles have been helped along thanks to the fine work of
23
+Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
24
+along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
25
+and Blueprint http://www.blueprintcss.org/
26
+*/
27
+
28
+/* Heading Font */
29
+h1,
30
+h2,
31
+h3,
32
+h4,
33
+h5,
34
+h6,
35
+caption,
36
+.menu-toggle,
37
+.main-navigation a,
38
+.gallery-caption,
39
+.wp-caption-text.gallery-caption,
40
+.sp-table-caption,
41
+.sp-template-countdown time span,
42
+.sp-template-event-logos,
43
+.sp-template .player-gallery-group-name,
44
+.single-sp_staff .entry-header .entry-title strong {
45
+    font-family: "Oswald", sans-serif;
46
+    font-weight: normal;
47
+    text-transform: uppercase;
48
+}
49
+
50
+/* Body Font */
51
+body,
52
+button,
53
+input,
54
+select,
55
+textarea,
56
+.sp-template-countdown .event-name,
57
+.sp-template-countdown .event-venue,
58
+.sp-template-countdown .event-league,
59
+.sp-template-countdown time span small,
60
+.sp-template-event-blocks .event-title {
61
+    font-family: "Lato", sans-serif;
62
+    text-transform: none;
63
+}
64
+
65
+/* Site Footer Font */
66
+.site-info {
67
+    font-size: 11px;
68
+    text-transform: uppercase;
69
+}
70
+
71
+/**
72
+ * Table Cell Font
73
+ * Deactivated font-size = 100%
74
+ */
75
+th,
76
+td {
77
+    /* font-size: 14px; */
78
+    text-align: center;
79
+}
80
+
81
+/* Body Text Color */
82
+body,
83
+button,
84
+input,
85
+select,
86
+textarea {
87
+    color: #222;
88
+}
89
+
90
+blockquote,
91
+q {
92
+    font-weight: bold;
93
+    font-size: 18px;
94
+}
95
+
96
+blockquote p {
97
+    display: inline;
98
+}
99
+
100
+cite {
101
+    display: block;
102
+    font-weight: normal;
103
+    font-size: 14px;
104
+    position: relative;
105
+    text-indent: 2.5em;
106
+    margin-top: 0.5em;
107
+}
108
+
109
+cite:before {
110
+    content: "";
111
+    display: block;
112
+    position: absolute;
113
+    left: 0;
114
+    top: 0.75em;
115
+    width: 2em;
116
+    height: 1px;
117
+}
118
+
119
+/* Quote Icon Color */
120
+blockquote:before,
121
+q:before {
122
+    color: #00a69c;
123
+}
124
+
125
+cite:before {
126
+    background: #00a69c;
127
+}
128
+
129
+/* Code Color */
130
+pre,
131
+code,
132
+kbd,
133
+tt,
134
+var {
135
+    background: #f4f4f4;
136
+    border: 1px solid #e0e0e0;
137
+}
138
+
139
+table {
140
+    border-collapse: collapse;
141
+    background: #f4f4f4;
142
+}
143
+
144
+/* Horizontal Rule Color */
145
+hr {
146
+    background: #ccc;
147
+}
148
+
149
+/* Caption Color */
150
+caption {
151
+    color: #fff;
152
+    background: #2b353e;
153
+    border-top: 8px solid #00a69c;
154
+}
155
+
156
+/* Table Cell Color */
157
+table,
158
+th,
159
+td {
160
+    border: 1px solid #e0e0e0;
161
+}
162
+
163
+/* Button Color */
164
+button,
165
+input[type="button"],
166
+input[type="reset"],
167
+input[type="submit"] {
168
+    color: #fff;
169
+    background: #00a69c;
170
+    border-radius: 3px;
171
+}
172
+
173
+/* Button Hover Color */
174
+button:hover,
175
+input[type="button"]:hover,
176
+input[type="reset"]:hover,
177
+input[type="submit"]:hover,
178
+button:focus,
179
+input[type="button"]:focus,
180
+input[type="reset"]:focus,
181
+input[type="submit"]:focus,
182
+button:active,
183
+input[type="button"]:active,
184
+input[type="reset"]:active,
185
+input[type="submit"]:active {
186
+    background: #00958c;
187
+}
188
+
189
+/* Input Color */
190
+input[type="text"],
191
+input[type="email"],
192
+input[type="url"],
193
+input[type="password"],
194
+input[type="search"],
195
+input[type="tel"],
196
+input[type="date"],
197
+textarea {
198
+    color: #666;
199
+    border: 1px solid #ccc;
200
+}
201
+
202
+/* Input Focus Color */
203
+input[type="text"]:focus,
204
+input[type="email"]:focus,
205
+input[type="url"]:focus,
206
+input[type="password"]:focus,
207
+input[type="search"]:focus,
208
+input[type="tel"]:focus,
209
+input[type="date"]:focus,
210
+textarea:focus {
211
+    color: #111;
212
+}
213
+
214
+/* Background Color */
215
+body {
216
+    background: #e8e8e8;
217
+}
218
+
219
+/* Site Logo */
220
+.site-logo {
221
+    margin: -1.75em 0 0;
222
+}
223
+
224
+/* Site Widgets */
225
+.header-area-custom .site-widgets {
226
+    padding: 10px;
227
+}
228
+
229
+/* Custom Header */
230
+.header-area-custom {
231
+    background-size: cover;
232
+    background-position: center;
233
+    background-repeat: no-repeat;
234
+}
235
+
236
+.header-area-custom .site-logo {
237
+    margin-top: -1em;
238
+}
239
+
240
+.header-area-custom .site-branding {
241
+    padding: 1.75em;
242
+    min-height: 150px;
243
+    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
244
+}
245
+
246
+/* Tagline Color */
247
+.site-branding hgroup {
248
+    color: #222;
249
+}
250
+
251
+/* Content Color */
252
+.site-content {
253
+    background: #fff;
254
+    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
255
+}
256
+
257
+/* Footer Color */
258
+.site-footer {
259
+    background: #2b353e;
260
+    color: #fff;
261
+}
262
+
263
+.site-footer .sp-data-table {
264
+    color: #222;
265
+}
266
+
267
+.site-footer .footer-widget-region {
268
+    padding: 20px;
269
+}
270
+
271
+.site-footer .widget_recent_entries ul li:before,
272
+.site-footer .widget_pages ul li:before,
273
+.site-footer .widget_categories ul li:before,
274
+.site-footer .widget_archive ul li:before,
275
+.site-footer .widget_recent_comments ul li:before,
276
+.site-footer .widget_nav_menu ul li:before,
277
+.site-footer .widget_links ul li:before,
278
+.site-footer .widget_meta ul li:before {
279
+    color: inherit;
280
+}
281
+
282
+/* Footer Logo */
283
+.site-footer .footer-logo {
284
+    padding: 20px;
285
+}
286
+
287
+/* Info Link Color */
288
+.site-info {
289
+    color: #8b8b8b;
290
+}
291
+
292
+.site-info a,
293
+.site-info a:hover {
294
+    color: #8b8b8b;
295
+}
296
+
297
+/* Link Color */
298
+a {
299
+    color: #00a69c;
300
+}
301
+
302
+/* Link Hover Color */
303
+a:hover {
304
+    color: #00958c;
305
+}
306
+
307
+/* Menu Color */
308
+.main-navigation {
309
+    background: #2b353e;
310
+}
311
+
312
+/* Menu Link Color */
313
+.main-navigation a {
314
+    color: rgba(255, 255, 255, 0.7);
315
+}
316
+
317
+/* Menu Toggle */
318
+.main-navigation .menu-toggle {
319
+    color: rgba(255, 255, 255, 0.7);
320
+    background: transparent;
321
+    outline: none;
322
+}
323
+.main-navigation.toggled .menu-toggle {
324
+    color: #fff;
325
+    background: rgba(255, 255, 255, 0.1);
326
+    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
327
+}
328
+
329
+/* Menu Active Link Color */
330
+.main-navigation .nav-menu > .current-menu-item > a,
331
+.main-navigation .nav-menu > .current-menu-parent > a,
332
+.main-navigation .nav-menu > .current-menu-ancestor > a,
333
+.main-navigation .nav-menu > .current_page_item > a,
334
+.main-navigation .nav-menu > .current_page_parent > a,
335
+.main-navigation .nav-menu > .current_page_ancestor > a {
336
+    color: #fff;
337
+}
338
+
339
+/* Menu Hover Link Color */
340
+.main-navigation .nav-menu > li:hover > a {
341
+    color: #fff;
342
+    background: #00a69c;
343
+}
344
+
345
+/* Menu Hover With Submenu Link Color */
346
+.main-navigation .nav-menu > .menu-item-has-children:hover > a {
347
+    color: #222;
348
+    background: #fff;
349
+}
350
+
351
+/* Nested Menu Color */
352
+.main-navigation ul ul {
353
+    background: #fff;
354
+    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
355
+}
356
+
357
+/* Nested Menu Link Color */
358
+.main-navigation ul ul a {
359
+    color: #222;
360
+}
361
+
362
+/* Nested Menu Active Link Color */
363
+.main-navigation ul ul .current-menu-item > a,
364
+.main-navigation ul ul .current-menu-parent > a,
365
+.main-navigation ul ul .current-menu-ancestor > a,
366
+.main-navigation ul ul .current_page_item > a,
367
+.main-navigation ul ul .current_page_parent > a,
368
+.main-navigation ul ul .current_page_ancestor > a {
369
+    color: #00a69c;
370
+}
371
+
372
+/* Nested Menu Hover With Submenu Link Color */
373
+.main-navigation ul ul li:hover > a {
374
+    background: rgba(0, 0, 0, 0.05);
375
+}
376
+
377
+/* Menu Search */
378
+.main-navigation .search-form .search-field {
379
+    padding: 9px 10px;
380
+    border: none;
381
+    border-radius: 0;
382
+    background-color: rgba(255, 255, 255, 0.1);
383
+    color: #fff;
384
+}
385
+
386
+.main-navigation .search-form .search-submit {
387
+    padding: 0.625em 20px;
388
+    border-radius: 0;
389
+    background: transparent;
390
+    color: rgba(255, 255, 255, 0.7);
391
+    text-transform: uppercase;
392
+}
393
+
394
+.main-navigation .search-form .search-submit:hover {
395
+    color: #fff;
396
+    background: #00a69c;
397
+}
398
+
399
+/**
400
+ * Widgets
401
+ * Deactivated font-size = 100%
402
+ */
403
+.widget {
404
+    /* font-size: 14px; */
405
+}
406
+
407
+/* Search Form & Widget */
408
+.search-form .search-field {
409
+    border-top-right-radius: 0;
410
+    border-bottom-right-radius: 0;
411
+    border-right-width: 0;
412
+    -webkit-appearance: none;
413
+}
414
+
415
+.search-form .search-submit {
416
+    border-top-left-radius: 0;
417
+    border-bottom-left-radius: 0;
418
+    height: 39px;
419
+}
420
+
421
+/* Widget List Icon Color */
422
+.widget_recent_entries ul li:before,
423
+.widget_pages ul li:before,
424
+.widget_categories ul li:before,
425
+.widget_archive ul li:before,
426
+.widget_recent_comments ul li:before,
427
+.widget_nav_menu ul li:before,
428
+.widget_links ul li:before,
429
+.widget_meta ul li:before {
430
+    color: #222;
431
+}
432
+
433
+/* Widget List Link Color */
434
+.widget_recent_entries ul li a,
435
+.widget_pages ul li a,
436
+.widget_categories ul li a,
437
+.widget_archive ul li a,
438
+.widget_recent_comments ul li a,
439
+.widget_nav_menu ul li a,
440
+.widget_links ul li a,
441
+.widget_meta ul li a {
442
+    color: #a3a3a3;
443
+}
444
+
445
+/* Widget List Link Hover Color */
446
+.widget_recent_entries ul li a:hover,
447
+.widget_pages ul li a:hover,
448
+.widget_categories ul li a:hover,
449
+.widget_archive ul li a:hover,
450
+.widget_recent_comments ul li a:hover,
451
+.widget_nav_menu ul li a:hover,
452
+.widget_links ul li a:hover,
453
+.widget_meta ul li a:hover {
454
+    color: #00a69c;
455
+}
456
+
457
+/* Calendar Widget Today Color */
458
+.widget_calendar #today {
459
+    background: #fff;
460
+}
461
+
462
+/* Calendar Widget Pagination Color */
463
+.widget_calendar #prev a,
464
+.widget_calendar #next a {
465
+    color: #a3a3a3;
466
+}
467
+
468
+/* Calendar Widget Pagination Hover Color */
469
+.widget_calendar #prev a:hover,
470
+.widget_calendar #next a:hover {
471
+    color: #00a69c;
472
+}
473
+
474
+.entry-details {
475
+    margin-bottom: 1.25em;
476
+}
477
+
478
+.entry-meta,
479
+.posted-on {
480
+    font-size: 14px;
481
+    padding: 0.125em 0.375em;
482
+    background: #f4f4f4;
483
+    border: 1px solid #e0e0e0;
484
+}
485
+
486
+.entry-meta {
487
+    float: right;
488
+    margin-bottom: 3px;
489
+}
490
+
491
+.posted-on {
492
+    float: left;
493
+    margin-bottom: 3px;
494
+}
495
+
496
+.entry-meta a,
497
+.posted-on a,
498
+.entry-meta a:hover,
499
+.posted-on a:hover {
500
+    color: inherit;
501
+}
502
+
503
+.entry-footer a {
504
+    color: #fff;
505
+    background: #00a69c;
506
+    padding: 0.125em 0.375em;
507
+    opacity: 1;
508
+}
509
+
510
+.entry-footer a:hover {
511
+    color: #fff;
512
+    background: #00887e;
513
+}
514
+
515
+.nav-links a {
516
+    color: #a3a3a3;
517
+}
518
+
519
+.nav-links .meta-nav {
520
+    color: #fff;
521
+    background: #00a69c;
522
+}
523
+
524
+.nav-links .meta-nav:hover {
525
+    background: #00958c;
526
+}
527
+
528
+/* Title Font */
529
+.entry-title,
530
+.page-title {
531
+    text-transform: none;
532
+}
533
+
534
+.entry-title a,
535
+a .entry-title,
536
+.page-title a,
537
+a .page-title,
538
+.entry-title a:hover,
539
+a:hover .entry-title,
540
+.page-title a:hover,
541
+a:hover .page-title:hover {
542
+    color: #222;
543
+}
544
+
545
+.sticky .entry-title:before {
546
+    color: #00a69c;
547
+}
548
+
549
+.single-article .entry-title {
550
+    margin-bottom: 0;
551
+}
552
+
553
+/* Entry Thumbnail */
554
+.entry-header .entry-thumbnail {
555
+    background: #111;
556
+}
557
+
558
+/* Comments */
559
+.comment-metadata a {
560
+    color: #a3a3a3;
561
+}
562
+
563
+.comment-metadata a:hover {
564
+    color: #00a69c;
565
+}
566
+
567
+.comment-body .reply a {
568
+    color: #a3a3a3;
569
+}
570
+
571
+.comment-body .reply a:hover {
572
+    color: #00a69c;
573
+}
574
+
575
+/* Galleries */
576
+.wp-caption-text {
577
+    color: #a3a3a3;
578
+}
579
+
580
+.gallery-caption,
581
+.wp-caption-text.gallery-caption {
582
+    color: #fff;
583
+    background: rgba(0,0,0,0.5);
584
+}
585
+
586
+.gallery-caption a,
587
+.wp-caption-text.gallery-caption {
588
+    color: #fff;
589
+}
590
+
591
+/* SportsPress */
592
+.sp-view-all-link {
593
+    color: #a3a3a3;
594
+}
595
+
596
+.sp-view-all-link:hover {
597
+    color: #00a69c;
598
+}
599
+
600
+.sp-highlight {
601
+    background: #fff;
602
+}
603
+
604
+.sp-heading {
605
+    background: #2b353e;
606
+    color: #fff;
607
+}
608
+
609
+.sp-heading:hover,
610
+.sp-heading a:hover {
611
+    color: #fff;
612
+}
613
+
614
+.sp-table-caption {
615
+    color: #fff;
616
+    background: #2b353e;
617
+    border-top: 8px solid #00a69c;
618
+    padding: 0.625em 15px;
619
+}
620
+
621
+.sp-template-event-performance-icons tbody td {
622
+    padding: 0.3125em 0.625em;
623
+}
624
+
625
+.sp-event-staff {
626
+    background: #f4f4f4;
627
+    border: 1px solid #e0e0e0;
628
+}
629
+
630
+.sp-table-wrapper .dataTables_paginate {
631
+    background: #f4f4f4;
632
+    color: #a3a3a3;
633
+    border: 1px solid #e0e0e0;
634
+}
635
+
636
+.sp-tab-menu {
637
+    border-bottom: 1px solid #e0e0e0;
638
+}
639
+
640
+.sp-tab-menu-item a {
641
+    border-bottom: 4px solid transparent;
642
+    margin: 0 5px -1px;
643
+    padding: 5px;
644
+}
645
+
646
+.sp-tab-menu-item-active a {
647
+    border-bottom-color: #00a69c;
648
+}
649
+
650
+.sp-message {
651
+    color: #00a69c;
652
+    border-color: #00a69c;
653
+    border-radius: 3px;
654
+}
655
+
656
+.sp-template-countdown .event-name {
657
+    font-weight: bold;
658
+    text-align: left;
659
+    font-size: 14px;
660
+    padding: 0.635em 15px;
661
+    color: #222;
662
+}
663
+
664
+.sp-template-countdown .event-name a {
665
+    color: #222;
666
+}
667
+
668
+.sp-template-countdown .event-name,
669
+.sp-template-countdown .event-venue,
670
+.sp-template-countdown .event-league,
671
+.sp-template-countdown .event-date {
672
+    background: #f4f4f4;
673
+    border: 1px solid #e0e0e0;
674
+}
675
+
676
+.sp-template-countdown .event-venue,
677
+.sp-template-countdown .event-league,
678
+.sp-template-countdown .event-date {
679
+    border-top: none;
680
+}
681
+
682
+.sp-template-countdown .event-venue,
683
+.sp-template-countdown .event-league,
684
+.sp-template-countdown .event-date {
685
+    font-weight: normal;
686
+}
687
+
688
+.sp-template-countdown time span {
689
+    border-right: 1px solid #e0e0e0;
690
+    border-bottom: 1px solid #e0e0e0;
691
+    background: #f4f4f4;
692
+}
693
+
694
+.sp-template-countdown time span:first-child {
695
+    border-left: 1px solid #e0e0e0;
696
+}
697
+
698
+.sp-template-event-logos .sp-team-result {
699
+    color: #fff;
700
+    background: #00a69c;
701
+}
702
+
703
+.sp-template-event-venue .sp-google-map {
704
+    margin: 0 -1px;
705
+}
706
+
707
+.sp-template-event-calendar #today {
708
+    background: #fff;
709
+}
710
+
711
+.sp-template-event-calendar #prev a,
712
+.sp-template-event-calendar #next a {
713
+    color: #a3a3a3;
714
+}
715
+
716
+.sp-template-event-calendar #prev a:hover,
717
+.sp-template-event-calendar #next a:hover {
718
+    color: #00a69c;
719
+}
720
+
721
+.sp-template-event-blocks .event-title {
722
+    color: #222;
723
+    background: #fff;
724
+    border: 1px solid #e0e0e0;
725
+}
726
+
727
+.sp-template-event-blocks .event-title a {
728
+    color: #222;
729
+}
730
+
731
+.sp-template-event-blocks .event-results,
732
+.sp-template-event-blocks .event-time {
733
+    text-transform: none;
734
+}
735
+
736
+.sp-template-event-blocks .sp-event-date a,
737
+.sp-template-event-blocks .sp-event-results a {
738
+    color: inherit;
739
+}
740
+
741
+.sp-template-details dl {
742
+    background: #f4f4f4;
743
+    border: 1px solid #e0e0e0;
744
+    margin-bottom: 20px;
745
+}
746
+
747
+.sp-template-gallery .gallery-caption {
748
+    background: #2b353e;
749
+}
750
+
751
+.sp-template-gallery .gallery-item strong {
752
+    background: #00a69c;
753
+}
754
+
755
+.sp-template-post-content th,
756
+.sp-template-post-content td {
757
+    font-size: inherit;
758
+    text-align: inherit;
759
+}
760
+
761
+.sp-tweets {
762
+    border: 1px solid #e0e0e0;
763
+    border-top: none;
764
+}
765
+
766
+.sp-footer-sponsors .sp-sponsors {
767
+    border-top: 1px solid #e0e0e0;
768
+}
769
+
770
+.sp-template-tournament-bracket .sp-result {
771
+    color: #fff;
772
+    background: #00a69c;
773
+}
774
+
775
+.sp-template-tournament-bracket .sp-event-title:hover .sp-result {
776
+    background: #00958c;
777
+}
778
+
779
+.sp-template-tournament-bracket .sp-event-venue {
780
+    color: #a3a3a3;
781
+}
782
+
783
+.sp-header-scoreboard .sp-template-scoreboard {
784
+    margin: 0;
785
+}
786
+
787
+.single-sp_team .has-post-thumbnail .entry-header .entry-title {
788
+    float: left;
789
+}
790
+
791
+.single-sp_team .has-post-thumbnail .sp-excerpt {
792
+    clear: left;
793
+}
794
+
795
+.single-sp_player .entry-header .entry-title strong {
796
+    background: #00a69c;
797
+    color: #fff;
798
+}
799
+
800
+.single-sp_staff .entry-header .entry-title strong {
801
+    color: #00a69c;
802
+}
803
+
804
+/* WooCommerce */
805
+.woocommerce .woocommerce-breadcrumb,
806
+.woocommerce-page .woocommerce-breadcrumb {
807
+    background: #f4f4f4;
808
+    border-bottom: 1px solid #e0e0e0;
809
+}
810
+
811
+.woocommerce ul.products li.product h3,
812
+.woocommerce-page ul.products li.product h3 {
813
+    color: #222;
814
+}
815
+
816
+/* BuddyPress */
817
+#buddypress div.item-list-tabs ul li a {
818
+    color: #a3a3a3;
819
+    border: 1px solid transparent;
820
+}
821
+
822
+#buddypress div.item-list-tabs ul li a:hover {
823
+    color: #00a69c;
824
+}
825
+
826
+#buddypress div.item-list-tabs ul li.current a,
827
+#buddypress div.item-list-tabs ul li.selected a {
828
+    color: #222;
829
+    background: #f4f4f4;
830
+    border-color: #e0e0e0;
831
+}
832
+
833
+#buddypress div.item-list-tabs ul li.current a span,
834
+#buddypress div.item-list-tabs ul li.selected a span {
835
+    background: #e0e0e0;
836
+}
837
+
838
+#buddypress div.item-list-tabs {
839
+    border-bottom: 1px solid #e0e0e0;
840
+}
841
+
842
+/* Mega Slider */
843
+.mega-slider {
844
+    margin: 0;
845
+}
846
+
847
+.mega-slider__row--active,
848
+.mega-slider__row--active:hover {
849
+    background: #00a69c;
850
+}
851
+
852
+/* Media Queries */
853
+@media screen and (max-width: 600px) {
854
+    .main-navigation .nav-menu > li:hover > a,
855
+    .main-navigation ul ul li.page_item_has_children:hover > a {
856
+        color: #fff;
857
+        background: transparent;
858
+    }
859
+
860
+    .main-navigation .nav-menu li a:hover {
861
+        color: #fff;
862
+        background: #00a69c;
863
+    }
864
+
865
+    .main-navigation ul ul {
866
+        background: rgba(0, 0, 0, 0.1);
867
+        box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.1);
868
+    }
869
+
870
+    .main-navigation ul ul a {
871
+        color: #fff;
872
+        color: rgba(255, 255, 255, 0.7);
873
+    }
874
+
875
+    .main-navigation .search-form .search-submit {
876
+        color: #fff;
877
+        background: #00a69c;
878
+    }
879
+}
880
+
881
+@media screen and (min-width: 601px) {
882
+    .site-logo {
883
+        margin: -1em 10px -1em 0;
884
+    }
885
+
886
+    .header-area-custom .site-widgets {
887
+        padding: 20px;
888
+    }
889
+
890
+    .content-area,
891
+    .widecolumn {
892
+        width: 66%;
893
+        padding: 20px;
894
+    }
895
+
896
+    .content-area-full-width,
897
+    .content-area-no-sidebar,
898
+    .widecolumn {
899
+        width: 100%;
900
+        border: 0;
901
+    }
902
+
903
+    .content-area-right-sidebar {
904
+        box-shadow: 1px 0 0 #e0e0e0;
905
+    }
906
+
907
+    .content-area-left-sidebar {
908
+        left: 34%;
909
+        box-shadow: -1px 0 0 #e0e0e0;
910
+    }
911
+
912
+    .content-area-double-sidebar {
913
+    	width: 52%;
914
+        left: 24%;
915
+        box-shadow: 1px 0 0 #e0e0e0, -1px 0 0 #e0e0e0;
916
+    }
917
+
918
+    .widget-area {
919
+        width: 34%;
920
+        padding: 20px;
921
+    }
922
+
923
+    .widget-area-right {
924
+        box-shadow: inset 1px 0 0 #e0e0e0;
925
+    }
926
+
927
+    .widget-area-left {
928
+        box-shadow: inset -1px 0 0 #e0e0e0;
929
+        right: 66%;
930
+    }
931
+
932
+    .widget-area-narrow {
933
+        width: 24%;
934
+    }
935
+
936
+    .widget-area-left.widget-area-narrow {
937
+        right: 52%;
938
+    }
939
+
940
+    .single-post .has-post-thumbnail .entry-header .entry-title,
941
+    .page .has-post-thumbnail .entry-header .entry-title {
942
+        position: absolute;
943
+        bottom: 36px;
944
+        padding: 0 0.5em;
945
+        background: #fff;
946
+    }
947
+
948
+    .entry-header img {
949
+        margin-bottom: 0;
950
+    }
951
+}
952
+
953
+@media screen and (min-width: 801px) {
954
+    .sp-has-venue.sp-has-results .sp-section-content .sp-template-event-venue .sp-google-map {
955
+        height: 164px;
956
+    }
957
+
958
+    .site-footer .footer-widget-region {
959
+        padding-left: 10px;
960
+    }
961
+
962
+    .site-footer .footer-widget-region:first-child {
963
+        padding-left: 20px;
964
+        padding-right: 10px;
965
+    }
966
+
967
+    .site-footer .footer-widget-region:last-child {
968
+        padding-left: 0;
969
+        padding-right: 20px;
970
+    }
971
+}
972
+
973
+@media screen and (min-width: 1025px) {
974
+    .header-area-custom .site-branding {
975
+        padding: 1.75em;
976
+    }
977
+}
978
+
979
+@media screen and (max-width: 1199px) {
980
+    .social-sidebar {
981
+        box-shadow: inset 0 1px 0 #e0e0e0;
982
+    }
983
+}
984
+
985
+@media screen and (min-width: 1200px) {
986
+    .social-sidebar {
987
+        top: 178px;
988
+    }
989
+}
0 990