Version Description
- Feature - New inline quick result editing for events.
- Feature - Automatically detect event outcome based on user-defined conditions.
- Feature - Enable individual players to compete in events.
- Feature - Add new API functions for theme developers.
- Feature - Add event list time/results formatting options.
- Feature - Add option to display player career totals.
- Feature - Add option to display team logos in event lists.
- Feature - Add option to display venue in event blocks.
- Feature - Split iCal feed links for Apple Calendar, Google, and Outlook.
- Refactor - Move Staff to dedicated menu link.
- Refactor - Load sportspress.php template as a fallback only.
- Tweak - Add caption header to event blocks.
- Tweak - Add selector classes to event venue rows.
- Tweak - Remove line breaks after template output.
- Tweak - Disable responsive event performance when icons are shown.
- Tweak - Update default color scheme.
- Tweak - Update player gallery thumbnail markup.
- Tweak - Sort Player positions dropdown by slug.
- Tweak - Frontend styling to add margins and fix overflows.
- Fix - Countdown datetime format.
- Fix - Page slug conflict with SendPress.
- Fix - Missing sample event video link.
- Fix - iCal feed formatting when venue location is not set.
- Preset - Update presets to include automatic outcome conditions.
- Localization - Add Puerto Rico to countries list.
- Localization - Update Polish, German, Spanish, Russian, Finnish, Italian, Armenian, Greek, Dutch, Turkish, French, and Bengali translations.
Download this release
Release Info
Developer | brianmiyaji |
Plugin | SportsPress – Sports Club & League Manager |
Version | 1.5 |
Comparing to | |
See all releases |
Code changes from version 1.4.7 to 1.5
- assets/css/admin.css +13 -4
- assets/css/menu.css +8 -5
- assets/css/slickmap.css +1 -1
- assets/css/sportspress.css +21 -6
- assets/fonts/sportspress.eot +0 -0
- assets/fonts/sportspress.svg +1 -0
- assets/fonts/sportspress.ttf +0 -0
- assets/fonts/sportspress.woff +0 -0
- assets/images/flags/pr.png +0 -0
- assets/js/admin/sportspress-admin.js +55 -6
- dummy-data/players-sample.csv +1 -1
- dummy-data/staff-sample.csv +1 -1
- dummy-data/teams-sample.csv +1 -1
- feeds/ical.php +13 -9
- includes/admin/class-sp-admin-ajax.php +98 -1
- includes/admin/class-sp-admin-assets.php +4 -4
- includes/admin/class-sp-admin-menus.php +16 -27
- includes/admin/class-sp-admin-sample-data.php +2 -3
- includes/admin/class-sp-admin-sports.php +2 -1
- includes/admin/class-sp-admin-welcome.php +2 -2
- includes/admin/importers/class-sp-event-importer.php +3 -3
- includes/admin/post-types/class-sp-admin-cpt-calendar.php +2 -2
- includes/admin/post-types/class-sp-admin-cpt-event.php +42 -23
- includes/admin/post-types/class-sp-admin-cpt-list.php +2 -2
- includes/admin/post-types/class-sp-admin-cpt-player.php +2 -2
- includes/admin/post-types/class-sp-admin-cpt-staff.php +2 -2
- includes/admin/post-types/class-sp-admin-cpt-table.php +2 -2
- includes/admin/post-types/class-sp-admin-cpt-team.php +2 -2
- includes/admin/post-types/class-sp-admin-meta-boxes.php +3 -1
- includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php +61 -25
- includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-feeds.php +24 -10
- includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php +46 -9
- includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php +82 -1
- includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php +5 -3
- includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php +25 -1
- includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php +3 -2
- includes/admin/settings/class-sp-settings-events.php +43 -2
- includes/admin/settings/class-sp-settings-general.php +4 -4
- includes/admin/settings/class-sp-settings-players.php +9 -1
- includes/admin/views/html-admin-config.php +15 -25
- includes/admin/views/html-admin-overview.php +19 -19
- includes/admin/views/html-admin-settings.php +1 -1
- includes/class-sp-ajax.php +2 -2
- includes/class-sp-countries.php +3 -2
- includes/class-sp-event.php +8 -1
- includes/class-sp-feeds.php +18 -6
- includes/class-sp-frontend-scripts.php +4 -8
- includes/class-sp-install.php +3 -4
- includes/class-sp-player-list.php +42 -2
- includes/class-sp-player.php +53 -10
- includes/class-sp-post-types.php +4 -5
- includes/class-sp-template-loader.php +7 -5
- includes/sp-api-functions.php +148 -1
- includes/sp-core-functions.php +54 -6
- includes/sp-template-hooks.php +5 -19
- includes/widgets/class-sp-widget-countdown.php +1 -1
- includes/widgets/class-sp-widget-event-list.php +1 -1
- languages/sportspress-ar.mo +0 -0
- languages/sportspress-az.mo +0 -0
- languages/sportspress-be_BY.mo +0 -0
- languages/sportspress-bg_BG.mo +0 -0
- languages/sportspress-bn_BD.mo +0 -0
- languages/sportspress-bs_BA.mo +0 -0
- languages/sportspress-ca.mo +0 -0
- languages/sportspress-cs_CZ.mo +0 -0
- languages/sportspress-cy.mo +0 -0
- languages/sportspress-da_DK.mo +0 -0
- languages/sportspress-de_DE.mo +0 -0
- languages/sportspress-el.mo +0 -0
- languages/sportspress-en.mo +0 -0
- languages/sportspress-es_ES.mo +0 -0
- languages/sportspress-et.mo +0 -0
- languages/sportspress-eu.mo +0 -0
- languages/sportspress-fa_IR.mo +0 -0
- languages/sportspress-fi.mo +0 -0
- languages/sportspress-fr_FR.mo +0 -0
- languages/sportspress-gl_ES.mo +0 -0
- languages/sportspress-he_IL.mo +0 -0
- languages/sportspress-hr.mo +0 -0
- languages/sportspress-hu_HU.mo +0 -0
- languages/sportspress-hy.mo +0 -0
- languages/sportspress-id_ID.mo +0 -0
- languages/sportspress-is_IS.mo +0 -0
- languages/sportspress-it_IT.mo +0 -0
- languages/sportspress-ja.mo +0 -0
- languages/sportspress-kk.mo +0 -0
- languages/sportspress-kn.mo +0 -0
- languages/sportspress-ko_KR.mo +0 -0
- languages/sportspress-mk_MK.mo +0 -0
- languages/sportspress-ms_MY.mo +0 -0
- languages/sportspress-nb_NO.mo +0 -0
- languages/sportspress-nl_NL.mo +0 -0
- languages/sportspress-nn_NO.mo +0 -0
- languages/sportspress-pl_PL.mo +0 -0
- languages/sportspress-pt_BR.mo +0 -0
- languages/sportspress-pt_PT.mo +0 -0
- languages/sportspress-ro_RO.mo +0 -0
- languages/sportspress-ru_RU.mo +0 -0
- languages/sportspress-sk_SK.mo +0 -0
- languages/sportspress-sl_SI.mo +0 -0
- languages/sportspress-sq.mo +0 -0
- languages/sportspress-sr_RS.mo +0 -0
- languages/sportspress-sv_SE.mo +0 -0
- languages/sportspress-te.mo +0 -0
- languages/sportspress-th.mo +0 -0
- languages/sportspress-tl.mo +0 -0
- languages/sportspress-tr_TR.mo +0 -0
- languages/sportspress-uk.mo +0 -0
- languages/sportspress-ur.mo +0 -0
- languages/sportspress-vi.mo +0 -0
- languages/sportspress-zh_CN.mo +0 -0
- languages/sportspress-zh_TW.mo +0 -0
- languages/sportspress.pot +499 -377
- presets/baseball.json +3 -3
- presets/basketball.json +2 -2
- presets/cricket.json +3 -3
- presets/darts.json +3 -3
- presets/esports/dota2.json +2 -2
- presets/esports/lol.json +2 -2
- presets/floorball.json +3 -3
- presets/football.json +3 -3
- presets/footy.json +3 -3
- presets/handball.json +3 -3
- presets/ice-hockey.json +2 -2
- presets/netball.json +2 -2
- presets/rugby-league.json +3 -3
- presets/rugby-union.json +3 -3
- presets/snooker.json +3 -3
- presets/soccer.json +3 -3
- presets/squash.json +3 -3
- presets/table-tennis.json +2 -2
- presets/tennis.json +2 -2
- presets/volleyball.json +2 -2
- presets/water-polo.json +3 -3
- readme.txt +31 -3
- sportspress.php +3 -3
- templates/countdown.php +9 -7
- templates/event-blocks.php +17 -8
- templates/event-list.php +166 -64
- templates/event-performance.php +14 -7
- templates/event-venue.php +3 -3
- templates/player-gallery-thumbnail.php +2 -2
- templates/player-gallery.php +14 -6
- templates/player-statistics.php +54 -2
assets/css/admin.css
CHANGED
@@ -60,8 +60,8 @@
|
|
60 |
content: "\f504";
|
61 |
}
|
62 |
|
63 |
-
.fixed .column-sp_team .result,
|
64 |
-
.sp-calendar-table .result {
|
65 |
background: #888;
|
66 |
color: #fff;
|
67 |
font-size: 11px;
|
@@ -77,11 +77,20 @@
|
|
77 |
cursor: pointer;
|
78 |
}
|
79 |
|
80 |
-
.fixed .column-sp_team .result:hover,
|
81 |
-
.sp-calendar-table .result:hover {
|
82 |
background: #2ea2cc;
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
.fixed .column-sp_format,
|
86 |
.fixed .column-sp_icon,
|
87 |
.fixed .column-sp_number {
|
60 |
content: "\f504";
|
61 |
}
|
62 |
|
63 |
+
.fixed .column-sp_team .sp-result,
|
64 |
+
.sp-calendar-table .sp-result {
|
65 |
background: #888;
|
66 |
color: #fff;
|
67 |
font-size: 11px;
|
77 |
cursor: pointer;
|
78 |
}
|
79 |
|
80 |
+
.fixed .column-sp_team .sp-result:hover,
|
81 |
+
.sp-calendar-table .sp-result:hover {
|
82 |
background: #2ea2cc;
|
83 |
}
|
84 |
|
85 |
+
.fixed .column-sp_team .sp-edit-result {
|
86 |
+
font-size: 11px;
|
87 |
+
line-height: 1.4em;
|
88 |
+
}
|
89 |
+
|
90 |
+
.fixed .column-sp_team .sp-results {
|
91 |
+
margin-bottom: .2em;
|
92 |
+
}
|
93 |
+
|
94 |
.fixed .column-sp_format,
|
95 |
.fixed .column-sp_icon,
|
96 |
.fixed .column-sp_number {
|
assets/css/menu.css
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
/* SportsPress menu styles */
|
2 |
@font-face {
|
3 |
font-family: 'sportspress';
|
4 |
-
src:url('../fonts/sportspress.eot?
|
5 |
-
src:url('../fonts/sportspress.eot?#
|
6 |
-
url('../fonts/sportspress.woff?
|
7 |
-
url('../fonts/sportspress.ttf?
|
8 |
-
url('../fonts/sportspress.svg?
|
9 |
font-weight: normal;
|
10 |
font-style: normal;
|
11 |
}
|
@@ -42,6 +42,9 @@
|
|
42 |
.sp-icon-tshirt:before {
|
43 |
content: "\f307";
|
44 |
}
|
|
|
|
|
|
|
45 |
.sp-icon-megaphone:before {
|
46 |
content: "\f488";
|
47 |
}
|
1 |
/* SportsPress menu styles */
|
2 |
@font-face {
|
3 |
font-family: 'sportspress';
|
4 |
+
src:url('../fonts/sportspress.eot?20141210');
|
5 |
+
src:url('../fonts/sportspress.eot?#iefix20141210') format('embedded-opentype'),
|
6 |
+
url('../fonts/sportspress.woff?20141210') format('woff'),
|
7 |
+
url('../fonts/sportspress.ttf?20141210') format('truetype'),
|
8 |
+
url('../fonts/sportspress.svg?20141210#sportspress') format('svg');
|
9 |
font-weight: normal;
|
10 |
font-style: normal;
|
11 |
}
|
42 |
.sp-icon-tshirt:before {
|
43 |
content: "\f307";
|
44 |
}
|
45 |
+
.sp-icon-staff:before {
|
46 |
+
content: "\f338";
|
47 |
+
}
|
48 |
.sp-icon-megaphone:before {
|
49 |
content: "\f488";
|
50 |
}
|
assets/css/slickmap.css
CHANGED
@@ -6,7 +6,7 @@ Version 1.1
|
|
6 |
Copyright (c) 2009 Astuteo, LLC http://astuteo.com
|
7 |
*/
|
8 |
|
9 |
-
.
|
10 |
margin-right: 0;
|
11 |
}
|
12 |
|
6 |
Copyright (c) 2009 Astuteo, LLC http://astuteo.com
|
7 |
*/
|
8 |
|
9 |
+
.sportspress-overview-wrap {
|
10 |
margin-right: 0;
|
11 |
}
|
12 |
|
assets/css/sportspress.css
CHANGED
@@ -6,7 +6,10 @@
|
|
6 |
overflow: visible;
|
7 |
}
|
8 |
|
9 |
-
/*
|
|
|
|
|
|
|
10 |
.sp-template-logo,
|
11 |
.sp-template-photo {
|
12 |
float: left;
|
@@ -18,7 +21,10 @@
|
|
18 |
text-align: center;
|
19 |
}
|
20 |
.sp-template-details {
|
21 |
-
display: inline
|
|
|
|
|
|
|
22 |
}
|
23 |
|
24 |
/* Data Tables */
|
@@ -172,6 +178,9 @@
|
|
172 |
border-spacing: 0;
|
173 |
border-collapse: separate;
|
174 |
}
|
|
|
|
|
|
|
175 |
.sp-event-calendar tbody td, .sp-event-calendar thead th {
|
176 |
text-align: center;
|
177 |
}
|
@@ -185,7 +194,7 @@
|
|
185 |
/* Event List */
|
186 |
.sp-event-list .data-date date,
|
187 |
.sp-event-list .data-time date {
|
188 |
-
display: none;
|
189 |
}
|
190 |
.sp-event-list .data-article {
|
191 |
white-space: nowrap;
|
@@ -193,9 +202,16 @@
|
|
193 |
.sp-event-list .data-article a .dashicons {
|
194 |
padding-right: 3px;
|
195 |
}
|
196 |
-
.sp-event-list .data-time
|
|
|
197 |
white-space: nowrap;
|
198 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
|
200 |
/* Event Blocks */
|
201 |
.sp-event-blocks thead {
|
@@ -256,8 +272,7 @@
|
|
256 |
}
|
257 |
|
258 |
/* Alternate */
|
259 |
-
.sp-data-table tbody tr.odd
|
260 |
-
.sp-data-table tbody tr.alternate {
|
261 |
background: rgba(0, 0, 0, 0.02);
|
262 |
}
|
263 |
|
6 |
overflow: visible;
|
7 |
}
|
8 |
|
9 |
+
/* Templates */
|
10 |
+
.sp-template {
|
11 |
+
margin-bottom: 1.5em;
|
12 |
+
}
|
13 |
.sp-template-logo,
|
14 |
.sp-template-photo {
|
15 |
float: left;
|
21 |
text-align: center;
|
22 |
}
|
23 |
.sp-template-details {
|
24 |
+
display: inline;
|
25 |
+
}
|
26 |
+
.sp-template-details dl {
|
27 |
+
overflow: hidden;
|
28 |
}
|
29 |
|
30 |
/* Data Tables */
|
178 |
border-spacing: 0;
|
179 |
border-collapse: separate;
|
180 |
}
|
181 |
+
.sp-event-calendar a {
|
182 |
+
text-decoration: none;
|
183 |
+
}
|
184 |
.sp-event-calendar tbody td, .sp-event-calendar thead th {
|
185 |
text-align: center;
|
186 |
}
|
194 |
/* Event List */
|
195 |
.sp-event-list .data-date date,
|
196 |
.sp-event-list .data-time date {
|
197 |
+
display: none !important;
|
198 |
}
|
199 |
.sp-event-list .data-article {
|
200 |
white-space: nowrap;
|
202 |
.sp-event-list .data-article a .dashicons {
|
203 |
padding-right: 3px;
|
204 |
}
|
205 |
+
.sp-event-list .data-time,
|
206 |
+
.sp-event-list .data-results {
|
207 |
white-space: nowrap;
|
208 |
}
|
209 |
+
.sp-event-list .data-teams img,
|
210 |
+
.sp-event-list .data-home img,
|
211 |
+
.sp-event-list .data-away img {
|
212 |
+
display: inline-block;
|
213 |
+
vertical-align: middle;
|
214 |
+
}
|
215 |
|
216 |
/* Event Blocks */
|
217 |
.sp-event-blocks thead {
|
272 |
}
|
273 |
|
274 |
/* Alternate */
|
275 |
+
.sp-data-table tbody tr.odd {
|
|
|
276 |
background: rgba(0, 0, 0, 0.02);
|
277 |
}
|
278 |
|
assets/fonts/sportspress.eot
CHANGED
Binary file
|
assets/fonts/sportspress.svg
CHANGED
@@ -20,6 +20,7 @@
|
|
20 |
<glyph unicode="" 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" horiz-adv-x="439" />
|
21 |
<glyph unicode="" d="M425.76 154.48c-6.16-15.76-14-29.84-23.2-42s-20.24-24.080-33.040-35.68c-12.8-11.52-24.56-21.2-35.36-28.88-10.88-7.6-22.080-14.88-33.84-21.68-11.84-6.8-20.16-11.44-25.12-13.92-4.96-2.4-8.96-4.24-11.92-5.52-2.24-1.2-4.64-1.68-7.28-1.68s-5.040 0.64-7.28 1.68c-3.040 1.28-6.88 3.12-11.92 5.52s-13.36 7.040-25.12 13.92c-11.76 6.8-23.040 14-33.84 21.68-10.88 7.68-22.56 17.28-35.36 28.88-12.8 11.52-23.84 23.36-33.040 35.68s-16.96 26.24-23.2 42c-6.32 15.76-9.44 31.76-9.44 47.76v215.040c0 4.8 1.68 9.12 5.28 12.64s7.76 5.28 12.64 5.28h322.56c4.8 0 9.12-1.68 12.64-5.28s5.28-7.76 5.28-12.64v-215.040c0-16-3.2-32-9.44-47.76v0zM384 384h-256v-181.92c0-33.36 22.4-67.52 67.12-102.32 17.92-14 38.24-27.040 60.88-38.96v0 0 0 0c22.64 11.92 42.96 24.96 60.88 38.96 44.72 34.88 67.12 68.96 67.12 102.32v181.92zM304.72 122.8c-14.32-11.6-30.56-22.4-48.72-32.24v0 0 267.68h102.4v-150.72c0-27.6-17.92-55.84-53.68-84.72v0z" />
|
22 |
<glyph unicode="" d="M256 455.111c-125.681 0-227.555-101.874-227.555-227.555s101.875-227.555 227.555-227.555 227.555 101.875 227.555 227.555-101.875 227.555-227.555 227.555zM85.334 227.556c0 36.82 11.833 70.847 31.736 98.764l237.694-237.694c-27.916-19.903-61.944-31.736-98.764-31.736-94.111 0-170.667 76.555-170.667 170.667zM394.93 128.792l-237.694 237.694c27.917 19.903 61.944 31.736 98.763 31.736 94.111 0 170.667-76.555 170.667-170.667 0-36.82-11.833-70.847-31.736-98.763z" />
|
|
|
23 |
<glyph unicode="" d="M256 465.92c-130.080 0-235.52-105.44-235.52-235.52s105.44-235.52 235.52-235.52 235.52 105.44 235.52 235.52c0 130.080-105.44 235.52-235.52 235.52v0zM256 46.080c-101.84 0-184.32 82.56-184.32 184.32s82.48 184.32 184.32 184.32 184.32-82.56 184.32-184.32-82.48-184.32-184.32-184.32v0zM273.92 363.52h-35.84v-140.56l87.2-87.2 25.36 25.36-76.64 76.64v125.76z" />
|
24 |
<glyph unicode="" d="M430.8 56.56l-116.8 97.2h-160.4v-76.8c0-7.2-2.56-13.28-7.6-18.24s-11.040-7.36-18-7.36h-25.6c-7.2 0-13.28 2.48-18.24 7.36s-7.36 11.040-7.36 18.24v76.8c-7.2 0-13.28 2.48-18.24 7.36s-7.36 11.040-7.36 18.24v128c0 7.2 2.48 13.28 7.36 18.24s11.040 7.36 18.24 7.36h237.2l116.8 97.2c2.96 3.2 6.88 4.88 11.84 4.96s9.2-0.88 12.8-3.040c3.6-2.16 5.44-4.8 5.44-8v-362c0-3.2-1.76-5.84-5.44-8s-7.84-3.040-12.8-2.8c-5.040 0.4-8.88 2.080-11.84 5.28zM243.2 332.96h-51.2c3.44 0 6.48-1.28 8.96-3.84s3.84-5.52 3.84-8.96v-153.6c0-3.44-1.28-6.48-3.84-8.96s-5.52-3.84-8.96-3.84h51.2c-3.76 0-6.8 1.28-9.2 3.84s-3.6 5.52-3.6 8.96v153.6c0 3.44 1.2 6.48 3.6 8.96s5.36 3.84 9.2 3.84v0z" />
|
25 |
</font></defs></svg>
|
20 |
<glyph unicode="" 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" horiz-adv-x="439" />
|
21 |
<glyph unicode="" d="M425.76 154.48c-6.16-15.76-14-29.84-23.2-42s-20.24-24.080-33.040-35.68c-12.8-11.52-24.56-21.2-35.36-28.88-10.88-7.6-22.080-14.88-33.84-21.68-11.84-6.8-20.16-11.44-25.12-13.92-4.96-2.4-8.96-4.24-11.92-5.52-2.24-1.2-4.64-1.68-7.28-1.68s-5.040 0.64-7.28 1.68c-3.040 1.28-6.88 3.12-11.92 5.52s-13.36 7.040-25.12 13.92c-11.76 6.8-23.040 14-33.84 21.68-10.88 7.68-22.56 17.28-35.36 28.88-12.8 11.52-23.84 23.36-33.040 35.68s-16.96 26.24-23.2 42c-6.32 15.76-9.44 31.76-9.44 47.76v215.040c0 4.8 1.68 9.12 5.28 12.64s7.76 5.28 12.64 5.28h322.56c4.8 0 9.12-1.68 12.64-5.28s5.28-7.76 5.28-12.64v-215.040c0-16-3.2-32-9.44-47.76v0zM384 384h-256v-181.92c0-33.36 22.4-67.52 67.12-102.32 17.92-14 38.24-27.040 60.88-38.96v0 0 0 0c22.64 11.92 42.96 24.96 60.88 38.96 44.72 34.88 67.12 68.96 67.12 102.32v181.92zM304.72 122.8c-14.32-11.6-30.56-22.4-48.72-32.24v0 0 267.68h102.4v-150.72c0-27.6-17.92-55.84-53.68-84.72v0z" />
|
22 |
<glyph unicode="" d="M256 455.111c-125.681 0-227.555-101.874-227.555-227.555s101.875-227.555 227.555-227.555 227.555 101.875 227.555 227.555-101.875 227.555-227.555 227.555zM85.334 227.556c0 36.82 11.833 70.847 31.736 98.764l237.694-237.694c-27.916-19.903-61.944-31.736-98.764-31.736-94.111 0-170.667 76.555-170.667 170.667zM394.93 128.792l-237.694 237.694c27.917 19.903 61.944 31.736 98.763 31.736 94.111 0 170.667-76.555 170.667-170.667 0-36.82-11.833-70.847-31.736-98.763z" />
|
23 |
+
<glyph unicode="" d="M409.2 25.2h-307.2c-14.16 0-25.6 11.44-25.6 25.6v358.4c0 14.16 11.44 25.6 25.6 25.6h307.2c14.16 0 25.6-11.44 25.6-25.6v-358.4c0-14.16-11.44-25.6-25.6-25.6zM332.4 383.6h-153.6l51.2-51.2-51.2-204.8 76.8-76.8 76.8 76.8-51.2 204.8 51.2 51.2z" />
|
24 |
<glyph unicode="" d="M256 465.92c-130.080 0-235.52-105.44-235.52-235.52s105.44-235.52 235.52-235.52 235.52 105.44 235.52 235.52c0 130.080-105.44 235.52-235.52 235.52v0zM256 46.080c-101.84 0-184.32 82.56-184.32 184.32s82.48 184.32 184.32 184.32 184.32-82.56 184.32-184.32-82.48-184.32-184.32-184.32v0zM273.92 363.52h-35.84v-140.56l87.2-87.2 25.36 25.36-76.64 76.64v125.76z" />
|
25 |
<glyph unicode="" d="M430.8 56.56l-116.8 97.2h-160.4v-76.8c0-7.2-2.56-13.28-7.6-18.24s-11.040-7.36-18-7.36h-25.6c-7.2 0-13.28 2.48-18.24 7.36s-7.36 11.040-7.36 18.24v76.8c-7.2 0-13.28 2.48-18.24 7.36s-7.36 11.040-7.36 18.24v128c0 7.2 2.48 13.28 7.36 18.24s11.040 7.36 18.24 7.36h237.2l116.8 97.2c2.96 3.2 6.88 4.88 11.84 4.96s9.2-0.88 12.8-3.040c3.6-2.16 5.44-4.8 5.44-8v-362c0-3.2-1.76-5.84-5.44-8s-7.84-3.040-12.8-2.8c-5.040 0.4-8.88 2.080-11.84 5.28zM243.2 332.96h-51.2c3.44 0 6.48-1.28 8.96-3.84s3.84-5.52 3.84-8.96v-153.6c0-3.44-1.28-6.48-3.84-8.96s-5.52-3.84-8.96-3.84h51.2c-3.76 0-6.8 1.28-9.2 3.84s-3.6 5.52-3.6 8.96v153.6c0 3.44 1.2 6.48 3.6 8.96s5.36 3.84 9.2 3.84v0z" />
|
26 |
</font></defs></svg>
|
assets/fonts/sportspress.ttf
CHANGED
Binary file
|
assets/fonts/sportspress.woff
CHANGED
Binary file
|
assets/images/flags/pr.png
ADDED
Binary file
|
assets/js/admin/sportspress-admin.js
CHANGED
@@ -135,12 +135,6 @@ jQuery(document).ready(function($){
|
|
135 |
$(".sp-dummy."+name+"-dummy").val(val).trigger("change");
|
136 |
});
|
137 |
|
138 |
-
// Title format switcher
|
139 |
-
$(".sp-title-format-select").change(function() {
|
140 |
-
val = $(this).val();
|
141 |
-
$(".sp-title-format").hide().filter(".sp-title-format-"+val).show();
|
142 |
-
});
|
143 |
-
|
144 |
// Custom value editor
|
145 |
$(".sp-data-table .sp-default-value").click(function() {
|
146 |
$(this).hide().siblings(".sp-custom-value").show().find(".sp-custom-value-input").focus();
|
@@ -547,6 +541,61 @@ jQuery(document).ready(function($){
|
|
547 |
});
|
548 |
$(".sp-date-selector select").trigger("change");
|
549 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
550 |
// Fitvids
|
551 |
$(".sp-fitvids").fitVids();
|
552 |
});
|
135 |
$(".sp-dummy."+name+"-dummy").val(val).trigger("change");
|
136 |
});
|
137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
// Custom value editor
|
139 |
$(".sp-data-table .sp-default-value").click(function() {
|
140 |
$(this).hide().siblings(".sp-custom-value").show().find(".sp-custom-value-input").focus();
|
541 |
});
|
542 |
$(".sp-date-selector select").trigger("change");
|
543 |
|
544 |
+
// Edit inline results
|
545 |
+
$("#the-list").on("click, focus", ".sp-result, .sp-edit-results", function(){
|
546 |
+
team = $(this).data("team");
|
547 |
+
$column = $(this).closest(".column-sp_team");
|
548 |
+
$column.find(".sp-result, .sp-row-actions").hide();
|
549 |
+
$column.find(".sp-edit-result, .sp-inline-edit-save").show();
|
550 |
+
if ( team != undefined ) {
|
551 |
+
$column.find(".sp-edit-result[data-team='"+team+"']").select();
|
552 |
+
}
|
553 |
+
return false;
|
554 |
+
});
|
555 |
+
|
556 |
+
// Cancel inline results
|
557 |
+
$("#the-list").on("click", ".sp-inline-edit-save .cancel", function(){
|
558 |
+
$column = $(this).closest(".column-sp_team");
|
559 |
+
$column.find(".sp-edit-result, .sp-inline-edit-save").hide();
|
560 |
+
$column.find(".sp-result, .sp-row-actions").show();
|
561 |
+
return false;
|
562 |
+
});
|
563 |
+
|
564 |
+
// Save inline results
|
565 |
+
$("#the-list").on("click", ".sp-inline-edit-save .save", function(){
|
566 |
+
$column = $(this).closest(".column-sp_team");
|
567 |
+
results = [];
|
568 |
+
$column.find(".sp-edit-result").each(function() {
|
569 |
+
team = {};
|
570 |
+
team.id = $(this).data("team");
|
571 |
+
team.key = $(this).data("key");
|
572 |
+
team.result = $(this).val();
|
573 |
+
results.push( team );
|
574 |
+
});
|
575 |
+
$.post( ajaxurl, {
|
576 |
+
action: "sp-save-inline-results",
|
577 |
+
post_id: $column.find("input[name='sp_post_id']").val(),
|
578 |
+
results: results,
|
579 |
+
nonce: $("#sp-inline-nonce").val()
|
580 |
+
}, function(response) {
|
581 |
+
$column.find(".sp-edit-result").each(function() {
|
582 |
+
val = $(this).val();
|
583 |
+
$column.find(".sp-result[data-team='"+$(this).data("team")+"']").html(val==''?'-':val);
|
584 |
+
});
|
585 |
+
$column.find(".sp-edit-result, .sp-inline-edit-save").hide();
|
586 |
+
$column.find(".sp-result, .sp-row-actions").show();
|
587 |
+
return false;
|
588 |
+
});
|
589 |
+
});
|
590 |
+
|
591 |
+
// Override inline form submission
|
592 |
+
$("#the-list").on("keypress", ".sp-edit-result", function(e) {
|
593 |
+
if ( e.which == 13 ) {
|
594 |
+
$(this).closest(".column-sp_team").find(".sp-inline-edit-save .save").trigger("click");
|
595 |
+
return false;
|
596 |
+
}
|
597 |
+
});
|
598 |
+
|
599 |
// Fitvids
|
600 |
$(".sp-fitvids").fitVids();
|
601 |
});
|
dummy-data/players-sample.csv
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
Number,Name,Positions,Teams,
|
2 |
1,Joe Allen,Goalkeeper,Essendon Eagles,Primary League|Secondary League,2014,AU
|
3 |
3,Steven Gerrard,Defender,Carlton Kangaroos,Primary League,2014|2013,US
|
4 |
5,Daniel Sturridge,Midfielder|Forward,Southbank Sharks,Primary League|Secondary League,2014|2013,GB
|
1 |
+
Number,Name,Positions,Teams,Competitions,Seasons,Nationality
|
2 |
1,Joe Allen,Goalkeeper,Essendon Eagles,Primary League|Secondary League,2014,AU
|
3 |
3,Steven Gerrard,Defender,Carlton Kangaroos,Primary League,2014|2013,US
|
4 |
5,Daniel Sturridge,Midfielder|Forward,Southbank Sharks,Primary League|Secondary League,2014|2013,GB
|
dummy-data/staff-sample.csv
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
Name,Jobs,Teams,
|
2 |
Bobby Brown,Coach,Essendon Eagles,Primary League|Secondary League,2014,AU
|
3 |
Charles Johnson,Assistant Coach,Kensington Kangaroos,Primary League,2014,GB
|
4 |
Matt Smith,Waterboy,Southbank Sharks,Primary League|Secondary League,2013|2014,AU
|
1 |
+
Name,Jobs,Teams,Competitions,Seasons,Nationality
|
2 |
Bobby Brown,Coach,Essendon Eagles,Primary League|Secondary League,2014,AU
|
3 |
Charles Johnson,Assistant Coach,Kensington Kangaroos,Primary League,2014,GB
|
4 |
Matt Smith,Waterboy,Southbank Sharks,Primary League|Secondary League,2013|2014,AU
|
dummy-data/teams-sample.csv
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
Name,
|
2 |
Essendon Eagles,Primary League|Secondary League,2014,http://tboy.co/eagles,EAGLES,Little Park
|
3 |
Southbank Sharks,Primary League|Secondary League,2014|2013,http://tboy.co/sharks,SHARKS
|
4 |
Carlton Kangaroos,Primary League,2014|2013,http://tboy.co/roos,ROOS,Big Stadium
|
1 |
+
Name,Competitions,Seasons,Site URL,Abbreviation,Home
|
2 |
Essendon Eagles,Primary League|Secondary League,2014,http://tboy.co/eagles,EAGLES,Little Park
|
3 |
Southbank Sharks,Primary League|Secondary League,2014|2013,http://tboy.co/sharks,SHARKS
|
4 |
Carlton Kangaroos,Primary League,2014|2013,http://tboy.co/roos,ROOS,Big Stadium
|
feeds/ical.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Feeds
|
7 |
* @package SportsPress/Feeds
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -27,17 +27,18 @@ $main_result = get_option( 'sportspress_primary_result', null );
|
|
27 |
// Initialize output. Max line length is 75 chars.
|
28 |
$output =
|
29 |
"BEGIN:VCALENDAR\n" .
|
30 |
-
"METHOD:PUBLISH\n" .
|
31 |
"VERSION:2.0\n" .
|
|
|
|
|
|
|
32 |
"URL:" . add_query_arg( 'feed', 'sp-calendar-ical', get_post_permalink( $post ) ) . "\n" .
|
|
|
33 |
"NAME:" . $post->post_title . "\n" .
|
34 |
"X-WR-CALNAME:" . $post->post_title . "\n" .
|
35 |
"DESCRIPTION:" . $post->post_title . "\n" .
|
36 |
-
"DESCRIPTION:" . $post->post_title . "\n" .
|
37 |
"X-WR-CALDESC:" . $post->post_title . "\n" .
|
38 |
-
"REFRESH-INTERVAL;VALUE=DURATION:
|
39 |
-
"X-PUBLISHED-TTL:
|
40 |
-
"PRODID:-//ThemeBoy//SportsPress//" . strtoupper( $locale ) . "\n";
|
41 |
|
42 |
// Loop through each event
|
43 |
foreach ( $events as $event):
|
@@ -129,10 +130,13 @@ foreach ( $events as $event):
|
|
129 |
"STATUS:CONFIRMED\n" .
|
130 |
"DTSTART:" . mysql2date( $date_format, $event->post_date_gmt ) . "\n" .
|
131 |
"DTEND:" . $end->format( $date_format ) . "\n" .
|
132 |
-
"LAST-MODIFIED:" . mysql2date( $date_format, $event->post_modified_gmt ) . "\n"
|
133 |
-
|
|
|
|
|
|
|
134 |
|
135 |
-
if (
|
136 |
$output .= "GEO:" . $geo . "\n";
|
137 |
}
|
138 |
|
5 |
* @author ThemeBoy
|
6 |
* @category Feeds
|
7 |
* @package SportsPress/Feeds
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
27 |
// Initialize output. Max line length is 75 chars.
|
28 |
$output =
|
29 |
"BEGIN:VCALENDAR\n" .
|
|
|
30 |
"VERSION:2.0\n" .
|
31 |
+
"PRODID:-//ThemeBoy//SportsPress//" . strtoupper( $locale ) . "\n" .
|
32 |
+
"CALSCALE:GREGORIAN\n" .
|
33 |
+
"METHOD:PUBLISH\n" .
|
34 |
"URL:" . add_query_arg( 'feed', 'sp-calendar-ical', get_post_permalink( $post ) ) . "\n" .
|
35 |
+
"X-FROM-URL:" . add_query_arg( 'feed', 'sp-calendar-ical', get_post_permalink( $post ) ) . "\n" .
|
36 |
"NAME:" . $post->post_title . "\n" .
|
37 |
"X-WR-CALNAME:" . $post->post_title . "\n" .
|
38 |
"DESCRIPTION:" . $post->post_title . "\n" .
|
|
|
39 |
"X-WR-CALDESC:" . $post->post_title . "\n" .
|
40 |
+
"REFRESH-INTERVAL;VALUE=DURATION:PT2M\n" .
|
41 |
+
"X-PUBLISHED-TTL:PT2M\n";
|
|
|
42 |
|
43 |
// Loop through each event
|
44 |
foreach ( $events as $event):
|
130 |
"STATUS:CONFIRMED\n" .
|
131 |
"DTSTART:" . mysql2date( $date_format, $event->post_date_gmt ) . "\n" .
|
132 |
"DTEND:" . $end->format( $date_format ) . "\n" .
|
133 |
+
"LAST-MODIFIED:" . mysql2date( $date_format, $event->post_modified_gmt ) . "\n";
|
134 |
+
|
135 |
+
if ( $location ) {
|
136 |
+
$output .= "LOCATION:" . $location . "\n";
|
137 |
+
}
|
138 |
|
139 |
+
if ( $geo ) {
|
140 |
$output .= "GEO:" . $geo . "\n";
|
141 |
}
|
142 |
|
includes/admin/class-sp-admin-ajax.php
CHANGED
@@ -10,7 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
10 |
* @author ThemeBoy
|
11 |
* @category Admin
|
12 |
* @package SportsPress/Admin
|
13 |
-
* @version 1.
|
14 |
*/
|
15 |
class SP_Admin_AJAX {
|
16 |
|
@@ -19,6 +19,7 @@ class SP_Admin_AJAX {
|
|
19 |
*/
|
20 |
public function __construct() {
|
21 |
add_action( 'wp_ajax_sp-save-primary-result', array( $this, 'save_primary_result' ), 1 );
|
|
|
22 |
}
|
23 |
|
24 |
/**
|
@@ -34,6 +35,102 @@ class SP_Admin_AJAX {
|
|
34 |
update_option( 'sportspress_primary_result', $primary_result );
|
35 |
wp_send_json_success();
|
36 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
return new SP_Admin_AJAX();
|
10 |
* @author ThemeBoy
|
11 |
* @category Admin
|
12 |
* @package SportsPress/Admin
|
13 |
+
* @version 1.5
|
14 |
*/
|
15 |
class SP_Admin_AJAX {
|
16 |
|
19 |
*/
|
20 |
public function __construct() {
|
21 |
add_action( 'wp_ajax_sp-save-primary-result', array( $this, 'save_primary_result' ), 1 );
|
22 |
+
add_action( 'wp_ajax_sp-save-inline-results', array( $this, 'save_inline_results' ) );
|
23 |
}
|
24 |
|
25 |
/**
|
35 |
update_option( 'sportspress_primary_result', $primary_result );
|
36 |
wp_send_json_success();
|
37 |
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Save event results inline.
|
41 |
+
*
|
42 |
+
* @since 1.5
|
43 |
+
*/
|
44 |
+
function save_inline_results() {
|
45 |
+
check_ajax_referer( 'sp-save-inline-results', 'nonce' );
|
46 |
+
|
47 |
+
$post_id = sp_array_value( $_POST, 'post_id' );
|
48 |
+
$results = sp_array_value( $_POST, 'results' );
|
49 |
+
$main_result = get_option( 'sportspress_primary_result', null );
|
50 |
+
|
51 |
+
if ( ! $post_id || ! is_array( $results ) ) {
|
52 |
+
// Return error
|
53 |
+
wp_send_json_error();
|
54 |
+
}
|
55 |
+
|
56 |
+
// Get current results meta
|
57 |
+
$meta = get_post_meta( $post_id, 'sp_results', true );
|
58 |
+
|
59 |
+
$primary_results = array();
|
60 |
+
foreach ( $results as $result ) {
|
61 |
+
$id = sp_array_value( $result, 'id' );
|
62 |
+
$key = sp_array_value( $result, 'key' );
|
63 |
+
|
64 |
+
$primary_results[ $id ] = sp_array_value( $result, 'result', null );
|
65 |
+
|
66 |
+
if ( ! $id || ! $key ) continue;
|
67 |
+
|
68 |
+
$meta[ $id ][ $key ] = sp_array_value( $result, 'result' );
|
69 |
+
}
|
70 |
+
|
71 |
+
arsort( $primary_results );
|
72 |
+
|
73 |
+
if ( count( $primary_results ) && ! in_array( null, $primary_results ) ) {
|
74 |
+
if ( count( array_unique( $primary_results ) ) === 1 ) {
|
75 |
+
$args = array(
|
76 |
+
'post_type' => 'sp_outcome',
|
77 |
+
'numberposts' => -1,
|
78 |
+
'posts_per_page' => -1,
|
79 |
+
'meta_key' => 'sp_condition',
|
80 |
+
'meta_value' => '=',
|
81 |
+
);
|
82 |
+
$outcomes = get_posts( $args );
|
83 |
+
foreach ( $meta as $team => $team_results ) {
|
84 |
+
if ( $outcomes ) {
|
85 |
+
$meta[ $team ][ 'outcome' ] = array();
|
86 |
+
foreach ( $outcomes as $outcome ) {
|
87 |
+
$meta[ $team ][ 'outcome' ][] = $outcome->post_name;
|
88 |
+
}
|
89 |
+
}
|
90 |
+
}
|
91 |
+
} else {
|
92 |
+
reset( $primary_results );
|
93 |
+
$max = key( $primary_results );
|
94 |
+
$args = array(
|
95 |
+
'post_type' => 'sp_outcome',
|
96 |
+
'numberposts' => -1,
|
97 |
+
'posts_per_page' => -1,
|
98 |
+
'meta_key' => 'sp_condition',
|
99 |
+
'meta_value' => '>',
|
100 |
+
);
|
101 |
+
$outcomes = get_posts( $args );
|
102 |
+
if ( $outcomes ) {
|
103 |
+
$meta[ $max ][ 'outcome' ] = array();
|
104 |
+
foreach ( $outcomes as $outcome ) {
|
105 |
+
$meta[ $max ][ 'outcome' ][] = $outcome->post_name;
|
106 |
+
}
|
107 |
+
}
|
108 |
+
|
109 |
+
end( $primary_results );
|
110 |
+
$min = key( $primary_results );
|
111 |
+
$args = array(
|
112 |
+
'post_type' => 'sp_outcome',
|
113 |
+
'numberposts' => -1,
|
114 |
+
'posts_per_page' => -1,
|
115 |
+
'meta_key' => 'sp_condition',
|
116 |
+
'meta_value' => '<',
|
117 |
+
);
|
118 |
+
$outcomes = get_posts( $args );
|
119 |
+
if ( $outcomes ) {
|
120 |
+
$meta[ $min ][ 'outcome' ] = array();
|
121 |
+
foreach ( $outcomes as $outcome ) {
|
122 |
+
$meta[ $min ][ 'outcome' ][] = $outcome->post_name;
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
126 |
+
}
|
127 |
+
|
128 |
+
// Update results
|
129 |
+
update_post_meta( $post_id, 'sp_results', $meta );
|
130 |
+
|
131 |
+
// Return success
|
132 |
+
wp_send_json_success();
|
133 |
+
}
|
134 |
}
|
135 |
|
136 |
return new SP_Admin_AJAX();
|
includes/admin/class-sp-admin-assets.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -39,11 +39,11 @@ class SP_Admin_Assets {
|
|
39 |
wp_enqueue_style( 'jquery-chosen', SP()->plugin_url() . '/assets/css/chosen.css', array(), '1.1.0' );
|
40 |
wp_enqueue_style( 'wp-color-picker' );
|
41 |
wp_enqueue_style( 'sportspress-admin', SP()->plugin_url() . '/assets/css/admin.css', array(), SP_VERSION );
|
42 |
-
} elseif ( strpos( $screen->id, '
|
43 |
wp_enqueue_style( 'sportspress-admin', SP()->plugin_url() . '/assets/css/admin.css', array(), SP_VERSION );
|
44 |
}
|
45 |
|
46 |
-
if ( strpos( $screen->id, '
|
47 |
wp_enqueue_style( 'sportspress-admin-slickmap', SP()->plugin_url() . '/assets/css/slickmap.css', array(), '1.1.0' );
|
48 |
}
|
49 |
|
@@ -97,7 +97,7 @@ class SP_Admin_Assets {
|
|
97 |
wp_register_script( 'sportspress-admin-widgets', SP()->plugin_url() . '/assets/js/admin/widgets.js', array( 'jquery' ), SP_VERSION, true );
|
98 |
|
99 |
// SportsPress admin pages
|
100 |
-
if ( in_array( $screen->id, sp_get_screen_ids() ) || strpos( $screen->id, '
|
101 |
wp_enqueue_script( 'jquery' );
|
102 |
wp_enqueue_script( 'chosen' );
|
103 |
wp_enqueue_script( 'jquery-ui-core' );
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
39 |
wp_enqueue_style( 'jquery-chosen', SP()->plugin_url() . '/assets/css/chosen.css', array(), '1.1.0' );
|
40 |
wp_enqueue_style( 'wp-color-picker' );
|
41 |
wp_enqueue_style( 'sportspress-admin', SP()->plugin_url() . '/assets/css/admin.css', array(), SP_VERSION );
|
42 |
+
} elseif ( strpos( $screen->id, 'sportspress-config' ) !== false ) {
|
43 |
wp_enqueue_style( 'sportspress-admin', SP()->plugin_url() . '/assets/css/admin.css', array(), SP_VERSION );
|
44 |
}
|
45 |
|
46 |
+
if ( strpos( $screen->id, 'sportspress-overview' ) !== false ) {
|
47 |
wp_enqueue_style( 'sportspress-admin-slickmap', SP()->plugin_url() . '/assets/css/slickmap.css', array(), '1.1.0' );
|
48 |
}
|
49 |
|
97 |
wp_register_script( 'sportspress-admin-widgets', SP()->plugin_url() . '/assets/js/admin/widgets.js', array( 'jquery' ), SP_VERSION, true );
|
98 |
|
99 |
// SportsPress admin pages
|
100 |
+
if ( in_array( $screen->id, sp_get_screen_ids() ) || strpos( $screen->id, 'sportspress-config' )) {
|
101 |
wp_enqueue_script( 'jquery' );
|
102 |
wp_enqueue_script( 'chosen' );
|
103 |
wp_enqueue_script( 'jquery-ui-core' );
|
includes/admin/class-sp-admin-menus.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -27,7 +27,6 @@ class SP_Admin_Menus {
|
|
27 |
add_action( 'admin_menu', array( $this, 'overview_menu' ), 8 );
|
28 |
add_action( 'admin_menu', array( $this, 'leagues_menu' ), 9 );
|
29 |
add_action( 'admin_menu', array( $this, 'seasons_menu' ), 10 );
|
30 |
-
add_filter( 'admin_menu', array( $this, 'menu_add' ), 20 );
|
31 |
|
32 |
add_action( 'admin_head', array( $this, 'menu_highlight' ) );
|
33 |
add_action( 'admin_head', array( $this, 'menu_rename' ) );
|
@@ -53,14 +52,14 @@ class SP_Admin_Menus {
|
|
53 |
* Add menu item
|
54 |
*/
|
55 |
public function overview_menu() {
|
56 |
-
add_submenu_page( 'sportspress', __( 'Overview', 'sportspress' ), __( 'Overview', 'sportspress' ), 'manage_sportspress', '
|
57 |
}
|
58 |
|
59 |
/**
|
60 |
* Add menu item
|
61 |
*/
|
62 |
public function config_menu() {
|
63 |
-
add_submenu_page( 'sportspress', __( 'Configure', 'sportspress' ), __( 'Configure', 'sportspress' ), 'manage_sportspress', '
|
64 |
}
|
65 |
|
66 |
/**
|
@@ -89,15 +88,13 @@ class SP_Admin_Menus {
|
|
89 |
if ( $screen->id == 'edit-sp_role' )
|
90 |
$this->highlight_admin_menu( 'edit.php?post_type=sp_player', 'edit-tags.php?taxonomy=sp_role&post_type=sp_player' );
|
91 |
elseif ( is_sp_config_type( $typenow ) )
|
92 |
-
$this->highlight_admin_menu( 'sportspress', '
|
93 |
elseif ( $typenow == 'sp_calendar' )
|
94 |
$this->highlight_admin_menu( 'edit.php?post_type=sp_event', 'edit.php?post_type=sp_calendar' );
|
95 |
elseif ( $typenow == 'sp_table' )
|
96 |
$this->highlight_admin_menu( 'edit.php?post_type=sp_team', 'edit.php?post_type=sp_table' );
|
97 |
elseif ( $typenow == 'sp_list' )
|
98 |
$this->highlight_admin_menu( 'edit.php?post_type=sp_player', 'edit.php?post_type=sp_list' );
|
99 |
-
elseif ( $typenow == 'sp_staff' )
|
100 |
-
$this->highlight_admin_menu( 'edit.php?post_type=sp_player', 'edit.php?post_type=sp_staff' );
|
101 |
}
|
102 |
|
103 |
/**
|
@@ -111,11 +108,6 @@ class SP_Admin_Menus {
|
|
111 |
|
112 |
if ( isset( $submenu['sportspress'] ) && isset( $submenu['sportspress'][0] ) && isset( $submenu['sportspress'][0][0] ) )
|
113 |
$submenu['sportspress'][0][0] = __( 'Settings', 'sportspress' );
|
114 |
-
|
115 |
-
foreach ( $menu as $index => $values ):
|
116 |
-
if ( sp_array_value( $values, 0 ) === __( 'Players', 'sportspress' ) )
|
117 |
-
$menu[ $index ][0] = __( 'Players & Staff', 'sportspress' );
|
118 |
-
endforeach;
|
119 |
}
|
120 |
|
121 |
public function parent_file( $parent_file ) {
|
@@ -143,6 +135,7 @@ class SP_Admin_Menus {
|
|
143 |
$sportspress_event = array_search( 'edit.php?post_type=sp_event', $menu_order );
|
144 |
$sportspress_team = array_search( 'edit.php?post_type=sp_team', $menu_order );
|
145 |
$sportspress_player = array_search( 'edit.php?post_type=sp_player', $menu_order );
|
|
|
146 |
|
147 |
// Loop through menu order and do some rearranging
|
148 |
foreach ( $menu_order as $index => $item ):
|
@@ -153,10 +146,12 @@ class SP_Admin_Menus {
|
|
153 |
$sportspress_menu_order[] = 'edit.php?post_type=sp_event';
|
154 |
$sportspress_menu_order[] = 'edit.php?post_type=sp_team';
|
155 |
$sportspress_menu_order[] = 'edit.php?post_type=sp_player';
|
|
|
156 |
unset( $menu_order[ $sportspress_separator ] );
|
157 |
unset( $menu_order[ $sportspress_event ] );
|
158 |
unset( $menu_order[ $sportspress_team ] );
|
159 |
unset( $menu_order[ $sportspress_player ] );
|
|
|
160 |
|
161 |
// Apply to added menu items
|
162 |
$menu_items = apply_filters( 'sportspress_menu_items', array() );
|
@@ -203,25 +198,31 @@ class SP_Admin_Menus {
|
|
203 |
$menu[ $separator_position ] = array( '', 'read', 'separator-sportspress', '', 'wp-menu-separator sportspress' );
|
204 |
endif;
|
205 |
|
206 |
-
// Remove "
|
207 |
if ( isset( $submenu['edit.php?post_type=sp_event'] ) ):
|
208 |
$submenu['edit.php?post_type=sp_event'] = array_filter( $submenu['edit.php?post_type=sp_event'], array( $this, 'remove_leagues' ) );
|
209 |
$submenu['edit.php?post_type=sp_event'] = array_filter( $submenu['edit.php?post_type=sp_event'], array( $this, 'remove_seasons' ) );
|
210 |
endif;
|
211 |
|
212 |
-
// Remove "Venues", "
|
213 |
if ( isset( $submenu['edit.php?post_type=sp_team'] ) ):
|
214 |
$submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_venues' ) );
|
215 |
$submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_leagues' ) );
|
216 |
$submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_seasons' ) );
|
217 |
endif;
|
218 |
|
219 |
-
// Remove "
|
220 |
if ( isset( $submenu['edit.php?post_type=sp_player'] ) ):
|
221 |
$submenu['edit.php?post_type=sp_player'] = array_filter( $submenu['edit.php?post_type=sp_player'], array( $this, 'remove_leagues' ) );
|
222 |
$submenu['edit.php?post_type=sp_player'] = array_filter( $submenu['edit.php?post_type=sp_player'], array( $this, 'remove_seasons' ) );
|
223 |
endif;
|
224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
$user_roles = $current_user->roles;
|
226 |
$user_role = array_shift($user_roles);
|
227 |
|
@@ -232,18 +233,6 @@ class SP_Admin_Menus {
|
|
232 |
endif;
|
233 |
}
|
234 |
|
235 |
-
/**
|
236 |
-
* Add missing SP menu items in admin.
|
237 |
-
*/
|
238 |
-
public function menu_add() {
|
239 |
-
global $menu, $submenu, $current_user;
|
240 |
-
|
241 |
-
// Add "Jobs" to Players submenu
|
242 |
-
if ( isset( $submenu['edit.php?post_type=sp_player'] ) ):
|
243 |
-
array_splice( $submenu['edit.php?post_type=sp_player'], 5, 0, array( array( __( 'Jobs', 'sportspress' ), 'manage_categories', 'edit-tags.php?taxonomy=sp_role&post_type=sp_player' ) ) );
|
244 |
-
endif;
|
245 |
-
}
|
246 |
-
|
247 |
/**
|
248 |
* Init the overview page
|
249 |
*/
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
27 |
add_action( 'admin_menu', array( $this, 'overview_menu' ), 8 );
|
28 |
add_action( 'admin_menu', array( $this, 'leagues_menu' ), 9 );
|
29 |
add_action( 'admin_menu', array( $this, 'seasons_menu' ), 10 );
|
|
|
30 |
|
31 |
add_action( 'admin_head', array( $this, 'menu_highlight' ) );
|
32 |
add_action( 'admin_head', array( $this, 'menu_rename' ) );
|
52 |
* Add menu item
|
53 |
*/
|
54 |
public function overview_menu() {
|
55 |
+
add_submenu_page( 'sportspress', __( 'Overview', 'sportspress' ), __( 'Overview', 'sportspress' ), 'manage_sportspress', 'sportspress-overview', array( $this, 'overview_page' ) );
|
56 |
}
|
57 |
|
58 |
/**
|
59 |
* Add menu item
|
60 |
*/
|
61 |
public function config_menu() {
|
62 |
+
add_submenu_page( 'sportspress', __( 'Configure', 'sportspress' ), __( 'Configure', 'sportspress' ), 'manage_sportspress', 'sportspress-config', array( $this, 'config_page' ) );
|
63 |
}
|
64 |
|
65 |
/**
|
88 |
if ( $screen->id == 'edit-sp_role' )
|
89 |
$this->highlight_admin_menu( 'edit.php?post_type=sp_player', 'edit-tags.php?taxonomy=sp_role&post_type=sp_player' );
|
90 |
elseif ( is_sp_config_type( $typenow ) )
|
91 |
+
$this->highlight_admin_menu( 'sportspress', 'sportspress-config' );
|
92 |
elseif ( $typenow == 'sp_calendar' )
|
93 |
$this->highlight_admin_menu( 'edit.php?post_type=sp_event', 'edit.php?post_type=sp_calendar' );
|
94 |
elseif ( $typenow == 'sp_table' )
|
95 |
$this->highlight_admin_menu( 'edit.php?post_type=sp_team', 'edit.php?post_type=sp_table' );
|
96 |
elseif ( $typenow == 'sp_list' )
|
97 |
$this->highlight_admin_menu( 'edit.php?post_type=sp_player', 'edit.php?post_type=sp_list' );
|
|
|
|
|
98 |
}
|
99 |
|
100 |
/**
|
108 |
|
109 |
if ( isset( $submenu['sportspress'] ) && isset( $submenu['sportspress'][0] ) && isset( $submenu['sportspress'][0][0] ) )
|
110 |
$submenu['sportspress'][0][0] = __( 'Settings', 'sportspress' );
|
|
|
|
|
|
|
|
|
|
|
111 |
}
|
112 |
|
113 |
public function parent_file( $parent_file ) {
|
135 |
$sportspress_event = array_search( 'edit.php?post_type=sp_event', $menu_order );
|
136 |
$sportspress_team = array_search( 'edit.php?post_type=sp_team', $menu_order );
|
137 |
$sportspress_player = array_search( 'edit.php?post_type=sp_player', $menu_order );
|
138 |
+
$sportspress_staff = array_search( 'edit.php?post_type=sp_staff', $menu_order );
|
139 |
|
140 |
// Loop through menu order and do some rearranging
|
141 |
foreach ( $menu_order as $index => $item ):
|
146 |
$sportspress_menu_order[] = 'edit.php?post_type=sp_event';
|
147 |
$sportspress_menu_order[] = 'edit.php?post_type=sp_team';
|
148 |
$sportspress_menu_order[] = 'edit.php?post_type=sp_player';
|
149 |
+
$sportspress_menu_order[] = 'edit.php?post_type=sp_staff';
|
150 |
unset( $menu_order[ $sportspress_separator ] );
|
151 |
unset( $menu_order[ $sportspress_event ] );
|
152 |
unset( $menu_order[ $sportspress_team ] );
|
153 |
unset( $menu_order[ $sportspress_player ] );
|
154 |
+
unset( $menu_order[ $sportspress_staff ] );
|
155 |
|
156 |
// Apply to added menu items
|
157 |
$menu_items = apply_filters( 'sportspress_menu_items', array() );
|
198 |
$menu[ $separator_position ] = array( '', 'read', 'separator-sportspress', '', 'wp-menu-separator sportspress' );
|
199 |
endif;
|
200 |
|
201 |
+
// Remove "Competitions" and "Seasons" links from Events submenu
|
202 |
if ( isset( $submenu['edit.php?post_type=sp_event'] ) ):
|
203 |
$submenu['edit.php?post_type=sp_event'] = array_filter( $submenu['edit.php?post_type=sp_event'], array( $this, 'remove_leagues' ) );
|
204 |
$submenu['edit.php?post_type=sp_event'] = array_filter( $submenu['edit.php?post_type=sp_event'], array( $this, 'remove_seasons' ) );
|
205 |
endif;
|
206 |
|
207 |
+
// Remove "Venues", "Competitions" and "Seasons" links from Teams submenu
|
208 |
if ( isset( $submenu['edit.php?post_type=sp_team'] ) ):
|
209 |
$submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_venues' ) );
|
210 |
$submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_leagues' ) );
|
211 |
$submenu['edit.php?post_type=sp_team'] = array_filter( $submenu['edit.php?post_type=sp_team'], array( $this, 'remove_seasons' ) );
|
212 |
endif;
|
213 |
|
214 |
+
// Remove "Competitions" and "Seasons" links from Players submenu
|
215 |
if ( isset( $submenu['edit.php?post_type=sp_player'] ) ):
|
216 |
$submenu['edit.php?post_type=sp_player'] = array_filter( $submenu['edit.php?post_type=sp_player'], array( $this, 'remove_leagues' ) );
|
217 |
$submenu['edit.php?post_type=sp_player'] = array_filter( $submenu['edit.php?post_type=sp_player'], array( $this, 'remove_seasons' ) );
|
218 |
endif;
|
219 |
|
220 |
+
// Remove "Competitions" and "Seasons" links from Staff submenu
|
221 |
+
if ( isset( $submenu['edit.php?post_type=sp_staff'] ) ):
|
222 |
+
$submenu['edit.php?post_type=sp_staff'] = array_filter( $submenu['edit.php?post_type=sp_staff'], array( $this, 'remove_leagues' ) );
|
223 |
+
$submenu['edit.php?post_type=sp_staff'] = array_filter( $submenu['edit.php?post_type=sp_staff'], array( $this, 'remove_seasons' ) );
|
224 |
+
endif;
|
225 |
+
|
226 |
$user_roles = $current_user->roles;
|
227 |
$user_role = array_shift($user_roles);
|
228 |
|
233 |
endif;
|
234 |
}
|
235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
/**
|
237 |
* Init the overview page
|
238 |
*/
|
includes/admin/class-sp-admin-sample-data.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* The SportsPress admin sample data class stores demo content.
|
6 |
*
|
7 |
* @class SP_Admin_Sample_Data
|
8 |
-
* @version 1.
|
9 |
* @package SportsPress/Admin
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
@@ -184,7 +184,7 @@ class SP_Admin_Sample_Data {
|
|
184 |
// Define event videos
|
185 |
$event_videos = array(
|
186 |
'https://www.youtube.com/watch?v=xNkf2LYckI0',
|
187 |
-
'https://www.youtube.com/watch?v=
|
188 |
'https://www.youtube.com/watch?v=xSGxuTGVQYE',
|
189 |
);
|
190 |
|
@@ -492,7 +492,6 @@ class SP_Admin_Sample_Data {
|
|
492 |
update_post_meta( $id, 'sp_date', 0 );
|
493 |
update_post_meta( $id, 'sp_team', 0 );
|
494 |
update_post_meta( $id, 'sp_order', 'ASC' );
|
495 |
-
update_post_meta( $id, 'sp_title_format', 'homeaway' );
|
496 |
update_post_meta( $id, 'sp_columns', $columns );
|
497 |
|
498 |
/*
|
5 |
* The SportsPress admin sample data class stores demo content.
|
6 |
*
|
7 |
* @class SP_Admin_Sample_Data
|
8 |
+
* @version 1.5
|
9 |
* @package SportsPress/Admin
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
184 |
// Define event videos
|
185 |
$event_videos = array(
|
186 |
'https://www.youtube.com/watch?v=xNkf2LYckI0',
|
187 |
+
'https://www.youtube.com/watch?v=sIrjQyuwteM',
|
188 |
'https://www.youtube.com/watch?v=xSGxuTGVQYE',
|
189 |
);
|
190 |
|
492 |
update_post_meta( $id, 'sp_date', 0 );
|
493 |
update_post_meta( $id, 'sp_team', 0 );
|
494 |
update_post_meta( $id, 'sp_order', 'ASC' );
|
|
|
495 |
update_post_meta( $id, 'sp_columns', $columns );
|
496 |
|
497 |
/*
|
includes/admin/class-sp-admin-sports.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* The SportsPress admin sports class stores preset sport data.
|
6 |
*
|
7 |
* @class SP_Admin_Sports
|
8 |
-
* @version 1.
|
9 |
* @package SportsPress/Admin
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
@@ -122,6 +122,7 @@ class SP_Admin_Sports {
|
|
122 |
if ( empty( $post ) ) continue;
|
123 |
$id = self::insert_preset_post( $post, $index );
|
124 |
update_post_meta( $id, 'sp_abbreviation', sp_array_value( $outcome, 'abbreviation', null ) );
|
|
|
125 |
}
|
126 |
|
127 |
// Results
|
5 |
* The SportsPress admin sports class stores preset sport data.
|
6 |
*
|
7 |
* @class SP_Admin_Sports
|
8 |
+
* @version 1.5
|
9 |
* @package SportsPress/Admin
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
122 |
if ( empty( $post ) ) continue;
|
123 |
$id = self::insert_preset_post( $post, $index );
|
124 |
update_post_meta( $id, 'sp_abbreviation', sp_array_value( $outcome, 'abbreviation', null ) );
|
125 |
+
update_post_meta( $id, 'sp_condition', sp_array_value( $outcome, 'condition', null ) );
|
126 |
}
|
127 |
|
128 |
// Results
|
includes/admin/class-sp-admin-welcome.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* @author ThemeBoy
|
10 |
* @category Admin
|
11 |
* @package SportsPress/Admin
|
12 |
-
* @version 1.
|
13 |
*/
|
14 |
|
15 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -373,7 +373,7 @@ class SP_Admin_Welcome {
|
|
373 |
|
374 |
<p class="about-description"><?php printf( __( 'SportsPress has been kindly translated into several other languages thanks to our translation team. Want to see your name? <a href="%s">Translate SportsPress</a>.', 'sportspress' ), 'https://www.transifex.com/projects/p/sportspress/' ); ?></p>
|
375 |
<?php
|
376 |
-
$translator_handles = array( 'Abdulelah', 'albertone', 'ALooNeBoy87', 'Andrew_Melim', 'ArtakEVN', 'aylaview', 'Bhelpful2', 'bizover', 'BOCo', 'den_zlateva', 'dic_2008', 'doncer', 'elrawys', 'EmiDelCaz', 'eNnvi', 'etcloki', 'Ferenan', 'fredodq', 'GhiMax', 'GuneshGamza95', 'hanro', 'hushiea', 'i__k', 'JensZ', 'jenymoen', 'joegalaxy66', 'JuKi', 'karimjarro', 'King3R', 'krisop', 'latixns', 'massimo.marra', 'MohamedZ', 'overbite', 'poelie', 'popeosorio', 'rochester', 'sashaCZ', 'Selskei', 'sijo', 'SilverXp', 'SmilyCarrot', 'Spirossmil', 'Taurus', 'ThemeBoy', 'tyby94', 'valentijnreza', 'violaud', 'vlinicx', 'Xyteton', 'zzcs' );
|
377 |
$translator_links = array();
|
378 |
foreach ( $translator_handles as $handle ):
|
379 |
$translator_links[] = '<a href="https://www.transifex.com/accounts/profile/' . $handle . '">' . $handle . '</a>';
|
9 |
* @author ThemeBoy
|
10 |
* @category Admin
|
11 |
* @package SportsPress/Admin
|
12 |
+
* @version 1.5
|
13 |
*/
|
14 |
|
15 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
373 |
|
374 |
<p class="about-description"><?php printf( __( 'SportsPress has been kindly translated into several other languages thanks to our translation team. Want to see your name? <a href="%s">Translate SportsPress</a>.', 'sportspress' ), 'https://www.transifex.com/projects/p/sportspress/' ); ?></p>
|
375 |
<?php
|
376 |
+
$translator_handles = array( 'Abdulelah', 'albertone', 'alisiddique', 'ALooNeBoy87', 'Andrew_Melim', 'ArtakEVN', 'aylaview', 'Bhelpful2', 'bizover', 'BOCo', 'den_zlateva', 'dic_2008', 'doncer', 'elrawys', 'EmiDelCaz', 'eNnvi', 'etcloki', 'Ferenan', 'fredodq', 'GhiMax', 'GuneshGamza95', 'hanro', 'hushiea', 'i__k', 'JensZ', 'jenymoen', 'joegalaxy66', 'JuKi', 'karimjarro', 'King3R', 'krisop', 'latixns', 'massimo.marra', 'MohamedZ', 'overbite', 'poelie', 'popeosorio', 'rochester', 'sashaCZ', 'Selskei', 'sijo', 'SilverXp', 'SmilyCarrot', 'Spirossmil', 'Taurus', 'ThemeBoy', 'tyby94', 'valentijnreza', 'violaud', 'vlinicx', 'xFrAx', 'Xyteton', 'zzcs' );
|
377 |
$translator_links = array();
|
378 |
foreach ( $translator_handles as $handle ):
|
379 |
$translator_links[] = '<a href="https://www.transifex.com/accounts/profile/' . $handle . '">' . $handle . '</a>';
|
includes/admin/importers/class-sp-event-importer.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Importers
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -468,8 +468,8 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|
468 |
<td class="forminp forminp-radio" id="sp_formatdiv">
|
469 |
<fieldset id="post-formats-select">
|
470 |
<ul>
|
471 |
-
<li><input type="radio" name="sp_format" class="post-format" id="post-format-league" value="league" checked="checked"> <label for="post-format-league" class="post-format-icon post-format-league"
|
472 |
-
<li><input type="radio" name="sp_format" class="post-format" id="post-format-friendly" value="friendly"> <label for="post-format-friendly" class="post-format-icon post-format-friendly"
|
473 |
<br>
|
474 |
</fieldset>
|
475 |
</td>
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Importers
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
468 |
<td class="forminp forminp-radio" id="sp_formatdiv">
|
469 |
<fieldset id="post-formats-select">
|
470 |
<ul>
|
471 |
+
<li><input type="radio" name="sp_format" class="post-format" id="post-format-league" value="league" checked="checked"> <label for="post-format-league" class="post-format-icon post-format-league"><?php _e( 'Competitive', 'sportspress' ); ?></label></li>
|
472 |
+
<li><input type="radio" name="sp_format" class="post-format" id="post-format-friendly" value="friendly"> <label for="post-format-friendly" class="post-format-icon post-format-friendly"><?php _e( 'Friendly', 'sportspress' ); ?></label></li>
|
473 |
<br>
|
474 |
</fieldset>
|
475 |
</td>
|
includes/admin/post-types/class-sp-admin-cpt-calendar.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -112,7 +112,7 @@ class SP_Admin_CPT_Calendar extends SP_Admin_CPT {
|
|
112 |
|
113 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
114 |
$args = array(
|
115 |
-
'show_option_all' => __( 'Show all
|
116 |
'taxonomy' => 'sp_league',
|
117 |
'name' => 'sp_league',
|
118 |
'selected' => $selected
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
112 |
|
113 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
114 |
$args = array(
|
115 |
+
'show_option_all' => __( 'Show all competitions', 'sportspress' ),
|
116 |
'taxonomy' => 'sp_league',
|
117 |
'name' => 'sp_league',
|
118 |
'selected' => $selected
|
includes/admin/post-types/class-sp-admin-cpt-event.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -127,33 +127,52 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT {
|
|
127 |
else:
|
128 |
$results = get_post_meta( $post_id, 'sp_results', true );
|
129 |
$main_result = get_option( 'sportspress_primary_result', null );
|
130 |
-
|
131 |
-
|
132 |
-
$
|
|
|
|
|
133 |
|
134 |
-
|
135 |
-
|
136 |
|
137 |
-
|
138 |
-
|
139 |
-
else:
|
140 |
-
if ( is_array( $team_results ) ):
|
141 |
-
end( $team_results );
|
142 |
-
$team_result = prev( $team_results );
|
143 |
else:
|
144 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
endif;
|
146 |
-
endif;
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
echo '<
|
152 |
endif;
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
endif;
|
158 |
break;
|
159 |
case 'sp_league':
|
@@ -189,7 +208,7 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT {
|
|
189 |
|
190 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
191 |
$args = array(
|
192 |
-
'show_option_all' => __( 'Show all
|
193 |
'taxonomy' => 'sp_league',
|
194 |
'name' => 'sp_league',
|
195 |
'selected' => $selected
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
127 |
else:
|
128 |
$results = get_post_meta( $post_id, 'sp_results', true );
|
129 |
$main_result = get_option( 'sportspress_primary_result', null );
|
130 |
+
echo '<input type="hidden" name="sp_post_id" value="' . $post_id . '">';
|
131 |
+
echo '<div class="sp-results">';
|
132 |
+
foreach( $teams as $team_id ):
|
133 |
+
if ( ! $team_id ) continue;
|
134 |
+
$team = get_post( $team_id );
|
135 |
|
136 |
+
if ( $team ):
|
137 |
+
$team_results = sportspress_array_value( $results, $team_id, null );
|
138 |
|
139 |
+
if ( $main_result ):
|
140 |
+
$team_result = sportspress_array_value( $team_results, $main_result, null );
|
|
|
|
|
|
|
|
|
141 |
else:
|
142 |
+
if ( is_array( $team_results ) ):
|
143 |
+
end( $team_results );
|
144 |
+
$team_result = prev( $team_results );
|
145 |
+
$main_result = key( $team_results );
|
146 |
+
else:
|
147 |
+
$team_result = null;
|
148 |
+
endif;
|
149 |
+
endif;
|
150 |
+
|
151 |
+
if ( is_array( $team_results ) ):
|
152 |
+
unset( $team_results['outcome'] );
|
153 |
+
$team_results = implode( ' | ', $team_results );
|
154 |
endif;
|
|
|
155 |
|
156 |
+
echo '<a class="sp-result tips" tabindex="10" title="' . $team_results . '" data-team="' . $team_id . '" href="#">' . ( $team_result == '' ? '-' : $team_result ) . '</a>';
|
157 |
+
echo '<input type="text" tabindex="10" class="sp-edit-result hidden small-text" data-team="' . $team_id . '" data-key="' . $main_result . '" value="' . $team_result . '"> ';
|
158 |
+
echo $team->post_title;
|
159 |
+
echo '<br>';
|
160 |
endif;
|
161 |
+
endforeach;
|
162 |
+
echo '</div>';
|
163 |
+
?>
|
164 |
+
<div class="row-actions sp-row-actions"><span class="inline hide-if-no-js"><a href="#" class="sp-edit-results"><?php _e( 'Edit Results', 'sportspress' ); ?></a></span></div>
|
165 |
+
<p class="inline-edit-save sp-inline-edit-save hidden">
|
166 |
+
<a href="#inline-edit" class="button-secondary cancel alignleft"><?php _e( 'Cancel' ); ?></a>
|
167 |
+
<?php wp_nonce_field( 'sp-save-inline-results', 'sp-inline-nonce', false ); ?>
|
168 |
+
<a href="#inline-edit" class="button-primary save alignright"><?php _e( 'Update' ); ?></a>
|
169 |
+
<span class="spinner"></span>
|
170 |
+
<input type="hidden" name="post_view" value="<?php echo esc_attr( $m ); ?>" />
|
171 |
+
<input type="hidden" name="screen" value="<?php echo esc_attr( $screen->id ); ?>" />
|
172 |
+
<span class="error" style="display:none"></span>
|
173 |
+
<br class="clear" />
|
174 |
+
</p>
|
175 |
+
<?php
|
176 |
endif;
|
177 |
break;
|
178 |
case 'sp_league':
|
208 |
|
209 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
210 |
$args = array(
|
211 |
+
'show_option_all' => __( 'Show all competitions', 'sportspress' ),
|
212 |
'taxonomy' => 'sp_league',
|
213 |
'name' => 'sp_league',
|
214 |
'selected' => $selected
|
includes/admin/post-types/class-sp-admin-cpt-list.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -101,7 +101,7 @@ class SP_Admin_CPT_List extends SP_Admin_CPT {
|
|
101 |
|
102 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
103 |
$args = array(
|
104 |
-
'show_option_all' => __( 'Show all
|
105 |
'taxonomy' => 'sp_league',
|
106 |
'name' => 'sp_league',
|
107 |
'selected' => $selected
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
101 |
|
102 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
103 |
$args = array(
|
104 |
+
'show_option_all' => __( 'Show all competitions', 'sportspress' ),
|
105 |
'taxonomy' => 'sp_league',
|
106 |
'name' => 'sp_league',
|
107 |
'selected' => $selected
|
includes/admin/post-types/class-sp-admin-cpt-player.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -147,7 +147,7 @@ class SP_Admin_CPT_Player extends SP_Admin_CPT {
|
|
147 |
|
148 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
149 |
$args = array(
|
150 |
-
'show_option_all' => __( 'Show all
|
151 |
'taxonomy' => 'sp_league',
|
152 |
'name' => 'sp_league',
|
153 |
'selected' => $selected
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
147 |
|
148 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
149 |
$args = array(
|
150 |
+
'show_option_all' => __( 'Show all competitions', 'sportspress' ),
|
151 |
'taxonomy' => 'sp_league',
|
152 |
'name' => 'sp_league',
|
153 |
'selected' => $selected
|
includes/admin/post-types/class-sp-admin-cpt-staff.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -131,7 +131,7 @@ class SP_Admin_CPT_Staff extends SP_Admin_CPT {
|
|
131 |
|
132 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
133 |
$args = array(
|
134 |
-
'show_option_all' => __( 'Show all
|
135 |
'taxonomy' => 'sp_league',
|
136 |
'name' => 'sp_league',
|
137 |
'selected' => $selected
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
131 |
|
132 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
133 |
$args = array(
|
134 |
+
'show_option_all' => __( 'Show all competitions', 'sportspress' ),
|
135 |
'taxonomy' => 'sp_league',
|
136 |
'name' => 'sp_league',
|
137 |
'selected' => $selected
|
includes/admin/post-types/class-sp-admin-cpt-table.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -83,7 +83,7 @@ class SP_Admin_CPT_Table extends SP_Admin_CPT {
|
|
83 |
|
84 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
85 |
$args = array(
|
86 |
-
'show_option_all' => __( 'Show all
|
87 |
'taxonomy' => 'sp_league',
|
88 |
'name' => 'sp_league',
|
89 |
'selected' => $selected
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
83 |
|
84 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
85 |
$args = array(
|
86 |
+
'show_option_all' => __( 'Show all competitions', 'sportspress' ),
|
87 |
'taxonomy' => 'sp_league',
|
88 |
'name' => 'sp_league',
|
89 |
'selected' => $selected
|
includes/admin/post-types/class-sp-admin-cpt-team.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -108,7 +108,7 @@ class SP_Admin_CPT_Team extends SP_Admin_CPT {
|
|
108 |
|
109 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
110 |
$args = array(
|
111 |
-
'show_option_all' => __( 'Show all
|
112 |
'taxonomy' => 'sp_league',
|
113 |
'name' => 'sp_league',
|
114 |
'selected' => $selected
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Post_Types
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
108 |
|
109 |
$selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
|
110 |
$args = array(
|
111 |
+
'show_option_all' => __( 'Show all competitions', 'sportspress' ),
|
112 |
'taxonomy' => 'sp_league',
|
113 |
'name' => 'sp_league',
|
114 |
'selected' => $selected
|
includes/admin/post-types/class-sp-admin-meta-boxes.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @author ThemeBoy
|
8 |
* @category Admin
|
9 |
* @package SportsPress/Admin/Meta_Boxes
|
10 |
-
* @version 1.
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -125,6 +125,8 @@ class SP_Admin_Meta_Boxes {
|
|
125 |
add_meta_box( 'sp_videodiv', __( 'Video', 'sportspress' ), 'SP_Meta_Box_Event_Video::output', 'sp_event', 'side', 'low' );
|
126 |
if ( sizeof( array_filter( sp_array_value( $post_meta, 'sp_team', array() ) ) ) ):
|
127 |
add_meta_box( 'sp_resultsdiv', __( 'Team Results', 'sportspress' ), 'SP_Meta_Box_Event_Results::output', 'sp_event', 'normal', 'high' );
|
|
|
|
|
128 |
add_meta_box( 'sp_performancediv', __( 'Player Performance', 'sportspress' ), 'SP_Meta_Box_Event_Performance::output', 'sp_event', 'normal', 'high' );
|
129 |
endif;
|
130 |
add_meta_box( 'sp_editordiv', __( 'Article', 'sportspress' ), 'SP_Meta_Box_Event_Editor::output', 'sp_event', 'normal', 'low' );
|
7 |
* @author ThemeBoy
|
8 |
* @category Admin
|
9 |
* @package SportsPress/Admin/Meta_Boxes
|
10 |
+
* @version 1.5
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
125 |
add_meta_box( 'sp_videodiv', __( 'Video', 'sportspress' ), 'SP_Meta_Box_Event_Video::output', 'sp_event', 'side', 'low' );
|
126 |
if ( sizeof( array_filter( sp_array_value( $post_meta, 'sp_team', array() ) ) ) ):
|
127 |
add_meta_box( 'sp_resultsdiv', __( 'Team Results', 'sportspress' ), 'SP_Meta_Box_Event_Results::output', 'sp_event', 'normal', 'high' );
|
128 |
+
endif;
|
129 |
+
if ( sizeof( array_filter( sp_array_value( $post_meta, 'sp_player', array() ) ) ) ):
|
130 |
add_meta_box( 'sp_performancediv', __( 'Player Performance', 'sportspress' ), 'SP_Meta_Box_Event_Performance::output', 'sp_event', 'normal', 'high' );
|
131 |
endif;
|
132 |
add_meta_box( 'sp_editordiv', __( 'Article', 'sportspress' ), 'SP_Meta_Box_Event_Editor::output', 'sp_event', 'normal', 'low' );
|
includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -22,22 +22,23 @@ class SP_Meta_Box_Calendar_Data {
|
|
22 |
$calendar = new SP_Calendar( $post );
|
23 |
$data = $calendar->data();
|
24 |
$usecolumns = $calendar->columns;
|
25 |
-
$
|
26 |
-
self::table( $data, $usecolumns, $title_format );
|
27 |
}
|
28 |
|
29 |
/**
|
30 |
* Save meta box data
|
31 |
*/
|
32 |
public static function save( $post_id, $post ) {
|
33 |
-
update_post_meta( $post_id, 'sp_title_format', sp_array_value( $_POST, 'sp_title_format', 'title' ) );
|
34 |
update_post_meta( $post_id, 'sp_columns', sp_array_value( $_POST, 'sp_columns', array() ) );
|
35 |
}
|
36 |
|
37 |
/**
|
38 |
* Admin edit table
|
39 |
*/
|
40 |
-
public static function table( $data = array(), $usecolumns = null
|
|
|
|
|
|
|
41 |
if ( is_array( $usecolumns ) )
|
42 |
$usecolumns = array_filter( $usecolumns );
|
43 |
?>
|
@@ -51,19 +52,39 @@ class SP_Meta_Box_Calendar_Data {
|
|
51 |
<th class="column-event">
|
52 |
<label for="sp_columns_event">
|
53 |
<input type="checkbox" name="sp_columns[]" value="event" id="sp_columns_event" <?php checked( ! is_array( $usecolumns ) || in_array( 'event', $usecolumns ) ); ?>>
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
<input type="checkbox" name="sp_columns[]" value="time" id="sp_columns_time" <?php checked( ! is_array( $usecolumns ) || in_array( 'time', $usecolumns ) ); ?>>
|
64 |
-
<?php _e( 'Time/Results', 'sportspress' ); ?>
|
65 |
</label>
|
66 |
</th>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
<th class="column-league">
|
68 |
<label for="sp_columns_league">
|
69 |
<input type="checkbox" name="sp_columns[]" value="league" id="sp_columns_league" <?php checked( ! is_array( $usecolumns ) || in_array( 'league', $usecolumns ) ); ?>>
|
@@ -139,15 +160,30 @@ class SP_Meta_Box_Calendar_Data {
|
|
139 |
?>
|
140 |
</div>
|
141 |
</td>
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
<td><?php the_terms( $event->ID, 'sp_league' ); ?></td>
|
152 |
<td><?php the_terms( $event->ID, 'sp_season' ); ?></td>
|
153 |
<td><?php the_terms( $event->ID, 'sp_venue' ); ?></td>
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
22 |
$calendar = new SP_Calendar( $post );
|
23 |
$data = $calendar->data();
|
24 |
$usecolumns = $calendar->columns;
|
25 |
+
self::table( $data, $usecolumns );
|
|
|
26 |
}
|
27 |
|
28 |
/**
|
29 |
* Save meta box data
|
30 |
*/
|
31 |
public static function save( $post_id, $post ) {
|
|
|
32 |
update_post_meta( $post_id, 'sp_columns', sp_array_value( $_POST, 'sp_columns', array() ) );
|
33 |
}
|
34 |
|
35 |
/**
|
36 |
* Admin edit table
|
37 |
*/
|
38 |
+
public static function table( $data = array(), $usecolumns = null ) {
|
39 |
+
$title_format = get_option( 'sportspress_event_list_title_format', 'title' );
|
40 |
+
$time_format = get_option( 'sportspress_event_list_time_format', 'combined' );
|
41 |
+
|
42 |
if ( is_array( $usecolumns ) )
|
43 |
$usecolumns = array_filter( $usecolumns );
|
44 |
?>
|
52 |
<th class="column-event">
|
53 |
<label for="sp_columns_event">
|
54 |
<input type="checkbox" name="sp_columns[]" value="event" id="sp_columns_event" <?php checked( ! is_array( $usecolumns ) || in_array( 'event', $usecolumns ) ); ?>>
|
55 |
+
<?php
|
56 |
+
if ( 'teams' == $title_format ) {
|
57 |
+
_e( 'Home', 'sportspress' ); ?> | <?php _e( 'Away', 'sportspress' );
|
58 |
+
} elseif ( 'homeaway' == $title_format ) {
|
59 |
+
_e( 'Teams', 'sportspress' );
|
60 |
+
} else {
|
61 |
+
_e( 'Title', 'sportspress' );
|
62 |
+
}
|
63 |
+
?>
|
|
|
|
|
64 |
</label>
|
65 |
</th>
|
66 |
+
<?php if ( in_array( $time_format, array( 'combined', 'separate', 'time' ) ) ) { ?>
|
67 |
+
<th class="column-time">
|
68 |
+
<label for="sp_columns_time">
|
69 |
+
<input type="checkbox" name="sp_columns[]" value="time" id="sp_columns_time" <?php checked( ! is_array( $usecolumns ) || in_array( 'time', $usecolumns ) ); ?>>
|
70 |
+
<?php
|
71 |
+
if ( 'time' == $time_format || 'separate' == $time_format ) {
|
72 |
+
_e( 'Time', 'sportspress' );
|
73 |
+
} else {
|
74 |
+
_e( 'Time/Results', 'sportspress' );
|
75 |
+
}
|
76 |
+
?>
|
77 |
+
</label>
|
78 |
+
</th>
|
79 |
+
<?php } ?>
|
80 |
+
<?php if ( in_array( $time_format, array( 'separate', 'results' ) ) ) { ?>
|
81 |
+
<th class="column-results">
|
82 |
+
<label for="sp_columns_results">
|
83 |
+
<input type="checkbox" name="sp_columns[]" value="results" id="sp_columns_results" <?php checked( ! is_array( $usecolumns ) || in_array( 'results', $usecolumns ) ); ?>>
|
84 |
+
<?php _e( 'Results', 'sportspress' ); ?>
|
85 |
+
</label>
|
86 |
+
</th>
|
87 |
+
<?php } ?>
|
88 |
<th class="column-league">
|
89 |
<label for="sp_columns_league">
|
90 |
<input type="checkbox" name="sp_columns[]" value="league" id="sp_columns_league" <?php checked( ! is_array( $usecolumns ) || in_array( 'league', $usecolumns ) ); ?>>
|
160 |
?>
|
161 |
</div>
|
162 |
</td>
|
163 |
+
<?php if ( 'separate' == $time_format ) { ?>
|
164 |
+
<td>
|
165 |
+
<?php echo get_post_time( get_option( 'time_format' ), false, $event, true ); ?>
|
166 |
+
</td>
|
167 |
+
<td>
|
168 |
+
<?php
|
169 |
+
if ( ! empty( $main_results ) ):
|
170 |
+
echo implode( ' - ', $main_results );
|
171 |
+
else:
|
172 |
+
echo '-';
|
173 |
+
endif;
|
174 |
+
?>
|
175 |
+
</td>
|
176 |
+
<?php } else { ?>
|
177 |
+
<td>
|
178 |
+
<?php
|
179 |
+
if ( ! empty( $main_results ) ):
|
180 |
+
echo implode( ' - ', $main_results );
|
181 |
+
else:
|
182 |
+
echo get_post_time( get_option( 'time_format' ), false, $event, true );
|
183 |
+
endif;
|
184 |
+
?>
|
185 |
+
</td>
|
186 |
+
<?php } ?>
|
187 |
<td><?php the_terms( $event->ID, 'sp_league' ); ?></td>
|
188 |
<td><?php the_terms( $event->ID, 'sp_season' ); ?></td>
|
189 |
<td><?php the_terms( $event->ID, 'sp_venue' ); ?></td>
|
includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-feeds.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @author ThemeBoy
|
8 |
* @category Admin
|
9 |
* @package SportsPress/Admin/Meta_Boxes
|
10 |
-
* @version 1.
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -25,15 +25,29 @@ class SP_Meta_Box_Calendar_Feeds {
|
|
25 |
$calendar_feeds = $feeds->calendar;
|
26 |
?>
|
27 |
<div>
|
28 |
-
<?php foreach ( $calendar_feeds as $
|
29 |
-
<?php $link =
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
<?php } ?>
|
38 |
</div>
|
39 |
<?php
|
7 |
* @author ThemeBoy
|
8 |
* @category Admin
|
9 |
* @package SportsPress/Admin/Meta_Boxes
|
10 |
+
* @version 1.5
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
25 |
$calendar_feeds = $feeds->calendar;
|
26 |
?>
|
27 |
<div>
|
28 |
+
<?php foreach ( $calendar_feeds as $slug => $formats ) { ?>
|
29 |
+
<?php $link = add_query_arg( 'feed', 'sp-' . $slug, untrailingslashit( get_post_permalink( $post ) ) ); ?>
|
30 |
+
<?php foreach ( $formats as $format ) { ?>
|
31 |
+
<?php
|
32 |
+
$protocol = sp_array_value( $format, 'protocol' );
|
33 |
+
if ( $protocol ) {
|
34 |
+
$feed = str_replace( array( 'http:', 'https:' ), 'webcal:', $link );
|
35 |
+
} else {
|
36 |
+
$feed = $link;
|
37 |
+
}
|
38 |
+
$prefix = sp_array_value( $format, 'prefix' );
|
39 |
+
if ( $prefix ) {
|
40 |
+
$feed = $prefix . urlencode( $feed );
|
41 |
+
}
|
42 |
+
?>
|
43 |
+
<p>
|
44 |
+
<strong><?php echo sp_array_value( $format, 'name' ); ?></strong>
|
45 |
+
<a class="sp-link" href="<?php echo $feed; ?>" target="_blank" title="<?php _e( 'Link', 'sportspress' ); ?>"></a>
|
46 |
+
</p>
|
47 |
+
<p>
|
48 |
+
<input type="text" value="<?php echo $feed; ?>" readonly="readonly" class="code widefat">
|
49 |
+
</p>
|
50 |
+
<?php } ?>
|
51 |
<?php } ?>
|
52 |
</div>
|
53 |
<?php
|
includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -25,7 +25,7 @@ class SP_Meta_Box_Event_Performance {
|
|
25 |
$i = 0;
|
26 |
|
27 |
foreach ( $teams as $key => $team_id ):
|
28 |
-
if (
|
29 |
|
30 |
// Get results for players in the team
|
31 |
$players = sp_array_between( (array)get_post_meta( $post->ID, 'sp_player', false ), 0, $key );
|
@@ -33,7 +33,11 @@ class SP_Meta_Box_Event_Performance {
|
|
33 |
|
34 |
?>
|
35 |
<div>
|
36 |
-
|
|
|
|
|
|
|
|
|
37 |
<?php self::table( $labels, $columns, $data, $team_id, $i == 0 ); ?>
|
38 |
</div>
|
39 |
<?php
|
@@ -83,7 +87,15 @@ class SP_Meta_Box_Event_Performance {
|
|
83 |
<?php endif; ?>
|
84 |
</th>
|
85 |
<?php endforeach; ?>
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
</tr>
|
88 |
</thead>
|
89 |
<tfoot>
|
@@ -125,7 +137,8 @@ class SP_Meta_Box_Event_Performance {
|
|
125 |
'taxonomy' => 'sp_position',
|
126 |
'name' => 'sp_players[' . $team_id . '][' . $player_id . '][position]',
|
127 |
'values' => 'term_id',
|
128 |
-
'
|
|
|
129 |
);
|
130 |
sp_dropdown_taxonomies( $args );
|
131 |
?>
|
@@ -137,10 +150,34 @@ class SP_Meta_Box_Event_Performance {
|
|
137 |
<input class="sp-player-<?php echo $column; ?>-input" type="text" name="sp_players[<?php echo $team_id; ?>][<?php echo $player_id; ?>][<?php echo $column; ?>]" value="<?php echo $value; ?>" placeholder="0" />
|
138 |
</td>
|
139 |
<?php endforeach; ?>
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
</tr>
|
145 |
<?php
|
146 |
endforeach;
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
25 |
$i = 0;
|
26 |
|
27 |
foreach ( $teams as $key => $team_id ):
|
28 |
+
if ( -1 == $team_id ) continue;
|
29 |
|
30 |
// Get results for players in the team
|
31 |
$players = sp_array_between( (array)get_post_meta( $post->ID, 'sp_player', false ), 0, $key );
|
33 |
|
34 |
?>
|
35 |
<div>
|
36 |
+
<?php if ( $team_id ): ?>
|
37 |
+
<p><strong><?php echo get_the_title( $team_id ); ?></strong></p>
|
38 |
+
<?php elseif ( $i ): ?>
|
39 |
+
<br>
|
40 |
+
<?php endif; ?>
|
41 |
<?php self::table( $labels, $columns, $data, $team_id, $i == 0 ); ?>
|
42 |
</div>
|
43 |
<?php
|
87 |
<?php endif; ?>
|
88 |
</th>
|
89 |
<?php endforeach; ?>
|
90 |
+
<?php if ( $team_id ): ?>
|
91 |
+
<th>
|
92 |
+
<?php _e( 'Status', 'sportspress' ); ?>
|
93 |
+
</th>
|
94 |
+
<?php else: ?>
|
95 |
+
<th>
|
96 |
+
<?php _e( 'Outcome', 'sportspress' ); ?>
|
97 |
+
</th>
|
98 |
+
<?php endif; ?>
|
99 |
</tr>
|
100 |
</thead>
|
101 |
<tfoot>
|
137 |
'taxonomy' => 'sp_position',
|
138 |
'name' => 'sp_players[' . $team_id . '][' . $player_id . '][position]',
|
139 |
'values' => 'term_id',
|
140 |
+
'orderby' => 'slug',
|
141 |
+
'selected' => $selected,
|
142 |
);
|
143 |
sp_dropdown_taxonomies( $args );
|
144 |
?>
|
150 |
<input class="sp-player-<?php echo $column; ?>-input" type="text" name="sp_players[<?php echo $team_id; ?>][<?php echo $player_id; ?>][<?php echo $column; ?>]" value="<?php echo $value; ?>" placeholder="0" />
|
151 |
</td>
|
152 |
<?php endforeach; ?>
|
153 |
+
<?php if ( $team_id ): ?>
|
154 |
+
<td class="sp-status-selector">
|
155 |
+
<?php echo self::status_select( $team_id, $player_id, sp_array_value( $player_performance, 'status', null ) ); ?>
|
156 |
+
<?php echo self::sub_select( $team_id, $player_id, sp_array_value( $player_performance, 'sub', null ), $data ); ?>
|
157 |
+
</td>
|
158 |
+
<?php else: ?>
|
159 |
+
<td>
|
160 |
+
<?php
|
161 |
+
$values = sp_array_value( $player_performance, 'outcome', '' );
|
162 |
+
if ( ! is_array( $values ) )
|
163 |
+
$values = array( $values );
|
164 |
+
|
165 |
+
$args = array(
|
166 |
+
'post_type' => 'sp_outcome',
|
167 |
+
'name' => 'sp_players[' . $team_id . '][' . $player_id . '][outcome][]',
|
168 |
+
'option_none_value' => '',
|
169 |
+
'sort_order' => 'ASC',
|
170 |
+
'sort_column' => 'menu_order',
|
171 |
+
'selected' => $values,
|
172 |
+
'class' => 'sp-outcome',
|
173 |
+
'property' => 'multiple',
|
174 |
+
'chosen' => true,
|
175 |
+
'placeholder' => __( 'None', 'sportspress' ),
|
176 |
+
);
|
177 |
+
sp_dropdown_pages( $args );
|
178 |
+
?>
|
179 |
+
</td>
|
180 |
+
<?php endif; ?>
|
181 |
</tr>
|
182 |
<?php
|
183 |
endforeach;
|
includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -29,6 +29,86 @@ class SP_Meta_Box_Event_Results {
|
|
29 |
*/
|
30 |
public static function save( $post_id, $post ) {
|
31 |
$results = (array)sp_array_value( $_POST, 'sp_results', array() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
update_post_meta( $post_id, 'sp_results', $results );
|
33 |
update_post_meta( $post_id, 'sp_result_columns', sp_array_value( $_POST, 'sp_result_columns', array() ) );
|
34 |
}
|
@@ -90,6 +170,7 @@ class SP_Meta_Box_Event_Results {
|
|
90 |
'class' => 'sp-outcome',
|
91 |
'property' => 'multiple',
|
92 |
'chosen' => true,
|
|
|
93 |
);
|
94 |
sp_dropdown_pages( $args );
|
95 |
?>
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
29 |
*/
|
30 |
public static function save( $post_id, $post ) {
|
31 |
$results = (array)sp_array_value( $_POST, 'sp_results', array() );
|
32 |
+
$main_result = get_option( 'sportspress_primary_result', null );
|
33 |
+
|
34 |
+
// Auto outcome
|
35 |
+
$primary_results = array();
|
36 |
+
foreach ( $results as $team => $team_results ) {
|
37 |
+
if ( $main_result ) {
|
38 |
+
$primary_results[ $team ] = sp_array_value( $team_results, $main_result, null );
|
39 |
+
} else {
|
40 |
+
if ( is_array( $team_results ) ) {
|
41 |
+
end( $team_results );
|
42 |
+
$primary_results[ $team ] = prev( $team_results );
|
43 |
+
} else {
|
44 |
+
$primary_results[ $team ] = null;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
+
arsort( $primary_results );
|
50 |
+
|
51 |
+
if ( count( $primary_results ) && ! in_array( null, $primary_results ) ) {
|
52 |
+
if ( count( array_unique( $primary_results ) ) === 1 ) {
|
53 |
+
$args = array(
|
54 |
+
'post_type' => 'sp_outcome',
|
55 |
+
'numberposts' => -1,
|
56 |
+
'posts_per_page' => -1,
|
57 |
+
'meta_key' => 'sp_condition',
|
58 |
+
'meta_value' => '=',
|
59 |
+
);
|
60 |
+
$outcomes = get_posts( $args );
|
61 |
+
foreach ( $results as $team => $team_results ) {
|
62 |
+
if ( array_key_exists( 'outcome', $team_results ) ) continue;
|
63 |
+
if ( $outcomes ) {
|
64 |
+
$results[ $team ][ 'outcome' ] = array();
|
65 |
+
foreach ( $outcomes as $outcome ) {
|
66 |
+
$results[ $team ][ 'outcome' ][] = $outcome->post_name;
|
67 |
+
}
|
68 |
+
}
|
69 |
+
}
|
70 |
+
} else {
|
71 |
+
reset( $primary_results );
|
72 |
+
$max = key( $primary_results );
|
73 |
+
if ( ! array_key_exists( 'outcome', $results[ $max ] ) ) {
|
74 |
+
$args = array(
|
75 |
+
'post_type' => 'sp_outcome',
|
76 |
+
'numberposts' => -1,
|
77 |
+
'posts_per_page' => -1,
|
78 |
+
'meta_key' => 'sp_condition',
|
79 |
+
'meta_value' => '>',
|
80 |
+
);
|
81 |
+
$outcomes = get_posts( $args );
|
82 |
+
if ( $outcomes ) {
|
83 |
+
$results[ $max ][ 'outcome' ] = array();
|
84 |
+
foreach ( $outcomes as $outcome ) {
|
85 |
+
$results[ $max ][ 'outcome' ][] = $outcome->post_name;
|
86 |
+
}
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
end( $primary_results );
|
91 |
+
$min = key( $primary_results );
|
92 |
+
if ( ! array_key_exists( 'outcome', $results[ $min ] ) ) {
|
93 |
+
$args = array(
|
94 |
+
'post_type' => 'sp_outcome',
|
95 |
+
'numberposts' => -1,
|
96 |
+
'posts_per_page' => -1,
|
97 |
+
'meta_key' => 'sp_condition',
|
98 |
+
'meta_value' => '<',
|
99 |
+
);
|
100 |
+
$outcomes = get_posts( $args );
|
101 |
+
if ( $outcomes ) {
|
102 |
+
$results[ $min ][ 'outcome' ] = array();
|
103 |
+
foreach ( $outcomes as $outcome ) {
|
104 |
+
$results[ $min ][ 'outcome' ][] = $outcome->post_name;
|
105 |
+
}
|
106 |
+
}
|
107 |
+
}
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
// Update meta
|
112 |
update_post_meta( $post_id, 'sp_results', $results );
|
113 |
update_post_meta( $post_id, 'sp_result_columns', sp_array_value( $_POST, 'sp_result_columns', array() ) );
|
114 |
}
|
170 |
'class' => 'sp-outcome',
|
171 |
'property' => 'multiple',
|
172 |
'chosen' => true,
|
173 |
+
'placeholder' => __( '(Auto)', 'sportspress' ),
|
174 |
);
|
175 |
sp_dropdown_pages( $args );
|
176 |
?>
|
includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -59,10 +59,12 @@ class SP_Meta_Box_Event_Teams {
|
|
59 |
'post_type' => 'sp_team',
|
60 |
'name' => 'sp_team[]',
|
61 |
'class' => 'sportspress-pages',
|
62 |
-
'show_option_none' =>
|
|
|
|
|
63 |
'selected' => $team,
|
64 |
);
|
65 |
-
|
66 |
?>
|
67 |
</p>
|
68 |
<ul id="sp_team-tabs" class="wp-tab-bar sp-tab-bar">
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
59 |
'post_type' => 'sp_team',
|
60 |
'name' => 'sp_team[]',
|
61 |
'class' => 'sportspress-pages',
|
62 |
+
'show_option_none' => __( '— None —', 'sportspress' ),
|
63 |
+
'show_option_all' => __( '— Individual —', 'sportspress' ),
|
64 |
+
'values' => 'ID',
|
65 |
'selected' => $team,
|
66 |
);
|
67 |
+
sp_dropdown_pages( $args );
|
68 |
?>
|
69 |
</p>
|
70 |
<ul id="sp_team-tabs" class="wp-tab-bar sp-tab-bar">
|
includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
-
* @version
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -24,6 +24,10 @@ class SP_Meta_Box_Outcome_Details extends SP_Meta_Box_Config {
|
|
24 |
public static function output( $post ) {
|
25 |
wp_nonce_field( 'sportspress_save_data', 'sportspress_meta_nonce' );
|
26 |
$abbreviation = get_post_meta( $post->ID, 'sp_abbreviation', true );
|
|
|
|
|
|
|
|
|
27 |
?>
|
28 |
<p><strong><?php _e( 'Variable', 'sportspress' ); ?></strong></p>
|
29 |
<p>
|
@@ -34,6 +38,25 @@ class SP_Meta_Box_Outcome_Details extends SP_Meta_Box_Config {
|
|
34 |
<p>
|
35 |
<input name="sp_abbreviation" type="text" id="sp_abbreviation" value="<?php echo $abbreviation; ?>" placeholder="<?php echo substr( $post->post_title, 0, 1 ); ?>">
|
36 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
<?php
|
38 |
}
|
39 |
|
@@ -42,5 +65,6 @@ class SP_Meta_Box_Outcome_Details extends SP_Meta_Box_Config {
|
|
42 |
*/
|
43 |
public static function save( $post_id, $post ) {
|
44 |
update_post_meta( $post_id, 'sp_abbreviation', sp_array_value( $_POST, 'sp_abbreviation', array() ) );
|
|
|
45 |
}
|
46 |
}
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
24 |
public static function output( $post ) {
|
25 |
wp_nonce_field( 'sportspress_save_data', 'sportspress_meta_nonce' );
|
26 |
$abbreviation = get_post_meta( $post->ID, 'sp_abbreviation', true );
|
27 |
+
$condition = get_post_meta( $post->ID, 'sp_condition', true );
|
28 |
+
$main_result = get_option( 'sportspress_primary_result', null );
|
29 |
+
$result = get_page_by_path( $main_result, ARRAY_A, 'sp_result' );
|
30 |
+
$label = sp_array_value( $result, 'post_title', __( 'Primary', 'sportspress' ) );
|
31 |
?>
|
32 |
<p><strong><?php _e( 'Variable', 'sportspress' ); ?></strong></p>
|
33 |
<p>
|
38 |
<p>
|
39 |
<input name="sp_abbreviation" type="text" id="sp_abbreviation" value="<?php echo $abbreviation; ?>" placeholder="<?php echo substr( $post->post_title, 0, 1 ); ?>">
|
40 |
</p>
|
41 |
+
<p><strong><?php _e( 'Condition', 'sportspress' ); ?></strong></p>
|
42 |
+
<p>
|
43 |
+
<select name="sp_condition">
|
44 |
+
<?php
|
45 |
+
$options = array(
|
46 |
+
'0' => __( '—', 'sportspress' ),
|
47 |
+
'>' => sprintf( __( 'Most %s', 'sportspress' ), $label ),
|
48 |
+
'<' => sprintf( __( 'Least %s', 'sportspress' ), $label ),
|
49 |
+
'=' => sprintf( __( 'Equal %s', 'sportspress' ), $label ),
|
50 |
+
);
|
51 |
+
for( $i = 1; $i <= $count->publish; $i++ ):
|
52 |
+
$options[ $i ] = $i;
|
53 |
+
endfor;
|
54 |
+
foreach ( $options as $key => $value ):
|
55 |
+
printf( '<option value="%s" %s>%s</option>', $key, selected( true, $key == $condition, false ), $value );
|
56 |
+
endforeach;
|
57 |
+
?>
|
58 |
+
</select>
|
59 |
+
</p>
|
60 |
<?php
|
61 |
}
|
62 |
|
65 |
*/
|
66 |
public static function save( $post_id, $post ) {
|
67 |
update_post_meta( $post_id, 'sp_abbreviation', sp_array_value( $_POST, 'sp_abbreviation', array() ) );
|
68 |
+
update_post_meta( $post_id, 'sp_condition', sp_array_value( $_POST, 'sp_condition', array() ) );
|
69 |
}
|
70 |
}
|
includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -36,7 +36,7 @@ class SP_Meta_Box_Player_Statistics {
|
|
36 |
endforeach;
|
37 |
endif;
|
38 |
?>
|
39 |
-
<p><strong><?php _e( 'Total', 'sportspress' ); ?></strong></p>
|
40 |
<?php
|
41 |
list( $columns, $data, $placeholders, $merged, $seasons_teams ) = $player->data( 0, true );
|
42 |
self::table( $post->ID, 0, $columns, $data, $placeholders, $merged, $seasons_teams );
|
@@ -103,6 +103,7 @@ class SP_Meta_Box_Player_Statistics {
|
|
103 |
'post_type' => 'sp_team',
|
104 |
'name' => 'sp_leagues[' . $league_id . '][' . $div_id . ']',
|
105 |
'show_option_none' => __( '— None —', 'sportspress' ),
|
|
|
106 |
'sort_order' => 'ASC',
|
107 |
'sort_column' => 'menu_order',
|
108 |
'selected' => $value,
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin/Meta_Boxes
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
36 |
endforeach;
|
37 |
endif;
|
38 |
?>
|
39 |
+
<p><strong><?php _e( 'Career Total', 'sportspress' ); ?></strong></p>
|
40 |
<?php
|
41 |
list( $columns, $data, $placeholders, $merged, $seasons_teams ) = $player->data( 0, true );
|
42 |
self::table( $post->ID, 0, $columns, $data, $placeholders, $merged, $seasons_teams );
|
103 |
'post_type' => 'sp_team',
|
104 |
'name' => 'sp_leagues[' . $league_id . '][' . $div_id . ']',
|
105 |
'show_option_none' => __( '— None —', 'sportspress' ),
|
106 |
+
'show_option_all' => __( '— Individual —', 'sportspress' ),
|
107 |
'sort_order' => 'ASC',
|
108 |
'sort_column' => 'menu_order',
|
109 |
'selected' => $value,
|
includes/admin/settings/class-sp-settings-events.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -174,6 +174,39 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|
174 |
|
175 |
array( 'title' => __( 'Event List', 'sportspress' ), 'type' => 'title', 'id' => 'event_list_options' ),
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
array(
|
178 |
'title' => __( 'Pagination', 'sportspress' ),
|
179 |
'desc' => __( 'Paginate', 'sportspress' ),
|
@@ -201,7 +234,7 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|
201 |
|
202 |
array(
|
203 |
'title' => __( 'Details', 'sportspress' ),
|
204 |
-
'desc' => __( 'Display
|
205 |
'id' => 'sportspress_event_blocks_show_league',
|
206 |
'default' => 'no',
|
207 |
'type' => 'checkbox',
|
@@ -213,6 +246,14 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|
213 |
'id' => 'sportspress_event_blocks_show_season',
|
214 |
'default' => 'no',
|
215 |
'type' => 'checkbox',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
'checkboxgroup' => 'end',
|
217 |
),
|
218 |
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
174 |
|
175 |
array( 'title' => __( 'Event List', 'sportspress' ), 'type' => 'title', 'id' => 'event_list_options' ),
|
176 |
|
177 |
+
array(
|
178 |
+
'title' => __( 'Teams', 'sportspress' ),
|
179 |
+
'desc' => __( 'Display logos', 'sportspress' ),
|
180 |
+
'id' => 'sportspress_event_list_show_logos',
|
181 |
+
'default' => 'no',
|
182 |
+
'type' => 'checkbox',
|
183 |
+
),
|
184 |
+
|
185 |
+
array(
|
186 |
+
'title' => __( 'Title Format', 'sportspress' ),
|
187 |
+
'id' => 'sportspress_event_list_title_format',
|
188 |
+
'default' => 'title',
|
189 |
+
'type' => 'select',
|
190 |
+
'options' => array(
|
191 |
+
'title' => __( 'Title', 'sportspress' ),
|
192 |
+
'teams' => __( 'Teams', 'sportspress' ),
|
193 |
+
'homeaway' => sprintf( '%s | %s', __( 'Home', 'sportspress' ), __( 'Away', 'sportspress' ) ),
|
194 |
+
),
|
195 |
+
),
|
196 |
+
|
197 |
+
array(
|
198 |
+
'title' => __( 'Time/Results Format', 'sportspress' ),
|
199 |
+
'id' => 'sportspress_event_list_time_format',
|
200 |
+
'default' => 'combined',
|
201 |
+
'type' => 'select',
|
202 |
+
'options' => array(
|
203 |
+
'combined' => __( 'Combined', 'sportspress' ),
|
204 |
+
'separate' => __( 'Separate', 'sportspress' ),
|
205 |
+
'time' => __( 'Time Only', 'sportspress' ),
|
206 |
+
'results' => __( 'Results Only', 'sportspress' ),
|
207 |
+
),
|
208 |
+
),
|
209 |
+
|
210 |
array(
|
211 |
'title' => __( 'Pagination', 'sportspress' ),
|
212 |
'desc' => __( 'Paginate', 'sportspress' ),
|
234 |
|
235 |
array(
|
236 |
'title' => __( 'Details', 'sportspress' ),
|
237 |
+
'desc' => __( 'Display competition', 'sportspress' ),
|
238 |
'id' => 'sportspress_event_blocks_show_league',
|
239 |
'default' => 'no',
|
240 |
'type' => 'checkbox',
|
246 |
'id' => 'sportspress_event_blocks_show_season',
|
247 |
'default' => 'no',
|
248 |
'type' => 'checkbox',
|
249 |
+
'checkboxgroup' => '',
|
250 |
+
),
|
251 |
+
|
252 |
+
array(
|
253 |
+
'desc' => __( 'Display venue', 'sportspress' ),
|
254 |
+
'id' => 'sportspress_event_blocks_show_venue',
|
255 |
+
'default' => 'no',
|
256 |
+
'type' => 'checkbox',
|
257 |
'checkboxgroup' => 'end',
|
258 |
),
|
259 |
|
includes/admin/settings/class-sp-settings-general.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -287,9 +287,9 @@ class SP_Settings_General extends SP_Settings_Page {
|
|
287 |
$colors = array_map( 'esc_attr', (array) get_option( 'sportspress_frontend_css_colors', array() ) );
|
288 |
|
289 |
// Defaults
|
290 |
-
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#
|
291 |
if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
|
292 |
-
if ( empty( $colors['text'] ) ) $colors['text'] = '#
|
293 |
if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';
|
294 |
if ( empty( $colors['link'] ) ) $colors['link'] = '#00a69c';
|
295 |
|
@@ -300,7 +300,7 @@ class SP_Settings_General extends SP_Settings_Page {
|
|
300 |
$this->color_picker( __( 'Heading', 'sportspress' ), 'sportspress_frontend_css_heading', $colors['heading'] );
|
301 |
$this->color_picker( __( 'Link', 'sportspress' ), 'sportspress_frontend_css_link', $colors['link'] );
|
302 |
|
303 |
-
if ( ( $styles = SP_Frontend_Scripts::get_styles() ) && array_key_exists( 'sportspress-general', $styles ) ):
|
304 |
?><br>
|
305 |
<label for="sportspress_enable_frontend_css">
|
306 |
<input name="sportspress_enable_frontend_css" id="sportspress_enable_frontend_css" type="checkbox" value="1" <?php checked( get_option( 'sportspress_enable_frontend_css', 'yes' ), 'yes' ); ?>>
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
287 |
$colors = array_map( 'esc_attr', (array) get_option( 'sportspress_frontend_css_colors', array() ) );
|
288 |
|
289 |
// Defaults
|
290 |
+
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e';
|
291 |
if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
|
292 |
+
if ( empty( $colors['text'] ) ) $colors['text'] = '#222222';
|
293 |
if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';
|
294 |
if ( empty( $colors['link'] ) ) $colors['link'] = '#00a69c';
|
295 |
|
300 |
$this->color_picker( __( 'Heading', 'sportspress' ), 'sportspress_frontend_css_heading', $colors['heading'] );
|
301 |
$this->color_picker( __( 'Link', 'sportspress' ), 'sportspress_frontend_css_link', $colors['link'] );
|
302 |
|
303 |
+
if ( ( $styles = SP_Frontend_Scripts::get_styles() ) && ! current_theme_supports( 'sportspress' ) && array_key_exists( 'sportspress-general', $styles ) ):
|
304 |
?><br>
|
305 |
<label for="sportspress_enable_frontend_css">
|
306 |
<input name="sportspress_enable_frontend_css" id="sportspress_enable_frontend_css" type="checkbox" value="1" <?php checked( get_option( 'sportspress_enable_frontend_css', 'yes' ), 'yes' ); ?>>
|
includes/admin/settings/class-sp-settings-players.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -60,6 +60,14 @@ class SP_Settings_Players extends SP_Settings_Page {
|
|
60 |
'id' => 'sportspress_player_show_details',
|
61 |
'default' => 'yes',
|
62 |
'type' => 'checkbox',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
'checkboxgroup' => 'end',
|
64 |
),
|
65 |
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Admin
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
60 |
'id' => 'sportspress_player_show_details',
|
61 |
'default' => 'yes',
|
62 |
'type' => 'checkbox',
|
63 |
+
'checkboxgroup' => '',
|
64 |
+
),
|
65 |
+
|
66 |
+
array(
|
67 |
+
'desc' => __( 'Career Total', 'sportspress' ),
|
68 |
+
'id' => 'sportspress_player_show_total',
|
69 |
+
'default' => 'no',
|
70 |
+
'type' => 'checkbox',
|
71 |
'checkboxgroup' => 'end',
|
72 |
),
|
73 |
|
includes/admin/views/html-admin-config.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<div class="wrap sportspress
|
2 |
<h2>
|
3 |
<?php _e( 'Configure', 'sportspress' ); ?>
|
4 |
</h2>
|
@@ -26,6 +26,7 @@
|
|
26 |
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
27 |
<th scope="col"><?php _e( 'Variable', 'sportspress' ); ?></th>
|
28 |
<th scope="col"><?php _e( 'Abbreviation', 'sportspress' ); ?></th>
|
|
|
29 |
<th scope="col"><?php _e( 'Description', 'sportspress' ); ?></th>
|
30 |
<th scope="col" class="edit"></th>
|
31 |
</tr>
|
@@ -35,6 +36,7 @@
|
|
35 |
<td class="row-title"><?php echo $row->post_title; ?></td>
|
36 |
<td><?php echo $row->post_name; ?></td>
|
37 |
<td><?php echo sp_get_post_abbreviation( $row->ID ); ?></td>
|
|
|
38 |
<td><p class="description"><?php echo $row->post_excerpt; ?></p></td>
|
39 |
<td class="edit"><a class="button" href="<?php echo get_edit_post_link( $row->ID ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></s></td>
|
40 |
</tr>
|
@@ -45,10 +47,8 @@
|
|
45 |
<?php endif; ?>
|
46 |
</table>
|
47 |
<div class="tablenav bottom">
|
48 |
-
<
|
49 |
-
|
50 |
-
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_outcome' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
51 |
-
</div>
|
52 |
<br class="clear">
|
53 |
</div>
|
54 |
</td>
|
@@ -120,10 +120,8 @@
|
|
120 |
</table>
|
121 |
</form>
|
122 |
<div class="tablenav bottom">
|
123 |
-
<
|
124 |
-
|
125 |
-
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_result' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
126 |
-
</div>
|
127 |
<br class="clear">
|
128 |
</div>
|
129 |
</td>
|
@@ -173,10 +171,8 @@
|
|
173 |
<?php endif; ?>
|
174 |
</table>
|
175 |
<div class="tablenav bottom">
|
176 |
-
<
|
177 |
-
|
178 |
-
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_performance' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
179 |
-
</div>
|
180 |
<br class="clear">
|
181 |
</div>
|
182 |
</td>
|
@@ -230,10 +226,8 @@
|
|
230 |
<?php endif; ?>
|
231 |
</table>
|
232 |
<div class="tablenav bottom">
|
233 |
-
<
|
234 |
-
|
235 |
-
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_column' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
236 |
-
</div>
|
237 |
<br class="clear">
|
238 |
</div>
|
239 |
</fieldset>
|
@@ -282,10 +276,8 @@
|
|
282 |
<?php endif; ?>
|
283 |
</table>
|
284 |
<div class="tablenav bottom">
|
285 |
-
<
|
286 |
-
|
287 |
-
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_metric' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
288 |
-
</div>
|
289 |
<br class="clear">
|
290 |
</div>
|
291 |
</td>
|
@@ -337,10 +329,8 @@
|
|
337 |
<?php endif; ?>
|
338 |
</table>
|
339 |
<div class="tablenav bottom">
|
340 |
-
<
|
341 |
-
|
342 |
-
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_statistic' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
343 |
-
</div>
|
344 |
<br class="clear">
|
345 |
</div>
|
346 |
</td>
|
1 |
+
<div class="wrap sportspress sportspress-config-wrap">
|
2 |
<h2>
|
3 |
<?php _e( 'Configure', 'sportspress' ); ?>
|
4 |
</h2>
|
26 |
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
27 |
<th scope="col"><?php _e( 'Variable', 'sportspress' ); ?></th>
|
28 |
<th scope="col"><?php _e( 'Abbreviation', 'sportspress' ); ?></th>
|
29 |
+
<th scope="col"><?php _e( 'Condition', 'sportspress' ); ?></th>
|
30 |
<th scope="col"><?php _e( 'Description', 'sportspress' ); ?></th>
|
31 |
<th scope="col" class="edit"></th>
|
32 |
</tr>
|
36 |
<td class="row-title"><?php echo $row->post_title; ?></td>
|
37 |
<td><?php echo $row->post_name; ?></td>
|
38 |
<td><?php echo sp_get_post_abbreviation( $row->ID ); ?></td>
|
39 |
+
<td><?php echo sp_get_post_condition( $row->ID ); ?></td>
|
40 |
<td><p class="description"><?php echo $row->post_excerpt; ?></p></td>
|
41 |
<td class="edit"><a class="button" href="<?php echo get_edit_post_link( $row->ID ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></s></td>
|
42 |
</tr>
|
47 |
<?php endif; ?>
|
48 |
</table>
|
49 |
<div class="tablenav bottom">
|
50 |
+
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_outcome' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
51 |
+
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_outcome' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
|
|
|
|
52 |
<br class="clear">
|
53 |
</div>
|
54 |
</td>
|
120 |
</table>
|
121 |
</form>
|
122 |
<div class="tablenav bottom">
|
123 |
+
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_result' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
124 |
+
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_result' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
|
|
|
|
125 |
<br class="clear">
|
126 |
</div>
|
127 |
</td>
|
171 |
<?php endif; ?>
|
172 |
</table>
|
173 |
<div class="tablenav bottom">
|
174 |
+
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_performance' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
175 |
+
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_performance' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
|
|
|
|
176 |
<br class="clear">
|
177 |
</div>
|
178 |
</td>
|
226 |
<?php endif; ?>
|
227 |
</table>
|
228 |
<div class="tablenav bottom">
|
229 |
+
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_column' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
230 |
+
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_column' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
|
|
|
|
231 |
<br class="clear">
|
232 |
</div>
|
233 |
</fieldset>
|
276 |
<?php endif; ?>
|
277 |
</table>
|
278 |
<div class="tablenav bottom">
|
279 |
+
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_metric' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
280 |
+
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_metric' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
|
|
|
|
281 |
<br class="clear">
|
282 |
</div>
|
283 |
</td>
|
329 |
<?php endif; ?>
|
330 |
</table>
|
331 |
<div class="tablenav bottom">
|
332 |
+
<a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_statistic' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
|
333 |
+
<a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_statistic' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
|
|
|
|
334 |
<br class="clear">
|
335 |
</div>
|
336 |
</td>
|
includes/admin/views/html-admin-overview.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<div class="wrap sportspress
|
2 |
<h2>
|
3 |
<?php _e( 'Overview', 'sportspress' ); ?>
|
4 |
</h2>
|
@@ -10,7 +10,7 @@
|
|
10 |
|
11 |
<ul class="sp-utility">
|
12 |
<?php foreach ( $primary_post_types as $post_type ): $object = get_post_type_object( $post_type ); ?>
|
13 |
-
<li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
14 |
<?php endforeach; ?>
|
15 |
</ul>
|
16 |
|
@@ -18,7 +18,7 @@
|
|
18 |
<ul class="sp-primary col<?php echo sizeof( $taxonomies ); ?>">
|
19 |
<li class="sp-home"><a class="button disabled"><?php _e( 'SportsPress', 'sportspress' ); ?></a></li>
|
20 |
<?php foreach ( $taxonomies as $taxonomy ): $object = get_taxonomy( $taxonomy ); $post_types = apply_filters( 'sportspress_sitemap_taxonomy_post_types', $object->object_type, $taxonomy ); ?>
|
21 |
-
<li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
22 |
<?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
|
23 |
<ul>
|
24 |
<?php if ( sizeof( $terms ) > 0 ): ?>
|
@@ -30,7 +30,7 @@
|
|
30 |
<a class="button action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type, $taxonomy => $term->slug ), 'edit.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $term->name ); ?><span class="dashicons dashicons-list-view wp-ui-text-notification"></span></a>
|
31 |
<?php endforeach; endif; ?>
|
32 |
<?php else: ?>
|
33 |
-
<a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
34 |
<?php endif; ?>
|
35 |
|
36 |
<?php if ( $children ): ?>
|
@@ -42,7 +42,7 @@
|
|
42 |
<a class="button action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type, $taxonomy => $child->slug ), 'edit.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $child->name ); ?><span class="dashicons dashicons-list-view wp-ui-text-highlight"></span></a>
|
43 |
<?php endforeach; endif; ?>
|
44 |
<?php else: ?>
|
45 |
-
<a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
46 |
<?php endif; ?>
|
47 |
</li>
|
48 |
<?php endforeach; ?>
|
@@ -73,8 +73,8 @@
|
|
73 |
<?php if ( $terms ): // Has children ?>
|
74 |
|
75 |
<ul class="sp-primary col<?php echo sizeof( $terms ) + 1; ?>">
|
76 |
-
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
77 |
-
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
78 |
<li class="sp-home"><a class="button disabled"><?php echo wp_strip_all_tags( $term->name ); ?></a></li>
|
79 |
<li><a class="button disabled"><?php _e( 'All', 'sportspress' ); ?></a>
|
80 |
<ul>
|
@@ -86,7 +86,7 @@
|
|
86 |
</ul>
|
87 |
</li>
|
88 |
<?php foreach ( $terms as $term ): ?>
|
89 |
-
<li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
90 |
<?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
|
91 |
|
92 |
<?php if ( $children ): // Has children ?>
|
@@ -124,10 +124,10 @@
|
|
124 |
<?php else: // No children ?>
|
125 |
|
126 |
<ul class="sp-primary col<?php echo sizeof( $post_types ); ?>">
|
127 |
-
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
128 |
-
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
129 |
<?php if ( $term->parent ): $parent = get_term( $term->parent, $taxonomy ); ?>
|
130 |
-
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
131 |
<?php endif; ?>
|
132 |
<li class="sp-home"><a class="button disabled"><?php echo wp_strip_all_tags( $term->name ); ?></a></li>
|
133 |
<?php if ( sizeof ( $taxonomy_object->object_type ) ): ?>
|
@@ -145,7 +145,7 @@
|
|
145 |
|
146 |
<?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
|
147 |
<ul class="sp-primary col<?php echo sizeof( $terms ) + 1; ?>">
|
148 |
-
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
149 |
<li class="sp-home"><a class="button disabled"><?php echo $taxonomy_object->labels->name; ?></a></li>
|
150 |
<?php if ( $terms ): ?>
|
151 |
<?php foreach ( $terms as $term ): ?>
|
@@ -153,7 +153,7 @@
|
|
153 |
<?php if ( sizeof( $post_types ) <= 1 ): $post_type = reset( $post_types ); ?>
|
154 |
<a class="button button-primary action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type, $taxonomy => $term->slug ), 'edit.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $term->name ); ?><span class="dashicons dashicons-list-view"></span></a>
|
155 |
<?php else: ?>
|
156 |
-
<a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
157 |
<?php endif; ?>
|
158 |
<?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
|
159 |
<ul>
|
@@ -181,7 +181,7 @@
|
|
181 |
<?php endif; ?>
|
182 |
|
183 |
<?php foreach ( $children as $child ): ?>
|
184 |
-
<li><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
185 |
<?php if ( sizeof ( $post_types ) ): ?>
|
186 |
<ul>
|
187 |
<?php foreach ( $post_types as $post_type ): $post_object = get_post_type_object( $post_type ); ?>
|
@@ -227,7 +227,7 @@
|
|
227 |
|
228 |
<?php if ( sizeof( $taxonomies ) || sizeof( sp_array_value( $hierarchy, $post_type ) ) ): // Display taxonomies ?>
|
229 |
<ul class="sp-primary col<?php echo sizeof( $taxonomies ) + sizeof( sp_array_value( $hierarchy, $post_type ) ); ?>">
|
230 |
-
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
231 |
<li class="sp-home"><a class="button disabled"><?php echo $post_object->labels->name; ?></a></li>
|
232 |
<?php foreach ( sp_array_value( $hierarchy, $post_type ) as $secondary_post_type ): $secondary_post_object = get_post_type_object( $secondary_post_type ); ?>
|
233 |
<li><a class="button button-primary action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $secondary_post_type ), 'edit.php' ) ) ); ?>"><?php echo $secondary_post_object->labels->name; ?><span class="dashicons dashicons-list-view"></span></a>
|
@@ -242,7 +242,7 @@
|
|
242 |
</li>
|
243 |
<?php endforeach; ?>
|
244 |
<?php foreach ( $taxonomies as $taxonomy_object ): $taxonomy = $taxonomy_object->name; ?>
|
245 |
-
<li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
246 |
<?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
|
247 |
<?php if ( $terms ): ?>
|
248 |
<ul>
|
@@ -272,7 +272,7 @@
|
|
272 |
|
273 |
<?php $posts = get_posts( array( 'posts_per_page' => -1, 'post_type' => $post_type ) ); ?>
|
274 |
<ul class="sp-primary col<?php echo sizeof( $posts ); ?>">
|
275 |
-
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
276 |
<li class="sp-home"><a class="button disabled"><?php echo $post_object->labels->name; ?></a></li>
|
277 |
<?php if ( $posts ): ?>
|
278 |
<?php foreach ( $posts as $post ): ?>
|
@@ -292,8 +292,8 @@
|
|
292 |
<?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
|
293 |
|
294 |
<ul class="sp-primary col<?php echo sizeof( $terms ) + 1; ?>">
|
295 |
-
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
296 |
-
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => '
|
297 |
<li class="sp-home"><a class="button disabled"><?php echo $taxonomy_object->labels->name; ?></a></li>
|
298 |
|
299 |
<?php if ( $terms ): foreach ( $terms as $term ): ?>
|
1 |
+
<div class="wrap sportspress sportspress-overview-wrap">
|
2 |
<h2>
|
3 |
<?php _e( 'Overview', 'sportspress' ); ?>
|
4 |
</h2>
|
10 |
|
11 |
<ul class="sp-utility">
|
12 |
<?php foreach ( $primary_post_types as $post_type ): $object = get_post_type_object( $post_type ); ?>
|
13 |
+
<li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'type' => $post_type ), 'admin.php' ) ) ); ?>"><?php echo $object->labels->name; ?></a></li>
|
14 |
<?php endforeach; ?>
|
15 |
</ul>
|
16 |
|
18 |
<ul class="sp-primary col<?php echo sizeof( $taxonomies ); ?>">
|
19 |
<li class="sp-home"><a class="button disabled"><?php _e( 'SportsPress', 'sportspress' ); ?></a></li>
|
20 |
<?php foreach ( $taxonomies as $taxonomy ): $object = get_taxonomy( $taxonomy ); $post_types = apply_filters( 'sportspress_sitemap_taxonomy_post_types', $object->object_type, $taxonomy ); ?>
|
21 |
+
<li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'taxonomy' => $taxonomy ), 'admin.php' ) ) ); ?>"><?php echo $object->labels->name; ?></a>
|
22 |
<?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
|
23 |
<ul>
|
24 |
<?php if ( sizeof( $terms ) > 0 ): ?>
|
30 |
<a class="button action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type, $taxonomy => $term->slug ), 'edit.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $term->name ); ?><span class="dashicons dashicons-list-view wp-ui-text-notification"></span></a>
|
31 |
<?php endforeach; endif; ?>
|
32 |
<?php else: ?>
|
33 |
+
<a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'taxonomy' => $taxonomy, 'term' => $term->term_id ), 'admin.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $term->name ); ?></a>
|
34 |
<?php endif; ?>
|
35 |
|
36 |
<?php if ( $children ): ?>
|
42 |
<a class="button action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type, $taxonomy => $child->slug ), 'edit.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $child->name ); ?><span class="dashicons dashicons-list-view wp-ui-text-highlight"></span></a>
|
43 |
<?php endforeach; endif; ?>
|
44 |
<?php else: ?>
|
45 |
+
<a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'taxonomy' => $taxonomy, 'term' => $child->term_id ), 'admin.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $child->name ); ?></a>
|
46 |
<?php endif; ?>
|
47 |
</li>
|
48 |
<?php endforeach; ?>
|
73 |
<?php if ( $terms ): // Has children ?>
|
74 |
|
75 |
<ul class="sp-primary col<?php echo sizeof( $terms ) + 1; ?>">
|
76 |
+
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview' ), 'admin.php' ) ) ); ?>"><?php _e( 'SportsPress', 'sportspress' ); ?></a></li>
|
77 |
+
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'taxonomy' => $taxonomy ), 'admin.php' ) ) ); ?>"><?php echo $taxonomy_object->labels->name; ?></a></li>
|
78 |
<li class="sp-home"><a class="button disabled"><?php echo wp_strip_all_tags( $term->name ); ?></a></li>
|
79 |
<li><a class="button disabled"><?php _e( 'All', 'sportspress' ); ?></a>
|
80 |
<ul>
|
86 |
</ul>
|
87 |
</li>
|
88 |
<?php foreach ( $terms as $term ): ?>
|
89 |
+
<li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'taxonomy' => $taxonomy, 'term' => $term->term_id ), 'admin.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $term->name ); ?></a>
|
90 |
<?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
|
91 |
|
92 |
<?php if ( $children ): // Has children ?>
|
124 |
<?php else: // No children ?>
|
125 |
|
126 |
<ul class="sp-primary col<?php echo sizeof( $post_types ); ?>">
|
127 |
+
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview' ), 'admin.php' ) ) ); ?>"><?php _e( 'SportsPress', 'sportspress' ); ?></a></li>
|
128 |
+
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'taxonomy' => $taxonomy ), 'admin.php' ) ) ); ?>"><?php echo $taxonomy_object->labels->name; ?></a></li>
|
129 |
<?php if ( $term->parent ): $parent = get_term( $term->parent, $taxonomy ); ?>
|
130 |
+
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'taxonomy' => $taxonomy, 'term' => $term->parent ), 'admin.php' ) ) ); ?>"><?php echo $parent->name; ?></a></li>
|
131 |
<?php endif; ?>
|
132 |
<li class="sp-home"><a class="button disabled"><?php echo wp_strip_all_tags( $term->name ); ?></a></li>
|
133 |
<?php if ( sizeof ( $taxonomy_object->object_type ) ): ?>
|
145 |
|
146 |
<?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
|
147 |
<ul class="sp-primary col<?php echo sizeof( $terms ) + 1; ?>">
|
148 |
+
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview' ), 'admin.php' ) ) ); ?>"><?php _e( 'SportsPress', 'sportspress' ); ?></a></li>
|
149 |
<li class="sp-home"><a class="button disabled"><?php echo $taxonomy_object->labels->name; ?></a></li>
|
150 |
<?php if ( $terms ): ?>
|
151 |
<?php foreach ( $terms as $term ): ?>
|
153 |
<?php if ( sizeof( $post_types ) <= 1 ): $post_type = reset( $post_types ); ?>
|
154 |
<a class="button button-primary action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type, $taxonomy => $term->slug ), 'edit.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $term->name ); ?><span class="dashicons dashicons-list-view"></span></a>
|
155 |
<?php else: ?>
|
156 |
+
<a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'taxonomy' => $taxonomy, 'term' => $term->term_id ), 'admin.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $term->name ); ?></a>
|
157 |
<?php endif; ?>
|
158 |
<?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
|
159 |
<ul>
|
181 |
<?php endif; ?>
|
182 |
|
183 |
<?php foreach ( $children as $child ): ?>
|
184 |
+
<li><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'taxonomy' => $taxonomy, 'term' => $child->term_id ), 'admin.php' ) ) ); ?>"><?php echo wp_strip_all_tags( $child->name ); ?></a>
|
185 |
<?php if ( sizeof ( $post_types ) ): ?>
|
186 |
<ul>
|
187 |
<?php foreach ( $post_types as $post_type ): $post_object = get_post_type_object( $post_type ); ?>
|
227 |
|
228 |
<?php if ( sizeof( $taxonomies ) || sizeof( sp_array_value( $hierarchy, $post_type ) ) ): // Display taxonomies ?>
|
229 |
<ul class="sp-primary col<?php echo sizeof( $taxonomies ) + sizeof( sp_array_value( $hierarchy, $post_type ) ); ?>">
|
230 |
+
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview' ), 'admin.php' ) ) ); ?>"><?php _e( 'SportsPress', 'sportspress' ); ?></a></li>
|
231 |
<li class="sp-home"><a class="button disabled"><?php echo $post_object->labels->name; ?></a></li>
|
232 |
<?php foreach ( sp_array_value( $hierarchy, $post_type ) as $secondary_post_type ): $secondary_post_object = get_post_type_object( $secondary_post_type ); ?>
|
233 |
<li><a class="button button-primary action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $secondary_post_type ), 'edit.php' ) ) ); ?>"><?php echo $secondary_post_object->labels->name; ?><span class="dashicons dashicons-list-view"></span></a>
|
242 |
</li>
|
243 |
<?php endforeach; ?>
|
244 |
<?php foreach ( $taxonomies as $taxonomy_object ): $taxonomy = $taxonomy_object->name; ?>
|
245 |
+
<li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'type' => $post_type, 'taxonomy' => $taxonomy_object->name ), 'admin.php' ) ) ); ?>"><?php echo $taxonomy_object->labels->name; ?></a>
|
246 |
<?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
|
247 |
<?php if ( $terms ): ?>
|
248 |
<ul>
|
272 |
|
273 |
<?php $posts = get_posts( array( 'posts_per_page' => -1, 'post_type' => $post_type ) ); ?>
|
274 |
<ul class="sp-primary col<?php echo sizeof( $posts ); ?>">
|
275 |
+
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview' ), 'admin.php' ) ) ); ?>"><?php _e( 'SportsPress', 'sportspress' ); ?></a></li>
|
276 |
<li class="sp-home"><a class="button disabled"><?php echo $post_object->labels->name; ?></a></li>
|
277 |
<?php if ( $posts ): ?>
|
278 |
<?php foreach ( $posts as $post ): ?>
|
292 |
<?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
|
293 |
|
294 |
<ul class="sp-primary col<?php echo sizeof( $terms ) + 1; ?>">
|
295 |
+
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview' ), 'admin.php' ) ) ); ?>"><?php _e( 'SportsPress', 'sportspress' ); ?></a></li>
|
296 |
+
<li class="sp-breadcrumb"><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress-overview', 'type' => $post_type ), 'admin.php' ) ) ); ?>"><?php echo $post_object->labels->name; ?></a></li>
|
297 |
<li class="sp-home"><a class="button disabled"><?php echo $taxonomy_object->labels->name; ?></a></li>
|
298 |
|
299 |
<?php if ( $terms ): foreach ( $terms as $term ): ?>
|
includes/admin/views/html-admin-settings.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<div class="wrap sportspress">
|
2 |
<form method="post" id="mainform" action="" enctype="multipart/form-data">
|
3 |
-
<
|
4 |
<?php foreach ( $tabs as $name => $label ): ?><a href="<?php echo admin_url( 'admin.php?page=sportspress&tab=' . $name ); ?>" class="nav-tab <?php echo ( $current_tab == $name ? 'nav-tab-active' : '' ); ?>"><?php echo $label; ?></a><?php endforeach; ?>
|
5 |
<?php do_action( 'sportspress_settings_tabs' ); ?>
|
6 |
</h2>
|
1 |
<div class="wrap sportspress">
|
2 |
<form method="post" id="mainform" action="" enctype="multipart/form-data">
|
3 |
+
<h2 class="nav-tab-wrapper sp-nav-tab-wrapper">
|
4 |
<?php foreach ( $tabs as $name => $label ): ?><a href="<?php echo admin_url( 'admin.php?page=sportspress&tab=' . $name ); ?>" class="nav-tab <?php echo ( $current_tab == $name ? 'nav-tab-active' : '' ); ?>"><?php echo $label; ?></a><?php endforeach; ?>
|
5 |
<?php do_action( 'sportspress_settings_tabs' ); ?>
|
6 |
</h2>
|
includes/class-sp-ajax.php
CHANGED
@@ -8,7 +8,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
8 |
* AJAX Event Handler
|
9 |
*
|
10 |
* @class SP_AJAX
|
11 |
-
* @version 1.
|
12 |
* @package SportsPress/Classes
|
13 |
* @category Class
|
14 |
* @author ThemeBoy
|
@@ -77,7 +77,7 @@ class SP_AJAX {
|
|
77 |
<p>
|
78 |
<label>
|
79 |
<input class="checkbox" type="checkbox" name="show_league">
|
80 |
-
<?php _e( 'Display
|
81 |
</label>
|
82 |
</p>
|
83 |
<p class="submit">
|
8 |
* AJAX Event Handler
|
9 |
*
|
10 |
* @class SP_AJAX
|
11 |
+
* @version 1.5
|
12 |
* @package SportsPress/Classes
|
13 |
* @category Class
|
14 |
* @author ThemeBoy
|
77 |
<p>
|
78 |
<label>
|
79 |
<input class="checkbox" type="checkbox" name="show_league">
|
80 |
+
<?php _e( 'Display competition', 'sportspress' ); ?>
|
81 |
</label>
|
82 |
</p>
|
83 |
<p class="submit">
|
includes/class-sp-countries.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* The SportsPress countries class stores continent/country data.
|
6 |
*
|
7 |
* @class SP_Countries
|
8 |
-
* @version
|
9 |
* @package SportsPress/Classes
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
@@ -29,7 +29,7 @@ class SP_Countries {
|
|
29 |
__( 'Africa', 'sportspress' ) => array('AO','BF','BI','BJ','BW','CD','CF','CG','CI','CM','CV','DJ','DZ','EG','EH','ER','ET','GA','GH','GM','GN','GQ','GW','KE','KM','LR','LS','LY','MA','MG','ML','MR','MU','MZ','NA','NE','NG','RW','SC','SD','SL','SN','SO','ST','SZ','TD','TG','TN','TZ','UG','ZA','ZM','ZW'),
|
30 |
__( 'Asia', 'sportspress' ) => array('AE','AF','AM','AZ','BD','BH','BN','BT','CN','CY','GE','HK','IL','IN','IQ','IR','JO','JP','KG','KH','KP','KR','KW','KZ','LA','LB','LK','MM','MN','MO','MV','MY','NP','OM','PH','PK','QA','SA','SG','TH','TJ','TM','TW','UZ','VN','YE'),
|
31 |
__( 'Europe', 'sportspress' ) => array('AD','AL','AT','BA','BE','BG','BY','CH','CZ','DE','DK','EE','EN','ES','FI','FR','GB','GR','HR','HU','IE','IS','IT','LI','LT','LU','LV','MC','MD','ME','MK','MT','MW','NB','NL','NO','PL','PT','RO','RS','RU','SE','SF','SI','SK','SM','TR','UA','VA','WL'),
|
32 |
-
__( 'North America', 'sportspress' ) => array('AG','BB','BS','BZ','CA','CR','CU','DM','DO','GD','GT','HN','HT','JM','KN','LC','MX','NI','PA','SV','US','VC'),
|
33 |
__( 'Oceania', 'sportspress' ) => array('AU','TL','FJ','FM','ID','KI','MH','NR','NZ','PG','PW','SB','TO','TV','VU','WS'),
|
34 |
__( 'South America', 'sportspress' ) => array('AR','BO','BR','CL','CO','EC','GY','PE','PY','SR','TT','UY','VE'),
|
35 |
);
|
@@ -181,6 +181,7 @@ class SP_Countries {
|
|
181 |
'PH' => __( "Philippines", 'sportspress' ),
|
182 |
'PK' => __( "Pakistan", 'sportspress' ),
|
183 |
'PL' => __( "Poland", 'sportspress' ),
|
|
|
184 |
'PT' => __( "Portugal", 'sportspress' ),
|
185 |
'PW' => __( "Palau", 'sportspress' ),
|
186 |
'PY' => __( "Paraguay", 'sportspress' ),
|
5 |
* The SportsPress countries class stores continent/country data.
|
6 |
*
|
7 |
* @class SP_Countries
|
8 |
+
* @version 1.5
|
9 |
* @package SportsPress/Classes
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
29 |
__( 'Africa', 'sportspress' ) => array('AO','BF','BI','BJ','BW','CD','CF','CG','CI','CM','CV','DJ','DZ','EG','EH','ER','ET','GA','GH','GM','GN','GQ','GW','KE','KM','LR','LS','LY','MA','MG','ML','MR','MU','MZ','NA','NE','NG','RW','SC','SD','SL','SN','SO','ST','SZ','TD','TG','TN','TZ','UG','ZA','ZM','ZW'),
|
30 |
__( 'Asia', 'sportspress' ) => array('AE','AF','AM','AZ','BD','BH','BN','BT','CN','CY','GE','HK','IL','IN','IQ','IR','JO','JP','KG','KH','KP','KR','KW','KZ','LA','LB','LK','MM','MN','MO','MV','MY','NP','OM','PH','PK','QA','SA','SG','TH','TJ','TM','TW','UZ','VN','YE'),
|
31 |
__( 'Europe', 'sportspress' ) => array('AD','AL','AT','BA','BE','BG','BY','CH','CZ','DE','DK','EE','EN','ES','FI','FR','GB','GR','HR','HU','IE','IS','IT','LI','LT','LU','LV','MC','MD','ME','MK','MT','MW','NB','NL','NO','PL','PT','RO','RS','RU','SE','SF','SI','SK','SM','TR','UA','VA','WL'),
|
32 |
+
__( 'North America', 'sportspress' ) => array('AG','BB','BS','BZ','CA','CR','CU','DM','DO','GD','GT','HN','HT','JM','KN','LC','MX','NI','PA','PR','SV','US','VC'),
|
33 |
__( 'Oceania', 'sportspress' ) => array('AU','TL','FJ','FM','ID','KI','MH','NR','NZ','PG','PW','SB','TO','TV','VU','WS'),
|
34 |
__( 'South America', 'sportspress' ) => array('AR','BO','BR','CL','CO','EC','GY','PE','PY','SR','TT','UY','VE'),
|
35 |
);
|
181 |
'PH' => __( "Philippines", 'sportspress' ),
|
182 |
'PK' => __( "Pakistan", 'sportspress' ),
|
183 |
'PL' => __( "Poland", 'sportspress' ),
|
184 |
+
'PR' => __( "Puerto Rico", 'sportspress' ),
|
185 |
'PT' => __( "Portugal", 'sportspress' ),
|
186 |
'PW' => __( "Palau", 'sportspress' ),
|
187 |
'PY' => __( "Paraguay", 'sportspress' ),
|
includes/class-sp-event.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* The SportsPress event class handles individual event data.
|
6 |
*
|
7 |
* @class SP_Event
|
8 |
-
* @version 1.
|
9 |
* @package SportsPress/Classes
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
@@ -106,6 +106,13 @@ class SP_Event extends SP_Custom_Post{
|
|
106 |
endif;
|
107 |
endforeach;
|
108 |
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
$performance[0] = $labels;
|
110 |
return $performance;
|
111 |
endif;
|
5 |
* The SportsPress event class handles individual event data.
|
6 |
*
|
7 |
* @class SP_Event
|
8 |
+
* @version 1.5
|
9 |
* @package SportsPress/Classes
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
106 |
endif;
|
107 |
endforeach;
|
108 |
endif;
|
109 |
+
|
110 |
+
// Move individual players to top level of array
|
111 |
+
if ( array_key_exists( 0, $performance ) ) {
|
112 |
+
foreach ( $performance[ 0 ] as $player_id => $player_performance ) {
|
113 |
+
$performance[ $player_id ] = array( $player_id => $player_performance );
|
114 |
+
}
|
115 |
+
}
|
116 |
$performance[0] = $labels;
|
117 |
return $performance;
|
118 |
endif;
|
includes/class-sp-feeds.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* SportsPress Feeds Class
|
4 |
*
|
5 |
* @class SP_Feeds
|
6 |
-
* @version 1.
|
7 |
* @package SportsPress/Classes
|
8 |
* @category Class
|
9 |
* @author ThemeBoy
|
@@ -22,15 +22,27 @@ class SP_Feeds {
|
|
22 |
public function __construct() {
|
23 |
$data = array(
|
24 |
'calendar' => array(
|
25 |
-
'ical' =>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
),
|
27 |
);
|
28 |
|
29 |
$this->data = apply_filters( 'sportspress_feeds', $data );
|
30 |
|
31 |
-
foreach ( $data as $
|
32 |
-
foreach ( $feeds as $slug => $
|
33 |
-
$this->feed = $slug;
|
34 |
add_feed( 'sp-' . $slug, array( $this, $slug . '_feed' ) );
|
35 |
}
|
36 |
}
|
@@ -45,7 +57,7 @@ class SP_Feeds {
|
|
45 |
}
|
46 |
|
47 |
public static function ical_feed() {
|
48 |
-
|
49 |
load_template( $feed_template );
|
50 |
}
|
51 |
}
|
3 |
* SportsPress Feeds Class
|
4 |
*
|
5 |
* @class SP_Feeds
|
6 |
+
* @version 1.5
|
7 |
* @package SportsPress/Classes
|
8 |
* @category Class
|
9 |
* @author ThemeBoy
|
22 |
public function __construct() {
|
23 |
$data = array(
|
24 |
'calendar' => array(
|
25 |
+
'ical' => array(
|
26 |
+
'apple' => array(
|
27 |
+
'name' => __( 'Apple Calendar', 'sportspress' ),
|
28 |
+
'protocol' => 'webcal',
|
29 |
+
),
|
30 |
+
'outlook' => array(
|
31 |
+
'name' => __( 'Outlook', 'sportspress' ),
|
32 |
+
'protocol' => 'webcal',
|
33 |
+
),
|
34 |
+
'google' => array(
|
35 |
+
'name' => __( 'Google', 'sportspress' ),
|
36 |
+
'prefix' => 'http://www.google.com/calendar/render?cid=',
|
37 |
+
),
|
38 |
+
),
|
39 |
),
|
40 |
);
|
41 |
|
42 |
$this->data = apply_filters( 'sportspress_feeds', $data );
|
43 |
|
44 |
+
foreach ( $data as $post_type => $feeds ) {
|
45 |
+
foreach ( $feeds as $slug => $formats ) {
|
|
|
46 |
add_feed( 'sp-' . $slug, array( $this, $slug . '_feed' ) );
|
47 |
}
|
48 |
}
|
57 |
}
|
58 |
|
59 |
public static function ical_feed() {
|
60 |
+
$feed_template = SP()->plugin_path() . '/feeds/ical.php';
|
61 |
load_template( $feed_template );
|
62 |
}
|
63 |
}
|
includes/class-sp-frontend-scripts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Handle frontend forms
|
4 |
*
|
5 |
* @class SP_Frontend_Scripts
|
6 |
-
* @version 1.
|
7 |
* @package SportsPress/Classes
|
8 |
* @category Class
|
9 |
* @author ThemeBoy
|
@@ -151,19 +151,18 @@ class SP_Frontend_Scripts {
|
|
151 |
$colors = (array) get_option( 'sportspress_frontend_css_colors', array() );
|
152 |
|
153 |
// Defaults
|
154 |
-
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#
|
155 |
if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
|
156 |
-
if ( empty( $colors['text'] ) ) $colors['text'] = '#
|
157 |
if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';
|
158 |
if ( empty( $colors['link'] ) ) $colors['link'] = '#00a69c';
|
159 |
|
160 |
// Calculate colors
|
161 |
$colors['highlight'] = sp_hex_lighter( $colors['background'], 30, true );
|
162 |
-
$colors['lowlight'] = sp_hex_darker( $colors['background'], 8, true );
|
163 |
|
164 |
echo '<style type="text/css">';
|
165 |
|
166 |
-
if ( $enabled == 'yes' && sizeof( $colors ) > 0 ) {
|
167 |
echo ' /* SportsPress Frontend CSS */ ';
|
168 |
|
169 |
echo '.sp-event-calendar tbody td a,.sp-event-calendar tbody td a:hover{background: none;}';
|
@@ -186,9 +185,6 @@ class SP_Frontend_Scripts {
|
|
186 |
if ( isset( $colors['highlight'] ) )
|
187 |
echo '.sp-highlight,.sp-calendar td#today{background: ' . $colors['highlight'] . ' !important}';
|
188 |
|
189 |
-
if ( isset( $colors['lowlight'] ) )
|
190 |
-
echo '.sp-lowlight,.sp-data-table tbody tr.odd,.sp-data-table tr.alternate{background: ' . $colors['lowlight'] . ' !important}';
|
191 |
-
|
192 |
do_action( 'sportspress_frontend_css', $colors );
|
193 |
}
|
194 |
|
3 |
* Handle frontend forms
|
4 |
*
|
5 |
* @class SP_Frontend_Scripts
|
6 |
+
* @version 1.5
|
7 |
* @package SportsPress/Classes
|
8 |
* @category Class
|
9 |
* @author ThemeBoy
|
151 |
$colors = (array) get_option( 'sportspress_frontend_css_colors', array() );
|
152 |
|
153 |
// Defaults
|
154 |
+
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e';
|
155 |
if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
|
156 |
+
if ( empty( $colors['text'] ) ) $colors['text'] = '#222222';
|
157 |
if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';
|
158 |
if ( empty( $colors['link'] ) ) $colors['link'] = '#00a69c';
|
159 |
|
160 |
// Calculate colors
|
161 |
$colors['highlight'] = sp_hex_lighter( $colors['background'], 30, true );
|
|
|
162 |
|
163 |
echo '<style type="text/css">';
|
164 |
|
165 |
+
if ( $enabled == 'yes' && ! current_theme_supports( 'sportspress' ) && sizeof( $colors ) > 0 ) {
|
166 |
echo ' /* SportsPress Frontend CSS */ ';
|
167 |
|
168 |
echo '.sp-event-calendar tbody td a,.sp-event-calendar tbody td a:hover{background: none;}';
|
185 |
if ( isset( $colors['highlight'] ) )
|
186 |
echo '.sp-highlight,.sp-calendar td#today{background: ' . $colors['highlight'] . ' !important}';
|
187 |
|
|
|
|
|
|
|
188 |
do_action( 'sportspress_frontend_css', $colors );
|
189 |
}
|
190 |
|
includes/class-sp-install.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Classes
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -126,16 +126,15 @@ class SP_Install {
|
|
126 |
}
|
127 |
|
128 |
// Default color scheme
|
129 |
-
add_option( 'sportspress_frontend_css_primary', '#
|
130 |
add_option( 'sportspress_frontend_css_background', '#f4f4f4' );
|
131 |
-
add_option( 'sportspress_frontend_css_text', '#
|
132 |
add_option( 'sportspress_frontend_css_heading', '#ffffff' );
|
133 |
add_option( 'sportspress_frontend_css_link', '#00a69c' );
|
134 |
|
135 |
if ( ! get_option( 'sportspress_installed' ) ) {
|
136 |
// Configure default sport
|
137 |
$sport = 'custom';
|
138 |
-
//SP_Admin_Sports::apply_preset( $sport );
|
139 |
update_option( 'sportspress_sport', $sport );
|
140 |
|
141 |
// Flag as installed
|
5 |
* @author ThemeBoy
|
6 |
* @category Admin
|
7 |
* @package SportsPress/Classes
|
8 |
+
* @version 1.5
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
126 |
}
|
127 |
|
128 |
// Default color scheme
|
129 |
+
add_option( 'sportspress_frontend_css_primary', '#2b353e' );
|
130 |
add_option( 'sportspress_frontend_css_background', '#f4f4f4' );
|
131 |
+
add_option( 'sportspress_frontend_css_text', '#222222' );
|
132 |
add_option( 'sportspress_frontend_css_heading', '#ffffff' );
|
133 |
add_option( 'sportspress_frontend_css_link', '#00a69c' );
|
134 |
|
135 |
if ( ! get_option( 'sportspress_installed' ) ) {
|
136 |
// Configure default sport
|
137 |
$sport = 'custom';
|
|
|
138 |
update_option( 'sportspress_sport', $sport );
|
139 |
|
140 |
// Flag as installed
|
includes/class-sp-player-list.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* The SportsPress player list class handles individual player list data.
|
6 |
*
|
7 |
* @class SP_Player_List
|
8 |
-
* @version 1.
|
9 |
* @package SportsPress/Classes
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
@@ -154,7 +154,47 @@ class SP_Player_List extends SP_Custom_Post {
|
|
154 |
$player_performance = sp_array_value( $players, $player_id, array() );
|
155 |
|
156 |
foreach ( $player_performance as $key => $value ):
|
157 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
$totals[ $player_id ][ $key ] += $value;
|
159 |
endif;
|
160 |
endforeach;
|
5 |
* The SportsPress player list class handles individual player list data.
|
6 |
*
|
7 |
* @class SP_Player_List
|
8 |
+
* @version 1.5
|
9 |
* @package SportsPress/Classes
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
154 |
$player_performance = sp_array_value( $players, $player_id, array() );
|
155 |
|
156 |
foreach ( $player_performance as $key => $value ):
|
157 |
+
if ( 'outcome' == $key ):
|
158 |
+
// Increment events attended, played, and started
|
159 |
+
$totals[ $player_id ]['eventsattended'] ++;
|
160 |
+
$totals[ $player_id ]['eventsplayed'] ++;
|
161 |
+
$totals[ $player_id ]['eventsstarted'] ++;
|
162 |
+
$totals[ $player_id ]['eventminutes'] += $minutes;
|
163 |
+
|
164 |
+
// Convert to array
|
165 |
+
if ( ! is_array( $value ) ):
|
166 |
+
$value = array( $value );
|
167 |
+
endif;
|
168 |
+
|
169 |
+
foreach ( $value as $outcome ):
|
170 |
+
|
171 |
+
if ( $outcome && $outcome != '-1' ):
|
172 |
+
|
173 |
+
// Increment events attended and outcome count
|
174 |
+
if ( array_key_exists( $outcome, $totals[ $player_id ] ) ):
|
175 |
+
$totals[ $player_id ][ $outcome ] ++;
|
176 |
+
endif;
|
177 |
+
|
178 |
+
// Add to streak counter
|
179 |
+
if ( $streaks[ $player_id ]['fire'] && ( $streaks[ $player_id ]['name'] == '' || $streaks[ $player_id ]['name'] == $outcome ) ):
|
180 |
+
$streaks[ $player_id ]['name'] = $outcome;
|
181 |
+
$streaks[ $player_id ]['count'] ++;
|
182 |
+
else:
|
183 |
+
$streaks[ $player_id ]['fire'] = 0;
|
184 |
+
endif;
|
185 |
+
|
186 |
+
// Add to last 5 counter if sum is less than 5
|
187 |
+
if ( array_key_exists( $player_id, $last5s ) && array_key_exists( $outcome, $last5s[ $player_id ] ) && array_sum( $last5s[ $player_id ] ) < 5 ):
|
188 |
+
$last5s[ $player_id ][ $outcome ] ++;
|
189 |
+
endif;
|
190 |
+
|
191 |
+
// Add to last 10 counter if sum is less than 10
|
192 |
+
if ( array_key_exists( $player_id, $last10s ) && array_key_exists( $outcome, $last10s[ $player_id ] ) && array_sum( $last10s[ $player_id ] ) < 10 ):
|
193 |
+
$last10s[ $player_id ][ $outcome ] ++;
|
194 |
+
endif;
|
195 |
+
endif;
|
196 |
+
endforeach;
|
197 |
+
elseif ( array_key_exists( $key, $totals[ $player_id ] ) ):
|
198 |
$totals[ $player_id ][ $key ] += $value;
|
199 |
endif;
|
200 |
endforeach;
|
includes/class-sp-player.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* The SportsPress player class handles individual player data.
|
6 |
*
|
7 |
* @class SP_Player
|
8 |
-
* @version 1.
|
9 |
* @package SportsPress/Classes
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
@@ -176,7 +176,46 @@ class SP_Player extends SP_Custom_Post {
|
|
176 |
$player_performance = sp_array_value( $players, $this->ID, array() );
|
177 |
|
178 |
foreach ( $player_performance as $key => $value ):
|
179 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
$totals[ $key ] += $value;
|
181 |
endif;
|
182 |
endforeach;
|
@@ -207,7 +246,7 @@ class SP_Player extends SP_Custom_Post {
|
|
207 |
$value = array( $value );
|
208 |
endif;
|
209 |
|
210 |
-
foreach( $value as $outcome ):
|
211 |
if ( $outcome && $outcome != '-1' ):
|
212 |
|
213 |
// Increment outcome count
|
@@ -281,21 +320,25 @@ class SP_Player extends SP_Custom_Post {
|
|
281 |
|
282 |
foreach( $placeholders as $season_id => $season_data ):
|
283 |
|
284 |
-
if (
|
285 |
continue;
|
286 |
|
287 |
$season_name = sp_array_value( $season_names, $season_id, ' ' );
|
288 |
|
289 |
$team_id = sp_array_value( $leagues, $season_id, array() );
|
290 |
|
291 |
-
if (
|
292 |
continue;
|
293 |
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
|
|
|
|
|
|
|
|
299 |
endif;
|
300 |
|
301 |
// Add season name to row
|
5 |
* The SportsPress player class handles individual player data.
|
6 |
*
|
7 |
* @class SP_Player
|
8 |
+
* @version 1.5
|
9 |
* @package SportsPress/Classes
|
10 |
* @category Class
|
11 |
* @author ThemeBoy
|
176 |
$player_performance = sp_array_value( $players, $this->ID, array() );
|
177 |
|
178 |
foreach ( $player_performance as $key => $value ):
|
179 |
+
if ( 'outcome' == $key ):
|
180 |
+
// Increment events attended, played, and started
|
181 |
+
$totals['eventsattended'] ++;
|
182 |
+
$totals['eventsplayed'] ++;
|
183 |
+
$totals['eventsstarted'] ++;
|
184 |
+
$totals['eventminutes'] += $minutes;
|
185 |
+
|
186 |
+
// Convert to array
|
187 |
+
if ( ! is_array( $value ) ):
|
188 |
+
$value = array( $value );
|
189 |
+
endif;
|
190 |
+
|
191 |
+
foreach ( $value as $outcome ):
|
192 |
+
if ( $outcome && $outcome != '-1' ):
|
193 |
+
|
194 |
+
// Increment outcome count
|
195 |
+
if ( array_key_exists( $outcome, $totals ) ):
|
196 |
+
$totals[ $outcome ] ++;
|
197 |
+
endif;
|
198 |
+
|
199 |
+
// Add to streak counter
|
200 |
+
if ( $streak['fire'] && ( $streak['name'] == '' || $streak['name'] == $outcome ) ):
|
201 |
+
$streak['name'] = $outcome;
|
202 |
+
$streak['count'] ++;
|
203 |
+
else:
|
204 |
+
$streak['fire'] = 0;
|
205 |
+
endif;
|
206 |
+
|
207 |
+
// Add to last 5 counter if sum is less than 5
|
208 |
+
if ( array_key_exists( $outcome, $last5 ) && array_sum( $last5 ) < 5 ):
|
209 |
+
$last5[ $outcome ] ++;
|
210 |
+
endif;
|
211 |
+
|
212 |
+
// Add to last 10 counter if sum is less than 10
|
213 |
+
if ( array_key_exists( $outcome, $last10 ) && array_sum( $last10 ) < 10 ):
|
214 |
+
$last10[ $outcome ] ++;
|
215 |
+
endif;
|
216 |
+
endif;
|
217 |
+
endforeach;
|
218 |
+
elseif ( array_key_exists( $key, $totals ) ):
|
219 |
$totals[ $key ] += $value;
|
220 |
endif;
|
221 |
endforeach;
|
246 |
$value = array( $value );
|
247 |
endif;
|
248 |
|
249 |
+
foreach ( $value as $outcome ):
|
250 |
if ( $outcome && $outcome != '-1' ):
|
251 |
|
252 |
// Increment outcome count
|
320 |
|
321 |
foreach( $placeholders as $season_id => $season_data ):
|
322 |
|
323 |
+
if ( -1 == sp_array_value( $leagues, $season_id, 0 ) )
|
324 |
continue;
|
325 |
|
326 |
$season_name = sp_array_value( $season_names, $season_id, ' ' );
|
327 |
|
328 |
$team_id = sp_array_value( $leagues, $season_id, array() );
|
329 |
|
330 |
+
if ( -1 == $team_id )
|
331 |
continue;
|
332 |
|
333 |
+
if ( $team_id ):
|
334 |
+
$team_name = get_the_title( $team_id );
|
335 |
+
|
336 |
+
if ( get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false ):
|
337 |
+
$team_permalink = get_permalink( $team_id );
|
338 |
+
$team_name = '<a href="' . $team_permalink . '">' . $team_name . '</a>';
|
339 |
+
endif;
|
340 |
+
else:
|
341 |
+
$team_name = '—';
|
342 |
endif;
|
343 |
|
344 |
// Add season name to row
|
includes/class-sp-post-types.php
CHANGED
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
9 |
* Registers post types and taxonomies
|
10 |
*
|
11 |
* @class SP_Post_types
|
12 |
-
* @version 1.
|
13 |
* @package SportsPress/Classes
|
14 |
* @category Class
|
15 |
* @author ThemeBoy
|
@@ -553,8 +553,8 @@ class SP_Post_types {
|
|
553 |
apply_filters( 'sportspress_register_post_type_staff',
|
554 |
array(
|
555 |
'labels' => array(
|
556 |
-
'name' =>
|
557 |
-
'singular_name' =>
|
558 |
'add_new_item' => __( 'Add New Staff', 'sportspress' ),
|
559 |
'edit_item' => __( 'Edit Staff', 'sportspress' ),
|
560 |
'new_item' => __( 'New', 'sportspress' ),
|
@@ -574,8 +574,7 @@ class SP_Post_types {
|
|
574 |
'supports' => array( 'title', 'author', 'thumbnail', 'excerpt' ),
|
575 |
'has_archive' => false,
|
576 |
'show_in_nav_menus' => true,
|
577 |
-
'
|
578 |
-
'show_in_admin_bar' => true,
|
579 |
)
|
580 |
)
|
581 |
);
|
9 |
* Registers post types and taxonomies
|
10 |
*
|
11 |
* @class SP_Post_types
|
12 |
+
* @version 1.5
|
13 |
* @package SportsPress/Classes
|
14 |
* @category Class
|
15 |
* @author ThemeBoy
|
553 |
apply_filters( 'sportspress_register_post_type_staff',
|
554 |
array(
|
555 |
'labels' => array(
|
556 |
+
'name' => _n( 'Staff', 'Staff', 2, 'sportspress' ),
|
557 |
+
'singular_name' => _n( 'Staff', 'Staff', 1, 'sportspress' ),
|
558 |
'add_new_item' => __( 'Add New Staff', 'sportspress' ),
|
559 |
'edit_item' => __( 'Edit Staff', 'sportspress' ),
|
560 |
'new_item' => __( 'New', 'sportspress' ),
|
574 |
'supports' => array( 'title', 'author', 'thumbnail', 'excerpt' ),
|
575 |
'has_archive' => false,
|
576 |
'show_in_nav_menus' => true,
|
577 |
+
'menu_icon' => 'dashicons-businessman',
|
|
|
578 |
)
|
579 |
)
|
580 |
);
|
includes/class-sp-template-loader.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Template Loader
|
4 |
*
|
5 |
* @class SP_Template_Loader
|
6 |
-
* @version 1.
|
7 |
* @package SportsPress/Classes
|
8 |
* @category Class
|
9 |
* @author ThemeBoy
|
@@ -108,15 +108,15 @@ class SP_Template_Loader {
|
|
108 |
* Templates are in the 'templates' folder. sportspress looks for theme
|
109 |
* overrides in /theme/sportspress/ by default
|
110 |
*
|
111 |
-
* For beginners, it also looks for a sportspress.php template
|
112 |
-
* this to the theme (containing a sportspress() inside) this will be used
|
113 |
-
* sportspress templates.
|
114 |
*
|
115 |
* @param mixed $template
|
116 |
* @return string
|
117 |
*/
|
118 |
public function template_loader( $template ) {
|
119 |
-
$find = array(
|
120 |
$file = '';
|
121 |
|
122 |
if ( is_single() ):
|
@@ -174,6 +174,8 @@ class SP_Template_Loader {
|
|
174 |
|
175 |
endif;
|
176 |
|
|
|
|
|
177 |
if ( $file ):
|
178 |
$located = locate_template( $find );
|
179 |
if ( $located ):
|
3 |
* Template Loader
|
4 |
*
|
5 |
* @class SP_Template_Loader
|
6 |
+
* @version 1.5
|
7 |
* @package SportsPress/Classes
|
8 |
* @category Class
|
9 |
* @author ThemeBoy
|
108 |
* Templates are in the 'templates' folder. sportspress looks for theme
|
109 |
* overrides in /theme/sportspress/ by default
|
110 |
*
|
111 |
+
* For beginners, it also looks for a sportspress.php template last. If the user adds
|
112 |
+
* this to the theme (containing a sportspress() inside) this will be used as a
|
113 |
+
* fallback for all sportspress templates.
|
114 |
*
|
115 |
* @param mixed $template
|
116 |
* @return string
|
117 |
*/
|
118 |
public function template_loader( $template ) {
|
119 |
+
$find = array();
|
120 |
$file = '';
|
121 |
|
122 |
if ( is_single() ):
|
174 |
|
175 |
endif;
|
176 |
|
177 |
+
$find[] = 'sportspress.php';
|
178 |
+
|
179 |
if ( $file ):
|
180 |
$located = locate_template( $find );
|
181 |
if ( $located ):
|
includes/sp-api-functions.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @author ThemeBoy
|
8 |
* @category Core
|
9 |
* @package SportsPress/Functions
|
10 |
-
* @version 1.
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -28,6 +28,16 @@ function sp_the_time( $post = 0 ) {
|
|
28 |
* Event functions
|
29 |
*/
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
function sp_get_teams( $post = 0 ) {
|
32 |
return get_post_meta( $post, 'sp_team' );
|
33 |
}
|
@@ -55,6 +65,60 @@ function sp_the_main_results_or_time( $post = 0, $delimiter = '-' ) {
|
|
55 |
echo implode( $delimiter, sp_get_main_results_or_time( $post ) );
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
/*
|
59 |
* Team functions
|
60 |
*/
|
@@ -70,3 +134,86 @@ function sp_get_logo( $post = 0, $size = 'icon', $attr = array() ) {
|
|
70 |
function sp_the_logo( $post = 0, $size = 'icon', $attr = array() ) {
|
71 |
echo sp_get_logo( $post, $size, $attr );
|
72 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
* @author ThemeBoy
|
8 |
* @category Core
|
9 |
* @package SportsPress/Functions
|
10 |
+
* @version 1.5
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
28 |
* Event functions
|
29 |
*/
|
30 |
|
31 |
+
function sp_get_status( $post = 0 ) {
|
32 |
+
$event = new SP_Event( $post );
|
33 |
+
return $event->status();
|
34 |
+
}
|
35 |
+
|
36 |
+
function sp_get_results( $post = 0 ) {
|
37 |
+
$event = new SP_Event( $post );
|
38 |
+
return $event->results();
|
39 |
+
}
|
40 |
+
|
41 |
function sp_get_teams( $post = 0 ) {
|
42 |
return get_post_meta( $post, 'sp_team' );
|
43 |
}
|
65 |
echo implode( $delimiter, sp_get_main_results_or_time( $post ) );
|
66 |
}
|
67 |
|
68 |
+
function sp_get_performance( $post = 0 ) {
|
69 |
+
$event = new SP_Event( $post );
|
70 |
+
return $event->performance();
|
71 |
+
}
|
72 |
+
|
73 |
+
function sp_event_logos( $post = 0 ) {
|
74 |
+
sp_get_template( 'event-logos.php', array( 'id' => $post ) );
|
75 |
+
}
|
76 |
+
|
77 |
+
function sp_event_video( $post = 0 ) {
|
78 |
+
sp_get_template( 'event-video.php', array( 'id' => $post ) );
|
79 |
+
}
|
80 |
+
|
81 |
+
function sp_event_results( $post = 0 ) {
|
82 |
+
sp_get_template( 'event-results.php', array( 'id' => $post ) );
|
83 |
+
}
|
84 |
+
|
85 |
+
function sp_event_details( $post = 0 ) {
|
86 |
+
sp_get_template( 'event-details.php', array( 'id' => $post ) );
|
87 |
+
}
|
88 |
+
|
89 |
+
function sp_event_venue( $post = 0 ) {
|
90 |
+
sp_get_template( 'event-venue.php', array( 'id' => $post ) );
|
91 |
+
}
|
92 |
+
|
93 |
+
function sp_event_staff( $post = 0 ) {
|
94 |
+
sp_get_template( 'event-staff.php', array( 'id' => $post ) );
|
95 |
+
}
|
96 |
+
|
97 |
+
function sp_event_performance( $post = 0 ) {
|
98 |
+
sp_get_template( 'event-performance.php', array( 'id' => $post ) );
|
99 |
+
}
|
100 |
+
|
101 |
+
/*
|
102 |
+
* Calendar functions
|
103 |
+
*/
|
104 |
+
|
105 |
+
function sp_get_calendar( $post = 0 ) {
|
106 |
+
$calendar = new SP_Calendar( $post );
|
107 |
+
return $calendar->data();
|
108 |
+
}
|
109 |
+
|
110 |
+
function sp_event_calendar( $post = 0 ) {
|
111 |
+
sp_get_template( 'event-calendar.php', array( 'id' => $post ) );
|
112 |
+
}
|
113 |
+
|
114 |
+
function sp_event_list( $post = 0 ) {
|
115 |
+
sp_get_template( 'event-list.php', array( 'id' => $post ) );
|
116 |
+
}
|
117 |
+
|
118 |
+
function sp_event_blocks( $post = 0 ) {
|
119 |
+
sp_get_template( 'event-blocks.php', array( 'id' => $post ) );
|
120 |
+
}
|
121 |
+
|
122 |
/*
|
123 |
* Team functions
|
124 |
*/
|
134 |
function sp_the_logo( $post = 0, $size = 'icon', $attr = array() ) {
|
135 |
echo sp_get_logo( $post, $size, $attr );
|
136 |
}
|
137 |
+
|
138 |
+
function sp_team_logo( $post = 0 ) {
|
139 |
+
sp_get_template( 'team-logo.php', array( 'id' => $post ) );
|
140 |
+
}
|
141 |
+
|
142 |
+
function sp_team_details( $post = 0 ) {
|
143 |
+
sp_get_template( 'team-details.php', array( 'id' => $post ) );
|
144 |
+
}
|
145 |
+
|
146 |
+
function sp_team_link( $post = 0 ) {
|
147 |
+
sp_get_template( 'team-link.php', array( 'id' => $post ) );
|
148 |
+
}
|
149 |
+
|
150 |
+
function sp_team_lists( $post = 0 ) {
|
151 |
+
sp_get_template( 'team-lists.php', array( 'id' => $post ) );
|
152 |
+
}
|
153 |
+
|
154 |
+
function sp_team_tables( $post = 0 ) {
|
155 |
+
sp_get_template( 'team-tables.php', array( 'id' => $post ) );
|
156 |
+
}
|
157 |
+
|
158 |
+
/*
|
159 |
+
* League Table functions
|
160 |
+
*/
|
161 |
+
|
162 |
+
function sp_get_table( $post = 0 ) {
|
163 |
+
$table = new SP_League_Table( $post );
|
164 |
+
return $table->data();
|
165 |
+
}
|
166 |
+
|
167 |
+
function sp_league_table( $post = 0 ) {
|
168 |
+
sp_get_template( 'league-table.php', array( 'id' => $post ) );
|
169 |
+
}
|
170 |
+
|
171 |
+
/*
|
172 |
+
* Player functions
|
173 |
+
*/
|
174 |
+
|
175 |
+
function sp_player_details( $post = 0 ) {
|
176 |
+
sp_get_template( 'player-details.php', array( 'id' => $post ) );
|
177 |
+
}
|
178 |
+
|
179 |
+
function sp_player_photo( $post = 0 ) {
|
180 |
+
sp_get_template( 'player-photo.php', array( 'id' => $post ) );
|
181 |
+
}
|
182 |
+
|
183 |
+
function sp_player_statistics( $post = 0 ) {
|
184 |
+
sp_get_template( 'player-statistics.php', array( 'id' => $post ) );
|
185 |
+
}
|
186 |
+
|
187 |
+
/*
|
188 |
+
* Player List functions
|
189 |
+
*/
|
190 |
+
|
191 |
+
function sp_get_list( $post = 0 ) {
|
192 |
+
$list = new SP_Player_List( $post );
|
193 |
+
return $list->data();
|
194 |
+
}
|
195 |
+
|
196 |
+
function sp_player_list( $post = 0 ) {
|
197 |
+
sp_get_template( 'player-list.php', array( 'id' => $post ) );
|
198 |
+
}
|
199 |
+
|
200 |
+
/*
|
201 |
+
* Staff functions
|
202 |
+
*/
|
203 |
+
|
204 |
+
function sp_staff_details( $post = 0 ) {
|
205 |
+
sp_get_template( 'staff-details.php', array( 'id' => $post ) );
|
206 |
+
}
|
207 |
+
|
208 |
+
function sp_staff_photo( $post = 0 ) {
|
209 |
+
sp_get_template( 'staff-photo.php', array( 'id' => $post ) );
|
210 |
+
}
|
211 |
+
|
212 |
+
/*
|
213 |
+
* Venue functions
|
214 |
+
*/
|
215 |
+
|
216 |
+
function sp_venue_map( $term = 0 ) {
|
217 |
+
$meta = get_option( "taxonomy_$term" );
|
218 |
+
sp_get_template( 'venue-map.php', array( 'meta' => $meta ) );
|
219 |
+
}
|
includes/sp-core-functions.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @author ThemeBoy
|
8 |
* @category Core
|
9 |
* @package SportsPress/Functions
|
10 |
-
* @version 1.
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -297,6 +297,12 @@ if ( !function_exists( 'sp_numbers_to_words' ) ) {
|
|
297 |
}
|
298 |
}
|
299 |
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
if ( !function_exists( 'sp_get_the_term_id' ) ) {
|
301 |
function sp_get_the_term_id( $post_id, $taxonomy ) {
|
302 |
$terms = get_the_terms( $post_id, $taxonomy );
|
@@ -346,6 +352,26 @@ if ( !function_exists( 'sp_get_post_abbreviation' ) ) {
|
|
346 |
}
|
347 |
}
|
348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
if ( !function_exists( 'sp_get_post_precision' ) ) {
|
350 |
function sp_get_post_precision( $post_id ) {
|
351 |
$precision = get_post_meta ( $post_id, 'sp_precision', true );
|
@@ -477,10 +503,11 @@ if ( !function_exists( 'sp_dropdown_taxonomies' ) ) {
|
|
477 |
'selected' => null,
|
478 |
'hide_empty' => false,
|
479 |
'values' => 'slug',
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
|
|
484 |
);
|
485 |
$args = array_merge( $defaults, $args );
|
486 |
if ( ! $args['taxonomy'] ) return false;
|
@@ -539,6 +566,26 @@ if ( !function_exists( 'sp_dropdown_taxonomies' ) ) {
|
|
539 |
endif;
|
540 |
|
541 |
printf( '<option value="%s" %s>%s</option>', $this_value, $selected_prop, $term->name );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
542 |
endforeach;
|
543 |
print( '</select>' );
|
544 |
return true;
|
@@ -725,7 +772,7 @@ if ( !function_exists( 'sp_post_checklist' ) ) {
|
|
725 |
<?php
|
726 |
$selected = sp_array_between( (array)get_post_meta( $post_id, $meta, false ), 0, $index );
|
727 |
if ( empty( $posts ) ):
|
728 |
-
$query = array( 'post_type' => $meta, 'numberposts' => -1, 'post_per_page' => -1 );
|
729 |
if ( $meta == 'sp_player' ):
|
730 |
$query['meta_key'] = 'sp_number';
|
731 |
$query['orderby'] = 'meta_value_num';
|
@@ -1101,6 +1148,7 @@ if ( !function_exists( 'sp_get_next_event' ) ) {
|
|
1101 |
function sp_get_text_options() {
|
1102 |
$strings = apply_filters( 'sportspress_text', array(
|
1103 |
__( 'Article', 'sportspress' ),
|
|
|
1104 |
__( 'Current Team', 'sportspress' ),
|
1105 |
__( 'Current Teams', 'sportspress' ),
|
1106 |
__( 'Date', 'sportspress' ),
|
7 |
* @author ThemeBoy
|
8 |
* @category Core
|
9 |
* @package SportsPress/Functions
|
10 |
+
* @version 1.5
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
297 |
}
|
298 |
}
|
299 |
|
300 |
+
if ( !function_exists( 'sp_column_active' ) ) {
|
301 |
+
function sp_column_active( $array = null, $value = null ) {
|
302 |
+
return $array == null || in_array( $value, $array );
|
303 |
+
}
|
304 |
+
}
|
305 |
+
|
306 |
if ( !function_exists( 'sp_get_the_term_id' ) ) {
|
307 |
function sp_get_the_term_id( $post_id, $taxonomy ) {
|
308 |
$terms = get_the_terms( $post_id, $taxonomy );
|
352 |
}
|
353 |
}
|
354 |
|
355 |
+
if ( !function_exists( 'sp_get_post_condition' ) ) {
|
356 |
+
function sp_get_post_condition( $post_id ) {
|
357 |
+
$condition = get_post_meta ( $post_id, 'sp_condition', true );
|
358 |
+
$main_result = get_option( 'sportspress_primary_result', null );
|
359 |
+
$result = get_page_by_path( $main_result, ARRAY_A, 'sp_result' );
|
360 |
+
$label = sp_array_value( $result, 'post_title', __( 'Primary', 'sportspress' ) );
|
361 |
+
if ( $condition ):
|
362 |
+
$conditions = array(
|
363 |
+
'0' => '—',
|
364 |
+
'>' => sprintf( __( 'Most %s', 'sportspress' ), $label ),
|
365 |
+
'<' => sprintf( __( 'Least %s', 'sportspress' ), $label ),
|
366 |
+
'=' => sprintf( __( 'Equal %s', 'sportspress' ), $label ),
|
367 |
+
);
|
368 |
+
return sp_array_value( $conditions, $condition, '—' );
|
369 |
+
else:
|
370 |
+
return '—';
|
371 |
+
endif;
|
372 |
+
}
|
373 |
+
}
|
374 |
+
|
375 |
if ( !function_exists( 'sp_get_post_precision' ) ) {
|
376 |
function sp_get_post_precision( $post_id ) {
|
377 |
$precision = get_post_meta ( $post_id, 'sp_precision', true );
|
503 |
'selected' => null,
|
504 |
'hide_empty' => false,
|
505 |
'values' => 'slug',
|
506 |
+
'class' => null,
|
507 |
+
'property' => null,
|
508 |
+
'placeholder' => null,
|
509 |
+
'chosen' => false,
|
510 |
+
'parent' => 0,
|
511 |
);
|
512 |
$args = array_merge( $defaults, $args );
|
513 |
if ( ! $args['taxonomy'] ) return false;
|
566 |
endif;
|
567 |
|
568 |
printf( '<option value="%s" %s>%s</option>', $this_value, $selected_prop, $term->name );
|
569 |
+
|
570 |
+
$term_children = get_term_children( $term->term_id, $args['taxonomy'] );
|
571 |
+
|
572 |
+
foreach ( $term_children as $term_child_id ):
|
573 |
+
$term_child = get_term_by( 'id', $term_child_id, $args['taxonomy'] );
|
574 |
+
|
575 |
+
if ( $args['values'] == 'term_id' ):
|
576 |
+
$this_value = $term_child->term_id;
|
577 |
+
else:
|
578 |
+
$this_value = $term_child->slug;
|
579 |
+
endif;
|
580 |
+
|
581 |
+
if ( strpos( $property, 'multiple' ) !== false ):
|
582 |
+
$selected_prop = in_array( $this_value, $selected ) ? 'selected' : '';
|
583 |
+
else:
|
584 |
+
$selected_prop = selected( $this_value, $selected, false );
|
585 |
+
endif;
|
586 |
+
|
587 |
+
printf( '<option value="%s" %s>%s</option>', $this_value, $selected_prop, '— ' . $term_child->name );
|
588 |
+
endforeach;
|
589 |
endforeach;
|
590 |
print( '</select>' );
|
591 |
return true;
|
772 |
<?php
|
773 |
$selected = sp_array_between( (array)get_post_meta( $post_id, $meta, false ), 0, $index );
|
774 |
if ( empty( $posts ) ):
|
775 |
+
$query = array( 'post_type' => $meta, 'numberposts' => -1, 'post_per_page' => -1, 'orderby' => 'menu_order' );
|
776 |
if ( $meta == 'sp_player' ):
|
777 |
$query['meta_key'] = 'sp_number';
|
778 |
$query['orderby'] = 'meta_value_num';
|
1148 |
function sp_get_text_options() {
|
1149 |
$strings = apply_filters( 'sportspress_text', array(
|
1150 |
__( 'Article', 'sportspress' ),
|
1151 |
+
__( 'Career Total', 'sportspress' ),
|
1152 |
__( 'Current Team', 'sportspress' ),
|
1153 |
__( 'Current Teams', 'sportspress' ),
|
1154 |
__( 'Date', 'sportspress' ),
|
includes/sp-template-hooks.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @author ThemeBoy
|
8 |
* @category Core
|
9 |
* @package SportsPress/Functions
|
10 |
-
* @version 1.
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -30,7 +30,6 @@ add_action( 'get_the_generator_xhtml', 'sp_generator_tag', 10, 2 );
|
|
30 |
* @see sportspress_output_event_details()
|
31 |
* @see sportspress_output_event_venue()
|
32 |
* @see sportspress_output_event_performance()
|
33 |
-
* @see sportspress_output_br_tag()
|
34 |
*/
|
35 |
add_action( 'sportspress_single_event_content', 'sportspress_output_event_logos', 0 );
|
36 |
add_action( 'sportspress_single_event_content', 'sportspress_output_event_video', 10 );
|
@@ -38,16 +37,13 @@ add_action( 'sportspress_single_event_content', 'sportspress_output_event_result
|
|
38 |
add_action( 'sportspress_single_event_content', 'sportspress_output_event_details', 30 );
|
39 |
add_action( 'sportspress_single_event_content', 'sportspress_output_event_venue', 40 );
|
40 |
add_action( 'sportspress_single_event_content', 'sportspress_output_event_performance', 50 );
|
41 |
-
add_action( 'sportspress_single_event_content', 'sportspress_output_br_tag', 100 );
|
42 |
|
43 |
/**
|
44 |
* Single Calendar Content
|
45 |
*
|
46 |
* @see sportspress_output_calendar()
|
47 |
-
* @see sportspress_output_br_tag()
|
48 |
*/
|
49 |
add_action( 'sportspress_single_calendar_content', 'sportspress_output_calendar', 10 );
|
50 |
-
add_action( 'sportspress_single_calendar_content', 'sportspress_output_br_tag', 100 );
|
51 |
|
52 |
/**
|
53 |
* Single Team Content
|
@@ -56,13 +52,11 @@ add_action( 'sportspress_single_calendar_content', 'sportspress_output_br_tag',
|
|
56 |
* @see sportspress_output_team_details()
|
57 |
* @see sportspress_output_team_lists()
|
58 |
* @see sportspress_output_team_tables()
|
59 |
-
* @see sportspress_output_br_tag()
|
60 |
*/
|
61 |
add_action( 'sportspress_single_team_content', 'sportspress_output_team_logo', 0 );
|
62 |
add_action( 'sportspress_single_team_content', 'sportspress_output_team_details', 10 );
|
63 |
add_action( 'sportspress_single_team_content', 'sportspress_output_team_lists', 20 );
|
64 |
add_action( 'sportspress_single_team_content', 'sportspress_output_team_tables', 30 );
|
65 |
-
add_action( 'sportspress_single_team_content', 'sportspress_output_br_tag', 100 );
|
66 |
|
67 |
/**
|
68 |
* After Single Team
|
@@ -74,10 +68,8 @@ add_action( 'sportspress_after_single_team', 'sportspress_output_team_link', 10
|
|
74 |
* Single Table Content
|
75 |
*
|
76 |
* @see sportspress_output_league_table()
|
77 |
-
* @see sportspress_output_br_tag()
|
78 |
*/
|
79 |
add_action( 'sportspress_single_table_content', 'sportspress_output_league_table', 10 );
|
80 |
-
add_action( 'sportspress_single_table_content', 'sportspress_output_br_tag', 100 );
|
81 |
|
82 |
/**
|
83 |
* Single Player Content
|
@@ -85,32 +77,26 @@ add_action( 'sportspress_single_table_content', 'sportspress_output_br_tag', 100
|
|
85 |
* @see sportspress_output_player_photo()
|
86 |
* @see sportspress_output_player_details()
|
87 |
* @see sportspress_output_player_statistics()
|
88 |
-
* @see sportspress_output_br_tag()
|
89 |
*/
|
90 |
add_action( 'sportspress_single_player_content', 'sportspress_output_player_photo', 0 );
|
91 |
add_action( 'sportspress_single_player_content', 'sportspress_output_player_details', 10 );
|
92 |
add_action( 'sportspress_single_player_content', 'sportspress_output_player_statistics', 20 );
|
93 |
-
add_action( 'sportspress_single_player_content', 'sportspress_output_br_tag', 100 );
|
94 |
|
95 |
/**
|
96 |
* Single List Content
|
97 |
*
|
98 |
* @see sportspress_output_player_list()
|
99 |
-
* @see sportspress_output_br_tag()
|
100 |
*/
|
101 |
add_action( 'sportspress_single_list_content', 'sportspress_output_player_list', 10 );
|
102 |
-
add_action( 'sportspress_single_list_content', 'sportspress_output_br_tag', 100 );
|
103 |
|
104 |
/**
|
105 |
* Single Staff Content
|
106 |
*
|
107 |
* @see sportspress_output_staff_photo()
|
108 |
* @see sportspress_output_staff_details()
|
109 |
-
* @see sportspress_output_br_tag()
|
110 |
*/
|
111 |
add_action( 'sportspress_single_staff_content', 'sportspress_output_staff_photo', 0 );
|
112 |
add_action( 'sportspress_single_staff_content', 'sportspress_output_staff_details', 10 );
|
113 |
-
add_action( 'sportspress_single_staff_content', 'sportspress_output_br_tag', 100 );
|
114 |
|
115 |
/**
|
116 |
* Venue Archive Content
|
@@ -118,7 +104,7 @@ add_action( 'sportspress_single_staff_content', 'sportspress_output_br_tag', 100
|
|
118 |
add_action( 'loop_start', 'sportspress_output_venue_map' );
|
119 |
|
120 |
/**
|
121 |
-
* Adjacent
|
122 |
*/
|
123 |
add_filter( 'previous_post_link', 'sportspress_hide_adjacent_post_links', 10, 4 );
|
124 |
add_filter( 'next_post_link', 'sportspress_hide_adjacent_post_links', 10, 4 );
|
@@ -126,17 +112,17 @@ add_filter( 'next_post_link', 'sportspress_hide_adjacent_post_links', 10, 4 );
|
|
126 |
function sportspress_the_title( $title, $id = null ) {
|
127 |
if ( ! $id ) return $title;
|
128 |
|
129 |
-
if ( ! is_admin() &&
|
130 |
if ( is_singular( 'sp_player' ) ):
|
131 |
$number = get_post_meta( $id, 'sp_number', true );
|
132 |
if ( $number != null ):
|
133 |
-
$title = '<strong>' . $number . '</strong> ' . $title;
|
134 |
endif;
|
135 |
elseif ( is_singular( 'sp_staff' ) ):
|
136 |
$staff = new SP_Staff( $id );
|
137 |
$role = $staff->role();
|
138 |
if ( $role ):
|
139 |
-
$title = '<strong>' . $role->name . '</strong> ' . $title;
|
140 |
endif;
|
141 |
endif;
|
142 |
endif;
|
7 |
* @author ThemeBoy
|
8 |
* @category Core
|
9 |
* @package SportsPress/Functions
|
10 |
+
* @version 1.5
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
30 |
* @see sportspress_output_event_details()
|
31 |
* @see sportspress_output_event_venue()
|
32 |
* @see sportspress_output_event_performance()
|
|
|
33 |
*/
|
34 |
add_action( 'sportspress_single_event_content', 'sportspress_output_event_logos', 0 );
|
35 |
add_action( 'sportspress_single_event_content', 'sportspress_output_event_video', 10 );
|
37 |
add_action( 'sportspress_single_event_content', 'sportspress_output_event_details', 30 );
|
38 |
add_action( 'sportspress_single_event_content', 'sportspress_output_event_venue', 40 );
|
39 |
add_action( 'sportspress_single_event_content', 'sportspress_output_event_performance', 50 );
|
|
|
40 |
|
41 |
/**
|
42 |
* Single Calendar Content
|
43 |
*
|
44 |
* @see sportspress_output_calendar()
|
|
|
45 |
*/
|
46 |
add_action( 'sportspress_single_calendar_content', 'sportspress_output_calendar', 10 );
|
|
|
47 |
|
48 |
/**
|
49 |
* Single Team Content
|
52 |
* @see sportspress_output_team_details()
|
53 |
* @see sportspress_output_team_lists()
|
54 |
* @see sportspress_output_team_tables()
|
|
|
55 |
*/
|
56 |
add_action( 'sportspress_single_team_content', 'sportspress_output_team_logo', 0 );
|
57 |
add_action( 'sportspress_single_team_content', 'sportspress_output_team_details', 10 );
|
58 |
add_action( 'sportspress_single_team_content', 'sportspress_output_team_lists', 20 );
|
59 |
add_action( 'sportspress_single_team_content', 'sportspress_output_team_tables', 30 );
|
|
|
60 |
|
61 |
/**
|
62 |
* After Single Team
|
68 |
* Single Table Content
|
69 |
*
|
70 |
* @see sportspress_output_league_table()
|
|
|
71 |
*/
|
72 |
add_action( 'sportspress_single_table_content', 'sportspress_output_league_table', 10 );
|
|
|
73 |
|
74 |
/**
|
75 |
* Single Player Content
|
77 |
* @see sportspress_output_player_photo()
|
78 |
* @see sportspress_output_player_details()
|
79 |
* @see sportspress_output_player_statistics()
|
|
|
80 |
*/
|
81 |
add_action( 'sportspress_single_player_content', 'sportspress_output_player_photo', 0 );
|
82 |
add_action( 'sportspress_single_player_content', 'sportspress_output_player_details', 10 );
|
83 |
add_action( 'sportspress_single_player_content', 'sportspress_output_player_statistics', 20 );
|
|
|
84 |
|
85 |
/**
|
86 |
* Single List Content
|
87 |
*
|
88 |
* @see sportspress_output_player_list()
|
|
|
89 |
*/
|
90 |
add_action( 'sportspress_single_list_content', 'sportspress_output_player_list', 10 );
|
|
|
91 |
|
92 |
/**
|
93 |
* Single Staff Content
|
94 |
*
|
95 |
* @see sportspress_output_staff_photo()
|
96 |
* @see sportspress_output_staff_details()
|
|
|
97 |
*/
|
98 |
add_action( 'sportspress_single_staff_content', 'sportspress_output_staff_photo', 0 );
|
99 |
add_action( 'sportspress_single_staff_content', 'sportspress_output_staff_details', 10 );
|
|
|
100 |
|
101 |
/**
|
102 |
* Venue Archive Content
|
104 |
add_action( 'loop_start', 'sportspress_output_venue_map' );
|
105 |
|
106 |
/**
|
107 |
+
* Adjacent Post Links
|
108 |
*/
|
109 |
add_filter( 'previous_post_link', 'sportspress_hide_adjacent_post_links', 10, 4 );
|
110 |
add_filter( 'next_post_link', 'sportspress_hide_adjacent_post_links', 10, 4 );
|
112 |
function sportspress_the_title( $title, $id = null ) {
|
113 |
if ( ! $id ) return $title;
|
114 |
|
115 |
+
if ( ! is_admin() && in_the_loop() && $id == get_the_ID() ):
|
116 |
if ( is_singular( 'sp_player' ) ):
|
117 |
$number = get_post_meta( $id, 'sp_number', true );
|
118 |
if ( $number != null ):
|
119 |
+
$title = '<strong class="sp-player-number">' . $number . '</strong> ' . $title;
|
120 |
endif;
|
121 |
elseif ( is_singular( 'sp_staff' ) ):
|
122 |
$staff = new SP_Staff( $id );
|
123 |
$role = $staff->role();
|
124 |
if ( $role ):
|
125 |
+
$title = '<strong class="sp-staff-role">' . $role->name . '</strong> ' . $title;
|
126 |
endif;
|
127 |
endif;
|
128 |
endif;
|
includes/widgets/class-sp-widget-countdown.php
CHANGED
@@ -97,7 +97,7 @@ class SP_Widget_Countdown extends WP_Widget {
|
|
97 |
<label for="<?php echo $this->get_field_id('show_venue'); ?>"><?php _e( 'Display venue', 'sportspress' ); ?></label></p>
|
98 |
|
99 |
<p><input class="checkbox" type="checkbox" id="<?php echo $this->get_field_id('show_league'); ?>" name="<?php echo $this->get_field_name('show_league'); ?>" value="1" <?php checked( $show_league, 1 ); ?>>
|
100 |
-
<label for="<?php echo $this->get_field_id('show_league'); ?>"><?php _e( 'Display
|
101 |
|
102 |
<?php
|
103 |
// Action to hook into
|
97 |
<label for="<?php echo $this->get_field_id('show_venue'); ?>"><?php _e( 'Display venue', 'sportspress' ); ?></label></p>
|
98 |
|
99 |
<p><input class="checkbox" type="checkbox" id="<?php echo $this->get_field_id('show_league'); ?>" name="<?php echo $this->get_field_name('show_league'); ?>" value="1" <?php checked( $show_league, 1 ); ?>>
|
100 |
+
<label for="<?php echo $this->get_field_id('show_league'); ?>"><?php _e( 'Display competition', 'sportspress' ); ?></label></p>
|
101 |
|
102 |
<?php
|
103 |
// Action to hook into
|
includes/widgets/class-sp-widget-event-list.php
CHANGED
@@ -136,7 +136,7 @@ class SP_Widget_Event_List extends WP_Widget {
|
|
136 |
<?php
|
137 |
$the_columns = array(
|
138 |
'event' => __( 'Event', 'sportspress' ),
|
139 |
-
'time' => __( 'Time', 'sportspress' ),
|
140 |
'venue' => __( 'Venue', 'sportspress' ),
|
141 |
'article' => __( 'Article', 'sportspress' ),
|
142 |
);
|
136 |
<?php
|
137 |
$the_columns = array(
|
138 |
'event' => __( 'Event', 'sportspress' ),
|
139 |
+
'time' => __( 'Time/Results', 'sportspress' ),
|
140 |
'venue' => __( 'Venue', 'sportspress' ),
|
141 |
'article' => __( 'Article', 'sportspress' ),
|
142 |
);
|
languages/sportspress-ar.mo
CHANGED
Binary file
|
languages/sportspress-az.mo
CHANGED
Binary file
|
languages/sportspress-be_BY.mo
CHANGED
Binary file
|
languages/sportspress-bg_BG.mo
CHANGED
Binary file
|
languages/sportspress-bn_BD.mo
CHANGED
Binary file
|
languages/sportspress-bs_BA.mo
CHANGED
Binary file
|
languages/sportspress-ca.mo
CHANGED
Binary file
|
languages/sportspress-cs_CZ.mo
CHANGED
Binary file
|
languages/sportspress-cy.mo
CHANGED
Binary file
|
languages/sportspress-da_DK.mo
CHANGED
Binary file
|
languages/sportspress-de_DE.mo
CHANGED
Binary file
|
languages/sportspress-el.mo
CHANGED
Binary file
|
languages/sportspress-en.mo
DELETED
Binary file
|
languages/sportspress-es_ES.mo
CHANGED
Binary file
|
languages/sportspress-et.mo
CHANGED
Binary file
|
languages/sportspress-eu.mo
CHANGED
Binary file
|
languages/sportspress-fa_IR.mo
CHANGED
Binary file
|
languages/sportspress-fi.mo
CHANGED
Binary file
|
languages/sportspress-fr_FR.mo
CHANGED
Binary file
|
languages/sportspress-gl_ES.mo
CHANGED
Binary file
|
languages/sportspress-he_IL.mo
CHANGED
Binary file
|
languages/sportspress-hr.mo
CHANGED
Binary file
|
languages/sportspress-hu_HU.mo
CHANGED
Binary file
|
languages/sportspress-hy.mo
CHANGED
Binary file
|
languages/sportspress-id_ID.mo
CHANGED
Binary file
|
languages/sportspress-is_IS.mo
CHANGED
Binary file
|
languages/sportspress-it_IT.mo
CHANGED
Binary file
|
languages/sportspress-ja.mo
CHANGED
Binary file
|
languages/sportspress-kk.mo
CHANGED
Binary file
|
languages/sportspress-kn.mo
CHANGED
Binary file
|
languages/sportspress-ko_KR.mo
CHANGED
Binary file
|
languages/sportspress-mk_MK.mo
CHANGED
Binary file
|
languages/sportspress-ms_MY.mo
CHANGED
Binary file
|
languages/sportspress-nb_NO.mo
CHANGED
Binary file
|
languages/sportspress-nl_NL.mo
CHANGED
Binary file
|
languages/sportspress-nn_NO.mo
CHANGED
Binary file
|
languages/sportspress-pl_PL.mo
CHANGED
Binary file
|
languages/sportspress-pt_BR.mo
CHANGED
Binary file
|
languages/sportspress-pt_PT.mo
CHANGED
Binary file
|
languages/sportspress-ro_RO.mo
CHANGED
Binary file
|
languages/sportspress-ru_RU.mo
CHANGED
Binary file
|
languages/sportspress-sk_SK.mo
CHANGED
Binary file
|
languages/sportspress-sl_SI.mo
CHANGED
Binary file
|
languages/sportspress-sq.mo
CHANGED
Binary file
|
languages/sportspress-sr_RS.mo
CHANGED
Binary file
|
languages/sportspress-sv_SE.mo
CHANGED
Binary file
|
languages/sportspress-te.mo
CHANGED
Binary file
|
languages/sportspress-th.mo
CHANGED
Binary file
|
languages/sportspress-tl.mo
CHANGED
Binary file
|
languages/sportspress-tr_TR.mo
CHANGED
Binary file
|
languages/sportspress-uk.mo
CHANGED
Binary file
|
languages/sportspress-ur.mo
CHANGED
Binary file
|
languages/sportspress-vi.mo
CHANGED
Binary file
|
languages/sportspress-zh_CN.mo
CHANGED
Binary file
|
languages/sportspress-zh_TW.mo
CHANGED
Binary file
|
languages/sportspress.pot
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: SportsPress\n"
|
4 |
-
"POT-Creation-Date: 2014-
|
5 |
-
"PO-Revision-Date: 2014-
|
6 |
"Last-Translator: ThemeBoy <support@themeboy.com>\n"
|
7 |
"Language-Team: ThemeBoy <support@themeboy.com>\n"
|
8 |
"Language: en_US\n"
|
@@ -39,14 +39,14 @@ msgstr ""
|
|
39 |
#: assets/js/admin/editor-lang.php:9
|
40 |
#: includes/admin/class-sp-admin-sample-data.php:367
|
41 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:99
|
42 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
43 |
#: includes/class-sp-ajax.php:57 includes/class-sp-ajax.php:101
|
44 |
#: includes/class-sp-ajax.php:130 includes/class-sp-ajax.php:159
|
45 |
#: includes/class-sp-ajax.php:290 includes/class-sp-post-types.php:370
|
46 |
-
#: includes/sp-core-functions.php:
|
47 |
#: includes/widgets/class-sp-widget-countdown.php:76
|
48 |
#: includes/widgets/class-sp-widget-event-list.php:138
|
49 |
-
#: templates/event-list.php:
|
50 |
msgid "Event"
|
51 |
msgstr ""
|
52 |
|
@@ -58,29 +58,31 @@ msgstr ""
|
|
58 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:114
|
59 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:117
|
60 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:123
|
61 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
62 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
63 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
64 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
65 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
66 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
67 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
68 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php:31
|
69 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-shortcode.php:27
|
70 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:110
|
71 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:106
|
72 |
#: includes/admin/settings/class-sp-settings-events.php:70
|
73 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
74 |
#: includes/admin/settings/class-sp-settings-players.php:59
|
75 |
#: includes/admin/settings/class-sp-settings-staff.php:61
|
76 |
#: includes/admin/settings/class-sp-settings-teams.php:61
|
77 |
-
#: includes/sp-core-functions.php:
|
78 |
msgid "Details"
|
79 |
msgstr ""
|
80 |
|
81 |
#: assets/js/admin/editor-lang.php:11
|
82 |
#: includes/admin/importers/class-sp-event-importer.php:30
|
|
|
83 |
#: includes/admin/settings/class-sp-settings-events.php:62
|
|
|
84 |
msgid "Results"
|
85 |
msgstr ""
|
86 |
|
@@ -107,7 +109,7 @@ msgid "Calendar"
|
|
107 |
msgstr ""
|
108 |
|
109 |
#: assets/js/admin/editor-lang.php:15
|
110 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
111 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-columns.php:27
|
112 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-columns.php:26
|
113 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-shortcode.php:31
|
@@ -115,8 +117,8 @@ msgid "Statistics"
|
|
115 |
msgstr ""
|
116 |
|
117 |
#: assets/js/admin/editor-lang.php:16
|
118 |
-
#: includes/admin/class-sp-admin-sample-data.php:
|
119 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
120 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:55
|
121 |
#: includes/class-sp-ajax.php:401 includes/class-sp-post-types.php:465
|
122 |
#: includes/widgets/class-sp-widget-league-table.php:6
|
@@ -125,9 +127,9 @@ msgid "League Table"
|
|
125 |
msgstr ""
|
126 |
|
127 |
#: assets/js/admin/editor-lang.php:17
|
128 |
-
#: includes/admin/class-sp-admin-sample-data.php:
|
129 |
-
#: includes/admin/class-sp-admin-sample-data.php:
|
130 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
131 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:55
|
132 |
#: includes/class-sp-ajax.php:525 includes/class-sp-ajax.php:615
|
133 |
#: includes/class-sp-post-types.php:526
|
@@ -148,13 +150,13 @@ msgstr ""
|
|
148 |
|
149 |
#: assets/js/admin/editor-lang.php:20
|
150 |
#: includes/admin/class-sp-admin-sample-data.php:214
|
151 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:
|
152 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:54
|
153 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:147
|
154 |
#: includes/class-sp-ajax.php:467 includes/class-sp-ajax.php:496
|
155 |
-
#: includes/class-sp-install.php:162 includes/class-sp-player-list.php:
|
156 |
-
#: includes/class-sp-post-types.php:496 includes/sp-core-functions.php:
|
157 |
-
#: templates/event-performance.php:
|
158 |
msgid "Player"
|
159 |
msgstr ""
|
160 |
|
@@ -170,8 +172,9 @@ msgstr ""
|
|
170 |
#: includes/admin/class-sp-admin-settings.php:115
|
171 |
#: includes/admin/importers/class-sp-event-importer.php:487
|
172 |
#: includes/admin/importers/class-sp-event-importer.php:502
|
173 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
174 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:
|
|
|
175 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:78
|
176 |
#: includes/admin/settings/class-sp-settings-status.php:260
|
177 |
#: includes/admin/views/html-admin-page-status.php:224
|
@@ -184,24 +187,24 @@ msgstr ""
|
|
184 |
|
185 |
#: includes/admin/class-sp-admin-assets.php:116
|
186 |
#: includes/admin/class-sp-admin-dashboard.php:81
|
187 |
-
#: includes/class-sp-frontend-scripts.php:85 templates/countdown.php:
|
188 |
msgid "days"
|
189 |
msgstr ""
|
190 |
|
191 |
#: includes/admin/class-sp-admin-assets.php:117
|
192 |
-
#: includes/class-sp-frontend-scripts.php:85 templates/countdown.php:
|
193 |
msgid "hrs"
|
194 |
msgstr ""
|
195 |
|
196 |
#: includes/admin/class-sp-admin-assets.php:118
|
197 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:29
|
198 |
#: includes/admin/settings/class-sp-settings-events.php:157
|
199 |
-
#: includes/class-sp-frontend-scripts.php:85 templates/countdown.php:
|
200 |
msgid "mins"
|
201 |
msgstr ""
|
202 |
|
203 |
#: includes/admin/class-sp-admin-assets.php:119
|
204 |
-
#: includes/class-sp-frontend-scripts.php:85 templates/countdown.php:
|
205 |
msgid "secs"
|
206 |
msgstr ""
|
207 |
|
@@ -212,7 +215,7 @@ msgid "Displaying %s–%s of %s"
|
|
212 |
msgstr ""
|
213 |
|
214 |
#: includes/admin/class-sp-admin-dashboard.php:34
|
215 |
-
#: includes/admin/class-sp-admin-menus.php:
|
216 |
#: includes/admin/class-sp-admin-permalink-settings.php:47
|
217 |
#: includes/admin/views/html-admin-overview.php:19
|
218 |
#: includes/admin/views/html-admin-overview.php:76
|
@@ -290,18 +293,18 @@ msgstr ""
|
|
290 |
msgid "Import <strong>staff</strong> from a csv file."
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: includes/admin/class-sp-admin-menus.php:
|
294 |
#: includes/admin/views/html-admin-overview.php:3
|
295 |
msgid "Overview"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: includes/admin/class-sp-admin-menus.php:
|
299 |
#: includes/admin/views/html-admin-config.php:3
|
300 |
msgid "Configure"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: includes/admin/class-sp-admin-menus.php:
|
304 |
-
#: includes/admin/class-sp-admin-menus.php:
|
305 |
#: includes/admin/class-sp-admin-permalink-settings.php:29
|
306 |
#: includes/admin/importers/class-sp-player-importer.php:30
|
307 |
#: includes/admin/importers/class-sp-staff-importer.php:29
|
@@ -322,8 +325,8 @@ msgstr ""
|
|
322 |
msgid "Competitions"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: includes/admin/class-sp-admin-menus.php:
|
326 |
-
#: includes/admin/class-sp-admin-menus.php:
|
327 |
#: includes/admin/class-sp-admin-permalink-settings.php:30
|
328 |
#: includes/admin/importers/class-sp-player-importer.php:31
|
329 |
#: includes/admin/importers/class-sp-staff-importer.php:30
|
@@ -342,40 +345,12 @@ msgstr ""
|
|
342 |
msgid "Seasons"
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: includes/admin/class-sp-admin-menus.php:
|
346 |
#: includes/admin/class-sp-admin-welcome.php:199 sportspress.php:132
|
347 |
msgid "Settings"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: includes/admin/class-sp-admin-menus.php:
|
351 |
-
#: includes/admin/class-sp-admin-permalink-settings.php:32
|
352 |
-
#: includes/admin/class-sp-admin-sample-data.php:214
|
353 |
-
#: includes/admin/class-sp-admin-taxonomies.php:173
|
354 |
-
#: includes/admin/importers/class-sp-event-importer.php:32
|
355 |
-
#: includes/admin/post-types/class-sp-admin-cpt-list.php:52
|
356 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:69
|
357 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:133
|
358 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:181
|
359 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:105
|
360 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:58
|
361 |
-
#: includes/admin/settings/class-sp-settings-events.php:86
|
362 |
-
#: includes/admin/settings/class-sp-settings-players.php:25
|
363 |
-
#: includes/admin/settings/class-sp-settings-players.php:79
|
364 |
-
#: includes/class-sp-post-types.php:495
|
365 |
-
msgid "Players"
|
366 |
-
msgstr ""
|
367 |
-
|
368 |
-
#: includes/admin/class-sp-admin-menus.php:117
|
369 |
-
msgid "Players & Staff"
|
370 |
-
msgstr ""
|
371 |
-
|
372 |
-
#: includes/admin/class-sp-admin-menus.php:243
|
373 |
-
#: includes/admin/importers/class-sp-staff-importer.php:27
|
374 |
-
#: includes/class-sp-post-types.php:152 includes/class-sp-post-types.php:166
|
375 |
-
msgid "Jobs"
|
376 |
-
msgstr ""
|
377 |
-
|
378 |
-
#: includes/admin/class-sp-admin-menus.php:270
|
379 |
#: includes/admin/importers/class-sp-event-importer.php:488
|
380 |
#: includes/admin/importers/class-sp-event-importer.php:503
|
381 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:73
|
@@ -391,16 +366,16 @@ msgstr ""
|
|
391 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:38
|
392 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:53
|
393 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:60
|
394 |
-
#: includes/admin/views/html-admin-config.php:
|
395 |
#: includes/admin/views/html-admin-config.php:124
|
396 |
-
#: includes/admin/views/html-admin-config.php:
|
397 |
-
#: includes/admin/views/html-admin-config.php:
|
398 |
-
#: includes/admin/views/html-admin-config.php:
|
399 |
-
#: includes/admin/views/html-admin-config.php:
|
400 |
#: includes/class-sp-post-types.php:42 includes/class-sp-post-types.php:71
|
401 |
#: includes/class-sp-post-types.php:100 includes/class-sp-post-types.php:129
|
402 |
-
#: includes/class-sp-post-types.php:158 includes/sp-core-functions.php:
|
403 |
-
#: includes/sp-core-functions.php:
|
404 |
#: includes/widgets/class-sp-widget-countdown.php:71
|
405 |
#: includes/widgets/class-sp-widget-countdown.php:91
|
406 |
#: includes/widgets/class-sp-widget-event-blocks.php:83
|
@@ -415,7 +390,7 @@ msgstr ""
|
|
415 |
msgid "Add New"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: includes/admin/class-sp-admin-menus.php:
|
419 |
#: includes/admin/class-sp-admin-permalink-settings.php:33
|
420 |
#: includes/admin/importers/class-sp-player-importer.php:28
|
421 |
#: includes/admin/post-types/class-sp-admin-cpt-player.php:66
|
@@ -427,7 +402,7 @@ msgstr ""
|
|
427 |
msgid "Positions"
|
428 |
msgstr ""
|
429 |
|
430 |
-
#: includes/admin/class-sp-admin-menus.php:
|
431 |
#: includes/admin/class-sp-admin-permalink-settings.php:26
|
432 |
#: includes/admin/settings/class-sp-settings-events.php:136
|
433 |
#: includes/admin/settings/class-sp-settings-status.php:354
|
@@ -441,7 +416,7 @@ msgstr ""
|
|
441 |
#: includes/admin/class-sp-admin-taxonomies.php:142
|
442 |
#: includes/admin/class-sp-admin-taxonomies.php:156
|
443 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:53
|
444 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
445 |
#: includes/admin/settings/class-sp-settings-events.php:25
|
446 |
#: includes/class-sp-post-types.php:369
|
447 |
msgid "Events"
|
@@ -463,7 +438,7 @@ msgstr ""
|
|
463 |
#: includes/admin/post-types/class-sp-admin-cpt-staff.php:66
|
464 |
#: includes/admin/post-types/class-sp-admin-cpt-table.php:51
|
465 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:124
|
466 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
467 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:93
|
468 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:108
|
469 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:91
|
@@ -472,26 +447,45 @@ msgstr ""
|
|
472 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:150
|
473 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:57
|
474 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:58
|
|
|
|
|
475 |
#: includes/admin/settings/class-sp-settings-teams.php:25
|
476 |
#: includes/admin/settings/class-sp-settings-teams.php:105
|
477 |
#: includes/class-sp-ajax.php:291 includes/class-sp-post-types.php:434
|
478 |
-
#: includes/sp-core-functions.php:
|
479 |
msgid "Teams"
|
480 |
msgstr ""
|
481 |
|
482 |
#: includes/admin/class-sp-admin-permalink-settings.php:31
|
483 |
-
#: includes/admin/class-sp-admin-sample-data.php:
|
484 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
485 |
#: includes/admin/settings/class-sp-settings-teams.php:102
|
486 |
#: includes/class-sp-post-types.php:464
|
487 |
msgid "League Tables"
|
488 |
msgstr ""
|
489 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
#: includes/admin/class-sp-admin-permalink-settings.php:34
|
491 |
-
#: includes/admin/class-sp-admin-sample-data.php:
|
492 |
-
#: includes/admin/class-sp-admin-sample-data.php:
|
493 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
494 |
-
#: includes/admin/settings/class-sp-settings-players.php:
|
495 |
#: includes/class-sp-post-types.php:525
|
496 |
msgid "Player Lists"
|
497 |
msgstr ""
|
@@ -499,11 +493,11 @@ msgstr ""
|
|
499 |
#: includes/admin/class-sp-admin-permalink-settings.php:35
|
500 |
#: includes/admin/class-sp-admin-sample-data.php:307
|
501 |
#: includes/admin/class-sp-admin-taxonomies.php:185
|
502 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:
|
503 |
#: includes/admin/settings/class-sp-settings-events.php:94
|
504 |
#: includes/admin/settings/class-sp-settings-staff.php:25
|
505 |
#: includes/class-sp-install.php:194 includes/class-sp-post-types.php:556
|
506 |
-
#: includes/class-sp-post-types.php:557 includes/sp-core-functions.php:
|
507 |
#: includes/widgets/class-sp-widget-staff.php:6
|
508 |
#: includes/widgets/class-sp-widget-staff.php:51 templates/event-staff.php:43
|
509 |
msgid "Staff"
|
@@ -516,55 +510,55 @@ msgid ""
|
|
516 |
msgstr ""
|
517 |
|
518 |
#: includes/admin/class-sp-admin-post-types.php:77
|
519 |
-
#: includes/sp-template-hooks.php:
|
520 |
msgid "Settings saved."
|
521 |
msgstr ""
|
522 |
|
523 |
#: includes/admin/class-sp-admin-post-types.php:79
|
524 |
#: includes/admin/views/html-admin-config.php:50
|
525 |
-
#: includes/admin/views/html-admin-config.php:
|
526 |
-
#: includes/admin/views/html-admin-config.php:
|
527 |
-
#: includes/admin/views/html-admin-config.php:
|
528 |
-
#: includes/admin/views/html-admin-config.php:
|
529 |
-
#: includes/admin/views/html-admin-config.php:
|
530 |
#: includes/admin/views/html-admin-overview.php:225
|
531 |
-
#: includes/sp-template-hooks.php:
|
532 |
msgid "View All"
|
533 |
msgstr ""
|
534 |
|
535 |
#: includes/admin/class-sp-admin-post-types.php:84
|
536 |
#: includes/admin/class-sp-admin-post-types.php:87
|
537 |
#: includes/admin/class-sp-admin-post-types.php:92
|
538 |
-
#: includes/sp-template-hooks.php:
|
539 |
-
#: includes/sp-template-hooks.php:
|
540 |
msgid "Changes saved."
|
541 |
msgstr ""
|
542 |
|
543 |
#: includes/admin/class-sp-admin-post-types.php:89
|
544 |
#: includes/admin/class-sp-admin-post-types.php:94
|
545 |
#: includes/admin/class-sp-admin-post-types.php:104
|
546 |
-
#: includes/sp-template-hooks.php:
|
547 |
-
#: includes/sp-template-hooks.php:
|
548 |
msgid "Success!"
|
549 |
msgstr ""
|
550 |
|
551 |
#: includes/admin/class-sp-admin-post-types.php:96
|
552 |
#: includes/admin/class-sp-admin-post-types.php:102
|
553 |
#: includes/admin/class-sp-admin-post-types.php:106
|
554 |
-
#: includes/sp-template-hooks.php:
|
555 |
-
#: includes/sp-template-hooks.php:
|
556 |
#, php-format
|
557 |
msgid "Preview %s"
|
558 |
msgstr ""
|
559 |
|
560 |
#: includes/admin/class-sp-admin-post-types.php:99
|
561 |
-
#: includes/sp-template-hooks.php:
|
562 |
#, php-format
|
563 |
msgid "Scheduled for: <b>%1$s</b>."
|
564 |
msgstr ""
|
565 |
|
566 |
#: includes/admin/class-sp-admin-post-types.php:100
|
567 |
-
#: includes/sp-template-hooks.php:
|
568 |
msgid "M j, Y @ G:i"
|
569 |
msgstr ""
|
570 |
|
@@ -592,18 +586,18 @@ msgstr ""
|
|
592 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:51
|
593 |
#: includes/admin/post-types/class-sp-admin-cpt-team.php:70
|
594 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:107
|
595 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php:
|
596 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:57
|
597 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:60
|
598 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:69
|
599 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:72
|
600 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:57
|
601 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:119
|
602 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
603 |
#: includes/class-sp-league-table.php:352
|
604 |
-
#: includes/class-sp-player-list.php:
|
605 |
-
#: includes/class-sp-player.php:
|
606 |
-
#: includes/class-sp-post-types.php:435 includes/sp-core-functions.php:
|
607 |
#: includes/widgets/class-sp-widget-countdown.php:59
|
608 |
#: templates/event-results.php:102
|
609 |
msgid "Team"
|
@@ -614,12 +608,12 @@ msgctxt "example"
|
|
614 |
msgid "Fixtures & Results"
|
615 |
msgstr ""
|
616 |
|
617 |
-
#: includes/admin/class-sp-admin-sample-data.php:
|
618 |
msgctxt "example"
|
619 |
msgid "Roster"
|
620 |
msgstr ""
|
621 |
|
622 |
-
#: includes/admin/class-sp-admin-sample-data.php:
|
623 |
msgctxt "example"
|
624 |
msgid "Player Ranking"
|
625 |
msgstr ""
|
@@ -902,40 +896,42 @@ msgstr ""
|
|
902 |
|
903 |
#: includes/admin/importers/class-sp-event-importer.php:26
|
904 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:92
|
905 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
906 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:45
|
907 |
-
#: includes/sp-core-functions.php:
|
908 |
-
#: templates/event-list.php:
|
909 |
msgid "Date"
|
910 |
msgstr ""
|
911 |
|
912 |
#: includes/admin/importers/class-sp-event-importer.php:27
|
913 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:93
|
914 |
-
#: includes/
|
915 |
-
#: includes/
|
916 |
-
#: templates/event-details.php:20
|
|
|
917 |
msgid "Time"
|
918 |
msgstr ""
|
919 |
|
920 |
#: includes/admin/importers/class-sp-event-importer.php:28
|
921 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:51
|
922 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:97
|
923 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
924 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:92
|
925 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:87
|
926 |
#: includes/admin/settings/class-sp-settings-events.php:78
|
927 |
#: includes/admin/settings/class-sp-settings-teams.php:77
|
928 |
#: includes/class-sp-ajax.php:293 includes/class-sp-post-types.php:95
|
929 |
-
#: includes/sp-core-functions.php:
|
930 |
#: includes/widgets/class-sp-widget-event-list.php:140
|
931 |
-
#: templates/event-list.php:
|
932 |
msgid "Venue"
|
933 |
msgstr ""
|
934 |
|
935 |
#: includes/admin/importers/class-sp-event-importer.php:31
|
936 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-
|
|
|
937 |
#: includes/class-sp-event.php:46 includes/class-sp-post-types.php:222
|
938 |
-
#: includes/sp-core-functions.php:
|
939 |
msgid "Outcome"
|
940 |
msgstr ""
|
941 |
|
@@ -979,19 +975,29 @@ msgstr ""
|
|
979 |
msgid "Format"
|
980 |
msgstr ""
|
981 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
982 |
#: includes/admin/importers/class-sp-event-importer.php:478
|
983 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:49
|
984 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:95
|
985 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:49
|
986 |
#: includes/admin/post-types/class-sp-admin-cpt-table.php:49
|
987 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
988 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:62
|
989 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:30
|
990 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:27
|
991 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:61
|
992 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:61
|
993 |
-
#: includes/class-sp-post-types.php:37 includes/sp-core-functions.php:
|
994 |
-
#: templates/event-list.php:
|
995 |
#, fuzzy
|
996 |
msgid "Competition"
|
997 |
msgstr ""
|
@@ -1016,7 +1022,7 @@ msgstr ""
|
|
1016 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:96
|
1017 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:50
|
1018 |
#: includes/admin/post-types/class-sp-admin-cpt-table.php:50
|
1019 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
1020 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:77
|
1021 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:45
|
1022 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:63
|
@@ -1024,8 +1030,8 @@ msgstr ""
|
|
1024 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:60
|
1025 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:64
|
1026 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:64
|
1027 |
-
#: includes/class-sp-player.php:
|
1028 |
-
#: includes/sp-core-functions.php:
|
1029 |
#: templates/team-details.php:33
|
1030 |
msgid "Season"
|
1031 |
msgstr ""
|
@@ -1098,9 +1104,9 @@ msgstr ""
|
|
1098 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:60
|
1099 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:72
|
1100 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:73
|
1101 |
-
#: includes/admin/settings/class-sp-settings-players.php:
|
1102 |
#: includes/admin/settings/class-sp-settings-staff.php:69
|
1103 |
-
#: includes/sp-core-functions.php:
|
1104 |
#: templates/staff-details.php:33
|
1105 |
msgid "Nationality"
|
1106 |
msgstr ""
|
@@ -1128,6 +1134,11 @@ msgstr ""
|
|
1128 |
msgid "Import Staff"
|
1129 |
msgstr ""
|
1130 |
|
|
|
|
|
|
|
|
|
|
|
1131 |
#: includes/admin/importers/class-sp-staff-importer.php:133
|
1132 |
#, php-format
|
1133 |
msgid ""
|
@@ -1161,7 +1172,7 @@ msgstr ""
|
|
1161 |
#: includes/admin/importers/class-sp-team-importer.php:30
|
1162 |
#: includes/admin/post-types/class-sp-admin-cpt-outcome.php:45
|
1163 |
#: includes/admin/post-types/class-sp-admin-cpt-team.php:66
|
1164 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:
|
1165 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:101
|
1166 |
#: includes/admin/settings/class-sp-settings-teams.php:85
|
1167 |
#: includes/admin/views/html-admin-config.php:28
|
@@ -1171,7 +1182,8 @@ msgstr ""
|
|
1171 |
#: includes/admin/importers/class-sp-team-importer.php:31
|
1172 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:57
|
1173 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:80
|
1174 |
-
#:
|
|
|
1175 |
#: templates/team-details.php:45
|
1176 |
msgid "Home"
|
1177 |
msgstr ""
|
@@ -1197,14 +1209,15 @@ msgstr ""
|
|
1197 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:48
|
1198 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:48
|
1199 |
#: includes/admin/post-types/class-sp-admin-cpt-table.php:48
|
1200 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
|
|
1201 |
msgid "Title"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:54
|
1205 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:53
|
1206 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1207 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1208 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:67
|
1209 |
msgid "Layout"
|
1210 |
msgstr ""
|
@@ -1232,7 +1245,7 @@ msgstr ""
|
|
1232 |
#: includes/class-sp-ajax.php:355 includes/class-sp-post-types.php:38
|
1233 |
#: includes/class-sp-post-types.php:67 includes/class-sp-post-types.php:96
|
1234 |
#: includes/class-sp-post-types.php:125 includes/class-sp-post-types.php:154
|
1235 |
-
#: includes/sp-core-functions.php:
|
1236 |
#: includes/widgets/class-sp-widget-countdown.php:66
|
1237 |
#: includes/widgets/class-sp-widget-event-blocks.php:75
|
1238 |
#: includes/widgets/class-sp-widget-event-calendar.php:69
|
@@ -1243,23 +1256,33 @@ msgstr ""
|
|
1243 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:87
|
1244 |
#: includes/admin/post-types/class-sp-admin-cpt-player.php:101
|
1245 |
#: includes/admin/post-types/class-sp-admin-cpt-staff.php:97
|
1246 |
-
#: includes/sp-core-functions.php:
|
1247 |
#: templates/staff-details.php:37
|
1248 |
msgid "Current Team"
|
1249 |
msgstr ""
|
1250 |
|
1251 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:115
|
1252 |
-
#: includes/admin/post-types/class-sp-admin-cpt-event.php:
|
1253 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:104
|
1254 |
#: includes/admin/post-types/class-sp-admin-cpt-player.php:150
|
1255 |
#: includes/admin/post-types/class-sp-admin-cpt-staff.php:134
|
1256 |
#: includes/admin/post-types/class-sp-admin-cpt-table.php:86
|
1257 |
#: includes/admin/post-types/class-sp-admin-cpt-team.php:111
|
1258 |
-
|
|
|
1259 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1260 |
|
1261 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:124
|
1262 |
-
#: includes/admin/post-types/class-sp-admin-cpt-event.php:
|
1263 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:113
|
1264 |
#: includes/admin/post-types/class-sp-admin-cpt-player.php:159
|
1265 |
#: includes/admin/post-types/class-sp-admin-cpt-staff.php:143
|
@@ -1269,7 +1292,7 @@ msgid "Show all seasons"
|
|
1269 |
msgstr ""
|
1270 |
|
1271 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:135
|
1272 |
-
#: includes/admin/post-types/class-sp-admin-cpt-event.php:
|
1273 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:124
|
1274 |
#: includes/admin/post-types/class-sp-admin-cpt-player.php:142
|
1275 |
#: includes/admin/post-types/class-sp-admin-cpt-staff.php:126
|
@@ -1285,10 +1308,10 @@ msgstr ""
|
|
1285 |
#: includes/admin/post-types/class-sp-admin-cpt-statistic.php:43
|
1286 |
#: includes/admin/views/html-admin-config.php:26
|
1287 |
#: includes/admin/views/html-admin-config.php:85
|
1288 |
-
#: includes/admin/views/html-admin-config.php:
|
1289 |
-
#: includes/admin/views/html-admin-config.php:
|
1290 |
-
#: includes/admin/views/html-admin-config.php:
|
1291 |
-
#: includes/admin/views/html-admin-config.php:
|
1292 |
msgid "Label"
|
1293 |
msgstr ""
|
1294 |
|
@@ -1296,9 +1319,9 @@ msgstr ""
|
|
1296 |
#: includes/admin/post-types/class-sp-admin-cpt-statistic.php:44
|
1297 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:34
|
1298 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-statistic-details.php:31
|
1299 |
-
#: includes/admin/views/html-admin-config.php:
|
1300 |
-
#: includes/admin/views/html-admin-config.php:
|
1301 |
-
#: includes/sp-template-hooks.php:
|
1302 |
msgid "Key"
|
1303 |
msgstr ""
|
1304 |
|
@@ -1306,8 +1329,8 @@ msgstr ""
|
|
1306 |
#: includes/admin/post-types/class-sp-admin-cpt-statistic.php:45
|
1307 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:108
|
1308 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:118
|
1309 |
-
#: includes/admin/views/html-admin-config.php:
|
1310 |
-
#: includes/admin/views/html-admin-config.php:
|
1311 |
msgid "Equation"
|
1312 |
msgstr ""
|
1313 |
|
@@ -1315,8 +1338,8 @@ msgstr ""
|
|
1315 |
#: includes/admin/post-types/class-sp-admin-cpt-statistic.php:46
|
1316 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:39
|
1317 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-statistic-details.php:36
|
1318 |
-
#: includes/admin/views/html-admin-config.php:
|
1319 |
-
#: includes/admin/views/html-admin-config.php:
|
1320 |
msgid "Rounding"
|
1321 |
msgstr ""
|
1322 |
|
@@ -1324,7 +1347,7 @@ msgstr ""
|
|
1324 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:122
|
1325 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:43
|
1326 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:98
|
1327 |
-
#: includes/admin/views/html-admin-config.php:
|
1328 |
msgid "Sort Order"
|
1329 |
msgstr ""
|
1330 |
|
@@ -1334,44 +1357,69 @@ msgstr ""
|
|
1334 |
#: includes/admin/post-types/class-sp-admin-cpt-performance.php:46
|
1335 |
#: includes/admin/post-types/class-sp-admin-cpt-result.php:45
|
1336 |
#: includes/admin/post-types/class-sp-admin-cpt-statistic.php:47
|
1337 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1338 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1339 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1340 |
-
#: includes/admin/views/html-admin-config.php:
|
1341 |
#: includes/admin/views/html-admin-config.php:87
|
1342 |
-
#: includes/admin/views/html-admin-config.php:
|
1343 |
-
#: includes/admin/views/html-admin-config.php:
|
1344 |
-
#: includes/admin/views/html-admin-config.php:
|
1345 |
-
#: includes/admin/views/html-admin-config.php:
|
1346 |
-
#: includes/sp-template-hooks.php:
|
1347 |
msgid "Description"
|
1348 |
msgstr ""
|
1349 |
|
1350 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:55
|
1351 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:49
|
|
|
1352 |
#: includes/class-sp-ajax.php:63
|
1353 |
#: includes/widgets/class-sp-widget-countdown.php:83
|
1354 |
msgid "(Auto)"
|
1355 |
msgstr ""
|
1356 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1357 |
#: includes/admin/post-types/class-sp-admin-cpt-metric.php:44
|
1358 |
#: includes/admin/post-types/class-sp-admin-cpt-outcome.php:44
|
1359 |
#: includes/admin/post-types/class-sp-admin-cpt-performance.php:45
|
1360 |
#: includes/admin/post-types/class-sp-admin-cpt-result.php:44
|
1361 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-metric-details.php:27
|
1362 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:
|
1363 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-performance-details.php:27
|
1364 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-result-details.php:27
|
1365 |
#: includes/admin/views/html-admin-config.php:27
|
1366 |
-
#: includes/admin/views/html-admin-config.php:
|
1367 |
-
#: includes/admin/views/html-admin-config.php:
|
1368 |
-
#: includes/sp-template-hooks.php:
|
1369 |
msgid "Variable"
|
1370 |
msgstr ""
|
1371 |
|
1372 |
#: includes/admin/post-types/class-sp-admin-cpt-performance.php:43
|
1373 |
-
#: includes/admin/views/html-admin-config.php:
|
1374 |
-
#: includes/sp-template-hooks.php:
|
1375 |
msgid "Icon"
|
1376 |
msgstr ""
|
1377 |
|
@@ -1388,7 +1436,7 @@ msgstr ""
|
|
1388 |
|
1389 |
#: includes/admin/post-types/class-sp-admin-cpt-team.php:63
|
1390 |
#: includes/admin/settings/class-sp-settings-teams.php:53
|
1391 |
-
#: includes/sp-template-hooks.php:
|
1392 |
msgid "Logo"
|
1393 |
msgstr ""
|
1394 |
|
@@ -1408,12 +1456,12 @@ msgid "Uploaded to this %s"
|
|
1408 |
msgstr ""
|
1409 |
|
1410 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:121
|
1411 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1412 |
msgid "Shortcodes"
|
1413 |
msgstr ""
|
1414 |
|
1415 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:125
|
1416 |
-
#: includes/sp-core-functions.php:
|
1417 |
msgid "Video"
|
1418 |
msgstr ""
|
1419 |
|
@@ -1423,33 +1471,33 @@ msgstr ""
|
|
1423 |
#: includes/admin/views/html-admin-config.php:74
|
1424 |
#: includes/admin/views/html-admin-config.php:78
|
1425 |
#: includes/admin/views/html-admin-page-status.php:237
|
1426 |
-
#: includes/class-sp-post-types.php:191 includes/sp-core-functions.php:
|
1427 |
#: templates/event-results.php:98
|
1428 |
msgid "Team Results"
|
1429 |
msgstr ""
|
1430 |
|
1431 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1432 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php:35
|
1433 |
#: includes/admin/settings/class-sp-settings-events.php:125
|
1434 |
#: includes/admin/settings/class-sp-settings-status.php:283
|
1435 |
-
#: includes/admin/views/html-admin-config.php:
|
1436 |
#: includes/admin/views/html-admin-page-status.php:247
|
1437 |
#: includes/class-sp-post-types.php:311 includes/class-sp-post-types.php:312
|
1438 |
msgid "Player Performance"
|
1439 |
msgstr ""
|
1440 |
|
1441 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1442 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
1443 |
-
#: includes/class-sp-ajax.php:294 includes/sp-core-functions.php:
|
1444 |
#: includes/widgets/class-sp-widget-event-list.php:141
|
1445 |
-
#: templates/event-list.php:
|
1446 |
msgid "Article"
|
1447 |
msgstr ""
|
1448 |
|
1449 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1450 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1451 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1452 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1453 |
#: includes/class-sp-ajax.php:84 includes/class-sp-ajax.php:113
|
1454 |
#: includes/class-sp-ajax.php:142 includes/class-sp-ajax.php:171
|
1455 |
#: includes/class-sp-ajax.php:219 includes/class-sp-ajax.php:310
|
@@ -1459,65 +1507,68 @@ msgstr ""
|
|
1459 |
msgid "Shortcode"
|
1460 |
msgstr ""
|
1461 |
|
1462 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1463 |
msgid "Feeds"
|
1464 |
msgstr ""
|
1465 |
|
1466 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1467 |
#: includes/admin/settings/class-sp-settings-status.php:293
|
1468 |
-
#: includes/admin/views/html-admin-config.php:
|
1469 |
#: includes/admin/views/html-admin-page-status.php:257
|
1470 |
#: includes/class-sp-post-types.php:251
|
1471 |
msgid "Table Columns"
|
1472 |
msgstr ""
|
1473 |
|
1474 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1475 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1476 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1477 |
msgid "Profile"
|
1478 |
msgstr ""
|
1479 |
|
1480 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1481 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1482 |
msgid "Columns"
|
1483 |
msgstr ""
|
1484 |
|
1485 |
-
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:
|
1486 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-columns.php:26
|
1487 |
msgid "Metrics"
|
1488 |
msgstr ""
|
1489 |
|
1490 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:57
|
1491 |
-
#:
|
|
|
1492 |
msgid "Away"
|
1493 |
msgstr ""
|
1494 |
|
1495 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
1496 |
-
#: includes/sp-core-functions.php:
|
|
|
|
|
1497 |
msgid "Time/Results"
|
1498 |
msgstr ""
|
1499 |
|
1500 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
1501 |
-
#: includes/sp-core-functions.php:
|
1502 |
msgid "Recap"
|
1503 |
msgstr ""
|
1504 |
|
1505 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
1506 |
-
#: includes/sp-core-functions.php:
|
1507 |
msgid "Preview"
|
1508 |
msgstr ""
|
1509 |
|
1510 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
1511 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:32
|
1512 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:101
|
1513 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:32
|
1514 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:97
|
1515 |
-
#: includes/admin/views/html-admin-config.php:
|
1516 |
#: includes/admin/views/html-admin-config.php:117
|
1517 |
-
#: includes/admin/views/html-admin-config.php:
|
1518 |
-
#: includes/admin/views/html-admin-config.php:
|
1519 |
-
#: includes/admin/views/html-admin-config.php:
|
1520 |
-
#: includes/admin/views/html-admin-config.php:
|
1521 |
#: includes/admin/views/html-admin-overview.php:282
|
1522 |
#: includes/class-sp-post-types.php:47 includes/class-sp-post-types.php:76
|
1523 |
#: includes/class-sp-post-types.php:105 includes/class-sp-post-types.php:134
|
@@ -1534,12 +1585,12 @@ msgstr ""
|
|
1534 |
#: includes/class-sp-post-types.php:472 includes/class-sp-post-types.php:502
|
1535 |
#: includes/class-sp-post-types.php:503 includes/class-sp-post-types.php:532
|
1536 |
#: includes/class-sp-post-types.php:533 includes/class-sp-post-types.php:563
|
1537 |
-
#: includes/class-sp-post-types.php:564 includes/sp-core-functions.php:
|
1538 |
-
#: includes/sp-core-functions.php:
|
1539 |
msgid "No results found."
|
1540 |
msgstr ""
|
1541 |
|
1542 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:
|
1543 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:133
|
1544 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:181
|
1545 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:60
|
@@ -1566,7 +1617,7 @@ msgid "Select %s"
|
|
1566 |
msgstr ""
|
1567 |
|
1568 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:33
|
1569 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:
|
1570 |
msgid "Status"
|
1571 |
msgstr ""
|
1572 |
|
@@ -1594,7 +1645,7 @@ msgstr ""
|
|
1594 |
msgid "Descending"
|
1595 |
msgstr ""
|
1596 |
|
1597 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-feeds.php:
|
1598 |
#: includes/admin/settings/class-sp-settings-events.php:45
|
1599 |
#: includes/admin/settings/class-sp-settings-general.php:301
|
1600 |
#: includes/admin/settings/class-sp-settings-players.php:42
|
@@ -1620,7 +1671,7 @@ msgstr ""
|
|
1620 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php:34
|
1621 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php:37
|
1622 |
#: includes/class-sp-ajax.php:570 includes/class-sp-ajax.php:641
|
1623 |
-
#: includes/sp-core-functions.php:
|
1624 |
#: includes/widgets/class-sp-widget-player-gallery.php:98
|
1625 |
#: includes/widgets/class-sp-widget-player-list.php:112
|
1626 |
msgid "Played"
|
@@ -1672,54 +1723,46 @@ msgstr ""
|
|
1672 |
msgid "Full Time"
|
1673 |
msgstr ""
|
1674 |
|
1675 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:
|
1676 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:
|
1677 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:79
|
1678 |
#: includes/class-sp-event.php:101 includes/class-sp-post-types.php:124
|
1679 |
-
#: includes/sp-core-functions.php:
|
1680 |
msgid "Position"
|
1681 |
msgstr ""
|
1682 |
|
1683 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:
|
1684 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:39
|
1685 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:91
|
1686 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:38
|
1687 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:76
|
1688 |
#: includes/admin/settings/class-sp-settings-events.php:102
|
1689 |
#: includes/class-sp-player.php:87 includes/class-sp-team.php:65
|
1690 |
-
#: includes/sp-core-functions.php:
|
1691 |
-
#: includes/sp-core-functions.php:
|
1692 |
msgid "Total"
|
1693 |
msgstr ""
|
1694 |
|
1695 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:
|
1696 |
msgid "Starting Lineup"
|
1697 |
msgstr ""
|
1698 |
|
1699 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:
|
1700 |
msgid "Substitute"
|
1701 |
msgstr ""
|
1702 |
|
1703 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:62
|
1704 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:105
|
1705 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:
|
1706 |
msgid "— None —"
|
1707 |
msgstr ""
|
1708 |
|
1709 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-
|
1710 |
-
|
|
|
1711 |
msgstr ""
|
1712 |
|
1713 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-video.php:
|
1714 |
-
|
1715 |
-
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:88
|
1716 |
-
#: includes/class-sp-ajax.php:85 includes/class-sp-ajax.php:114
|
1717 |
-
#: includes/class-sp-ajax.php:143 includes/class-sp-ajax.php:172
|
1718 |
-
#: includes/class-sp-ajax.php:220 includes/class-sp-ajax.php:311
|
1719 |
-
#: includes/class-sp-ajax.php:385 includes/class-sp-ajax.php:451
|
1720 |
-
#: includes/class-sp-ajax.php:480 includes/class-sp-ajax.php:509
|
1721 |
-
#: includes/class-sp-ajax.php:599 includes/class-sp-ajax.php:676
|
1722 |
-
msgid "Cancel"
|
1723 |
msgstr ""
|
1724 |
|
1725 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-video.php:36
|
@@ -1738,18 +1781,18 @@ msgid "Adjustments"
|
|
1738 |
msgstr ""
|
1739 |
|
1740 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:52
|
1741 |
-
#: includes/sp-core-functions.php:
|
1742 |
msgid "Rank"
|
1743 |
msgstr ""
|
1744 |
|
1745 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:95
|
1746 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:84
|
1747 |
-
#: includes/admin/views/html-admin-config.php:
|
1748 |
#: includes/admin/views/html-admin-config.php:113
|
1749 |
-
#: includes/admin/views/html-admin-config.php:
|
1750 |
-
#: includes/admin/views/html-admin-config.php:
|
1751 |
-
#: includes/admin/views/html-admin-config.php:
|
1752 |
-
#: includes/admin/views/html-admin-config.php:
|
1753 |
msgid "Edit"
|
1754 |
msgstr ""
|
1755 |
|
@@ -1766,19 +1809,69 @@ msgstr ""
|
|
1766 |
msgid "Sort by"
|
1767 |
msgstr ""
|
1768 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1769 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:86
|
1770 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:84
|
1771 |
-
#: includes/sp-core-functions.php:
|
1772 |
msgid "Current Teams"
|
1773 |
msgstr ""
|
1774 |
|
1775 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:101
|
1776 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:99
|
1777 |
-
#: includes/sp-core-functions.php:
|
1778 |
#: templates/staff-details.php:44
|
1779 |
msgid "Past Teams"
|
1780 |
msgstr ""
|
1781 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1782 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:56
|
1783 |
msgid "Highlight"
|
1784 |
msgstr ""
|
@@ -1786,7 +1879,7 @@ msgstr ""
|
|
1786 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:98
|
1787 |
#: includes/admin/settings/class-sp-settings-teams.php:69
|
1788 |
#: includes/admin/settings/class-sp-settings-teams.php:93
|
1789 |
-
#: includes/sp-core-functions.php:
|
1790 |
msgid "Visit Site"
|
1791 |
msgstr ""
|
1792 |
|
@@ -1812,9 +1905,9 @@ msgid "Logos"
|
|
1812 |
msgstr ""
|
1813 |
|
1814 |
#: includes/admin/settings/class-sp-settings-events.php:110
|
1815 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1816 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1817 |
-
#: includes/admin/settings/class-sp-settings-players.php:
|
1818 |
#: includes/admin/settings/class-sp-settings-teams.php:121
|
1819 |
msgid "Limit"
|
1820 |
msgstr ""
|
@@ -1850,46 +1943,93 @@ msgstr ""
|
|
1850 |
msgid "Event List"
|
1851 |
msgstr ""
|
1852 |
|
1853 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1854 |
-
#: includes/admin/settings/class-sp-settings-
|
1855 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1856 |
#: includes/admin/settings/class-sp-settings-teams.php:113
|
1857 |
msgid "Pagination"
|
1858 |
msgstr ""
|
1859 |
|
1860 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1861 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1862 |
-
#: includes/admin/settings/class-sp-settings-players.php:
|
1863 |
#: includes/admin/settings/class-sp-settings-teams.php:114
|
1864 |
msgid "Paginate"
|
1865 |
msgstr ""
|
1866 |
|
1867 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1868 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1869 |
msgid "events"
|
1870 |
msgstr ""
|
1871 |
|
1872 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1873 |
#: includes/widgets/class-sp-widget-event-blocks.php:6
|
1874 |
msgid "Event Blocks"
|
1875 |
msgstr ""
|
1876 |
|
1877 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1878 |
#: includes/class-sp-ajax.php:80
|
1879 |
#: includes/widgets/class-sp-widget-countdown.php:100
|
1880 |
-
|
|
|
1881 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1882 |
|
1883 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1884 |
msgid "Display season"
|
1885 |
msgstr ""
|
1886 |
|
1887 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1888 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
1889 |
msgid "Delimiter"
|
1890 |
msgstr ""
|
1891 |
|
1892 |
-
#: includes/admin/settings/class-sp-settings-events.php:
|
1893 |
msgid "Custom:"
|
1894 |
msgstr ""
|
1895 |
|
@@ -2017,11 +2157,6 @@ msgstr ""
|
|
2017 |
msgid "Frontend Styles"
|
2018 |
msgstr ""
|
2019 |
|
2020 |
-
#: includes/admin/settings/class-sp-settings-general.php:297
|
2021 |
-
#: includes/admin/views/html-admin-config.php:84
|
2022 |
-
msgid "Primary"
|
2023 |
-
msgstr ""
|
2024 |
-
|
2025 |
#: includes/admin/settings/class-sp-settings-general.php:298
|
2026 |
msgid "Background"
|
2027 |
msgstr ""
|
@@ -2050,20 +2185,20 @@ msgstr ""
|
|
2050 |
|
2051 |
#: includes/admin/settings/class-sp-settings-players.php:51
|
2052 |
#: includes/admin/settings/class-sp-settings-staff.php:53
|
2053 |
-
#: includes/sp-template-hooks.php:
|
2054 |
msgid "Photo"
|
2055 |
msgstr ""
|
2056 |
|
2057 |
-
#: includes/admin/settings/class-sp-settings-players.php:
|
2058 |
#: includes/admin/settings/class-sp-settings-staff.php:70
|
2059 |
msgid "Display national flags"
|
2060 |
msgstr ""
|
2061 |
|
2062 |
-
#: includes/admin/settings/class-sp-settings-players.php:
|
2063 |
msgid "Display photos"
|
2064 |
msgstr ""
|
2065 |
|
2066 |
-
#: includes/admin/settings/class-sp-settings-players.php:
|
2067 |
msgid "players"
|
2068 |
msgstr ""
|
2069 |
|
@@ -2301,14 +2436,14 @@ msgid "Event Outcomes"
|
|
2301 |
msgstr ""
|
2302 |
|
2303 |
#: includes/admin/settings/class-sp-settings-status.php:305
|
2304 |
-
#: includes/admin/views/html-admin-config.php:
|
2305 |
#: includes/admin/views/html-admin-page-status.php:267
|
2306 |
#: includes/class-sp-post-types.php:281
|
2307 |
msgid "Player Metrics"
|
2308 |
msgstr ""
|
2309 |
|
2310 |
#: includes/admin/settings/class-sp-settings-status.php:315
|
2311 |
-
#: includes/admin/views/html-admin-config.php:
|
2312 |
#: includes/admin/views/html-admin-page-status.php:277
|
2313 |
#: includes/class-sp-post-types.php:341
|
2314 |
msgid "Player Statistics"
|
@@ -2380,19 +2515,13 @@ msgstr ""
|
|
2380 |
msgid "Open link in a new window/tab"
|
2381 |
msgstr ""
|
2382 |
|
2383 |
-
#: includes/admin/settings/class-sp-settings-teams.php:106
|
2384 |
-
#: includes/class-sp-ajax.php:440
|
2385 |
-
#: includes/widgets/class-sp-widget-league-table.php:105
|
2386 |
-
msgid "Display logos"
|
2387 |
-
msgstr ""
|
2388 |
-
|
2389 |
#: includes/admin/settings/class-sp-settings-text.php:41
|
2390 |
msgid "The following options affect how words are displayed on the frontend."
|
2391 |
msgstr ""
|
2392 |
|
2393 |
#: includes/admin/views/html-admin-config.php:20
|
2394 |
#: includes/admin/views/html-admin-config.php:75
|
2395 |
-
#: includes/admin/views/html-admin-config.php:
|
2396 |
msgid "Used for events."
|
2397 |
msgstr ""
|
2398 |
|
@@ -2405,12 +2534,12 @@ msgstr ""
|
|
2405 |
msgid "Default (%s)"
|
2406 |
msgstr ""
|
2407 |
|
2408 |
-
#: includes/admin/views/html-admin-config.php:
|
2409 |
msgid "Used for league tables."
|
2410 |
msgstr ""
|
2411 |
|
2412 |
-
#: includes/admin/views/html-admin-config.php:
|
2413 |
-
#: includes/admin/views/html-admin-config.php:
|
2414 |
msgid "Used for player lists."
|
2415 |
msgstr ""
|
2416 |
|
@@ -2459,11 +2588,6 @@ msgstr ""
|
|
2459 |
msgid "Select %s:"
|
2460 |
msgstr ""
|
2461 |
|
2462 |
-
#: includes/class-sp-ajax.php:74
|
2463 |
-
#: includes/widgets/class-sp-widget-countdown.php:97
|
2464 |
-
msgid "Display venue"
|
2465 |
-
msgstr ""
|
2466 |
-
|
2467 |
#: includes/class-sp-ajax.php:84 includes/class-sp-ajax.php:113
|
2468 |
#: includes/class-sp-ajax.php:142 includes/class-sp-ajax.php:171
|
2469 |
#: includes/class-sp-ajax.php:219 includes/class-sp-ajax.php:310
|
@@ -2498,12 +2622,12 @@ msgid "Date:"
|
|
2498 |
msgstr ""
|
2499 |
|
2500 |
#: includes/class-sp-ajax.php:265 includes/class-sp-ajax.php:356
|
2501 |
-
#: includes/sp-core-functions.php:
|
2502 |
msgid "This week"
|
2503 |
msgstr ""
|
2504 |
|
2505 |
#: includes/class-sp-ajax.php:266 includes/class-sp-ajax.php:357
|
2506 |
-
#: includes/sp-core-functions.php:
|
2507 |
msgid "Today"
|
2508 |
msgstr ""
|
2509 |
|
@@ -3172,231 +3296,235 @@ msgid "Poland"
|
|
3172 |
msgstr ""
|
3173 |
|
3174 |
#: includes/class-sp-countries.php:184
|
3175 |
-
msgid "
|
3176 |
msgstr ""
|
3177 |
|
3178 |
#: includes/class-sp-countries.php:185
|
3179 |
-
msgid "
|
3180 |
msgstr ""
|
3181 |
|
3182 |
#: includes/class-sp-countries.php:186
|
3183 |
-
msgid "
|
3184 |
msgstr ""
|
3185 |
|
3186 |
#: includes/class-sp-countries.php:187
|
3187 |
-
msgid "
|
3188 |
msgstr ""
|
3189 |
|
3190 |
#: includes/class-sp-countries.php:188
|
3191 |
-
msgid "
|
3192 |
msgstr ""
|
3193 |
|
3194 |
#: includes/class-sp-countries.php:189
|
3195 |
-
msgid "
|
3196 |
msgstr ""
|
3197 |
|
3198 |
#: includes/class-sp-countries.php:190
|
3199 |
-
msgid "
|
3200 |
msgstr ""
|
3201 |
|
3202 |
#: includes/class-sp-countries.php:191
|
3203 |
-
msgid "
|
3204 |
msgstr ""
|
3205 |
|
3206 |
#: includes/class-sp-countries.php:192
|
3207 |
-
msgid "
|
3208 |
msgstr ""
|
3209 |
|
3210 |
#: includes/class-sp-countries.php:193
|
3211 |
-
msgid "
|
3212 |
msgstr ""
|
3213 |
|
3214 |
#: includes/class-sp-countries.php:194
|
3215 |
-
msgid "
|
3216 |
msgstr ""
|
3217 |
|
3218 |
#: includes/class-sp-countries.php:195
|
3219 |
-
msgid "
|
3220 |
msgstr ""
|
3221 |
|
3222 |
#: includes/class-sp-countries.php:196
|
3223 |
-
msgid "
|
3224 |
msgstr ""
|
3225 |
|
3226 |
#: includes/class-sp-countries.php:197
|
3227 |
-
msgid "
|
3228 |
msgstr ""
|
3229 |
|
3230 |
#: includes/class-sp-countries.php:198
|
3231 |
-
msgid "
|
3232 |
msgstr ""
|
3233 |
|
3234 |
#: includes/class-sp-countries.php:199
|
3235 |
-
msgid "
|
3236 |
msgstr ""
|
3237 |
|
3238 |
#: includes/class-sp-countries.php:200
|
3239 |
-
msgid "
|
3240 |
msgstr ""
|
3241 |
|
3242 |
#: includes/class-sp-countries.php:201
|
3243 |
-
msgid "
|
3244 |
msgstr ""
|
3245 |
|
3246 |
#: includes/class-sp-countries.php:202
|
3247 |
-
msgid "
|
3248 |
msgstr ""
|
3249 |
|
3250 |
#: includes/class-sp-countries.php:203
|
3251 |
-
msgid "
|
3252 |
msgstr ""
|
3253 |
|
3254 |
#: includes/class-sp-countries.php:204
|
3255 |
-
msgid "
|
3256 |
msgstr ""
|
3257 |
|
3258 |
#: includes/class-sp-countries.php:205
|
3259 |
-
msgid "
|
3260 |
msgstr ""
|
3261 |
|
3262 |
#: includes/class-sp-countries.php:206
|
3263 |
-
msgid "
|
3264 |
msgstr ""
|
3265 |
|
3266 |
#: includes/class-sp-countries.php:207
|
3267 |
-
msgid "
|
3268 |
msgstr ""
|
3269 |
|
3270 |
#: includes/class-sp-countries.php:208
|
3271 |
-
msgid "
|
3272 |
msgstr ""
|
3273 |
|
3274 |
#: includes/class-sp-countries.php:209
|
3275 |
-
msgid "
|
3276 |
msgstr ""
|
3277 |
|
3278 |
#: includes/class-sp-countries.php:210
|
3279 |
-
msgid "
|
3280 |
msgstr ""
|
3281 |
|
3282 |
#: includes/class-sp-countries.php:211
|
3283 |
-
msgid "
|
3284 |
msgstr ""
|
3285 |
|
3286 |
#: includes/class-sp-countries.php:212
|
3287 |
-
msgid "
|
3288 |
msgstr ""
|
3289 |
|
3290 |
#: includes/class-sp-countries.php:213
|
3291 |
-
msgid "
|
3292 |
msgstr ""
|
3293 |
|
3294 |
#: includes/class-sp-countries.php:214
|
3295 |
-
msgid "
|
3296 |
msgstr ""
|
3297 |
|
3298 |
#: includes/class-sp-countries.php:215
|
3299 |
-
msgid "
|
3300 |
msgstr ""
|
3301 |
|
3302 |
#: includes/class-sp-countries.php:216
|
3303 |
-
msgid "
|
3304 |
msgstr ""
|
3305 |
|
3306 |
#: includes/class-sp-countries.php:217
|
3307 |
-
msgid "
|
3308 |
msgstr ""
|
3309 |
|
3310 |
#: includes/class-sp-countries.php:218
|
3311 |
-
msgid "
|
3312 |
msgstr ""
|
3313 |
|
3314 |
#: includes/class-sp-countries.php:219
|
3315 |
-
msgid "
|
3316 |
msgstr ""
|
3317 |
|
3318 |
#: includes/class-sp-countries.php:220
|
3319 |
-
msgid "
|
3320 |
msgstr ""
|
3321 |
|
3322 |
#: includes/class-sp-countries.php:221
|
3323 |
-
msgid "
|
3324 |
msgstr ""
|
3325 |
|
3326 |
#: includes/class-sp-countries.php:222
|
3327 |
-
msgid "
|
3328 |
msgstr ""
|
3329 |
|
3330 |
#: includes/class-sp-countries.php:223
|
3331 |
-
msgid "
|
3332 |
msgstr ""
|
3333 |
|
3334 |
#: includes/class-sp-countries.php:224
|
3335 |
-
msgid "
|
3336 |
msgstr ""
|
3337 |
|
3338 |
#: includes/class-sp-countries.php:225
|
3339 |
-
msgid "
|
3340 |
msgstr ""
|
3341 |
|
3342 |
#: includes/class-sp-countries.php:226
|
3343 |
-
msgid "
|
3344 |
msgstr ""
|
3345 |
|
3346 |
#: includes/class-sp-countries.php:227
|
3347 |
-
msgid "
|
3348 |
msgstr ""
|
3349 |
|
3350 |
#: includes/class-sp-countries.php:228
|
3351 |
-
msgid "
|
3352 |
msgstr ""
|
3353 |
|
3354 |
#: includes/class-sp-countries.php:229
|
3355 |
-
msgid "
|
3356 |
msgstr ""
|
3357 |
|
3358 |
#: includes/class-sp-countries.php:230
|
3359 |
-
msgid "
|
3360 |
msgstr ""
|
3361 |
|
3362 |
#: includes/class-sp-countries.php:231
|
3363 |
-
msgid "
|
3364 |
msgstr ""
|
3365 |
|
3366 |
#: includes/class-sp-countries.php:232
|
3367 |
-
msgid "
|
3368 |
msgstr ""
|
3369 |
|
3370 |
#: includes/class-sp-countries.php:233
|
3371 |
-
msgid "
|
3372 |
msgstr ""
|
3373 |
|
3374 |
#: includes/class-sp-countries.php:234
|
3375 |
-
msgid "
|
3376 |
msgstr ""
|
3377 |
|
3378 |
#: includes/class-sp-countries.php:235
|
3379 |
-
msgid "
|
3380 |
msgstr ""
|
3381 |
|
3382 |
#: includes/class-sp-countries.php:236
|
3383 |
-
msgid "
|
3384 |
msgstr ""
|
3385 |
|
3386 |
#: includes/class-sp-countries.php:237
|
|
|
|
|
|
|
|
|
3387 |
msgid "Zimbabwe"
|
3388 |
msgstr ""
|
3389 |
|
3390 |
-
#: includes/class-sp-feeds.php:
|
3391 |
-
msgid "
|
3392 |
msgstr ""
|
3393 |
|
3394 |
-
#: includes/class-sp-
|
3395 |
-
msgid "
|
3396 |
msgstr ""
|
3397 |
|
3398 |
-
#: includes/class-sp-
|
3399 |
-
msgid "
|
3400 |
msgstr ""
|
3401 |
|
3402 |
#: includes/class-sp-frontend-scripts.php:85
|
@@ -3423,7 +3551,7 @@ msgstr ""
|
|
3423 |
msgid "What's new:"
|
3424 |
msgstr ""
|
3425 |
|
3426 |
-
#: includes/class-sp-league-table.php:352 includes/sp-core-functions.php:
|
3427 |
#: templates/league-table.php:53
|
3428 |
msgid "Pos"
|
3429 |
msgstr ""
|
@@ -3441,12 +3569,6 @@ msgstr ""
|
|
3441 |
msgid "View"
|
3442 |
msgstr ""
|
3443 |
|
3444 |
-
#: includes/class-sp-post-types.php:41 includes/class-sp-post-types.php:70
|
3445 |
-
#: includes/class-sp-post-types.php:99 includes/class-sp-post-types.php:128
|
3446 |
-
#: includes/class-sp-post-types.php:157
|
3447 |
-
msgid "Update"
|
3448 |
-
msgstr ""
|
3449 |
-
|
3450 |
#: includes/class-sp-post-types.php:44 includes/class-sp-post-types.php:73
|
3451 |
#: includes/class-sp-post-types.php:102 includes/class-sp-post-types.php:131
|
3452 |
#: includes/class-sp-post-types.php:160
|
@@ -3629,107 +3751,107 @@ msgstr ""
|
|
3629 |
msgid "Edit Staff"
|
3630 |
msgstr ""
|
3631 |
|
3632 |
-
#: includes/sp-core-functions.php:
|
3633 |
msgid "Average"
|
3634 |
msgstr ""
|
3635 |
|
3636 |
-
#: includes/sp-core-functions.php:
|
3637 |
msgid "Published"
|
3638 |
msgstr ""
|
3639 |
|
3640 |
-
#: includes/sp-core-functions.php:
|
3641 |
msgid "Scheduled"
|
3642 |
msgstr ""
|
3643 |
|
3644 |
-
#: includes/sp-core-functions.php:
|
3645 |
msgid "Date range:"
|
3646 |
msgstr ""
|
3647 |
|
3648 |
-
#: includes/sp-core-functions.php:
|
3649 |
msgid "(no title)"
|
3650 |
msgstr ""
|
3651 |
|
3652 |
-
#: includes/sp-core-functions.php:
|
3653 |
msgid "Select All"
|
3654 |
msgstr ""
|
3655 |
|
3656 |
-
#: includes/sp-core-functions.php:
|
3657 |
msgid "Show all"
|
3658 |
msgstr ""
|
3659 |
|
3660 |
-
#: includes/sp-core-functions.php:
|
3661 |
msgid "Substitutes"
|
3662 |
msgstr ""
|
3663 |
|
3664 |
-
#: includes/sp-core-functions.php:
|
3665 |
-
#: templates/event-calendar.php:220 templates/event-list.php:
|
3666 |
msgid "View all events"
|
3667 |
msgstr ""
|
3668 |
|
3669 |
-
#: includes/sp-core-functions.php:
|
3670 |
#: templates/player-list.php:172
|
3671 |
msgid "View all players"
|
3672 |
msgstr ""
|
3673 |
|
3674 |
-
#: includes/sp-core-functions.php:
|
3675 |
msgid "View full table"
|
3676 |
msgstr ""
|
3677 |
|
3678 |
-
#: includes/sp-core-functions.php:
|
3679 |
msgid "Love SportsPress? Help spread the word by rating us 5★ on WordPress.org"
|
3680 |
msgstr ""
|
3681 |
|
3682 |
-
#: includes/sp-template-hooks.php:
|
3683 |
msgid ""
|
3684 |
"The description is not prominent by default; however, some themes may show "
|
3685 |
"it."
|
3686 |
msgstr ""
|
3687 |
|
3688 |
-
#: includes/sp-template-hooks.php:
|
3689 |
msgid "Select Icon"
|
3690 |
msgstr ""
|
3691 |
|
3692 |
-
#: includes/sp-template-hooks.php:
|
3693 |
msgid "Add icon"
|
3694 |
msgstr ""
|
3695 |
|
3696 |
-
#: includes/sp-template-hooks.php:
|
3697 |
msgid "Remove icon"
|
3698 |
msgstr ""
|
3699 |
|
3700 |
-
#: includes/sp-template-hooks.php:
|
3701 |
msgid "User"
|
3702 |
msgstr ""
|
3703 |
|
3704 |
-
#: includes/sp-template-hooks.php:
|
3705 |
msgid "Select Photo"
|
3706 |
msgstr ""
|
3707 |
|
3708 |
-
#: includes/sp-template-hooks.php:
|
3709 |
msgid "Add photo"
|
3710 |
msgstr ""
|
3711 |
|
3712 |
-
#: includes/sp-template-hooks.php:
|
3713 |
msgid "Remove photo"
|
3714 |
msgstr ""
|
3715 |
|
3716 |
-
#: includes/sp-template-hooks.php:
|
3717 |
msgid "Select Logo"
|
3718 |
msgstr ""
|
3719 |
|
3720 |
-
#: includes/sp-template-hooks.php:
|
3721 |
msgid "Add logo"
|
3722 |
msgstr ""
|
3723 |
|
3724 |
-
#: includes/sp-template-hooks.php:
|
3725 |
msgid "Remove logo"
|
3726 |
msgstr ""
|
3727 |
|
3728 |
-
#: includes/sp-template-hooks.php:
|
3729 |
msgid "Date/Time:"
|
3730 |
msgstr ""
|
3731 |
|
3732 |
-
#: includes/sp-template-hooks.php:
|
3733 |
msgid "Now"
|
3734 |
msgstr ""
|
3735 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: SportsPress\n"
|
4 |
+
"POT-Creation-Date: 2014-12-10 10:14+1000\n"
|
5 |
+
"PO-Revision-Date: 2014-12-10 10:14+1000\n"
|
6 |
"Last-Translator: ThemeBoy <support@themeboy.com>\n"
|
7 |
"Language-Team: ThemeBoy <support@themeboy.com>\n"
|
8 |
"Language: en_US\n"
|
39 |
#: assets/js/admin/editor-lang.php:9
|
40 |
#: includes/admin/class-sp-admin-sample-data.php:367
|
41 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:99
|
42 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:232
|
43 |
#: includes/class-sp-ajax.php:57 includes/class-sp-ajax.php:101
|
44 |
#: includes/class-sp-ajax.php:130 includes/class-sp-ajax.php:159
|
45 |
#: includes/class-sp-ajax.php:290 includes/class-sp-post-types.php:370
|
46 |
+
#: includes/sp-core-functions.php:1156
|
47 |
#: includes/widgets/class-sp-widget-countdown.php:76
|
48 |
#: includes/widgets/class-sp-widget-event-list.php:138
|
49 |
+
#: templates/event-list.php:92
|
50 |
msgid "Event"
|
51 |
msgstr ""
|
52 |
|
58 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:114
|
59 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:117
|
60 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:123
|
61 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:140
|
62 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:145
|
63 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:155
|
64 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:162
|
65 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:173
|
66 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:179
|
67 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:225
|
68 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php:31
|
69 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-shortcode.php:27
|
70 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:110
|
71 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:106
|
72 |
#: includes/admin/settings/class-sp-settings-events.php:70
|
73 |
+
#: includes/admin/settings/class-sp-settings-events.php:236
|
74 |
#: includes/admin/settings/class-sp-settings-players.php:59
|
75 |
#: includes/admin/settings/class-sp-settings-staff.php:61
|
76 |
#: includes/admin/settings/class-sp-settings-teams.php:61
|
77 |
+
#: includes/sp-core-functions.php:1155 templates/event-details.php:34
|
78 |
msgid "Details"
|
79 |
msgstr ""
|
80 |
|
81 |
#: assets/js/admin/editor-lang.php:11
|
82 |
#: includes/admin/importers/class-sp-event-importer.php:30
|
83 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:84
|
84 |
#: includes/admin/settings/class-sp-settings-events.php:62
|
85 |
+
#: templates/event-list.php:100 templates/event-list.php:108
|
86 |
msgid "Results"
|
87 |
msgstr ""
|
88 |
|
109 |
msgstr ""
|
110 |
|
111 |
#: assets/js/admin/editor-lang.php:15
|
112 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:165
|
113 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-columns.php:27
|
114 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-columns.php:26
|
115 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-shortcode.php:31
|
117 |
msgstr ""
|
118 |
|
119 |
#: assets/js/admin/editor-lang.php:16
|
120 |
+
#: includes/admin/class-sp-admin-sample-data.php:508
|
121 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:156
|
122 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:55
|
123 |
#: includes/class-sp-ajax.php:401 includes/class-sp-post-types.php:465
|
124 |
#: includes/widgets/class-sp-widget-league-table.php:6
|
127 |
msgstr ""
|
128 |
|
129 |
#: assets/js/admin/editor-lang.php:17
|
130 |
+
#: includes/admin/class-sp-admin-sample-data.php:550
|
131 |
+
#: includes/admin/class-sp-admin-sample-data.php:595
|
132 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:174
|
133 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:55
|
134 |
#: includes/class-sp-ajax.php:525 includes/class-sp-ajax.php:615
|
135 |
#: includes/class-sp-post-types.php:526
|
150 |
|
151 |
#: assets/js/admin/editor-lang.php:20
|
152 |
#: includes/admin/class-sp-admin-sample-data.php:214
|
153 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:67
|
154 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:54
|
155 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:147
|
156 |
#: includes/class-sp-ajax.php:467 includes/class-sp-ajax.php:496
|
157 |
+
#: includes/class-sp-install.php:162 includes/class-sp-player-list.php:420
|
158 |
+
#: includes/class-sp-post-types.php:496 includes/sp-core-functions.php:1162
|
159 |
+
#: templates/event-performance.php:88
|
160 |
msgid "Player"
|
161 |
msgstr ""
|
162 |
|
172 |
#: includes/admin/class-sp-admin-settings.php:115
|
173 |
#: includes/admin/importers/class-sp-event-importer.php:487
|
174 |
#: includes/admin/importers/class-sp-event-importer.php:502
|
175 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:199
|
176 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:175
|
177 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:226
|
178 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:78
|
179 |
#: includes/admin/settings/class-sp-settings-status.php:260
|
180 |
#: includes/admin/views/html-admin-page-status.php:224
|
187 |
|
188 |
#: includes/admin/class-sp-admin-assets.php:116
|
189 |
#: includes/admin/class-sp-admin-dashboard.php:81
|
190 |
+
#: includes/class-sp-frontend-scripts.php:85 templates/countdown.php:67
|
191 |
msgid "days"
|
192 |
msgstr ""
|
193 |
|
194 |
#: includes/admin/class-sp-admin-assets.php:117
|
195 |
+
#: includes/class-sp-frontend-scripts.php:85 templates/countdown.php:68
|
196 |
msgid "hrs"
|
197 |
msgstr ""
|
198 |
|
199 |
#: includes/admin/class-sp-admin-assets.php:118
|
200 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:29
|
201 |
#: includes/admin/settings/class-sp-settings-events.php:157
|
202 |
+
#: includes/class-sp-frontend-scripts.php:85 templates/countdown.php:69
|
203 |
msgid "mins"
|
204 |
msgstr ""
|
205 |
|
206 |
#: includes/admin/class-sp-admin-assets.php:119
|
207 |
+
#: includes/class-sp-frontend-scripts.php:85 templates/countdown.php:70
|
208 |
msgid "secs"
|
209 |
msgstr ""
|
210 |
|
215 |
msgstr ""
|
216 |
|
217 |
#: includes/admin/class-sp-admin-dashboard.php:34
|
218 |
+
#: includes/admin/class-sp-admin-menus.php:48
|
219 |
#: includes/admin/class-sp-admin-permalink-settings.php:47
|
220 |
#: includes/admin/views/html-admin-overview.php:19
|
221 |
#: includes/admin/views/html-admin-overview.php:76
|
293 |
msgid "Import <strong>staff</strong> from a csv file."
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: includes/admin/class-sp-admin-menus.php:55
|
297 |
#: includes/admin/views/html-admin-overview.php:3
|
298 |
msgid "Overview"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: includes/admin/class-sp-admin-menus.php:62
|
302 |
#: includes/admin/views/html-admin-config.php:3
|
303 |
msgid "Configure"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: includes/admin/class-sp-admin-menus.php:69
|
307 |
+
#: includes/admin/class-sp-admin-menus.php:263
|
308 |
#: includes/admin/class-sp-admin-permalink-settings.php:29
|
309 |
#: includes/admin/importers/class-sp-player-importer.php:30
|
310 |
#: includes/admin/importers/class-sp-staff-importer.php:29
|
325 |
msgid "Competitions"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: includes/admin/class-sp-admin-menus.php:76
|
329 |
+
#: includes/admin/class-sp-admin-menus.php:271
|
330 |
#: includes/admin/class-sp-admin-permalink-settings.php:30
|
331 |
#: includes/admin/importers/class-sp-player-importer.php:31
|
332 |
#: includes/admin/importers/class-sp-staff-importer.php:30
|
345 |
msgid "Seasons"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: includes/admin/class-sp-admin-menus.php:110
|
349 |
#: includes/admin/class-sp-admin-welcome.php:199 sportspress.php:132
|
350 |
msgid "Settings"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: includes/admin/class-sp-admin-menus.php:259
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
#: includes/admin/importers/class-sp-event-importer.php:488
|
355 |
#: includes/admin/importers/class-sp-event-importer.php:503
|
356 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:73
|
366 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:38
|
367 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:53
|
368 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:60
|
369 |
+
#: includes/admin/views/html-admin-config.php:51
|
370 |
#: includes/admin/views/html-admin-config.php:124
|
371 |
+
#: includes/admin/views/html-admin-config.php:175
|
372 |
+
#: includes/admin/views/html-admin-config.php:230
|
373 |
+
#: includes/admin/views/html-admin-config.php:280
|
374 |
+
#: includes/admin/views/html-admin-config.php:333
|
375 |
#: includes/class-sp-post-types.php:42 includes/class-sp-post-types.php:71
|
376 |
#: includes/class-sp-post-types.php:100 includes/class-sp-post-types.php:129
|
377 |
+
#: includes/class-sp-post-types.php:158 includes/sp-core-functions.php:953
|
378 |
+
#: includes/sp-core-functions.php:970
|
379 |
#: includes/widgets/class-sp-widget-countdown.php:71
|
380 |
#: includes/widgets/class-sp-widget-countdown.php:91
|
381 |
#: includes/widgets/class-sp-widget-event-blocks.php:83
|
390 |
msgid "Add New"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: includes/admin/class-sp-admin-menus.php:267
|
394 |
#: includes/admin/class-sp-admin-permalink-settings.php:33
|
395 |
#: includes/admin/importers/class-sp-player-importer.php:28
|
396 |
#: includes/admin/post-types/class-sp-admin-cpt-player.php:66
|
402 |
msgid "Positions"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: includes/admin/class-sp-admin-menus.php:275
|
406 |
#: includes/admin/class-sp-admin-permalink-settings.php:26
|
407 |
#: includes/admin/settings/class-sp-settings-events.php:136
|
408 |
#: includes/admin/settings/class-sp-settings-status.php:354
|
416 |
#: includes/admin/class-sp-admin-taxonomies.php:142
|
417 |
#: includes/admin/class-sp-admin-taxonomies.php:156
|
418 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:53
|
419 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:141
|
420 |
#: includes/admin/settings/class-sp-settings-events.php:25
|
421 |
#: includes/class-sp-post-types.php:369
|
422 |
msgid "Events"
|
438 |
#: includes/admin/post-types/class-sp-admin-cpt-staff.php:66
|
439 |
#: includes/admin/post-types/class-sp-admin-cpt-table.php:51
|
440 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:124
|
441 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:59
|
442 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:93
|
443 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:108
|
444 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:91
|
447 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:150
|
448 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:57
|
449 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:58
|
450 |
+
#: includes/admin/settings/class-sp-settings-events.php:178
|
451 |
+
#: includes/admin/settings/class-sp-settings-events.php:192
|
452 |
#: includes/admin/settings/class-sp-settings-teams.php:25
|
453 |
#: includes/admin/settings/class-sp-settings-teams.php:105
|
454 |
#: includes/class-sp-ajax.php:291 includes/class-sp-post-types.php:434
|
455 |
+
#: includes/sp-core-functions.php:1173 templates/event-list.php:90
|
456 |
msgid "Teams"
|
457 |
msgstr ""
|
458 |
|
459 |
#: includes/admin/class-sp-admin-permalink-settings.php:31
|
460 |
+
#: includes/admin/class-sp-admin-sample-data.php:508
|
461 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:148
|
462 |
#: includes/admin/settings/class-sp-settings-teams.php:102
|
463 |
#: includes/class-sp-post-types.php:464
|
464 |
msgid "League Tables"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: includes/admin/class-sp-admin-permalink-settings.php:32
|
468 |
+
#: includes/admin/class-sp-admin-sample-data.php:214
|
469 |
+
#: includes/admin/class-sp-admin-taxonomies.php:173
|
470 |
+
#: includes/admin/importers/class-sp-event-importer.php:32
|
471 |
+
#: includes/admin/post-types/class-sp-admin-cpt-list.php:52
|
472 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:71
|
473 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:133
|
474 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:181
|
475 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:105
|
476 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:58
|
477 |
+
#: includes/admin/settings/class-sp-settings-events.php:86
|
478 |
+
#: includes/admin/settings/class-sp-settings-players.php:25
|
479 |
+
#: includes/admin/settings/class-sp-settings-players.php:87
|
480 |
+
#: includes/class-sp-post-types.php:495
|
481 |
+
msgid "Players"
|
482 |
+
msgstr ""
|
483 |
+
|
484 |
#: includes/admin/class-sp-admin-permalink-settings.php:34
|
485 |
+
#: includes/admin/class-sp-admin-sample-data.php:550
|
486 |
+
#: includes/admin/class-sp-admin-sample-data.php:595
|
487 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:147
|
488 |
+
#: includes/admin/settings/class-sp-settings-players.php:84
|
489 |
#: includes/class-sp-post-types.php:525
|
490 |
msgid "Player Lists"
|
491 |
msgstr ""
|
493 |
#: includes/admin/class-sp-admin-permalink-settings.php:35
|
494 |
#: includes/admin/class-sp-admin-sample-data.php:307
|
495 |
#: includes/admin/class-sp-admin-taxonomies.php:185
|
496 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:72
|
497 |
#: includes/admin/settings/class-sp-settings-events.php:94
|
498 |
#: includes/admin/settings/class-sp-settings-staff.php:25
|
499 |
#: includes/class-sp-install.php:194 includes/class-sp-post-types.php:556
|
500 |
+
#: includes/class-sp-post-types.php:557 includes/sp-core-functions.php:1170
|
501 |
#: includes/widgets/class-sp-widget-staff.php:6
|
502 |
#: includes/widgets/class-sp-widget-staff.php:51 templates/event-staff.php:43
|
503 |
msgid "Staff"
|
510 |
msgstr ""
|
511 |
|
512 |
#: includes/admin/class-sp-admin-post-types.php:77
|
513 |
+
#: includes/sp-template-hooks.php:350
|
514 |
msgid "Settings saved."
|
515 |
msgstr ""
|
516 |
|
517 |
#: includes/admin/class-sp-admin-post-types.php:79
|
518 |
#: includes/admin/views/html-admin-config.php:50
|
519 |
+
#: includes/admin/views/html-admin-config.php:123
|
520 |
+
#: includes/admin/views/html-admin-config.php:174
|
521 |
+
#: includes/admin/views/html-admin-config.php:229
|
522 |
+
#: includes/admin/views/html-admin-config.php:279
|
523 |
+
#: includes/admin/views/html-admin-config.php:332
|
524 |
#: includes/admin/views/html-admin-overview.php:225
|
525 |
+
#: includes/sp-template-hooks.php:352
|
526 |
msgid "View All"
|
527 |
msgstr ""
|
528 |
|
529 |
#: includes/admin/class-sp-admin-post-types.php:84
|
530 |
#: includes/admin/class-sp-admin-post-types.php:87
|
531 |
#: includes/admin/class-sp-admin-post-types.php:92
|
532 |
+
#: includes/sp-template-hooks.php:358 includes/sp-template-hooks.php:361
|
533 |
+
#: includes/sp-template-hooks.php:366
|
534 |
msgid "Changes saved."
|
535 |
msgstr ""
|
536 |
|
537 |
#: includes/admin/class-sp-admin-post-types.php:89
|
538 |
#: includes/admin/class-sp-admin-post-types.php:94
|
539 |
#: includes/admin/class-sp-admin-post-types.php:104
|
540 |
+
#: includes/sp-template-hooks.php:363 includes/sp-template-hooks.php:368
|
541 |
+
#: includes/sp-template-hooks.php:378
|
542 |
msgid "Success!"
|
543 |
msgstr ""
|
544 |
|
545 |
#: includes/admin/class-sp-admin-post-types.php:96
|
546 |
#: includes/admin/class-sp-admin-post-types.php:102
|
547 |
#: includes/admin/class-sp-admin-post-types.php:106
|
548 |
+
#: includes/sp-template-hooks.php:370 includes/sp-template-hooks.php:376
|
549 |
+
#: includes/sp-template-hooks.php:380
|
550 |
#, php-format
|
551 |
msgid "Preview %s"
|
552 |
msgstr ""
|
553 |
|
554 |
#: includes/admin/class-sp-admin-post-types.php:99
|
555 |
+
#: includes/sp-template-hooks.php:373
|
556 |
#, php-format
|
557 |
msgid "Scheduled for: <b>%1$s</b>."
|
558 |
msgstr ""
|
559 |
|
560 |
#: includes/admin/class-sp-admin-post-types.php:100
|
561 |
+
#: includes/sp-template-hooks.php:374
|
562 |
msgid "M j, Y @ G:i"
|
563 |
msgstr ""
|
564 |
|
586 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:51
|
587 |
#: includes/admin/post-types/class-sp-admin-cpt-team.php:70
|
588 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:107
|
589 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php:125
|
590 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:57
|
591 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:60
|
592 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:69
|
593 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:72
|
594 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:57
|
595 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:119
|
596 |
+
#: includes/admin/settings/class-sp-settings-events.php:306
|
597 |
#: includes/class-sp-league-table.php:352
|
598 |
+
#: includes/class-sp-player-list.php:403 includes/class-sp-player-list.php:421
|
599 |
+
#: includes/class-sp-player.php:369 includes/class-sp-player.php:392
|
600 |
+
#: includes/class-sp-post-types.php:435 includes/sp-core-functions.php:1172
|
601 |
#: includes/widgets/class-sp-widget-countdown.php:59
|
602 |
#: templates/event-results.php:102
|
603 |
msgid "Team"
|
608 |
msgid "Fixtures & Results"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: includes/admin/class-sp-admin-sample-data.php:547
|
612 |
msgctxt "example"
|
613 |
msgid "Roster"
|
614 |
msgstr ""
|
615 |
|
616 |
+
#: includes/admin/class-sp-admin-sample-data.php:592
|
617 |
msgctxt "example"
|
618 |
msgid "Player Ranking"
|
619 |
msgstr ""
|
896 |
|
897 |
#: includes/admin/importers/class-sp-event-importer.php:26
|
898 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:92
|
899 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:50
|
900 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:45
|
901 |
+
#: includes/sp-core-functions.php:1154 templates/event-details.php:20
|
902 |
+
#: templates/event-list.php:67
|
903 |
msgid "Date"
|
904 |
msgstr ""
|
905 |
|
906 |
#: includes/admin/importers/class-sp-event-importer.php:27
|
907 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:93
|
908 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:72
|
909 |
+
#: includes/class-sp-ajax.php:292 includes/sp-core-functions.php:1174
|
910 |
+
#: templates/event-details.php:20 templates/event-list.php:83
|
911 |
+
#: templates/event-list.php:98 templates/event-list.php:104
|
912 |
msgid "Time"
|
913 |
msgstr ""
|
914 |
|
915 |
#: includes/admin/importers/class-sp-event-importer.php:28
|
916 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:51
|
917 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:97
|
918 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:103
|
919 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:92
|
920 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:87
|
921 |
#: includes/admin/settings/class-sp-settings-events.php:78
|
922 |
#: includes/admin/settings/class-sp-settings-teams.php:77
|
923 |
#: includes/class-sp-ajax.php:293 includes/class-sp-post-types.php:95
|
924 |
+
#: includes/sp-core-functions.php:1177
|
925 |
#: includes/widgets/class-sp-widget-event-list.php:140
|
926 |
+
#: templates/event-list.php:123 templates/event-venue.php:37
|
927 |
msgid "Venue"
|
928 |
msgstr ""
|
929 |
|
930 |
#: includes/admin/importers/class-sp-event-importer.php:31
|
931 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:96
|
932 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php:137
|
933 |
#: includes/class-sp-event.php:46 includes/class-sp-post-types.php:222
|
934 |
+
#: includes/sp-core-functions.php:1159
|
935 |
msgid "Outcome"
|
936 |
msgstr ""
|
937 |
|
975 |
msgid "Format"
|
976 |
msgstr ""
|
977 |
|
978 |
+
#: includes/admin/importers/class-sp-event-importer.php:471
|
979 |
+
#: includes/class-sp-formats.php:27
|
980 |
+
msgid "Competitive"
|
981 |
+
msgstr ""
|
982 |
+
|
983 |
+
#: includes/admin/importers/class-sp-event-importer.php:472
|
984 |
+
#: includes/class-sp-formats.php:28
|
985 |
+
msgid "Friendly"
|
986 |
+
msgstr ""
|
987 |
+
|
988 |
#: includes/admin/importers/class-sp-event-importer.php:478
|
989 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:49
|
990 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:95
|
991 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:49
|
992 |
#: includes/admin/post-types/class-sp-admin-cpt-table.php:49
|
993 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:91
|
994 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:62
|
995 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:30
|
996 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:27
|
997 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:61
|
998 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:61
|
999 |
+
#: includes/class-sp-post-types.php:37 includes/sp-core-functions.php:1157
|
1000 |
+
#: templates/event-list.php:117 templates/team-details.php:24
|
1001 |
#, fuzzy
|
1002 |
msgid "Competition"
|
1003 |
msgstr ""
|
1022 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:96
|
1023 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:50
|
1024 |
#: includes/admin/post-types/class-sp-admin-cpt-table.php:50
|
1025 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:97
|
1026 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:77
|
1027 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:45
|
1028 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:63
|
1030 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:60
|
1031 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:64
|
1032 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:64
|
1033 |
+
#: includes/class-sp-player.php:390 includes/class-sp-post-types.php:66
|
1034 |
+
#: includes/sp-core-functions.php:1169 templates/event-list.php:120
|
1035 |
#: templates/team-details.php:33
|
1036 |
msgid "Season"
|
1037 |
msgstr ""
|
1104 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:60
|
1105 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:72
|
1106 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:73
|
1107 |
+
#: includes/admin/settings/class-sp-settings-players.php:75
|
1108 |
#: includes/admin/settings/class-sp-settings-staff.php:69
|
1109 |
+
#: includes/sp-core-functions.php:1158 templates/player-details.php:36
|
1110 |
#: templates/staff-details.php:33
|
1111 |
msgid "Nationality"
|
1112 |
msgstr ""
|
1134 |
msgid "Import Staff"
|
1135 |
msgstr ""
|
1136 |
|
1137 |
+
#: includes/admin/importers/class-sp-staff-importer.php:27
|
1138 |
+
#: includes/class-sp-post-types.php:152 includes/class-sp-post-types.php:166
|
1139 |
+
msgid "Jobs"
|
1140 |
+
msgstr ""
|
1141 |
+
|
1142 |
#: includes/admin/importers/class-sp-staff-importer.php:133
|
1143 |
#, php-format
|
1144 |
msgid ""
|
1172 |
#: includes/admin/importers/class-sp-team-importer.php:30
|
1173 |
#: includes/admin/post-types/class-sp-admin-cpt-outcome.php:45
|
1174 |
#: includes/admin/post-types/class-sp-admin-cpt-team.php:66
|
1175 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:37
|
1176 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:101
|
1177 |
#: includes/admin/settings/class-sp-settings-teams.php:85
|
1178 |
#: includes/admin/views/html-admin-config.php:28
|
1182 |
#: includes/admin/importers/class-sp-team-importer.php:31
|
1183 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:57
|
1184 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:80
|
1185 |
+
#: includes/admin/settings/class-sp-settings-events.php:193
|
1186 |
+
#: templates/event-list.php:72 templates/team-details.php:39
|
1187 |
#: templates/team-details.php:45
|
1188 |
msgid "Home"
|
1189 |
msgstr ""
|
1209 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:48
|
1210 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:48
|
1211 |
#: includes/admin/post-types/class-sp-admin-cpt-table.php:48
|
1212 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:61
|
1213 |
+
#: includes/admin/settings/class-sp-settings-events.php:191
|
1214 |
msgid "Title"
|
1215 |
msgstr ""
|
1216 |
|
1217 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:54
|
1218 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:53
|
1219 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:139
|
1220 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:171
|
1221 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:67
|
1222 |
msgid "Layout"
|
1223 |
msgstr ""
|
1245 |
#: includes/class-sp-ajax.php:355 includes/class-sp-post-types.php:38
|
1246 |
#: includes/class-sp-post-types.php:67 includes/class-sp-post-types.php:96
|
1247 |
#: includes/class-sp-post-types.php:125 includes/class-sp-post-types.php:154
|
1248 |
+
#: includes/sp-core-functions.php:449 includes/sp-core-functions.php:480
|
1249 |
#: includes/widgets/class-sp-widget-countdown.php:66
|
1250 |
#: includes/widgets/class-sp-widget-event-blocks.php:75
|
1251 |
#: includes/widgets/class-sp-widget-event-calendar.php:69
|
1256 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:87
|
1257 |
#: includes/admin/post-types/class-sp-admin-cpt-player.php:101
|
1258 |
#: includes/admin/post-types/class-sp-admin-cpt-staff.php:97
|
1259 |
+
#: includes/sp-core-functions.php:1152 templates/player-details.php:56
|
1260 |
#: templates/staff-details.php:37
|
1261 |
msgid "Current Team"
|
1262 |
msgstr ""
|
1263 |
|
1264 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:115
|
1265 |
+
#: includes/admin/post-types/class-sp-admin-cpt-event.php:211
|
1266 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:104
|
1267 |
#: includes/admin/post-types/class-sp-admin-cpt-player.php:150
|
1268 |
#: includes/admin/post-types/class-sp-admin-cpt-staff.php:134
|
1269 |
#: includes/admin/post-types/class-sp-admin-cpt-table.php:86
|
1270 |
#: includes/admin/post-types/class-sp-admin-cpt-team.php:111
|
1271 |
+
#, fuzzy
|
1272 |
+
msgid "Show all competitions"
|
1273 |
msgstr ""
|
1274 |
+
"#-#-#-#-# 1extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1275 |
+
"#-#-#-#-# 2extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1276 |
+
"#-#-#-#-# 3extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1277 |
+
"#-#-#-#-# 4extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1278 |
+
"#-#-#-#-# 5extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1279 |
+
"#-#-#-#-# 7extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1280 |
+
"#-#-#-#-# 8extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1281 |
+
"#-#-#-#-# 9extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1282 |
+
"#-#-#-#-# 10extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1283 |
|
1284 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:124
|
1285 |
+
#: includes/admin/post-types/class-sp-admin-cpt-event.php:220
|
1286 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:113
|
1287 |
#: includes/admin/post-types/class-sp-admin-cpt-player.php:159
|
1288 |
#: includes/admin/post-types/class-sp-admin-cpt-staff.php:143
|
1292 |
msgstr ""
|
1293 |
|
1294 |
#: includes/admin/post-types/class-sp-admin-cpt-calendar.php:135
|
1295 |
+
#: includes/admin/post-types/class-sp-admin-cpt-event.php:203
|
1296 |
#: includes/admin/post-types/class-sp-admin-cpt-list.php:124
|
1297 |
#: includes/admin/post-types/class-sp-admin-cpt-player.php:142
|
1298 |
#: includes/admin/post-types/class-sp-admin-cpt-staff.php:126
|
1308 |
#: includes/admin/post-types/class-sp-admin-cpt-statistic.php:43
|
1309 |
#: includes/admin/views/html-admin-config.php:26
|
1310 |
#: includes/admin/views/html-admin-config.php:85
|
1311 |
+
#: includes/admin/views/html-admin-config.php:153
|
1312 |
+
#: includes/admin/views/html-admin-config.php:203
|
1313 |
+
#: includes/admin/views/html-admin-config.php:259
|
1314 |
+
#: includes/admin/views/html-admin-config.php:308
|
1315 |
msgid "Label"
|
1316 |
msgstr ""
|
1317 |
|
1319 |
#: includes/admin/post-types/class-sp-admin-cpt-statistic.php:44
|
1320 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:34
|
1321 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-statistic-details.php:31
|
1322 |
+
#: includes/admin/views/html-admin-config.php:204
|
1323 |
+
#: includes/admin/views/html-admin-config.php:309
|
1324 |
+
#: includes/sp-template-hooks.php:147
|
1325 |
msgid "Key"
|
1326 |
msgstr ""
|
1327 |
|
1329 |
#: includes/admin/post-types/class-sp-admin-cpt-statistic.php:45
|
1330 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:108
|
1331 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:118
|
1332 |
+
#: includes/admin/views/html-admin-config.php:205
|
1333 |
+
#: includes/admin/views/html-admin-config.php:310
|
1334 |
msgid "Equation"
|
1335 |
msgstr ""
|
1336 |
|
1338 |
#: includes/admin/post-types/class-sp-admin-cpt-statistic.php:46
|
1339 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:39
|
1340 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-statistic-details.php:36
|
1341 |
+
#: includes/admin/views/html-admin-config.php:206
|
1342 |
+
#: includes/admin/views/html-admin-config.php:311
|
1343 |
msgid "Rounding"
|
1344 |
msgstr ""
|
1345 |
|
1347 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:122
|
1348 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:43
|
1349 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:98
|
1350 |
+
#: includes/admin/views/html-admin-config.php:207
|
1351 |
msgid "Sort Order"
|
1352 |
msgstr ""
|
1353 |
|
1357 |
#: includes/admin/post-types/class-sp-admin-cpt-performance.php:46
|
1358 |
#: includes/admin/post-types/class-sp-admin-cpt-result.php:45
|
1359 |
#: includes/admin/post-types/class-sp-admin-cpt-statistic.php:47
|
1360 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:142
|
1361 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:157
|
1362 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:175
|
1363 |
+
#: includes/admin/views/html-admin-config.php:30
|
1364 |
#: includes/admin/views/html-admin-config.php:87
|
1365 |
+
#: includes/admin/views/html-admin-config.php:155
|
1366 |
+
#: includes/admin/views/html-admin-config.php:208
|
1367 |
+
#: includes/admin/views/html-admin-config.php:261
|
1368 |
+
#: includes/admin/views/html-admin-config.php:312
|
1369 |
+
#: includes/sp-template-hooks.php:141
|
1370 |
msgid "Description"
|
1371 |
msgstr ""
|
1372 |
|
1373 |
#: includes/admin/post-types/class-sp-admin-cpt-event.php:55
|
1374 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:49
|
1375 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php:173
|
1376 |
#: includes/class-sp-ajax.php:63
|
1377 |
#: includes/widgets/class-sp-widget-countdown.php:83
|
1378 |
msgid "(Auto)"
|
1379 |
msgstr ""
|
1380 |
|
1381 |
+
#: includes/admin/post-types/class-sp-admin-cpt-event.php:164
|
1382 |
+
msgid "Edit Results"
|
1383 |
+
msgstr ""
|
1384 |
+
|
1385 |
+
#: includes/admin/post-types/class-sp-admin-cpt-event.php:166
|
1386 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-video.php:33
|
1387 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:99
|
1388 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:88
|
1389 |
+
#: includes/class-sp-ajax.php:85 includes/class-sp-ajax.php:114
|
1390 |
+
#: includes/class-sp-ajax.php:143 includes/class-sp-ajax.php:172
|
1391 |
+
#: includes/class-sp-ajax.php:220 includes/class-sp-ajax.php:311
|
1392 |
+
#: includes/class-sp-ajax.php:385 includes/class-sp-ajax.php:451
|
1393 |
+
#: includes/class-sp-ajax.php:480 includes/class-sp-ajax.php:509
|
1394 |
+
#: includes/class-sp-ajax.php:599 includes/class-sp-ajax.php:676
|
1395 |
+
msgid "Cancel"
|
1396 |
+
msgstr ""
|
1397 |
+
|
1398 |
+
#: includes/admin/post-types/class-sp-admin-cpt-event.php:168
|
1399 |
+
#: includes/class-sp-post-types.php:41 includes/class-sp-post-types.php:70
|
1400 |
+
#: includes/class-sp-post-types.php:99 includes/class-sp-post-types.php:128
|
1401 |
+
#: includes/class-sp-post-types.php:157
|
1402 |
+
msgid "Update"
|
1403 |
+
msgstr ""
|
1404 |
+
|
1405 |
#: includes/admin/post-types/class-sp-admin-cpt-metric.php:44
|
1406 |
#: includes/admin/post-types/class-sp-admin-cpt-outcome.php:44
|
1407 |
#: includes/admin/post-types/class-sp-admin-cpt-performance.php:45
|
1408 |
#: includes/admin/post-types/class-sp-admin-cpt-result.php:44
|
1409 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-metric-details.php:27
|
1410 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:32
|
1411 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-performance-details.php:27
|
1412 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-result-details.php:27
|
1413 |
#: includes/admin/views/html-admin-config.php:27
|
1414 |
+
#: includes/admin/views/html-admin-config.php:154
|
1415 |
+
#: includes/admin/views/html-admin-config.php:260
|
1416 |
+
#: includes/sp-template-hooks.php:147
|
1417 |
msgid "Variable"
|
1418 |
msgstr ""
|
1419 |
|
1420 |
#: includes/admin/post-types/class-sp-admin-cpt-performance.php:43
|
1421 |
+
#: includes/admin/views/html-admin-config.php:152
|
1422 |
+
#: includes/sp-template-hooks.php:150
|
1423 |
msgid "Icon"
|
1424 |
msgstr ""
|
1425 |
|
1436 |
|
1437 |
#: includes/admin/post-types/class-sp-admin-cpt-team.php:63
|
1438 |
#: includes/admin/settings/class-sp-settings-teams.php:53
|
1439 |
+
#: includes/sp-template-hooks.php:192
|
1440 |
msgid "Logo"
|
1441 |
msgstr ""
|
1442 |
|
1456 |
msgstr ""
|
1457 |
|
1458 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:121
|
1459 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:160
|
1460 |
msgid "Shortcodes"
|
1461 |
msgstr ""
|
1462 |
|
1463 |
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:125
|
1464 |
+
#: includes/sp-core-functions.php:1178 templates/event-video.php:19
|
1465 |
msgid "Video"
|
1466 |
msgstr ""
|
1467 |
|
1471 |
#: includes/admin/views/html-admin-config.php:74
|
1472 |
#: includes/admin/views/html-admin-config.php:78
|
1473 |
#: includes/admin/views/html-admin-page-status.php:237
|
1474 |
+
#: includes/class-sp-post-types.php:191 includes/sp-core-functions.php:1168
|
1475 |
#: templates/event-results.php:98
|
1476 |
msgid "Team Results"
|
1477 |
msgstr ""
|
1478 |
|
1479 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:130
|
1480 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php:35
|
1481 |
#: includes/admin/settings/class-sp-settings-events.php:125
|
1482 |
#: includes/admin/settings/class-sp-settings-status.php:283
|
1483 |
+
#: includes/admin/views/html-admin-config.php:145
|
1484 |
#: includes/admin/views/html-admin-page-status.php:247
|
1485 |
#: includes/class-sp-post-types.php:311 includes/class-sp-post-types.php:312
|
1486 |
msgid "Player Performance"
|
1487 |
msgstr ""
|
1488 |
|
1489 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:132
|
1490 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:109
|
1491 |
+
#: includes/class-sp-ajax.php:294 includes/sp-core-functions.php:1150
|
1492 |
#: includes/widgets/class-sp-widget-event-list.php:141
|
1493 |
+
#: templates/event-list.php:126
|
1494 |
msgid "Article"
|
1495 |
msgstr ""
|
1496 |
|
1497 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:135
|
1498 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:154
|
1499 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:170
|
1500 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:178
|
1501 |
#: includes/class-sp-ajax.php:84 includes/class-sp-ajax.php:113
|
1502 |
#: includes/class-sp-ajax.php:142 includes/class-sp-ajax.php:171
|
1503 |
#: includes/class-sp-ajax.php:219 includes/class-sp-ajax.php:310
|
1507 |
msgid "Shortcode"
|
1508 |
msgstr ""
|
1509 |
|
1510 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:137
|
1511 |
msgid "Feeds"
|
1512 |
msgstr ""
|
1513 |
|
1514 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:149
|
1515 |
#: includes/admin/settings/class-sp-settings-status.php:293
|
1516 |
+
#: includes/admin/views/html-admin-config.php:196
|
1517 |
#: includes/admin/views/html-admin-page-status.php:257
|
1518 |
#: includes/class-sp-post-types.php:251
|
1519 |
msgid "Table Columns"
|
1520 |
msgstr ""
|
1521 |
|
1522 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:151
|
1523 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:167
|
1524 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:180
|
1525 |
msgid "Profile"
|
1526 |
msgstr ""
|
1527 |
|
1528 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:161
|
1529 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:172
|
1530 |
msgid "Columns"
|
1531 |
msgstr ""
|
1532 |
|
1533 |
+
#: includes/admin/post-types/class-sp-admin-meta-boxes.php:163
|
1534 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-columns.php:26
|
1535 |
msgid "Metrics"
|
1536 |
msgstr ""
|
1537 |
|
1538 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:57
|
1539 |
+
#: includes/admin/settings/class-sp-settings-events.php:193
|
1540 |
+
#: templates/event-list.php:80
|
1541 |
msgid "Away"
|
1542 |
msgstr ""
|
1543 |
|
1544 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:74
|
1545 |
+
#: includes/sp-core-functions.php:1175
|
1546 |
+
#: includes/widgets/class-sp-widget-event-list.php:139
|
1547 |
+
#: templates/event-list.php:112
|
1548 |
msgid "Time/Results"
|
1549 |
msgstr ""
|
1550 |
|
1551 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:201
|
1552 |
+
#: includes/sp-core-functions.php:1167 templates/event-list.php:318
|
1553 |
msgid "Recap"
|
1554 |
msgstr ""
|
1555 |
|
1556 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:203
|
1557 |
+
#: includes/sp-core-functions.php:1165 templates/event-list.php:320
|
1558 |
msgid "Preview"
|
1559 |
msgstr ""
|
1560 |
|
1561 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:216
|
1562 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:32
|
1563 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:101
|
1564 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:32
|
1565 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:97
|
1566 |
+
#: includes/admin/views/html-admin-config.php:45
|
1567 |
#: includes/admin/views/html-admin-config.php:117
|
1568 |
+
#: includes/admin/views/html-admin-config.php:169
|
1569 |
+
#: includes/admin/views/html-admin-config.php:224
|
1570 |
+
#: includes/admin/views/html-admin-config.php:274
|
1571 |
+
#: includes/admin/views/html-admin-config.php:327
|
1572 |
#: includes/admin/views/html-admin-overview.php:282
|
1573 |
#: includes/class-sp-post-types.php:47 includes/class-sp-post-types.php:76
|
1574 |
#: includes/class-sp-post-types.php:105 includes/class-sp-post-types.php:134
|
1585 |
#: includes/class-sp-post-types.php:472 includes/class-sp-post-types.php:502
|
1586 |
#: includes/class-sp-post-types.php:503 includes/class-sp-post-types.php:532
|
1587 |
#: includes/class-sp-post-types.php:533 includes/class-sp-post-types.php:563
|
1588 |
+
#: includes/class-sp-post-types.php:564 includes/sp-core-functions.php:831
|
1589 |
+
#: includes/sp-core-functions.php:871
|
1590 |
msgid "No results found."
|
1591 |
msgstr ""
|
1592 |
|
1593 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:225
|
1594 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:133
|
1595 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:181
|
1596 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:60
|
1617 |
msgstr ""
|
1618 |
|
1619 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:33
|
1620 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:92
|
1621 |
msgid "Status"
|
1622 |
msgstr ""
|
1623 |
|
1645 |
msgid "Descending"
|
1646 |
msgstr ""
|
1647 |
|
1648 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-feeds.php:45
|
1649 |
#: includes/admin/settings/class-sp-settings-events.php:45
|
1650 |
#: includes/admin/settings/class-sp-settings-general.php:301
|
1651 |
#: includes/admin/settings/class-sp-settings-players.php:42
|
1671 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php:34
|
1672 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php:37
|
1673 |
#: includes/class-sp-ajax.php:570 includes/class-sp-ajax.php:641
|
1674 |
+
#: includes/sp-core-functions.php:1161
|
1675 |
#: includes/widgets/class-sp-widget-player-gallery.php:98
|
1676 |
#: includes/widgets/class-sp-widget-player-list.php:112
|
1677 |
msgid "Played"
|
1723 |
msgid "Full Time"
|
1724 |
msgstr ""
|
1725 |
|
1726 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:72
|
1727 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:75
|
1728 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:79
|
1729 |
#: includes/class-sp-event.php:101 includes/class-sp-post-types.php:124
|
1730 |
+
#: includes/sp-core-functions.php:1164 templates/player-details.php:45
|
1731 |
msgid "Position"
|
1732 |
msgstr ""
|
1733 |
|
1734 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:105
|
|
|
1735 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:91
|
1736 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:38
|
1737 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:76
|
1738 |
#: includes/admin/settings/class-sp-settings-events.php:102
|
1739 |
#: includes/class-sp-player.php:87 includes/class-sp-team.php:65
|
1740 |
+
#: includes/sp-core-functions.php:392 includes/sp-core-functions.php:396
|
1741 |
+
#: includes/sp-core-functions.php:1176 templates/event-performance.php:194
|
1742 |
msgid "Total"
|
1743 |
msgstr ""
|
1744 |
|
1745 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:200
|
1746 |
msgid "Starting Lineup"
|
1747 |
msgstr ""
|
1748 |
|
1749 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:201
|
1750 |
msgid "Substitute"
|
1751 |
msgstr ""
|
1752 |
|
1753 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:62
|
1754 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:105
|
1755 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:127
|
1756 |
msgid "— None —"
|
1757 |
msgstr ""
|
1758 |
|
1759 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:63
|
1760 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:106
|
1761 |
+
msgid "— Individual —"
|
1762 |
msgstr ""
|
1763 |
|
1764 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-video.php:27
|
1765 |
+
msgid "Remove video"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1766 |
msgstr ""
|
1767 |
|
1768 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-video.php:36
|
1781 |
msgstr ""
|
1782 |
|
1783 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:52
|
1784 |
+
#: includes/sp-core-functions.php:1166 templates/player-list.php:95
|
1785 |
msgid "Rank"
|
1786 |
msgstr ""
|
1787 |
|
1788 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:95
|
1789 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:84
|
1790 |
+
#: includes/admin/views/html-admin-config.php:41
|
1791 |
#: includes/admin/views/html-admin-config.php:113
|
1792 |
+
#: includes/admin/views/html-admin-config.php:165
|
1793 |
+
#: includes/admin/views/html-admin-config.php:220
|
1794 |
+
#: includes/admin/views/html-admin-config.php:270
|
1795 |
+
#: includes/admin/views/html-admin-config.php:323
|
1796 |
msgid "Edit"
|
1797 |
msgstr ""
|
1798 |
|
1809 |
msgid "Sort by"
|
1810 |
msgstr ""
|
1811 |
|
1812 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:30
|
1813 |
+
#: includes/admin/settings/class-sp-settings-general.php:297
|
1814 |
+
#: includes/admin/views/html-admin-config.php:84
|
1815 |
+
#: includes/sp-core-functions.php:360
|
1816 |
+
msgid "Primary"
|
1817 |
+
msgstr ""
|
1818 |
+
|
1819 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:41
|
1820 |
+
#: includes/admin/views/html-admin-config.php:29
|
1821 |
+
#, fuzzy
|
1822 |
+
msgid "Condition"
|
1823 |
+
msgstr ""
|
1824 |
+
"#-#-#-#-# 1extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1825 |
+
"#-#-#-#-# 2extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1826 |
+
"#-#-#-#-# 3extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1827 |
+
"#-#-#-#-# 4extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1828 |
+
"#-#-#-#-# 5extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1829 |
+
"#-#-#-#-# 7extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1830 |
+
"#-#-#-#-# 8extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1831 |
+
"#-#-#-#-# 9extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1832 |
+
"#-#-#-#-# 10extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
1833 |
+
|
1834 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:46
|
1835 |
+
msgid "—"
|
1836 |
+
msgstr ""
|
1837 |
+
|
1838 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:47
|
1839 |
+
#: includes/sp-core-functions.php:364
|
1840 |
+
#, php-format
|
1841 |
+
msgid "Most %s"
|
1842 |
+
msgstr ""
|
1843 |
+
|
1844 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:48
|
1845 |
+
#: includes/sp-core-functions.php:365
|
1846 |
+
#, php-format
|
1847 |
+
msgid "Least %s"
|
1848 |
+
msgstr ""
|
1849 |
+
|
1850 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:49
|
1851 |
+
#: includes/sp-core-functions.php:366
|
1852 |
+
#, php-format
|
1853 |
+
msgid "Equal %s"
|
1854 |
+
msgstr ""
|
1855 |
+
|
1856 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:86
|
1857 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:84
|
1858 |
+
#: includes/sp-core-functions.php:1153
|
1859 |
msgid "Current Teams"
|
1860 |
msgstr ""
|
1861 |
|
1862 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:101
|
1863 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:99
|
1864 |
+
#: includes/sp-core-functions.php:1160 templates/player-details.php:67
|
1865 |
#: templates/staff-details.php:44
|
1866 |
msgid "Past Teams"
|
1867 |
msgstr ""
|
1868 |
|
1869 |
+
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:39
|
1870 |
+
#: includes/admin/settings/class-sp-settings-players.php:67
|
1871 |
+
#: includes/sp-core-functions.php:1151 templates/player-statistics.php:85
|
1872 |
+
msgid "Career Total"
|
1873 |
+
msgstr ""
|
1874 |
+
|
1875 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:56
|
1876 |
msgid "Highlight"
|
1877 |
msgstr ""
|
1879 |
#: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:98
|
1880 |
#: includes/admin/settings/class-sp-settings-teams.php:69
|
1881 |
#: includes/admin/settings/class-sp-settings-teams.php:93
|
1882 |
+
#: includes/sp-core-functions.php:340 templates/team-link.php:22
|
1883 |
msgid "Visit Site"
|
1884 |
msgstr ""
|
1885 |
|
1905 |
msgstr ""
|
1906 |
|
1907 |
#: includes/admin/settings/class-sp-settings-events.php:110
|
1908 |
+
#: includes/admin/settings/class-sp-settings-events.php:219
|
1909 |
+
#: includes/admin/settings/class-sp-settings-events.php:269
|
1910 |
+
#: includes/admin/settings/class-sp-settings-players.php:103
|
1911 |
#: includes/admin/settings/class-sp-settings-teams.php:121
|
1912 |
msgid "Limit"
|
1913 |
msgstr ""
|
1943 |
msgid "Event List"
|
1944 |
msgstr ""
|
1945 |
|
1946 |
+
#: includes/admin/settings/class-sp-settings-events.php:179
|
1947 |
+
#: includes/admin/settings/class-sp-settings-teams.php:106
|
1948 |
+
#: includes/class-sp-ajax.php:440
|
1949 |
+
#: includes/widgets/class-sp-widget-league-table.php:105
|
1950 |
+
msgid "Display logos"
|
1951 |
+
msgstr ""
|
1952 |
+
|
1953 |
+
#: includes/admin/settings/class-sp-settings-events.php:186
|
1954 |
+
msgid "Title Format"
|
1955 |
+
msgstr ""
|
1956 |
+
|
1957 |
+
#: includes/admin/settings/class-sp-settings-events.php:198
|
1958 |
+
msgid "Time/Results Format"
|
1959 |
+
msgstr ""
|
1960 |
+
|
1961 |
+
#: includes/admin/settings/class-sp-settings-events.php:203
|
1962 |
+
msgid "Combined"
|
1963 |
+
msgstr ""
|
1964 |
+
|
1965 |
+
#: includes/admin/settings/class-sp-settings-events.php:204
|
1966 |
+
msgid "Separate"
|
1967 |
+
msgstr ""
|
1968 |
+
|
1969 |
+
#: includes/admin/settings/class-sp-settings-events.php:205
|
1970 |
+
msgid "Time Only"
|
1971 |
+
msgstr ""
|
1972 |
+
|
1973 |
+
#: includes/admin/settings/class-sp-settings-events.php:206
|
1974 |
+
msgid "Results Only"
|
1975 |
+
msgstr ""
|
1976 |
+
|
1977 |
+
#: includes/admin/settings/class-sp-settings-events.php:211
|
1978 |
+
#: includes/admin/settings/class-sp-settings-events.php:261
|
1979 |
+
#: includes/admin/settings/class-sp-settings-players.php:95
|
1980 |
#: includes/admin/settings/class-sp-settings-teams.php:113
|
1981 |
msgid "Pagination"
|
1982 |
msgstr ""
|
1983 |
|
1984 |
+
#: includes/admin/settings/class-sp-settings-events.php:212
|
1985 |
+
#: includes/admin/settings/class-sp-settings-events.php:262
|
1986 |
+
#: includes/admin/settings/class-sp-settings-players.php:96
|
1987 |
#: includes/admin/settings/class-sp-settings-teams.php:114
|
1988 |
msgid "Paginate"
|
1989 |
msgstr ""
|
1990 |
|
1991 |
+
#: includes/admin/settings/class-sp-settings-events.php:223
|
1992 |
+
#: includes/admin/settings/class-sp-settings-events.php:273
|
1993 |
msgid "events"
|
1994 |
msgstr ""
|
1995 |
|
1996 |
+
#: includes/admin/settings/class-sp-settings-events.php:233
|
1997 |
#: includes/widgets/class-sp-widget-event-blocks.php:6
|
1998 |
msgid "Event Blocks"
|
1999 |
msgstr ""
|
2000 |
|
2001 |
+
#: includes/admin/settings/class-sp-settings-events.php:237
|
2002 |
#: includes/class-sp-ajax.php:80
|
2003 |
#: includes/widgets/class-sp-widget-countdown.php:100
|
2004 |
+
#, fuzzy
|
2005 |
+
msgid "Display competition"
|
2006 |
msgstr ""
|
2007 |
+
"#-#-#-#-# 1extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
2008 |
+
"#-#-#-#-# 2extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
2009 |
+
"#-#-#-#-# 3extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
2010 |
+
"#-#-#-#-# 4extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
2011 |
+
"#-#-#-#-# 5extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
2012 |
+
"#-#-#-#-# 7extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
2013 |
+
"#-#-#-#-# 8extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
2014 |
+
"#-#-#-#-# 9extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
2015 |
+
"#-#-#-#-# 10extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
|
2016 |
|
2017 |
+
#: includes/admin/settings/class-sp-settings-events.php:245
|
2018 |
msgid "Display season"
|
2019 |
msgstr ""
|
2020 |
|
2021 |
+
#: includes/admin/settings/class-sp-settings-events.php:253
|
2022 |
+
#: includes/class-sp-ajax.php:74
|
2023 |
+
#: includes/widgets/class-sp-widget-countdown.php:97
|
2024 |
+
msgid "Display venue"
|
2025 |
+
msgstr ""
|
2026 |
+
|
2027 |
+
#: includes/admin/settings/class-sp-settings-events.php:311
|
2028 |
+
#: includes/admin/settings/class-sp-settings-events.php:315
|
2029 |
msgid "Delimiter"
|
2030 |
msgstr ""
|
2031 |
|
2032 |
+
#: includes/admin/settings/class-sp-settings-events.php:320
|
2033 |
msgid "Custom:"
|
2034 |
msgstr ""
|
2035 |
|
2157 |
msgid "Frontend Styles"
|
2158 |
msgstr ""
|
2159 |
|
|
|
|
|
|
|
|
|
|
|
2160 |
#: includes/admin/settings/class-sp-settings-general.php:298
|
2161 |
msgid "Background"
|
2162 |
msgstr ""
|
2185 |
|
2186 |
#: includes/admin/settings/class-sp-settings-players.php:51
|
2187 |
#: includes/admin/settings/class-sp-settings-staff.php:53
|
2188 |
+
#: includes/sp-template-hooks.php:175
|
2189 |
msgid "Photo"
|
2190 |
msgstr ""
|
2191 |
|
2192 |
+
#: includes/admin/settings/class-sp-settings-players.php:76
|
2193 |
#: includes/admin/settings/class-sp-settings-staff.php:70
|
2194 |
msgid "Display national flags"
|
2195 |
msgstr ""
|
2196 |
|
2197 |
+
#: includes/admin/settings/class-sp-settings-players.php:88
|
2198 |
msgid "Display photos"
|
2199 |
msgstr ""
|
2200 |
|
2201 |
+
#: includes/admin/settings/class-sp-settings-players.php:107
|
2202 |
msgid "players"
|
2203 |
msgstr ""
|
2204 |
|
2436 |
msgstr ""
|
2437 |
|
2438 |
#: includes/admin/settings/class-sp-settings-status.php:305
|
2439 |
+
#: includes/admin/views/html-admin-config.php:252
|
2440 |
#: includes/admin/views/html-admin-page-status.php:267
|
2441 |
#: includes/class-sp-post-types.php:281
|
2442 |
msgid "Player Metrics"
|
2443 |
msgstr ""
|
2444 |
|
2445 |
#: includes/admin/settings/class-sp-settings-status.php:315
|
2446 |
+
#: includes/admin/views/html-admin-config.php:301
|
2447 |
#: includes/admin/views/html-admin-page-status.php:277
|
2448 |
#: includes/class-sp-post-types.php:341
|
2449 |
msgid "Player Statistics"
|
2515 |
msgid "Open link in a new window/tab"
|
2516 |
msgstr ""
|
2517 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2518 |
#: includes/admin/settings/class-sp-settings-text.php:41
|
2519 |
msgid "The following options affect how words are displayed on the frontend."
|
2520 |
msgstr ""
|
2521 |
|
2522 |
#: includes/admin/views/html-admin-config.php:20
|
2523 |
#: includes/admin/views/html-admin-config.php:75
|
2524 |
+
#: includes/admin/views/html-admin-config.php:146
|
2525 |
msgid "Used for events."
|
2526 |
msgstr ""
|
2527 |
|
2534 |
msgid "Default (%s)"
|
2535 |
msgstr ""
|
2536 |
|
2537 |
+
#: includes/admin/views/html-admin-config.php:197
|
2538 |
msgid "Used for league tables."
|
2539 |
msgstr ""
|
2540 |
|
2541 |
+
#: includes/admin/views/html-admin-config.php:253
|
2542 |
+
#: includes/admin/views/html-admin-config.php:302
|
2543 |
msgid "Used for player lists."
|
2544 |
msgstr ""
|
2545 |
|
2588 |
msgid "Select %s:"
|
2589 |
msgstr ""
|
2590 |
|
|
|
|
|
|
|
|
|
|
|
2591 |
#: includes/class-sp-ajax.php:84 includes/class-sp-ajax.php:113
|
2592 |
#: includes/class-sp-ajax.php:142 includes/class-sp-ajax.php:171
|
2593 |
#: includes/class-sp-ajax.php:219 includes/class-sp-ajax.php:310
|
2622 |
msgstr ""
|
2623 |
|
2624 |
#: includes/class-sp-ajax.php:265 includes/class-sp-ajax.php:356
|
2625 |
+
#: includes/sp-core-functions.php:481
|
2626 |
msgid "This week"
|
2627 |
msgstr ""
|
2628 |
|
2629 |
#: includes/class-sp-ajax.php:266 includes/class-sp-ajax.php:357
|
2630 |
+
#: includes/sp-core-functions.php:482
|
2631 |
msgid "Today"
|
2632 |
msgstr ""
|
2633 |
|
3296 |
msgstr ""
|
3297 |
|
3298 |
#: includes/class-sp-countries.php:184
|
3299 |
+
msgid "Puerto Rico"
|
3300 |
msgstr ""
|
3301 |
|
3302 |
#: includes/class-sp-countries.php:185
|
3303 |
+
msgid "Portugal"
|
3304 |
msgstr ""
|
3305 |
|
3306 |
#: includes/class-sp-countries.php:186
|
3307 |
+
msgid "Palau"
|
3308 |
msgstr ""
|
3309 |
|
3310 |
#: includes/class-sp-countries.php:187
|
3311 |
+
msgid "Paraguay"
|
3312 |
msgstr ""
|
3313 |
|
3314 |
#: includes/class-sp-countries.php:188
|
3315 |
+
msgid "Qatar"
|
3316 |
msgstr ""
|
3317 |
|
3318 |
#: includes/class-sp-countries.php:189
|
3319 |
+
msgid "Romania"
|
3320 |
msgstr ""
|
3321 |
|
3322 |
#: includes/class-sp-countries.php:190
|
3323 |
+
msgid "Serbia"
|
3324 |
msgstr ""
|
3325 |
|
3326 |
#: includes/class-sp-countries.php:191
|
3327 |
+
msgid "Russia"
|
3328 |
msgstr ""
|
3329 |
|
3330 |
#: includes/class-sp-countries.php:192
|
3331 |
+
msgid "Rwanda"
|
3332 |
msgstr ""
|
3333 |
|
3334 |
#: includes/class-sp-countries.php:193
|
3335 |
+
msgid "Saudi Arabia"
|
3336 |
msgstr ""
|
3337 |
|
3338 |
#: includes/class-sp-countries.php:194
|
3339 |
+
msgid "Solomon Islands"
|
3340 |
msgstr ""
|
3341 |
|
3342 |
#: includes/class-sp-countries.php:195
|
3343 |
+
msgid "Seychelles"
|
3344 |
msgstr ""
|
3345 |
|
3346 |
#: includes/class-sp-countries.php:196
|
3347 |
+
msgid "Sudan"
|
3348 |
msgstr ""
|
3349 |
|
3350 |
#: includes/class-sp-countries.php:197
|
3351 |
+
msgid "Sweden"
|
3352 |
msgstr ""
|
3353 |
|
3354 |
#: includes/class-sp-countries.php:198
|
3355 |
+
msgid "Scotland"
|
3356 |
msgstr ""
|
3357 |
|
3358 |
#: includes/class-sp-countries.php:199
|
3359 |
+
msgid "Singapore"
|
3360 |
msgstr ""
|
3361 |
|
3362 |
#: includes/class-sp-countries.php:200
|
3363 |
+
msgid "Slovenia"
|
3364 |
msgstr ""
|
3365 |
|
3366 |
#: includes/class-sp-countries.php:201
|
3367 |
+
msgid "Slovakia"
|
3368 |
msgstr ""
|
3369 |
|
3370 |
#: includes/class-sp-countries.php:202
|
3371 |
+
msgid "Sierra Leone"
|
3372 |
msgstr ""
|
3373 |
|
3374 |
#: includes/class-sp-countries.php:203
|
3375 |
+
msgid "San Marino"
|
3376 |
msgstr ""
|
3377 |
|
3378 |
#: includes/class-sp-countries.php:204
|
3379 |
+
msgid "Senegal"
|
3380 |
msgstr ""
|
3381 |
|
3382 |
#: includes/class-sp-countries.php:205
|
3383 |
+
msgid "Somalia"
|
3384 |
msgstr ""
|
3385 |
|
3386 |
#: includes/class-sp-countries.php:206
|
3387 |
+
msgid "Suriname"
|
3388 |
msgstr ""
|
3389 |
|
3390 |
#: includes/class-sp-countries.php:207
|
3391 |
+
msgid "Sao Tome and Principe"
|
3392 |
msgstr ""
|
3393 |
|
3394 |
#: includes/class-sp-countries.php:208
|
3395 |
+
msgid "El Salvador"
|
3396 |
msgstr ""
|
3397 |
|
3398 |
#: includes/class-sp-countries.php:209
|
3399 |
+
msgid "Swaziland"
|
3400 |
msgstr ""
|
3401 |
|
3402 |
#: includes/class-sp-countries.php:210
|
3403 |
+
msgid "Chad"
|
3404 |
msgstr ""
|
3405 |
|
3406 |
#: includes/class-sp-countries.php:211
|
3407 |
+
msgid "Togo"
|
3408 |
msgstr ""
|
3409 |
|
3410 |
#: includes/class-sp-countries.php:212
|
3411 |
+
msgid "Thailand"
|
3412 |
msgstr ""
|
3413 |
|
3414 |
#: includes/class-sp-countries.php:213
|
3415 |
+
msgid "Tajikistan"
|
3416 |
msgstr ""
|
3417 |
|
3418 |
#: includes/class-sp-countries.php:214
|
3419 |
+
msgid "East Timor"
|
3420 |
msgstr ""
|
3421 |
|
3422 |
#: includes/class-sp-countries.php:215
|
3423 |
+
msgid "Turkmenistan"
|
3424 |
msgstr ""
|
3425 |
|
3426 |
#: includes/class-sp-countries.php:216
|
3427 |
+
msgid "Tunisia"
|
3428 |
msgstr ""
|
3429 |
|
3430 |
#: includes/class-sp-countries.php:217
|
3431 |
+
msgid "Tonga"
|
3432 |
msgstr ""
|
3433 |
|
3434 |
#: includes/class-sp-countries.php:218
|
3435 |
+
msgid "Turkey"
|
3436 |
msgstr ""
|
3437 |
|
3438 |
#: includes/class-sp-countries.php:219
|
3439 |
+
msgid "Trinidad and Tobago"
|
3440 |
msgstr ""
|
3441 |
|
3442 |
#: includes/class-sp-countries.php:220
|
3443 |
+
msgid "Tuvalu"
|
3444 |
msgstr ""
|
3445 |
|
3446 |
#: includes/class-sp-countries.php:221
|
3447 |
+
msgid "Taiwan"
|
3448 |
msgstr ""
|
3449 |
|
3450 |
#: includes/class-sp-countries.php:222
|
3451 |
+
msgid "Tanzania"
|
3452 |
msgstr ""
|
3453 |
|
3454 |
#: includes/class-sp-countries.php:223
|
3455 |
+
msgid "Ukraine"
|
3456 |
msgstr ""
|
3457 |
|
3458 |
#: includes/class-sp-countries.php:224
|
3459 |
+
msgid "Uganda"
|
3460 |
msgstr ""
|
3461 |
|
3462 |
#: includes/class-sp-countries.php:225
|
3463 |
+
msgid "United States"
|
3464 |
msgstr ""
|
3465 |
|
3466 |
#: includes/class-sp-countries.php:226
|
3467 |
+
msgid "Uruguay"
|
3468 |
msgstr ""
|
3469 |
|
3470 |
#: includes/class-sp-countries.php:227
|
3471 |
+
msgid "Uzbekistan"
|
3472 |
msgstr ""
|
3473 |
|
3474 |
#: includes/class-sp-countries.php:228
|
3475 |
+
msgid "Vatican City"
|
3476 |
msgstr ""
|
3477 |
|
3478 |
#: includes/class-sp-countries.php:229
|
3479 |
+
msgid "Saint Vincent and the Grenadines"
|
3480 |
msgstr ""
|
3481 |
|
3482 |
#: includes/class-sp-countries.php:230
|
3483 |
+
msgid "Venezuela"
|
3484 |
msgstr ""
|
3485 |
|
3486 |
#: includes/class-sp-countries.php:231
|
3487 |
+
msgid "Vietnam"
|
3488 |
msgstr ""
|
3489 |
|
3490 |
#: includes/class-sp-countries.php:232
|
3491 |
+
msgid "Vanuatu"
|
3492 |
msgstr ""
|
3493 |
|
3494 |
#: includes/class-sp-countries.php:233
|
3495 |
+
msgid "Wales"
|
3496 |
msgstr ""
|
3497 |
|
3498 |
#: includes/class-sp-countries.php:234
|
3499 |
+
msgid "Samoa"
|
3500 |
msgstr ""
|
3501 |
|
3502 |
#: includes/class-sp-countries.php:235
|
3503 |
+
msgid "Yemen"
|
3504 |
msgstr ""
|
3505 |
|
3506 |
#: includes/class-sp-countries.php:236
|
3507 |
+
msgid "South Africa"
|
3508 |
msgstr ""
|
3509 |
|
3510 |
#: includes/class-sp-countries.php:237
|
3511 |
+
msgid "Zambia"
|
3512 |
+
msgstr ""
|
3513 |
+
|
3514 |
+
#: includes/class-sp-countries.php:238
|
3515 |
msgid "Zimbabwe"
|
3516 |
msgstr ""
|
3517 |
|
3518 |
+
#: includes/class-sp-feeds.php:27
|
3519 |
+
msgid "Apple Calendar"
|
3520 |
msgstr ""
|
3521 |
|
3522 |
+
#: includes/class-sp-feeds.php:31
|
3523 |
+
msgid "Outlook"
|
3524 |
msgstr ""
|
3525 |
|
3526 |
+
#: includes/class-sp-feeds.php:35
|
3527 |
+
msgid "Google"
|
3528 |
msgstr ""
|
3529 |
|
3530 |
#: includes/class-sp-frontend-scripts.php:85
|
3551 |
msgid "What's new:"
|
3552 |
msgstr ""
|
3553 |
|
3554 |
+
#: includes/class-sp-league-table.php:352 includes/sp-core-functions.php:1163
|
3555 |
#: templates/league-table.php:53
|
3556 |
msgid "Pos"
|
3557 |
msgstr ""
|
3569 |
msgid "View"
|
3570 |
msgstr ""
|
3571 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3572 |
#: includes/class-sp-post-types.php:44 includes/class-sp-post-types.php:73
|
3573 |
#: includes/class-sp-post-types.php:102 includes/class-sp-post-types.php:131
|
3574 |
#: includes/class-sp-post-types.php:160
|
3751 |
msgid "Edit Staff"
|
3752 |
msgstr ""
|
3753 |
|
3754 |
+
#: includes/sp-core-functions.php:392
|
3755 |
msgid "Average"
|
3756 |
msgstr ""
|
3757 |
|
3758 |
+
#: includes/sp-core-functions.php:450
|
3759 |
msgid "Published"
|
3760 |
msgstr ""
|
3761 |
|
3762 |
+
#: includes/sp-core-functions.php:451
|
3763 |
msgid "Scheduled"
|
3764 |
msgstr ""
|
3765 |
|
3766 |
+
#: includes/sp-core-functions.php:483
|
3767 |
msgid "Date range:"
|
3768 |
msgstr ""
|
3769 |
|
3770 |
+
#: includes/sp-core-functions.php:754 includes/sp-core-functions.php:894
|
3771 |
msgid "(no title)"
|
3772 |
msgstr ""
|
3773 |
|
3774 |
+
#: includes/sp-core-functions.php:771 includes/sp-core-functions.php:851
|
3775 |
msgid "Select All"
|
3776 |
msgstr ""
|
3777 |
|
3778 |
+
#: includes/sp-core-functions.php:832 includes/sp-core-functions.php:835
|
3779 |
msgid "Show all"
|
3780 |
msgstr ""
|
3781 |
|
3782 |
+
#: includes/sp-core-functions.php:1171
|
3783 |
msgid "Substitutes"
|
3784 |
msgstr ""
|
3785 |
|
3786 |
+
#: includes/sp-core-functions.php:1179 templates/event-blocks.php:133
|
3787 |
+
#: templates/event-calendar.php:220 templates/event-list.php:338
|
3788 |
msgid "View all events"
|
3789 |
msgstr ""
|
3790 |
|
3791 |
+
#: includes/sp-core-functions.php:1180 templates/player-gallery.php:154
|
3792 |
#: templates/player-list.php:172
|
3793 |
msgid "View all players"
|
3794 |
msgstr ""
|
3795 |
|
3796 |
+
#: includes/sp-core-functions.php:1181 templates/league-table.php:153
|
3797 |
msgid "View full table"
|
3798 |
msgstr ""
|
3799 |
|
3800 |
+
#: includes/sp-core-functions.php:1192
|
3801 |
msgid "Love SportsPress? Help spread the word by rating us 5★ on WordPress.org"
|
3802 |
msgstr ""
|
3803 |
|
3804 |
+
#: includes/sp-template-hooks.php:144
|
3805 |
msgid ""
|
3806 |
"The description is not prominent by default; however, some themes may show "
|
3807 |
"it."
|
3808 |
msgstr ""
|
3809 |
|
3810 |
+
#: includes/sp-template-hooks.php:153
|
3811 |
msgid "Select Icon"
|
3812 |
msgstr ""
|
3813 |
|
3814 |
+
#: includes/sp-template-hooks.php:156
|
3815 |
msgid "Add icon"
|
3816 |
msgstr ""
|
3817 |
|
3818 |
+
#: includes/sp-template-hooks.php:159
|
3819 |
msgid "Remove icon"
|
3820 |
msgstr ""
|
3821 |
|
3822 |
+
#: includes/sp-template-hooks.php:167
|
3823 |
msgid "User"
|
3824 |
msgstr ""
|
3825 |
|
3826 |
+
#: includes/sp-template-hooks.php:178
|
3827 |
msgid "Select Photo"
|
3828 |
msgstr ""
|
3829 |
|
3830 |
+
#: includes/sp-template-hooks.php:181
|
3831 |
msgid "Add photo"
|
3832 |
msgstr ""
|
3833 |
|
3834 |
+
#: includes/sp-template-hooks.php:184
|
3835 |
msgid "Remove photo"
|
3836 |
msgstr ""
|
3837 |
|
3838 |
+
#: includes/sp-template-hooks.php:195
|
3839 |
msgid "Select Logo"
|
3840 |
msgstr ""
|
3841 |
|
3842 |
+
#: includes/sp-template-hooks.php:198
|
3843 |
msgid "Add logo"
|
3844 |
msgstr ""
|
3845 |
|
3846 |
+
#: includes/sp-template-hooks.php:201
|
3847 |
msgid "Remove logo"
|
3848 |
msgstr ""
|
3849 |
|
3850 |
+
#: includes/sp-template-hooks.php:209
|
3851 |
msgid "Date/Time:"
|
3852 |
msgstr ""
|
3853 |
|
3854 |
+
#: includes/sp-template-hooks.php:209
|
3855 |
msgid "Now"
|
3856 |
msgstr ""
|
3857 |
|
presets/baseball.json
CHANGED
@@ -7,9 +7,9 @@
|
|
7 |
"Outfielder"
|
8 |
],
|
9 |
"outcomes": [
|
10 |
-
"Win",
|
11 |
-
"Loss",
|
12 |
-
"Tie"
|
13 |
],
|
14 |
"results": [
|
15 |
{ "name" : "1", "description" : "1st inning runs" },
|
7 |
"Outfielder"
|
8 |
],
|
9 |
"outcomes": [
|
10 |
+
{ "name" : "Win", "condition" : ">" },
|
11 |
+
{ "name" : "Loss", "condition" : "<" },
|
12 |
+
{ "name" : "Tie", "condition" : "=" }
|
13 |
],
|
14 |
"results": [
|
15 |
{ "name" : "1", "description" : "1st inning runs" },
|
presets/basketball.json
CHANGED
@@ -8,8 +8,8 @@
|
|
8 |
"Center"
|
9 |
],
|
10 |
"outcomes": [
|
11 |
-
"Win",
|
12 |
-
"Loss"
|
13 |
],
|
14 |
"results": [
|
15 |
{ "name" : "1", "description" : "1st quarter points" },
|
8 |
"Center"
|
9 |
],
|
10 |
"outcomes": [
|
11 |
+
{ "name" : "Win", "condition" : ">" },
|
12 |
+
{ "name" : "Loss", "condition" : "<" }
|
13 |
],
|
14 |
"results": [
|
15 |
{ "name" : "1", "description" : "1st quarter points" },
|
presets/cricket.json
CHANGED
@@ -7,10 +7,10 @@
|
|
7 |
"All-rounder"
|
8 |
],
|
9 |
"outcomes": [
|
10 |
-
"Win",
|
11 |
-
"Loss",
|
12 |
"Draw",
|
13 |
-
"Tie"
|
14 |
],
|
15 |
"results": [
|
16 |
{ "name" : "1st", "description" : "1st inning runs" },
|
7 |
"All-rounder"
|
8 |
],
|
9 |
"outcomes": [
|
10 |
+
{ "name" : "Win", "condition" : ">" },
|
11 |
+
{ "name" : "Loss", "condition" : "<" },
|
12 |
"Draw",
|
13 |
+
{ "name" : "Tie", "condition" : "=" }
|
14 |
],
|
15 |
"results": [
|
16 |
{ "name" : "1st", "description" : "1st inning runs" },
|
presets/darts.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
{
|
2 |
"name": "Darts",
|
3 |
"outcomes": [
|
4 |
-
"Win",
|
5 |
-
"Loss",
|
6 |
-
"Draw"
|
7 |
],
|
8 |
"results": [
|
9 |
"Legs"
|
1 |
{
|
2 |
"name": "Darts",
|
3 |
"outcomes": [
|
4 |
+
{ "name" : "Win", "condition" : ">" },
|
5 |
+
{ "name" : "Loss", "condition" : "<" },
|
6 |
+
{ "name" : "Draw", "condition" : "=" }
|
7 |
],
|
8 |
"results": [
|
9 |
"Legs"
|
presets/esports/dota2.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
"name": "Dota 2",
|
3 |
"outcomes": [
|
4 |
-
"Win",
|
5 |
-
"Loss"
|
6 |
],
|
7 |
"results": [
|
8 |
{ "name" : "Rating", "description" : "Rating adjustment", "primary" : 1 }
|
1 |
{
|
2 |
"name": "Dota 2",
|
3 |
"outcomes": [
|
4 |
+
{ "name" : "Win", "condition" : ">" },
|
5 |
+
{ "name" : "Loss", "condition" : "<" }
|
6 |
],
|
7 |
"results": [
|
8 |
{ "name" : "Rating", "description" : "Rating adjustment", "primary" : 1 }
|
presets/esports/lol.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
"name": "League of Legends",
|
3 |
"outcomes": [
|
4 |
-
"Win",
|
5 |
-
"Loss"
|
6 |
],
|
7 |
"results": [
|
8 |
"Kills",
|
1 |
{
|
2 |
"name": "League of Legends",
|
3 |
"outcomes": [
|
4 |
+
{ "name" : "Win", "condition" : ">" },
|
5 |
+
{ "name" : "Loss", "condition" : "<" }
|
6 |
],
|
7 |
"results": [
|
8 |
"Kills",
|
presets/floorball.json
CHANGED
@@ -6,9 +6,9 @@
|
|
6 |
"Goalkeeper"
|
7 |
],
|
8 |
"outcomes": [
|
9 |
-
"Win",
|
10 |
-
"Loss",
|
11 |
-
"Tie"
|
12 |
],
|
13 |
"results": [
|
14 |
{ "name" : "1st", "description" : "1st period goals" },
|
6 |
"Goalkeeper"
|
7 |
],
|
8 |
"outcomes": [
|
9 |
+
{ "name" : "Win", "condition" : ">" },
|
10 |
+
{ "name" : "Loss", "condition" : "<" },
|
11 |
+
{ "name" : "Tie", "condition" : "=" }
|
12 |
],
|
13 |
"results": [
|
14 |
{ "name" : "1st", "description" : "1st period goals" },
|
presets/football.json
CHANGED
@@ -16,9 +16,9 @@
|
|
16 |
"Safety"
|
17 |
],
|
18 |
"outcomes": [
|
19 |
-
"Win",
|
20 |
-
"Loss",
|
21 |
-
"Tie"
|
22 |
],
|
23 |
"results": [
|
24 |
{ "name" : "1", "description" : "1st quarter points" },
|
16 |
"Safety"
|
17 |
],
|
18 |
"outcomes": [
|
19 |
+
{ "name" : "Win", "condition" : ">" },
|
20 |
+
{ "name" : "Loss", "condition" : "<" },
|
21 |
+
{ "name" : "Tie", "condition" : "=" }
|
22 |
],
|
23 |
"results": [
|
24 |
{ "name" : "1", "description" : "1st quarter points" },
|
presets/footy.json
CHANGED
@@ -6,9 +6,9 @@
|
|
6 |
"Forward"
|
7 |
],
|
8 |
"outcomes": [
|
9 |
-
"Win",
|
10 |
-
"Loss",
|
11 |
-
"Draw"
|
12 |
],
|
13 |
"results": [
|
14 |
{ "name" : "Q1", "description" : "First quarter points" },
|
6 |
"Forward"
|
7 |
],
|
8 |
"outcomes": [
|
9 |
+
{ "name" : "Win", "condition" : ">" },
|
10 |
+
{ "name" : "Loss", "condition" : "<" },
|
11 |
+
{ "name" : "Draw", "condition" : "=" }
|
12 |
],
|
13 |
"results": [
|
14 |
{ "name" : "Q1", "description" : "First quarter points" },
|
presets/handball.json
CHANGED
@@ -10,9 +10,9 @@
|
|
10 |
"Right wing"
|
11 |
],
|
12 |
"outcomes": [
|
13 |
-
"Win",
|
14 |
-
"Loss",
|
15 |
-
"Draw"
|
16 |
],
|
17 |
"results": [
|
18 |
{ "name" : "1st Half", "description" : "1st half goals" },
|
10 |
"Right wing"
|
11 |
],
|
12 |
"outcomes": [
|
13 |
+
{ "name" : "Win", "condition" : ">" },
|
14 |
+
{ "name" : "Loss", "condition" : "<" },
|
15 |
+
{ "name" : "Draw", "condition" : "=" }
|
16 |
],
|
17 |
"results": [
|
18 |
{ "name" : "1st Half", "description" : "1st half goals" },
|
presets/ice-hockey.json
CHANGED
@@ -6,8 +6,8 @@
|
|
6 |
"Goalie"
|
7 |
],
|
8 |
"outcomes": [
|
9 |
-
"Win",
|
10 |
-
"Loss",
|
11 |
{ "name" : "Overtime loss", "abbreviation" : "OT" }
|
12 |
],
|
13 |
"results": [
|
6 |
"Goalie"
|
7 |
],
|
8 |
"outcomes": [
|
9 |
+
{ "name" : "Win", "condition" : ">" },
|
10 |
+
{ "name" : "Loss", "condition" : "<" },
|
11 |
{ "name" : "Overtime loss", "abbreviation" : "OT" }
|
12 |
],
|
13 |
"results": [
|
presets/netball.json
CHANGED
@@ -10,8 +10,8 @@
|
|
10 |
"Goal Shooter"
|
11 |
],
|
12 |
"outcomes": [
|
13 |
-
"Win",
|
14 |
-
"Loss"
|
15 |
],
|
16 |
"results": [
|
17 |
{ "name" : "1st", "description" : "1st quarter goals" },
|
10 |
"Goal Shooter"
|
11 |
],
|
12 |
"outcomes": [
|
13 |
+
{ "name" : "Win", "condition" : ">" },
|
14 |
+
{ "name" : "Loss", "condition" : "<" }
|
15 |
],
|
16 |
"results": [
|
17 |
{ "name" : "1st", "description" : "1st quarter goals" },
|
presets/rugby-league.json
CHANGED
@@ -12,9 +12,9 @@
|
|
12 |
"Lock"
|
13 |
],
|
14 |
"outcomes": [
|
15 |
-
"Win",
|
16 |
-
"Loss",
|
17 |
-
"Draw"
|
18 |
],
|
19 |
"results": [
|
20 |
"Tries",
|
12 |
"Lock"
|
13 |
],
|
14 |
"outcomes": [
|
15 |
+
{ "name" : "Win", "condition" : ">" },
|
16 |
+
{ "name" : "Loss", "condition" : "<" },
|
17 |
+
{ "name" : "Draw", "condition" : "=" }
|
18 |
],
|
19 |
"results": [
|
20 |
"Tries",
|
presets/rugby-union.json
CHANGED
@@ -13,9 +13,9 @@
|
|
13 |
"Prop"
|
14 |
],
|
15 |
"outcomes": [
|
16 |
-
"Win",
|
17 |
-
"Loss",
|
18 |
-
"Draw"
|
19 |
],
|
20 |
"results": [
|
21 |
"Tries",
|
13 |
"Prop"
|
14 |
],
|
15 |
"outcomes": [
|
16 |
+
{ "name" : "Win", "condition" : ">" },
|
17 |
+
{ "name" : "Loss", "condition" : "<" },
|
18 |
+
{ "name" : "Draw", "condition" : "=" }
|
19 |
],
|
20 |
"results": [
|
21 |
"Tries",
|
presets/snooker.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
{
|
2 |
"name": "Snooker",
|
3 |
"outcomes": [
|
4 |
-
"Win",
|
5 |
-
"Loss",
|
6 |
-
"Draw"
|
7 |
],
|
8 |
"results": [
|
9 |
{ "name" : "Score", "description" : "Total points", "primary" : 1 }
|
1 |
{
|
2 |
"name": "Snooker",
|
3 |
"outcomes": [
|
4 |
+
{ "name" : "Win", "condition" : ">" },
|
5 |
+
{ "name" : "Loss", "condition" : "<" },
|
6 |
+
{ "name" : "Draw", "condition" : "=" }
|
7 |
],
|
8 |
"results": [
|
9 |
{ "name" : "Score", "description" : "Total points", "primary" : 1 }
|
presets/soccer.json
CHANGED
@@ -7,9 +7,9 @@
|
|
7 |
"Forward"
|
8 |
],
|
9 |
"outcomes": [
|
10 |
-
"Win",
|
11 |
-
"Loss",
|
12 |
-
"Draw"
|
13 |
],
|
14 |
"results": [
|
15 |
{ "name" : "1st Half", "description" : "1st half goals" },
|
7 |
"Forward"
|
8 |
],
|
9 |
"outcomes": [
|
10 |
+
{ "name" : "Win", "condition" : ">" },
|
11 |
+
{ "name" : "Loss", "condition" : "<" },
|
12 |
+
{ "name" : "Draw", "condition" : "=" }
|
13 |
],
|
14 |
"results": [
|
15 |
{ "name" : "1st Half", "description" : "1st half goals" },
|
presets/squash.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
{
|
2 |
"name": "Squash",
|
3 |
"outcomes": [
|
4 |
-
"Win",
|
5 |
-
"Loss",
|
6 |
-
"Draw"
|
7 |
],
|
8 |
"results": [
|
9 |
{ "name" : "G1", "description" : "1st game" },
|
1 |
{
|
2 |
"name": "Squash",
|
3 |
"outcomes": [
|
4 |
+
{ "name" : "Win", "condition" : ">" },
|
5 |
+
{ "name" : "Loss", "condition" : "<" },
|
6 |
+
{ "name" : "Draw", "condition" : "=" }
|
7 |
],
|
8 |
"results": [
|
9 |
{ "name" : "G1", "description" : "1st game" },
|
presets/table-tennis.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
"name": "Table Tennis",
|
3 |
"outcomes": [
|
4 |
-
"Win",
|
5 |
-
"Loss",
|
6 |
"Forfeit"
|
7 |
],
|
8 |
"results": [
|
1 |
{
|
2 |
"name": "Table Tennis",
|
3 |
"outcomes": [
|
4 |
+
{ "name" : "Win", "condition" : ">" },
|
5 |
+
{ "name" : "Loss", "condition" : "<" },
|
6 |
"Forfeit"
|
7 |
],
|
8 |
"results": [
|
presets/tennis.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
"name": "Tennis",
|
3 |
"outcomes": [
|
4 |
-
"Win",
|
5 |
-
"Loss",
|
6 |
"Unfinished"
|
7 |
],
|
8 |
"results": [
|
1 |
{
|
2 |
"name": "Tennis",
|
3 |
"outcomes": [
|
4 |
+
{ "name" : "Win", "condition" : ">" },
|
5 |
+
{ "name" : "Loss", "condition" : "<" },
|
6 |
"Unfinished"
|
7 |
],
|
8 |
"results": [
|
presets/volleyball.json
CHANGED
@@ -9,8 +9,8 @@
|
|
9 |
"Libero"
|
10 |
],
|
11 |
"outcomes": [
|
12 |
-
"Win",
|
13 |
-
"Loss",
|
14 |
{ "name" : "Overtime win", "abbreviation" : "OTW" },
|
15 |
{ "name" : "Overtime loss", "abbreviation" : "OTL" }
|
16 |
],
|
9 |
"Libero"
|
10 |
],
|
11 |
"outcomes": [
|
12 |
+
{ "name" : "Win", "condition" : ">" },
|
13 |
+
{ "name" : "Loss", "condition" : "<" },
|
14 |
{ "name" : "Overtime win", "abbreviation" : "OTW" },
|
15 |
{ "name" : "Overtime loss", "abbreviation" : "OTL" }
|
16 |
],
|
presets/water-polo.json
CHANGED
@@ -12,9 +12,9 @@
|
|
12 |
"Hole Guard"
|
13 |
],
|
14 |
"outcomes": [
|
15 |
-
"Win",
|
16 |
-
"Loss",
|
17 |
-
"Draw"
|
18 |
],
|
19 |
"results": [
|
20 |
{ "name" : "1st Quarter", "description" : "1st quarter goals" },
|
12 |
"Hole Guard"
|
13 |
],
|
14 |
"outcomes": [
|
15 |
+
{ "name" : "Win", "condition" : ">" },
|
16 |
+
{ "name" : "Loss", "condition" : "<" },
|
17 |
+
{ "name" : "Draw", "condition" : "=" }
|
18 |
],
|
19 |
"results": [
|
20 |
{ "name" : "1st Quarter", "description" : "1st quarter goals" },
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: ThemeBoy, brianmiyaji, aylaview
|
|
3 |
Tags: sport, sports, club, clubs, teams, statistics, stats, metrics, data, fixtures, results, standings, league tables, leagues, shortcodes, sports data, sports club, themeboy, esports, wordpress sports, equations, calculations, events, calendars, players, profiles, staff, seasons, countdowns, football, nfl, footy, afl, baseball, basketball, cricket, darts, handball, hockey, netball, rugby, snooker, soccer, squash, tennis, volleyball, dota 2, league of legends
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=support@themeboy.com&item_name=Donation+for+SportsPress
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -24,7 +24,7 @@ Transform your WordPress blog into a fully configurable team, club, or league we
|
|
24 |
>
|
25 |
> "*SportsPress is our number 1 WordPress plugin for sport!*" — [GBSport](http://www.gbsport.org.uk/5-great-wordpress-plugins-for-sport/)
|
26 |
>
|
27 |
-
> "*The freely available and highly impressive
|
28 |
|
29 |
= Features =
|
30 |
* Equation Builder
|
@@ -189,6 +189,34 @@ Yes, CSV importers are included with the plugin. Go to Tools > Import and choose
|
|
189 |
|
190 |
== Changelog ==
|
191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
= 1.4.7 =
|
193 |
* Feature - New staff shortcode and widget to display staff photo and details.
|
194 |
* Tweak - Display player photo in player details shortcode.
|
3 |
Tags: sport, sports, club, clubs, teams, statistics, stats, metrics, data, fixtures, results, standings, league tables, leagues, shortcodes, sports data, sports club, themeboy, esports, wordpress sports, equations, calculations, events, calendars, players, profiles, staff, seasons, countdowns, football, nfl, footy, afl, baseball, basketball, cricket, darts, handball, hockey, netball, rugby, snooker, soccer, squash, tennis, volleyball, dota 2, league of legends
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=support@themeboy.com&item_name=Donation+for+SportsPress
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 4.1
|
7 |
+
Stable tag: 1.5
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
24 |
>
|
25 |
> "*SportsPress is our number 1 WordPress plugin for sport!*" — [GBSport](http://www.gbsport.org.uk/5-great-wordpress-plugins-for-sport/)
|
26 |
>
|
27 |
+
> "*The freely available and highly impressive SportsPress plugin offers terrific functionality including a fixtures listing, league table, player & staff profiles, customizable point system and a built-in translation system for 36 different languages.*" — [Club Themes](http://clubthemes.com/awesome-sporting-templates-themes-wordpress-joomla/)
|
28 |
|
29 |
= Features =
|
30 |
* Equation Builder
|
189 |
|
190 |
== Changelog ==
|
191 |
|
192 |
+
= 1.5 =
|
193 |
+
* Feature - New inline quick result editing for events.
|
194 |
+
* Feature - Automatically detect event outcome based on user-defined conditions.
|
195 |
+
* Feature - Enable individual players to compete in events.
|
196 |
+
* Feature - Add new API functions for theme developers.
|
197 |
+
* Feature - Add event list time/results formatting options.
|
198 |
+
* Feature - Add option to display player career totals.
|
199 |
+
* Feature - Add option to display team logos in event lists.
|
200 |
+
* Feature - Add option to display venue in event blocks.
|
201 |
+
* Feature - Split iCal feed links for Apple Calendar, Google, and Outlook.
|
202 |
+
* Refactor - Move Staff to dedicated menu link.
|
203 |
+
* Refactor - Load sportspress.php template as a fallback only.
|
204 |
+
* Tweak - Add caption header to event blocks.
|
205 |
+
* Tweak - Add selector classes to event venue rows.
|
206 |
+
* Tweak - Remove line breaks after template output.
|
207 |
+
* Tweak - Disable responsive event performance when icons are shown.
|
208 |
+
* Tweak - Update default color scheme.
|
209 |
+
* Tweak - Update player gallery thumbnail markup.
|
210 |
+
* Tweak - Sort Player positions dropdown by slug.
|
211 |
+
* Tweak - Frontend styling to add margins and fix overflows.
|
212 |
+
* Fix - Countdown datetime format.
|
213 |
+
* Fix - Page slug conflict with SendPress.
|
214 |
+
* Fix - Missing sample event video link.
|
215 |
+
* Fix - iCal feed formatting when venue location is not set.
|
216 |
+
* Preset - Update presets to include automatic outcome conditions.
|
217 |
+
* Localization - Add Puerto Rico to countries list.
|
218 |
+
* Localization - Update Polish, German, Spanish, Russian, Finnish, Italian, Armenian, Greek, Dutch, Turkish, French, and Bengali translations.
|
219 |
+
|
220 |
= 1.4.7 =
|
221 |
* Feature - New staff shortcode and widget to display staff photo and details.
|
222 |
* Tweak - Display player photo in player details shortcode.
|
sportspress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: SportsPress
|
4 |
* Plugin URI: http://themeboy.com/sportspress/
|
5 |
* Description: Manage your club and its players, staff, events, league tables, and player lists.
|
6 |
-
* Version: 1.
|
7 |
* Author: ThemeBoy
|
8 |
* Author URI: http://themeboy.com
|
9 |
* Requires at least: 3.8
|
@@ -26,14 +26,14 @@ if ( ! class_exists( 'SportsPress' ) ) :
|
|
26 |
* Main SportsPress Class
|
27 |
*
|
28 |
* @class SportsPress
|
29 |
-
* @version 1.
|
30 |
*/
|
31 |
final class SportsPress {
|
32 |
|
33 |
/**
|
34 |
* @var string
|
35 |
*/
|
36 |
-
public $version = '1.
|
37 |
|
38 |
/**
|
39 |
* @var SporsPress The single instance of the class
|
3 |
* Plugin Name: SportsPress
|
4 |
* Plugin URI: http://themeboy.com/sportspress/
|
5 |
* Description: Manage your club and its players, staff, events, league tables, and player lists.
|
6 |
+
* Version: 1.5
|
7 |
* Author: ThemeBoy
|
8 |
* Author URI: http://themeboy.com
|
9 |
* Requires at least: 3.8
|
26 |
* Main SportsPress Class
|
27 |
*
|
28 |
* @class SportsPress
|
29 |
+
* @version 1.5
|
30 |
*/
|
31 |
final class SportsPress {
|
32 |
|
33 |
/**
|
34 |
* @var string
|
35 |
*/
|
36 |
+
public $version = '1.5';
|
37 |
|
38 |
/**
|
39 |
* @var SporsPress The single instance of the class
|
templates/countdown.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
-
* @version
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -62,11 +62,13 @@ if ( ! isset( $post ) ) return;
|
|
62 |
$i = $interval->invert ? 0 : $interval->i;
|
63 |
$s = $interval->invert ? 0 : $interval->s;
|
64 |
?>
|
65 |
-
<p class="countdown sp-countdown<?php if ( $days >= 10 ): ?> long-countdown<?php endif; ?>"
|
66 |
-
<
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
71 |
</div>
|
72 |
</div>
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
+
* @version 1.5
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
62 |
$i = $interval->invert ? 0 : $interval->i;
|
63 |
$s = $interval->invert ? 0 : $interval->s;
|
64 |
?>
|
65 |
+
<p class="countdown sp-countdown<?php if ( $days >= 10 ): ?> long-countdown<?php endif; ?>">
|
66 |
+
<time datetime="<?php echo $post->post_date; ?>"<?php if ( $live ): ?> data-countdown="<?php echo str_replace( '-', '/', $post->post_date ); ?>"<?php endif; ?>>
|
67 |
+
<span><?php echo sprintf( '%02s', $days ); ?> <small><?php _e( 'days', 'sportspress' ); ?></small></span>
|
68 |
+
<span><?php echo sprintf( '%02s', $h ); ?> <small><?php _e( 'hrs', 'sportspress' ); ?></small></span>
|
69 |
+
<span><?php echo sprintf( '%02s', $i ); ?> <small><?php _e( 'mins', 'sportspress' ); ?></small></span>
|
70 |
+
<span><?php echo sprintf( '%02s', $s ); ?> <small><?php _e( 'secs', 'sportspress' ); ?></small></span>
|
71 |
+
</time>
|
72 |
+
</p>
|
73 |
</div>
|
74 |
</div>
|
templates/event-blocks.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
-
* @version 1.
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -25,6 +25,7 @@ $defaults = array(
|
|
25 |
'show_all_events_link' => false,
|
26 |
'show_league' => get_option( 'sportspress_event_blocks_show_league', 'no' ) == 'yes' ? true : false,
|
27 |
'show_season' => get_option( 'sportspress_event_blocks_show_season', 'no' ) == 'yes' ? true : false,
|
|
|
28 |
);
|
29 |
|
30 |
extract( $defaults, EXTR_SKIP );
|
@@ -43,8 +44,13 @@ if ( $order != 'default' )
|
|
43 |
$data = $calendar->data();
|
44 |
$usecolumns = $calendar->columns;
|
45 |
|
46 |
-
if ( isset( $columns ) )
|
47 |
$usecolumns = $columns;
|
|
|
|
|
|
|
|
|
|
|
48 |
?>
|
49 |
<div class="sp-template sp-template-event-blocks">
|
50 |
<div class="sp-table-wrapper">
|
@@ -97,7 +103,7 @@ if ( isset( $columns ) )
|
|
97 |
<tr class="sp-row sp-post<?php echo ( $i % 2 == 0 ? ' alternate' : '' ); ?>">
|
98 |
<td>
|
99 |
<?php echo implode( $logos, ' ' ); ?>
|
100 |
-
<time class="event-date"><?php echo get_the_time( get_option( 'date_format' ), $event ); ?></time>
|
101 |
<?php if ( ! empty( $main_results ) ): ?>
|
102 |
<h5 class="event-results"><?php echo implode( $main_results, ' - ' ); ?></h5>
|
103 |
<?php else: ?>
|
@@ -109,6 +115,9 @@ if ( isset( $columns ) )
|
|
109 |
<?php if ( $show_season ): $seasons = get_the_terms( $event, 'sp_season' ); if ( $seasons ): $season = array_shift( $seasons ); ?>
|
110 |
<div class="event-season"><?php echo $season->name; ?></div>
|
111 |
<?php endif; endif; ?>
|
|
|
|
|
|
|
112 |
<h4 class="event-title"><a href="<?php echo get_post_permalink( $event ); ?>"><?php echo $event->post_title; ?></a></h4>
|
113 |
</td>
|
114 |
</tr>
|
@@ -119,8 +128,8 @@ if ( isset( $columns ) )
|
|
119 |
</tbody>
|
120 |
</table>
|
121 |
</div>
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
+
* @version 1.5
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
25 |
'show_all_events_link' => false,
|
26 |
'show_league' => get_option( 'sportspress_event_blocks_show_league', 'no' ) == 'yes' ? true : false,
|
27 |
'show_season' => get_option( 'sportspress_event_blocks_show_season', 'no' ) == 'yes' ? true : false,
|
28 |
+
'show_venue' => get_option( 'sportspress_event_blocks_show_venue', 'no' ) == 'yes' ? true : false,
|
29 |
);
|
30 |
|
31 |
extract( $defaults, EXTR_SKIP );
|
44 |
$data = $calendar->data();
|
45 |
$usecolumns = $calendar->columns;
|
46 |
|
47 |
+
if ( isset( $columns ) ) {
|
48 |
$usecolumns = $columns;
|
49 |
+
}
|
50 |
+
|
51 |
+
if ( $id ) {
|
52 |
+
echo '<h4 class="sp-table-caption">' . get_the_title( $id ) . '</h4>';
|
53 |
+
}
|
54 |
?>
|
55 |
<div class="sp-template sp-template-event-blocks">
|
56 |
<div class="sp-table-wrapper">
|
103 |
<tr class="sp-row sp-post<?php echo ( $i % 2 == 0 ? ' alternate' : '' ); ?>">
|
104 |
<td>
|
105 |
<?php echo implode( $logos, ' ' ); ?>
|
106 |
+
<time class="event-date" datetime="<?php echo $event->post_date; ?>"><?php echo get_the_time( get_option( 'date_format' ), $event ); ?></time>
|
107 |
<?php if ( ! empty( $main_results ) ): ?>
|
108 |
<h5 class="event-results"><?php echo implode( $main_results, ' - ' ); ?></h5>
|
109 |
<?php else: ?>
|
115 |
<?php if ( $show_season ): $seasons = get_the_terms( $event, 'sp_season' ); if ( $seasons ): $season = array_shift( $seasons ); ?>
|
116 |
<div class="event-season"><?php echo $season->name; ?></div>
|
117 |
<?php endif; endif; ?>
|
118 |
+
<?php if ( $show_venue ): $venues = get_the_terms( $event, 'sp_venue' ); if ( $venues ): $venue = array_shift( $venues ); ?>
|
119 |
+
<div class="event-venue"><?php echo $venue->name; ?></div>
|
120 |
+
<?php endif; endif; ?>
|
121 |
<h4 class="event-title"><a href="<?php echo get_post_permalink( $event ); ?>"><?php echo $event->post_title; ?></a></h4>
|
122 |
</td>
|
123 |
</tr>
|
128 |
</tbody>
|
129 |
</table>
|
130 |
</div>
|
131 |
+
<?php
|
132 |
+
if ( $id && $show_all_events_link )
|
133 |
+
echo '<a class="sp-calendar-link sp-view-all-link" href="' . get_permalink( $id ) . '">' . __( 'View all events', 'sportspress' ) . '</a>';
|
134 |
+
?>
|
135 |
+
</div>
|
templates/event-list.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
-
* @version 1.
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -16,6 +16,7 @@ $defaults = array(
|
|
16 |
'date_from' => 'default',
|
17 |
'date_to' => 'default',
|
18 |
'number' => -1,
|
|
|
19 |
'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false,
|
20 |
'link_venues' => get_option( 'sportspress_link_venues', 'yes' ) == 'yes' ? true : false,
|
21 |
'sortable' => get_option( 'sportspress_enable_sortable_tables', 'yes' ) == 'yes' ? true : false,
|
@@ -43,7 +44,8 @@ if ( $order != 'default' )
|
|
43 |
$calendar->order = $order;
|
44 |
$data = $calendar->data();
|
45 |
$usecolumns = $calendar->columns;
|
46 |
-
$title_format =
|
|
|
47 |
|
48 |
if ( isset( $columns ) ):
|
49 |
if ( is_array( $columns ) )
|
@@ -51,6 +53,10 @@ if ( isset( $columns ) ):
|
|
51 |
else
|
52 |
$usecolumns = explode( ',', $columns );
|
53 |
endif;
|
|
|
|
|
|
|
|
|
54 |
?>
|
55 |
<div class="sp-template sp-template-event-list">
|
56 |
<div class="sp-table-wrapper<?php if ( $scrollable ) { ?> sp-scrollable-table-wrapper<?php } ?>">
|
@@ -60,36 +66,63 @@ endif;
|
|
60 |
<?php
|
61 |
echo '<th class="data-date">' . __( 'Date', 'sportspress' ) . '</th>';
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
echo '<th class="data-league">' . __( 'Competition', 'sportspress' ) . '</th>';
|
85 |
|
86 |
-
if ( $usecolumns
|
87 |
echo '<th class="data-season">' . __( 'Season', 'sportspress' ) . '</th>';
|
88 |
|
89 |
-
if ( $usecolumns
|
90 |
echo '<th class="data-venue">' . __( 'Venue', 'sportspress' ) . '</th>';
|
91 |
|
92 |
-
if ( $usecolumns
|
93 |
echo '<th class="data-article">' . __( 'Article', 'sportspress' ) . '</th>';
|
94 |
?>
|
95 |
</tr>
|
@@ -110,12 +143,19 @@ endif;
|
|
110 |
$main_results = sp_get_main_results( $event );
|
111 |
|
112 |
$teams_output = '';
|
113 |
-
$teams_array =
|
|
|
114 |
|
115 |
if ( $teams ):
|
116 |
foreach ( $teams as $team ):
|
117 |
$name = get_the_title( $team );
|
118 |
if ( $name ):
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
if ( $link_teams ):
|
120 |
$team_output = '<a href="' . get_post_permalink( $team ) . '">' . $name . '</a>';
|
121 |
else:
|
@@ -143,35 +183,97 @@ endif;
|
|
143 |
|
144 |
echo '<td class="data-date"><a href="' . get_permalink( $event->ID ) . '"><date>' . get_post_time( 'Y-m-d H:i:s', false, $event ) . '</date>' . get_post_time( get_option( 'date_format' ), false, $event, true ) . '</a></td>';
|
145 |
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
echo '<td class="data-league">';
|
176 |
$leagues = get_the_terms( $event->ID, 'sp_league' );
|
177 |
if ( $leagues ): foreach ( $leagues as $league ):
|
@@ -180,7 +282,7 @@ endif;
|
|
180 |
echo '</td>';
|
181 |
endif;
|
182 |
|
183 |
-
if ( $usecolumns
|
184 |
echo '<td class="data-season">';
|
185 |
$seasons = get_the_terms( $event->ID, 'sp_season' );
|
186 |
if ( $seasons ): foreach ( $seasons as $season ):
|
@@ -189,7 +291,7 @@ endif;
|
|
189 |
echo '</td>';
|
190 |
endif;
|
191 |
|
192 |
-
if ( $usecolumns
|
193 |
echo '<td class="data-venue">';
|
194 |
if ( $link_venues ):
|
195 |
the_terms( $event->ID, 'sp_venue' );
|
@@ -202,7 +304,7 @@ endif;
|
|
202 |
echo '</td>';
|
203 |
endif;
|
204 |
|
205 |
-
if ( $usecolumns
|
206 |
echo '<td class="data-article">
|
207 |
<a href="' . get_permalink( $event->ID ) . '">';
|
208 |
|
@@ -231,8 +333,8 @@ endif;
|
|
231 |
</tbody>
|
232 |
</table>
|
233 |
</div>
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
+
* @version 1.5
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
16 |
'date_from' => 'default',
|
17 |
'date_to' => 'default',
|
18 |
'number' => -1,
|
19 |
+
'show_team_logo' => get_option( 'sportspress_event_list_show_logos', 'no' ) == 'yes' ? true : false,
|
20 |
'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false,
|
21 |
'link_venues' => get_option( 'sportspress_link_venues', 'yes' ) == 'yes' ? true : false,
|
22 |
'sortable' => get_option( 'sportspress_enable_sortable_tables', 'yes' ) == 'yes' ? true : false,
|
44 |
$calendar->order = $order;
|
45 |
$data = $calendar->data();
|
46 |
$usecolumns = $calendar->columns;
|
47 |
+
$title_format = get_option( 'sportspress_event_list_title_format', 'title' );
|
48 |
+
$time_format = get_option( 'sportspress_event_list_time_format', 'combined' );
|
49 |
|
50 |
if ( isset( $columns ) ):
|
51 |
if ( is_array( $columns ) )
|
53 |
else
|
54 |
$usecolumns = explode( ',', $columns );
|
55 |
endif;
|
56 |
+
|
57 |
+
if ( $id ) {
|
58 |
+
echo '<h4 class="sp-table-caption">' . get_the_title( $id ) . '</h4>';
|
59 |
+
}
|
60 |
?>
|
61 |
<div class="sp-template sp-template-event-list">
|
62 |
<div class="sp-table-wrapper<?php if ( $scrollable ) { ?> sp-scrollable-table-wrapper<?php } ?>">
|
66 |
<?php
|
67 |
echo '<th class="data-date">' . __( 'Date', 'sportspress' ) . '</th>';
|
68 |
|
69 |
+
switch ( $title_format ) {
|
70 |
+
case 'homeaway':
|
71 |
+
if ( sp_column_active( $usecolumns, 'event' ) ) {
|
72 |
+
echo '<th class="data-home">' . __( 'Home', 'sportspress' ) . '</th>';
|
73 |
+
|
74 |
+
if ( 'combined' == $time_format && sp_column_active( $usecolumns, 'time' ) ) {
|
75 |
+
echo '<th class="data-time"> </th>';
|
76 |
+
} elseif ( in_array( $time_format, array( 'separate', 'results' ) ) && sp_column_active( $usecolumns, 'results' ) ) {
|
77 |
+
echo '<th class="data-results"> </th>';
|
78 |
+
}
|
79 |
+
|
80 |
+
echo '<th class="data-away">' . __( 'Away', 'sportspress' ) . '</th>';
|
81 |
+
|
82 |
+
if ( in_array( $time_format, array( 'separate', 'time' ) ) && sp_column_active( $usecolumns, 'time' ) ) {
|
83 |
+
echo '<th class="data-time">' . __( 'Time', 'sportspress' ) . '</th>';
|
84 |
+
}
|
85 |
+
}
|
86 |
+
break;
|
87 |
+
default:
|
88 |
+
if ( sp_column_active( $usecolumns, 'event' ) ) {
|
89 |
+
if ( $title_format == 'teams' )
|
90 |
+
echo '<th class="data-teams">' . __( 'Teams', 'sportspress' ) . '</th>';
|
91 |
+
else
|
92 |
+
echo '<th class="data-event">' . __( 'Event', 'sportspress' ) . '</th>';
|
93 |
+
}
|
94 |
+
|
95 |
+
switch ( $time_format ) {
|
96 |
+
case 'separate':
|
97 |
+
if ( sp_column_active( $usecolumns, 'time' ) )
|
98 |
+
echo '<th class="data-time">' . __( 'Time', 'sportspress' ) . '</th>';
|
99 |
+
if ( sp_column_active( $usecolumns, 'results' ) )
|
100 |
+
echo '<th class="data-results">' . __( 'Results', 'sportspress' ) . '</th>';
|
101 |
+
break;
|
102 |
+
case 'time':
|
103 |
+
if ( sp_column_active( $usecolumns, 'time' ) )
|
104 |
+
echo '<th class="data-time">' . __( 'Time', 'sportspress' ) . '</th>';
|
105 |
+
break;
|
106 |
+
case 'results':
|
107 |
+
if ( sp_column_active( $usecolumns, 'results' ) )
|
108 |
+
echo '<th class="data-results">' . __( 'Results', 'sportspress' ) . '</th>';
|
109 |
+
break;
|
110 |
+
default:
|
111 |
+
if ( sp_column_active( $usecolumns, 'time' ) )
|
112 |
+
echo '<th class="data-time">' . __( 'Time/Results', 'sportspress' ) . '</th>';
|
113 |
+
}
|
114 |
+
}
|
115 |
+
|
116 |
+
if ( sp_column_active( $usecolumns, 'league' ) )
|
117 |
echo '<th class="data-league">' . __( 'Competition', 'sportspress' ) . '</th>';
|
118 |
|
119 |
+
if ( sp_column_active( $usecolumns, 'season' ) )
|
120 |
echo '<th class="data-season">' . __( 'Season', 'sportspress' ) . '</th>';
|
121 |
|
122 |
+
if ( sp_column_active( $usecolumns, 'venue' ) )
|
123 |
echo '<th class="data-venue">' . __( 'Venue', 'sportspress' ) . '</th>';
|
124 |
|
125 |
+
if ( sp_column_active( $usecolumns, 'article' ) )
|
126 |
echo '<th class="data-article">' . __( 'Article', 'sportspress' ) . '</th>';
|
127 |
?>
|
128 |
</tr>
|
143 |
$main_results = sp_get_main_results( $event );
|
144 |
|
145 |
$teams_output = '';
|
146 |
+
$teams_array = array();
|
147 |
+
$team_logos = array();
|
148 |
|
149 |
if ( $teams ):
|
150 |
foreach ( $teams as $team ):
|
151 |
$name = get_the_title( $team );
|
152 |
if ( $name ):
|
153 |
+
|
154 |
+
if ( $show_team_logo ):
|
155 |
+
$name = sp_get_logo( $team, 'mini' ) . ' ' . $name;
|
156 |
+
$team_logos[] = sp_get_logo( $team, 'mini' );
|
157 |
+
endif;
|
158 |
+
|
159 |
if ( $link_teams ):
|
160 |
$team_output = '<a href="' . get_post_permalink( $team ) . '">' . $name . '</a>';
|
161 |
else:
|
183 |
|
184 |
echo '<td class="data-date"><a href="' . get_permalink( $event->ID ) . '"><date>' . get_post_time( 'Y-m-d H:i:s', false, $event ) . '</date>' . get_post_time( get_option( 'date_format' ), false, $event, true ) . '</a></td>';
|
185 |
|
186 |
+
switch ( $title_format ) {
|
187 |
+
case 'homeaway':
|
188 |
+
if ( sp_column_active( $usecolumns, 'event' ) ) {
|
189 |
+
$team = array_shift( $teams_array );
|
190 |
+
echo '<td class="data-home">' . $team . '</td>';
|
191 |
+
|
192 |
+
if ( 'combined' == $time_format && sp_column_active( $usecolumns, 'time' ) ) {
|
193 |
+
echo '<td class="data-time"><a href="' . get_permalink( $event->ID ) . '">';
|
194 |
+
if ( ! empty( $main_results ) ):
|
195 |
+
echo implode( ' - ', $main_results );
|
196 |
+
else:
|
197 |
+
echo '<date> ' . get_post_time( 'H:i:s', false, $event ) . '</date>' . sp_get_time( $event );
|
198 |
+
endif;
|
199 |
+
echo '</a></td>';
|
200 |
+
} elseif ( in_array( $time_format, array( 'separate', 'results' ) ) && sp_column_active( $usecolumns, 'results' ) ) {
|
201 |
+
echo '<td class="data-results"><a href="' . get_permalink( $event->ID ) . '">';
|
202 |
+
if ( ! empty( $main_results ) ):
|
203 |
+
echo implode( ' - ', $main_results );
|
204 |
+
else:
|
205 |
+
echo '-';
|
206 |
+
endif;
|
207 |
+
echo '</a></td>';
|
208 |
+
}
|
209 |
+
|
210 |
+
$team = array_shift( $teams_array );
|
211 |
+
echo '<td class="data-away">' . $team . '</td>';
|
212 |
+
|
213 |
+
if ( in_array( $time_format, array( 'separate', 'time' ) ) && sp_column_active( $usecolumns, 'time' ) ) {
|
214 |
+
echo '<td class="data-time"><a href="' . get_permalink( $event->ID ) . '">';
|
215 |
+
echo '<date> ' . get_post_time( 'H:i:s', false, $event ) . '</date>' . sp_get_time( $event );
|
216 |
+
echo '</a></td>';
|
217 |
+
}
|
218 |
+
}
|
219 |
+
break;
|
220 |
+
default:
|
221 |
+
if ( sp_column_active( $usecolumns, 'event' ) ) {
|
222 |
+
if ( $title_format == 'teams' )
|
223 |
+
echo '<td class="data-event data-teams">' . $teams_output . '</td>';
|
224 |
+
else
|
225 |
+
echo '<td class="data-event"><a href="' . get_permalink( $event->ID ) . '">' . implode( ' ', $team_logos ) . ' ' . $event->post_title . '</a></td>';
|
226 |
+
}
|
227 |
+
|
228 |
+
switch ( $time_format ) {
|
229 |
+
case 'separate':
|
230 |
+
if ( sp_column_active( $usecolumns, 'time' ) ) {
|
231 |
+
echo '<td class="data-time"><a href="' . get_permalink( $event->ID ) . '">';
|
232 |
+
echo '<date> ' . get_post_time( 'H:i:s', false, $event ) . '</date>' . sp_get_time( $event );
|
233 |
+
echo '</a></td>';
|
234 |
+
}
|
235 |
+
if ( sp_column_active( $usecolumns, 'results' ) ) {
|
236 |
+
echo '<td class="data-results"><a href="' . get_permalink( $event->ID ) . '">';
|
237 |
+
if ( ! empty( $main_results ) ):
|
238 |
+
echo implode( ' - ', $main_results );
|
239 |
+
else:
|
240 |
+
echo '-';
|
241 |
+
endif;
|
242 |
+
echo '</a></td>';
|
243 |
+
}
|
244 |
+
break;
|
245 |
+
case 'time':
|
246 |
+
if ( sp_column_active( $usecolumns, 'time' ) ) {
|
247 |
+
echo '<td class="data-time"><a href="' . get_permalink( $event->ID ) . '">';
|
248 |
+
echo '<date> ' . get_post_time( 'H:i:s', false, $event ) . '</date>' . sp_get_time( $event );
|
249 |
+
echo '</a></td>';
|
250 |
+
}
|
251 |
+
break;
|
252 |
+
case 'results':
|
253 |
+
if ( sp_column_active( $usecolumns, 'results' ) ) {
|
254 |
+
echo '<td class="data-results"><a href="' . get_permalink( $event->ID ) . '">';
|
255 |
+
if ( ! empty( $main_results ) ):
|
256 |
+
echo implode( ' - ', $main_results );
|
257 |
+
else:
|
258 |
+
echo '-';
|
259 |
+
endif;
|
260 |
+
echo '</a></td>';
|
261 |
+
}
|
262 |
+
break;
|
263 |
+
default:
|
264 |
+
if ( sp_column_active( $usecolumns, 'time' ) ) {
|
265 |
+
echo '<td class="data-time"><a href="' . get_permalink( $event->ID ) . '">';
|
266 |
+
if ( ! empty( $main_results ) ):
|
267 |
+
echo implode( ' - ', $main_results );
|
268 |
+
else:
|
269 |
+
echo '<date> ' . get_post_time( 'H:i:s', false, $event ) . '</date>' . sp_get_time( $event );
|
270 |
+
endif;
|
271 |
+
echo '</a></td>';
|
272 |
+
}
|
273 |
+
}
|
274 |
+
}
|
275 |
+
|
276 |
+
if ( sp_column_active( $usecolumns, 'league' ) ):
|
277 |
echo '<td class="data-league">';
|
278 |
$leagues = get_the_terms( $event->ID, 'sp_league' );
|
279 |
if ( $leagues ): foreach ( $leagues as $league ):
|
282 |
echo '</td>';
|
283 |
endif;
|
284 |
|
285 |
+
if ( sp_column_active( $usecolumns, 'season' ) ):
|
286 |
echo '<td class="data-season">';
|
287 |
$seasons = get_the_terms( $event->ID, 'sp_season' );
|
288 |
if ( $seasons ): foreach ( $seasons as $season ):
|
291 |
echo '</td>';
|
292 |
endif;
|
293 |
|
294 |
+
if ( sp_column_active( $usecolumns, 'venue' ) ):
|
295 |
echo '<td class="data-venue">';
|
296 |
if ( $link_venues ):
|
297 |
the_terms( $event->ID, 'sp_venue' );
|
304 |
echo '</td>';
|
305 |
endif;
|
306 |
|
307 |
+
if ( sp_column_active( $usecolumns, 'article' ) ):
|
308 |
echo '<td class="data-article">
|
309 |
<a href="' . get_permalink( $event->ID ) . '">';
|
310 |
|
333 |
</tbody>
|
334 |
</table>
|
335 |
</div>
|
336 |
+
<?php
|
337 |
+
if ( $id && $show_all_events_link )
|
338 |
+
echo '<a class="sp-calendar-link sp-view-all-link" href="' . get_permalink( $id ) . '">' . __( 'View all events', 'sportspress' ) . '</a>';
|
339 |
+
?>
|
340 |
+
</div>
|
templates/event-performance.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
-
* @version 1.
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -42,6 +42,7 @@ if ( is_array( $teams ) ):
|
|
42 |
|
43 |
// Get performance ids for icons
|
44 |
if ( $mode == 'icons' ):
|
|
|
45 |
$performance_ids = array();
|
46 |
$performance_posts = get_posts( array( 'posts_per_page' => -1, 'post_type' => 'sp_performance' ) );
|
47 |
foreach ( $performance_posts as $post ):
|
@@ -50,7 +51,7 @@ if ( is_array( $teams ) ):
|
|
50 |
endif;
|
51 |
|
52 |
foreach( $teams as $index => $team_id ):
|
53 |
-
if (
|
54 |
|
55 |
// Get results for players in the team
|
56 |
$players = sp_array_between( (array)get_post_meta( $id, 'sp_player', false ), 0, $index );
|
@@ -60,12 +61,18 @@ if ( is_array( $teams ) ):
|
|
60 |
|
61 |
$totals = array();
|
62 |
|
63 |
-
|
|
|
|
|
|
|
|
|
64 |
|
65 |
if ( ! $show_team_players && ! $show_staff && ! $show_total ) continue;
|
66 |
?>
|
67 |
-
<div class="sp-template sp-template-event-performance">
|
68 |
-
|
|
|
|
|
69 |
<?php
|
70 |
if ( $show_staff ):
|
71 |
sp_get_template( 'event-staff.php', array( 'id' => $id, 'index' => $index ) );
|
@@ -178,7 +185,7 @@ if ( is_array( $teams ) ):
|
|
178 |
?>
|
179 |
</tbody>
|
180 |
<?php endif; ?>
|
181 |
-
<?php if ( $
|
182 |
<<?php echo ( $show_team_players ? 'tfoot' : 'tbody' ); ?>>
|
183 |
<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">
|
184 |
<?php
|
@@ -187,7 +194,7 @@ if ( is_array( $teams ) ):
|
|
187 |
echo '<td class="data-name">' . __( 'Total', 'sportspress' ) . '</td>';
|
188 |
endif;
|
189 |
|
190 |
-
$row = $data
|
191 |
|
192 |
if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
|
193 |
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
+
* @version 1.5
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
42 |
|
43 |
// Get performance ids for icons
|
44 |
if ( $mode == 'icons' ):
|
45 |
+
$responsive = false;
|
46 |
$performance_ids = array();
|
47 |
$performance_posts = get_posts( array( 'posts_per_page' => -1, 'post_type' => 'sp_performance' ) );
|
48 |
foreach ( $performance_posts as $post ):
|
51 |
endif;
|
52 |
|
53 |
foreach( $teams as $index => $team_id ):
|
54 |
+
if ( -1 == $team_id ) continue;
|
55 |
|
56 |
// Get results for players in the team
|
57 |
$players = sp_array_between( (array)get_post_meta( $id, 'sp_player', false ), 0, $index );
|
61 |
|
62 |
$totals = array();
|
63 |
|
64 |
+
if ( $team_id ) {
|
65 |
+
$data = sp_array_combine( $players, sp_array_value( $performance, $team_id, array() ) );
|
66 |
+
} else {
|
67 |
+
$data = sp_array_value( array_values( $performance ), $index );
|
68 |
+
}
|
69 |
|
70 |
if ( ! $show_team_players && ! $show_staff && ! $show_total ) continue;
|
71 |
?>
|
72 |
+
<div class="sp-template sp-template-event-performance sp-template-event-performance-<?php echo $mode; ?>">
|
73 |
+
<?php if ( $team_id ): ?>
|
74 |
+
<h4 class="sp-table-caption"><?php echo get_the_title( $team_id ); ?></h4>
|
75 |
+
<?php endif; ?>
|
76 |
<?php
|
77 |
if ( $show_staff ):
|
78 |
sp_get_template( 'event-staff.php', array( 'id' => $id, 'index' => $index ) );
|
185 |
?>
|
186 |
</tbody>
|
187 |
<?php endif; ?>
|
188 |
+
<?php if ( $show_total ): ?>
|
189 |
<<?php echo ( $show_team_players ? 'tfoot' : 'tbody' ); ?>>
|
190 |
<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">
|
191 |
<?php
|
194 |
echo '<td class="data-name">' . __( 'Total', 'sportspress' ) . '</td>';
|
195 |
endif;
|
196 |
|
197 |
+
$row = sp_array_value( $data, 0, array() );
|
198 |
|
199 |
if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
|
200 |
|
templates/event-venue.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
-
* @version 1.
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -43,11 +43,11 @@ foreach( $venues as $venue ):
|
|
43 |
</thead>
|
44 |
<?php if ( $address != null || ( $show_maps && $latitude != null && $longitude != null ) ): ?>
|
45 |
<tbody>
|
46 |
-
<tr>
|
47 |
<td><?php echo $address; ?></td>
|
48 |
</tr>
|
49 |
<?php if ( $show_maps && $latitude != null && $longitude != null ): ?>
|
50 |
-
<tr>
|
51 |
<td><?php sp_get_template( 'venue-map.php', array( 'meta' => $meta ) ); ?></td>
|
52 |
</tr>
|
53 |
<?php endif; ?>
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
+
* @version 1.5
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
43 |
</thead>
|
44 |
<?php if ( $address != null || ( $show_maps && $latitude != null && $longitude != null ) ): ?>
|
45 |
<tbody>
|
46 |
+
<tr class="sp-event-venue-address-row">
|
47 |
<td><?php echo $address; ?></td>
|
48 |
</tr>
|
49 |
<?php if ( $show_maps && $latitude != null && $longitude != null ): ?>
|
50 |
+
<tr class="sp-event-venue-map-row">
|
51 |
<td><?php sp_get_template( 'venue-map.php', array( 'meta' => $meta ) ); ?></td>
|
52 |
</tr>
|
53 |
<?php endif; ?>
|
templates/player-gallery-thumbnail.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
-
* @version
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -28,7 +28,7 @@ if ( $player_number )
|
|
28 |
|
29 |
// Add caption tag if has caption
|
30 |
if ( $captiontag && $caption )
|
31 |
-
$caption = '<' . $captiontag . ' class="wp-caption-text gallery-caption small-3 columns">' . wptexturize( $caption ) . '</' . $captiontag . '>';
|
32 |
|
33 |
if ( $link_posts )
|
34 |
$caption = '<a href="' . get_permalink( $id ) . '">' . $caption . '</a>';
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
+
* @version 1.5
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
28 |
|
29 |
// Add caption tag if has caption
|
30 |
if ( $captiontag && $caption )
|
31 |
+
$caption = '<' . $captiontag . ' class="wp-caption-text gallery-caption small-3 columns' . ( $player_number ? ' has-number' : '' ) . '">' . wptexturize( $caption ) . '</' . $captiontag . '>';
|
32 |
|
33 |
if ( $link_posts )
|
34 |
$caption = '<a href="' . get_permalink( $id ) . '">' . $caption . '</a>';
|
templates/player-gallery.php
CHANGED
@@ -4,11 +4,12 @@
|
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
-
* @version 1.
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
11 |
|
|
|
12 |
$defaults = array(
|
13 |
'id' => get_the_ID(),
|
14 |
'number' => -1,
|
@@ -69,7 +70,7 @@ else:
|
|
69 |
endif;
|
70 |
|
71 |
$gallery_style = $gallery_div = '';
|
72 |
-
if ( apply_filters( 'use_default_gallery_style',
|
73 |
$gallery_style = "
|
74 |
<style type='text/css'>
|
75 |
#{$selector} {
|
@@ -139,13 +140,20 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
|
|
139 |
|
140 |
endif; endforeach;
|
141 |
|
142 |
-
|
|
|
|
|
143 |
|
144 |
endforeach;
|
145 |
-
|
146 |
-
echo "</div>\n";
|
147 |
|
148 |
-
if ( $
|
|
|
|
|
|
|
|
|
149 |
echo '<a class="sp-player-list-link sp-view-all-link" href="' . get_permalink( $id ) . '">' . __( 'View all players', 'sportspress' ) . '</a>';
|
|
|
|
|
|
|
150 |
?>
|
151 |
</div>
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
+
* @version 1.5
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
11 |
|
12 |
+
$html5 = current_theme_supports( 'html5', 'gallery' );
|
13 |
$defaults = array(
|
14 |
'id' => get_the_ID(),
|
15 |
'number' => -1,
|
70 |
endif;
|
71 |
|
72 |
$gallery_style = $gallery_div = '';
|
73 |
+
if ( apply_filters( 'use_default_gallery_style', ! $html5 ) )
|
74 |
$gallery_style = "
|
75 |
<style type='text/css'>
|
76 |
#{$selector} {
|
140 |
|
141 |
endif; endforeach;
|
142 |
|
143 |
+
if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) {
|
144 |
+
echo '<br style="clear: both" />';
|
145 |
+
}
|
146 |
|
147 |
endforeach;
|
|
|
|
|
148 |
|
149 |
+
if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) {
|
150 |
+
echo '<br style="clear: both" />';
|
151 |
+
}
|
152 |
+
|
153 |
+
if ( $show_all_players_link ) {
|
154 |
echo '<a class="sp-player-list-link sp-view-all-link" href="' . get_permalink( $id ) . '">' . __( 'View all players', 'sportspress' ) . '</a>';
|
155 |
+
}
|
156 |
+
|
157 |
+
echo "</div>\n";
|
158 |
?>
|
159 |
</div>
|
templates/player-statistics.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
-
* @version 1.
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -16,6 +16,7 @@ $player = new SP_Player( $id );
|
|
16 |
|
17 |
$scrollable = get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false;
|
18 |
$responsive = get_option( 'sportspress_enable_responsive_tables', 'yes' ) == 'yes' ? true : false;
|
|
|
19 |
$leagues = get_the_terms( $id, 'sp_league' );
|
20 |
|
21 |
// Loop through statistics for each league
|
@@ -31,7 +32,7 @@ if ( is_array( $leagues ) ):
|
|
31 |
|
32 |
// Skip if there are no rows in the table
|
33 |
if ( empty( $data ) )
|
34 |
-
|
35 |
|
36 |
$output = '<h4 class="sp-table-caption">' . $league->name . '</h4>' .
|
37 |
'<div class="sp-table-wrapper' . ( $scrollable ? ' sp-scrollable-table-wrapper' : '' ) . '">' .
|
@@ -67,3 +68,54 @@ if ( is_array( $leagues ) ):
|
|
67 |
<?php
|
68 |
endforeach;
|
69 |
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
*
|
5 |
* @author ThemeBoy
|
6 |
* @package SportsPress/Templates
|
7 |
+
* @version 1.5
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
16 |
|
17 |
$scrollable = get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false;
|
18 |
$responsive = get_option( 'sportspress_enable_responsive_tables', 'yes' ) == 'yes' ? true : false;
|
19 |
+
$show_total = get_option( 'sportspress_player_show_total', 'no' ) == 'yes' ? true : false;
|
20 |
$leagues = get_the_terms( $id, 'sp_league' );
|
21 |
|
22 |
// Loop through statistics for each league
|
32 |
|
33 |
// Skip if there are no rows in the table
|
34 |
if ( empty( $data ) )
|
35 |
+
continue;
|
36 |
|
37 |
$output = '<h4 class="sp-table-caption">' . $league->name . '</h4>' .
|
38 |
'<div class="sp-table-wrapper' . ( $scrollable ? ' sp-scrollable-table-wrapper' : '' ) . '">' .
|
68 |
<?php
|
69 |
endforeach;
|
70 |
endif;
|
71 |
+
|
72 |
+
if ( $show_total ):
|
73 |
+
$data = $player->data( 0 );
|
74 |
+
|
75 |
+
// The first row should be column labels
|
76 |
+
$labels = $data[0];
|
77 |
+
|
78 |
+
// Remove the first row to leave us with the actual data
|
79 |
+
unset( $data[0] );
|
80 |
+
|
81 |
+
// Skip if there are no rows in the table
|
82 |
+
if ( empty( $data ) )
|
83 |
+
return false;
|
84 |
+
|
85 |
+
$output = '<h4 class="sp-table-caption">' . __( 'Career Total', 'sportspress' ) . '</h4>' .
|
86 |
+
'<div class="sp-table-wrapper' . ( $scrollable ? ' sp-scrollable-table-wrapper' : '' ) . '">' .
|
87 |
+
'<table class="sp-player-statistics sp-data-table' . ( $responsive ? ' sp-responsive-table' : '' ) . '">' . '<thead>' . '<tr>';
|
88 |
+
|
89 |
+
foreach( $labels as $key => $label ):
|
90 |
+
if ( 'team' == $key )
|
91 |
+
continue;
|
92 |
+
$output .= '<th class="data-' . $key . '">' . $label . '</th>';
|
93 |
+
endforeach;
|
94 |
+
|
95 |
+
$output .= '</tr>' . '</thead>' . '<tbody>';
|
96 |
+
|
97 |
+
$i = 0;
|
98 |
+
|
99 |
+
foreach( $data as $season_id => $row ):
|
100 |
+
|
101 |
+
$output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
|
102 |
+
|
103 |
+
foreach( $labels as $key => $value ):
|
104 |
+
if ( 'team' == $key )
|
105 |
+
continue;
|
106 |
+
$output .= '<td class="data-' . $key . '">' . sp_array_value( $row, $key, '—' ) . '</td>';
|
107 |
+
endforeach;
|
108 |
+
|
109 |
+
$output .= '</tr>';
|
110 |
+
|
111 |
+
$i++;
|
112 |
+
|
113 |
+
endforeach;
|
114 |
+
|
115 |
+
$output .= '</tbody>' . '</table>' . '</div>';
|
116 |
+
?>
|
117 |
+
<div class="sp-template sp-template-player-statistics sp-template-player-total">
|
118 |
+
<?php echo $output; ?>
|
119 |
+
</div>
|
120 |
+
<?php
|
121 |
+
endif;
|