SportsPress – Sports Club & League Manager - Version 1.7.7

Version Description

  • Tweak - Add option to filter teams in event by competition and season with no filter as default setting.
Download this release

Release Info

Developer brianmiyaji
Plugin Icon 128x128 SportsPress – Sports Club & League Manager
Version 1.7.7
Comparing to
See all releases

Code changes from version 1.6.1 to 1.7.7

Files changed (131) hide show
  1. assets/css/activation.css +1 -15
  2. assets/css/admin.css +72 -3
  3. assets/css/menu.css +14 -1
  4. assets/css/sportspress.css +9 -1
  5. assets/fonts/sportspress.eot +0 -0
  6. assets/fonts/sportspress.svg +5 -0
  7. assets/fonts/sportspress.ttf +0 -0
  8. assets/fonts/sportspress.woff +0 -0
  9. assets/images/modules/rookie.png +0 -0
  10. assets/js/admin/sportspress-admin.js +26 -19
  11. includes/admin/class-sp-admin-ajax.php +20 -83
  12. includes/admin/class-sp-admin-menus.php +3 -18
  13. includes/admin/class-sp-admin-sports.php +13 -1
  14. includes/admin/class-sp-admin-welcome.php +16 -9
  15. includes/admin/class-sp-admin.php +1 -5
  16. includes/admin/importers/class-sp-player-importer.php +2 -2
  17. includes/admin/post-types/class-sp-admin-cpt-event.php +2 -1
  18. includes/admin/post-types/class-sp-admin-cpt-player.php +2 -2
  19. includes/admin/post-types/class-sp-admin-meta-boxes.php +23 -32
  20. includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php +18 -59
  21. includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php +36 -39
  22. includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php +49 -18
  23. includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php +17 -10
  24. includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php +21 -30
  25. includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php +8 -36
  26. includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php +2 -2
  27. includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php +7 -35
  28. includes/admin/settings/class-sp-settings-events.php +157 -29
  29. includes/admin/settings/class-sp-settings-general.php +62 -29
  30. includes/admin/settings/class-sp-settings-modules.php +68 -38
  31. includes/admin/settings/class-sp-settings-players.php +4 -4
  32. includes/admin/sp-admin-functions.php +2 -1
  33. includes/admin/views/html-admin-config.php +58 -25
  34. includes/admin/views/html-admin-overview.php +0 -336
  35. includes/admin/views/html-notice-template-check.php +1 -1
  36. includes/admin/views/html-notice-theme-support.php +4 -2
  37. includes/class-sp-ajax.php +3 -3
  38. includes/class-sp-calendar.php +6 -4
  39. includes/class-sp-event.php +180 -8
  40. includes/class-sp-frontend-scripts.php +3 -2
  41. includes/class-sp-league-table.php +29 -18
  42. includes/class-sp-modules.php +5 -22
  43. includes/class-sp-player-list.php +10 -1
  44. includes/class-sp-player.php +17 -4
  45. includes/class-sp-post-types.php +2 -2
  46. includes/class-sp-team.php +6 -3
  47. includes/class-sp-template-loader.php +8 -38
  48. includes/sp-api-functions.php +34 -3
  49. includes/sp-core-functions.php +42 -1
  50. includes/sp-formatting-functions.php +12 -1
  51. includes/sp-option-filters.php +22 -0
  52. includes/sp-template-hooks.php +26 -9
  53. includes/widgets/class-sp-widget-player-gallery.php +1 -1
  54. includes/widgets/class-sp-widget-player-list.php +1 -1
  55. languages/sportspress-ar.mo +0 -0
  56. languages/sportspress-az.mo +0 -0
  57. languages/sportspress-be_BY.mo +0 -0
  58. languages/sportspress-bg_BG.mo +0 -0
  59. languages/sportspress-bn_BD.mo +0 -0
  60. languages/sportspress-bs_BA.mo +0 -0
  61. languages/sportspress-ca.mo +0 -0
  62. languages/sportspress-cs_CZ.mo +0 -0
  63. languages/sportspress-cy.mo +0 -0
  64. languages/sportspress-da_DK.mo +0 -0
  65. languages/sportspress-de_DE.mo +0 -0
  66. languages/sportspress-el.mo +0 -0
  67. languages/sportspress-es_ES.mo +0 -0
  68. languages/sportspress-et.mo +0 -0
  69. languages/sportspress-eu.mo +0 -0
  70. languages/sportspress-fa_IR.mo +0 -0
  71. languages/sportspress-fi.mo +0 -0
  72. languages/sportspress-fr_FR.mo +0 -0
  73. languages/sportspress-gl_ES.mo +0 -0
  74. languages/sportspress-he_IL.mo +0 -0
  75. languages/sportspress-hr.mo +0 -0
  76. languages/sportspress-hu_HU.mo +0 -0
  77. languages/sportspress-hy.mo +0 -0
  78. languages/sportspress-id_ID.mo +0 -0
  79. languages/sportspress-is_IS.mo +0 -0
  80. languages/sportspress-it_IT.mo +0 -0
  81. languages/sportspress-ja.mo +0 -0
  82. languages/sportspress-kk.mo +0 -0
  83. languages/sportspress-kn.mo +0 -0
  84. languages/sportspress-ko_KR.mo +0 -0
  85. languages/sportspress-mk_MK.mo +0 -0
  86. languages/sportspress-ms_MY.mo +0 -0
  87. languages/sportspress-nb_NO.mo +0 -0
  88. languages/sportspress-nl_NL.mo +0 -0
  89. languages/sportspress-nn_NO.mo +0 -0
  90. languages/sportspress-pl_PL.mo +0 -0
  91. languages/sportspress-pt_BR.mo +0 -0
  92. languages/sportspress-pt_PT.mo +0 -0
  93. languages/sportspress-ro_RO.mo +0 -0
  94. languages/sportspress-ru_RU.mo +0 -0
  95. languages/sportspress-sk_SK.mo +0 -0
  96. languages/sportspress-sl_SI.mo +0 -0
  97. languages/sportspress-sq.mo +0 -0
  98. languages/sportspress-sr_RS.mo +0 -0
  99. languages/sportspress-sv_SE.mo +0 -0
  100. languages/sportspress-te.mo +0 -0
  101. languages/sportspress-th.mo +0 -0
  102. languages/sportspress-tl.mo +0 -0
  103. languages/sportspress-tr_TR.mo +0 -0
  104. languages/sportspress-uk.mo +0 -0
  105. languages/sportspress-ur.mo +0 -0
  106. languages/sportspress-vi.mo +0 -0
  107. languages/sportspress-zh_CN.mo +0 -0
  108. languages/sportspress-zh_TW.mo +0 -0
  109. languages/sportspress.pot +521 -421
  110. license.txt +5 -17
  111. modules/sportspress-countdowns.php +4 -6
  112. modules/sportspress-event-videos.php +4 -6
  113. modules/sportspress-importers.php +60 -0
  114. modules/sportspress-individual-mode.php +18 -5
  115. modules/sportspress-overview.php +402 -0
  116. modules/sportspress-tutorials.php +163 -0
  117. modules/sportspress-widgets.php +60 -0
  118. presets/cricket.json +25 -8
  119. presets/footy.json +1 -1
  120. presets/ice-hockey.json +21 -11
  121. presets/soccer.json +2 -2
  122. readme.txt +59 -4
  123. sportspress.php +13 -15
  124. templates/event-blocks.php +10 -2
  125. templates/event-performance-table-combined.php +159 -0
  126. templates/event-performance-table.php +257 -0
  127. templates/event-performance.php +164 -318
  128. templates/event-staff.php +26 -24
  129. templates/event-venue.php +8 -8
  130. templates/player-details.php +17 -14
  131. templates/player-statistics.php +36 -38
assets/css/activation.css CHANGED
@@ -79,20 +79,6 @@ div.sportspress-message a.button-secondary {
79
  *zoom: 1;
80
  }
81
 
82
- .sportspress-steps .welcome-icon:before {
83
- font: 400 20px/1 dashicons;
84
- speak: none;
85
- display: inline-block;
86
- padding: 0 10px 0 0;
87
- top: -1px;
88
- position: relative;
89
- -webkit-font-smoothing: antialiased;
90
- -moz-osx-font-smoothing: grayscale;
91
- text-decoration: none!important;
92
- vertical-align: top;
93
  color: #888;
94
- }
95
-
96
- .sportspress-steps .sp-welcome-icon:before {
97
- font-family: sportspress;
98
  }
79
  *zoom: 1;
80
  }
81
 
82
+ .sportspress-steps .welcome-icon i:before {
 
 
 
 
 
 
 
 
 
 
83
  color: #888;
 
 
 
 
84
  }
assets/css/admin.css CHANGED
@@ -8,7 +8,7 @@
8
  }
9
 
10
  .post-state-format.post-format-league:before, .post-format-icon.post-format-league:before, a.post-state-format.format-league:before {
11
- content: "\f313";
12
  }
13
 
14
  .post-state-format.post-format-friendly:before, .post-format-icon.post-format-friendly:before, a.post-state-format.format-friendly:before {
@@ -150,6 +150,18 @@
150
  text-align: right;
151
  }
152
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  .sportspress table.form-table .sp-color-box {
154
  border: 1px solid #ccc;
155
  box-shadow: 1px 1px 3px rgba(0,0,0,.2);
@@ -208,7 +220,8 @@ table.widefat.sp-data-table img {
208
  vertical-align: top;
209
  }
210
 
211
- table.widefat.sp-data-table th.column-outcome {
 
212
  width: 10em;
213
  }
214
 
@@ -284,7 +297,12 @@ table.widefat.sp-data-table tfoot td {
284
  border-top: 1px solid #e1e1e1;
285
  }
286
 
287
- table.widefat select.sp-outcome {
 
 
 
 
 
288
  width: 100%;
289
  }
290
 
@@ -758,6 +776,57 @@ table.sp-status-table td mark.yes {
758
  width: auto;
759
  }
760
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
761
  /* Media Queries */
762
  @media only screen and (max-width: 850px) {
763
  .sp-modules-wrapper {
8
  }
9
 
10
  .post-state-format.post-format-league:before, .post-format-icon.post-format-league:before, a.post-state-format.format-league:before {
11
+ content: "\f481";
12
  }
13
 
14
  .post-state-format.post-format-friendly:before, .post-format-icon.post-format-friendly:before, a.post-state-format.format-friendly:before {
150
  text-align: right;
151
  }
152
 
153
+ .sportspress table.form-table .sp-color-option {
154
+ max-width: 225px;
155
+ }
156
+
157
+ .sportspress table.form-table .sp-color-option table {
158
+ outline: 1px solid #ddd;
159
+ }
160
+
161
+ .sportspress table.form-table .sp-custom-colors {
162
+ padding: 5px 15px 15px;
163
+ }
164
+
165
  .sportspress table.form-table .sp-color-box {
166
  border: 1px solid #ccc;
167
  box-shadow: 1px 1px 3px rgba(0,0,0,.2);
220
  vertical-align: top;
221
  }
222
 
223
+ table.widefat.sp-data-table th.column-outcome,
224
+ table.widefat.sp-data-table th.column-position {
225
  width: 10em;
226
  }
227
 
297
  border-top: 1px solid #e1e1e1;
298
  }
299
 
300
+ table.widefat.sp-data-table tfoot tr.sp-total {
301
+ background: #f9f9f9;
302
+ }
303
+
304
+ table.widefat select.sp-outcome,
305
+ table.widefat select.sp-position {
306
  width: 100%;
307
  }
308
 
776
  width: auto;
777
  }
778
 
779
+ /* Tutorials */
780
+ .sp-tutorials-list {
781
+ margin: -6px;
782
+ width: 100%;
783
+ }
784
+ .sp-tutorials-list li {
785
+ display: inline-block;
786
+ width: 342px;
787
+ max-width: 100%;
788
+ margin: 6px;
789
+ }
790
+ .sp-tutorials-list li strong {
791
+ background: #aaa;
792
+ display: inline-block;
793
+ color: #ffffff;
794
+ padding: 0 6px;
795
+ border-radius: 3px;
796
+ text-align: center;
797
+ font-size: 12px;
798
+ margin-right: 3px;
799
+ }
800
+ .sp-tutorials-list li:hover strong {
801
+ background: #00a69c;
802
+ }
803
+ .sp-tutorials-list li .sp-popup {
804
+ float: right;
805
+ color: #aaa;
806
+ }
807
+ .sp-tutorials-list li:hover .sp-popup {
808
+ color: #00a69c;
809
+ }
810
+ .sp-tutorials-list li iframe {
811
+ display: block;
812
+ }
813
+
814
+ /* ThemeBoy */
815
+ .toplevel_page_themeboy #wpbody {
816
+ margin-left: -20px;
817
+ padding-bottom: 100%;
818
+ }
819
+ .toplevel_page_themeboy .themeboy-container {
820
+ padding-bottom: 100%;
821
+ }
822
+ .toplevel_page_themeboy .themeboy-container iframe {
823
+ border: 0;
824
+ width: 100%;
825
+ height: 100%;
826
+ position: absolute;
827
+ display: block;
828
+ }
829
+
830
  /* Media Queries */
831
  @media only screen and (max-width: 850px) {
832
  .sp-modules-wrapper {
assets/css/menu.css CHANGED
@@ -63,7 +63,7 @@
63
  content: "\f182";
64
  }
65
  .sp-icon-league:before {
66
- content: "\f313";
67
  }
68
  .sp-icon-friendly:before {
69
  content: "\f328";
@@ -107,8 +107,21 @@
107
  .sp-icon-availability:before {
108
  content: "\f508";
109
  }
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
  #adminmenu #toplevel_page_sportspress .toplevel_page_sportspress div.wp-menu-image:before,
 
112
  #adminmenu #menu-posts-sp_event .menu-icon-sp_event div.wp-menu-image:before,
113
  #adminmenu #menu-posts-sp_team .menu-icon-sp_team div.wp-menu-image:before,
114
  #adminmenu #menu-posts-sp_player .menu-icon-sp_player div.wp-menu-image:before,
63
  content: "\f182";
64
  }
65
  .sp-icon-league:before {
66
+ content: "\f481";
67
  }
68
  .sp-icon-friendly:before {
69
  content: "\f328";
107
  .sp-icon-availability:before {
108
  content: "\f508";
109
  }
110
+ .sp-icon-tutorials:before {
111
+ content: "\f118";
112
+ }
113
+ .sp-icon-popup:before {
114
+ content: "\f504";
115
+ }
116
+ .sp-icon-import:before {
117
+ content: "\f316";
118
+ }
119
+ .sp-icon-export:before {
120
+ content: "\f317";
121
+ }
122
 
123
  #adminmenu #toplevel_page_sportspress .toplevel_page_sportspress div.wp-menu-image:before,
124
+ #adminmenu #toplevel_page_themeboy .toplevel_page_themeboy div.wp-menu-image:before,
125
  #adminmenu #menu-posts-sp_event .menu-icon-sp_event div.wp-menu-image:before,
126
  #adminmenu #menu-posts-sp_team .menu-icon-sp_team div.wp-menu-image:before,
127
  #adminmenu #menu-posts-sp_player .menu-icon-sp_player div.wp-menu-image:before,
assets/css/sportspress.css CHANGED
@@ -30,9 +30,11 @@
30
  /* Data Tables */
31
  .sp-scrollable-table-wrapper {
32
  overflow: auto;
 
33
  }
34
  .sp-data-table {
35
  width: 100%;
 
36
  border-spacing: 0;
37
  border-collapse: separate;
38
  }
@@ -147,6 +149,11 @@
147
  cursor: pointer;
148
  }
149
 
 
 
 
 
 
150
  /* Event Performance */
151
  .sp-event-performance .sub-in,
152
  .sp-event-performance .sub-out {
@@ -248,11 +255,12 @@
248
  .widget .sp-event-blocks .sp-event-title {
249
  margin: 10px;
250
  padding: 0;
 
251
  }
252
 
253
  /* Countdowns */
254
  .sp-template-countdown .event-name {
255
- overflow: auto;
256
  }
257
  .sp-template-countdown .team-logo {
258
  width: 20%;
30
  /* Data Tables */
31
  .sp-scrollable-table-wrapper {
32
  overflow: auto;
33
+ position: relative;
34
  }
35
  .sp-data-table {
36
  width: 100%;
37
+ table-layout: auto;
38
  border-spacing: 0;
39
  border-collapse: separate;
40
  }
149
  cursor: pointer;
150
  }
151
 
152
+ /* Event Venue */
153
+ .sp-event-venue thead th {
154
+ white-space: normal;
155
+ }
156
+
157
  /* Event Performance */
158
  .sp-event-performance .sub-in,
159
  .sp-event-performance .sub-out {
255
  .widget .sp-event-blocks .sp-event-title {
256
  margin: 10px;
257
  padding: 0;
258
+ clear: both;
259
  }
260
 
261
  /* Countdowns */
262
  .sp-template-countdown .event-name {
263
+ overflow: visible;
264
  }
265
  .sp-template-countdown .team-logo {
266
  width: 20%;
assets/fonts/sportspress.eot CHANGED
Binary file
assets/fonts/sportspress.svg CHANGED
@@ -7,9 +7,11 @@
7
  <font-face units-per-em="512" ascent="480" descent="-32" />
8
  <missing-glyph horiz-adv-x="512" />
9
  <glyph unicode="&#x20;" d="" horiz-adv-x="256" />
 
10
  <glyph unicode="&#xf108;" d="M409.6 435.2h-307.2c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h307.2c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM179.2 76.8h-51.2v51.2h51.2v-51.2zM179.2 153.6h-51.2v51.2h51.2v-51.2zM179.2 230.4h-51.2v51.2h51.2v-51.2zM281.6 76.8h-51.2v51.2h51.2v-51.2zM281.6 153.6h-51.2v51.2h51.2v-51.2zM281.6 230.4h-51.2v51.2h51.2v-51.2zM384 76.8h-51.2v51.2h51.2v-51.2zM384 153.6h-51.2v51.2h51.2v-51.2zM384 230.4h-51.2v51.2h51.2v-51.2zM384 332.8h-256v51.2h256v-51.2z" />
11
  <glyph unicode="&#xf111;" d="M484.88 328.96l-30.72-222.64c-7.68-54.32-36.72-80.64-92.72-80.64h-264.32c-55.92 0-77.84 26.32-70.16 80.64l30.72 222.64c8.24 54.32 37.28 80.64 93.2 80.64h264.32c56-0.080 77.92-26.4 69.68-80.64zM206.88 359.040c-42.88 0-67.44-30.080-73.28-74.48l-4.88-36c-6.32-44.4 10.4-69.68 53.36-69.68h100.16c13.52 0 11.2-11.84 11.2-11.84-1.44-8.8-6.32-13.2-15.12-13.2h-166.96l-10.080-76.96h201.6c42.88 0 65.84 20.48 72.16 64.88l7.28 49.6c6.32 44.4-10.72 64.88-53.6 64.88h-100.72c-8.8 0-12.64 4.4-11.68 13.2 0 0-0.56 11.84 14.8 11.84h166.4l10.88 77.76h-201.52z" />
12
  <glyph unicode="&#xf116;" d="M435.2 25.6h-358.4c-14.16 0-25.6 11.44-25.6 25.6v358.4c0 14.16 11.44 25.6 25.6 25.6h358.4c14.16 0 25.6-11.44 25.6-25.6v-358.4c0-14.16-11.44-25.6-25.6-25.6zM409.6 384h-307.2v-76.8h307.2v76.8zM409.6 256h-307.2v-179.2h307.2v179.2zM179.2 332.8h-51.2v25.6h51.2v-25.6zM230.4 332.8h-25.6v25.6h25.6v-25.6zM281.6 332.8h-25.6v25.6h25.6v-25.6zM332.8 332.8h-25.6v25.6h25.6v-25.6zM384 332.8h-25.6v25.6h25.6v-25.6z" />
 
13
  <glyph unicode="&#xf145;" d="M384 435.2h-51.2v-51.2h51.2v51.2zM435.2 435.2h-25.6v-76.8h-102.4v76.8h-102.4v-76.8h-102.4v76.8h-25.6c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM409.6 76.8h-307.2v230.4h307.2v-230.4zM179.2 435.2h-51.2v-51.2h51.2v51.2zM281.6 256h-51.2v-51.2h51.2v51.2zM358.4 256h-51.2v-51.2h51.2v51.2zM204.8 179.2h-51.2v-51.2h51.2v51.2zM204.8 256h-51.2v-51.2h51.2v51.2zM281.6 179.2h-51.2v-51.2h51.2v51.2zM358.4 179.2h-51.2v-51.2h51.2v51.2z" />
14
  <glyph unicode="&#xf147;" d="M256 426.667c-92.805 0-185.597-66.375-256-199.111 70.403-132.736 163.195-199.111 256-199.111s185.597 66.375 256 199.111c-70.403 132.736-163.195 199.111-256 199.111zM256 85.334c-67.486 0-135.945 51.43-190.667 142.222 54.722 90.792 123.18 142.222 190.667 142.222s135.945-51.43 190.667-142.222c-54.722-90.792-123.18-142.222-190.667-142.222zM312.889 227.556c0-31.417-25.472-56.889-56.889-56.889s-56.889 25.472-56.889 56.889 25.472 56.889 56.889 56.889 56.889-25.472 56.889-56.889z" />
15
  <glyph unicode="&#xf163;" d="M153.6 332.8h51.2v-51.2h-51.2v51.2zM153.6 256h51.2v-51.2h-51.2v51.2zM153.6 179.2h51.2v-51.2h-51.2v51.2zM256 179.2h102.4v-51.2h-102.4v51.2zM435.2 435.2h-358.4c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM409.6 76.8h-307.2v307.2h307.2v-307.2zM256 256h102.4v-51.2h-102.4v51.2zM256 332.8h102.4v-51.2h-102.4v51.2z" />
@@ -19,6 +21,8 @@
19
  <glyph unicode="&#xf227;" d="M301.84 256c3.44-12.24 5.36-25.12 5.36-38.4 0-77.76-63.040-140.8-140.8-140.8s-140.8 63.040-140.8 140.8 63.040 140.8 140.8 140.8h89.6v-25.6c0-14.16 11.44-25.6 25.6-25.6s25.6 11.44 25.6 25.6v25.6h179.2v-102.4h-184.56z" />
20
  <glyph unicode="&#xf307;" d="M459.6 307.2h-76.8v-179.2h-256v179.2h-76.8v102.4h132.4c10.56-29.84 38.96-51.2 72.4-51.2s61.84 21.36 72.4 51.2h132.4v-102.4zM382.8 102.4v-51.2h-256v51.2h256z" />
21
  <glyph unicode="&#xf309;" d="M435.2 204.8c0-98.96-80.24-179.2-179.2-179.2s-179.2 80.24-179.2 179.2c0 49.52 20.080 94.32 52.48 126.72v0l126.72 126.72 126.72-126.72c32.4-32.4 52.48-77.2 52.48-126.72zM343.28 298l-87.44 87.44-89.040-89.040c-23.84-23.28-38.8-55.6-38.8-91.6 0-70.72 57.28-128 128-128s128 57.28 128 128c0 36.88-15.76 69.84-40.72 93.2zM256 102.4l0.080 246.8 70.4-70.4c19.6-18.64 31.92-44.8 31.92-74 0-56.56-45.84-102.4-102.4-102.4z" />
 
 
22
  <glyph unicode="&#xf319;" d="M256 25.6c-113.12 0-204.8 91.68-204.8 204.8s91.68 204.8 204.8 204.8 204.8-91.68 204.8-204.8-91.68-204.8-204.8-204.8zM256 384c-84.8 0-153.6-68.8-153.6-153.6s68.8-153.6 153.6-153.6 153.6 68.8 153.6 153.6-68.8 153.6-153.6 153.6zM331.28 138.080l-4.48-2.64-12.96-7.92-7.68-5.6c-5.68-2.72-11.68-4.88-17.76-6.72v7.52l-2.16 17.36c0 0-1.040 10-2.72 12.64-1.6 2.64-5.44 6.32-9.2 7.92s-6.48 1.6-8.64 4.16c-2.16 2.64-3.84 7.36-6.48 11.6-2.72 4.24-6 8.48-6 10.56s0 23.76 0 23.76l2.72 20 5.92 4.24 7.040 7.92 4.88 1.6 16.8-3.12h11.84l4.88-10 11.36-8.96 7.040-11.040 9.2-3.12h10.32l7.040-8.48 4.32-8.96 1.6-6.32v-10.56l-1.12-6.24c-6.8-11.28-15.52-21.2-25.76-29.6v0zM289.36 319.92l-11.92-6.32-4.32-12.16-7.040-6.32h-23.36l-10.8-4.24-0.56-8.4-4.32-6.88-1.12-7.36 2.16-6.32 2.72-6.32c0 0 6.56-7.36 0-12.64 0 0-8.16 0-9.76 2.64s-13.52 10-15.76 12.16c-2.16 2.080-9.2 4.16-9.2 4.16l-8.64 3.2-8.16 0.56 0.56 11.040-0.56 9.44-3.28 6.88-9.2 6.88-0.56 7.36 1.12 4.080c21.92 21.2 52.16 34.4 85.6 34.4 18.88 0 36.48-4.56 52.4-12l-0.32-2.8-15.68-11.040z" />
23
  <glyph unicode="&#xf322;" d="M409.68 332.72c0 25.76-25.6 25.76-25.6 25.76h-256.24c0 0-25.6 0-25.6-25.76v-25.76h307.44v25.76zM332.8 409.92h-153.68c0 0-25.6 0-25.6-25.76h204.88c0 25.76-25.6 25.76-25.6 25.76v0zM449.2 309.36c-14.32 12.72-14.32 12.72-14.32 12.72v-40.72h-358v40.72c0 0 0 0-14.32-12.72s-24.56-16.16-18.8-43.12c5.68-26.8 33.44-174 37.6-193.92 4.56-21.84 29.52-21.52 29.52-21.52h289.92c0 0 25.040-0.32 29.52 21.52 4.16 19.92 31.84 167.040 37.6 193.92 5.84 26.96-4.4 30.4-18.72 43.12v0zM358.48 179.12c0 0 0-25.76-25.68-25.76h-153.76c-25.6 0-25.6 25.76-25.6 25.76v51.52h26.24v-50.88h153.28v50.88h25.52v-51.52z" />
24
  <glyph unicode="&#xf325;" d="M384 286v149.2h25.6c14.16 0 25.6-11.44 25.6-25.6v-51.2c0-33.44-21.36-61.84-51.2-72.4zM153.6 51.52h204.8v-51.52h-204.8v51.52zM179.2 76.8l25.6 25.6h25.6v25.6l25.6 25.6 25.6-25.6v-25.6h25.6l25.6-25.6h-153.6zM256 179.2c-56.56 0-102.4 45.84-102.4 102.4v179.2h204.8v-179.2c0-56.56-45.84-102.4-102.4-102.4zM76.8 358.4v51.2c0 14.16 11.44 25.6 25.6 25.6h25.6v-149.2c-29.84 10.56-51.2 38.96-51.2 72.4z" />
@@ -32,6 +36,7 @@
32
  <glyph unicode="&#xf481;" d="M435.2 332.8h-0.8l0.8-177.6v-1.6c0-6.96-2.56-12.96-7.6-18s-11.040-7.6-18-7.6h-307.2c-7.2 0-13.28 2.56-18.24 7.6s-7.36 11.040-7.36 18v1.6l0.8 177.6h-0.8c-7.2 0-13.28 2.48-18.24 7.36s-7.36 11.040-7.36 18.24 2.48 13.28 7.36 18.24 10.96 7.36 18.080 7.36 13.12-2.48 18.24-7.36 7.52-11.040 7.52-18.24c0-8.8-3.6-15.76-10.8-20.8l87.6-124 66.4 147.2c-4.56 1.84-8.16 4.96-11.040 9.2s-4.16 8.96-4.16 14c0 7.2 2.48 13.28 7.36 18.24s10.96 7.36 18 7.36 13.12-2.48 18.24-7.36 7.6-11.040 7.6-18.24c0-5.040-1.44-9.76-4.16-14s-6.48-7.36-11.040-9.2l66.4-147.2 87.6 124c-7.2 5.040-10.8 12-10.8 20.8 0 7.2 2.48 13.28 7.36 18.24s10.96 7.36 18 7.36 13.12-2.48 18.24-7.36 7.6-11.040 7.6-18.24-2.56-13.28-7.6-18.24-11.040-7.36-18-7.36zM76.8 102.4h358.4c6.96 0 12.96-2.48 18-7.36s7.6-10.96 7.6-18-2.56-13.12-7.6-18.24-11.040-7.6-18-7.6h-358.4c-6.96 0-12.96 2.56-18 7.6s-7.6 11.12-7.6 18.16 2.48 13.040 7.36 18 11.040 7.44 18.24 7.44z" />
33
  <glyph unicode="&#xf482;" d="M376.16 25.6h-238.080c-20.48 0-35.84 15.36-35.84 35.84v312.32c0 10.24 5.12 20.48 12.8 28.16l28.16-66.56h225.28l28.16 69.12c7.68-5.12 12.8-15.36 12.8-28.16v-312.32c2.56-23.040-15.36-38.4-33.28-38.4zM358.24 307.2h-204.8v-230.4h204.8v230.4zM332.64 230.4h-153.6v25.6h153.6v-25.6zM332.64 179.2h-153.6v25.6h153.6v-25.6zM332.64 128h-153.6v25.6h153.6v-25.6zM163.68 358.4l-23.040 51.2h56.32l7.68 20.48 10.24 30.72h81.92l10.24-30.72 10.24-20.48h56.32l-23.040-51.2h-186.88z" />
34
  <glyph unicode="&#xf488;" d="M405.2 82.16l-91.2 71.6h-134.8v-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.24v102.4c0 7.2 2.48 13.28 7.36 18.24s11.040 7.36 18.24 7.36h211.6l91.2 71.6c2.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-285.2c0-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.28v0zM268.8 307.36h-51.2c3.44 0 6.48-1.28 8.96-3.84s3.84-5.52 3.84-8.96v-128c0-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.96v128c0 3.44 1.2 6.48 3.6 8.96s5.36 3.84 9.2 3.84v0 0z" />
 
35
  <glyph unicode="&#xf508;" d="M384 435.2h-51.2v-51.2h51.2v51.2zM435.2 435.2h-25.6v-76.8h-102.4v76.8h-102.4v-76.8h-102.4v76.8h-25.6c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM409.6 76.8h-307.2v230.4h307.2v-230.4zM179.2 435.2h-51.2v-51.2h51.2v51.2zM230.4 115.2l-76.4 76.4 29.12 29.12 47.28-47.28 98.8 98.8 29.2-29.040-128-128z" />
36
  <glyph unicode="&#xf524;" d="M125.594 190.925l90.931-90.931 166.835 166.835-90.957 90.931-166.81-166.835zM489.088 315.802l-38.707 38.681c-7.399-3.993-15.795-6.298-24.806-6.298-28.595 0-51.789 23.194-51.789 51.815 0 8.986 2.253 17.433 6.298 24.806l-38.707 38.682c-10.112 10.087-26.547 10.087-36.659 0l-281.805-281.83c-10.086-10.087-10.086-26.573 0-36.659l38.707-38.707c7.373 4.019 15.821 6.298 24.781 6.298 28.621 0 51.815-23.168 51.815-51.789 0-8.986-2.279-17.433-6.323-24.807l38.681-38.707c10.087-10.087 26.573-10.087 36.659 0l281.856 281.856c10.061 10.087 10.061 26.573 0 36.659zM216.525 58.393l-132.506 132.531 208.435 208.41 132.506-132.506-208.435-208.435z" />
37
  </font></defs></svg>
7
  <font-face units-per-em="512" ascent="480" descent="-32" />
8
  <missing-glyph horiz-adv-x="512" />
9
  <glyph unicode="&#x20;" d="" horiz-adv-x="256" />
10
+ <glyph unicode="&#xf102;" d="M485.651 278.8v-6.4h-0.5l0.45-0.25-76-43.85-78.35 45.2-230.4-133-76 43.9v5h8.751l11.050 6.4h-19.8v6.4h30.851l11.051 6.4h-41.9v6.4h53l11.049 6.4h-64.050v6.4h75.1l11.049 6.4h-86.15v6.4h97.2l11.050 6.4h-108.251v6.4h119.35l11.050 6.4h-130.4v6.4h141.45l11.050 6.4h-152.5v6.4h154.4v-5.3l76 43.851-76 43.85 1.15 0.65h-144.4c1.5 2.25 3.151 4.4 4.85 6.4h150.6l11.050 6.4h-155.2c2.1 1.8 4.3 3.35 6.55 4.65l3 1.7h156.8l11.050 6.4h-156.851l11.050 6.4h156.8l11.050 6.4h-156.75l11.050 6.4h308.4l11.050-6.4h-156.75l11.050-6.4h156.8l11.050-6.4h-156.8l11.050-6.4h156.8l3-1.7c2.25-1.3 4.4-2.9 6.55-4.65h-155.3l11.050-6.4h150.6c1.75-2 3.351-4.151 4.9-6.4h-144.4l11.050-6.4h137.151c1.1-2.1 2.1-4.2 3-6.4h-129.1l11.050-6.4h120.3c0.6-2.151 1.1-4.25 1.45-6.4h-110.651l11.25-6.5h100.050c0-0.25 0.050-0.45 0.050-0.7v-5.7h-89l11.050-6.4h77.95v-6.4h-66.9l11.050-6.4h55.8v-6.4h-44.75l11.050-6.4h33.7v-6.4h-22.651l11.050-6.4h11.6zM123.2 419.3h264.1l11.050-6.4h-286.2l11.049 6.4zM145.351 432.050h219.851l11.050-6.4h-242l11.1 6.4zM167.451 444.849h175.6l11.050-6.4h-197.7l11.050 6.4zM189.6 457.6h131.351l11.050-6.4h-153.5l11.1 6.4zM211.7 470.349h87.1l11.050-6.4h-109.2l11.050 6.4zM226.3 478.8c3.15 1.8 6.7 3.25 10.5 4.351h36.95c3.8-1.1 7.351-2.55 10.5-4.351l3.5-2.050h-64.951l3.5 2.050zM179.25 349.1h-150.050c0.9 2.15 1.9 4.3 3 6.4h147.1v-6.4zM179.25 336.35h-153.8c0.351 2.1 0.851 4.25 1.45 6.4h152.3v-6.4zM179.25 323.45h-154.4v5.7c0 0.2 0.050 0.451 0.050 0.7h154.351v-6.4zM179.25 310.7h-154.4v6.4h154.4v-6.4zM179.25 297.95h-154.4v6.4h154.4v-6.4zM179.25 285.149h-154.4v6.4h154.4v-6.4zM424.95 61.649l-11.050-6.4h-308.8l11.050 6.4h308.8zM391.75 42.5h-273l-11.050 6.4h295.1l-11.050-6.4zM369.6 29.749h-228.7l-11.050 6.4h250.851l-11.1-6.4zM347.5 16.95h-184.451l-11.050 6.4h206.55l-11.050-6.4zM325.351 4.2h-140.2l-11.050 6.4h162.3l-11.050-6.4zM303.2-8.55h-95.9l-11.050 6.4h118.049l-11.1-6.4zM284.2-19.5c-1.151-0.651-2.351-1.25-3.55-1.8h-50.8c-1.25 0.55-2.4 1.151-3.55 1.8l-7.951 4.6h73.8l-7.95-4.6zM138.25 74.4h308.8l-11.050-6.351h-308.8l11.050 6.351zM160.4 87.2h305.651c-2.55-2.45-5.25-4.6-8.050-6.4h-308.649l11.050 6.4zM182.5 99.95h293.6c-1.351-2.2-2.851-4.351-4.4-6.4h-300.25l11.050 6.4zM204.65 112.7h277.7c-0.8-2.149-1.7-4.3-2.7-6.4h-286.050l11.050 6.4zM226.75 125.5h258.6c-0.25-2.1-0.6-4.25-1.1-6.4h-268.55l11.050 6.4zM402.55 144.649h-142.6l11.050 6.4h120.5l11.050-6.4zM380.25 157.5h-98l11.050 6.4h75.851l11.1-6.4zM336 183.049h-9.5l4.75 2.75 4.75-2.75zM358.151 170.249h-53.75l11.050 6.4h31.649l11.050-6.4zM485.651 131.849h-247.8l11.050 6.4h236.75v-6.4zM485.651 144.649h-69l11.050 6.4h57.9l0.050-6.4zM485.651 157.5h-46.651l11.050 6.4h35.6v-6.4zM485.6 183.049h-2.351l2.351 1.351v-1.351zM485.651 170.249h-24.5l11.050 6.4h13.45v-6.4z" />
11
  <glyph unicode="&#xf108;" d="M409.6 435.2h-307.2c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h307.2c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM179.2 76.8h-51.2v51.2h51.2v-51.2zM179.2 153.6h-51.2v51.2h51.2v-51.2zM179.2 230.4h-51.2v51.2h51.2v-51.2zM281.6 76.8h-51.2v51.2h51.2v-51.2zM281.6 153.6h-51.2v51.2h51.2v-51.2zM281.6 230.4h-51.2v51.2h51.2v-51.2zM384 76.8h-51.2v51.2h51.2v-51.2zM384 153.6h-51.2v51.2h51.2v-51.2zM384 230.4h-51.2v51.2h51.2v-51.2zM384 332.8h-256v51.2h256v-51.2z" />
12
  <glyph unicode="&#xf111;" d="M484.88 328.96l-30.72-222.64c-7.68-54.32-36.72-80.64-92.72-80.64h-264.32c-55.92 0-77.84 26.32-70.16 80.64l30.72 222.64c8.24 54.32 37.28 80.64 93.2 80.64h264.32c56-0.080 77.92-26.4 69.68-80.64zM206.88 359.040c-42.88 0-67.44-30.080-73.28-74.48l-4.88-36c-6.32-44.4 10.4-69.68 53.36-69.68h100.16c13.52 0 11.2-11.84 11.2-11.84-1.44-8.8-6.32-13.2-15.12-13.2h-166.96l-10.080-76.96h201.6c42.88 0 65.84 20.48 72.16 64.88l7.28 49.6c6.32 44.4-10.72 64.88-53.6 64.88h-100.72c-8.8 0-12.64 4.4-11.68 13.2 0 0-0.56 11.84 14.8 11.84h166.4l10.88 77.76h-201.52z" />
13
  <glyph unicode="&#xf116;" d="M435.2 25.6h-358.4c-14.16 0-25.6 11.44-25.6 25.6v358.4c0 14.16 11.44 25.6 25.6 25.6h358.4c14.16 0 25.6-11.44 25.6-25.6v-358.4c0-14.16-11.44-25.6-25.6-25.6zM409.6 384h-307.2v-76.8h307.2v76.8zM409.6 256h-307.2v-179.2h307.2v179.2zM179.2 332.8h-51.2v25.6h51.2v-25.6zM230.4 332.8h-25.6v25.6h25.6v-25.6zM281.6 332.8h-25.6v25.6h25.6v-25.6zM332.8 332.8h-25.6v25.6h25.6v-25.6zM384 332.8h-25.6v25.6h25.6v-25.6z" />
14
+ <glyph unicode="&#xf118;" d="M84.531 173.107c11.879-48.103 26.983-69.145 77.363-91.187 50.406-22.016 74.343-46.080 94.106-46.080 19.738 0 42.189 21.043 92.57 43.111 50.406 22.041 36.941 28.749 48.819 76.851l-141.389-68.762-171.469 86.067zM499.481 298.599l-213.12 119.347c-16.691 9.344-44.032 9.344-60.723 0l-213.145-119.347c-16.691-9.344-16.691-24.653 0-33.997l213.12-119.347c16.691-9.344 44.032-9.344 60.723 0l137.779 77.159-149.401 34.995c-5.76-1.408-12.083-2.201-18.714-2.201-26.931 0-48.743 12.953-48.743 28.953 0 16.051 21.837 29.005 48.743 29.005 20.889 0 38.656-7.859 45.568-18.791l158.259-51.942 39.654 22.195c16.665 9.319 16.665 24.627 0 33.971zM434.355 72.448c-1.664-9.856 32.845-26.061 36.121 2.739 14.822 129.843-10.649 167.194-10.649 167.194l-35.712-19.994c0 0.026 30.285-28.8 10.24-149.939z" />
15
  <glyph unicode="&#xf145;" d="M384 435.2h-51.2v-51.2h51.2v51.2zM435.2 435.2h-25.6v-76.8h-102.4v76.8h-102.4v-76.8h-102.4v76.8h-25.6c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM409.6 76.8h-307.2v230.4h307.2v-230.4zM179.2 435.2h-51.2v-51.2h51.2v51.2zM281.6 256h-51.2v-51.2h51.2v51.2zM358.4 256h-51.2v-51.2h51.2v51.2zM204.8 179.2h-51.2v-51.2h51.2v51.2zM204.8 256h-51.2v-51.2h51.2v51.2zM281.6 179.2h-51.2v-51.2h51.2v51.2zM358.4 179.2h-51.2v-51.2h51.2v51.2z" />
16
  <glyph unicode="&#xf147;" d="M256 426.667c-92.805 0-185.597-66.375-256-199.111 70.403-132.736 163.195-199.111 256-199.111s185.597 66.375 256 199.111c-70.403 132.736-163.195 199.111-256 199.111zM256 85.334c-67.486 0-135.945 51.43-190.667 142.222 54.722 90.792 123.18 142.222 190.667 142.222s135.945-51.43 190.667-142.222c-54.722-90.792-123.18-142.222-190.667-142.222zM312.889 227.556c0-31.417-25.472-56.889-56.889-56.889s-56.889 25.472-56.889 56.889 25.472 56.889 56.889 56.889 56.889-25.472 56.889-56.889z" />
17
  <glyph unicode="&#xf163;" d="M153.6 332.8h51.2v-51.2h-51.2v51.2zM153.6 256h51.2v-51.2h-51.2v51.2zM153.6 179.2h51.2v-51.2h-51.2v51.2zM256 179.2h102.4v-51.2h-102.4v51.2zM435.2 435.2h-358.4c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM409.6 76.8h-307.2v307.2h307.2v-307.2zM256 256h102.4v-51.2h-102.4v51.2zM256 332.8h102.4v-51.2h-102.4v51.2z" />
21
  <glyph unicode="&#xf227;" d="M301.84 256c3.44-12.24 5.36-25.12 5.36-38.4 0-77.76-63.040-140.8-140.8-140.8s-140.8 63.040-140.8 140.8 63.040 140.8 140.8 140.8h89.6v-25.6c0-14.16 11.44-25.6 25.6-25.6s25.6 11.44 25.6 25.6v25.6h179.2v-102.4h-184.56z" />
22
  <glyph unicode="&#xf307;" d="M459.6 307.2h-76.8v-179.2h-256v179.2h-76.8v102.4h132.4c10.56-29.84 38.96-51.2 72.4-51.2s61.84 21.36 72.4 51.2h132.4v-102.4zM382.8 102.4v-51.2h-256v51.2h256z" />
23
  <glyph unicode="&#xf309;" d="M435.2 204.8c0-98.96-80.24-179.2-179.2-179.2s-179.2 80.24-179.2 179.2c0 49.52 20.080 94.32 52.48 126.72v0l126.72 126.72 126.72-126.72c32.4-32.4 52.48-77.2 52.48-126.72zM343.28 298l-87.44 87.44-89.040-89.040c-23.84-23.28-38.8-55.6-38.8-91.6 0-70.72 57.28-128 128-128s128 57.28 128 128c0 36.88-15.76 69.84-40.72 93.2zM256 102.4l0.080 246.8 70.4-70.4c19.6-18.64 31.92-44.8 31.92-74 0-56.56-45.84-102.4-102.4-102.4z" />
24
+ <glyph unicode="&#xf316;" d="M435.2 256c-14.16 0-25.6-11.44-25.6-25.6v-153.6h-307.2v153.6c0 14.16-11.44 25.6-25.6 25.6s-25.6-11.44-25.6-25.6v-179.2c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v179.2c0 14.16-11.44 25.6-25.6 25.6zM281.6 256v156.72c0 12.4-11.44 22.48-25.6 22.48s-25.6-10.080-25.6-22.48v-156.72h-76.8l102.4-102.4 102.4 102.4h-76.8z" />
25
+ <glyph unicode="&#xf317;" d="M435.2 256c-14.16 0-25.6-11.44-25.6-25.6v-153.6h-307.2v153.6c0 14.16-11.44 25.6-25.6 25.6s-25.6-11.44-25.6-25.6v-179.2c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v179.2c0 14.16-11.44 25.6-25.6 25.6zM230.4 179.2c0-14.16 11.44-25.6 25.6-25.6s25.6 11.44 25.6 25.6v153.6h76.8l-102.4 102.4-102.4-102.4h76.8v-153.6z" />
26
  <glyph unicode="&#xf319;" d="M256 25.6c-113.12 0-204.8 91.68-204.8 204.8s91.68 204.8 204.8 204.8 204.8-91.68 204.8-204.8-91.68-204.8-204.8-204.8zM256 384c-84.8 0-153.6-68.8-153.6-153.6s68.8-153.6 153.6-153.6 153.6 68.8 153.6 153.6-68.8 153.6-153.6 153.6zM331.28 138.080l-4.48-2.64-12.96-7.92-7.68-5.6c-5.68-2.72-11.68-4.88-17.76-6.72v7.52l-2.16 17.36c0 0-1.040 10-2.72 12.64-1.6 2.64-5.44 6.32-9.2 7.92s-6.48 1.6-8.64 4.16c-2.16 2.64-3.84 7.36-6.48 11.6-2.72 4.24-6 8.48-6 10.56s0 23.76 0 23.76l2.72 20 5.92 4.24 7.040 7.92 4.88 1.6 16.8-3.12h11.84l4.88-10 11.36-8.96 7.040-11.040 9.2-3.12h10.32l7.040-8.48 4.32-8.96 1.6-6.32v-10.56l-1.12-6.24c-6.8-11.28-15.52-21.2-25.76-29.6v0zM289.36 319.92l-11.92-6.32-4.32-12.16-7.040-6.32h-23.36l-10.8-4.24-0.56-8.4-4.32-6.88-1.12-7.36 2.16-6.32 2.72-6.32c0 0 6.56-7.36 0-12.64 0 0-8.16 0-9.76 2.64s-13.52 10-15.76 12.16c-2.16 2.080-9.2 4.16-9.2 4.16l-8.64 3.2-8.16 0.56 0.56 11.040-0.56 9.44-3.28 6.88-9.2 6.88-0.56 7.36 1.12 4.080c21.92 21.2 52.16 34.4 85.6 34.4 18.88 0 36.48-4.56 52.4-12l-0.32-2.8-15.68-11.040z" />
27
  <glyph unicode="&#xf322;" d="M409.68 332.72c0 25.76-25.6 25.76-25.6 25.76h-256.24c0 0-25.6 0-25.6-25.76v-25.76h307.44v25.76zM332.8 409.92h-153.68c0 0-25.6 0-25.6-25.76h204.88c0 25.76-25.6 25.76-25.6 25.76v0zM449.2 309.36c-14.32 12.72-14.32 12.72-14.32 12.72v-40.72h-358v40.72c0 0 0 0-14.32-12.72s-24.56-16.16-18.8-43.12c5.68-26.8 33.44-174 37.6-193.92 4.56-21.84 29.52-21.52 29.52-21.52h289.92c0 0 25.040-0.32 29.52 21.52 4.16 19.92 31.84 167.040 37.6 193.92 5.84 26.96-4.4 30.4-18.72 43.12v0zM358.48 179.12c0 0 0-25.76-25.68-25.76h-153.76c-25.6 0-25.6 25.76-25.6 25.76v51.52h26.24v-50.88h153.28v50.88h25.52v-51.52z" />
28
  <glyph unicode="&#xf325;" d="M384 286v149.2h25.6c14.16 0 25.6-11.44 25.6-25.6v-51.2c0-33.44-21.36-61.84-51.2-72.4zM153.6 51.52h204.8v-51.52h-204.8v51.52zM179.2 76.8l25.6 25.6h25.6v25.6l25.6 25.6 25.6-25.6v-25.6h25.6l25.6-25.6h-153.6zM256 179.2c-56.56 0-102.4 45.84-102.4 102.4v179.2h204.8v-179.2c0-56.56-45.84-102.4-102.4-102.4zM76.8 358.4v51.2c0 14.16 11.44 25.6 25.6 25.6h25.6v-149.2c-29.84 10.56-51.2 38.96-51.2 72.4z" />
36
  <glyph unicode="&#xf481;" d="M435.2 332.8h-0.8l0.8-177.6v-1.6c0-6.96-2.56-12.96-7.6-18s-11.040-7.6-18-7.6h-307.2c-7.2 0-13.28 2.56-18.24 7.6s-7.36 11.040-7.36 18v1.6l0.8 177.6h-0.8c-7.2 0-13.28 2.48-18.24 7.36s-7.36 11.040-7.36 18.24 2.48 13.28 7.36 18.24 10.96 7.36 18.080 7.36 13.12-2.48 18.24-7.36 7.52-11.040 7.52-18.24c0-8.8-3.6-15.76-10.8-20.8l87.6-124 66.4 147.2c-4.56 1.84-8.16 4.96-11.040 9.2s-4.16 8.96-4.16 14c0 7.2 2.48 13.28 7.36 18.24s10.96 7.36 18 7.36 13.12-2.48 18.24-7.36 7.6-11.040 7.6-18.24c0-5.040-1.44-9.76-4.16-14s-6.48-7.36-11.040-9.2l66.4-147.2 87.6 124c-7.2 5.040-10.8 12-10.8 20.8 0 7.2 2.48 13.28 7.36 18.24s10.96 7.36 18 7.36 13.12-2.48 18.24-7.36 7.6-11.040 7.6-18.24-2.56-13.28-7.6-18.24-11.040-7.36-18-7.36zM76.8 102.4h358.4c6.96 0 12.96-2.48 18-7.36s7.6-10.96 7.6-18-2.56-13.12-7.6-18.24-11.040-7.6-18-7.6h-358.4c-6.96 0-12.96 2.56-18 7.6s-7.6 11.12-7.6 18.16 2.48 13.040 7.36 18 11.040 7.44 18.24 7.44z" />
37
  <glyph unicode="&#xf482;" d="M376.16 25.6h-238.080c-20.48 0-35.84 15.36-35.84 35.84v312.32c0 10.24 5.12 20.48 12.8 28.16l28.16-66.56h225.28l28.16 69.12c7.68-5.12 12.8-15.36 12.8-28.16v-312.32c2.56-23.040-15.36-38.4-33.28-38.4zM358.24 307.2h-204.8v-230.4h204.8v230.4zM332.64 230.4h-153.6v25.6h153.6v-25.6zM332.64 179.2h-153.6v25.6h153.6v-25.6zM332.64 128h-153.6v25.6h153.6v-25.6zM163.68 358.4l-23.040 51.2h56.32l7.68 20.48 10.24 30.72h81.92l10.24-30.72 10.24-20.48h56.32l-23.040-51.2h-186.88z" />
38
  <glyph unicode="&#xf488;" d="M405.2 82.16l-91.2 71.6h-134.8v-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.24v102.4c0 7.2 2.48 13.28 7.36 18.24s11.040 7.36 18.24 7.36h211.6l91.2 71.6c2.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-285.2c0-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.28v0zM268.8 307.36h-51.2c3.44 0 6.48-1.28 8.96-3.84s3.84-5.52 3.84-8.96v-128c0-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.96v128c0 3.44 1.2 6.48 3.6 8.96s5.36 3.84 9.2 3.84v0 0z" />
39
+ <glyph unicode="&#xf504;" d="M435.2 435.2h-204.8c-14.16 0-25.6-11.44-25.6-25.6v-204.8c0-14.16 11.44-25.6 25.6-25.6h204.8c14.16 0 25.6 11.44 25.6 25.6v204.8c0 14.16-11.44 25.6-25.6 25.6zM409.6 230.4h-153.6v153.6h153.6v-153.6zM256 76.8h-153.6v153.6h51.2v51.2h-76.8c-14.16 0-25.6-11.44-25.6-25.6v-204.8c0-14.16 11.44-25.6 25.6-25.6h204.8c14.16 0 25.6 11.44 25.6 25.6v76.8h-51.2v-51.2z" />
40
  <glyph unicode="&#xf508;" d="M384 435.2h-51.2v-51.2h51.2v51.2zM435.2 435.2h-25.6v-76.8h-102.4v76.8h-102.4v-76.8h-102.4v76.8h-25.6c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM409.6 76.8h-307.2v230.4h307.2v-230.4zM179.2 435.2h-51.2v-51.2h51.2v51.2zM230.4 115.2l-76.4 76.4 29.12 29.12 47.28-47.28 98.8 98.8 29.2-29.040-128-128z" />
41
  <glyph unicode="&#xf524;" d="M125.594 190.925l90.931-90.931 166.835 166.835-90.957 90.931-166.81-166.835zM489.088 315.802l-38.707 38.681c-7.399-3.993-15.795-6.298-24.806-6.298-28.595 0-51.789 23.194-51.789 51.815 0 8.986 2.253 17.433 6.298 24.806l-38.707 38.682c-10.112 10.087-26.547 10.087-36.659 0l-281.805-281.83c-10.086-10.087-10.086-26.573 0-36.659l38.707-38.707c7.373 4.019 15.821 6.298 24.781 6.298 28.621 0 51.815-23.168 51.815-51.789 0-8.986-2.279-17.433-6.323-24.807l38.681-38.707c10.087-10.087 26.573-10.087 36.659 0l281.856 281.856c10.061 10.087 10.061 26.573 0 36.659zM216.525 58.393l-132.506 132.531 208.435 208.41 132.506-132.506-208.435-208.435z" />
42
  </font></defs></svg>
assets/fonts/sportspress.ttf CHANGED
Binary file
assets/fonts/sportspress.woff CHANGED
Binary file
assets/images/modules/rookie.png ADDED
Binary file
assets/js/admin/sportspress-admin.js CHANGED
@@ -133,14 +133,6 @@ jQuery(document).ready(function($){
133
  // Activate self-cloning
134
  $(".sp-clone:last").find("select").change();
135
 
136
- // Dummy controller
137
- $(".sp-has-dummy").change(function() {
138
- val = $(this).val();
139
- if ( val == -1 ) val = 0;
140
- name = $(this).attr("name");
141
- $(".sp-dummy."+name+"-dummy").val(val).trigger("change");
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();
@@ -422,11 +414,11 @@ jQuery(document).ready(function($){
422
  $(".post-type-sp_event #post-formats-select input.post-format").change(function() {
423
  layout = $(".post-type-sp_event #post-formats-select input:checked").val();
424
  if ( layout == "friendly" ) {
425
- $(".sp-event-sp_league-field").hide().find("select").prop("disabled", true);
426
- $(".sp-event-sp_season-field").show().find("select").prop("disabled", false);
427
  } else {
428
- $(".sp-event-sp_league-field").show().find("select").prop("disabled", false);
429
- $(".sp-event-sp_season-field").show().find("select").prop("disabled", false);
430
  }
431
  });
432
 
@@ -476,7 +468,16 @@ jQuery(document).ready(function($){
476
  $.post( ajaxurl, {
477
  action: "sp-save-primary-result",
478
  primary_result: $(this).val(),
479
- nonce: $("#sp-config-nonce").val()
 
 
 
 
 
 
 
 
 
480
  });
481
  });
482
 
@@ -556,6 +557,14 @@ jQuery(document).ready(function($){
556
  });
557
  $(".sp-date-selector select").trigger("change");
558
 
 
 
 
 
 
 
 
 
559
  // Edit inline results
560
  $("#the-list").on("click, focus", ".sp-result, .sp-edit-results", function(){
561
  team = $(this).data("team");
@@ -579,13 +588,11 @@ jQuery(document).ready(function($){
579
  // Save inline results
580
  $("#the-list").on("click", ".sp-inline-edit-save .save", function(){
581
  $column = $(this).closest(".column-sp_team");
582
- results = [];
583
  $column.find(".sp-edit-result").each(function() {
584
- team = {};
585
- team.id = $(this).data("team");
586
- team.key = $(this).data("key");
587
- team.result = $(this).val();
588
- results.push( team );
589
  });
590
  $.post( ajaxurl, {
591
  action: "sp-save-inline-results",
133
  // Activate self-cloning
134
  $(".sp-clone:last").find("select").change();
135
 
 
 
 
 
 
 
 
 
136
  // Custom value editor
137
  $(".sp-data-table .sp-default-value").click(function() {
138
  $(this).hide().siblings(".sp-custom-value").show().find(".sp-custom-value-input").focus();
414
  $(".post-type-sp_event #post-formats-select input.post-format").change(function() {
415
  layout = $(".post-type-sp_event #post-formats-select input:checked").val();
416
  if ( layout == "friendly" ) {
417
+ $(".sp_event-sp_league-field").hide().find("select").prop("disabled", true);
418
+ $(".sp_event-sp_season-field").show().find("select").prop("disabled", false);
419
  } else {
420
+ $(".sp_event-sp_league-field").show().find("select").prop("disabled", false);
421
+ $(".sp_event-sp_season-field").show().find("select").prop("disabled", false);
422
  }
423
  });
424
 
468
  $.post( ajaxurl, {
469
  action: "sp-save-primary-result",
470
  primary_result: $(this).val(),
471
+ nonce: $("#sp-primary-result-nonce").val()
472
+ });
473
+ });
474
+
475
+ // Configure primary performance option (Ajax)
476
+ $(".sp-admin-config-table").on("click", ".sp-primary-performance-option", function() {
477
+ $.post( ajaxurl, {
478
+ action: "sp-save-primary-performance",
479
+ primary_performance: $(this).val(),
480
+ nonce: $("#sp-primary-performance-nonce").val()
481
  });
482
  });
483
 
557
  });
558
  $(".sp-date-selector select").trigger("change");
559
 
560
+ // Apply color scheme
561
+ $(".sp-color-option").on("click", function() {
562
+ colors = $(this).find("label").data("sp-colors").split(",");
563
+ $(".sp-custom-colors").find(".sp-color-box").each(function(index) {
564
+ $(this).find("input").val("#"+colors[index]).css("background-color", "#"+colors[index]);
565
+ });;
566
+ });
567
+
568
  // Edit inline results
569
  $("#the-list").on("click, focus", ".sp-result, .sp-edit-results", function(){
570
  team = $(this).data("team");
588
  // Save inline results
589
  $("#the-list").on("click", ".sp-inline-edit-save .save", function(){
590
  $column = $(this).closest(".column-sp_team");
591
+ results = {};
592
  $column.find(".sp-edit-result").each(function() {
593
+ id = $(this).data("team");
594
+ result = $(this).val();
595
+ results[id] = result;
 
 
596
  });
597
  $.post( ajaxurl, {
598
  action: "sp-save-inline-results",
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.5
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
  add_action( 'wp_ajax_sp-save-inline-results', array( $this, 'save_inline_results' ) );
23
  }
24
 
@@ -36,6 +37,20 @@ class SP_Admin_AJAX {
36
  wp_send_json_success();
37
  }
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  /**
40
  * Save event results inline.
41
  *
@@ -44,92 +59,14 @@ class SP_Admin_AJAX {
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
 
10
  * @author ThemeBoy
11
  * @category Admin
12
  * @package SportsPress/Admin
13
+ * @version 1.7
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-primary-performance', array( $this, 'save_primary_performance' ), 1 );
23
  add_action( 'wp_ajax_sp-save-inline-results', array( $this, 'save_inline_results' ) );
24
  }
25
 
37
  wp_send_json_success();
38
  }
39
 
40
+ /**
41
+ * Auto-save the selected primary performance.
42
+ *
43
+ * @since 1.7
44
+ */
45
+ function save_primary_performance() {
46
+ check_ajax_referer( 'sp-save-primary-performance', 'nonce' );
47
+
48
+ $primary_performance = sanitize_key( $_POST['primary_performance'] );
49
+
50
+ update_option( 'sportspress_primary_performance', $primary_performance );
51
+ wp_send_json_success();
52
+ }
53
+
54
  /**
55
  * Save event results inline.
56
  *
59
  function save_inline_results() {
60
  check_ajax_referer( 'sp-save-inline-results', 'nonce' );
61
 
62
+ $id = sp_array_value( $_POST, 'post_id' );
63
  $results = sp_array_value( $_POST, 'results' );
 
64
 
65
+ if ( sp_update_main_results ( $id, $results ) ) {
66
+ wp_send_json_success();
67
+ } else {
68
  wp_send_json_error();
69
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  }
71
  }
72
 
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.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -24,9 +24,8 @@ class SP_Admin_Menus {
24
  add_filter( 'admin_menu', array( $this, 'menu_clean' ), 5 );
25
  add_action( 'admin_menu', array( $this, 'admin_menu' ), 6 );
26
  add_action( 'admin_menu', array( $this, 'config_menu' ), 7 );
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' ) );
@@ -48,13 +47,6 @@ class SP_Admin_Menus {
48
  $main_page = add_menu_page( __( 'SportsPress', 'sportspress' ), __( 'SportsPress', 'sportspress' ), 'manage_sportspress', 'sportspress', array( $this, 'settings_page' ), apply_filters( 'sportspress_menu_icon', null ), '51.5' );
49
  }
50
 
51
- /**
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
  */
@@ -234,13 +226,6 @@ class SP_Admin_Menus {
234
  endif;
235
  }
236
 
237
- /**
238
- * Init the overview page
239
- */
240
- public function overview_page() {
241
- include( 'views/html-admin-overview.php' );
242
- }
243
-
244
  /**
245
  * Init the config page
246
  */
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin
8
+ * @version 1.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
24
  add_filter( 'admin_menu', array( $this, 'menu_clean' ), 5 );
25
  add_action( 'admin_menu', array( $this, 'admin_menu' ), 6 );
26
  add_action( 'admin_menu', array( $this, 'config_menu' ), 7 );
27
+ add_action( 'admin_menu', array( $this, 'leagues_menu' ), 20 );
28
+ add_action( 'admin_menu', array( $this, 'seasons_menu' ), 21 );
 
29
 
30
  add_action( 'admin_head', array( $this, 'menu_highlight' ) );
31
  add_action( 'admin_head', array( $this, 'menu_rename' ) );
47
  $main_page = add_menu_page( __( 'SportsPress', 'sportspress' ), __( 'SportsPress', 'sportspress' ), 'manage_sportspress', 'sportspress', array( $this, 'settings_page' ), apply_filters( 'sportspress_menu_icon', null ), '51.5' );
48
  }
49
 
 
 
 
 
 
 
 
50
  /**
51
  * Add menu item
52
  */
226
  endif;
227
  }
228
 
 
 
 
 
 
 
 
229
  /**
230
  * Init the config page
231
  */
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.6.1
9
  * @package SportsPress/Admin
10
  * @category Class
11
  * @author ThemeBoy
@@ -148,6 +148,9 @@ class SP_Admin_Sports {
148
  $post = self::get_post_array( $performance, $post_type );
149
  if ( empty( $post ) ) continue;
150
  $id = self::insert_preset_post( $post, $index );
 
 
 
151
  $i ++;
152
  }
153
 
@@ -187,6 +190,15 @@ class SP_Admin_Sports {
187
  update_post_meta( $id, 'sp_equation', sp_array_value( $statistic, 'equation', null ) );
188
  update_post_meta( $id, 'sp_precision', sp_array_value( $statistic, 'precision', 0 ) );
189
  }
 
 
 
 
 
 
 
 
 
190
  update_option( 'sportspress_primary_result', $primary_result );
191
  }
192
 
5
  * The SportsPress admin sports class stores preset sport data.
6
  *
7
  * @class SP_Admin_Sports
8
+ * @version 1.7
9
  * @package SportsPress/Admin
10
  * @category Class
11
  * @author ThemeBoy
148
  $post = self::get_post_array( $performance, $post_type );
149
  if ( empty( $post ) ) continue;
150
  $id = self::insert_preset_post( $post, $index );
151
+ if ( isset( $performance['position'] ) ) {
152
+ wp_set_object_terms( $id, $performance['position'], 'sp_position', false );
153
+ }
154
  $i ++;
155
  }
156
 
190
  update_post_meta( $id, 'sp_equation', sp_array_value( $statistic, 'equation', null ) );
191
  update_post_meta( $id, 'sp_precision', sp_array_value( $statistic, 'precision', 0 ) );
192
  }
193
+
194
+
195
+ // Options
196
+ $options = sp_array_value( $preset, 'options', array() );
197
+ foreach ( $options as $option => $value ) {
198
+ update_option( 'sportspress_' . $option, $value );
199
+ }
200
+
201
+ // Primary Result
202
  update_option( 'sportspress_primary_result', $primary_result );
203
  }
204
 
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.6.1
13
  */
14
 
15
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -203,17 +203,17 @@ class SP_Admin_Welcome {
203
  $steps = apply_filters( 'sportspress_next_steps', array(
204
  'teams' => array(
205
  'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_team' ), 'edit.php' ) ),
206
- 'icon' => 'dashicons-shield-alt',
207
  'label' => __( 'Add New Team', 'sportspress' ),
208
  ),
209
  'players' => array(
210
  'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_player' ), 'edit.php' ) ),
211
- 'icon' => 'dashicons-groups',
212
  'label' => __( 'Add New Player', 'sportspress' ),
213
  ),
214
  'events' => array(
215
  'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_event' ), 'edit.php' ) ),
216
- 'icon' => 'dashicons-calendar',
217
  'label' => __( 'Add New Event', 'sportspress' ),
218
  ),
219
  ) );
@@ -222,14 +222,14 @@ class SP_Admin_Welcome {
222
  <div class="sportspress-steps">
223
  <ul>
224
  <?php foreach ( $steps as $step ) { ?>
225
- <li><a href="<?php echo esc_url( $step['link'] ); ?>" class="welcome-icon sp-welcome-icon <?php echo sp_array_value( $step, 'icon' ); ?>"><?php echo $step['label']; ?></a></li>
226
  <?php } ?>
227
  </ul>
228
  </div>
229
  <?php } ?>
230
- <div class="return-to-dashboard">
231
- <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress', 'tab' => 'general' ), 'admin.php' ) ) ); ?>"><?php _e( 'Go to SportsPress Settings', 'sportspress' ); ?></a>
232
- </div>
233
  <?php } else { ?>
234
  <form method="post" id="mainform" action="" enctype="multipart/form-data">
235
  <h4><?php _e( 'Basic Setup', 'sportspress' ); ?></h4>
@@ -328,7 +328,7 @@ class SP_Admin_Welcome {
328
  <?php echo $this->contributors(); ?>
329
  </div>
330
 
331
- <p class="about-description"><?php printf( __( 'Some presets have been submitted by our helpful and generous users. Want to see your name? <a href="%s">Add a Sport Preset</a>.', 'sportspress' ), 'http://themeboy.com/add-sport-preset/' ); ?></p>
332
 
333
  <div class="sp-feature feature-section col one-col">
334
  <h4><?php _e( 'Presets', 'sportspress' ); ?></h4>
@@ -363,6 +363,7 @@ class SP_Admin_Welcome {
363
  $translator_handles = array(
364
  'Abdulelah',
365
  'albertone',
 
366
  'alisiddique',
367
  'ALooNeBoy87',
368
  'Andrew_Melim',
@@ -380,10 +381,14 @@ class SP_Admin_Welcome {
380
  'etcloki',
381
  'Ferenan',
382
  'fiiz',
 
 
383
  'fredodq',
384
  'GhiMax',
385
  'GuneshGamza95',
386
  'hanro',
 
 
387
  'hushiea',
388
  'i__k',
389
  'JensZ',
@@ -399,6 +404,7 @@ class SP_Admin_Welcome {
399
  'matiqos',
400
  'MohamedZ',
401
  'overbite',
 
402
  'Paramamithra',
403
  'poelie',
404
  'popeosorio',
@@ -414,6 +420,7 @@ class SP_Admin_Welcome {
414
  'ThemeBoy',
415
  'tyby94',
416
  'valentijnreza',
 
417
  'violaud',
418
  'vlinicx',
419
  'xFrAx',
9
  * @author ThemeBoy
10
  * @category Admin
11
  * @package SportsPress/Admin
12
+ * @version 1.7.3
13
  */
14
 
15
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
203
  $steps = apply_filters( 'sportspress_next_steps', array(
204
  'teams' => array(
205
  'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_team' ), 'edit.php' ) ),
206
+ 'icon' => 'sp-icon-shield',
207
  'label' => __( 'Add New Team', 'sportspress' ),
208
  ),
209
  'players' => array(
210
  'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_player' ), 'edit.php' ) ),
211
+ 'icon' => 'sp-icon-tshirt',
212
  'label' => __( 'Add New Player', 'sportspress' ),
213
  ),
214
  'events' => array(
215
  'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_event' ), 'edit.php' ) ),
216
+ 'icon' => 'sp-icon-calendar',
217
  'label' => __( 'Add New Event', 'sportspress' ),
218
  ),
219
  ) );
222
  <div class="sportspress-steps">
223
  <ul>
224
  <?php foreach ( $steps as $step ) { ?>
225
+ <li><a href="<?php echo esc_url( $step['link'] ); ?>" class="welcome-icon sp-welcome-icon"><i class="<?php echo sp_array_value( $step, 'icon' ); ?>"></i> <?php echo $step['label']; ?></a></li>
226
  <?php } ?>
227
  </ul>
228
  </div>
229
  <?php } ?>
230
+
231
+ <h4><?php _e( 'Settings', 'sportspress' ); ?></h4>
232
+ <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress', 'tab' => 'general' ), 'admin.php' ) ) ); ?>"><?php _e( 'Go to SportsPress Settings', 'sportspress' ); ?></a>
233
  <?php } else { ?>
234
  <form method="post" id="mainform" action="" enctype="multipart/form-data">
235
  <h4><?php _e( 'Basic Setup', 'sportspress' ); ?></h4>
328
  <?php echo $this->contributors(); ?>
329
  </div>
330
 
331
+ <p class="about-description"><?php printf( __( 'Some presets have been submitted by our helpful and generous users. Want to see your name? <a href="%s">Add a Sport Preset</a>.', 'sportspress' ), 'http://tboy.co/preset' ); ?></p>
332
 
333
  <div class="sp-feature feature-section col one-col">
334
  <h4><?php _e( 'Presets', 'sportspress' ); ?></h4>
363
  $translator_handles = array(
364
  'Abdulelah',
365
  'albertone',
366
+ 'alexander.salomon99',
367
  'alisiddique',
368
  'ALooNeBoy87',
369
  'Andrew_Melim',
381
  'etcloki',
382
  'Ferenan',
383
  'fiiz',
384
+ 'filippos.sdr',
385
+ 'francois53',
386
  'fredodq',
387
  'GhiMax',
388
  'GuneshGamza95',
389
  'hanro',
390
+ 'Hermanni',
391
+ 'HuguesD',
392
  'hushiea',
393
  'i__k',
394
  'JensZ',
404
  'matiqos',
405
  'MohamedZ',
406
  'overbite',
407
+ 'Ozias',
408
  'Paramamithra',
409
  'poelie',
410
  'popeosorio',
420
  'ThemeBoy',
421
  'tyby94',
422
  'valentijnreza',
423
+ 'ValliFudd',
424
  'violaud',
425
  'vlinicx',
426
  'xFrAx',
includes/admin/class-sp-admin.php CHANGED
@@ -10,7 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  * @author ThemeBoy
11
  * @category Admin
12
  * @package SportsPress/Admin
13
- * @version 1.6
14
  */
15
  class SP_Admin {
16
 
@@ -55,10 +55,6 @@ class SP_Admin {
55
  include( 'class-sp-admin-editor.php' );
56
  endif;
57
  }
58
-
59
- // Importers
60
- if ( defined( 'WP_LOAD_IMPORTERS' ) )
61
- include( 'class-sp-admin-importers.php' );
62
  }
63
 
64
  /**
10
  * @author ThemeBoy
11
  * @category Admin
12
  * @package SportsPress/Admin
13
+ * @version 1.7
14
  */
15
  class SP_Admin {
16
 
55
  include( 'class-sp-admin-editor.php' );
56
  endif;
57
  }
 
 
 
 
58
  }
59
 
60
  /**
includes/admin/importers/class-sp-player-importer.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Importers
8
- * @version 1.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -23,7 +23,7 @@ if ( class_exists( 'WP_Importer' ) ) {
23
  $this->import_page = 'sp_player_csv';
24
  $this->import_label = __( 'Import Players', 'sportspress' );
25
  $this->columns = array(
26
- 'sp_number' => __( 'Number', 'sportspress' ),
27
  'post_title' => __( 'Name', 'sportspress' ),
28
  'sp_position' => __( 'Positions', 'sportspress' ),
29
  'sp_team' => __( 'Teams', 'sportspress' ),
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Importers
8
+ * @version 1.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
23
  $this->import_page = 'sp_player_csv';
24
  $this->import_label = __( 'Import Players', 'sportspress' );
25
  $this->columns = array(
26
+ 'sp_number' => __( 'Squad Number', 'sportspress' ),
27
  'post_title' => __( 'Name', 'sportspress' ),
28
  'sp_position' => __( 'Positions', 'sportspress' ),
29
  'sp_team' => __( 'Teams', 'sportspress' ),
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.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -156,6 +156,7 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT {
156
 
157
  if ( is_array( $team_results ) ):
158
  unset( $team_results['outcome'] );
 
159
  $team_results = implode( ' | ', $team_results );
160
  endif;
161
 
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Post_Types
8
+ * @version 1.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
156
 
157
  if ( is_array( $team_results ) ):
158
  unset( $team_results['outcome'] );
159
+ $team_results = array_filter( $team_results, 'sp_filter_non_empty' );
160
  $team_results = implode( ' | ', $team_results );
161
  endif;
162
 
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.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -61,7 +61,7 @@ class SP_Admin_CPT_Player extends SP_Admin_CPT {
61
  unset( $existing_columns['author'], $existing_columns['date'] );
62
  $columns = array_merge( array(
63
  'cb' => '<input type="checkbox" />',
64
- 'sp_number' => '<span class="dashicons sp-icon-tshirt sp-tip" title="' . __( 'Number', 'sportspress' ) . '"></span>',
65
  'title' => null,
66
  'sp_position' => __( 'Positions', 'sportspress' ),
67
  'sp_team' => __( 'Teams', 'sportspress' ),
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Post_Types
8
+ * @version 1.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
61
  unset( $existing_columns['author'], $existing_columns['date'] );
62
  $columns = array_merge( array(
63
  'cb' => '<input type="checkbox" />',
64
+ 'sp_number' => '<span class="dashicons sp-icon-tshirt sp-tip" title="' . __( 'Squad Number', 'sportspress' ) . '"></span>',
65
  'title' => null,
66
  'sp_position' => __( 'Positions', 'sportspress' ),
67
  'sp_team' => __( 'Teams', 'sportspress' ),
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.6.1
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -27,15 +27,6 @@ class SP_Admin_Meta_Boxes {
27
  */
28
  public function __construct() {
29
  $meta_boxes = array(
30
- 'sp_result' => array(
31
- 'details' => array(
32
- 'title' => __( 'Details', 'sportspress' ),
33
- 'save' => 'SP_Meta_Box_Result_Details::save',
34
- 'output' => 'SP_Meta_Box_Result_Details::output',
35
- 'context' => 'normal',
36
- 'priority' => 'high',
37
- ),
38
- ),
39
  'sp_outcome' => array(
40
  'details' => array(
41
  'title' => __( 'Details', 'sportspress' ),
@@ -45,20 +36,11 @@ class SP_Admin_Meta_Boxes {
45
  'priority' => 'high',
46
  ),
47
  ),
48
- 'sp_metric' => array(
49
- 'details' => array(
50
- 'title' => __( 'Details', 'sportspress' ),
51
- 'save' => 'SP_Meta_Box_Metric_Details::save',
52
- 'output' => 'SP_Meta_Box_Metric_Details::output',
53
- 'context' => 'normal',
54
- 'priority' => 'high',
55
- ),
56
- ),
57
- 'sp_outcome' => array(
58
  'details' => array(
59
  'title' => __( 'Details', 'sportspress' ),
60
- 'save' => 'SP_Meta_Box_Metric_Details::save',
61
- 'output' => 'SP_Meta_Box_Metric_Details::output',
62
  'context' => 'normal',
63
  'priority' => 'high',
64
  ),
@@ -72,34 +54,43 @@ class SP_Admin_Meta_Boxes {
72
  'priority' => 'high',
73
  ),
74
  ),
75
- 'sp_statistic' => array(
76
  'details' => array(
77
  'title' => __( 'Details', 'sportspress' ),
78
- 'save' => 'SP_Meta_Box_Statistic_Details::save',
79
- 'output' => 'SP_Meta_Box_Statistic_Details::output',
80
  'context' => 'side',
81
  'priority' => 'default',
82
  ),
83
  'equation' => array(
84
  'title' => __( 'Equation', 'sportspress' ),
85
- 'save' => 'SP_Meta_Box_Statistic_Equation::save',
86
- 'output' => 'SP_Meta_Box_Statistic_Equation::output',
87
  'context' => 'normal',
88
  'priority' => 'high',
89
  ),
90
  ),
91
- 'sp_column' => array(
92
  'details' => array(
93
  'title' => __( 'Details', 'sportspress' ),
94
- 'save' => 'SP_Meta_Box_Column_Details::save',
95
- 'output' => 'SP_Meta_Box_Column_Details::output',
 
 
 
 
 
 
 
 
 
96
  'context' => 'side',
97
  'priority' => 'default',
98
  ),
99
  'equation' => array(
100
  'title' => __( 'Equation', 'sportspress' ),
101
- 'save' => 'SP_Meta_Box_Column_Equation::save',
102
- 'output' => 'SP_Meta_Box_Column_Equation::output',
103
  'context' => 'normal',
104
  'priority' => 'high',
105
  ),
7
  * @author ThemeBoy
8
  * @category Admin
9
  * @package SportsPress/Admin/Meta_Boxes
10
+ * @version 1.7
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
27
  */
28
  public function __construct() {
29
  $meta_boxes = array(
 
 
 
 
 
 
 
 
 
30
  'sp_outcome' => array(
31
  'details' => array(
32
  'title' => __( 'Details', 'sportspress' ),
36
  'priority' => 'high',
37
  ),
38
  ),
39
+ 'sp_result' => array(
 
 
 
 
 
 
 
 
 
40
  'details' => array(
41
  'title' => __( 'Details', 'sportspress' ),
42
+ 'save' => 'SP_Meta_Box_Result_Details::save',
43
+ 'output' => 'SP_Meta_Box_Result_Details::output',
44
  'context' => 'normal',
45
  'priority' => 'high',
46
  ),
54
  'priority' => 'high',
55
  ),
56
  ),
57
+ 'sp_column' => array(
58
  'details' => array(
59
  'title' => __( 'Details', 'sportspress' ),
60
+ 'save' => 'SP_Meta_Box_Column_Details::save',
61
+ 'output' => 'SP_Meta_Box_Column_Details::output',
62
  'context' => 'side',
63
  'priority' => 'default',
64
  ),
65
  'equation' => array(
66
  'title' => __( 'Equation', 'sportspress' ),
67
+ 'save' => 'SP_Meta_Box_Column_Equation::save',
68
+ 'output' => 'SP_Meta_Box_Column_Equation::output',
69
  'context' => 'normal',
70
  'priority' => 'high',
71
  ),
72
  ),
73
+ 'sp_metric' => array(
74
  'details' => array(
75
  'title' => __( 'Details', 'sportspress' ),
76
+ 'save' => 'SP_Meta_Box_Metric_Details::save',
77
+ 'output' => 'SP_Meta_Box_Metric_Details::output',
78
+ 'context' => 'normal',
79
+ 'priority' => 'high',
80
+ ),
81
+ ),
82
+ 'sp_statistic' => array(
83
+ 'details' => array(
84
+ 'title' => __( 'Details', 'sportspress' ),
85
+ 'save' => 'SP_Meta_Box_Statistic_Details::save',
86
+ 'output' => 'SP_Meta_Box_Statistic_Details::output',
87
  'context' => 'side',
88
  'priority' => 'default',
89
  ),
90
  'equation' => array(
91
  'title' => __( 'Equation', 'sportspress' ),
92
+ 'save' => 'SP_Meta_Box_Statistic_Equation::save',
93
+ 'output' => 'SP_Meta_Box_Statistic_Equation::output',
94
  'context' => 'normal',
95
  'priority' => 'high',
96
  ),
includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /**
3
- * Calendar Data
4
  *
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
- * @version 1.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -19,14 +19,13 @@ class SP_Meta_Box_Calendar_Details {
19
  * Output the metabox
20
  */
21
  public static function output( $post ) {
 
22
  $status = get_post_meta( $post->ID, 'sp_status', true );
23
  $date = get_post_meta( $post->ID, 'sp_date', true );
24
  $date_from = get_post_meta( $post->ID, 'sp_date_from', true );
25
  $date_to = get_post_meta( $post->ID, 'sp_date_to', true );
26
- $league_id = sp_get_the_term_id( $post->ID, 'sp_league', 0 );
27
- $season_id = sp_get_the_term_id( $post->ID, 'sp_season', 0 );
28
- $venue_id = sp_get_the_term_id( $post->ID, 'sp_venue', 0 );
29
- $team_id = get_post_meta( $post->ID, 'sp_team', true );
30
  $order = get_post_meta( $post->ID, 'sp_order', true );
31
  ?>
32
  <div>
@@ -59,60 +58,23 @@ class SP_Meta_Box_Calendar_Details {
59
  <input type="text" class="sp-datepicker-to" name="sp_date_to" value="<?php echo $date_to ? $date_to : date_i18n( 'Y-m-d' ); ?>" size="10">
60
  </p>
61
  </div>
62
- <p><strong><?php _e( 'Competition', 'sportspress' ); ?></strong></p>
63
- <p>
64
- <?php
65
- $args = array(
66
- 'show_option_all' => __( 'All', 'sportspress' ),
67
- 'taxonomy' => 'sp_league',
68
- 'name' => 'sp_league',
69
- 'selected' => $league_id,
70
- 'values' => 'term_id'
71
- );
72
- if ( ! sp_dropdown_taxonomies( $args ) ):
73
- sp_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New', 'sportspress' ) );
74
- endif;
75
- ?>
76
- </p>
77
- <p><strong><?php _e( 'Season', 'sportspress' ); ?></strong></p>
78
- <p class="sp-tab-select">
79
- <?php
80
- $args = array(
81
- 'show_option_all' => __( 'All', 'sportspress' ),
82
- 'taxonomy' => 'sp_season',
83
- 'name' => 'sp_season',
84
- 'selected' => $season_id,
85
- 'values' => 'term_id'
86
- );
87
- if ( ! sp_dropdown_taxonomies( $args ) ):
88
- sp_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
89
- endif;
90
- ?>
91
- </p>
92
- <p><strong><?php _e( 'Venue', 'sportspress' ); ?></strong></p>
93
- <p>
94
- <?php
95
- $args = array(
96
- 'show_option_all' => __( 'All', 'sportspress' ),
97
- 'taxonomy' => 'sp_venue',
98
- 'name' => 'sp_venue',
99
- 'selected' => $venue_id,
100
- 'values' => 'term_id'
101
- );
102
- if ( ! sp_dropdown_taxonomies( $args ) ):
103
- sp_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
104
- endif;
105
- ?>
106
- </p>
107
  <p><strong><?php _e( 'Team', 'sportspress' ); ?></strong></p>
108
  <p>
109
  <?php
110
  $args = array(
111
- 'show_option_all' => __( 'All', 'sportspress' ),
112
  'post_type' => 'sp_team',
113
- 'name' => 'sp_team',
114
- 'selected' => $team_id,
115
- 'values' => 'ID'
 
 
 
 
116
  );
117
  if ( ! sp_dropdown_pages( $args ) ):
118
  sp_post_adder( 'sp_team', __( 'Add New', 'sportspress' ) );
@@ -134,14 +96,11 @@ class SP_Meta_Box_Calendar_Details {
134
  * Save meta box data
135
  */
136
  public static function save( $post_id, $post ) {
137
- wp_set_post_terms( $post_id, sp_array_value( $_POST, 'sp_league', 0 ), 'sp_league' );
138
- wp_set_post_terms( $post_id, sp_array_value( $_POST, 'sp_season', 0 ), 'sp_season' );
139
- wp_set_post_terms( $post_id, sp_array_value( $_POST, 'sp_venue', 0 ), 'sp_venue' );
140
  update_post_meta( $post_id, 'sp_status', sp_array_value( $_POST, 'sp_status', 0 ) );
141
  update_post_meta( $post_id, 'sp_date', sp_array_value( $_POST, 'sp_date', 0 ) );
142
  update_post_meta( $post_id, 'sp_date_from', sp_array_value( $_POST, 'sp_date_from', null ) );
143
  update_post_meta( $post_id, 'sp_date_to', sp_array_value( $_POST, 'sp_date_to', null ) );
144
  update_post_meta( $post_id, 'sp_order', sp_array_value( $_POST, 'sp_order', array() ) );
145
- update_post_meta( $post_id, 'sp_team', sp_array_value( $_POST, 'sp_team', 0 ) );
146
  }
147
  }
1
  <?php
2
  /**
3
+ * Calendar Details
4
  *
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
+ * @version 1.7.4
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
  * Output the metabox
20
  */
21
  public static function output( $post ) {
22
+ $taxonomies = get_object_taxonomies( 'sp_calendar' );
23
  $status = get_post_meta( $post->ID, 'sp_status', true );
24
  $date = get_post_meta( $post->ID, 'sp_date', true );
25
  $date_from = get_post_meta( $post->ID, 'sp_date_from', true );
26
  $date_to = get_post_meta( $post->ID, 'sp_date_to', true );
27
+ $teams = get_post_meta( $post->ID, 'sp_team', false );
28
+ $table_id = get_post_meta( $post->ID, 'sp_table', true );
 
 
29
  $order = get_post_meta( $post->ID, 'sp_order', true );
30
  ?>
31
  <div>
58
  <input type="text" class="sp-datepicker-to" name="sp_date_to" value="<?php echo $date_to ? $date_to : date_i18n( 'Y-m-d' ); ?>" size="10">
59
  </p>
60
  </div>
61
+ <?php
62
+ foreach ( $taxonomies as $taxonomy ) {
63
+ sp_taxonomy_field( $taxonomy, $post, true );
64
+ }
65
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  <p><strong><?php _e( 'Team', 'sportspress' ); ?></strong></p>
67
  <p>
68
  <?php
69
  $args = array(
 
70
  'post_type' => 'sp_team',
71
+ 'name' => 'sp_team[]',
72
+ 'selected' => $teams,
73
+ 'values' => 'ID',
74
+ 'class' => 'widefat',
75
+ 'property' => 'multiple',
76
+ 'chosen' => true,
77
+ 'placeholder' => __( 'All', 'sportspress' ),
78
  );
79
  if ( ! sp_dropdown_pages( $args ) ):
80
  sp_post_adder( 'sp_team', __( 'Add New', 'sportspress' ) );
96
  * Save meta box data
97
  */
98
  public static function save( $post_id, $post ) {
 
 
 
99
  update_post_meta( $post_id, 'sp_status', sp_array_value( $_POST, 'sp_status', 0 ) );
100
  update_post_meta( $post_id, 'sp_date', sp_array_value( $_POST, 'sp_date', 0 ) );
101
  update_post_meta( $post_id, 'sp_date_from', sp_array_value( $_POST, 'sp_date_from', null ) );
102
  update_post_meta( $post_id, 'sp_date_to', sp_array_value( $_POST, 'sp_date_to', null ) );
103
  update_post_meta( $post_id, 'sp_order', sp_array_value( $_POST, 'sp_order', array() ) );
104
+ sp_update_post_meta_recursive( $post_id, 'sp_team', sp_array_value( $_POST, 'sp_team', array() ) );
105
  }
106
  }
includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
- * @version 1.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -19,8 +19,8 @@ class SP_Meta_Box_Event_Details {
19
  * Output the metabox
20
  */
21
  public static function output( $post ) {
 
22
  $minutes = get_post_meta( $post->ID, 'sp_minutes', true );
23
- $taxonomies = apply_filters( 'sportspress_event_taxonomies', array( 'sp_league' => null, 'sp_season' => null, 'sp_venue' => 'sp_event' ) );
24
  ?>
25
  <div class="sp-event-minutes-field">
26
  <p><strong><?php _e( 'Full Time', 'sportspress' ); ?></strong></p>
@@ -30,34 +30,35 @@ class SP_Meta_Box_Event_Details {
30
  </p>
31
  </div>
32
  <?php
33
- foreach ( $taxonomies as $taxonomy => $post_type ) {
34
- $obj = get_taxonomy( $taxonomy ); if ( $obj ) {
35
- ?>
36
- <div class="sp-event-<?php echo $taxonomy; ?>-field">
37
- <p><strong><?php echo $obj->labels->singular_name; ?></strong></p>
38
- <p>
39
- <?php
40
- $args = array(
41
- 'taxonomy' => $taxonomy,
42
- 'name' => $taxonomy,
43
- 'class' => 'sp-has-dummy',
44
- 'selected' => sp_get_the_term_id_or_meta( $post->ID, $taxonomy ),
45
- 'values' => 'term_id',
46
- 'show_option_none' => __( '&mdash; Not set &mdash;', 'sportspress' ),
47
- 'chosen' => true,
48
- );
49
- if ( in_array( $taxonomy, apply_filters( 'sportspress_event_auto_taxonomies', array( 'sp_venue' ) ) ) ) {
50
- $args['show_option_all'] = __( '(Auto)', 'sportspress' );
51
- }
52
- if ( ! sp_dropdown_taxonomies( $args ) ) {
53
- sp_taxonomy_adder( $taxonomy, $post_type, $obj->labels->add_new_item );
54
- }
55
- ?>
56
- </p>
57
- </div>
58
- <?php
59
- }
60
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  }
62
 
63
  /**
@@ -65,16 +66,12 @@ class SP_Meta_Box_Event_Details {
65
  */
66
  public static function save( $post_id, $post ) {
67
  update_post_meta( $post_id, 'sp_minutes', sp_array_value( $_POST, 'sp_minutes', get_option( 'sportspress_event_minutes', 90 ) ) );
68
- $taxonomies = apply_filters( 'sportspress_event_taxonomies', array( 'sp_league' => null, 'sp_season' => null, 'sp_venue' => 'sp_event' ) );
69
- foreach ( $taxonomies as $taxonomy => $post_type ) {
70
- $value = sp_array_value( $_POST, $taxonomy, -1 );
71
- if ( 0 == $value) {
72
- $teams = sp_array_value( $_POST, 'sp_team', array() );
73
- $team = reset( $teams );
74
- $value = sp_get_the_term_id( $team, $taxonomy );
75
- }
76
- wp_set_post_terms( $post_id, $value, $taxonomy );
77
- update_post_meta( $post_id, $taxonomy, $value );
78
  }
79
  }
80
  }
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
+ * @version 1.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
  * Output the metabox
20
  */
21
  public static function output( $post ) {
22
+ $taxonomies = get_object_taxonomies( 'sp_event' );
23
  $minutes = get_post_meta( $post->ID, 'sp_minutes', true );
 
24
  ?>
25
  <div class="sp-event-minutes-field">
26
  <p><strong><?php _e( 'Full Time', 'sportspress' ); ?></strong></p>
30
  </p>
31
  </div>
32
  <?php
33
+ foreach ( $taxonomies as $taxonomy ) {
34
+ if ( 'sp_venue' == $taxonomy ) continue;
35
+ sp_taxonomy_field( $taxonomy, $post, true );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  }
37
+ ?>
38
+ <div class="sp-event-sp_venue-field">
39
+ <p><strong><?php _e( 'Venue', 'sportspress' ); ?></strong></p>
40
+ <p>
41
+ <?php
42
+ $terms = get_the_terms( $post->ID, 'sp_venue' );
43
+ $args = array(
44
+ 'taxonomy' => 'sp_venue',
45
+ 'name' => 'tax_input[sp_venue][]',
46
+ 'class' => 'sp-has-dummy',
47
+ 'selected' => sp_get_the_term_id_or_meta( $post->ID, 'sp_venue' ),
48
+ 'values' => 'term_id',
49
+ 'show_option_none' => __( '&mdash; Not set &mdash;', 'sportspress' ),
50
+ 'chosen' => true,
51
+ );
52
+ if ( in_array( 'sp_venue', apply_filters( 'sportspress_event_auto_taxonomies', array( 'sp_venue' ) ) ) ) {
53
+ $args['show_option_all'] = __( '(Auto)', 'sportspress' );
54
+ }
55
+ if ( ! sp_dropdown_taxonomies( $args ) ) {
56
+ sp_taxonomy_adder( 'sp_venue', 'sp_event', __( 'Add New', 'sportspress' ) );
57
+ }
58
+ ?>
59
+ </p>
60
+ </div>
61
+ <?php
62
  }
63
 
64
  /**
66
  */
67
  public static function save( $post_id, $post ) {
68
  update_post_meta( $post_id, 'sp_minutes', sp_array_value( $_POST, 'sp_minutes', get_option( 'sportspress_event_minutes', 90 ) ) );
69
+ $venues = array_filter( sp_array_value( sp_array_value( $_POST, 'tax_input', array() ), 'sp_venue', array() ) );
70
+ if ( empty( $venues ) ) {
71
+ $teams = sp_array_value( $_POST, 'sp_team', array() );
72
+ $team = reset( $teams );
73
+ $venue = sp_get_the_term_id( $team, 'sp_venue' );
74
+ wp_set_post_terms( $post_id, $venue, 'sp_venue' );
 
 
 
 
75
  }
76
  }
77
  }
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.5
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -29,8 +29,27 @@ class SP_Meta_Box_Event_Performance {
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 );
 
32
  $data = sp_array_combine( $players, sp_array_value( $stats, $team_id, array() ) );
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  ?>
35
  <div>
36
  <?php if ( $team_id ): ?>
@@ -38,7 +57,7 @@ class SP_Meta_Box_Event_Performance {
38
  <?php elseif ( $i ): ?>
39
  <br>
40
  <?php endif; ?>
41
- <?php self::table( $labels, $columns, $data, $team_id, $i == 0 ); ?>
42
  </div>
43
  <?php
44
  $i ++;
@@ -56,7 +75,7 @@ class SP_Meta_Box_Event_Performance {
56
  /**
57
  * Admin edit table
58
  */
59
- public static function table( $labels = array(), $columns = array(), $data = array(), $team_id, $has_checkboxes = false ) {
60
  ?>
61
  <div class="sp-data-table-container">
62
  <table class="widefat sp-data-table sp-performance-table sp-sortable-table">
@@ -65,15 +84,8 @@ class SP_Meta_Box_Event_Performance {
65
  <th class="icon">&nbsp;</th>
66
  <th>#</th>
67
  <th><?php _e( 'Player', 'sportspress' ); ?></th>
68
- <th>
69
- <?php if ( $has_checkboxes ): ?>
70
- <label for="sp_columns_position">
71
- <input type="checkbox" name="sp_columns[]" value="position" id="sp_columns_position" <?php checked( ! is_array( $columns ) || in_array( 'position', $columns ) ); ?>>
72
- <?php _e( 'Position', 'sportspress' ); ?>
73
- </label>
74
- <?php else: ?>
75
- <?php _e( 'Position', 'sportspress' ); ?>
76
- <?php endif; ?>
77
  </th>
78
  <?php foreach ( $labels as $key => $label ): ?>
79
  <th>
@@ -99,6 +111,22 @@ class SP_Meta_Box_Event_Performance {
99
  </tr>
100
  </thead>
101
  <tfoot>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  <tr class="sp-row sp-total">
103
  <td>&nbsp;</td>
104
  <td>&nbsp;</td>
@@ -106,10 +134,10 @@ class SP_Meta_Box_Event_Performance {
106
  <td>&nbsp;</td>
107
  <?php foreach( $labels as $column => $label ):
108
  $player_id = 0;
109
- $player_performance = sp_array_value( $data, 0, array() );
110
  $value = sp_array_value( $player_performance, $column, '' );
111
  ?>
112
- <td><input type="text" name="sp_players[<?php echo $team_id; ?>][<?php echo $player_id; ?>][<?php echo $column; ?>]" value="<?php echo $value; ?>" placeholder="0" /></td>
113
  <?php endforeach; ?>
114
  <td>&nbsp;</td>
115
  </tr>
@@ -117,7 +145,7 @@ class SP_Meta_Box_Event_Performance {
117
  <tbody>
118
  <?php
119
  foreach ( $data as $player_id => $player_performance ):
120
- if ( !$player_id ) continue;
121
  $number = get_post_meta( $player_id, 'sp_number', true );
122
  $value = sp_array_value( $player_performance, 'number', '' );
123
  ?>
@@ -129,16 +157,19 @@ class SP_Meta_Box_Event_Performance {
129
  <td><?php echo get_the_title( $player_id ); ?></td>
130
  <td>
131
  <?php
132
- $selected = sp_array_value( $player_performance, 'position', null );
133
  if ( $selected == null ):
134
- $selected = sp_get_the_term_id( $player_id, 'sp_position', 0 );
135
  endif;
136
  $args = array(
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
  ?>
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
+ * @version 1.7.2
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
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 );
32
+ $players[] = -1;
33
  $data = sp_array_combine( $players, sp_array_value( $stats, $team_id, array() ) );
34
 
35
+ // Determine if we need checkboxes
36
+ if ( 'manual' == get_option( 'sportspress_event_performance_columns', 'auto' ) && $i == 0 )
37
+ $has_checkboxes = true;
38
+ else
39
+ $has_checkboxes = false;
40
+
41
+ // Determine if we need extras
42
+ if ( 'yes' == get_option( 'sportspress_event_show_extras', 'no' ) )
43
+ $show_extras = true;
44
+ else
45
+ $show_extras = false;
46
+
47
+ // Determine if we are splitting positions
48
+ if ( 'yes' == get_option( 'sportspress_event_split_players_by_position', 'no' ) )
49
+ $split_positions = true;
50
+ else
51
+ $split_positions = false;
52
+
53
  ?>
54
  <div>
55
  <?php if ( $team_id ): ?>
57
  <?php elseif ( $i ): ?>
58
  <br>
59
  <?php endif; ?>
60
+ <?php self::table( $labels, $columns, $data, $team_id, $has_checkboxes, $show_extras, $split_positions ); ?>
61
  </div>
62
  <?php
63
  $i ++;
75
  /**
76
  * Admin edit table
77
  */
78
+ public static function table( $labels = array(), $columns = array(), $data = array(), $team_id, $has_checkboxes = false, $show_extras = false, $split_positions = false ) {
79
  ?>
80
  <div class="sp-data-table-container">
81
  <table class="widefat sp-data-table sp-performance-table sp-sortable-table">
84
  <th class="icon">&nbsp;</th>
85
  <th>#</th>
86
  <th><?php _e( 'Player', 'sportspress' ); ?></th>
87
+ <th class="column-position">
88
+ <?php _e( 'Position', 'sportspress' ); ?>
 
 
 
 
 
 
 
89
  </th>
90
  <?php foreach ( $labels as $key => $label ): ?>
91
  <th>
111
  </tr>
112
  </thead>
113
  <tfoot>
114
+ <?php if ( $show_extras ) { ?>
115
+ <tr class="sp-row sp-post sp-extras">
116
+ <td>&nbsp;</td>
117
+ <td>&nbsp;</td>
118
+ <td><strong><?php _e( 'Extras', 'sportspress' ); ?></strong></td>
119
+ <td>&nbsp;</td>
120
+ <?php foreach( $labels as $column => $label ):
121
+ $player_id = -1;
122
+ $player_performance = sp_array_value( $data, $player_id, array() );
123
+ $value = sp_array_value( $player_performance, $column, '' );
124
+ ?>
125
+ <td><input type="text" name="sp_players[<?php echo $team_id; ?>][<?php echo $player_id; ?>][<?php echo $column; ?>]" value="<?php echo $value; ?>" /></td>
126
+ <?php endforeach; ?>
127
+ <td>&nbsp;</td>
128
+ </tr>
129
+ <?php } ?>
130
  <tr class="sp-row sp-total">
131
  <td>&nbsp;</td>
132
  <td>&nbsp;</td>
134
  <td>&nbsp;</td>
135
  <?php foreach( $labels as $column => $label ):
136
  $player_id = 0;
137
+ $player_performance = sp_array_value( $data, $player_id, array() );
138
  $value = sp_array_value( $player_performance, $column, '' );
139
  ?>
140
+ <td><input type="text" name="sp_players[<?php echo $team_id; ?>][<?php echo $player_id; ?>][<?php echo $column; ?>]" placeholder="0" <?php if ( $split_positions ) { ?>readonly="readonly"<?php } else { ?>value="<?php echo $value; ?>"<?php } ?> /></td>
141
  <?php endforeach; ?>
142
  <td>&nbsp;</td>
143
  </tr>
145
  <tbody>
146
  <?php
147
  foreach ( $data as $player_id => $player_performance ):
148
+ if ( $player_id <= 0 ) continue;
149
  $number = get_post_meta( $player_id, 'sp_number', true );
150
  $value = sp_array_value( $player_performance, 'number', '' );
151
  ?>
157
  <td><?php echo get_the_title( $player_id ); ?></td>
158
  <td>
159
  <?php
160
+ $selected = (array) sp_array_value( $player_performance, 'position', null );
161
  if ( $selected == null ):
162
+ $selected = (array) sp_get_the_term_id( $player_id, 'sp_position', 0 );
163
  endif;
164
  $args = array(
165
  'taxonomy' => 'sp_position',
166
+ 'name' => 'sp_players[' . $team_id . '][' . $player_id . '][position][]',
167
  'values' => 'term_id',
168
  'orderby' => 'slug',
169
  'selected' => $selected,
170
+ 'class' => 'sp-position',
171
+ 'property' => 'multiple',
172
+ 'chosen' => true,
173
  );
174
  sp_dropdown_taxonomies( $args );
175
  ?>
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.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -19,9 +19,15 @@ class SP_Meta_Box_Event_Results {
19
  * Output the metabox
20
  */
21
  public static function output( $post ) {
 
 
 
 
 
 
22
  $event = new SP_Event( $post );
23
  list( $columns, $usecolumns, $data ) = $event->results( true );
24
- self::table( $columns, $usecolumns, $data );
25
  }
26
 
27
  /**
@@ -116,7 +122,7 @@ class SP_Meta_Box_Event_Results {
116
  /**
117
  * Admin edit table
118
  */
119
- public static function table( $columns = array(), $usecolumns = array(), $data = array() ) {
120
  ?>
121
  <div class="sp-data-table-container">
122
  <table class="widefat sp-data-table">
@@ -127,17 +133,18 @@ class SP_Meta_Box_Event_Results {
127
  </th>
128
  <?php foreach ( $columns as $key => $label ): ?>
129
  <th class="column-<?php echo $key; ?>">
130
- <label for="sp_result_columns_<?php echo $key; ?>">
131
- <input type="checkbox" name="sp_result_columns[]" value="<?php echo $key; ?>" id="sp_result_columns_<?php echo $key; ?>" <?php checked( ! is_array( $usecolumns ) || in_array( $key, $usecolumns ) ); ?>>
 
 
 
 
132
  <?php echo $label; ?>
133
- </label>
134
  </th>
135
  <?php endforeach; ?>
136
  <th class="column-outcome">
137
- <label for="sp_result_columns_outcome">
138
- <input type="checkbox" name="sp_result_columns[]" value="outcome" id="sp_result_columns_outcome" <?php checked( ! is_array( $usecolumns ) || in_array( 'outcome', $usecolumns ) ); ?>>
139
- <?php _e( 'Outcome', 'sportspress' ); ?>
140
- </label>
141
  </th>
142
  </tr>
143
  </thead>
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
+ * @version 1.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
  * Output the metabox
20
  */
21
  public static function output( $post ) {
22
+ // Determine if we need checkboxes
23
+ if ( 'manual' == get_option( 'sportspress_event_result_columns', 'auto' ) )
24
+ $has_checkboxes = true;
25
+ else
26
+ $has_checkboxes = false;
27
+
28
  $event = new SP_Event( $post );
29
  list( $columns, $usecolumns, $data ) = $event->results( true );
30
+ self::table( $columns, $usecolumns, $data, $has_checkboxes );
31
  }
32
 
33
  /**
122
  /**
123
  * Admin edit table
124
  */
125
+ public static function table( $columns = array(), $usecolumns = array(), $data = array(), $has_checkboxes = false ) {
126
  ?>
127
  <div class="sp-data-table-container">
128
  <table class="widefat sp-data-table">
133
  </th>
134
  <?php foreach ( $columns as $key => $label ): ?>
135
  <th class="column-<?php echo $key; ?>">
136
+ <?php if ( $has_checkboxes ): ?>
137
+ <label for="sp_result_columns_<?php echo $key; ?>">
138
+ <input type="checkbox" name="sp_result_columns[]" value="<?php echo $key; ?>" id="sp_result_columns_<?php echo $key; ?>" <?php checked( ! is_array( $usecolumns ) || in_array( $key, $usecolumns ) ); ?>>
139
+ <?php echo $label; ?>
140
+ </label>
141
+ <?php else: ?>
142
  <?php echo $label; ?>
143
+ <?php endif; ?>
144
  </th>
145
  <?php endforeach; ?>
146
  <th class="column-outcome">
147
+ <?php _e( 'Outcome', 'sportspress' ); ?>
 
 
 
148
  </th>
149
  </tr>
150
  </thead>
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.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -21,38 +21,10 @@ class SP_Meta_Box_Event_Teams {
21
  public static function output( $post ) {
22
  $limit = get_option( 'sportspress_event_teams', 2 );
23
  $teams = (array) get_post_meta( $post->ID, 'sp_team', false );
24
- $league_id = sp_get_the_term_id( $post->ID, 'sp_league', 0 );
25
- $season_id = sp_get_the_term_id( $post->ID, 'sp_season', 0 );
26
  for ( $i = 0; $i < $limit; $i ++ ):
27
  $team = array_shift( $teams );
28
  ?>
29
  <div class="sp-instance">
30
- <p class="sp-tab-select sp-tab-select-dummy">
31
- <?php
32
- $args = array(
33
- 'taxonomy' => 'sp_league',
34
- 'name' => 'sp_league_dummy',
35
- 'class' => 'sp-dummy sp_league-dummy',
36
- 'show_option_all' => __( 'All', 'sportspress' ),
37
- 'selected' => $league_id,
38
- 'values' => 'term_id',
39
- );
40
- sp_dropdown_taxonomies( $args );
41
- ?>
42
- </p>
43
- <p class="sp-tab-select sp-tab-select-dummy">
44
- <?php
45
- $args = array(
46
- 'taxonomy' => 'sp_season',
47
- 'name' => 'sp_season_dummy',
48
- 'class' => 'sp-dummy sp_season-dummy',
49
- 'show_option_all' => __( 'All', 'sportspress' ),
50
- 'selected' => $season_id,
51
- 'values' => 'term_id',
52
- );
53
- sp_dropdown_taxonomies( $args );
54
- ?>
55
- </p>
56
  <p class="sp-tab-select sp-title-generator">
57
  <?php
58
  $args = array(
@@ -63,7 +35,26 @@ class SP_Meta_Box_Event_Teams {
63
  'values' => 'ID',
64
  'selected' => $team,
65
  'chosen' => true,
 
66
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  sp_dropdown_pages( $args );
68
  ?>
69
  </p>
@@ -97,4 +88,4 @@ class SP_Meta_Box_Event_Teams {
97
  }
98
  }
99
  }
100
- }
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
+ * @version 1.7.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
21
  public static function output( $post ) {
22
  $limit = get_option( 'sportspress_event_teams', 2 );
23
  $teams = (array) get_post_meta( $post->ID, 'sp_team', false );
 
 
24
  for ( $i = 0; $i < $limit; $i ++ ):
25
  $team = array_shift( $teams );
26
  ?>
27
  <div class="sp-instance">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  <p class="sp-tab-select sp-title-generator">
29
  <?php
30
  $args = array(
35
  'values' => 'ID',
36
  'selected' => $team,
37
  'chosen' => true,
38
+ 'tax_query' => array(),
39
  );
40
+ if ( 'yes' == get_option( 'sportspress_event_filter_teams_by_league', 'no' ) ) {
41
+ $league_id = sp_get_the_term_id( $post->ID, 'sp_league', 0 );
42
+ if ( $league_id ) {
43
+ $args['tax_query'][] = array(
44
+ 'taxonomy' => 'sp_league',
45
+ 'terms' => $league_id,
46
+ );
47
+ }
48
+ }
49
+ if ( 'yes' == get_option( 'sportspress_event_filter_teams_by_season', 'no' ) ) {
50
+ $season_id = sp_get_the_term_id( $post->ID, 'sp_season', 0 );
51
+ if ( $season_id ) {
52
+ $args['tax_query'][] = array(
53
+ 'taxonomy' => 'sp_season',
54
+ 'terms' => $season_id,
55
+ );
56
+ }
57
+ }
58
  sp_dropdown_pages( $args );
59
  ?>
60
  </p>
88
  }
89
  }
90
  }
91
+ }
includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
- * @version 1.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -19,8 +19,7 @@ class SP_Meta_Box_List_Details {
19
  * Output the metabox
20
  */
21
  public static function output( $post ) {
22
- $league_id = sp_get_the_term_id( $post->ID, 'sp_league', 0 );
23
- $season_id = sp_get_the_term_id( $post->ID, 'sp_season', 0 );
24
  $team_id = get_post_meta( $post->ID, 'sp_team', true );
25
  $grouping = get_post_meta( $post->ID, 'sp_grouping', true );
26
  $orderby = get_post_meta( $post->ID, 'sp_orderby', true );
@@ -32,36 +31,11 @@ class SP_Meta_Box_List_Details {
32
  }
33
  ?>
34
  <div>
35
- <p><strong><?php _e( 'Competition', 'sportspress' ); ?></strong></p>
36
- <p class="sp-tab-select">
37
- <?php
38
- $args = array(
39
- 'taxonomy' => 'sp_league',
40
- 'name' => 'sp_league',
41
- 'show_option_all' => __( 'All', 'sportspress' ),
42
- 'selected' => $league_id,
43
- 'values' => 'term_id',
44
- );
45
- if ( ! sp_dropdown_taxonomies( $args ) ):
46
- sp_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New', 'sportspress' ) );
47
- endif;
48
- ?>
49
- </p>
50
- <p><strong><?php _e( 'Season', 'sportspress' ); ?></strong></p>
51
- <p class="sp-tab-select">
52
- <?php
53
- $args = array(
54
- 'taxonomy' => 'sp_season',
55
- 'name' => 'sp_season',
56
- 'show_option_all' => __( 'All', 'sportspress' ),
57
- 'selected' => $season_id,
58
- 'values' => 'term_id',
59
- );
60
- if ( ! sp_dropdown_taxonomies( $args ) ):
61
- sp_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
62
- endif;
63
- ?>
64
- </p>
65
  <?php if ( apply_filters( 'sportspress_list_team_selector', true ) ) { ?>
66
  <p><strong><?php _e( 'Team', 'sportspress' ); ?></strong></p>
67
  <p class="sp-tab-select">
@@ -91,7 +65,7 @@ class SP_Meta_Box_List_Details {
91
  <?php
92
  $args = array(
93
  'prepend_options' => array(
94
- 'number' => __( 'Number', 'sportspress' ),
95
  'name' => __( 'Name', 'sportspress' ),
96
  ),
97
  'post_type' => array( 'sp_performance', 'sp_metric', 'sp_statistic' ),
@@ -129,8 +103,6 @@ class SP_Meta_Box_List_Details {
129
  */
130
  public static function save( $post_id, $post ) {
131
  update_post_meta( $post_id, 'sp_team', sp_array_value( $_POST, 'sp_team', array() ) );
132
- wp_set_post_terms( $post_id, sp_array_value( $_POST, 'sp_league', 0 ), 'sp_league' );
133
- wp_set_post_terms( $post_id, sp_array_value( $_POST, 'sp_season', 0 ), 'sp_season' );
134
  update_post_meta( $post_id, 'sp_grouping', sp_array_value( $_POST, 'sp_grouping', array() ) );
135
  update_post_meta( $post_id, 'sp_orderby', sp_array_value( $_POST, 'sp_orderby', array() ) );
136
  update_post_meta( $post_id, 'sp_order', sp_array_value( $_POST, 'sp_order', array() ) );
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
+ * @version 1.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
  * Output the metabox
20
  */
21
  public static function output( $post ) {
22
+ $taxonomies = get_object_taxonomies( 'sp_list' );
 
23
  $team_id = get_post_meta( $post->ID, 'sp_team', true );
24
  $grouping = get_post_meta( $post->ID, 'sp_grouping', true );
25
  $orderby = get_post_meta( $post->ID, 'sp_orderby', true );
31
  }
32
  ?>
33
  <div>
34
+ <?php
35
+ foreach ( $taxonomies as $taxonomy ) {
36
+ sp_taxonomy_field( $taxonomy, $post, true );
37
+ }
38
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  <?php if ( apply_filters( 'sportspress_list_team_selector', true ) ) { ?>
40
  <p><strong><?php _e( 'Team', 'sportspress' ); ?></strong></p>
41
  <p class="sp-tab-select">
65
  <?php
66
  $args = array(
67
  'prepend_options' => array(
68
+ 'number' => __( 'Squad Number', 'sportspress' ),
69
  'name' => __( 'Name', 'sportspress' ),
70
  ),
71
  'post_type' => array( 'sp_performance', 'sp_metric', 'sp_statistic' ),
103
  */
104
  public static function save( $post_id, $post ) {
105
  update_post_meta( $post_id, 'sp_team', sp_array_value( $_POST, 'sp_team', array() ) );
 
 
106
  update_post_meta( $post_id, 'sp_grouping', sp_array_value( $_POST, 'sp_grouping', array() ) );
107
  update_post_meta( $post_id, 'sp_orderby', sp_array_value( $_POST, 'sp_orderby', array() ) );
108
  update_post_meta( $post_id, 'sp_order', sp_array_value( $_POST, 'sp_order', array() ) );
includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
- * @version 1.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -58,7 +58,7 @@ class SP_Meta_Box_Player_Details {
58
  $past_teams = array_filter( get_post_meta( $post->ID, 'sp_past_team', false ) );
59
  $current_teams = array_filter( get_post_meta( $post->ID, 'sp_current_team', false ) );
60
  ?>
61
- <p><strong><?php _e( 'Number', 'sportspress' ); ?></strong></p>
62
  <p><input type="text" size="4" id="sp_number" name="sp_number" value="<?php echo $number; ?>"></p>
63
 
64
  <p><strong><?php _e( 'Nationality', 'sportspress' ); ?></strong></p>
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
+ * @version 1.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
58
  $past_teams = array_filter( get_post_meta( $post->ID, 'sp_past_team', false ) );
59
  $current_teams = array_filter( get_post_meta( $post->ID, 'sp_current_team', false ) );
60
  ?>
61
+ <p><strong><?php _e( 'Squad Number', 'sportspress' ); ?></strong></p>
62
  <p><input type="text" size="4" id="sp_number" name="sp_number" value="<?php echo $number; ?>"></p>
63
 
64
  <p><strong><?php _e( 'Nationality', 'sportspress' ); ?></strong></p>
includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
- * @version 1.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -20,8 +20,7 @@ class SP_Meta_Box_Table_Details {
20
  */
21
  public static function output( $post ) {
22
  wp_nonce_field( 'sportspress_save_data', 'sportspress_meta_nonce' );
23
- $league_id = sp_get_the_term_id( $post->ID, 'sp_league', 0 );
24
- $season_id = sp_get_the_term_id( $post->ID, 'sp_season', 0 );
25
  $select = get_post_meta( $post->ID, 'sp_select', true );
26
  if ( ! $select ) {
27
  global $pagenow;
@@ -29,36 +28,11 @@ class SP_Meta_Box_Table_Details {
29
  }
30
  ?>
31
  <div>
32
- <p><strong><?php _e( 'Competition', 'sportspress' ); ?></strong></p>
33
- <p class="sp-tab-select">
34
- <?php
35
- $args = array(
36
- 'taxonomy' => 'sp_league',
37
- 'name' => 'sp_league',
38
- 'show_option_all' => __( 'All', 'sportspress' ),
39
- 'selected' => $league_id,
40
- 'values' => 'term_id',
41
- );
42
- if ( ! sp_dropdown_taxonomies( $args ) ):
43
- sp_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New', 'sportspress' ) );
44
- endif;
45
- ?>
46
- </p>
47
- <p><strong><?php _e( 'Season', 'sportspress' ); ?></strong></p>
48
- <p class="sp-tab-select">
49
- <?php
50
- $args = array(
51
- 'taxonomy' => 'sp_season',
52
- 'name' => 'sp_season',
53
- 'show_option_all' => __( 'All', 'sportspress' ),
54
- 'selected' => $season_id,
55
- 'values' => 'term_id',
56
- );
57
- if ( ! sp_dropdown_taxonomies( $args ) ):
58
- sp_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
59
- endif;
60
- ?>
61
- </p>
62
  <p><strong>
63
  <?php _e( 'Teams', 'sportspress' ); ?>
64
  </strong></p>
@@ -80,8 +54,6 @@ class SP_Meta_Box_Table_Details {
80
  * Save meta box data
81
  */
82
  public static function save( $post_id, $post ) {
83
- wp_set_post_terms( $post_id, sp_array_value( $_POST, 'sp_league', 0 ), 'sp_league' );
84
- wp_set_post_terms( $post_id, sp_array_value( $_POST, 'sp_season', 0 ), 'sp_season' );
85
  update_post_meta( $post_id, 'sp_select', sp_array_value( $_POST, 'sp_select', array() ) );
86
  sp_update_post_meta_recursive( $post_id, 'sp_team', sp_array_value( $_POST, 'sp_team', array() ) );
87
  }
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
+ * @version 1.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
20
  */
21
  public static function output( $post ) {
22
  wp_nonce_field( 'sportspress_save_data', 'sportspress_meta_nonce' );
23
+ $taxonomies = get_object_taxonomies( 'sp_table' );
 
24
  $select = get_post_meta( $post->ID, 'sp_select', true );
25
  if ( ! $select ) {
26
  global $pagenow;
28
  }
29
  ?>
30
  <div>
31
+ <?php
32
+ foreach ( $taxonomies as $taxonomy ) {
33
+ sp_taxonomy_field( $taxonomy, $post, true );
34
+ }
35
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  <p><strong>
37
  <?php _e( 'Teams', 'sportspress' ); ?>
38
  </strong></p>
54
  * Save meta box data
55
  */
56
  public static function save( $post_id, $post ) {
 
 
57
  update_post_meta( $post_id, 'sp_select', sp_array_value( $_POST, 'sp_select', array() ) );
58
  sp_update_post_meta_recursive( $post_id, 'sp_team', sp_array_value( $_POST, 'sp_team', array() ) );
59
  }
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.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -40,7 +40,7 @@ class SP_Settings_Events extends SP_Settings_Page {
40
  $settings = array_merge(
41
 
42
  array(
43
- array( 'title' => __( 'Event Options', 'sportspress' ), 'type' => 'title','desc' => '', 'id' => 'event_options' ),
44
  ),
45
 
46
  apply_filters( 'sportspress_event_options', array(
@@ -86,24 +86,8 @@ class SP_Settings_Events extends SP_Settings_Page {
86
  ),
87
 
88
  array(
89
- 'desc' => __( 'Players', 'sportspress' ),
90
- 'id' => 'sportspress_event_show_players',
91
- 'default' => 'yes',
92
- 'type' => 'checkbox',
93
- 'checkboxgroup' => '',
94
- ),
95
-
96
- array(
97
- 'desc' => __( 'Staff', 'sportspress' ),
98
- 'id' => 'sportspress_event_show_staff',
99
- 'default' => 'yes',
100
- 'type' => 'checkbox',
101
- 'checkboxgroup' => '',
102
- ),
103
-
104
- array(
105
- 'desc' => __( 'Total', 'sportspress' ),
106
- 'id' => 'sportspress_event_show_total',
107
  'default' => 'yes',
108
  'type' => 'checkbox',
109
  'checkboxgroup' => 'end',
@@ -125,14 +109,20 @@ class SP_Settings_Events extends SP_Settings_Page {
125
  array( 'type' => 'delimiter' ),
126
 
127
  array(
128
- 'title' => __( 'Player Performance', 'sportspress' ),
129
- 'id' => 'sportspress_event_performance_mode',
130
- 'default' => 'values',
131
- 'type' => 'radio',
132
- 'options' => array(
133
- 'values' => __( 'Values', 'sportspress' ),
134
- 'icons' => __( 'Icons', 'sportspress' ),
135
- ),
 
 
 
 
 
 
136
  ),
137
 
138
  array(
@@ -185,10 +175,148 @@ class SP_Settings_Events extends SP_Settings_Page {
185
  'default' => 'no',
186
  'type' => 'checkbox',
187
  ),
188
- )),
189
 
190
  array(
191
  array( 'type' => 'sectionend', 'id' => 'event_options' ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  )
193
 
194
  );
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin
8
+ * @version 1.7.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
40
  $settings = array_merge(
41
 
42
  array(
43
+ array( 'title' => __( 'Event Options', 'sportspress' ), 'type' => 'title', 'desc' => '', 'id' => 'event_options' ),
44
  ),
45
 
46
  apply_filters( 'sportspress_event_options', array(
86
  ),
87
 
88
  array(
89
+ 'desc' => __( 'Player Performance', 'sportspress' ),
90
+ 'id' => 'sportspress_event_show_performance',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  'default' => 'yes',
92
  'type' => 'checkbox',
93
  'checkboxgroup' => 'end',
109
  array( 'type' => 'delimiter' ),
110
 
111
  array(
112
+ 'title' => __( 'Teams', 'sportspress' ),
113
+ 'desc' => __( 'Filter by competition', 'sportspress' ),
114
+ 'id' => 'sportspress_event_filter_teams_by_league',
115
+ 'default' => 'no',
116
+ 'type' => 'checkbox',
117
+ 'checkboxgroup' => 'start',
118
+ ),
119
+
120
+ array(
121
+ 'desc' => __( 'Filter by season', 'sportspress' ),
122
+ 'id' => 'sportspress_event_filter_teams_by_season',
123
+ 'default' => 'no',
124
+ 'type' => 'checkbox',
125
+ 'checkboxgroup' => 'end',
126
  ),
127
 
128
  array(
175
  'default' => 'no',
176
  'type' => 'checkbox',
177
  ),
178
+ ) ),
179
 
180
  array(
181
  array( 'type' => 'sectionend', 'id' => 'event_options' ),
182
+ ),
183
+
184
+ array(
185
+ array( 'title' => __( 'Event Results', 'sportspress' ), 'type' => 'title', 'desc' => '', 'id' => 'result_options' ),
186
+ ),
187
+
188
+ apply_filters( 'sportspress_result_options', array(
189
+ array(
190
+ 'title' => __( 'Columns', 'sportspress' ),
191
+ 'id' => 'sportspress_event_result_columns',
192
+ 'default' => 'auto',
193
+ 'type' => 'radio',
194
+ 'options' => array(
195
+ 'auto' => __( 'Auto', 'sportspress' ),
196
+ 'manual' => __( 'Manual', 'sportspress' ),
197
+ ),
198
+ ),
199
+
200
+ array(
201
+ 'title' => __( 'Outcome', 'sportspress' ),
202
+ 'desc' => __( 'Display outcome', 'sportspress' ),
203
+ 'id' => 'sportspress_event_show_outcome',
204
+ 'default' => 'no',
205
+ 'type' => 'checkbox',
206
+ ),
207
+ ) ),
208
+
209
+ array(
210
+ array( 'type' => 'sectionend', 'id' => 'result_options' ),
211
+ ),
212
+
213
+ array(
214
+ array( 'title' => __( 'Player Performance', 'sportspress' ), 'type' => 'title', 'desc' => '', 'id' => 'performance_options' ),
215
+ ),
216
+
217
+ apply_filters( 'sportspress_performance_options', array(
218
+ array(
219
+ 'title' => __( 'Rows', 'sportspress' ),
220
+ 'desc' => __( 'Staff', 'sportspress' ),
221
+ 'id' => 'sportspress_event_show_staff',
222
+ 'default' => 'yes',
223
+ 'type' => 'checkbox',
224
+ 'checkboxgroup' => 'start',
225
+ ),
226
+
227
+ array(
228
+ 'desc' => __( 'Players', 'sportspress' ),
229
+ 'id' => 'sportspress_event_show_players',
230
+ 'default' => 'yes',
231
+ 'type' => 'checkbox',
232
+ 'checkboxgroup' => '',
233
+ ),
234
+
235
+ array(
236
+ 'desc' => __( 'Extras', 'sportspress' ),
237
+ 'id' => 'sportspress_event_show_extras',
238
+ 'default' => 'no',
239
+ 'type' => 'checkbox',
240
+ 'checkboxgroup' => '',
241
+ ),
242
+
243
+ array(
244
+ 'desc' => __( 'Total', 'sportspress' ),
245
+ 'id' => 'sportspress_event_show_total',
246
+ 'default' => 'yes',
247
+ 'type' => 'checkbox',
248
+ 'checkboxgroup' => 'end',
249
+ ),
250
+
251
+ array(
252
+ 'title' => __( 'Columns', 'sportspress' ),
253
+ 'id' => 'sportspress_event_performance_columns',
254
+ 'default' => 'auto',
255
+ 'type' => 'radio',
256
+ 'options' => array(
257
+ 'auto' => __( 'Auto', 'sportspress' ),
258
+ 'manual' => __( 'Manual', 'sportspress' ),
259
+ ),
260
+ ),
261
+
262
+ array(
263
+ 'title' => __( 'Position', 'sportspress' ),
264
+ 'desc' => __( 'Display position', 'sportspress' ),
265
+ 'id' => 'sportspress_event_show_position',
266
+ 'default' => 'yes',
267
+ 'type' => 'checkbox',
268
+ ),
269
+
270
+ array(
271
+ 'title' => __( 'Mode', 'sportspress' ),
272
+ 'id' => 'sportspress_event_performance_mode',
273
+ 'default' => 'values',
274
+ 'type' => 'radio',
275
+ 'options' => array(
276
+ 'values' => __( 'Values', 'sportspress' ),
277
+ 'icons' => __( 'Icons', 'sportspress' ),
278
+ ),
279
+ ),
280
+
281
+ array(
282
+ 'title' => __( 'Players', 'sportspress' ),
283
+ 'desc' => __( 'Display squad numbers', 'sportspress' ),
284
+ 'id' => 'sportspress_event_show_player_numbers',
285
+ 'default' => 'yes',
286
+ 'type' => 'checkbox',
287
+ 'checkboxgroup' => 'start',
288
+ ),
289
+
290
+ array(
291
+ 'desc' => __( 'Split players by team', 'sportspress' ),
292
+ 'id' => 'sportspress_event_split_players_by_team',
293
+ 'default' => 'yes',
294
+ 'type' => 'checkbox',
295
+ 'checkboxgroup' => '',
296
+ ),
297
+
298
+ array(
299
+ 'desc' => __( 'Split players by position', 'sportspress' ),
300
+ 'id' => 'sportspress_event_split_players_by_position',
301
+ 'default' => 'no',
302
+ 'type' => 'checkbox',
303
+ 'checkboxgroup' => 'end',
304
+ ),
305
+
306
+ array(
307
+ 'title' => __( 'Total', 'sportspress' ),
308
+ 'id' => 'sportspress_event_total_performance',
309
+ 'default' => 'all',
310
+ 'type' => 'radio',
311
+ 'options' => array(
312
+ 'all' => __( 'All', 'sportspress' ),
313
+ 'primary' => __( 'Primary', 'sportspress' ),
314
+ ),
315
+ ),
316
+ ) ),
317
+
318
+ array(
319
+ array( 'type' => 'sectionend', 'id' => 'performance_options' ),
320
  )
321
 
322
  );
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.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -230,7 +230,7 @@ class SP_Settings_General extends SP_Settings_Page {
230
  'link' => $link,
231
  );
232
 
233
- update_option( 'sportspress_frontend_css_colors', $colors );
234
  }
235
  }
236
 
@@ -282,36 +282,69 @@ class SP_Settings_General extends SP_Settings_Page {
282
  * @return void
283
  */
284
  public function frontend_styles_setting() {
285
- ?><tr valign="top" class="sportspress_frontend_css_colors">
 
 
 
 
 
 
 
 
 
 
 
286
  <th scope="row" class="titledesc">
287
  <?php _e( 'Frontend Styles', 'sportspress' ); ?>
288
  </th>
289
- <td class="forminp"><?php
290
-
291
- // Get settings
292
- $colors = array_map( 'esc_attr', (array) get_option( 'sportspress_frontend_css_colors', array() ) );
293
-
294
- // Defaults
295
- if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e';
296
- if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
297
- if ( empty( $colors['text'] ) ) $colors['text'] = '#222222';
298
- if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';
299
- if ( empty( $colors['link'] ) ) $colors['link'] = '#00a69c';
300
-
301
- // Show inputs
302
- $this->color_picker( __( 'Primary', 'sportspress' ), 'sportspress_frontend_css_primary', $colors['primary'] );
303
- $this->color_picker( __( 'Background', 'sportspress' ), 'sportspress_frontend_css_background', $colors['background'] );
304
- $this->color_picker( __( 'Text', 'sportspress' ), 'sportspress_frontend_css_text', $colors['text'] );
305
- $this->color_picker( __( 'Heading', 'sportspress' ), 'sportspress_frontend_css_heading', $colors['heading'] );
306
- $this->color_picker( __( 'Link', 'sportspress' ), 'sportspress_frontend_css_link', $colors['link'] );
307
-
308
- if ( ( $styles = SP_Frontend_Scripts::get_styles() ) && ! current_theme_supports( 'sportspress' ) && array_key_exists( 'sportspress-general', $styles ) ):
309
- ?><br>
310
- <label for="sportspress_enable_frontend_css">
311
- <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' ); ?>>
312
- <?php _e( 'Enable', 'sportspress' ); ?>
313
- </label>
314
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  </td>
316
  </tr><?php
317
  }
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin
8
+ * @version 1.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
230
  'link' => $link,
231
  );
232
 
233
+ update_option( 'themeboy', $colors );
234
  }
235
  }
236
 
282
  * @return void
283
  */
284
  public function frontend_styles_setting() {
285
+ // Define color schemes each with 5 colors: Primary, Background, Text, Heading, Link
286
+ $color_schemes = apply_filters( 'sportspress_color_schemes', array(
287
+ 'ThemeBoy' => array( '2b353e', 'f4f4f4', '222222', 'ffffff', '00a69c' ),
288
+ 'Gold' => array( '333333', 'f7f7f7', '333333', 'd8bf94', '9f8958' ),
289
+ 'Denim' => array( '0e2440', 'eae5e0', '0e2440', 'ffffff', '2b6291' ),
290
+ 'Freedom' => array( '0d4785', 'ecedee', '333333', 'ffffff', 'c51d27' ),
291
+ 'Metro' => array( '3a7895', '223344', 'ffffff', 'ffffff', 'ffa800' ),
292
+ 'Stellar' => array( '313150', '050528', 'ffffff', 'ffffff', 'e00034' ),
293
+ 'Carbon' => array( '353535', '191919', 'ededed', 'ffffff', 'f67f17' ),
294
+ 'Avocado' => array( '00241e', '013832', 'ffffff', 'ffffff', 'efb11e' ),
295
+ ) );
296
+ ?><tr valign="top" class="themeboy">
297
  <th scope="row" class="titledesc">
298
  <?php _e( 'Frontend Styles', 'sportspress' ); ?>
299
  </th>
300
+ <td class="forminp">
301
+ <fieldset>
302
+ <?php foreach ( $color_schemes as $name => $colors ) { ?>
303
+ <div class="color-option sp-color-option">
304
+ <label data-sp-colors="<?php echo implode( ',', $colors ); ?>"><?php echo $name; ?></label>
305
+ <table class="color-palette">
306
+ <tbody>
307
+ <tr>
308
+ <td style="background-color: #<?php echo $colors[0]; ?>">&nbsp;</td>
309
+ <td style="background-color: #<?php echo $colors[0]; ?>">&nbsp;</td>
310
+ <td style="background-color: #<?php echo $colors[4]; ?>">&nbsp;</td>
311
+ </tr>
312
+ </tbody>
313
+ </table>
314
+ </div>
315
+ <?php } ?>
316
+ </fieldset>
317
+ <fieldset>
318
+ <div class="sp-custom-colors">
319
+ <label data-sp-colors="<?php echo implode( ',', $colors ); ?>"><?php _e( 'Customize', 'sportspress' ); ?></label><br>
320
+ <?php
321
+ // Get settings
322
+ $colors = array_map( 'esc_attr', (array) get_option( 'themeboy', array() ) );
323
+ if ( empty( $colors ) ) $colors = array_map( 'esc_attr', (array) get_option( 'sportspress_frontend_css_colors', array() ) );
324
+
325
+ // Defaults
326
+ if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e';
327
+ if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
328
+ if ( empty( $colors['text'] ) ) $colors['text'] = '#222222';
329
+ if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';
330
+ if ( empty( $colors['link'] ) ) $colors['link'] = '#00a69c';
331
+
332
+ // Show inputs
333
+ $this->color_picker( __( 'Primary', 'sportspress' ), 'sportspress_frontend_css_primary', $colors['primary'] );
334
+ $this->color_picker( __( 'Background', 'sportspress' ), 'sportspress_frontend_css_background', $colors['background'] );
335
+ $this->color_picker( __( 'Text', 'sportspress' ), 'sportspress_frontend_css_text', $colors['text'] );
336
+ $this->color_picker( __( 'Heading', 'sportspress' ), 'sportspress_frontend_css_heading', $colors['heading'] );
337
+ $this->color_picker( __( 'Link', 'sportspress' ), 'sportspress_frontend_css_link', $colors['link'] );
338
+
339
+ if ( ( $styles = SP_Frontend_Scripts::get_styles() ) && array_key_exists( 'sportspress-general', $styles ) ):
340
+ ?><br>
341
+ <label for="sportspress_enable_frontend_css">
342
+ <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' ); ?>>
343
+ <?php _e( 'Enable', 'sportspress' ); ?>
344
+ </label>
345
+ <?php endif; ?>
346
+ </div>
347
+ </fieldset>
348
  </td>
349
  </tr><?php
350
  }
includes/admin/settings/class-sp-settings-modules.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin
8
- * @version 1.6.1
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -17,13 +17,17 @@ if ( ! class_exists( 'SP_Settings_Modules' ) ) :
17
  */
18
  class SP_Settings_Modules extends SP_Settings_Page {
19
 
 
 
 
 
 
20
  /**
21
  * Constructor
22
  */
23
  public function __construct() {
24
  $this->id = 'modules';
25
  $this->label = __( 'Modules', 'sportspress' );
26
- $this->theme = wp_get_theme();
27
 
28
  $this->sections = apply_filters( 'sportspress_module_sections', array(
29
  'general' => __( 'General', 'sportspress' ),
@@ -69,8 +73,8 @@ class SP_Settings_Modules extends SP_Settings_Page {
69
  </tbody>
70
  </table>
71
  <?php } ?>
72
-
73
- <?php if ( ! class_exists( 'SportsPress_TV' ) ) { ?>
74
  <table class="widefat" cellspacing="0">
75
  <thead>
76
  <tr><th>
@@ -79,10 +83,10 @@ class SP_Settings_Modules extends SP_Settings_Page {
79
  </thead>
80
  <tbody>
81
  <tr><td>
82
- <p><?php _e( 'Offer premium news & highlights from leading globals sports. SportsPress TV will keep your visitors entertained for hours.','sportspress' ); ?></p>
83
  <p class="sp-module-actions">
84
  <span><?php _e( 'Free', 'sportspress' ); ?></span>
85
- <a class="button" href="<?php echo add_query_arg( array( 'tab' => 'search', 's' => 'sportspress+tv' ), admin_url( 'plugin-install.php' ) ); ?>"><?php _e( 'Install Now', 'sportspress' ); ?></a>
86
  </p>
87
  </td></tr>
88
  </tbody>
@@ -98,21 +102,20 @@ class SP_Settings_Modules extends SP_Settings_Page {
98
  </thead>
99
  <tbody>
100
  <tr><td>
101
- <ol>
102
- <li><?php echo str_replace(
103
  array( '[link]', '[/link]' ),
104
  array( '<a target="_blank" href="http://twitter.com/themeboy">', '</a>' ),
105
  __( 'Follow [link]@ThemeBoy[/link] on Twitter.','sportspress' )
106
  ); ?></li>
107
- <li><?php echo str_replace(
108
  array( '[link]', '[/link]' ),
109
  array( '<a target="_blank" href="http://tboy.co/tweet">', '</a>' ),
110
  __( 'Help spread the word by tweeting with [link]#SportsPress[/link] and get the Twitter module for free.','sportspress' )
111
  ); ?></li>
112
  <li><?php echo str_replace(
113
  array( '[link]', '[/link]' ),
114
- array( '<a href="mailto:tweets@themeboy.com?subject=SportsPress+Twitter+Module+Request&body=I+tweeted+about+your+plugin!">', '</a>' ),
115
- __( '[link]Email us[/link] for the download link.', 'sportspress' )
116
  ); ?></li></ol>
117
  <p class="sp-module-actions">
118
  <span><?php _e( 'Free with tweet', 'sportspress' ); ?></span>
@@ -139,8 +142,8 @@ class SP_Settings_Modules extends SP_Settings_Page {
139
  ); ?></li>
140
  <li><?php echo str_replace(
141
  array( '[link]', '[/link]' ),
142
- array( '<a href="mailto:reviews@themeboy.com?subject=SportsPress+Birthdays+Module+Request&body=I+reviewed+your+plugin+on+WordPress.org!">', '</a>' ),
143
- __( '[link]Email us[/link] for the download link.', 'sportspress' )
144
  ); ?></li></ol>
145
  <p class="sp-module-actions">
146
  <span><?php _e( 'Free with review', 'sportspress' ); ?></span>
@@ -151,10 +154,50 @@ class SP_Settings_Modules extends SP_Settings_Page {
151
  </table>
152
  <?php } ?>
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  <table class="widefat" cellspacing="0">
155
  <thead>
156
  <tr><th>
157
- <strong><?php _e( 'Need Help?', 'sportspress' ); ?></strong>
158
  </th></tr>
159
  </thead>
160
  <tbody>
@@ -162,41 +205,28 @@ class SP_Settings_Modules extends SP_Settings_Page {
162
  <p><strong><i class="sp-icon-book"></i> <?php _e( 'Documentation', 'sportspress' ); ?></strong></p>
163
  <ul class="sp-documentation-links">
164
  <li><a href="http://tboy.co/installation" target="_blank"><?php _e( 'Getting Started', 'sportspress' ); ?></a></li>
165
- <li><a href="http://tboy.co/roles" target="_blank"><?php _e( 'Roles and Capabilities', 'sportspress' ); ?></a></li>
166
  <li><a href="http://tboy.co/integration" target="_blank"><?php _e( 'Theme Integration Guide', 'sportspress' ); ?></a></li>
167
  </ul>
168
- <p><strong><i class="dashicons dashicons-groups"></i> <?php _e( 'Support', 'sportspress' ); ?></strong></p>
169
  <ul class="sp-community-links">
170
- <li><a href="http://tboy.co/forums" target="_blank"><?php _e( 'Plugin Forums', 'sportspress' ); ?></a></li>
 
171
  <?php if ( class_exists( 'SportsPress_Pro' ) ) { ?>
172
  <li><a href="<?php echo apply_filters( 'sportspress_support_url', 'http://sportspresspro.com/support/' ); ?>" target="_blank"><?php _e( 'Premium Support', 'sportspress' ); ?></a></li>
173
  <?php } else { ?>
174
  <li><a href="<?php echo apply_filters( 'sportspress_pro_url', 'http://tboy.co/pricing/' ); ?>" target="_blank"><span class="sp-desc-tip" title="<?php _e( 'Upgrade to Pro', 'sportspress' ); ?>"><?php _e( 'Premium Support', 'sportspress' ); ?></span></a></li>
175
  <?php } ?>
176
  </ul>
 
 
 
 
 
 
 
177
  </td></tr>
178
  </tbody>
179
  </table>
180
-
181
- <?php $theme = wp_get_theme(); ?>
182
- <?php if ( ! current_theme_supports( 'sportspress' ) ) { ?>
183
- <table class="widefat" cellspacing="0">
184
- <thead>
185
- <tr><th>
186
- <strong><?php _e( 'Current Theme', 'sportspress' ); ?></strong>
187
- </th></tr>
188
- </thead>
189
- <tbody>
190
- <tr><td>
191
- <img src="<?php echo $theme->get_screenshot(); ?>" class="sp-theme-screenshot">
192
- <p><?php _e( '<strong>Your theme does not declare SportsPress support</strong> &#8211; if you encounter layout issues please read our integration guide or choose a SportsPress theme :)', 'sportspress' ); ?></p>
193
- <p class="sp-module-actions">
194
- <a class="button" href="http://tboy.co/themes" target="_blank"><?php _e( 'Need a Better Theme?', 'sportspress' ); ?></a>
195
- </p>
196
- </td></tr>
197
- </tbody>
198
- </table>
199
- <?php } ?>
200
  </div>
201
 
202
  <div class="sp-modules-main">
@@ -212,7 +242,7 @@ class SP_Settings_Modules extends SP_Settings_Page {
212
  <?php if ( isset( $module['class'] ) && ! class_exists( $module['class'] ) ) { ?>
213
  <tr class="sp-module-unavailable"><td>
214
  <input type="checkbox" disabled="disabled">
215
- <span<?php if ( array_key_exists( 'tip', $module ) ) { ?> class="sp-desc-tip" title="<?php echo $module['tip']; ?>"<?php } ?>>
216
  <i class="<?php echo sp_array_value( $module, 'icon', 'dashicons dashicons-admin-generic' ); ?>"></i>
217
  <?php echo sp_array_value( $module, 'label', $id ); ?>
218
  </span>
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin
8
+ * @version 1.7.7
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
17
  */
18
  class SP_Settings_Modules extends SP_Settings_Page {
19
 
20
+ /**
21
+ * @var array
22
+ */
23
+ public $sections = array();
24
+
25
  /**
26
  * Constructor
27
  */
28
  public function __construct() {
29
  $this->id = 'modules';
30
  $this->label = __( 'Modules', 'sportspress' );
 
31
 
32
  $this->sections = apply_filters( 'sportspress_module_sections', array(
33
  'general' => __( 'General', 'sportspress' ),
73
  </tbody>
74
  </table>
75
  <?php } ?>
76
+
77
+ <?php if ( current_user_can( 'install_plugins' ) && ! class_exists( 'SportsPress_TV' ) ) { ?>
78
  <table class="widefat" cellspacing="0">
79
  <thead>
80
  <tr><th>
83
  </thead>
84
  <tbody>
85
  <tr><td>
86
+ <p><?php _e( 'Offer premium news & highlights from leading global sports. SportsPress TV will keep your visitors entertained for hours.','sportspress' ); ?></p>
87
  <p class="sp-module-actions">
88
  <span><?php _e( 'Free', 'sportspress' ); ?></span>
89
+ <a class="button" href="<?php echo add_query_arg( array( 'tab' => 'search', 's' => 'SportsPress+TV' ), network_admin_url( 'plugin-install.php' ) ); ?>"><?php _e( 'Install Now', 'sportspress' ); ?></a>
90
  </p>
91
  </td></tr>
92
  </tbody>
102
  </thead>
103
  <tbody>
104
  <tr><td>
105
+ <ol><li><?php echo str_replace(
 
106
  array( '[link]', '[/link]' ),
107
  array( '<a target="_blank" href="http://twitter.com/themeboy">', '</a>' ),
108
  __( 'Follow [link]@ThemeBoy[/link] on Twitter.','sportspress' )
109
  ); ?></li>
110
+ <li><?php echo str_replace(
111
  array( '[link]', '[/link]' ),
112
  array( '<a target="_blank" href="http://tboy.co/tweet">', '</a>' ),
113
  __( 'Help spread the word by tweeting with [link]#SportsPress[/link] and get the Twitter module for free.','sportspress' )
114
  ); ?></li>
115
  <li><?php echo str_replace(
116
  array( '[link]', '[/link]' ),
117
+ array( '<a target="_blank" href="http://tboy.co/twittermodule">', '</a>' ),
118
+ __( '[link]Get the download link[/link].', 'sportspress' )
119
  ); ?></li></ol>
120
  <p class="sp-module-actions">
121
  <span><?php _e( 'Free with tweet', 'sportspress' ); ?></span>
142
  ); ?></li>
143
  <li><?php echo str_replace(
144
  array( '[link]', '[/link]' ),
145
+ array( '<a target="_blank" href="http://tboy.co/birthdaysmodule">', '</a>' ),
146
+ __( '[link]Get the download link[/link].', 'sportspress' )
147
  ); ?></li></ol>
148
  <p class="sp-module-actions">
149
  <span><?php _e( 'Free with review', 'sportspress' ); ?></span>
154
  </table>
155
  <?php } ?>
156
 
157
+ <?php if ( current_user_can( 'install_themes' ) ) { ?>
158
+ <?php $theme = wp_get_theme(); ?>
159
+ <?php if ( 'rookie' == $theme->stylesheet ) { ?>
160
+ <table class="widefat" cellspacing="0">
161
+ <thead>
162
+ <tr><th>
163
+ <strong><?php _e( 'Current Theme', 'sportspress' ); ?></strong>
164
+ </th></tr>
165
+ </thead>
166
+ <tbody>
167
+ <tr><td>
168
+ <img src="<?php echo $theme->get_screenshot(); ?>" class="sp-theme-screenshot">
169
+ <p><?php _e( 'Rookie is a free starter theme for SportsPress designed by ThemeBoy.', 'sportspress' ); ?></p>
170
+ <p class="sp-module-actions">
171
+ <a class="button" href="http://tboy.co/themes" target="_blank"><?php _e( 'Need a Better Theme?', 'sportspress' ); ?></a>
172
+ </p>
173
+ </td></tr>
174
+ </tbody>
175
+ </table>
176
+ <?php } elseif ( ! current_theme_supports( 'sportspress' ) ) { ?>
177
+ <table class="widefat" cellspacing="0">
178
+ <thead>
179
+ <tr><th>
180
+ <strong><?php _e( 'Free SportsPress Theme', 'sportspress' ); ?></strong>
181
+ </th></tr>
182
+ </thead>
183
+ <tbody>
184
+ <tr><td>
185
+ <img src="<?php echo plugin_dir_url( SP_PLUGIN_FILE ); ?>/assets/images/modules/rookie.png" class="sp-theme-screenshot">
186
+ <p><?php _e( 'Rookie is a free starter theme for SportsPress designed by ThemeBoy.', 'sportspress' ); ?></p>
187
+ <p class="sp-module-actions">
188
+ <span><?php _e( 'Free', 'sportspress' ); ?></span>
189
+ <a class="button" href="<?php echo add_query_arg( array( 'theme' => 'rookie' ), network_admin_url( 'theme-install.php' ) ); ?>"><?php _e( 'Install Now', 'sportspress' ); ?></a>
190
+ </p>
191
+ </td></tr>
192
+ </tbody>
193
+ </table>
194
+ <?php } ?>
195
+ <?php } ?>
196
+
197
  <table class="widefat" cellspacing="0">
198
  <thead>
199
  <tr><th>
200
+ <strong><?php _e( 'Welcome to SportsPress', 'sportspress' ); ?></strong>
201
  </th></tr>
202
  </thead>
203
  <tbody>
205
  <p><strong><i class="sp-icon-book"></i> <?php _e( 'Documentation', 'sportspress' ); ?></strong></p>
206
  <ul class="sp-documentation-links">
207
  <li><a href="http://tboy.co/installation" target="_blank"><?php _e( 'Getting Started', 'sportspress' ); ?></a></li>
 
208
  <li><a href="http://tboy.co/integration" target="_blank"><?php _e( 'Theme Integration Guide', 'sportspress' ); ?></a></li>
209
  </ul>
210
+ <p><strong><i class="dashicons dashicons-heart"></i> <?php _e( 'Help', 'sportspress' ); ?></strong></p>
211
  <ul class="sp-community-links">
212
+ <li><a href="http://tboy.co/forums" target="_blank"><?php _e( 'Support Forums', 'sportspress' ); ?></a></li>
213
+ <li><a href="http://tboy.co/ideas" target="_blank"><?php _e( 'Feature Requests', 'sportspress' ); ?></a></li>
214
  <?php if ( class_exists( 'SportsPress_Pro' ) ) { ?>
215
  <li><a href="<?php echo apply_filters( 'sportspress_support_url', 'http://sportspresspro.com/support/' ); ?>" target="_blank"><?php _e( 'Premium Support', 'sportspress' ); ?></a></li>
216
  <?php } else { ?>
217
  <li><a href="<?php echo apply_filters( 'sportspress_pro_url', 'http://tboy.co/pricing/' ); ?>" target="_blank"><span class="sp-desc-tip" title="<?php _e( 'Upgrade to Pro', 'sportspress' ); ?>"><?php _e( 'Premium Support', 'sportspress' ); ?></span></a></li>
218
  <?php } ?>
219
  </ul>
220
+ <p><strong><i class="dashicons dashicons-share"></i> <?php _e( 'Connect', 'sportspress' ); ?></strong></p>
221
+ <ul class="sp-community-links">
222
+ <li><a href="http://tboy.co/twitter" target="_blank"><?php _e( 'Twitter', 'sportspress' ); ?></a></li>
223
+ <li><a href="http://tboy.co/facebook" target="_blank"><?php _e( 'Facebook', 'sportspress' ); ?></a></li>
224
+ <li><a href="http://tboy.co/youtube" target="_blank"><?php _e( 'YouTube', 'sportspress' ); ?></a></li>
225
+ <li><a href="http://tboy.co/gplus" target="_blank"><?php _e( 'Google+', 'sportspress' ); ?></a></li>
226
+ </ul>
227
  </td></tr>
228
  </tbody>
229
  </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  </div>
231
 
232
  <div class="sp-modules-main">
242
  <?php if ( isset( $module['class'] ) && ! class_exists( $module['class'] ) ) { ?>
243
  <tr class="sp-module-unavailable"><td>
244
  <input type="checkbox" disabled="disabled">
245
+ <span class="sp-desc-tip" title="<?php echo sp_array_value( $module, 'tip', __( 'Upgrade to Pro', 'sportspress' ) ); ?>">
246
  <i class="<?php echo sp_array_value( $module, 'icon', 'dashicons dashicons-admin-generic' ); ?>"></i>
247
  <?php echo sp_array_value( $module, 'label', $id ); ?>
248
  </span>
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.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -69,9 +69,9 @@ class SP_Settings_Players extends SP_Settings_Page {
69
  ),
70
 
71
  array(
72
- 'desc' => __( 'Career Total', 'sportspress' ),
73
- 'id' => 'sportspress_player_show_total',
74
- 'default' => 'no',
75
  'type' => 'checkbox',
76
  'checkboxgroup' => 'end',
77
  ),
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin
8
+ * @version 1.7.3
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
69
  ),
70
 
71
  array(
72
+ 'desc' => __( 'Statistics', 'sportspress' ),
73
+ 'id' => 'sportspress_player_show_statistics',
74
+ 'default' => 'yes',
75
  'type' => 'checkbox',
76
  'checkboxgroup' => 'end',
77
  ),
includes/admin/sp-admin-functions.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author ThemeBoy
6
  * @category Core
7
  * @package SportsPress/Admin/Functions
8
- * @version 1.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -24,6 +24,7 @@ function sp_get_screen_ids() {
24
  'dashboard_page_sp-credits',
25
  'dashboard_page_sp-translators',
26
  'toplevel_page_sportspress',
 
27
  'edit-sp_result',
28
  'sp_result',
29
  'edit-sp_outcome',
5
  * @author ThemeBoy
6
  * @category Core
7
  * @package SportsPress/Admin/Functions
8
+ * @version 1.7.4
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
24
  'dashboard_page_sp-credits',
25
  'dashboard_page_sp-translators',
26
  'toplevel_page_sportspress',
27
+ 'toplevel_page_themeboy',
28
  'edit-sp_result',
29
  'sp_result',
30
  'edit-sp_outcome',
includes/admin/views/html-admin-config.php CHANGED
@@ -77,7 +77,7 @@
77
  <td class="forminp">
78
  <legend class="screen-reader-text"><span><?php _e( 'Event Results', 'sportspress' ) ?></span></legend>
79
  <form>
80
- <?php wp_nonce_field( 'sp-save-primary-result', 'sp-config-nonce', false ); ?>
81
  <table class="widefat sp-admin-config-table">
82
  <thead>
83
  <tr>
@@ -131,6 +131,8 @@
131
  <table class="form-table">
132
  <tbody>
133
  <?php
 
 
134
  $args = array(
135
  'post_type' => 'sp_performance',
136
  'numberposts' => -1,
@@ -146,30 +148,61 @@
146
  <p class="description"><?php _e( 'Used for events.', 'sportspress' ); ?></p>
147
  </th>
148
  <td class="forminp">
149
- <table class="widefat sp-admin-config-table">
150
- <thead>
151
- <tr>
152
- <th class="icon" scope="col"><?php _e( 'Icon', 'sportspress' ); ?></th>
153
- <th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
154
- <th scope="col"><?php _e( 'Variable', 'sportspress' ); ?></th>
155
- <th scope="col"><?php _e( 'Description', 'sportspress' ); ?></th>
156
- <th scope="col" class="edit"></th>
157
- </tr>
158
- </thead>
159
- <?php if ( $data ): $i = 0; foreach ( $data as $row ): ?>
160
- <tr<?php if ( $i % 2 == 0 ) echo ' class="alternate"'; ?>>
161
- <td class="icon"><?php if ( has_post_thumbnail( $row->ID ) ) echo get_the_post_thumbnail( $row->ID, 'sportspress-fit-mini' ); ?></td>
162
- <td class="row-title"><?php echo $row->post_title; ?></td>
163
- <td><?php echo $row->post_name; ?></td>
164
- <td><p class="description"><?php echo $row->post_excerpt; ?></p></td>
165
- <td class="edit"><a class="button" href="<?php echo get_edit_post_link( $row->ID ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></s></td>
166
- </tr>
167
- <?php $i++; endforeach; else: ?>
168
- <tr class="alternate">
169
- <td colspan="5"><?php _e( 'No results found.', 'sportspress' ); ?></td>
170
- </tr>
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>
77
  <td class="forminp">
78
  <legend class="screen-reader-text"><span><?php _e( 'Event Results', 'sportspress' ) ?></span></legend>
79
  <form>
80
+ <?php wp_nonce_field( 'sp-save-primary-result', 'sp-primary-result-nonce', false ); ?>
81
  <table class="widefat sp-admin-config-table">
82
  <thead>
83
  <tr>
131
  <table class="form-table">
132
  <tbody>
133
  <?php
134
+ $selection = get_option( 'sportspress_primary_performance', 0 );
135
+
136
  $args = array(
137
  'post_type' => 'sp_performance',
138
  'numberposts' => -1,
148
  <p class="description"><?php _e( 'Used for events.', 'sportspress' ); ?></p>
149
  </th>
150
  <td class="forminp">
151
+ <legend class="screen-reader-text"><span><?php _e( 'Event Results', 'sportspress' ) ?></span></legend>
152
+ <form>
153
+ <?php wp_nonce_field( 'sp-save-primary-performance', 'sp-primary-performance-nonce', false ); ?>
154
+ <table class="widefat sp-admin-config-table">
155
+ <thead>
156
+ <tr>
157
+ <th class="radio" scope="col"><?php _e( 'Primary', 'sportspress' ); ?></th>
158
+ <th class="icon" scope="col"><?php _e( 'Icon', 'sportspress' ); ?></th>
159
+ <th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
160
+ <th scope="col"><?php _e( 'Variable', 'sportspress' ); ?></th>
161
+ <th scope="col"><?php _e( 'Position', 'sportspress' ); ?></th>
162
+ <th scope="col"><?php _e( 'Description', 'sportspress' ); ?></th>
163
+ <th scope="col" class="edit"></th>
164
+ </tr>
165
+ </thead>
166
+ <tfoot>
167
+ <tr>
168
+ <th class="radio"><input type="radio" class="sp-primary-performance-option" id="sportspress_primary_performance_0" name="sportspress_primary_performance" value="0" <?php checked( $selection, 0 ); ?>></th>
169
+ <th class="icon">&nbsp;</td>
170
+ <th colspan="5"><label for="sportspress_primary_performance_0">
171
+ <?php
172
+ if ( sizeof( $data ) > 0 ):
173
+ $default = reset( $data );
174
+ printf( __( 'Default (%s)', 'sportspress' ), $default->post_title );
175
+ else:
176
+ _e( 'Default', 'sportspress' );
177
+ endif;
178
+ ?>
179
+ </label></th>
180
+ </tr>
181
+ </tfoot>
182
+ <?php if ( $data ): $i = 0; foreach ( $data as $row ): ?>
183
+ <tr<?php if ( $i % 2 == 0 ) echo ' class="alternate"'; ?>>
184
+ <td class="radio"><input type="radio" class="sp-primary-performance-option" id="sportspress_primary_performance_<?php echo $row->post_name; ?>" name="sportspress_primary_performance" value="<?php echo $row->post_name; ?>" <?php checked( $selection, $row->post_name ); ?>></td>
185
+ <td class="icon">
186
+ <?php
187
+ if ( has_post_thumbnail( $row->ID ) )
188
+ echo get_the_post_thumbnail( $row->ID, 'sportspress-fit-mini' );
189
+ else
190
+ echo '&nbsp;';
191
+ ?>
192
+ </td>
193
+ <td class="row-title"><?php echo $row->post_title; ?></td>
194
+ <td><?php echo $row->post_name; ?></td>
195
+ <td><?php echo get_the_terms ( $row->ID, 'sp_position' ) ? the_terms( $row->ID, 'sp_position' ) : __( 'All', 'sportspress' );; ?></td>
196
+ <td><p class="description"><?php echo $row->post_excerpt; ?></p></td>
197
+ <td class="edit"><a class="button" href="<?php echo get_edit_post_link( $row->ID ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></s></td>
198
+ </tr>
199
+ <?php $i++; endforeach; else: ?>
200
+ <tr class="alternate">
201
+ <td colspan="7"><?php _e( 'No results found.', 'sportspress' ); ?></td>
202
+ </tr>
203
+ <?php endif; ?>
204
+ </table>
205
+ </form>
206
  <div class="tablenav bottom">
207
  <a class="button alignleft" href="<?php echo admin_url( 'edit.php?post_type=sp_performance' ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a>
208
  <a class="button button-primary alignright" href="<?php echo admin_url( 'post-new.php?post_type=sp_performance' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
includes/admin/views/html-admin-overview.php DELETED
@@ -1,336 +0,0 @@
1
- <div class="wrap sportspress sportspress-overview-wrap">
2
- <h2>
3
- <?php _e( 'Overview', 'sportspress' ); ?>
4
- </h2>
5
- <div class="sp-sitemap">
6
-
7
- <?php $primary_post_types = sp_primary_post_types(); $hierarchy = sp_post_type_hierarchy(); ?>
8
-
9
- <?php if ( ! isset( $_GET['type'] ) && ! isset( $_GET['taxonomy'] ) ): // Overview ?>
10
-
11
- <ul class="sp-utility">
12
- <?php foreach ( $primary_post_types as $post_type ): if ( post_type_exists( $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 endif; endforeach; ?>
15
- </ul>
16
-
17
- <?php $taxonomies = sp_taxonomies(); ?>
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 ): ?>
25
- <?php foreach ( $terms as $term ): ?>
26
- <?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
27
- <li>
28
- <?php if ( ! $children && sizeof ( $post_types ) <= 1 ): ?>
29
- <?php if ( sizeof( $post_types ) ): foreach ( $post_types as $post_type ): ?>
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 ): ?>
37
- <ul>
38
- <?php foreach ( $children as $child ): ?>
39
- <li>
40
- <?php if ( sizeof( $post_types ) <= 1 ): ?>
41
- <?php if ( sizeof( $post_types ) ): foreach ( $post_types as $post_type ): ?>
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; ?>
49
- </ul>
50
- <?php endif; ?>
51
- </li>
52
- <?php endforeach; ?>
53
- <?php else: ?>
54
- <li><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'taxonomy' => $taxonomy ), 'edit-tags.php' ) ) ); ?>"><?php echo $object->labels->add_new_item; ?></a></li>
55
- <?php endif; ?>
56
- </ul>
57
- </li>
58
- <?php endforeach; ?>
59
- </ul>
60
-
61
- <?php elseif ( ! isset( $_GET['type'] ) ): $taxonomy = $_GET['taxonomy']; $taxonomy_object = get_taxonomy( $taxonomy ); ?>
62
-
63
- <?php $post_types = apply_filters( 'sportspress_sitemap_taxonomy_post_types', $taxonomy_object->object_type, $taxonomy ); ?>
64
-
65
- <?php if ( isset( $_GET['term'] ) ): $term = get_term( $_GET['term'], $taxonomy ); // Posts in term ?>
66
-
67
- <ul class="sp-utility">
68
- <li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'taxonomy' => $taxonomy ), 'edit-tags.php' ) ) ); ?>"><?php echo $taxonomy_object->labels->edit_item; ?></a></li>
69
- </ul>
70
-
71
- <?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
72
-
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>
81
- <?php if ( sizeof ( $post_types ) ): ?>
82
- <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
83
- <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view"></span></a></li>
84
- <?php endif; endforeach; ?>
85
- <?php endif; ?>
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 ?>
93
-
94
- <ul>
95
- <?php foreach ( $children as $child ): ?>
96
- <li><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-notification"></span></a>
97
-
98
- <?php if ( sizeof ( $post_types ) ): // Has associated post types ?>
99
- <ul>
100
- <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
101
- <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view wp-ui-text-highlight"></span></a></li>
102
- <?php endif; endforeach; ?>
103
- </ul>
104
- <?php endif; ?>
105
-
106
- </li>
107
- <?php endforeach; ?>
108
- </ul>
109
-
110
- <?php elseif ( sizeof ( $post_types ) ): // Has associated post types ?>
111
-
112
- <ul>
113
- <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
114
- <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view wp-ui-text-notification"></span></a></li>
115
- <?php endif; endforeach; ?>
116
- </ul>
117
-
118
- <?php endif; ?>
119
-
120
- </li>
121
- <?php endforeach; ?>
122
- </ul>
123
-
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 ) ): ?>
134
- <ul>
135
- <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
136
- <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view"></span></a></li>
137
- <?php endif; endforeach; ?>
138
- </ul>
139
- <?php endif; ?>
140
- </ul>
141
-
142
- <?php endif; ?>
143
-
144
- <?php else: // Taxonomy archive ?>
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 ): ?>
152
- <li>
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>
160
-
161
- <?php if ( $children ): // Has children ?>
162
-
163
- <?php if ( sizeof( $post_types ) <= 1 ): ?>
164
-
165
- <?php foreach ( $children as $child ): ?>
166
- <?php if ( sizeof ( $post_types ) ): ?>
167
- <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
168
- <li><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-notification"></span></a></li>
169
- <?php endif; endforeach; ?>
170
- <?php endif; ?>
171
- <?php endforeach; ?>
172
-
173
- <?php else: ?>
174
-
175
- <?php if ( sizeof ( $post_types ) ): ?>
176
- <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
177
- <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view wp-ui-text-notification"></span></a></li>
178
- <?php endif; endforeach; ?>
179
- <li></li>
180
- <li></li>
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 ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
188
- <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view wp-ui-text-highlight"></span></a></li>
189
- <?php endif; endforeach; ?>
190
- </ul>
191
- <?php endif; ?>
192
- </li>
193
- <?php endforeach; ?>
194
-
195
- <?php endif; ?>
196
-
197
- <?php else: // No children ?>
198
-
199
- <?php if ( sizeof ( $post_types ) > 1 ): ?>
200
- <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
201
- <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view wp-ui-text-notification"></span></a></li>
202
- <?php endif; endforeach; ?>
203
- <?php endif; ?>
204
-
205
- <?php endif; ?>
206
-
207
- </ul>
208
- </li>
209
- <?php endforeach; ?>
210
- <?php endif; ?>
211
- <li><a class="button button-primary action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'taxonomy' => $taxonomy ), 'edit-tags.php' ) ) ); ?>"><?php echo $taxonomy_object->labels->add_new_item; ?><span class="dashicons dashicons-plus"></span></a></li>
212
- </ul>
213
-
214
- <?php endif; ?>
215
-
216
- <?php elseif ( ! isset( $_GET['taxonomy'] ) ): $post_type = $_GET['type']; // Post type archive ?>
217
-
218
- <?php
219
- $post_object = get_post_type_object( $post_type );
220
- $taxonomies = get_object_taxonomies( $post_type, 'objects' );
221
- ?>
222
-
223
- <ul class="sp-utility">
224
- <li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type ), 'post-new.php' ) ) ); ?>"><?php echo $post_object->labels->add_new_item; ?></a></li>
225
- <li><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type ), 'edit.php' ) ) ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a></li>
226
- </ul>
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 ): if ( post_type_exists( $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>
234
- <?php $posts = get_posts( array( 'posts_per_page' => -1, 'post_type' => $secondary_post_type ) ); ?>
235
- <?php if ( $posts ): ?>
236
- <ul>
237
- <?php foreach ( $posts as $post ): ?>
238
- <li><a class="button action" href="<?php echo esc_url( get_edit_post_link( $post->ID ) ); ?>"><?php echo wp_strip_all_tags( $post->post_title ); ?><span class="dashicons dashicons-edit wp-ui-text-notification"></span></a></li>
239
- <?php endforeach; ?>
240
- </ul>
241
- <?php endif; ?>
242
- </li>
243
- <?php endif; 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>
249
- <?php foreach ( $terms as $term ): ?>
250
- <li><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>
251
- <?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
252
-
253
- <?php if ( $children ): // Has children ?>
254
-
255
- <ul>
256
- <?php foreach ( $children as $child ): ?>
257
- <li><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></li>
258
- <?php endforeach; ?>
259
- </ul>
260
-
261
- <?php endif; ?>
262
-
263
- </li>
264
- <?php endforeach; ?>
265
- </ul>
266
- <?php endif; ?>
267
- </li>
268
- <?php endforeach; ?>
269
- </ul>
270
-
271
- <?php else: // Display posts ?>
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 ): ?>
279
- <li><a class="button button-primary action" href="<?php echo esc_url( get_edit_post_link( $post->ID ) ); ?>"><?php echo wp_strip_all_tags( $post->post_title ); ?><span class="dashicons dashicons-edit"></span></a></li>
280
- <?php endforeach; ?>
281
- <?php else: ?>
282
- <li><a class="button disabled"><?php _e( 'No results found.', 'sportspress' ); ?></a></li>
283
- <?php endif; ?>
284
- </ul>
285
-
286
- <?php endif; ?>
287
-
288
- <?php else: $post_type = $_GET['type']; $taxonomy = $_GET['taxonomy']; // Filtered posts ?>
289
-
290
- <?php if ( post_type_exists( $post_type ) ): ?>
291
-
292
- <?php $post_object = get_post_type_object( $post_type ); $taxonomy_object = get_taxonomy( $_GET['taxonomy'] ); ?>
293
-
294
- <?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
295
-
296
- <ul class="sp-primary col<?php echo sizeof( $terms ) + 1; ?>">
297
- <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>
298
- <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>
299
- <li class="sp-home"><a class="button disabled"><?php echo $taxonomy_object->labels->name; ?></a></li>
300
-
301
- <?php if ( $terms ): foreach ( $terms as $term ): ?>
302
- <li><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>
303
- <?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
304
-
305
- <?php if ( $children ): // Has children ?>
306
-
307
- <ul>
308
- <?php foreach ( $children as $child ): ?>
309
- <li><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-notification"></span></a>
310
- <?php $grandchildren = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $child->term_id, 'orderby' => 'slug' ) ); ?>
311
-
312
- <?php if ( $grandchildren ): // Has grandchildren ?>
313
- <ul>
314
- <?php foreach ( $grandchildren as $grandchild ): ?>
315
- <li><a class="button action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type, $taxonomy => $grandchild->slug ), 'edit.php' ) ) ); ?>"><?php echo $grandchild->name; ?><span class="dashicons dashicons-list-view wp-ui-text-highlight"></span></a></li>
316
- <?php endforeach; ?>
317
- </ul>
318
- <?php endif; ?>
319
-
320
- </li>
321
- <?php endforeach; ?>
322
- </ul>
323
-
324
- <?php endif; ?>
325
-
326
- </li>
327
- <?php endforeach; endif; ?>
328
- <li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'taxonomy' => $taxonomy ), 'edit-tags.php' ) ) ); ?>"><?php echo $taxonomy_object->labels->add_new_item; ?></a></li>
329
- </ul>
330
-
331
- <?php endif; ?>
332
-
333
- <?php endif; ?>
334
- </div>
335
- <?php do_action( 'sportspress_overview_page' ); ?>
336
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/admin/views/html-notice-template-check.php CHANGED
@@ -3,5 +3,5 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  ?>
4
  <div id="message" class="updated sportspress-message wc-connect">
5
  <p><?php _e( '<strong>Your theme has bundled outdated copies of SportsPress template files</strong> &#8211; if you encounter functionality issues on the frontend this could the reason. Ensure you update or remove them (in general we recommend only bundling the template files you actually need to customize). See the system report for full details.', 'sportspress' ); ?></p>
6
- <p class="submit"><a class="button-primary" href="<?php echo esc_url( add_query_arg( array( 'page' => 'sportspress', 'tab' => 'status' ), admin_url( 'admin.php' ) ) ); ?>"><?php _e( 'System Status', 'sportspress' ); ?></a> <a class="skip button-primary" href="<?php echo esc_url( add_query_arg( 'hide_template_files_notice', 'true' ) ); ?>"><?php _e( 'Hide this notice', 'sportspress' ); ?></a></p>
7
  </div>
3
  ?>
4
  <div id="message" class="updated sportspress-message wc-connect">
5
  <p><?php _e( '<strong>Your theme has bundled outdated copies of SportsPress template files</strong> &#8211; if you encounter functionality issues on the frontend this could the reason. Ensure you update or remove them (in general we recommend only bundling the template files you actually need to customize). See the system report for full details.', 'sportspress' ); ?></p>
6
+ <p class="submit"><a class="button-primary" href="<?php echo esc_url( add_query_arg( array( 'page' => 'sportspress', 'tab' => 'status' ), admin_url( 'admin.php' ) ) ); ?>"><?php _e( 'System Status', 'sportspress' ); ?></a> <a class="skip button" href="<?php echo esc_url( add_query_arg( 'hide_template_files_notice', 'true' ) ); ?>"><?php _e( 'Hide this notice', 'sportspress' ); ?></a></p>
7
  </div>
includes/admin/views/html-notice-theme-support.php CHANGED
@@ -3,8 +3,10 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  ?>
4
  <div id="message" class="error sportspress-message">
5
  <p><?php _e( '<strong>Your theme does not declare SportsPress support</strong> &#8211; if you encounter layout issues please read our integration guide or choose a SportsPress theme :)', 'sportspress' ); ?></p>
 
6
  <p class="submit">
7
- <a class="button-primary" href="http://tboy.co/integration"><?php _e( 'Theme Integration Guide', 'sportspress' ); ?></a>
8
- <a class="button-secondary" href="<?php echo add_query_arg( 'hide_theme_support_notice', 'true' ); ?>"><?php _e( 'Hide this notice', 'sportspress' ); ?></a>
 
9
  </p>
10
  </div>
3
  ?>
4
  <div id="message" class="error sportspress-message">
5
  <p><?php _e( '<strong>Your theme does not declare SportsPress support</strong> &#8211; if you encounter layout issues please read our integration guide or choose a SportsPress theme :)', 'sportspress' ); ?></p>
6
+ <p><?php _e( 'Have you tried the free Rookie theme yet?', 'sportspress' ); ?></p>
7
  <p class="submit">
8
+ <a class="button-primary" href="<?php echo add_query_arg( array( 'theme' => 'rookie' ), network_admin_url( 'theme-install.php' ) ); ?>"><?php _e( 'Install Now', 'sportspress' ); ?></a>
9
+ <a class="button-secondary" href="http://tboy.co/integration"><?php _e( 'Theme Integration Guide', 'sportspress' ); ?></a>
10
+ <a class="button" href="<?php echo add_query_arg( 'hide_theme_support_notice', 'true' ); ?>"><?php _e( 'Hide this notice', 'sportspress' ); ?></a>
11
  </p>
12
  </div>
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.6
12
  * @package SportsPress/Classes
13
  * @category Class
14
  * @author ThemeBoy
@@ -565,7 +565,7 @@ class SP_AJAX {
565
  $args = array(
566
  'prepend_options' => array(
567
  'default' => __( 'Default', 'sportspress' ),
568
- 'number' => __( 'Number', 'sportspress' ),
569
  'name' => __( 'Name', 'sportspress' ),
570
  'eventsplayed' => __( 'Played', 'sportspress' )
571
  ),
@@ -636,7 +636,7 @@ class SP_AJAX {
636
  $args = array(
637
  'prepend_options' => array(
638
  'default' => __( 'Default', 'sportspress' ),
639
- 'number' => __( 'Number', 'sportspress' ),
640
  'name' => __( 'Name', 'sportspress' ),
641
  'eventsplayed' => __( 'Played', 'sportspress' )
642
  ),
8
  * AJAX Event Handler
9
  *
10
  * @class SP_AJAX
11
+ * @version 1.7
12
  * @package SportsPress/Classes
13
  * @category Class
14
  * @author ThemeBoy
565
  $args = array(
566
  'prepend_options' => array(
567
  'default' => __( 'Default', 'sportspress' ),
568
+ 'number' => __( 'Squad Number', 'sportspress' ),
569
  'name' => __( 'Name', 'sportspress' ),
570
  'eventsplayed' => __( 'Played', 'sportspress' )
571
  ),
636
  $args = array(
637
  'prepend_options' => array(
638
  'default' => __( 'Default', 'sportspress' ),
639
+ 'number' => __( 'Squad Number', 'sportspress' ),
640
  'name' => __( 'Name', 'sportspress' ),
641
  'eventsplayed' => __( 'Played', 'sportspress' )
642
  ),
includes/class-sp-calendar.php CHANGED
@@ -5,7 +5,7 @@
5
  * The SportsPress calendar class handles individual calendar data.
6
  *
7
  * @class SP_Calendar
8
- * @version 1.4
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
@@ -103,7 +103,8 @@ class SP_Calendar extends SP_Custom_Post {
103
  $leagues = get_the_terms( $this->ID, 'sp_league' );
104
  $seasons = get_the_terms( $this->ID, 'sp_season' );
105
  $venues = get_the_terms( $this->ID, 'sp_venue' );
106
- $team = get_post_meta( $this->ID, 'sp_team', true );
 
107
 
108
  if ( $leagues ):
109
  $league_ids = array();
@@ -141,11 +142,12 @@ class SP_Calendar extends SP_Custom_Post {
141
  );
142
  endif;
143
 
144
- if ( $team ):
145
  $args['meta_query'] = array(
146
  array(
147
  'key' => 'sp_team',
148
- 'value' => $team,
 
149
  ),
150
  );
151
  endif;
5
  * The SportsPress calendar class handles individual calendar data.
6
  *
7
  * @class SP_Calendar
8
+ * @version 1.7.5
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
103
  $leagues = get_the_terms( $this->ID, 'sp_league' );
104
  $seasons = get_the_terms( $this->ID, 'sp_season' );
105
  $venues = get_the_terms( $this->ID, 'sp_venue' );
106
+ $teams = array_filter( get_post_meta( $this->ID, 'sp_team', false ) );
107
+ $table = get_post_meta( $this->ID, 'sp_table', true );
108
 
109
  if ( $leagues ):
110
  $league_ids = array();
142
  );
143
  endif;
144
 
145
+ if ( ! empty( $teams ) ):
146
  $args['meta_query'] = array(
147
  array(
148
  'key' => 'sp_team',
149
+ 'value' => $teams,
150
+ 'compare' => 'IN',
151
  ),
152
  );
153
  endif;
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.6
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
@@ -45,11 +45,27 @@ class SP_Event extends SP_Custom_Post{
45
  // Add outcome to result columns
46
  $columns['outcome'] = __( 'Outcome', 'sportspress' );
47
  if ( is_array( $usecolumns ) ):
48
- foreach ( $columns as $key => $label ):
49
- if ( ! in_array( $key, $usecolumns ) ):
50
- unset( $columns[ $key ] );
51
- endif;
52
- endforeach;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  endif;
54
  $data[0] = $columns;
55
  return $data;
@@ -81,7 +97,7 @@ class SP_Event extends SP_Custom_Post{
81
  $performance[ $team_id ][ $player_id ]['number'] = get_post_meta( $player_id, 'sp_number', true );
82
  endif;
83
  if ( ! array_key_exists( 'position', $player_performance ) || $player_performance['position'] == null ):
84
- $performance[ $team_id ][ $player_id ]['position'] = get_post_meta( $player_id, 'sp_position', true );
85
  endif;
86
  endforeach;
87
 
@@ -99,13 +115,17 @@ class SP_Event extends SP_Custom_Post{
99
  else:
100
  // Add position to performance labels
101
  $labels = array_merge( array( 'position' => __( 'Position', 'sportspress' ) ), $labels );
102
- if ( is_array( $columns ) ):
103
  foreach ( $labels as $key => $label ):
104
  if ( ! in_array( $key, $columns ) ):
105
  unset( $labels[ $key ] );
106
  endif;
107
  endforeach;
108
  endif;
 
 
 
 
109
  $performance[0] = $labels;
110
  return $performance;
111
  endif;
@@ -164,6 +184,158 @@ class SP_Event extends SP_Custom_Post{
164
  return $output;
165
  }
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  public function lineup_filter( $v ) {
168
  return sp_array_value( $v, 'status', 'lineup' ) == 'lineup';
169
  }
5
  * The SportsPress event class handles individual event data.
6
  *
7
  * @class SP_Event
8
+ * @version 1.7.2
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
45
  // Add outcome to result columns
46
  $columns['outcome'] = __( 'Outcome', 'sportspress' );
47
  if ( is_array( $usecolumns ) ):
48
+ if ( 'manual' == get_option( 'sportspress_event_result_columns', 'auto' ) ):
49
+ foreach ( $columns as $key => $label ):
50
+ if ( ! in_array( $key, $usecolumns ) ):
51
+ unset( $columns[ $key ] );
52
+ endif;
53
+ endforeach;
54
+ else:
55
+ $active_columns = array();
56
+ foreach ( $data as $team_results ):
57
+ foreach ( $team_results as $key => $result ):
58
+ if ( is_string( $result ) && strlen( $result ) ):
59
+ $active_columns[ $key ] = $key;
60
+ endif;
61
+ endforeach;
62
+ endforeach;
63
+ $columns = array_intersect_key( $columns, $active_columns );
64
+ endif;
65
+
66
+ if ( 'yes' == get_option( 'sportspress_event_show_outcome', 'no' ) ):
67
+ $columns['outcome'] = __( 'Outcome', 'sportspress' );
68
+ endif;
69
  endif;
70
  $data[0] = $columns;
71
  return $data;
97
  $performance[ $team_id ][ $player_id ]['number'] = get_post_meta( $player_id, 'sp_number', true );
98
  endif;
99
  if ( ! array_key_exists( 'position', $player_performance ) || $player_performance['position'] == null ):
100
+ $performance[ $team_id ][ $player_id ]['position'] = sp_get_the_term_id( $player_id, 'sp_position', null );
101
  endif;
102
  endforeach;
103
 
115
  else:
116
  // Add position to performance labels
117
  $labels = array_merge( array( 'position' => __( 'Position', 'sportspress' ) ), $labels );
118
+ if ( 'manual' == get_option( 'sportspress_event_performance_columns', 'auto' ) && is_array( $columns ) ):
119
  foreach ( $labels as $key => $label ):
120
  if ( ! in_array( $key, $columns ) ):
121
  unset( $labels[ $key ] );
122
  endif;
123
  endforeach;
124
  endif;
125
+
126
+ if ( 'no' == get_option( 'sportspress_event_show_position', 'yes' ) ):
127
+ unset( $labels['position'] );
128
+ endif;
129
  $performance[0] = $labels;
130
  return $performance;
131
  endif;
184
  return $output;
185
  }
186
 
187
+ public function outcome( $single = true ) {
188
+ // Get teams from event
189
+ $teams = get_post_meta( $this->ID, 'sp_team', false );
190
+
191
+ // Initialize output
192
+ $output = array();
193
+
194
+ // Return empty array if there are no teams
195
+ if ( ! $teams ) return $output;
196
+
197
+ // Get results from event
198
+ $results = get_post_meta( $this->ID, 'sp_results', true );
199
+
200
+ // Loop through teams
201
+ foreach ( $teams as $team_id ) {
202
+
203
+ // Skip if not a team
204
+ if ( ! $team_id ) continue;
205
+
206
+ // Get team results from all results
207
+ $team_results = sp_array_value( $results, $team_id, null );
208
+
209
+ // Get outcome from team results
210
+ $team_outcome = sp_array_value( $team_results, 'outcome', null );
211
+
212
+ if ( null != $team_outcome ) {
213
+
214
+ // Make sure that we have an array of outcomes
215
+ $team_outcome = (array) $team_outcome;
216
+
217
+ // Use only first outcome if single
218
+ if ( $single ) {
219
+ $team_outcome = reset( $team_outcome );
220
+ }
221
+
222
+ // Add outcome to output
223
+ $output[ $team_id ] = $team_outcome;
224
+ }
225
+ }
226
+
227
+ return $output;
228
+ }
229
+
230
+ public function winner() {
231
+ // Get the first configured outcome
232
+ $outcome = get_posts( array(
233
+ 'post_type' => 'sp_outcome',
234
+ 'post_status' => 'publish',
235
+ 'posts_per_page' => 1,
236
+ 'orderby' => 'menu_order',
237
+ 'order' => 'ASC',
238
+ ) );
239
+
240
+ // Return if no outcomes available
241
+ if ( ! $outcome ) return null;
242
+
243
+ $outcome = reset( $outcome );
244
+
245
+ // Get event outcomes
246
+ $outcomes = self::outcome( false );
247
+
248
+ // Look for a team that meets the criteria
249
+ foreach ( $outcomes as $team_id => $team_outcomes ) {
250
+ if ( in_array( $outcome->post_name, $team_outcomes ) ) {
251
+ return $team_id;
252
+ }
253
+ }
254
+
255
+ // Return if no teams meet criteria
256
+ return null;
257
+ }
258
+
259
+ public function update_main_results( $results ) {
260
+ $main_result = sp_get_main_result_option();
261
+
262
+ if ( ! $this->ID || ! is_array( $results ) || null === $main_result ) {
263
+ return false;
264
+ }
265
+
266
+ // Get current results meta
267
+ $meta = get_post_meta( $this->ID, 'sp_results', true );
268
+
269
+ $primary_results = array();
270
+ foreach ( $results as $id => $result ) {
271
+ $primary_results[ $id ] = $result;
272
+
273
+ if ( ! $id ) continue;
274
+
275
+ $meta[ $id ][ $main_result ] = $result;
276
+ }
277
+
278
+ arsort( $primary_results );
279
+
280
+ if ( count( $primary_results ) && ! in_array( null, $primary_results ) ) {
281
+ if ( count( array_unique( $primary_results ) ) === 1 ) {
282
+ $args = array(
283
+ 'post_type' => 'sp_outcome',
284
+ 'numberposts' => -1,
285
+ 'posts_per_page' => -1,
286
+ 'meta_key' => 'sp_condition',
287
+ 'meta_value' => '=',
288
+ );
289
+ $outcomes = get_posts( $args );
290
+ foreach ( $meta as $team => $team_results ) {
291
+ if ( $outcomes ) {
292
+ $meta[ $team ][ 'outcome' ] = array();
293
+ foreach ( $outcomes as $outcome ) {
294
+ $meta[ $team ][ 'outcome' ][] = $outcome->post_name;
295
+ }
296
+ }
297
+ }
298
+ } else {
299
+ reset( $primary_results );
300
+ $max = key( $primary_results );
301
+ $args = array(
302
+ 'post_type' => 'sp_outcome',
303
+ 'numberposts' => -1,
304
+ 'posts_per_page' => -1,
305
+ 'meta_key' => 'sp_condition',
306
+ 'meta_value' => '>',
307
+ );
308
+ $outcomes = get_posts( $args );
309
+ if ( $outcomes ) {
310
+ $meta[ $max ][ 'outcome' ] = array();
311
+ foreach ( $outcomes as $outcome ) {
312
+ $meta[ $max ][ 'outcome' ][] = $outcome->post_name;
313
+ }
314
+ }
315
+
316
+ end( $primary_results );
317
+ $min = key( $primary_results );
318
+ $args = array(
319
+ 'post_type' => 'sp_outcome',
320
+ 'numberposts' => -1,
321
+ 'posts_per_page' => -1,
322
+ 'meta_key' => 'sp_condition',
323
+ 'meta_value' => '<',
324
+ );
325
+ $outcomes = get_posts( $args );
326
+ if ( $outcomes ) {
327
+ $meta[ $min ][ 'outcome' ] = array();
328
+ foreach ( $outcomes as $outcome ) {
329
+ $meta[ $min ][ 'outcome' ][] = $outcome->post_name;
330
+ }
331
+ }
332
+ }
333
+ }
334
+
335
+ // Update results
336
+ update_post_meta( $this->ID, 'sp_results', $meta );
337
+ }
338
+
339
  public function lineup_filter( $v ) {
340
  return sp_array_value( $v, 'status', 'lineup' ) == 'lineup';
341
  }
includes/class-sp-frontend-scripts.php CHANGED
@@ -3,7 +3,7 @@
3
  * Handle frontend forms
4
  *
5
  * @class SP_Frontend_Scripts
6
- * @version 1.6
7
  * @package SportsPress/Classes
8
  * @category Class
9
  * @author ThemeBoy
@@ -148,7 +148,8 @@ class SP_Frontend_Scripts {
148
  $offset = ( 'twentyfourteen' == $template ? 48 : 0 );
149
  }
150
 
151
- $colors = (array) get_option( 'sportspress_frontend_css_colors', array() );
 
152
 
153
  // Defaults
154
  if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e';
3
  * Handle frontend forms
4
  *
5
  * @class SP_Frontend_Scripts
6
+ * @version 1.7
7
  * @package SportsPress/Classes
8
  * @category Class
9
  * @author ThemeBoy
148
  $offset = ( 'twentyfourteen' == $template ? 48 : 0 );
149
  }
150
 
151
+ $colors = array_map( 'esc_attr', (array) get_option( 'themeboy', array() ) );
152
+ if ( empty( $colors ) ) $colors = array_map( 'esc_attr', (array) get_option( 'sportspress_frontend_css_colors', array() ) );
153
 
154
  // Defaults
155
  if ( empty( $colors['primary'] ) ) $colors['primary'] = '#2b353e';
includes/class-sp-league-table.php CHANGED
@@ -5,7 +5,7 @@
5
  * The SportsPress league table class handles individual league table data.
6
  *
7
  * @class SP_League_Table
8
- * @version 1.6
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
@@ -91,8 +91,11 @@ class SP_League_Table extends SP_Custom_Post{
91
  $placeholders = array();
92
 
93
  // Initialize incremental counter
94
- $this->pos = array( 1 );
95
- $this->counter = 1;
 
 
 
96
 
97
  // Initialize streaks counter
98
  $streaks = array();
@@ -134,7 +137,7 @@ class SP_League_Table extends SP_Custom_Post{
134
  $static = get_post_meta( $team_id, 'sp_columns', true );
135
 
136
  // Add static stats to placeholders
137
- $placeholders[ $team_id ] = sp_array_value( sp_array_value( $static, $league_id, array() ), $div_id, array() );
138
 
139
  endforeach;
140
 
@@ -145,6 +148,13 @@ class SP_League_Table extends SP_Custom_Post{
145
  'posts_per_page' => -1,
146
  'orderby' => 'post_date',
147
  'order' => 'DESC',
 
 
 
 
 
 
 
148
  'tax_query' => array(
149
  'relation' => 'AND',
150
  ),
@@ -165,6 +175,8 @@ class SP_League_Table extends SP_Custom_Post{
165
  'terms' => $div_id
166
  );
167
  endif;
 
 
168
 
169
  $events = get_posts( $args );
170
 
@@ -356,7 +368,7 @@ class SP_League_Table extends SP_Custom_Post{
356
 
357
  $team_data['name'] = get_the_title( $team_id );
358
 
359
- foreach( $team_data as $key => $value ):
360
 
361
  // Use static data if key exists and value is not empty, else use placeholder
362
  if ( array_key_exists( $team_id, $tempdata ) && array_key_exists( $key, $tempdata[ $team_id ] ) && $tempdata[ $team_id ][ $key ] != '' ):
@@ -371,12 +383,9 @@ class SP_League_Table extends SP_Custom_Post{
371
 
372
  uasort( $merged, array( $this, 'sort' ) );
373
 
374
- // Create temp array and calculate position of teams for ties
375
- $temp = $merged;
376
- uasort( $temp, array( $this, 'calculate_pos' ) );
377
-
378
  foreach ( $merged as $team_id => $team_columns ) {
379
- $merged[ $team_id ]['pos'] = array_shift( $this->pos );
380
  }
381
 
382
  // Rearrange data array to reflect values
@@ -434,26 +443,28 @@ class SP_League_Table extends SP_Custom_Post{
434
  * @param array $b
435
  * @return int
436
  */
437
- public function calculate_pos( $a, $b ) {
438
- $this->counter ++;
 
 
 
 
439
 
440
  // Loop through priorities
441
  foreach( $this->priorities as $priority ):
442
 
443
  // Proceed if columns are not equal
444
- if ( sp_array_value( $a, $priority['column'], 0 ) != sp_array_value( $b, $priority['column'], 0 ) ):
445
 
446
  // Increment if not equal
447
- $this->pos[] = $this->counter;
448
-
449
- return 0;
450
 
451
  endif;
452
 
453
  endforeach;
454
 
455
  // Repeat position if equal
456
- $this->pos[] = end( $this->pos );
457
- return 0;
458
  }
459
  }
5
  * The SportsPress league table class handles individual league table data.
6
  *
7
  * @class SP_League_Table
8
+ * @version 1.7
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
91
  $placeholders = array();
92
 
93
  // Initialize incremental counter
94
+ $this->pos = 0;
95
+ $this->counter = 0;
96
+
97
+ // Initialize team compare
98
+ $this->compare = null;
99
 
100
  // Initialize streaks counter
101
  $streaks = array();
137
  $static = get_post_meta( $team_id, 'sp_columns', true );
138
 
139
  // Add static stats to placeholders
140
+ $placeholders[ $team_id ] = (array) sp_array_value( sp_array_value( $static, $league_id, array() ), $div_id, array() );
141
 
142
  endforeach;
143
 
148
  'posts_per_page' => -1,
149
  'orderby' => 'post_date',
150
  'order' => 'DESC',
151
+ 'meta_query' => array(
152
+ array(
153
+ 'key' => 'sp_format',
154
+ 'value' => apply_filters( 'sportspress_competitive_event_formats', array( 'league' ) ),
155
+ 'compare' => 'IN',
156
+ ),
157
+ ),
158
  'tax_query' => array(
159
  'relation' => 'AND',
160
  ),
175
  'terms' => $div_id
176
  );
177
  endif;
178
+
179
+ $args = apply_filters( 'sportspress_table_data_event_args', $args );
180
 
181
  $events = get_posts( $args );
182
 
368
 
369
  $team_data['name'] = get_the_title( $team_id );
370
 
371
+ foreach ( $team_data as $key => $value ):
372
 
373
  // Use static data if key exists and value is not empty, else use placeholder
374
  if ( array_key_exists( $team_id, $tempdata ) && array_key_exists( $key, $tempdata[ $team_id ] ) && $tempdata[ $team_id ][ $key ] != '' ):
383
 
384
  uasort( $merged, array( $this, 'sort' ) );
385
 
386
+ // Calculate position of teams for ties
 
 
 
387
  foreach ( $merged as $team_id => $team_columns ) {
388
+ $merged[ $team_id ]['pos'] = $this->calculate_pos( $team_columns );
389
  }
390
 
391
  // Rearrange data array to reflect values
443
  * @param array $b
444
  * @return int
445
  */
446
+ public function calculate_pos( $columns ) {
447
+ $this->counter++;
448
+
449
+ // Replace compare data and use last set
450
+ $compare = $this->compare;
451
+ $this->compare = $columns;
452
 
453
  // Loop through priorities
454
  foreach( $this->priorities as $priority ):
455
 
456
  // Proceed if columns are not equal
457
+ if ( sp_array_value( $columns, $priority['column'], 0 ) !== sp_array_value( $compare, $priority['column'], 0 ) ):
458
 
459
  // Increment if not equal
460
+ $this->pos = $this->counter;
461
+ return $this->counter;
 
462
 
463
  endif;
464
 
465
  endforeach;
466
 
467
  // Repeat position if equal
468
+ return $this->pos;
 
469
  }
470
  }
includes/class-sp-modules.php CHANGED
@@ -5,7 +5,7 @@
5
  * The SportsPress modules class stores available modules.
6
  *
7
  * @class SP_Modules
8
- * @version 1.6.1
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
@@ -28,18 +28,9 @@ class SP_Modules {
28
  'label' => __( 'Calendars', 'sportspress' ),
29
  'icon' => 'sp-icon-calendar',
30
  ),
31
- 'event_videos' => array(
32
- 'label' => __( 'Videos', 'sportspress' ),
33
- 'icon' => 'dashicons dashicons-video-alt',
34
- ),
35
- 'countdowns' => array(
36
- 'label' => __( 'Countdowns', 'sportspress' ),
37
- 'icon' => 'sp-icon-clock',
38
- ),
39
  'tournaments' => array(
40
  'label' => __( 'Tournaments', 'sportspress' ),
41
  'class' => 'SportsPress_Tournaments',
42
- 'tip' => __( 'Upgrade to Pro', 'sportspress' ),
43
  'icon' => 'sp-icon-tournament',
44
  'link' => 'http://tboy.co/tournaments',
45
  ),
@@ -52,7 +43,6 @@ class SP_Modules {
52
  'team_colors' => array(
53
  'label' => __( 'Team Colors', 'sportspress' ),
54
  'class' => 'SportsPress_Team_Colors',
55
- 'tip' => __( 'Upgrade to Pro', 'sportspress' ),
56
  'icon' => 'sp-icon-color',
57
  'link' => 'http://tboy.co/colors',
58
  ),
@@ -79,12 +69,15 @@ class SP_Modules {
79
  'staff_directories' => array(
80
  'label' => __( 'Directories', 'sportspress' ),
81
  'class' => 'SportsPress_Staff_Directories',
82
- 'tip' => __( 'Upgrade to Pro', 'sportspress' ),
83
  'icon' => 'sp-icon-archive',
84
  'link' => 'http://tboy.co/directories',
85
  ),
86
  ),
87
  'other' => array(
 
 
 
 
88
  'twitter' => array(
89
  'label' => __( 'Twitter', 'sportspress' ),
90
  'class' => 'SportsPress_Twitter',
@@ -96,31 +89,21 @@ class SP_Modules {
96
  'branding' => array(
97
  'label' => __( 'Branding', 'sportspress' ),
98
  'class' => 'SportsPress_Branding',
99
- 'tip' => __( 'Upgrade to Pro', 'sportspress' ),
100
  'icon' => 'sp-icon-sportspress',
101
  'link' => 'http://tboy.co/branding',
102
  ),
103
  'league_menu' => array(
104
  'label' => __( 'League Menu', 'sportspress' ),
105
  'class' => 'SportsPress_League_Menu',
106
- 'tip' => __( 'Upgrade to Pro', 'sportspress' ),
107
  'icon' => 'sp-icon-menu',
108
  'link' => 'http://tboy.co/menu',
109
  ),
110
  'sponsors' => array(
111
  'label' => __( 'Sponsors', 'sportspress' ),
112
  'class' => 'SportsPress_Sponsors',
113
- 'tip' => __( 'Upgrade to Pro', 'sportspress' ),
114
  'icon' => 'sp-icon-megaphone',
115
  'link' => 'http://tboy.co/sponsors',
116
  ),
117
- 'multisite' => array(
118
- 'label' => __( 'Multisite', 'sportspress' ),
119
- 'class' => 'SportsPress_Multisite',
120
- 'tip' => __( 'Upgrade to Pro', 'sportspress' ),
121
- 'icon' => 'sp-icon-globe',
122
- 'link' => 'http://tboy.co/multisite',
123
- ),
124
  ),
125
  ));
126
  }
5
  * The SportsPress modules class stores available modules.
6
  *
7
  * @class SP_Modules
8
+ * @version 1.7.4
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
28
  'label' => __( 'Calendars', 'sportspress' ),
29
  'icon' => 'sp-icon-calendar',
30
  ),
 
 
 
 
 
 
 
 
31
  'tournaments' => array(
32
  'label' => __( 'Tournaments', 'sportspress' ),
33
  'class' => 'SportsPress_Tournaments',
 
34
  'icon' => 'sp-icon-tournament',
35
  'link' => 'http://tboy.co/tournaments',
36
  ),
43
  'team_colors' => array(
44
  'label' => __( 'Team Colors', 'sportspress' ),
45
  'class' => 'SportsPress_Team_Colors',
 
46
  'icon' => 'sp-icon-color',
47
  'link' => 'http://tboy.co/colors',
48
  ),
69
  'staff_directories' => array(
70
  'label' => __( 'Directories', 'sportspress' ),
71
  'class' => 'SportsPress_Staff_Directories',
 
72
  'icon' => 'sp-icon-archive',
73
  'link' => 'http://tboy.co/directories',
74
  ),
75
  ),
76
  'other' => array(
77
+ 'tutorials' => array(
78
+ 'label' => __( 'Tutorials', 'sportspress' ),
79
+ 'icon' => 'dashicons dashicons-video-alt3',
80
+ ),
81
  'twitter' => array(
82
  'label' => __( 'Twitter', 'sportspress' ),
83
  'class' => 'SportsPress_Twitter',
89
  'branding' => array(
90
  'label' => __( 'Branding', 'sportspress' ),
91
  'class' => 'SportsPress_Branding',
 
92
  'icon' => 'sp-icon-sportspress',
93
  'link' => 'http://tboy.co/branding',
94
  ),
95
  'league_menu' => array(
96
  'label' => __( 'League Menu', 'sportspress' ),
97
  'class' => 'SportsPress_League_Menu',
 
98
  'icon' => 'sp-icon-menu',
99
  'link' => 'http://tboy.co/menu',
100
  ),
101
  'sponsors' => array(
102
  'label' => __( 'Sponsors', 'sportspress' ),
103
  'class' => 'SportsPress_Sponsors',
 
104
  'icon' => 'sp-icon-megaphone',
105
  'link' => 'http://tboy.co/sponsors',
106
  ),
 
 
 
 
 
 
 
107
  ),
108
  ));
109
  }
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.6
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
@@ -167,6 +167,13 @@ class SP_Player_List extends SP_Custom_Post {
167
  'numberposts' => -1,
168
  'posts_per_page' => -1,
169
  'order' => 'ASC',
 
 
 
 
 
 
 
170
  'tax_query' => array(
171
  'relation' => 'AND',
172
  ),
@@ -187,6 +194,8 @@ class SP_Player_List extends SP_Custom_Post {
187
  'terms' => $div_id
188
  );
189
  endif;
 
 
190
 
191
  $events = get_posts( $args );
192
 
5
  * The SportsPress player list class handles individual player list data.
6
  *
7
  * @class SP_Player_List
8
+ * @version 1.7
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
167
  'numberposts' => -1,
168
  'posts_per_page' => -1,
169
  'order' => 'ASC',
170
+ 'meta_query' => array(
171
+ array(
172
+ 'key' => 'sp_format',
173
+ 'value' => apply_filters( 'sportspress_competitive_event_formats', array( 'league' ) ),
174
+ 'compare' => 'IN',
175
+ ),
176
+ ),
177
  'tax_query' => array(
178
  'relation' => 'AND',
179
  ),
194
  'terms' => $div_id
195
  );
196
  endif;
197
+
198
+ $args = apply_filters( 'sportspress_list_data_event_args', $args );
199
 
200
  $events = get_posts( $args );
201
 
includes/class-sp-player.php CHANGED
@@ -5,13 +5,23 @@
5
  * The SportsPress player class handles individual player data.
6
  *
7
  * @class SP_Player
8
- * @version 1.6
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
12
  */
13
  class SP_Player extends SP_Custom_Post {
14
 
 
 
 
 
 
 
 
 
 
 
15
  /**
16
  * Returns current teams
17
  *
@@ -136,8 +146,9 @@ class SP_Player extends SP_Custom_Post {
136
  ),
137
  array(
138
  'key' => 'sp_format',
139
- 'value' => 'league'
140
- )
 
141
  ),
142
  'tax_query' => array(
143
  'relation' => 'AND',
@@ -160,6 +171,8 @@ class SP_Player extends SP_Custom_Post {
160
  );
161
  endif;
162
 
 
 
163
  $events = get_posts( $args );
164
 
165
  // Event loop
@@ -171,7 +184,7 @@ class SP_Player extends SP_Custom_Post {
171
 
172
  // Add all team performance
173
  foreach ( $team_performance as $team_id => $players ):
174
- if ( array_key_exists( $this->ID, $players ) ):
175
 
176
  $player_performance = sp_array_value( $players, $this->ID, array() );
177
 
5
  * The SportsPress player class handles individual player data.
6
  *
7
  * @class SP_Player
8
+ * @version 1.7.3
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
12
  */
13
  class SP_Player extends SP_Custom_Post {
14
 
15
+ /**
16
+ * Returns positions
17
+ *
18
+ * @access public
19
+ * @return array
20
+ */
21
+ public function positions() {
22
+ return get_the_terms( $this->ID, 'sp_position' );
23
+ }
24
+
25
  /**
26
  * Returns current teams
27
  *
146
  ),
147
  array(
148
  'key' => 'sp_format',
149
+ 'value' => apply_filters( 'sportspress_competitive_event_formats', array( 'league' ) ),
150
+ 'compare' => 'IN',
151
+ ),
152
  ),
153
  'tax_query' => array(
154
  'relation' => 'AND',
171
  );
172
  endif;
173
 
174
+ $args = apply_filters( 'sportspress_player_data_event_args', $args );
175
+
176
  $events = get_posts( $args );
177
 
178
  // Event loop
184
 
185
  // Add all team performance
186
  foreach ( $team_performance as $team_id => $players ):
187
+ if ( is_array( $players ) && array_key_exists( $this->ID, $players ) ):
188
 
189
  $player_performance = sp_array_value( $players, $this->ID, array() );
190
 
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.6
13
  * @package SportsPress/Classes
14
  * @category Class
15
  * @author ThemeBoy
@@ -142,7 +142,7 @@ class SP_Post_types {
142
  'hierarchical' => true,
143
  'rewrite' => array( 'slug' => get_option( 'sportspress_position_slug', 'position' ) ),
144
  );
145
- $object_types = apply_filters( 'sportspress_position_object_types', array( 'sp_player' ) );
146
  register_taxonomy( 'sp_position', $object_types, $args );
147
  foreach ( $object_types as $object_type ):
148
  register_taxonomy_for_object_type( 'sp_position', $object_type );
9
  * Registers post types and taxonomies
10
  *
11
  * @class SP_Post_types
12
+ * @version 1.7
13
  * @package SportsPress/Classes
14
  * @category Class
15
  * @author ThemeBoy
142
  'hierarchical' => true,
143
  'rewrite' => array( 'slug' => get_option( 'sportspress_position_slug', 'position' ) ),
144
  );
145
+ $object_types = apply_filters( 'sportspress_position_object_types', array( 'sp_player', 'sp_performance' ) );
146
  register_taxonomy( 'sp_position', $object_types, $args );
147
  foreach ( $object_types as $object_type ):
148
  register_taxonomy_for_object_type( 'sp_position', $object_type );
includes/class-sp-team.php CHANGED
@@ -5,7 +5,7 @@
5
  * The SportsPress team class handles individual team data.
6
  *
7
  * @class SP_Team
8
- * @version 1.3
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
@@ -116,8 +116,9 @@ class SP_Team extends SP_Custom_Post {
116
  ),
117
  array(
118
  'key' => 'sp_format',
119
- 'value' => 'league'
120
- )
 
121
  ),
122
  'tax_query' => array(
123
  'relation' => 'AND',
@@ -140,6 +141,8 @@ class SP_Team extends SP_Custom_Post {
140
  );
141
  endif;
142
 
 
 
143
  $events = get_posts( $args );
144
 
145
  foreach( $events as $event ):
5
  * The SportsPress team class handles individual team data.
6
  *
7
  * @class SP_Team
8
+ * @version 1.7
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
116
  ),
117
  array(
118
  'key' => 'sp_format',
119
+ 'value' => apply_filters( 'sportspress_competitive_event_formats', array( 'league' ) ),
120
+ 'compare' => 'IN',
121
+ ),
122
  ),
123
  'tax_query' => array(
124
  'relation' => 'AND',
141
  );
142
  endif;
143
 
144
+ $args = apply_filters( 'sportspress_team_data_event_args', $args );
145
+
146
  $events = get_posts( $args );
147
 
148
  foreach( $events as $event ):
includes/class-sp-template-loader.php CHANGED
@@ -3,7 +3,7 @@
3
  * Template Loader
4
  *
5
  * @class SP_Template_Loader
6
- * @version 1.5
7
  * @package SportsPress/Classes
8
  * @category Class
9
  * @author ThemeBoy
@@ -121,43 +121,13 @@ class SP_Template_Loader {
121
 
122
  if ( is_single() ):
123
 
124
- switch( get_post_type() ):
125
- case 'sp_event':
126
- $file = 'single-event.php';
127
- $find[] = $file;
128
- $find[] = SP_TEMPLATE_PATH . $file;
129
- break;
130
- case 'sp_calendar':
131
- $file = 'single-calendar.php';
132
- $find[] = $file;
133
- $find[] = SP_TEMPLATE_PATH . $file;
134
- break;
135
- case 'sp_team':
136
- $file = 'single-team.php';
137
- $find[] = $file;
138
- $find[] = SP_TEMPLATE_PATH . $file;
139
- break;
140
- case 'sp_table':
141
- $file = 'single-table.php';
142
- $find[] = $file;
143
- $find[] = SP_TEMPLATE_PATH . $file;
144
- break;
145
- case 'sp_player':
146
- $file = 'single-player.php';
147
- $find[] = $file;
148
- $find[] = SP_TEMPLATE_PATH . $file;
149
- break;
150
- case 'sp_list':
151
- $file = 'single-list.php';
152
- $find[] = $file;
153
- $find[] = SP_TEMPLATE_PATH . $file;
154
- break;
155
- case 'sp_staff':
156
- $file = 'single-staff.php';
157
- $find[] = $file;
158
- $find[] = SP_TEMPLATE_PATH . $file;
159
- break;
160
- endswitch;
161
 
162
  elseif ( is_tax() ):
163
 
3
  * Template Loader
4
  *
5
  * @class SP_Template_Loader
6
+ * @version 1.7
7
  * @package SportsPress/Classes
8
  * @category Class
9
  * @author ThemeBoy
121
 
122
  if ( is_single() ):
123
 
124
+ $post_type = get_post_type();
125
+
126
+ if ( is_sp_post_type( $post_type ) ):
127
+ $file = 'single-' . str_replace( 'sp_', '', $post_type ) . '.php';
128
+ $find[] = $file;
129
+ $find[] = SP_TEMPLATE_PATH . $file;
130
+ endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
 
132
  elseif ( is_tax() ):
133
 
includes/sp-api-functions.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
- * @version 1.6
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -16,8 +16,9 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
16
  * General functions
17
  */
18
 
19
- function sp_get_time( $post = 0 ) {
20
- return get_post_time( get_option( 'time_format' ), false, $post, true );
 
21
  }
22
 
23
  function sp_the_time( $post = 0 ) {
@@ -42,6 +43,16 @@ function sp_get_teams( $post = 0 ) {
42
  return get_post_meta( $post, 'sp_team' );
43
  }
44
 
 
 
 
 
 
 
 
 
 
 
45
  function sp_get_main_results( $post = 0 ) {
46
  $event = new SP_Event( $post );
47
  return $event->main_results();
@@ -52,6 +63,11 @@ function sp_the_main_results( $post = 0, $delimiter = '-' ) {
52
  echo implode( $delimiter, $results );
53
  }
54
 
 
 
 
 
 
55
  function sp_get_main_results_or_time( $post = 0 ) {
56
  $results = sp_get_main_results( $post );
57
  if ( sizeof( $results ) ) {
@@ -65,6 +81,21 @@ function sp_the_main_results_or_time( $post = 0, $delimiter = '-' ) {
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();
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
+ * @version 1.7
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
16
  * General functions
17
  */
18
 
19
+ function sp_get_time( $post = 0, $format = null ) {
20
+ if ( null == $format ) $format = get_option( 'time_format' );
21
+ return get_post_time( $format, false, $post, true );
22
  }
23
 
24
  function sp_the_time( $post = 0 ) {
43
  return get_post_meta( $post, 'sp_team' );
44
  }
45
 
46
+ function sp_get_main_result_option() {
47
+ $main_result = get_option( 'sportspress_primary_result', null );
48
+ if ( $main_result ) return $main_result;
49
+ $results = get_posts( array( 'post_type' => 'sp_result', 'posts_per_page' => 1, 'orderby' => 'menu_order', 'order' => 'DESC' ) );
50
+ if ( ! $results ) return null;
51
+ $result = reset( $results );
52
+ $slug = $result->post_name;
53
+ return $slug;
54
+ }
55
+
56
  function sp_get_main_results( $post = 0 ) {
57
  $event = new SP_Event( $post );
58
  return $event->main_results();
63
  echo implode( $delimiter, $results );
64
  }
65
 
66
+ function sp_update_main_results( $post = 0, $results = array() ) {
67
+ $event = new SP_Event( $post );
68
+ return $event->update_main_results ( $results );
69
+ }
70
+
71
  function sp_get_main_results_or_time( $post = 0 ) {
72
  $results = sp_get_main_results( $post );
73
  if ( sizeof( $results ) ) {
81
  echo implode( $delimiter, sp_get_main_results_or_time( $post ) );
82
  }
83
 
84
+ function sp_get_outcome( $post = 0 ) {
85
+ $event = new SP_Event( $post );
86
+ return $event->outcome( true );
87
+ }
88
+
89
+ function sp_get_outcomes( $post = 0 ) {
90
+ $event = new SP_Event( $post );
91
+ return $event->outcome( false );
92
+ }
93
+
94
+ function sp_get_winner( $post = 0 ) {
95
+ $event = new SP_Event( $post );
96
+ return $event->winner();
97
+ }
98
+
99
  function sp_get_performance( $post = 0 ) {
100
  $event = new SP_Event( $post );
101
  return $event->performance();
includes/sp-core-functions.php CHANGED
@@ -7,12 +7,13 @@
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
- * @version 1.6.1
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
 
15
  // Include core functions
 
16
  include( 'sp-conditional-functions.php' );
17
  include( 'sp-formatting-functions.php' );
18
  include( 'sp-deprecated-functions.php' );
@@ -1151,6 +1152,46 @@ if ( !function_exists( 'sp_get_next_event' ) ) {
1151
  }
1152
  }
1153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1154
  /**
1155
  * Get an array of text options per context.
1156
  * @return array
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
+ * @version 1.7
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
 
15
  // Include core functions
16
+ include( 'sp-option-filters.php' );
17
  include( 'sp-conditional-functions.php' );
18
  include( 'sp-formatting-functions.php' );
19
  include( 'sp-deprecated-functions.php' );
1152
  }
1153
  }
1154
 
1155
+ if ( !function_exists( 'sp_taxonomy_field' ) ) {
1156
+ function sp_taxonomy_field( $taxonomy = 'category', $post = null, $multiple = false ) {
1157
+ $obj = get_taxonomy( $taxonomy );
1158
+ if ( $obj ) {
1159
+ $post_type = get_post_type( $post );
1160
+ ?>
1161
+ <div class="<?php echo $post_type; ?>-<?php echo $taxonomy; ?>-field">
1162
+ <p><strong><?php echo $obj->labels->singular_name; ?></strong></p>
1163
+ <p>
1164
+ <?php
1165
+ $terms = get_the_terms( $post->ID, $taxonomy );
1166
+ $term_ids = array();
1167
+ if ( $terms ):
1168
+ foreach ( $terms as $term ):
1169
+ $term_ids[] = $term->term_id;
1170
+ endforeach;
1171
+ endif;
1172
+ $args = array(
1173
+ 'taxonomy' => $taxonomy,
1174
+ 'name' => 'tax_input[' . $taxonomy . '][]',
1175
+ 'selected' => $term_ids,
1176
+ 'values' => 'term_id',
1177
+ 'class' => 'sp-has-dummy widefat',
1178
+ 'chosen' => true,
1179
+ 'placeholder' => __( 'All', 'sportspress' ),
1180
+ );
1181
+ if ( $multiple ) {
1182
+ $args['property'] = 'multiple';
1183
+ }
1184
+ if ( ! sp_dropdown_taxonomies( $args ) ):
1185
+ sp_taxonomy_adder( $taxonomy, $post_type, $obj->labels->add_new_item );
1186
+ endif;
1187
+ ?>
1188
+ </p>
1189
+ </div>
1190
+ <?php
1191
+ }
1192
+ }
1193
+ }
1194
+
1195
  /**
1196
  * Get an array of text options per context.
1197
  * @return array
includes/sp-formatting-functions.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
- * @version 1.6
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -74,6 +74,17 @@ function sp_filter_positive( $var = 0 ) {
74
  return $var > 0;
75
  }
76
 
 
 
 
 
 
 
 
 
 
 
 
77
  /**
78
  * let_to_num function.
79
  *
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
+ * @version 1.7
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
74
  return $var > 0;
75
  }
76
 
77
+ /**
78
+ * Array filter returns non-empty array values.
79
+ *
80
+ * @access public
81
+ * @param str $var
82
+ * @return bool
83
+ */
84
+ function sp_filter_non_empty( $var = '' ) {
85
+ return strlen( $var ) > 0;
86
+ }
87
+
88
  /**
89
  * let_to_num function.
90
  *
includes/sp-option-filters.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SportsPress Option Filters
4
+ *
5
+ * Filters for SportsPress options.
6
+ *
7
+ * @author ThemeBoy
8
+ * @category Core
9
+ * @package SportsPress/Functions
10
+ * @version 1.7
11
+ */
12
+
13
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
+
15
+ function sportspress_primary_performance_filter( $option ) {
16
+ if ( $option ) return $option;
17
+ $performance_posts = get_posts( array( 'posts_per_page' => 1, 'orderby' => 'menu_order', 'order' => 'ASC', 'post_type' => 'sp_performance' ) );
18
+ if ( ! $performance_posts ) return $option;
19
+ $post = reset( $performance_posts );
20
+ return $post->post_name;
21
+ }
22
+ add_filter( 'option_sportspress_primary_performance', 'sportspress_primary_performance_filter' );
includes/sp-template-hooks.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
- * @version 1.6
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -22,6 +22,12 @@ add_filter( 'body_class', 'sp_body_class' );
22
  add_action( 'get_the_generator_html', 'sp_generator_tag', 10, 2 );
23
  add_action( 'get_the_generator_xhtml', 'sp_generator_tag', 10, 2 );
24
 
 
 
 
 
 
 
25
  /**
26
  * Single Event Content
27
  *
@@ -31,9 +37,8 @@ add_action( 'get_the_generator_xhtml', 'sp_generator_tag', 10, 2 );
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_results', 20 );
36
  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 );
@@ -45,15 +50,19 @@ add_action( 'sportspress_single_event_content', 'sportspress_output_event_perfor
45
  */
46
  add_action( 'sportspress_single_calendar_content', 'sportspress_output_calendar', 10 );
47
 
 
 
 
 
 
 
48
  /**
49
  * Single Team Content
50
  *
51
- * @see sportspress_output_team_logo()
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 );
@@ -71,14 +80,18 @@ add_action( 'sportspress_after_single_team', 'sportspress_output_team_link', 10
71
  */
72
  add_action( 'sportspress_single_table_content', 'sportspress_output_league_table', 10 );
73
 
 
 
 
 
 
 
74
  /**
75
  * Single Player Content
76
  *
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
 
@@ -89,13 +102,17 @@ add_action( 'sportspress_single_player_content', 'sportspress_output_player_stat
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
  /**
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
+ * @version 1.7
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
22
  add_action( 'get_the_generator_html', 'sp_generator_tag', 10, 2 );
23
  add_action( 'get_the_generator_xhtml', 'sp_generator_tag', 10, 2 );
24
 
25
+ /**
26
+ * Before Single Event
27
+ * @see sportspress_output_event_logos()
28
+ */
29
+ add_action( 'sportspress_before_single_event', 'sportspress_output_event_logos', 10 );
30
+
31
  /**
32
  * Single Event Content
33
  *
37
  * @see sportspress_output_event_venue()
38
  * @see sportspress_output_event_performance()
39
  */
 
 
40
  add_action( 'sportspress_single_event_content', 'sportspress_output_event_video', 10 );
41
+ add_action( 'sportspress_single_event_content', 'sportspress_output_event_results', 20 );
42
  add_action( 'sportspress_single_event_content', 'sportspress_output_event_details', 30 );
43
  add_action( 'sportspress_single_event_content', 'sportspress_output_event_venue', 40 );
44
  add_action( 'sportspress_single_event_content', 'sportspress_output_event_performance', 50 );
50
  */
51
  add_action( 'sportspress_single_calendar_content', 'sportspress_output_calendar', 10 );
52
 
53
+ /**
54
+ * Before Single Team
55
+ * @see sportspress_output_team_logo()
56
+ */
57
+ add_action( 'sportspress_before_single_team', 'sportspress_output_team_logo', 10 );
58
+
59
  /**
60
  * Single Team Content
61
  *
 
62
  * @see sportspress_output_team_details()
63
  * @see sportspress_output_team_lists()
64
  * @see sportspress_output_team_tables()
65
  */
 
66
  add_action( 'sportspress_single_team_content', 'sportspress_output_team_details', 10 );
67
  add_action( 'sportspress_single_team_content', 'sportspress_output_team_lists', 20 );
68
  add_action( 'sportspress_single_team_content', 'sportspress_output_team_tables', 30 );
80
  */
81
  add_action( 'sportspress_single_table_content', 'sportspress_output_league_table', 10 );
82
 
83
+ /**
84
+ * Before Single Player
85
+ * @see sportspress_output_player_photo()
86
+ */
87
+ add_action( 'sportspress_before_single_player', 'sportspress_output_player_photo', 10 );
88
+
89
  /**
90
  * Single Player Content
91
  *
 
92
  * @see sportspress_output_player_details()
93
  * @see sportspress_output_player_statistics()
94
  */
 
95
  add_action( 'sportspress_single_player_content', 'sportspress_output_player_details', 10 );
96
  add_action( 'sportspress_single_player_content', 'sportspress_output_player_statistics', 20 );
97
 
102
  */
103
  add_action( 'sportspress_single_list_content', 'sportspress_output_player_list', 10 );
104
 
105
+ /**
106
+ * Before Single Staff
107
+ * @see sportspress_output_staff_photo()
108
+ */
109
+ add_action( 'sportspress_before_single_staff', 'sportspress_output_staff_photo', 10 );
110
+
111
  /**
112
  * Single Staff Content
113
  *
 
114
  * @see sportspress_output_staff_details()
115
  */
 
116
  add_action( 'sportspress_single_staff_content', 'sportspress_output_staff_details', 10 );
117
 
118
  /**
includes/widgets/class-sp-widget-player-gallery.php CHANGED
@@ -93,7 +93,7 @@ class SP_Widget_Player_Gallery extends WP_Widget {
93
  $args = array(
94
  'prepend_options' => array(
95
  'default' => __( 'Default', 'sportspress' ),
96
- 'number' => __( 'Number', 'sportspress' ),
97
  'name' => __( 'Name', 'sportspress' ),
98
  'eventsplayed' => __( 'Played', 'sportspress' )
99
  ),
93
  $args = array(
94
  'prepend_options' => array(
95
  'default' => __( 'Default', 'sportspress' ),
96
+ 'number' => __( 'Squad Number', 'sportspress' ),
97
  'name' => __( 'Name', 'sportspress' ),
98
  'eventsplayed' => __( 'Played', 'sportspress' )
99
  ),
includes/widgets/class-sp-widget-player-list.php CHANGED
@@ -107,7 +107,7 @@ class SP_Widget_Player_list extends WP_Widget {
107
  $args = array(
108
  'prepend_options' => array(
109
  'default' => __( 'Default', 'sportspress' ),
110
- 'number' => __( 'Number', 'sportspress' ),
111
  'name' => __( 'Name', 'sportspress' ),
112
  'eventsplayed' => __( 'Played', 'sportspress' )
113
  ),
107
  $args = array(
108
  'prepend_options' => array(
109
  'default' => __( 'Default', 'sportspress' ),
110
+ 'number' => __( 'Squad Number', 'sportspress' ),
111
  'name' => __( 'Name', 'sportspress' ),
112
  'eventsplayed' => __( 'Played', 'sportspress' )
113
  ),
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-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: 2015-02-13 19:12+1000\n"
5
- "PO-Revision-Date: 2015-02-13 19:12+1000\n"
6
  "Last-Translator: Brian Miyaji <brian@themeboy.com>\n"
7
  "Language-Team: ThemeBoy <support@themeboy.com>\n"
8
  "Language: en_US\n"
@@ -23,16 +23,20 @@ msgid "SportsPress Shortcodes"
23
  msgstr ""
24
 
25
  #: assets/js/admin/editor-lang.php:23
26
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:115
27
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:67
 
 
28
  #: includes/admin/settings/class-sp-settings-general.php:106
29
  #: includes/admin/settings/class-sp-settings-general.php:167
30
  msgid "Auto"
31
  msgstr ""
32
 
33
  #: assets/js/admin/editor-lang.php:24
34
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:116
35
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:68
 
 
36
  msgid "Manual"
37
  msgstr ""
38
 
@@ -43,11 +47,11 @@ msgstr ""
43
  #: assets/js/admin/editor-lang.php:26
44
  #: includes/admin/class-sp-admin-sample-data.php:367
45
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:105
46
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:298
47
  #: includes/class-sp-ajax.php:57 includes/class-sp-ajax.php:101
48
  #: includes/class-sp-ajax.php:130 includes/class-sp-ajax.php:159
49
  #: includes/class-sp-ajax.php:290 includes/class-sp-post-types.php:372
50
- #: includes/sp-core-functions.php:1166
51
  #: includes/widgets/class-sp-widget-countdown.php:76
52
  #: includes/widgets/class-sp-widget-event-list.php:138
53
  #: templates/event-list.php:93
@@ -59,13 +63,12 @@ msgstr ""
59
  #: includes/admin/post-types/class-sp-admin-meta-boxes.php:41
60
  #: includes/admin/post-types/class-sp-admin-meta-boxes.php:50
61
  #: includes/admin/post-types/class-sp-admin-meta-boxes.php:59
62
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:68
63
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:77
64
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:93
65
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:122
66
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:158
67
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:186
68
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:221
69
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:225
70
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php:24
71
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:181
@@ -76,7 +79,7 @@ msgstr ""
76
  #: includes/admin/settings/class-sp-settings-players.php:64
77
  #: includes/admin/settings/class-sp-settings-staff.php:63
78
  #: includes/admin/settings/class-sp-settings-teams.php:64
79
- #: includes/sp-core-functions.php:1165 modules/sportspress-calendars.php:147
80
  #: modules/sportspress-calendars.php:272
81
  #: modules/sportspress-league-tables.php:145
82
  #: modules/sportspress-player-lists.php:153 templates/event-details.php:34
@@ -99,7 +102,7 @@ msgstr ""
99
 
100
  #: assets/js/admin/editor-lang.php:30
101
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-columns.php:25
102
- #: includes/sp-core-functions.php:1172 templates/event-performance.php:245
103
  msgid "Performance"
104
  msgstr ""
105
 
@@ -115,9 +118,10 @@ msgid "Calendar"
115
  msgstr ""
116
 
117
  #: assets/js/admin/editor-lang.php:32
118
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:200
119
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-columns.php:27
120
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-shortcode.php:31
 
121
  msgid "Statistics"
122
  msgstr ""
123
 
@@ -134,14 +138,15 @@ msgstr ""
134
 
135
  #: assets/js/admin/editor-lang.php:34
136
  #: includes/admin/class-sp-admin-sample-data.php:214
137
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:67
138
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:54
139
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:147
140
  #: includes/class-sp-ajax.php:467 includes/class-sp-ajax.php:496
141
- #: includes/class-sp-install.php:161 includes/class-sp-player-list.php:471
142
- #: includes/class-sp-post-types.php:436 includes/sp-core-functions.php:1174
143
- #: modules/sportspress-individual-mode.php:100
144
- #: templates/event-performance.php:96 templates/event-performance.php:251
 
145
  msgid "Player"
146
  msgstr ""
147
 
@@ -167,9 +172,9 @@ msgstr ""
167
  #: includes/admin/importers/class-sp-event-importer.php:487
168
  #: includes/admin/importers/class-sp-event-importer.php:502
169
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:199
170
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:175
171
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:226
172
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:85
173
  #: includes/admin/settings/class-sp-settings-status.php:260
174
  #: includes/admin/views/html-admin-page-status.php:224
175
  msgid "None"
@@ -192,7 +197,7 @@ msgstr ""
192
 
193
  #: includes/admin/class-sp-admin-assets.php:118
194
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:29
195
- #: includes/admin/settings/class-sp-settings-events.php:173
196
  #: includes/class-sp-frontend-scripts.php:85 templates/countdown.php:94
197
  msgid "mins"
198
  msgstr ""
@@ -209,17 +214,14 @@ msgid "Displaying %s&#8211;%s of %s"
209
  msgstr ""
210
 
211
  #: includes/admin/class-sp-admin-dashboard.php:34
212
- #: includes/admin/class-sp-admin-menus.php:48
213
  #: includes/admin/class-sp-admin-permalink-settings.php:47
214
  #: includes/admin/class-sp-admin-welcome.php:105
215
- #: includes/admin/views/html-admin-overview.php:19
216
- #: includes/admin/views/html-admin-overview.php:76
217
- #: includes/admin/views/html-admin-overview.php:127
218
- #: includes/admin/views/html-admin-overview.php:148
219
- #: includes/admin/views/html-admin-overview.php:230
220
- #: includes/admin/views/html-admin-overview.php:275
221
- #: includes/admin/views/html-admin-overview.php:297
222
  #: includes/admin/views/html-admin-settings.php:2
 
 
 
 
223
  msgid "SportsPress"
224
  msgstr ""
225
 
@@ -281,18 +283,13 @@ msgstr ""
281
  msgid "Import <strong>staff</strong> from a csv file."
282
  msgstr ""
283
 
284
- #: includes/admin/class-sp-admin-menus.php:55
285
- #: includes/admin/views/html-admin-overview.php:3
286
- msgid "Overview"
287
- msgstr ""
288
-
289
- #: includes/admin/class-sp-admin-menus.php:62
290
  #: includes/admin/views/html-admin-config.php:3
291
  msgid "Configure"
292
  msgstr ""
293
 
294
- #: includes/admin/class-sp-admin-menus.php:69
295
- #: includes/admin/class-sp-admin-menus.php:264
296
  #: includes/admin/class-sp-admin-permalink-settings.php:29
297
  #: includes/admin/importers/class-sp-player-importer.php:30
298
  #: includes/admin/importers/class-sp-staff-importer.php:29
@@ -309,11 +306,12 @@ msgstr ""
309
  #: includes/admin/settings/class-sp-settings-status.php:334
310
  #: includes/admin/views/html-admin-page-status.php:296
311
  #: includes/class-sp-post-types.php:36 includes/class-sp-post-types.php:50
 
312
  msgid "Competitions"
313
  msgstr ""
314
 
315
- #: includes/admin/class-sp-admin-menus.php:76
316
- #: includes/admin/class-sp-admin-menus.php:272
317
  #: includes/admin/class-sp-admin-permalink-settings.php:30
318
  #: includes/admin/importers/class-sp-player-importer.php:31
319
  #: includes/admin/importers/class-sp-staff-importer.php:30
@@ -330,40 +328,36 @@ msgstr ""
330
  #: includes/admin/settings/class-sp-settings-status.php:344
331
  #: includes/admin/views/html-admin-page-status.php:306
332
  #: includes/class-sp-post-types.php:65 includes/class-sp-post-types.php:79
 
333
  msgid "Seasons"
334
  msgstr ""
335
 
336
- #: includes/admin/class-sp-admin-menus.php:111
337
- #: includes/admin/class-sp-admin-welcome.php:123 sportspress.php:140
 
338
  msgid "Settings"
339
  msgstr ""
340
 
341
- #: includes/admin/class-sp-admin-menus.php:260
342
  #: includes/admin/importers/class-sp-event-importer.php:488
343
  #: includes/admin/importers/class-sp-event-importer.php:503
344
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:73
345
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:88
346
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:103
347
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:118
348
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:46
349
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:61
350
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:77
351
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:121
352
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-metrics.php:42
353
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:73
354
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:43
355
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:58
356
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:73
357
  #: includes/admin/views/html-admin-config.php:51
358
  #: includes/admin/views/html-admin-config.php:124
359
- #: includes/admin/views/html-admin-config.php:175
360
- #: includes/admin/views/html-admin-config.php:230
361
- #: includes/admin/views/html-admin-config.php:280
362
- #: includes/admin/views/html-admin-config.php:333
363
  #: includes/class-sp-post-types.php:42 includes/class-sp-post-types.php:71
364
  #: includes/class-sp-post-types.php:100 includes/class-sp-post-types.php:129
365
- #: includes/class-sp-post-types.php:158 includes/sp-core-functions.php:953
366
- #: includes/sp-core-functions.php:970
367
  #: includes/widgets/class-sp-widget-countdown.php:71
368
  #: includes/widgets/class-sp-widget-countdown.php:91
369
  #: includes/widgets/class-sp-widget-event-blocks.php:83
@@ -378,7 +372,7 @@ msgstr ""
378
  msgid "Add New"
379
  msgstr ""
380
 
381
- #: includes/admin/class-sp-admin-menus.php:268
382
  #: includes/admin/class-sp-admin-permalink-settings.php:33
383
  #: includes/admin/importers/class-sp-player-importer.php:28
384
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:66
@@ -387,15 +381,17 @@ msgstr ""
387
  #: includes/admin/settings/class-sp-settings-status.php:364
388
  #: includes/admin/views/html-admin-page-status.php:326
389
  #: includes/class-sp-post-types.php:123 includes/class-sp-post-types.php:137
 
390
  msgid "Positions"
391
  msgstr ""
392
 
393
- #: includes/admin/class-sp-admin-menus.php:276
394
  #: includes/admin/class-sp-admin-permalink-settings.php:26
395
- #: includes/admin/settings/class-sp-settings-events.php:139
396
  #: includes/admin/settings/class-sp-settings-status.php:354
397
  #: includes/admin/views/html-admin-page-status.php:316
398
  #: includes/class-sp-post-types.php:94 includes/class-sp-post-types.php:108
 
399
  msgid "Venues"
400
  msgstr ""
401
 
@@ -405,14 +401,16 @@ msgstr ""
405
  #: includes/admin/class-sp-admin-taxonomies.php:162
406
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:53
407
  #: includes/admin/settings/class-sp-settings-events.php:25
408
- #: includes/admin/settings/class-sp-settings-modules.php:30
409
  #: includes/class-sp-post-types.php:371 modules/sportspress-calendars.php:154
 
410
  msgid "Events"
411
  msgstr ""
412
 
413
  #: includes/admin/class-sp-admin-permalink-settings.php:27
414
  #: includes/admin/class-sp-admin-sample-data.php:474
415
  #: includes/class-sp-modules.php:28 modules/sportspress-calendars.php:65
 
416
  msgid "Calendars"
417
  msgstr ""
418
 
@@ -425,29 +423,31 @@ msgstr ""
425
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:67
426
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:66
427
  #: includes/admin/post-types/class-sp-admin-cpt-table.php:51
428
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:129
429
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:59
430
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:99
431
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:114
432
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:97
433
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:112
434
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:63
435
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:58
436
- #: includes/admin/settings/class-sp-settings-modules.php:31
437
  #: includes/admin/settings/class-sp-settings-teams.php:25
438
  #: includes/class-sp-ajax.php:291 includes/class-sp-post-types.php:405
439
- #: includes/sp-core-functions.php:1184 modules/sportspress-calendars.php:203
440
  #: modules/sportspress-calendars.php:217 modules/sportspress-countdowns.php:85
441
- #: modules/sportspress-individual-mode.php:259
442
- #: modules/sportspress-league-tables.php:191 templates/event-list.php:91
 
443
  msgid "Teams"
444
  msgstr ""
445
 
446
  #: includes/admin/class-sp-admin-permalink-settings.php:31
447
  #: includes/admin/class-sp-admin-sample-data.php:508
448
- #: includes/class-sp-modules.php:49 modules/sportspress-league-tables.php:65
449
  #: modules/sportspress-league-tables.php:131
450
  #: modules/sportspress-league-tables.php:186
 
451
  msgid "League Tables"
452
  msgstr ""
453
 
@@ -456,21 +456,23 @@ msgstr ""
456
  #: includes/admin/class-sp-admin-taxonomies.php:179
457
  #: includes/admin/importers/class-sp-event-importer.php:32
458
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:52
459
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:112
460
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:58
461
- #: includes/admin/settings/class-sp-settings-events.php:89
462
- #: includes/admin/settings/class-sp-settings-modules.php:32
 
463
  #: includes/admin/settings/class-sp-settings-players.php:25
464
  #: includes/class-sp-post-types.php:435
465
- #: modules/sportspress-individual-mode.php:97
466
  #: modules/sportspress-player-lists.php:200
 
467
  msgid "Players"
468
  msgstr ""
469
 
470
  #: includes/admin/class-sp-admin-permalink-settings.php:34
471
  #: includes/admin/class-sp-admin-sample-data.php:550
472
  #: includes/admin/class-sp-admin-sample-data.php:595
473
- #: includes/class-sp-modules.php:62 modules/sportspress-player-lists.php:65
474
  #: modules/sportspress-player-lists.php:125
475
  #: modules/sportspress-player-lists.php:195
476
  msgid "Player Lists"
@@ -479,13 +481,14 @@ msgstr ""
479
  #: includes/admin/class-sp-admin-permalink-settings.php:35
480
  #: includes/admin/class-sp-admin-sample-data.php:307
481
  #: includes/admin/class-sp-admin-taxonomies.php:191
482
- #: includes/admin/settings/class-sp-settings-events.php:97
483
- #: includes/admin/settings/class-sp-settings-modules.php:33
484
  #: includes/admin/settings/class-sp-settings-staff.php:25
485
  #: includes/class-sp-install.php:193 includes/class-sp-post-types.php:465
486
- #: includes/class-sp-post-types.php:466 includes/sp-core-functions.php:1181
487
  #: includes/widgets/class-sp-widget-staff.php:6
488
- #: includes/widgets/class-sp-widget-staff.php:51 templates/event-staff.php:43
 
489
  msgid "Staff"
490
  msgstr ""
491
 
@@ -496,55 +499,54 @@ msgid ""
496
  msgstr ""
497
 
498
  #: includes/admin/class-sp-admin-post-types.php:74
499
- #: includes/sp-template-hooks.php:350
500
  msgid "Settings saved."
501
  msgstr ""
502
 
503
  #: includes/admin/class-sp-admin-post-types.php:76
504
  #: includes/admin/views/html-admin-config.php:50
505
  #: includes/admin/views/html-admin-config.php:123
506
- #: includes/admin/views/html-admin-config.php:174
507
- #: includes/admin/views/html-admin-config.php:229
508
- #: includes/admin/views/html-admin-config.php:279
509
- #: includes/admin/views/html-admin-config.php:332
510
- #: includes/admin/views/html-admin-overview.php:225
511
- #: includes/sp-template-hooks.php:352
512
  msgid "View All"
513
  msgstr ""
514
 
515
  #: includes/admin/class-sp-admin-post-types.php:81
516
  #: includes/admin/class-sp-admin-post-types.php:84
517
  #: includes/admin/class-sp-admin-post-types.php:89
518
- #: includes/sp-template-hooks.php:358 includes/sp-template-hooks.php:361
519
- #: includes/sp-template-hooks.php:366
520
  msgid "Changes saved."
521
  msgstr ""
522
 
523
  #: includes/admin/class-sp-admin-post-types.php:86
524
  #: includes/admin/class-sp-admin-post-types.php:91
525
  #: includes/admin/class-sp-admin-post-types.php:101
526
- #: includes/sp-template-hooks.php:363 includes/sp-template-hooks.php:368
527
- #: includes/sp-template-hooks.php:378
528
  msgid "Success!"
529
  msgstr ""
530
 
531
  #: includes/admin/class-sp-admin-post-types.php:93
532
  #: includes/admin/class-sp-admin-post-types.php:99
533
  #: includes/admin/class-sp-admin-post-types.php:103
534
- #: includes/sp-template-hooks.php:370 includes/sp-template-hooks.php:376
535
- #: includes/sp-template-hooks.php:380
536
  #, php-format
537
  msgid "Preview %s"
538
  msgstr ""
539
 
540
  #: includes/admin/class-sp-admin-post-types.php:96
541
- #: includes/sp-template-hooks.php:373
542
  #, php-format
543
  msgid "Scheduled for: <b>%1$s</b>."
544
  msgstr ""
545
 
546
  #: includes/admin/class-sp-admin-post-types.php:97
547
- #: includes/sp-template-hooks.php:374
548
  msgid "M j, Y @ G:i"
549
  msgstr ""
550
 
@@ -571,19 +573,19 @@ msgstr ""
571
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:52
572
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:51
573
  #: includes/admin/post-types/class-sp-admin-cpt-team.php:70
574
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:107
575
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php:126
576
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:57
577
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:66
578
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:69
579
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:72
580
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:57
581
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:119
582
- #: includes/admin/settings/class-sp-settings-events.php:219
583
- #: includes/class-sp-league-table.php:393
584
- #: includes/class-sp-player-list.php:454 includes/class-sp-player-list.php:472
585
- #: includes/class-sp-player.php:369 includes/class-sp-player.php:392
586
- #: includes/class-sp-post-types.php:406 includes/sp-core-functions.php:1183
587
  #: includes/widgets/class-sp-widget-countdown.php:59
588
  #: templates/event-results.php:102
589
  msgid "Team"
@@ -642,7 +644,7 @@ msgid "Esports"
642
  msgstr ""
643
 
644
  #: includes/admin/class-sp-admin-sports.php:27
645
- #: includes/admin/settings/class-sp-settings-modules.php:34
646
  msgid "Other"
647
  msgstr ""
648
 
@@ -650,96 +652,96 @@ msgstr ""
650
  msgid "Custom"
651
  msgstr ""
652
 
653
- #: includes/admin/class-sp-admin-sports.php:255
654
  msgid "Baseball"
655
  msgstr ""
656
 
657
- #: includes/admin/class-sp-admin-sports.php:256
658
  msgid "Basketball"
659
  msgstr ""
660
 
661
- #: includes/admin/class-sp-admin-sports.php:257
662
  msgid "Cricket"
663
  msgstr ""
664
 
665
- #: includes/admin/class-sp-admin-sports.php:258
666
  msgid "Darts"
667
  msgstr ""
668
 
669
- #: includes/admin/class-sp-admin-sports.php:259
670
  msgid "Floorball"
671
  msgstr ""
672
 
673
- #: includes/admin/class-sp-admin-sports.php:260
674
  msgid "American Football"
675
  msgstr ""
676
 
677
- #: includes/admin/class-sp-admin-sports.php:261
678
  msgid "Australian Rules Football"
679
  msgstr ""
680
 
681
- #: includes/admin/class-sp-admin-sports.php:262
682
  msgid "Handball"
683
  msgstr ""
684
 
685
- #: includes/admin/class-sp-admin-sports.php:263
686
  msgid "Ice Hockey"
687
  msgstr ""
688
 
689
- #: includes/admin/class-sp-admin-sports.php:264
690
  #: includes/admin/class-sp-admin-welcome.php:338
691
  msgid "Lacrosse"
692
  msgstr ""
693
 
694
- #: includes/admin/class-sp-admin-sports.php:265
695
  msgid "Netball"
696
  msgstr ""
697
 
698
- #: includes/admin/class-sp-admin-sports.php:266
699
  msgid "Rugby League"
700
  msgstr ""
701
 
702
- #: includes/admin/class-sp-admin-sports.php:267
703
  msgid "Rugby Union"
704
  msgstr ""
705
 
706
- #: includes/admin/class-sp-admin-sports.php:268
707
  msgid "Snooker"
708
  msgstr ""
709
 
710
- #: includes/admin/class-sp-admin-sports.php:269
711
  msgid "Soccer (Association Football)"
712
  msgstr ""
713
 
714
- #: includes/admin/class-sp-admin-sports.php:270
715
  msgid "Squash"
716
  msgstr ""
717
 
718
- #: includes/admin/class-sp-admin-sports.php:271
719
  msgid "Table Tennis"
720
  msgstr ""
721
 
722
- #: includes/admin/class-sp-admin-sports.php:272
723
  msgid "Tennis"
724
  msgstr ""
725
 
726
- #: includes/admin/class-sp-admin-sports.php:273
727
  msgid "Volleyball"
728
  msgstr ""
729
 
730
- #: includes/admin/class-sp-admin-sports.php:274
731
  msgid "Water Polo"
732
  msgstr ""
733
 
734
- #: includes/admin/class-sp-admin-sports.php:275
735
  msgid "Dota 2"
736
  msgstr ""
737
 
738
- #: includes/admin/class-sp-admin-sports.php:276
739
  msgid "League of Legends"
740
  msgstr ""
741
 
742
- #: includes/admin/class-sp-admin-sports.php:277
743
  #: includes/admin/class-sp-admin-welcome.php:337
744
  msgid "Counter-Strike: Global Offensive"
745
  msgstr ""
@@ -770,6 +772,7 @@ msgid "About SportsPress"
770
  msgstr ""
771
 
772
  #: includes/admin/class-sp-admin-welcome.php:50
 
773
  msgid "Welcome to SportsPress"
774
  msgstr ""
775
 
@@ -795,12 +798,13 @@ msgstr ""
795
  msgid "%s SportsPress %s has lots of refinements we think you&#8217;ll love."
796
  msgstr ""
797
 
798
- #: includes/admin/class-sp-admin-welcome.php:124 sportspress.php:141
799
  msgid "Docs"
800
  msgstr ""
801
 
802
  #: includes/admin/class-sp-admin-welcome.php:131
803
  #: includes/admin/views/html-notice-install.php:7
 
804
  msgid "Get Started"
805
  msgstr ""
806
 
@@ -827,6 +831,7 @@ msgstr ""
827
 
828
  #: includes/admin/class-sp-admin-welcome.php:196
829
  #: includes/admin/class-sp-admin-welcome.php:283
 
830
  #: includes/admin/settings/class-sp-settings-general.php:62
831
  msgid "Mode"
832
  msgstr ""
@@ -852,21 +857,21 @@ msgid "We&#8217;ve assembled some links to get you started:"
852
  msgstr ""
853
 
854
  #: includes/admin/class-sp-admin-welcome.php:207
855
- #: includes/class-sp-post-types.php:407
856
  msgid "Add New Team"
857
  msgstr ""
858
 
859
  #: includes/admin/class-sp-admin-welcome.php:212
860
- #: includes/class-sp-post-types.php:437
861
  msgid "Add New Player"
862
  msgstr ""
863
 
864
  #: includes/admin/class-sp-admin-welcome.php:217
865
- #: includes/class-sp-post-types.php:373
866
  msgid "Add New Event"
867
  msgstr ""
868
 
869
- #: includes/admin/class-sp-admin-welcome.php:231
870
  msgid "Go to SportsPress Settings"
871
  msgstr ""
872
 
@@ -896,7 +901,7 @@ msgid "Who competes in events?"
896
  msgstr ""
897
 
898
  #: includes/admin/class-sp-admin-welcome.php:299
899
- #: includes/admin/settings/class-sp-settings-modules.php:237
900
  #: includes/admin/views/html-admin-settings.php:15
901
  msgid "Save Changes"
902
  msgstr ""
@@ -936,12 +941,12 @@ msgid ""
936
  "SportsPress</a>."
937
  msgstr ""
938
 
939
- #: includes/admin/class-sp-admin-welcome.php:454
940
  #, php-format
941
  msgid "View %s"
942
  msgstr ""
943
 
944
- #: includes/admin/class-sp-admin.php:106
945
  msgid "Import"
946
  msgstr ""
947
 
@@ -952,8 +957,8 @@ msgstr ""
952
  #: includes/admin/importers/class-sp-event-importer.php:26
953
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:98
954
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:50
955
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:45
956
- #: includes/sp-core-functions.php:1164 templates/event-details.php:20
957
  #: templates/event-list.php:68
958
  msgid "Date"
959
  msgstr ""
@@ -961,7 +966,7 @@ msgstr ""
961
  #: includes/admin/importers/class-sp-event-importer.php:27
962
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:99
963
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:72
964
- #: includes/class-sp-ajax.php:292 includes/sp-core-functions.php:1185
965
  #: templates/event-details.php:20 templates/event-list.php:84
966
  #: templates/event-list.php:99 templates/event-list.php:105
967
  msgid "Time"
@@ -971,22 +976,23 @@ msgstr ""
971
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:51
972
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:103
973
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:103
974
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:92
975
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:87
976
  #: includes/admin/settings/class-sp-settings-events.php:81
977
  #: includes/admin/settings/class-sp-settings-teams.php:80
978
  #: includes/class-sp-ajax.php:293 includes/class-sp-post-types.php:95
979
- #: includes/sp-core-functions.php:1188
980
  #: includes/widgets/class-sp-widget-event-list.php:140
981
  #: templates/event-list.php:124 templates/event-venue.php:37
982
  msgid "Venue"
983
  msgstr ""
984
 
985
  #: includes/admin/importers/class-sp-event-importer.php:31
986
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:96
987
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php:139
988
- #: includes/class-sp-event.php:46 includes/class-sp-post-types.php:224
989
- #: includes/sp-core-functions.php:1170
 
990
  msgid "Outcome"
991
  msgstr ""
992
 
@@ -1026,7 +1032,7 @@ msgstr ""
1026
 
1027
  #: includes/admin/importers/class-sp-event-importer.php:467
1028
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:96
1029
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:115
1030
  msgid "Format"
1031
  msgstr ""
1032
 
@@ -1046,12 +1052,9 @@ msgstr ""
1046
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:49
1047
  #: includes/admin/post-types/class-sp-admin-cpt-table.php:49
1048
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:91
1049
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:62
1050
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:35
1051
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:32
1052
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:61
1053
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:61
1054
- #: includes/class-sp-post-types.php:37 includes/sp-core-functions.php:1168
1055
  #: templates/event-list.php:118 templates/team-details.php:24
1056
  #, fuzzy
1057
  msgid "Competition"
@@ -1068,7 +1071,7 @@ msgstr ""
1068
 
1069
  #: includes/admin/importers/class-sp-event-importer.php:484
1070
  #: includes/admin/importers/class-sp-event-importer.php:499
1071
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:46
1072
  msgid "&mdash; Not set &mdash;"
1073
  msgstr ""
1074
 
@@ -1078,15 +1081,12 @@ msgstr ""
1078
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:50
1079
  #: includes/admin/post-types/class-sp-admin-cpt-table.php:50
1080
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:97
1081
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:77
1082
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:50
1083
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:63
1084
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:47
1085
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:60
1086
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:64
1087
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:64
1088
- #: includes/class-sp-player.php:390 includes/class-sp-post-types.php:66
1089
- #: includes/sp-core-functions.php:1180 templates/event-list.php:121
1090
  #: templates/team-details.php:33
1091
  msgid "Season"
1092
  msgstr ""
@@ -1127,12 +1127,12 @@ msgstr ""
1127
 
1128
  #: includes/admin/importers/class-sp-player-importer.php:26
1129
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:64
1130
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:94
1131
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:61
1132
  #: includes/class-sp-ajax.php:568 includes/class-sp-ajax.php:639
1133
  #: includes/widgets/class-sp-widget-player-gallery.php:96
1134
  #: includes/widgets/class-sp-widget-player-list.php:110
1135
- msgid "Number"
1136
  msgstr ""
1137
 
1138
  #: includes/admin/importers/class-sp-player-importer.php:27
@@ -1143,7 +1143,7 @@ msgstr ""
1143
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:52
1144
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:70
1145
  #: includes/admin/post-types/class-sp-admin-cpt-team.php:51
1146
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:95
1147
  #: includes/class-sp-ajax.php:569 includes/class-sp-ajax.php:640
1148
  #: includes/class-sp-post-types.php:43 includes/class-sp-post-types.php:72
1149
  #: includes/class-sp-post-types.php:101 includes/class-sp-post-types.php:130
@@ -1161,7 +1161,7 @@ msgstr ""
1161
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:78
1162
  #: includes/admin/settings/class-sp-settings-players.php:80
1163
  #: includes/admin/settings/class-sp-settings-staff.php:71
1164
- #: includes/sp-core-functions.php:1169 templates/player-details.php:41
1165
  #: templates/staff-details.php:38
1166
  msgid "Nationality"
1167
  msgstr ""
@@ -1191,6 +1191,7 @@ msgstr ""
1191
 
1192
  #: includes/admin/importers/class-sp-staff-importer.php:27
1193
  #: includes/class-sp-post-types.php:152 includes/class-sp-post-types.php:166
 
1194
  msgid "Jobs"
1195
  msgstr ""
1196
 
@@ -1284,40 +1285,36 @@ msgstr ""
1284
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:69
1285
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:72
1286
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:78
1287
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:66
1288
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:81
1289
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:96
1290
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:111
1291
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:36
1292
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:49
1293
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:41
1294
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:56
1295
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:72
1296
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:38
1297
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:53
1298
- #: includes/admin/views/html-admin-overview.php:79
1299
  #: includes/class-sp-ajax.php:194 includes/class-sp-ajax.php:264
1300
  #: includes/class-sp-ajax.php:355 includes/class-sp-post-types.php:38
1301
  #: includes/class-sp-post-types.php:67 includes/class-sp-post-types.php:96
1302
  #: includes/class-sp-post-types.php:125 includes/class-sp-post-types.php:154
1303
- #: includes/sp-core-functions.php:449 includes/sp-core-functions.php:480
 
1304
  #: includes/widgets/class-sp-widget-countdown.php:66
1305
  #: includes/widgets/class-sp-widget-event-blocks.php:75
1306
  #: includes/widgets/class-sp-widget-event-calendar.php:69
1307
  #: includes/widgets/class-sp-widget-event-list.php:78
 
1308
  msgid "All"
1309
  msgstr ""
1310
 
1311
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:87
1312
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:101
1313
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:97
1314
- #: includes/sp-core-functions.php:1162 templates/player-details.php:61
1315
  #: templates/staff-details.php:42
1316
  msgid "Current Team"
1317
  msgstr ""
1318
 
1319
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:115
1320
- #: includes/admin/post-types/class-sp-admin-cpt-event.php:212
1321
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:104
1322
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:150
1323
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:134
@@ -1337,7 +1334,7 @@ msgstr ""
1337
  "#-#-#-#-# 10extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
1338
 
1339
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:124
1340
- #: includes/admin/post-types/class-sp-admin-cpt-event.php:221
1341
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:113
1342
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:159
1343
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:143
@@ -1347,7 +1344,7 @@ msgid "Show all seasons"
1347
  msgstr ""
1348
 
1349
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:135
1350
- #: includes/admin/post-types/class-sp-admin-cpt-event.php:204
1351
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:124
1352
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:142
1353
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:126
@@ -1363,10 +1360,10 @@ msgstr ""
1363
  #: includes/admin/post-types/class-sp-admin-cpt-statistic.php:43
1364
  #: includes/admin/views/html-admin-config.php:26
1365
  #: includes/admin/views/html-admin-config.php:85
1366
- #: includes/admin/views/html-admin-config.php:153
1367
- #: includes/admin/views/html-admin-config.php:203
1368
- #: includes/admin/views/html-admin-config.php:259
1369
- #: includes/admin/views/html-admin-config.php:308
1370
  msgid "Label"
1371
  msgstr ""
1372
 
@@ -1374,18 +1371,18 @@ msgstr ""
1374
  #: includes/admin/post-types/class-sp-admin-cpt-statistic.php:44
1375
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:34
1376
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-statistic-details.php:31
1377
- #: includes/admin/views/html-admin-config.php:204
1378
- #: includes/admin/views/html-admin-config.php:309
1379
- #: includes/sp-template-hooks.php:147
1380
  msgid "Key"
1381
  msgstr ""
1382
 
1383
  #: includes/admin/post-types/class-sp-admin-cpt-column.php:45
1384
  #: includes/admin/post-types/class-sp-admin-cpt-statistic.php:45
1385
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:84
1386
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:100
1387
- #: includes/admin/views/html-admin-config.php:205
1388
- #: includes/admin/views/html-admin-config.php:310
1389
  msgid "Equation"
1390
  msgstr ""
1391
 
@@ -1393,16 +1390,16 @@ msgstr ""
1393
  #: includes/admin/post-types/class-sp-admin-cpt-statistic.php:46
1394
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:39
1395
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-statistic-details.php:36
1396
- #: includes/admin/views/html-admin-config.php:206
1397
- #: includes/admin/views/html-admin-config.php:311
1398
  msgid "Rounding"
1399
  msgstr ""
1400
 
1401
  #: includes/admin/post-types/class-sp-admin-cpt-column.php:47
1402
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:122
1403
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:43
1404
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:105
1405
- #: includes/admin/views/html-admin-config.php:207
1406
  msgid "Sort Order"
1407
  msgstr ""
1408
 
@@ -1414,29 +1411,29 @@ msgstr ""
1414
  #: includes/admin/post-types/class-sp-admin-cpt-statistic.php:47
1415
  #: includes/admin/views/html-admin-config.php:30
1416
  #: includes/admin/views/html-admin-config.php:87
1417
- #: includes/admin/views/html-admin-config.php:155
1418
- #: includes/admin/views/html-admin-config.php:208
1419
- #: includes/admin/views/html-admin-config.php:261
1420
- #: includes/admin/views/html-admin-config.php:312
1421
- #: includes/sp-template-hooks.php:141 modules/sportspress-calendars.php:161
1422
  #: modules/sportspress-league-tables.php:159
1423
  #: modules/sportspress-player-lists.php:167
1424
  msgid "Description"
1425
  msgstr ""
1426
 
1427
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:55
1428
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:50
1429
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php:175
1430
  #: includes/class-sp-ajax.php:63
1431
  #: includes/widgets/class-sp-widget-countdown.php:83
1432
  msgid "(Auto)"
1433
  msgstr ""
1434
 
1435
- #: includes/admin/post-types/class-sp-admin-cpt-event.php:170
1436
  msgid "Edit Results"
1437
  msgstr ""
1438
 
1439
- #: includes/admin/post-types/class-sp-admin-cpt-event.php:172
1440
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-video.php:33
1441
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:99
1442
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:88
@@ -1449,7 +1446,7 @@ msgstr ""
1449
  msgid "Cancel"
1450
  msgstr ""
1451
 
1452
- #: includes/admin/post-types/class-sp-admin-cpt-event.php:174
1453
  #: includes/class-sp-post-types.php:41 includes/class-sp-post-types.php:70
1454
  #: includes/class-sp-post-types.php:99 includes/class-sp-post-types.php:128
1455
  #: includes/class-sp-post-types.php:157
@@ -1465,15 +1462,15 @@ msgstr ""
1465
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-performance-details.php:27
1466
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-result-details.php:27
1467
  #: includes/admin/views/html-admin-config.php:27
1468
- #: includes/admin/views/html-admin-config.php:154
1469
- #: includes/admin/views/html-admin-config.php:260
1470
- #: includes/sp-template-hooks.php:147
1471
  msgid "Variable"
1472
  msgstr ""
1473
 
1474
  #: includes/admin/post-types/class-sp-admin-cpt-performance.php:43
1475
- #: includes/admin/views/html-admin-config.php:152
1476
- #: includes/sp-template-hooks.php:150
1477
  msgid "Icon"
1478
  msgstr ""
1479
 
@@ -1490,7 +1487,7 @@ msgstr ""
1490
 
1491
  #: includes/admin/post-types/class-sp-admin-cpt-team.php:63
1492
  #: includes/admin/settings/class-sp-settings-teams.php:56
1493
- #: includes/sp-template-hooks.php:192
1494
  msgid "Logo"
1495
  msgstr ""
1496
 
@@ -1509,56 +1506,61 @@ msgstr ""
1509
  msgid "Uploaded to this %s"
1510
  msgstr ""
1511
 
1512
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:109
1513
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:173
1514
  msgid "Shortcodes"
1515
  msgstr ""
1516
 
1517
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:136
 
1518
  #: includes/admin/settings/class-sp-settings-status.php:273
1519
  #: includes/admin/views/html-admin-config.php:74
1520
  #: includes/admin/views/html-admin-config.php:78
 
1521
  #: includes/admin/views/html-admin-page-status.php:237
1522
- #: includes/class-sp-post-types.php:193 includes/sp-core-functions.php:1167
1523
  #: templates/event-results.php:98
1524
  msgid "Event Results"
1525
  msgstr ""
1526
 
1527
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:143
1528
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php:25
1529
- #: includes/admin/settings/class-sp-settings-events.php:128
 
1530
  #: includes/admin/settings/class-sp-settings-status.php:283
1531
- #: includes/admin/views/html-admin-config.php:145
1532
  #: includes/admin/views/html-admin-page-status.php:247
1533
  #: includes/class-sp-post-types.php:313 includes/class-sp-post-types.php:314
1534
  msgid "Player Performance"
1535
  msgstr ""
1536
 
1537
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:150
1538
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:109
1539
- #: includes/class-sp-ajax.php:294 includes/sp-core-functions.php:1160
1540
  #: includes/widgets/class-sp-widget-event-list.php:141
1541
  #: templates/event-list.php:127
1542
  msgid "Article"
1543
  msgstr ""
1544
 
1545
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:165
1546
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:207
1547
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:228
1548
  msgid "Profile"
1549
  msgstr ""
1550
 
1551
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:179
 
 
1552
  #: modules/sportspress-player-lists.php:146
1553
  msgid "Columns"
1554
  msgstr ""
1555
 
1556
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:193
1557
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-columns.php:26
1558
  msgid "Metrics"
1559
  msgstr ""
1560
 
1561
- #: includes/admin/post-types/class-sp-admin-meta-boxes.php:215
1562
  #: includes/class-sp-ajax.php:84 includes/class-sp-ajax.php:113
1563
  #: includes/class-sp-ajax.php:142 includes/class-sp-ajax.php:171
1564
  #: includes/class-sp-ajax.php:219 includes/class-sp-ajax.php:310
@@ -1577,19 +1579,19 @@ msgid "Away"
1577
  msgstr ""
1578
 
1579
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:74
1580
- #: includes/sp-core-functions.php:1186
1581
  #: includes/widgets/class-sp-widget-event-list.php:139
1582
  #: templates/event-list.php:113
1583
  msgid "Time/Results"
1584
  msgstr ""
1585
 
1586
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:201
1587
- #: includes/sp-core-functions.php:1179 templates/event-list.php:342
1588
  msgid "Recap"
1589
  msgstr ""
1590
 
1591
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:203
1592
- #: includes/sp-core-functions.php:1177 templates/event-list.php:344
1593
  msgid "Preview"
1594
  msgstr ""
1595
 
@@ -1600,11 +1602,10 @@ msgstr ""
1600
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:97
1601
  #: includes/admin/views/html-admin-config.php:45
1602
  #: includes/admin/views/html-admin-config.php:117
1603
- #: includes/admin/views/html-admin-config.php:169
1604
- #: includes/admin/views/html-admin-config.php:224
1605
- #: includes/admin/views/html-admin-config.php:274
1606
- #: includes/admin/views/html-admin-config.php:327
1607
- #: includes/admin/views/html-admin-overview.php:282
1608
  #: includes/class-sp-post-types.php:47 includes/class-sp-post-types.php:76
1609
  #: includes/class-sp-post-types.php:105 includes/class-sp-post-types.php:134
1610
  #: includes/class-sp-post-types.php:163 includes/class-sp-post-types.php:200
@@ -1617,11 +1618,12 @@ msgstr ""
1617
  #: includes/class-sp-post-types.php:379 includes/class-sp-post-types.php:412
1618
  #: includes/class-sp-post-types.php:413 includes/class-sp-post-types.php:442
1619
  #: includes/class-sp-post-types.php:443 includes/class-sp-post-types.php:472
1620
- #: includes/class-sp-post-types.php:473 includes/sp-core-functions.php:831
1621
- #: includes/sp-core-functions.php:871 modules/sportspress-calendars.php:72
1622
  #: modules/sportspress-calendars.php:73
1623
  #: modules/sportspress-league-tables.php:72
1624
  #: modules/sportspress-league-tables.php:73
 
1625
  #: modules/sportspress-player-lists.php:72
1626
  #: modules/sportspress-player-lists.php:73
1627
  msgid "No results found."
@@ -1653,14 +1655,14 @@ msgstr ""
1653
  msgid "Select %s"
1654
  msgstr ""
1655
 
1656
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:33
1657
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:92
1658
  msgid "Status"
1659
  msgstr ""
1660
 
1661
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:125
1662
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:59
1663
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:108
1664
  #: includes/class-sp-ajax.php:281 includes/class-sp-ajax.php:372
1665
  #: includes/class-sp-ajax.php:586 includes/class-sp-ajax.php:657
1666
  #: includes/widgets/class-sp-widget-event-blocks.php:127
@@ -1670,9 +1672,9 @@ msgstr ""
1670
  msgid "Ascending"
1671
  msgstr ""
1672
 
1673
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:126
1674
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:59
1675
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:109
1676
  #: includes/class-sp-ajax.php:282 includes/class-sp-ajax.php:373
1677
  #: includes/class-sp-ajax.php:587 includes/class-sp-ajax.php:658
1678
  #: includes/widgets/class-sp-widget-event-blocks.php:128
@@ -1684,7 +1686,7 @@ msgstr ""
1684
 
1685
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-feeds.php:45
1686
  #: includes/admin/settings/class-sp-settings-events.php:48
1687
- #: includes/admin/settings/class-sp-settings-general.php:306
1688
  #: includes/admin/settings/class-sp-settings-players.php:47
1689
  #: includes/admin/settings/class-sp-settings-staff.php:46
1690
  #: includes/admin/settings/class-sp-settings-teams.php:47
@@ -1708,7 +1710,7 @@ msgstr ""
1708
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php:34
1709
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php:37
1710
  #: includes/class-sp-ajax.php:570 includes/class-sp-ajax.php:641
1711
- #: includes/sp-core-functions.php:1173
1712
  #: includes/widgets/class-sp-widget-player-gallery.php:98
1713
  #: includes/widgets/class-sp-widget-player-list.php:112
1714
  msgid "Played"
@@ -1756,36 +1758,45 @@ msgid "Constants"
1756
  msgstr ""
1757
 
1758
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:26
1759
- #: includes/admin/settings/class-sp-settings-events.php:169
1760
  msgid "Full Time"
1761
  msgstr ""
1762
 
1763
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:72
1764
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:75
1765
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:86
1766
- #: includes/class-sp-event.php:101 includes/class-sp-post-types.php:124
1767
- #: includes/sp-core-functions.php:1176 templates/player-details.php:50
 
1768
  msgid "Position"
1769
  msgstr ""
1770
 
1771
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:105
 
 
 
 
 
 
1772
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:98
1773
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:104
1774
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:38
1775
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:76
1776
- #: includes/admin/settings/class-sp-settings-events.php:105
1777
- #: includes/class-sp-player.php:87 includes/class-sp-player.php:341
1778
- #: includes/class-sp-team.php:65 includes/sp-core-functions.php:392
1779
- #: includes/sp-core-functions.php:396 includes/sp-core-functions.php:1187
1780
- #: templates/event-performance.php:202 templates/event-performance.php:363
 
 
1781
  msgid "Total"
1782
  msgstr ""
1783
 
1784
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:200
1785
  msgid "Starting Lineup"
1786
  msgstr ""
1787
 
1788
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:201
1789
  msgid "Substitute"
1790
  msgstr ""
1791
 
@@ -1805,7 +1816,7 @@ msgstr ""
1805
 
1806
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:43
1807
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:49
1808
- #: includes/admin/settings/class-sp-settings-events.php:133
1809
  msgid "Values"
1810
  msgstr ""
1811
 
@@ -1815,7 +1826,7 @@ msgid "Adjustments"
1815
  msgstr ""
1816
 
1817
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:52
1818
- #: includes/sp-core-functions.php:1178 templates/player-list.php:94
1819
  msgid "Rank"
1820
  msgstr ""
1821
 
@@ -1823,10 +1834,10 @@ msgstr ""
1823
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:84
1824
  #: includes/admin/views/html-admin-config.php:41
1825
  #: includes/admin/views/html-admin-config.php:113
1826
- #: includes/admin/views/html-admin-config.php:165
1827
- #: includes/admin/views/html-admin-config.php:220
1828
- #: includes/admin/views/html-admin-config.php:270
1829
- #: includes/admin/views/html-admin-config.php:323
1830
  msgid "Edit"
1831
  msgstr ""
1832
 
@@ -1841,18 +1852,20 @@ msgstr ""
1841
  msgid "Data"
1842
  msgstr ""
1843
 
1844
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:82
1845
  msgid "Grouping"
1846
  msgstr ""
1847
 
1848
- #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:89
1849
  msgid "Sort by"
1850
  msgstr ""
1851
 
1852
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:30
1853
- #: includes/admin/settings/class-sp-settings-general.php:302
 
1854
  #: includes/admin/views/html-admin-config.php:84
1855
- #: includes/sp-core-functions.php:360
 
1856
  msgid "Primary"
1857
  msgstr ""
1858
 
@@ -1876,39 +1889,38 @@ msgid "&mdash;"
1876
  msgstr ""
1877
 
1878
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:47
1879
- #: includes/sp-core-functions.php:364
1880
  #, php-format
1881
  msgid "Most %s"
1882
  msgstr ""
1883
 
1884
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:48
1885
- #: includes/sp-core-functions.php:365
1886
  #, php-format
1887
  msgid "Least %s"
1888
  msgstr ""
1889
 
1890
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:49
1891
- #: includes/sp-core-functions.php:366
1892
  #, php-format
1893
  msgid "Equal %s"
1894
  msgstr ""
1895
 
1896
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:92
1897
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:90
1898
- #: includes/sp-core-functions.php:1163
1899
  msgid "Current Teams"
1900
  msgstr ""
1901
 
1902
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:107
1903
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:105
1904
- #: includes/sp-core-functions.php:1171 templates/player-details.php:72
1905
  #: templates/staff-details.php:49
1906
  msgid "Past Teams"
1907
  msgstr ""
1908
 
1909
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:39
1910
- #: includes/admin/settings/class-sp-settings-players.php:72
1911
- #: includes/sp-core-functions.php:1161 templates/player-statistics.php:84
1912
  msgid "Career Total"
1913
  msgstr ""
1914
 
@@ -1919,7 +1931,7 @@ msgstr ""
1919
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:98
1920
  #: includes/admin/settings/class-sp-settings-teams.php:72
1921
  #: includes/admin/settings/class-sp-settings-teams.php:96
1922
- #: includes/sp-core-functions.php:340 templates/team-link.php:22
1923
  msgid "Visit Site"
1924
  msgstr ""
1925
 
@@ -1944,39 +1956,36 @@ msgstr ""
1944
  msgid "Logos"
1945
  msgstr ""
1946
 
1947
- #: includes/admin/settings/class-sp-settings-events.php:113
1948
  #: modules/sportspress-calendars.php:244 modules/sportspress-calendars.php:305
1949
  #: modules/sportspress-league-tables.php:207
1950
  #: modules/sportspress-player-lists.php:216
1951
  msgid "Limit"
1952
  msgstr ""
1953
 
1954
- #: includes/admin/settings/class-sp-settings-events.php:117
1955
  #: modules/sportspress-league-tables.php:211
1956
  msgid "teams"
1957
  msgstr ""
1958
 
1959
- #: includes/admin/settings/class-sp-settings-events.php:134
1960
- msgid "Icons"
1961
- msgstr ""
1962
-
1963
- #: includes/admin/settings/class-sp-settings-events.php:140
1964
  msgid "Display maps"
1965
  msgstr ""
1966
 
1967
- #: includes/admin/settings/class-sp-settings-events.php:148
1968
  #: includes/admin/settings/class-sp-settings-teams.php:81
1969
  msgid "Link venues"
1970
  msgstr ""
1971
 
1972
- #: includes/admin/settings/class-sp-settings-events.php:156
1973
  msgid "Google Maps"
1974
  msgstr ""
1975
 
1976
- #: includes/admin/settings/class-sp-settings-events.php:161
1977
  #: includes/admin/settings/class-sp-settings-general.php:94
1978
  #: includes/admin/settings/class-sp-settings-status.php:101
1979
  #: includes/admin/views/html-admin-config.php:101
 
1980
  #: includes/admin/views/html-admin-page-status.php:65
1981
  #: includes/class-sp-ajax.php:206 includes/class-sp-ajax.php:253
1982
  #: includes/class-sp-ajax.php:263 includes/class-sp-ajax.php:280
@@ -1997,37 +2006,85 @@ msgstr ""
1997
  msgid "Default"
1998
  msgstr ""
1999
 
2000
- #: includes/admin/settings/class-sp-settings-events.php:162
2001
  msgid "Satellite"
2002
  msgstr ""
2003
 
2004
- #: includes/admin/settings/class-sp-settings-events.php:163
2005
  msgid "Hybrid"
2006
  msgstr ""
2007
 
2008
- #: includes/admin/settings/class-sp-settings-events.php:164
2009
  msgid "Terrain"
2010
  msgstr ""
2011
 
2012
- #: includes/admin/settings/class-sp-settings-events.php:182
2013
  msgid "Comments"
2014
  msgstr ""
2015
 
2016
- #: includes/admin/settings/class-sp-settings-events.php:183
2017
  msgid "Allow people to post comments on new articles"
2018
  msgstr ""
2019
 
2020
- #: includes/admin/settings/class-sp-settings-events.php:224
2021
- #: includes/admin/settings/class-sp-settings-events.php:228
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2022
  msgid "Delimiter"
2023
  msgstr ""
2024
 
2025
- #: includes/admin/settings/class-sp-settings-events.php:233
2026
  msgid "Custom:"
2027
  msgstr ""
2028
 
2029
  #: includes/admin/settings/class-sp-settings-general.php:25
2030
- #: includes/admin/settings/class-sp-settings-modules.php:29
2031
  msgid "General"
2032
  msgstr ""
2033
 
@@ -2099,121 +2156,141 @@ msgstr ""
2099
  msgid "Header Offset"
2100
  msgstr ""
2101
 
2102
- #: includes/admin/settings/class-sp-settings-general.php:287
2103
  msgid "Frontend Styles"
2104
  msgstr ""
2105
 
2106
- #: includes/admin/settings/class-sp-settings-general.php:303
 
 
 
 
2107
  msgid "Background"
2108
  msgstr ""
2109
 
2110
- #: includes/admin/settings/class-sp-settings-general.php:304
2111
  #: includes/admin/settings/class-sp-settings-text.php:25
2112
  #: includes/admin/settings/class-sp-settings-text.php:40
2113
  msgid "Text"
2114
  msgstr ""
2115
 
2116
- #: includes/admin/settings/class-sp-settings-general.php:305
2117
  msgid "Heading"
2118
  msgstr ""
2119
 
2120
- #: includes/admin/settings/class-sp-settings-general.php:312
2121
  msgid "Enable"
2122
  msgstr ""
2123
 
2124
- #: includes/admin/settings/class-sp-settings-modules.php:25
2125
- #: includes/admin/settings/class-sp-settings-modules.php:50
2126
- #: includes/admin/settings/class-sp-settings-modules.php:207
2127
  msgid "Modules"
2128
  msgstr ""
2129
 
2130
- #: includes/admin/settings/class-sp-settings-modules.php:58
2131
  msgid "SportsPress Pro"
2132
  msgstr ""
2133
 
2134
- #: includes/admin/settings/class-sp-settings-modules.php:63
2135
  msgid ""
2136
  "Get SportsPress Pro to get access to all modules. You can upgrade any time "
2137
  "without losing any of your data."
2138
  msgstr ""
2139
 
2140
- #: includes/admin/settings/class-sp-settings-modules.php:65
2141
  msgid "Premium"
2142
  msgstr ""
2143
 
2144
- #: includes/admin/settings/class-sp-settings-modules.php:66
2145
  msgid "Upgrade Now"
2146
  msgstr ""
2147
 
2148
- #: includes/admin/settings/class-sp-settings-modules.php:77
2149
  msgid "SportsPress TV"
2150
  msgstr ""
2151
 
2152
- #: includes/admin/settings/class-sp-settings-modules.php:82
2153
  msgid ""
2154
- "Offer premium news & highlights from leading globals sports. SportsPress TV "
2155
  "will keep your visitors entertained for hours."
2156
  msgstr ""
2157
 
2158
- #: includes/admin/settings/class-sp-settings-modules.php:84
 
2159
  msgid "Free"
2160
  msgstr ""
2161
 
2162
- #: includes/admin/settings/class-sp-settings-modules.php:85
 
 
2163
  msgid "Install Now"
2164
  msgstr ""
2165
 
2166
- #: includes/admin/settings/class-sp-settings-modules.php:96
2167
  msgid "Twitter Module"
2168
  msgstr ""
2169
 
2170
- #: includes/admin/settings/class-sp-settings-modules.php:105
2171
  msgid "Follow [link]@ThemeBoy[/link] on Twitter."
2172
  msgstr ""
2173
 
2174
- #: includes/admin/settings/class-sp-settings-modules.php:110
2175
  msgid ""
2176
  "Help spread the word by tweeting with [link]#SportsPress[/link] and get the "
2177
  "Twitter module for free."
2178
  msgstr ""
2179
 
2180
- #: includes/admin/settings/class-sp-settings-modules.php:115
2181
- #: includes/admin/settings/class-sp-settings-modules.php:143
2182
- msgid "[link]Email us[/link] for the download link."
2183
  msgstr ""
2184
 
2185
- #: includes/admin/settings/class-sp-settings-modules.php:118
2186
  msgid "Free with tweet"
2187
  msgstr ""
2188
 
2189
- #: includes/admin/settings/class-sp-settings-modules.php:119
2190
  msgid "Tweet"
2191
  msgstr ""
2192
 
2193
- #: includes/admin/settings/class-sp-settings-modules.php:130
2194
  msgid "Birthdays Module"
2195
  msgstr ""
2196
 
2197
- #: includes/admin/settings/class-sp-settings-modules.php:138
2198
- #: includes/class-sp-modules.php:73
2199
  msgid ""
2200
  "Add your [stars] on [link]wordpress.org[/link] and get the Birthdays module "
2201
  "for free."
2202
  msgstr ""
2203
 
2204
- #: includes/admin/settings/class-sp-settings-modules.php:146
2205
  msgid "Free with review"
2206
  msgstr ""
2207
 
2208
- #: includes/admin/settings/class-sp-settings-modules.php:147
2209
  msgid "Post Review"
2210
  msgstr ""
2211
 
2212
- #: includes/admin/settings/class-sp-settings-modules.php:157
2213
- msgid "Need Help?"
 
 
 
 
 
 
 
 
 
2214
  msgstr ""
2215
 
2216
- #: includes/admin/settings/class-sp-settings-modules.php:162
 
 
 
 
2217
  #, fuzzy
2218
  msgid "Documentation"
2219
  msgstr ""
@@ -2227,57 +2304,59 @@ msgstr ""
2227
  "#-#-#-#-# 9extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2228
  "#-#-#-#-# 10extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2229
 
2230
- #: includes/admin/settings/class-sp-settings-modules.php:164
2231
  msgid "Getting Started"
2232
  msgstr ""
2233
 
2234
- #: includes/admin/settings/class-sp-settings-modules.php:165
2235
- msgid "Roles and Capabilities"
 
2236
  msgstr ""
2237
 
2238
- #: includes/admin/settings/class-sp-settings-modules.php:166
2239
- #: includes/admin/views/html-notice-theme-support.php:7
2240
- msgid "Theme Integration Guide"
2241
  msgstr ""
2242
 
2243
- #: includes/admin/settings/class-sp-settings-modules.php:168
2244
- msgid "Support"
2245
  msgstr ""
2246
 
2247
- #: includes/admin/settings/class-sp-settings-modules.php:170
2248
- msgid "Plugin Forums"
2249
  msgstr ""
2250
 
2251
- #: includes/admin/settings/class-sp-settings-modules.php:172
2252
- #: includes/admin/settings/class-sp-settings-modules.php:174
2253
  msgid "Premium Support"
2254
  msgstr ""
2255
 
2256
- #: includes/admin/settings/class-sp-settings-modules.php:174
2257
- #: includes/class-sp-modules.php:42 includes/class-sp-modules.php:55
2258
- #: includes/class-sp-modules.php:82 includes/class-sp-modules.php:99
2259
- #: includes/class-sp-modules.php:106 includes/class-sp-modules.php:113
2260
- #: includes/class-sp-modules.php:120
2261
  msgid "Upgrade to Pro"
2262
  msgstr ""
2263
 
2264
- #: includes/admin/settings/class-sp-settings-modules.php:186
2265
- msgid "Current Theme"
2266
  msgstr ""
2267
 
2268
- #: includes/admin/settings/class-sp-settings-modules.php:192
2269
- #: includes/admin/views/html-notice-theme-support.php:5
2270
- msgid ""
2271
- "<strong>Your theme does not declare SportsPress support</strong> &#8211; if "
2272
- "you encounter layout issues please read our integration guide or choose a "
2273
- "SportsPress theme :)"
2274
  msgstr ""
2275
 
2276
- #: includes/admin/settings/class-sp-settings-modules.php:194
2277
- msgid "Need a Better Theme?"
2278
  msgstr ""
2279
 
2280
- #: includes/admin/settings/class-sp-settings-modules.php:220
 
 
 
 
 
 
 
 
2281
  msgid "Learn More"
2282
  msgstr ""
2283
 
@@ -2291,7 +2370,7 @@ msgstr ""
2291
 
2292
  #: includes/admin/settings/class-sp-settings-players.php:56
2293
  #: includes/admin/settings/class-sp-settings-staff.php:55
2294
- #: includes/sp-template-hooks.php:175
2295
  msgid "Photo"
2296
  msgstr ""
2297
 
@@ -2534,7 +2613,7 @@ msgid "Event Outcomes"
2534
  msgstr ""
2535
 
2536
  #: includes/admin/settings/class-sp-settings-status.php:293
2537
- #: includes/admin/views/html-admin-config.php:196
2538
  #: includes/admin/views/html-admin-page-status.php:257
2539
  #: includes/class-sp-post-types.php:253
2540
  #: modules/sportspress-league-tables.php:124
@@ -2542,14 +2621,14 @@ msgid "Table Columns"
2542
  msgstr ""
2543
 
2544
  #: includes/admin/settings/class-sp-settings-status.php:305
2545
- #: includes/admin/views/html-admin-config.php:252
2546
  #: includes/admin/views/html-admin-page-status.php:267
2547
  #: includes/class-sp-post-types.php:283
2548
  msgid "Player Metrics"
2549
  msgstr ""
2550
 
2551
  #: includes/admin/settings/class-sp-settings-status.php:315
2552
- #: includes/admin/views/html-admin-config.php:301
2553
  #: includes/admin/views/html-admin-page-status.php:277
2554
  #: includes/class-sp-post-types.php:343
2555
  msgid "Player Statistics"
@@ -2627,7 +2706,7 @@ msgstr ""
2627
 
2628
  #: includes/admin/views/html-admin-config.php:20
2629
  #: includes/admin/views/html-admin-config.php:75
2630
- #: includes/admin/views/html-admin-config.php:146
2631
  msgid "Used for events."
2632
  msgstr ""
2633
 
@@ -2636,16 +2715,17 @@ msgid "Variables"
2636
  msgstr ""
2637
 
2638
  #: includes/admin/views/html-admin-config.php:99
 
2639
  #, php-format
2640
  msgid "Default (%s)"
2641
  msgstr ""
2642
 
2643
- #: includes/admin/views/html-admin-config.php:197
2644
  msgid "Used for league tables."
2645
  msgstr ""
2646
 
2647
- #: includes/admin/views/html-admin-config.php:253
2648
- #: includes/admin/views/html-admin-config.php:302
2649
  msgid "Used for player lists."
2650
  msgstr ""
2651
 
@@ -2656,7 +2736,7 @@ msgstr ""
2656
 
2657
  #: includes/admin/views/html-notice-install.php:8
2658
  #: includes/admin/views/html-notice-template-check.php:6
2659
- #: includes/admin/views/html-notice-theme-support.php:8
2660
  msgid "Hide this notice"
2661
  msgstr ""
2662
 
@@ -2669,6 +2749,17 @@ msgid ""
2669
  "See the system report for full details."
2670
  msgstr ""
2671
 
 
 
 
 
 
 
 
 
 
 
 
2672
  #: includes/class-sp-ajax.php:57 includes/class-sp-ajax.php:101
2673
  #: includes/class-sp-ajax.php:130 includes/class-sp-ajax.php:159
2674
  #: includes/class-sp-ajax.php:188 includes/class-sp-ajax.php:236
@@ -2744,12 +2835,12 @@ msgid "Date:"
2744
  msgstr ""
2745
 
2746
  #: includes/class-sp-ajax.php:265 includes/class-sp-ajax.php:356
2747
- #: includes/sp-core-functions.php:481
2748
  msgid "This week"
2749
  msgstr ""
2750
 
2751
  #: includes/class-sp-ajax.php:266 includes/class-sp-ajax.php:357
2752
- #: includes/sp-core-functions.php:482
2753
  msgid "Today"
2754
  msgstr ""
2755
 
@@ -3752,69 +3843,58 @@ msgstr ""
3752
  msgid "What's new:"
3753
  msgstr ""
3754
 
3755
- #: includes/class-sp-league-table.php:393 includes/sp-core-functions.php:1175
3756
  #: templates/league-table.php:52
3757
  msgid "Pos"
3758
  msgstr ""
3759
 
3760
  #: includes/class-sp-modules.php:32
3761
- msgid "Videos"
3762
- msgstr ""
3763
-
3764
- #: includes/class-sp-modules.php:36 modules/sportspress-countdowns.php:80
3765
- msgid "Countdowns"
3766
- msgstr ""
3767
-
3768
- #: includes/class-sp-modules.php:40
3769
  msgid "Tournaments"
3770
  msgstr ""
3771
 
3772
- #: includes/class-sp-modules.php:53
3773
  msgid "Team Colors"
3774
  msgstr ""
3775
 
3776
- #: includes/class-sp-modules.php:66
3777
  msgid "Birthdays"
3778
  msgstr ""
3779
 
3780
- #: includes/class-sp-modules.php:68
3781
  msgid "Review on WP.org"
3782
  msgstr ""
3783
 
3784
- #: includes/class-sp-modules.php:80
3785
  msgid "Directories"
3786
  msgstr ""
3787
 
3788
- #: includes/class-sp-modules.php:89
3789
- msgid "Twitter"
 
3790
  msgstr ""
3791
 
3792
- #: includes/class-sp-modules.php:91
3793
  msgid "Tweet #SportsPress"
3794
  msgstr ""
3795
 
3796
- #: includes/class-sp-modules.php:93
3797
  msgid ""
3798
  "Help spread the word by tweeting with #SportsPress and get the Twitter "
3799
  "module for free."
3800
  msgstr ""
3801
 
3802
- #: includes/class-sp-modules.php:97
3803
  msgid "Branding"
3804
  msgstr ""
3805
 
3806
- #: includes/class-sp-modules.php:104
3807
  msgid "League Menu"
3808
  msgstr ""
3809
 
3810
- #: includes/class-sp-modules.php:111
3811
  msgid "Sponsors"
3812
  msgstr ""
3813
 
3814
- #: includes/class-sp-modules.php:118
3815
- msgid "Multisite"
3816
- msgstr ""
3817
-
3818
  #: includes/class-sp-post-types.php:39
3819
  msgid "Edit Competition"
3820
  msgstr ""
@@ -3944,7 +4024,7 @@ msgstr ""
3944
  msgid "Edit Statistic"
3945
  msgstr ""
3946
 
3947
- #: includes/class-sp-post-types.php:374
3948
  msgid "Edit Event"
3949
  msgstr ""
3950
 
@@ -3968,7 +4048,7 @@ msgstr ""
3968
  msgid "View Player"
3969
  msgstr ""
3970
 
3971
- #: includes/class-sp-post-types.php:467
3972
  msgid "Add New Staff"
3973
  msgstr ""
3974
 
@@ -3976,112 +4056,112 @@ msgstr ""
3976
  msgid "Edit Staff"
3977
  msgstr ""
3978
 
3979
- #: includes/sp-core-functions.php:392
3980
  msgid "Average"
3981
  msgstr ""
3982
 
3983
- #: includes/sp-core-functions.php:450
3984
  msgid "Published"
3985
  msgstr ""
3986
 
3987
- #: includes/sp-core-functions.php:451
3988
  msgid "Scheduled"
3989
  msgstr ""
3990
 
3991
- #: includes/sp-core-functions.php:483
3992
  msgid "Date range:"
3993
  msgstr ""
3994
 
3995
- #: includes/sp-core-functions.php:754 includes/sp-core-functions.php:894
3996
  msgid "(no title)"
3997
  msgstr ""
3998
 
3999
- #: includes/sp-core-functions.php:771 includes/sp-core-functions.php:851
4000
  msgid "Select All"
4001
  msgstr ""
4002
 
4003
- #: includes/sp-core-functions.php:832 includes/sp-core-functions.php:835
4004
  msgid "Show all"
4005
  msgstr ""
4006
 
4007
- #: includes/sp-core-functions.php:1182
4008
  msgid "Substitutes"
4009
  msgstr ""
4010
 
4011
- #: includes/sp-core-functions.php:1189 modules/sportspress-event-videos.php:56
4012
  #: templates/event-video.php:19
4013
  msgid "Video"
4014
  msgstr ""
4015
 
4016
- #: includes/sp-core-functions.php:1190 templates/event-blocks.php:134
4017
  #: templates/event-calendar.php:220 templates/event-list.php:362
4018
  msgid "View all events"
4019
  msgstr ""
4020
 
4021
- #: includes/sp-core-functions.php:1191 templates/player-gallery.php:154
4022
  #: templates/player-list.php:171
4023
  msgid "View all players"
4024
  msgstr ""
4025
 
4026
- #: includes/sp-core-functions.php:1192 templates/league-table.php:152
4027
  msgid "View full table"
4028
  msgstr ""
4029
 
4030
- #: includes/sp-core-functions.php:1207
4031
  msgid "Love SportsPress? Help spread the word by rating us 5★ on WordPress.org"
4032
  msgstr ""
4033
 
4034
- #: includes/sp-template-hooks.php:144
4035
  msgid ""
4036
  "The description is not prominent by default; however, some themes may show "
4037
  "it."
4038
  msgstr ""
4039
 
4040
- #: includes/sp-template-hooks.php:153
4041
  msgid "Select Icon"
4042
  msgstr ""
4043
 
4044
- #: includes/sp-template-hooks.php:156
4045
  msgid "Add icon"
4046
  msgstr ""
4047
 
4048
- #: includes/sp-template-hooks.php:159
4049
  msgid "Remove icon"
4050
  msgstr ""
4051
 
4052
- #: includes/sp-template-hooks.php:167
4053
  msgid "User"
4054
  msgstr ""
4055
 
4056
- #: includes/sp-template-hooks.php:178
4057
  msgid "Select Photo"
4058
  msgstr ""
4059
 
4060
- #: includes/sp-template-hooks.php:181
4061
  msgid "Add photo"
4062
  msgstr ""
4063
 
4064
- #: includes/sp-template-hooks.php:184
4065
  msgid "Remove photo"
4066
  msgstr ""
4067
 
4068
- #: includes/sp-template-hooks.php:195
4069
  msgid "Select Logo"
4070
  msgstr ""
4071
 
4072
- #: includes/sp-template-hooks.php:198
4073
  msgid "Add logo"
4074
  msgstr ""
4075
 
4076
- #: includes/sp-template-hooks.php:201
4077
  msgid "Remove logo"
4078
  msgstr ""
4079
 
4080
- #: includes/sp-template-hooks.php:209
4081
  msgid "Date/Time:"
4082
  msgstr ""
4083
 
4084
- #: includes/sp-template-hooks.php:209
4085
  msgid "Now"
4086
  msgstr ""
4087
 
@@ -4225,7 +4305,11 @@ msgstr ""
4225
  msgid "Display season"
4226
  msgstr ""
4227
 
4228
- #: modules/sportspress-individual-mode.php:103
 
 
 
 
4229
  #: modules/sportspress-player-lists.php:220
4230
  msgid "players"
4231
  msgstr ""
@@ -4242,6 +4326,10 @@ msgstr ""
4242
  msgid "View League Table"
4243
  msgstr ""
4244
 
 
 
 
 
4245
  #: modules/sportspress-player-lists.php:67
4246
  msgid "Add New Player List"
4247
  msgstr ""
@@ -4258,11 +4346,23 @@ msgstr ""
4258
  msgid "Display photos"
4259
  msgstr ""
4260
 
 
 
 
 
 
 
 
 
 
 
 
 
4261
  #: sportspress.php:87 sportspress.php:96
4262
  msgid "Cheatin&#8217; huh?"
4263
  msgstr ""
4264
 
4265
- #: sportspress.php:142
4266
  msgid "Upgrade"
4267
  msgstr ""
4268
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: SportsPress\n"
4
+ "POT-Creation-Date: 2015-04-07 16:47+1000\n"
5
+ "PO-Revision-Date: 2015-04-07 16:47+1000\n"
6
  "Last-Translator: Brian Miyaji <brian@themeboy.com>\n"
7
  "Language-Team: ThemeBoy <support@themeboy.com>\n"
8
  "Language: en_US\n"
23
  msgstr ""
24
 
25
  #: assets/js/admin/editor-lang.php:23
26
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:89
27
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:41
28
+ #: includes/admin/settings/class-sp-settings-events.php:178
29
+ #: includes/admin/settings/class-sp-settings-events.php:240
30
  #: includes/admin/settings/class-sp-settings-general.php:106
31
  #: includes/admin/settings/class-sp-settings-general.php:167
32
  msgid "Auto"
33
  msgstr ""
34
 
35
  #: assets/js/admin/editor-lang.php:24
36
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:90
37
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:42
38
+ #: includes/admin/settings/class-sp-settings-events.php:179
39
+ #: includes/admin/settings/class-sp-settings-events.php:241
40
  msgid "Manual"
41
  msgstr ""
42
 
47
  #: assets/js/admin/editor-lang.php:26
48
  #: includes/admin/class-sp-admin-sample-data.php:367
49
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:105
50
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:289
51
  #: includes/class-sp-ajax.php:57 includes/class-sp-ajax.php:101
52
  #: includes/class-sp-ajax.php:130 includes/class-sp-ajax.php:159
53
  #: includes/class-sp-ajax.php:290 includes/class-sp-post-types.php:372
54
+ #: includes/sp-core-functions.php:1207
55
  #: includes/widgets/class-sp-widget-countdown.php:76
56
  #: includes/widgets/class-sp-widget-event-list.php:138
57
  #: templates/event-list.php:93
63
  #: includes/admin/post-types/class-sp-admin-meta-boxes.php:41
64
  #: includes/admin/post-types/class-sp-admin-meta-boxes.php:50
65
  #: includes/admin/post-types/class-sp-admin-meta-boxes.php:59
66
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:75
67
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:84
68
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:113
69
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:149
70
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:177
71
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:212
 
72
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:225
73
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php:24
74
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:181
79
  #: includes/admin/settings/class-sp-settings-players.php:64
80
  #: includes/admin/settings/class-sp-settings-staff.php:63
81
  #: includes/admin/settings/class-sp-settings-teams.php:64
82
+ #: includes/sp-core-functions.php:1206 modules/sportspress-calendars.php:147
83
  #: modules/sportspress-calendars.php:272
84
  #: modules/sportspress-league-tables.php:145
85
  #: modules/sportspress-player-lists.php:153 templates/event-details.php:34
102
 
103
  #: assets/js/admin/editor-lang.php:30
104
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-columns.php:25
105
+ #: includes/sp-core-functions.php:1213 templates/event-performance.php:235
106
  msgid "Performance"
107
  msgstr ""
108
 
118
  msgstr ""
119
 
120
  #: assets/js/admin/editor-lang.php:32
121
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:191
122
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-columns.php:27
123
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-shortcode.php:31
124
+ #: includes/admin/settings/class-sp-settings-players.php:72
125
  msgid "Statistics"
126
  msgstr ""
127
 
138
 
139
  #: assets/js/admin/editor-lang.php:34
140
  #: includes/admin/class-sp-admin-sample-data.php:214
141
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:86
142
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:54
143
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:147
144
  #: includes/class-sp-ajax.php:467 includes/class-sp-ajax.php:496
145
+ #: includes/class-sp-install.php:161 includes/class-sp-player-list.php:480
146
+ #: includes/class-sp-post-types.php:436 includes/sp-core-functions.php:1215
147
+ #: modules/sportspress-individual-mode.php:101
148
+ #: templates/event-performance-table-combined.php:26
149
+ #: templates/event-performance-table.php:31
150
  msgid "Player"
151
  msgstr ""
152
 
172
  #: includes/admin/importers/class-sp-event-importer.php:487
173
  #: includes/admin/importers/class-sp-event-importer.php:502
174
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:199
175
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:206
176
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:257
177
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:59
178
  #: includes/admin/settings/class-sp-settings-status.php:260
179
  #: includes/admin/views/html-admin-page-status.php:224
180
  msgid "None"
197
 
198
  #: includes/admin/class-sp-admin-assets.php:118
199
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:29
200
+ #: includes/admin/settings/class-sp-settings-events.php:146
201
  #: includes/class-sp-frontend-scripts.php:85 templates/countdown.php:94
202
  msgid "mins"
203
  msgstr ""
214
  msgstr ""
215
 
216
  #: includes/admin/class-sp-admin-dashboard.php:34
217
+ #: includes/admin/class-sp-admin-menus.php:47
218
  #: includes/admin/class-sp-admin-permalink-settings.php:47
219
  #: includes/admin/class-sp-admin-welcome.php:105
 
 
 
 
 
 
 
220
  #: includes/admin/views/html-admin-settings.php:2
221
+ #: modules/sportspress-overview.php:78 modules/sportspress-overview.php:135
222
+ #: modules/sportspress-overview.php:186 modules/sportspress-overview.php:207
223
+ #: modules/sportspress-overview.php:289 modules/sportspress-overview.php:334
224
+ #: modules/sportspress-overview.php:356
225
  msgid "SportsPress"
226
  msgstr ""
227
 
283
  msgid "Import <strong>staff</strong> from a csv file."
284
  msgstr ""
285
 
286
+ #: includes/admin/class-sp-admin-menus.php:54
 
 
 
 
 
287
  #: includes/admin/views/html-admin-config.php:3
288
  msgid "Configure"
289
  msgstr ""
290
 
291
+ #: includes/admin/class-sp-admin-menus.php:61
292
+ #: includes/admin/class-sp-admin-menus.php:249
293
  #: includes/admin/class-sp-admin-permalink-settings.php:29
294
  #: includes/admin/importers/class-sp-player-importer.php:30
295
  #: includes/admin/importers/class-sp-staff-importer.php:29
306
  #: includes/admin/settings/class-sp-settings-status.php:334
307
  #: includes/admin/views/html-admin-page-status.php:296
308
  #: includes/class-sp-post-types.php:36 includes/class-sp-post-types.php:50
309
+ #: modules/sportspress-tutorials.php:63
310
  msgid "Competitions"
311
  msgstr ""
312
 
313
+ #: includes/admin/class-sp-admin-menus.php:68
314
+ #: includes/admin/class-sp-admin-menus.php:257
315
  #: includes/admin/class-sp-admin-permalink-settings.php:30
316
  #: includes/admin/importers/class-sp-player-importer.php:31
317
  #: includes/admin/importers/class-sp-staff-importer.php:30
328
  #: includes/admin/settings/class-sp-settings-status.php:344
329
  #: includes/admin/views/html-admin-page-status.php:306
330
  #: includes/class-sp-post-types.php:65 includes/class-sp-post-types.php:79
331
+ #: modules/sportspress-tutorials.php:63
332
  msgid "Seasons"
333
  msgstr ""
334
 
335
+ #: includes/admin/class-sp-admin-menus.php:103
336
+ #: includes/admin/class-sp-admin-welcome.php:123
337
+ #: includes/admin/class-sp-admin-welcome.php:231 sportspress.php:139
338
  msgid "Settings"
339
  msgstr ""
340
 
341
+ #: includes/admin/class-sp-admin-menus.php:245
342
  #: includes/admin/importers/class-sp-event-importer.php:488
343
  #: includes/admin/importers/class-sp-event-importer.php:503
344
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:80
345
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:56
346
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:51
347
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:95
 
 
 
 
348
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-metrics.php:42
349
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:73
350
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:47
 
 
351
  #: includes/admin/views/html-admin-config.php:51
352
  #: includes/admin/views/html-admin-config.php:124
353
+ #: includes/admin/views/html-admin-config.php:208
354
+ #: includes/admin/views/html-admin-config.php:263
355
+ #: includes/admin/views/html-admin-config.php:313
356
+ #: includes/admin/views/html-admin-config.php:366
357
  #: includes/class-sp-post-types.php:42 includes/class-sp-post-types.php:71
358
  #: includes/class-sp-post-types.php:100 includes/class-sp-post-types.php:129
359
+ #: includes/class-sp-post-types.php:158 includes/sp-core-functions.php:954
360
+ #: includes/sp-core-functions.php:971
361
  #: includes/widgets/class-sp-widget-countdown.php:71
362
  #: includes/widgets/class-sp-widget-countdown.php:91
363
  #: includes/widgets/class-sp-widget-event-blocks.php:83
372
  msgid "Add New"
373
  msgstr ""
374
 
375
+ #: includes/admin/class-sp-admin-menus.php:253
376
  #: includes/admin/class-sp-admin-permalink-settings.php:33
377
  #: includes/admin/importers/class-sp-player-importer.php:28
378
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:66
381
  #: includes/admin/settings/class-sp-settings-status.php:364
382
  #: includes/admin/views/html-admin-page-status.php:326
383
  #: includes/class-sp-post-types.php:123 includes/class-sp-post-types.php:137
384
+ #: modules/sportspress-tutorials.php:65
385
  msgid "Positions"
386
  msgstr ""
387
 
388
+ #: includes/admin/class-sp-admin-menus.php:261
389
  #: includes/admin/class-sp-admin-permalink-settings.php:26
390
+ #: includes/admin/settings/class-sp-settings-events.php:112
391
  #: includes/admin/settings/class-sp-settings-status.php:354
392
  #: includes/admin/views/html-admin-page-status.php:316
393
  #: includes/class-sp-post-types.php:94 includes/class-sp-post-types.php:108
394
+ #: modules/sportspress-tutorials.php:64
395
  msgid "Venues"
396
  msgstr ""
397
 
401
  #: includes/admin/class-sp-admin-taxonomies.php:162
402
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:53
403
  #: includes/admin/settings/class-sp-settings-events.php:25
404
+ #: includes/admin/settings/class-sp-settings-modules.php:34
405
  #: includes/class-sp-post-types.php:371 modules/sportspress-calendars.php:154
406
+ #: modules/sportspress-tutorials.php:79
407
  msgid "Events"
408
  msgstr ""
409
 
410
  #: includes/admin/class-sp-admin-permalink-settings.php:27
411
  #: includes/admin/class-sp-admin-sample-data.php:474
412
  #: includes/class-sp-modules.php:28 modules/sportspress-calendars.php:65
413
+ #: modules/sportspress-tutorials.php:82
414
  msgid "Calendars"
415
  msgstr ""
416
 
423
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:67
424
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:66
425
  #: includes/admin/post-types/class-sp-admin-cpt-table.php:51
426
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:120
427
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:59
428
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:99
429
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:114
430
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:97
431
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:112
432
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php:37
433
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:58
434
+ #: includes/admin/settings/class-sp-settings-modules.php:35
435
  #: includes/admin/settings/class-sp-settings-teams.php:25
436
  #: includes/class-sp-ajax.php:291 includes/class-sp-post-types.php:405
437
+ #: includes/sp-core-functions.php:1225 modules/sportspress-calendars.php:203
438
  #: modules/sportspress-calendars.php:217 modules/sportspress-countdowns.php:85
439
+ #: modules/sportspress-individual-mode.php:272
440
+ #: modules/sportspress-league-tables.php:191
441
+ #: modules/sportspress-tutorials.php:67 templates/event-list.php:91
442
  msgid "Teams"
443
  msgstr ""
444
 
445
  #: includes/admin/class-sp-admin-permalink-settings.php:31
446
  #: includes/admin/class-sp-admin-sample-data.php:508
447
+ #: includes/class-sp-modules.php:40 modules/sportspress-league-tables.php:65
448
  #: modules/sportspress-league-tables.php:131
449
  #: modules/sportspress-league-tables.php:186
450
+ #: modules/sportspress-tutorials.php:69
451
  msgid "League Tables"
452
  msgstr ""
453
 
456
  #: includes/admin/class-sp-admin-taxonomies.php:179
457
  #: includes/admin/importers/class-sp-event-importer.php:32
458
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:52
459
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:86
460
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:58
461
+ #: includes/admin/settings/class-sp-settings-events.php:211
462
+ #: includes/admin/settings/class-sp-settings-events.php:265
463
+ #: includes/admin/settings/class-sp-settings-modules.php:36
464
  #: includes/admin/settings/class-sp-settings-players.php:25
465
  #: includes/class-sp-post-types.php:435
466
+ #: modules/sportspress-individual-mode.php:98
467
  #: modules/sportspress-player-lists.php:200
468
+ #: modules/sportspress-tutorials.php:71
469
  msgid "Players"
470
  msgstr ""
471
 
472
  #: includes/admin/class-sp-admin-permalink-settings.php:34
473
  #: includes/admin/class-sp-admin-sample-data.php:550
474
  #: includes/admin/class-sp-admin-sample-data.php:595
475
+ #: includes/class-sp-modules.php:52 modules/sportspress-player-lists.php:65
476
  #: modules/sportspress-player-lists.php:125
477
  #: modules/sportspress-player-lists.php:195
478
  msgid "Player Lists"
481
  #: includes/admin/class-sp-admin-permalink-settings.php:35
482
  #: includes/admin/class-sp-admin-sample-data.php:307
483
  #: includes/admin/class-sp-admin-taxonomies.php:191
484
+ #: includes/admin/settings/class-sp-settings-events.php:203
485
+ #: includes/admin/settings/class-sp-settings-modules.php:37
486
  #: includes/admin/settings/class-sp-settings-staff.php:25
487
  #: includes/class-sp-install.php:193 includes/class-sp-post-types.php:465
488
+ #: includes/class-sp-post-types.php:466 includes/sp-core-functions.php:1222
489
  #: includes/widgets/class-sp-widget-staff.php:6
490
+ #: includes/widgets/class-sp-widget-staff.php:51
491
+ #: modules/sportspress-tutorials.php:71 templates/event-staff.php:44
492
  msgid "Staff"
493
  msgstr ""
494
 
499
  msgstr ""
500
 
501
  #: includes/admin/class-sp-admin-post-types.php:74
502
+ #: includes/sp-template-hooks.php:367
503
  msgid "Settings saved."
504
  msgstr ""
505
 
506
  #: includes/admin/class-sp-admin-post-types.php:76
507
  #: includes/admin/views/html-admin-config.php:50
508
  #: includes/admin/views/html-admin-config.php:123
509
+ #: includes/admin/views/html-admin-config.php:207
510
+ #: includes/admin/views/html-admin-config.php:262
511
+ #: includes/admin/views/html-admin-config.php:312
512
+ #: includes/admin/views/html-admin-config.php:365
513
+ #: includes/sp-template-hooks.php:369 modules/sportspress-overview.php:284
 
514
  msgid "View All"
515
  msgstr ""
516
 
517
  #: includes/admin/class-sp-admin-post-types.php:81
518
  #: includes/admin/class-sp-admin-post-types.php:84
519
  #: includes/admin/class-sp-admin-post-types.php:89
520
+ #: includes/sp-template-hooks.php:375 includes/sp-template-hooks.php:378
521
+ #: includes/sp-template-hooks.php:383
522
  msgid "Changes saved."
523
  msgstr ""
524
 
525
  #: includes/admin/class-sp-admin-post-types.php:86
526
  #: includes/admin/class-sp-admin-post-types.php:91
527
  #: includes/admin/class-sp-admin-post-types.php:101
528
+ #: includes/sp-template-hooks.php:380 includes/sp-template-hooks.php:385
529
+ #: includes/sp-template-hooks.php:395
530
  msgid "Success!"
531
  msgstr ""
532
 
533
  #: includes/admin/class-sp-admin-post-types.php:93
534
  #: includes/admin/class-sp-admin-post-types.php:99
535
  #: includes/admin/class-sp-admin-post-types.php:103
536
+ #: includes/sp-template-hooks.php:387 includes/sp-template-hooks.php:393
537
+ #: includes/sp-template-hooks.php:397
538
  #, php-format
539
  msgid "Preview %s"
540
  msgstr ""
541
 
542
  #: includes/admin/class-sp-admin-post-types.php:96
543
+ #: includes/sp-template-hooks.php:390
544
  #, php-format
545
  msgid "Scheduled for: <b>%1$s</b>."
546
  msgstr ""
547
 
548
  #: includes/admin/class-sp-admin-post-types.php:97
549
+ #: includes/sp-template-hooks.php:391
550
  msgid "M j, Y @ G:i"
551
  msgstr ""
552
 
573
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:52
574
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:51
575
  #: includes/admin/post-types/class-sp-admin-cpt-team.php:70
576
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:66
577
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php:132
578
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:57
579
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:40
580
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:69
581
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:72
582
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:57
583
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:119
584
+ #: includes/admin/settings/class-sp-settings-events.php:330
585
+ #: includes/class-sp-league-table.php:402
586
+ #: includes/class-sp-player-list.php:463 includes/class-sp-player-list.php:481
587
+ #: includes/class-sp-player.php:382 includes/class-sp-player.php:405
588
+ #: includes/class-sp-post-types.php:406 includes/sp-core-functions.php:1224
589
  #: includes/widgets/class-sp-widget-countdown.php:59
590
  #: templates/event-results.php:102
591
  msgid "Team"
644
  msgstr ""
645
 
646
  #: includes/admin/class-sp-admin-sports.php:27
647
+ #: includes/admin/settings/class-sp-settings-modules.php:38
648
  msgid "Other"
649
  msgstr ""
650
 
652
  msgid "Custom"
653
  msgstr ""
654
 
655
+ #: includes/admin/class-sp-admin-sports.php:267
656
  msgid "Baseball"
657
  msgstr ""
658
 
659
+ #: includes/admin/class-sp-admin-sports.php:268
660
  msgid "Basketball"
661
  msgstr ""
662
 
663
+ #: includes/admin/class-sp-admin-sports.php:269
664
  msgid "Cricket"
665
  msgstr ""
666
 
667
+ #: includes/admin/class-sp-admin-sports.php:270
668
  msgid "Darts"
669
  msgstr ""
670
 
671
+ #: includes/admin/class-sp-admin-sports.php:271
672
  msgid "Floorball"
673
  msgstr ""
674
 
675
+ #: includes/admin/class-sp-admin-sports.php:272
676
  msgid "American Football"
677
  msgstr ""
678
 
679
+ #: includes/admin/class-sp-admin-sports.php:273
680
  msgid "Australian Rules Football"
681
  msgstr ""
682
 
683
+ #: includes/admin/class-sp-admin-sports.php:274
684
  msgid "Handball"
685
  msgstr ""
686
 
687
+ #: includes/admin/class-sp-admin-sports.php:275
688
  msgid "Ice Hockey"
689
  msgstr ""
690
 
691
+ #: includes/admin/class-sp-admin-sports.php:276
692
  #: includes/admin/class-sp-admin-welcome.php:338
693
  msgid "Lacrosse"
694
  msgstr ""
695
 
696
+ #: includes/admin/class-sp-admin-sports.php:277
697
  msgid "Netball"
698
  msgstr ""
699
 
700
+ #: includes/admin/class-sp-admin-sports.php:278
701
  msgid "Rugby League"
702
  msgstr ""
703
 
704
+ #: includes/admin/class-sp-admin-sports.php:279
705
  msgid "Rugby Union"
706
  msgstr ""
707
 
708
+ #: includes/admin/class-sp-admin-sports.php:280
709
  msgid "Snooker"
710
  msgstr ""
711
 
712
+ #: includes/admin/class-sp-admin-sports.php:281
713
  msgid "Soccer (Association Football)"
714
  msgstr ""
715
 
716
+ #: includes/admin/class-sp-admin-sports.php:282
717
  msgid "Squash"
718
  msgstr ""
719
 
720
+ #: includes/admin/class-sp-admin-sports.php:283
721
  msgid "Table Tennis"
722
  msgstr ""
723
 
724
+ #: includes/admin/class-sp-admin-sports.php:284
725
  msgid "Tennis"
726
  msgstr ""
727
 
728
+ #: includes/admin/class-sp-admin-sports.php:285
729
  msgid "Volleyball"
730
  msgstr ""
731
 
732
+ #: includes/admin/class-sp-admin-sports.php:286
733
  msgid "Water Polo"
734
  msgstr ""
735
 
736
+ #: includes/admin/class-sp-admin-sports.php:287
737
  msgid "Dota 2"
738
  msgstr ""
739
 
740
+ #: includes/admin/class-sp-admin-sports.php:288
741
  msgid "League of Legends"
742
  msgstr ""
743
 
744
+ #: includes/admin/class-sp-admin-sports.php:289
745
  #: includes/admin/class-sp-admin-welcome.php:337
746
  msgid "Counter-Strike: Global Offensive"
747
  msgstr ""
772
  msgstr ""
773
 
774
  #: includes/admin/class-sp-admin-welcome.php:50
775
+ #: includes/admin/settings/class-sp-settings-modules.php:202
776
  msgid "Welcome to SportsPress"
777
  msgstr ""
778
 
798
  msgid "%s SportsPress %s has lots of refinements we think you&#8217;ll love."
799
  msgstr ""
800
 
801
+ #: includes/admin/class-sp-admin-welcome.php:124 sportspress.php:140
802
  msgid "Docs"
803
  msgstr ""
804
 
805
  #: includes/admin/class-sp-admin-welcome.php:131
806
  #: includes/admin/views/html-notice-install.php:7
807
+ #: modules/sportspress-tutorials.php:61
808
  msgid "Get Started"
809
  msgstr ""
810
 
831
 
832
  #: includes/admin/class-sp-admin-welcome.php:196
833
  #: includes/admin/class-sp-admin-welcome.php:283
834
+ #: includes/admin/settings/class-sp-settings-events.php:254
835
  #: includes/admin/settings/class-sp-settings-general.php:62
836
  msgid "Mode"
837
  msgstr ""
857
  msgstr ""
858
 
859
  #: includes/admin/class-sp-admin-welcome.php:207
860
+ #: includes/class-sp-post-types.php:407 modules/sportspress-tutorials.php:68
861
  msgid "Add New Team"
862
  msgstr ""
863
 
864
  #: includes/admin/class-sp-admin-welcome.php:212
865
+ #: includes/class-sp-post-types.php:437 modules/sportspress-tutorials.php:73
866
  msgid "Add New Player"
867
  msgstr ""
868
 
869
  #: includes/admin/class-sp-admin-welcome.php:217
870
+ #: includes/class-sp-post-types.php:373 modules/sportspress-tutorials.php:80
871
  msgid "Add New Event"
872
  msgstr ""
873
 
874
+ #: includes/admin/class-sp-admin-welcome.php:232
875
  msgid "Go to SportsPress Settings"
876
  msgstr ""
877
 
901
  msgstr ""
902
 
903
  #: includes/admin/class-sp-admin-welcome.php:299
904
+ #: includes/admin/settings/class-sp-settings-modules.php:269
905
  #: includes/admin/views/html-admin-settings.php:15
906
  msgid "Save Changes"
907
  msgstr ""
941
  "SportsPress</a>."
942
  msgstr ""
943
 
944
+ #: includes/admin/class-sp-admin-welcome.php:461
945
  #, php-format
946
  msgid "View %s"
947
  msgstr ""
948
 
949
+ #: includes/admin/class-sp-admin.php:102
950
  msgid "Import"
951
  msgstr ""
952
 
957
  #: includes/admin/importers/class-sp-event-importer.php:26
958
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:98
959
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:50
960
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:44
961
+ #: includes/sp-core-functions.php:1205 templates/event-details.php:20
962
  #: templates/event-list.php:68
963
  msgid "Date"
964
  msgstr ""
966
  #: includes/admin/importers/class-sp-event-importer.php:27
967
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:99
968
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:72
969
+ #: includes/class-sp-ajax.php:292 includes/sp-core-functions.php:1226
970
  #: templates/event-details.php:20 templates/event-list.php:84
971
  #: templates/event-list.php:99 templates/event-list.php:105
972
  msgid "Time"
976
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:51
977
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:103
978
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:103
979
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:39
980
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:87
981
  #: includes/admin/settings/class-sp-settings-events.php:81
982
  #: includes/admin/settings/class-sp-settings-teams.php:80
983
  #: includes/class-sp-ajax.php:293 includes/class-sp-post-types.php:95
984
+ #: includes/sp-core-functions.php:1229
985
  #: includes/widgets/class-sp-widget-event-list.php:140
986
  #: templates/event-list.php:124 templates/event-venue.php:37
987
  msgid "Venue"
988
  msgstr ""
989
 
990
  #: includes/admin/importers/class-sp-event-importer.php:31
991
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:108
992
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php:147
993
+ #: includes/admin/settings/class-sp-settings-events.php:184
994
+ #: includes/class-sp-event.php:46 includes/class-sp-event.php:67
995
+ #: includes/class-sp-post-types.php:224 includes/sp-core-functions.php:1211
996
  msgid "Outcome"
997
  msgstr ""
998
 
1032
 
1033
  #: includes/admin/importers/class-sp-event-importer.php:467
1034
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:96
1035
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:106
1036
  msgid "Format"
1037
  msgstr ""
1038
 
1052
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:49
1053
  #: includes/admin/post-types/class-sp-admin-cpt-table.php:49
1054
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:91
 
 
 
1055
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:61
1056
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:61
1057
+ #: includes/class-sp-post-types.php:37 includes/sp-core-functions.php:1209
1058
  #: templates/event-list.php:118 templates/team-details.php:24
1059
  #, fuzzy
1060
  msgid "Competition"
1071
 
1072
  #: includes/admin/importers/class-sp-event-importer.php:484
1073
  #: includes/admin/importers/class-sp-event-importer.php:499
1074
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:49
1075
  msgid "&mdash; Not set &mdash;"
1076
  msgstr ""
1077
 
1081
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:50
1082
  #: includes/admin/post-types/class-sp-admin-cpt-table.php:50
1083
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:97
 
 
1084
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:63
 
1085
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:60
1086
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php:64
1087
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:64
1088
+ #: includes/class-sp-player.php:403 includes/class-sp-post-types.php:66
1089
+ #: includes/sp-core-functions.php:1221 templates/event-list.php:121
1090
  #: templates/team-details.php:33
1091
  msgid "Season"
1092
  msgstr ""
1127
 
1128
  #: includes/admin/importers/class-sp-player-importer.php:26
1129
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:64
1130
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:68
1131
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:61
1132
  #: includes/class-sp-ajax.php:568 includes/class-sp-ajax.php:639
1133
  #: includes/widgets/class-sp-widget-player-gallery.php:96
1134
  #: includes/widgets/class-sp-widget-player-list.php:110
1135
+ msgid "Squad Number"
1136
  msgstr ""
1137
 
1138
  #: includes/admin/importers/class-sp-player-importer.php:27
1143
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:52
1144
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:70
1145
  #: includes/admin/post-types/class-sp-admin-cpt-team.php:51
1146
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:69
1147
  #: includes/class-sp-ajax.php:569 includes/class-sp-ajax.php:640
1148
  #: includes/class-sp-post-types.php:43 includes/class-sp-post-types.php:72
1149
  #: includes/class-sp-post-types.php:101 includes/class-sp-post-types.php:130
1161
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:78
1162
  #: includes/admin/settings/class-sp-settings-players.php:80
1163
  #: includes/admin/settings/class-sp-settings-staff.php:71
1164
+ #: includes/sp-core-functions.php:1210 templates/player-details.php:42
1165
  #: templates/staff-details.php:38
1166
  msgid "Nationality"
1167
  msgstr ""
1191
 
1192
  #: includes/admin/importers/class-sp-staff-importer.php:27
1193
  #: includes/class-sp-post-types.php:152 includes/class-sp-post-types.php:166
1194
+ #: modules/sportspress-tutorials.php:65
1195
  msgid "Jobs"
1196
  msgstr ""
1197
 
1285
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:69
1286
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:72
1287
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:78
1288
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:77
 
 
 
1289
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:36
1290
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php:49
1291
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:46
1292
+ #: includes/admin/settings/class-sp-settings-events.php:295
1293
+ #: includes/admin/views/html-admin-config.php:195
 
 
 
1294
  #: includes/class-sp-ajax.php:194 includes/class-sp-ajax.php:264
1295
  #: includes/class-sp-ajax.php:355 includes/class-sp-post-types.php:38
1296
  #: includes/class-sp-post-types.php:67 includes/class-sp-post-types.php:96
1297
  #: includes/class-sp-post-types.php:125 includes/class-sp-post-types.php:154
1298
+ #: includes/sp-core-functions.php:450 includes/sp-core-functions.php:481
1299
+ #: includes/sp-core-functions.php:1179
1300
  #: includes/widgets/class-sp-widget-countdown.php:66
1301
  #: includes/widgets/class-sp-widget-event-blocks.php:75
1302
  #: includes/widgets/class-sp-widget-event-calendar.php:69
1303
  #: includes/widgets/class-sp-widget-event-list.php:78
1304
+ #: modules/sportspress-overview.php:138
1305
  msgid "All"
1306
  msgstr ""
1307
 
1308
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:87
1309
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:101
1310
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:97
1311
+ #: includes/sp-core-functions.php:1203 templates/player-details.php:62
1312
  #: templates/staff-details.php:42
1313
  msgid "Current Team"
1314
  msgstr ""
1315
 
1316
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:115
1317
+ #: includes/admin/post-types/class-sp-admin-cpt-event.php:213
1318
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:104
1319
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:150
1320
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:134
1334
  "#-#-#-#-# 10extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
1335
 
1336
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:124
1337
+ #: includes/admin/post-types/class-sp-admin-cpt-event.php:222
1338
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:113
1339
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:159
1340
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:143
1344
  msgstr ""
1345
 
1346
  #: includes/admin/post-types/class-sp-admin-cpt-calendar.php:135
1347
+ #: includes/admin/post-types/class-sp-admin-cpt-event.php:205
1348
  #: includes/admin/post-types/class-sp-admin-cpt-list.php:124
1349
  #: includes/admin/post-types/class-sp-admin-cpt-player.php:142
1350
  #: includes/admin/post-types/class-sp-admin-cpt-staff.php:126
1360
  #: includes/admin/post-types/class-sp-admin-cpt-statistic.php:43
1361
  #: includes/admin/views/html-admin-config.php:26
1362
  #: includes/admin/views/html-admin-config.php:85
1363
+ #: includes/admin/views/html-admin-config.php:159
1364
+ #: includes/admin/views/html-admin-config.php:236
1365
+ #: includes/admin/views/html-admin-config.php:292
1366
+ #: includes/admin/views/html-admin-config.php:341
1367
  msgid "Label"
1368
  msgstr ""
1369
 
1371
  #: includes/admin/post-types/class-sp-admin-cpt-statistic.php:44
1372
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:34
1373
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-statistic-details.php:31
1374
+ #: includes/admin/views/html-admin-config.php:237
1375
+ #: includes/admin/views/html-admin-config.php:342
1376
+ #: includes/sp-template-hooks.php:164
1377
  msgid "Key"
1378
  msgstr ""
1379
 
1380
  #: includes/admin/post-types/class-sp-admin-cpt-column.php:45
1381
  #: includes/admin/post-types/class-sp-admin-cpt-statistic.php:45
1382
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:66
1383
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:91
1384
+ #: includes/admin/views/html-admin-config.php:238
1385
+ #: includes/admin/views/html-admin-config.php:343
1386
  msgid "Equation"
1387
  msgstr ""
1388
 
1390
  #: includes/admin/post-types/class-sp-admin-cpt-statistic.php:46
1391
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:39
1392
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-statistic-details.php:36
1393
+ #: includes/admin/views/html-admin-config.php:239
1394
+ #: includes/admin/views/html-admin-config.php:344
1395
  msgid "Rounding"
1396
  msgstr ""
1397
 
1398
  #: includes/admin/post-types/class-sp-admin-cpt-column.php:47
1399
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:84
1400
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:43
1401
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:79
1402
+ #: includes/admin/views/html-admin-config.php:240
1403
  msgid "Sort Order"
1404
  msgstr ""
1405
 
1411
  #: includes/admin/post-types/class-sp-admin-cpt-statistic.php:47
1412
  #: includes/admin/views/html-admin-config.php:30
1413
  #: includes/admin/views/html-admin-config.php:87
1414
+ #: includes/admin/views/html-admin-config.php:162
1415
+ #: includes/admin/views/html-admin-config.php:241
1416
+ #: includes/admin/views/html-admin-config.php:294
1417
+ #: includes/admin/views/html-admin-config.php:345
1418
+ #: includes/sp-template-hooks.php:158 modules/sportspress-calendars.php:161
1419
  #: modules/sportspress-league-tables.php:159
1420
  #: modules/sportspress-player-lists.php:167
1421
  msgid "Description"
1422
  msgstr ""
1423
 
1424
  #: includes/admin/post-types/class-sp-admin-cpt-event.php:55
1425
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:53
1426
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-results.php:182
1427
  #: includes/class-sp-ajax.php:63
1428
  #: includes/widgets/class-sp-widget-countdown.php:83
1429
  msgid "(Auto)"
1430
  msgstr ""
1431
 
1432
+ #: includes/admin/post-types/class-sp-admin-cpt-event.php:171
1433
  msgid "Edit Results"
1434
  msgstr ""
1435
 
1436
+ #: includes/admin/post-types/class-sp-admin-cpt-event.php:173
1437
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-video.php:33
1438
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:99
1439
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:88
1446
  msgid "Cancel"
1447
  msgstr ""
1448
 
1449
+ #: includes/admin/post-types/class-sp-admin-cpt-event.php:175
1450
  #: includes/class-sp-post-types.php:41 includes/class-sp-post-types.php:70
1451
  #: includes/class-sp-post-types.php:99 includes/class-sp-post-types.php:128
1452
  #: includes/class-sp-post-types.php:157
1462
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-performance-details.php:27
1463
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-result-details.php:27
1464
  #: includes/admin/views/html-admin-config.php:27
1465
+ #: includes/admin/views/html-admin-config.php:160
1466
+ #: includes/admin/views/html-admin-config.php:293
1467
+ #: includes/sp-template-hooks.php:164
1468
  msgid "Variable"
1469
  msgstr ""
1470
 
1471
  #: includes/admin/post-types/class-sp-admin-cpt-performance.php:43
1472
+ #: includes/admin/views/html-admin-config.php:158
1473
+ #: includes/sp-template-hooks.php:167
1474
  msgid "Icon"
1475
  msgstr ""
1476
 
1487
 
1488
  #: includes/admin/post-types/class-sp-admin-cpt-team.php:63
1489
  #: includes/admin/settings/class-sp-settings-teams.php:56
1490
+ #: includes/sp-template-hooks.php:209
1491
  msgid "Logo"
1492
  msgstr ""
1493
 
1506
  msgid "Uploaded to this %s"
1507
  msgstr ""
1508
 
1509
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:100
1510
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:164
1511
  msgid "Shortcodes"
1512
  msgstr ""
1513
 
1514
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:127
1515
+ #: includes/admin/settings/class-sp-settings-events.php:168
1516
  #: includes/admin/settings/class-sp-settings-status.php:273
1517
  #: includes/admin/views/html-admin-config.php:74
1518
  #: includes/admin/views/html-admin-config.php:78
1519
+ #: includes/admin/views/html-admin-config.php:151
1520
  #: includes/admin/views/html-admin-page-status.php:237
1521
+ #: includes/class-sp-post-types.php:193 includes/sp-core-functions.php:1208
1522
  #: templates/event-results.php:98
1523
  msgid "Event Results"
1524
  msgstr ""
1525
 
1526
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:134
1527
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php:25
1528
+ #: includes/admin/settings/class-sp-settings-events.php:89
1529
+ #: includes/admin/settings/class-sp-settings-events.php:197
1530
  #: includes/admin/settings/class-sp-settings-status.php:283
1531
+ #: includes/admin/views/html-admin-config.php:147
1532
  #: includes/admin/views/html-admin-page-status.php:247
1533
  #: includes/class-sp-post-types.php:313 includes/class-sp-post-types.php:314
1534
  msgid "Player Performance"
1535
  msgstr ""
1536
 
1537
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:141
1538
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:109
1539
+ #: includes/class-sp-ajax.php:294 includes/sp-core-functions.php:1201
1540
  #: includes/widgets/class-sp-widget-event-list.php:141
1541
  #: templates/event-list.php:127
1542
  msgid "Article"
1543
  msgstr ""
1544
 
1545
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:156
1546
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:198
1547
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:219
1548
  msgid "Profile"
1549
  msgstr ""
1550
 
1551
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:170
1552
+ #: includes/admin/settings/class-sp-settings-events.php:173
1553
+ #: includes/admin/settings/class-sp-settings-events.php:235
1554
  #: modules/sportspress-player-lists.php:146
1555
  msgid "Columns"
1556
  msgstr ""
1557
 
1558
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:184
1559
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-columns.php:26
1560
  msgid "Metrics"
1561
  msgstr ""
1562
 
1563
+ #: includes/admin/post-types/class-sp-admin-meta-boxes.php:206
1564
  #: includes/class-sp-ajax.php:84 includes/class-sp-ajax.php:113
1565
  #: includes/class-sp-ajax.php:142 includes/class-sp-ajax.php:171
1566
  #: includes/class-sp-ajax.php:219 includes/class-sp-ajax.php:310
1579
  msgstr ""
1580
 
1581
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:74
1582
+ #: includes/sp-core-functions.php:1227
1583
  #: includes/widgets/class-sp-widget-event-list.php:139
1584
  #: templates/event-list.php:113
1585
  msgid "Time/Results"
1586
  msgstr ""
1587
 
1588
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:201
1589
+ #: includes/sp-core-functions.php:1220 templates/event-list.php:342
1590
  msgid "Recap"
1591
  msgstr ""
1592
 
1593
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php:203
1594
+ #: includes/sp-core-functions.php:1218 templates/event-list.php:344
1595
  msgid "Preview"
1596
  msgstr ""
1597
 
1602
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-tables.php:97
1603
  #: includes/admin/views/html-admin-config.php:45
1604
  #: includes/admin/views/html-admin-config.php:117
1605
+ #: includes/admin/views/html-admin-config.php:201
1606
+ #: includes/admin/views/html-admin-config.php:257
1607
+ #: includes/admin/views/html-admin-config.php:307
1608
+ #: includes/admin/views/html-admin-config.php:360
 
1609
  #: includes/class-sp-post-types.php:47 includes/class-sp-post-types.php:76
1610
  #: includes/class-sp-post-types.php:105 includes/class-sp-post-types.php:134
1611
  #: includes/class-sp-post-types.php:163 includes/class-sp-post-types.php:200
1618
  #: includes/class-sp-post-types.php:379 includes/class-sp-post-types.php:412
1619
  #: includes/class-sp-post-types.php:413 includes/class-sp-post-types.php:442
1620
  #: includes/class-sp-post-types.php:443 includes/class-sp-post-types.php:472
1621
+ #: includes/class-sp-post-types.php:473 includes/sp-core-functions.php:832
1622
+ #: includes/sp-core-functions.php:872 modules/sportspress-calendars.php:72
1623
  #: modules/sportspress-calendars.php:73
1624
  #: modules/sportspress-league-tables.php:72
1625
  #: modules/sportspress-league-tables.php:73
1626
+ #: modules/sportspress-overview.php:341
1627
  #: modules/sportspress-player-lists.php:72
1628
  #: modules/sportspress-player-lists.php:73
1629
  msgid "No results found."
1655
  msgid "Select %s"
1656
  msgstr ""
1657
 
1658
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:32
1659
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:104
1660
  msgid "Status"
1661
  msgstr ""
1662
 
1663
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:87
1664
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:59
1665
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:82
1666
  #: includes/class-sp-ajax.php:281 includes/class-sp-ajax.php:372
1667
  #: includes/class-sp-ajax.php:586 includes/class-sp-ajax.php:657
1668
  #: includes/widgets/class-sp-widget-event-blocks.php:127
1672
  msgid "Ascending"
1673
  msgstr ""
1674
 
1675
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-details.php:88
1676
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-column-details.php:59
1677
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:83
1678
  #: includes/class-sp-ajax.php:282 includes/class-sp-ajax.php:373
1679
  #: includes/class-sp-ajax.php:587 includes/class-sp-ajax.php:658
1680
  #: includes/widgets/class-sp-widget-event-blocks.php:128
1686
 
1687
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-feeds.php:45
1688
  #: includes/admin/settings/class-sp-settings-events.php:48
1689
+ #: includes/admin/settings/class-sp-settings-general.php:337
1690
  #: includes/admin/settings/class-sp-settings-players.php:47
1691
  #: includes/admin/settings/class-sp-settings-staff.php:46
1692
  #: includes/admin/settings/class-sp-settings-teams.php:47
1710
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php:34
1711
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php:37
1712
  #: includes/class-sp-ajax.php:570 includes/class-sp-ajax.php:641
1713
+ #: includes/sp-core-functions.php:1214
1714
  #: includes/widgets/class-sp-widget-player-gallery.php:98
1715
  #: includes/widgets/class-sp-widget-player-list.php:112
1716
  msgid "Played"
1758
  msgstr ""
1759
 
1760
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php:26
1761
+ #: includes/admin/settings/class-sp-settings-events.php:142
1762
  msgid "Full Time"
1763
  msgstr ""
1764
 
1765
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:88
1766
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:60
1767
+ #: includes/admin/settings/class-sp-settings-events.php:246
1768
+ #: includes/admin/views/html-admin-config.php:161
1769
+ #: includes/class-sp-event.php:117 includes/class-sp-post-types.php:124
1770
+ #: includes/sp-core-functions.php:1217 templates/player-details.php:50
1771
  msgid "Position"
1772
  msgstr ""
1773
 
1774
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:118
1775
+ #: includes/admin/settings/class-sp-settings-events.php:219
1776
+ #: templates/event-performance-table.php:165
1777
+ msgid "Extras"
1778
+ msgstr ""
1779
+
1780
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:133
1781
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:98
1782
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:104
1783
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:38
1784
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-columns.php:76
1785
+ #: includes/admin/settings/class-sp-settings-events.php:227
1786
+ #: includes/admin/settings/class-sp-settings-events.php:290
1787
+ #: includes/class-sp-player.php:97 includes/class-sp-player.php:354
1788
+ #: includes/class-sp-team.php:65 includes/sp-core-functions.php:393
1789
+ #: includes/sp-core-functions.php:397 includes/sp-core-functions.php:1228
1790
+ #: templates/event-performance-table-combined.php:122
1791
+ #: templates/event-performance-table.php:211
1792
  msgid "Total"
1793
  msgstr ""
1794
 
1795
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:231
1796
  msgid "Starting Lineup"
1797
  msgstr ""
1798
 
1799
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php:232
1800
  msgid "Substitute"
1801
  msgstr ""
1802
 
1816
 
1817
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:43
1818
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:49
1819
+ #: includes/admin/settings/class-sp-settings-events.php:259
1820
  msgid "Values"
1821
  msgstr ""
1822
 
1826
  msgstr ""
1827
 
1828
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php:52
1829
+ #: includes/sp-core-functions.php:1219 templates/player-list.php:94
1830
  msgid "Rank"
1831
  msgstr ""
1832
 
1834
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php:84
1835
  #: includes/admin/views/html-admin-config.php:41
1836
  #: includes/admin/views/html-admin-config.php:113
1837
+ #: includes/admin/views/html-admin-config.php:197
1838
+ #: includes/admin/views/html-admin-config.php:253
1839
+ #: includes/admin/views/html-admin-config.php:303
1840
+ #: includes/admin/views/html-admin-config.php:356
1841
  msgid "Edit"
1842
  msgstr ""
1843
 
1852
  msgid "Data"
1853
  msgstr ""
1854
 
1855
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:56
1856
  msgid "Grouping"
1857
  msgstr ""
1858
 
1859
+ #: includes/admin/post-types/meta-boxes/class-sp-meta-box-list-details.php:63
1860
  msgid "Sort by"
1861
  msgstr ""
1862
 
1863
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:30
1864
+ #: includes/admin/settings/class-sp-settings-events.php:296
1865
+ #: includes/admin/settings/class-sp-settings-general.php:333
1866
  #: includes/admin/views/html-admin-config.php:84
1867
+ #: includes/admin/views/html-admin-config.php:157
1868
+ #: includes/sp-core-functions.php:361
1869
  msgid "Primary"
1870
  msgstr ""
1871
 
1889
  msgstr ""
1890
 
1891
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:47
1892
+ #: includes/sp-core-functions.php:365
1893
  #, php-format
1894
  msgid "Most %s"
1895
  msgstr ""
1896
 
1897
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:48
1898
+ #: includes/sp-core-functions.php:366
1899
  #, php-format
1900
  msgid "Least %s"
1901
  msgstr ""
1902
 
1903
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php:49
1904
+ #: includes/sp-core-functions.php:367
1905
  #, php-format
1906
  msgid "Equal %s"
1907
  msgstr ""
1908
 
1909
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:92
1910
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:90
1911
+ #: includes/sp-core-functions.php:1204
1912
  msgid "Current Teams"
1913
  msgstr ""
1914
 
1915
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-details.php:107
1916
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-staff-details.php:105
1917
+ #: includes/sp-core-functions.php:1212 templates/player-details.php:73
1918
  #: templates/staff-details.php:49
1919
  msgid "Past Teams"
1920
  msgstr ""
1921
 
1922
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php:39
1923
+ #: includes/sp-core-functions.php:1202 templates/player-statistics.php:84
 
1924
  msgid "Career Total"
1925
  msgstr ""
1926
 
1931
  #: includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php:98
1932
  #: includes/admin/settings/class-sp-settings-teams.php:72
1933
  #: includes/admin/settings/class-sp-settings-teams.php:96
1934
+ #: includes/sp-core-functions.php:341 templates/team-link.php:22
1935
  msgid "Visit Site"
1936
  msgstr ""
1937
 
1956
  msgid "Logos"
1957
  msgstr ""
1958
 
1959
+ #: includes/admin/settings/class-sp-settings-events.php:97
1960
  #: modules/sportspress-calendars.php:244 modules/sportspress-calendars.php:305
1961
  #: modules/sportspress-league-tables.php:207
1962
  #: modules/sportspress-player-lists.php:216
1963
  msgid "Limit"
1964
  msgstr ""
1965
 
1966
+ #: includes/admin/settings/class-sp-settings-events.php:101
1967
  #: modules/sportspress-league-tables.php:211
1968
  msgid "teams"
1969
  msgstr ""
1970
 
1971
+ #: includes/admin/settings/class-sp-settings-events.php:113
 
 
 
 
1972
  msgid "Display maps"
1973
  msgstr ""
1974
 
1975
+ #: includes/admin/settings/class-sp-settings-events.php:121
1976
  #: includes/admin/settings/class-sp-settings-teams.php:81
1977
  msgid "Link venues"
1978
  msgstr ""
1979
 
1980
+ #: includes/admin/settings/class-sp-settings-events.php:129
1981
  msgid "Google Maps"
1982
  msgstr ""
1983
 
1984
+ #: includes/admin/settings/class-sp-settings-events.php:134
1985
  #: includes/admin/settings/class-sp-settings-general.php:94
1986
  #: includes/admin/settings/class-sp-settings-status.php:101
1987
  #: includes/admin/views/html-admin-config.php:101
1988
+ #: includes/admin/views/html-admin-config.php:176
1989
  #: includes/admin/views/html-admin-page-status.php:65
1990
  #: includes/class-sp-ajax.php:206 includes/class-sp-ajax.php:253
1991
  #: includes/class-sp-ajax.php:263 includes/class-sp-ajax.php:280
2006
  msgid "Default"
2007
  msgstr ""
2008
 
2009
+ #: includes/admin/settings/class-sp-settings-events.php:135
2010
  msgid "Satellite"
2011
  msgstr ""
2012
 
2013
+ #: includes/admin/settings/class-sp-settings-events.php:136
2014
  msgid "Hybrid"
2015
  msgstr ""
2016
 
2017
+ #: includes/admin/settings/class-sp-settings-events.php:137
2018
  msgid "Terrain"
2019
  msgstr ""
2020
 
2021
+ #: includes/admin/settings/class-sp-settings-events.php:155
2022
  msgid "Comments"
2023
  msgstr ""
2024
 
2025
+ #: includes/admin/settings/class-sp-settings-events.php:156
2026
  msgid "Allow people to post comments on new articles"
2027
  msgstr ""
2028
 
2029
+ #: includes/admin/settings/class-sp-settings-events.php:185
2030
+ #, fuzzy
2031
+ msgid "Display outcome"
2032
+ msgstr ""
2033
+ "#-#-#-#-# 1extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2034
+ "#-#-#-#-# 2extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2035
+ "#-#-#-#-# 3extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2036
+ "#-#-#-#-# 4extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2037
+ "#-#-#-#-# 5extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2038
+ "#-#-#-#-# 7extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2039
+ "#-#-#-#-# 8extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2040
+ "#-#-#-#-# 9extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2041
+ "#-#-#-#-# 10extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2042
+
2043
+ #: includes/admin/settings/class-sp-settings-events.php:202
2044
+ msgid "Rows"
2045
+ msgstr ""
2046
+
2047
+ #: includes/admin/settings/class-sp-settings-events.php:247
2048
+ #, fuzzy
2049
+ msgid "Display position"
2050
+ msgstr ""
2051
+ "#-#-#-#-# 1extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2052
+ "#-#-#-#-# 2extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2053
+ "#-#-#-#-# 3extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2054
+ "#-#-#-#-# 4extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2055
+ "#-#-#-#-# 5extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2056
+ "#-#-#-#-# 7extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2057
+ "#-#-#-#-# 8extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2058
+ "#-#-#-#-# 9extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2059
+ "#-#-#-#-# 10extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2060
+
2061
+ #: includes/admin/settings/class-sp-settings-events.php:260
2062
+ msgid "Icons"
2063
+ msgstr ""
2064
+
2065
+ #: includes/admin/settings/class-sp-settings-events.php:266
2066
+ msgid "Display squad numbers"
2067
+ msgstr ""
2068
+
2069
+ #: includes/admin/settings/class-sp-settings-events.php:274
2070
+ msgid "Split players by team"
2071
+ msgstr ""
2072
+
2073
+ #: includes/admin/settings/class-sp-settings-events.php:282
2074
+ msgid "Split players by position"
2075
+ msgstr ""
2076
+
2077
+ #: includes/admin/settings/class-sp-settings-events.php:335
2078
+ #: includes/admin/settings/class-sp-settings-events.php:339
2079
  msgid "Delimiter"
2080
  msgstr ""
2081
 
2082
+ #: includes/admin/settings/class-sp-settings-events.php:344
2083
  msgid "Custom:"
2084
  msgstr ""
2085
 
2086
  #: includes/admin/settings/class-sp-settings-general.php:25
2087
+ #: includes/admin/settings/class-sp-settings-modules.php:33
2088
  msgid "General"
2089
  msgstr ""
2090
 
2156
  msgid "Header Offset"
2157
  msgstr ""
2158
 
2159
+ #: includes/admin/settings/class-sp-settings-general.php:298
2160
  msgid "Frontend Styles"
2161
  msgstr ""
2162
 
2163
+ #: includes/admin/settings/class-sp-settings-general.php:319
2164
+ msgid "Customize"
2165
+ msgstr ""
2166
+
2167
+ #: includes/admin/settings/class-sp-settings-general.php:334
2168
  msgid "Background"
2169
  msgstr ""
2170
 
2171
+ #: includes/admin/settings/class-sp-settings-general.php:335
2172
  #: includes/admin/settings/class-sp-settings-text.php:25
2173
  #: includes/admin/settings/class-sp-settings-text.php:40
2174
  msgid "Text"
2175
  msgstr ""
2176
 
2177
+ #: includes/admin/settings/class-sp-settings-general.php:336
2178
  msgid "Heading"
2179
  msgstr ""
2180
 
2181
+ #: includes/admin/settings/class-sp-settings-general.php:343
2182
  msgid "Enable"
2183
  msgstr ""
2184
 
2185
+ #: includes/admin/settings/class-sp-settings-modules.php:30
2186
+ #: includes/admin/settings/class-sp-settings-modules.php:54
2187
+ #: includes/admin/settings/class-sp-settings-modules.php:239
2188
  msgid "Modules"
2189
  msgstr ""
2190
 
2191
+ #: includes/admin/settings/class-sp-settings-modules.php:63
2192
  msgid "SportsPress Pro"
2193
  msgstr ""
2194
 
2195
+ #: includes/admin/settings/class-sp-settings-modules.php:68
2196
  msgid ""
2197
  "Get SportsPress Pro to get access to all modules. You can upgrade any time "
2198
  "without losing any of your data."
2199
  msgstr ""
2200
 
2201
+ #: includes/admin/settings/class-sp-settings-modules.php:70
2202
  msgid "Premium"
2203
  msgstr ""
2204
 
2205
+ #: includes/admin/settings/class-sp-settings-modules.php:71
2206
  msgid "Upgrade Now"
2207
  msgstr ""
2208
 
2209
+ #: includes/admin/settings/class-sp-settings-modules.php:82
2210
  msgid "SportsPress TV"
2211
  msgstr ""
2212
 
2213
+ #: includes/admin/settings/class-sp-settings-modules.php:87
2214
  msgid ""
2215
+ "Offer premium news & highlights from leading global sports. SportsPress TV "
2216
  "will keep your visitors entertained for hours."
2217
  msgstr ""
2218
 
2219
+ #: includes/admin/settings/class-sp-settings-modules.php:89
2220
+ #: includes/admin/settings/class-sp-settings-modules.php:190
2221
  msgid "Free"
2222
  msgstr ""
2223
 
2224
+ #: includes/admin/settings/class-sp-settings-modules.php:90
2225
+ #: includes/admin/settings/class-sp-settings-modules.php:191
2226
+ #: includes/admin/views/html-notice-theme-support.php:8
2227
  msgid "Install Now"
2228
  msgstr ""
2229
 
2230
+ #: includes/admin/settings/class-sp-settings-modules.php:101
2231
  msgid "Twitter Module"
2232
  msgstr ""
2233
 
2234
+ #: includes/admin/settings/class-sp-settings-modules.php:109
2235
  msgid "Follow [link]@ThemeBoy[/link] on Twitter."
2236
  msgstr ""
2237
 
2238
+ #: includes/admin/settings/class-sp-settings-modules.php:114
2239
  msgid ""
2240
  "Help spread the word by tweeting with [link]#SportsPress[/link] and get the "
2241
  "Twitter module for free."
2242
  msgstr ""
2243
 
2244
+ #: includes/admin/settings/class-sp-settings-modules.php:119
2245
+ #: includes/admin/settings/class-sp-settings-modules.php:147
2246
+ msgid "[link]Get the download link[/link]."
2247
  msgstr ""
2248
 
2249
+ #: includes/admin/settings/class-sp-settings-modules.php:122
2250
  msgid "Free with tweet"
2251
  msgstr ""
2252
 
2253
+ #: includes/admin/settings/class-sp-settings-modules.php:123
2254
  msgid "Tweet"
2255
  msgstr ""
2256
 
2257
+ #: includes/admin/settings/class-sp-settings-modules.php:134
2258
  msgid "Birthdays Module"
2259
  msgstr ""
2260
 
2261
+ #: includes/admin/settings/class-sp-settings-modules.php:142
2262
+ #: includes/class-sp-modules.php:63
2263
  msgid ""
2264
  "Add your [stars] on [link]wordpress.org[/link] and get the Birthdays module "
2265
  "for free."
2266
  msgstr ""
2267
 
2268
+ #: includes/admin/settings/class-sp-settings-modules.php:150
2269
  msgid "Free with review"
2270
  msgstr ""
2271
 
2272
+ #: includes/admin/settings/class-sp-settings-modules.php:151
2273
  msgid "Post Review"
2274
  msgstr ""
2275
 
2276
+ #: includes/admin/settings/class-sp-settings-modules.php:165
2277
+ msgid "Current Theme"
2278
+ msgstr ""
2279
+
2280
+ #: includes/admin/settings/class-sp-settings-modules.php:171
2281
+ #: includes/admin/settings/class-sp-settings-modules.php:188
2282
+ msgid "Rookie is a free starter theme for SportsPress designed by ThemeBoy."
2283
+ msgstr ""
2284
+
2285
+ #: includes/admin/settings/class-sp-settings-modules.php:173
2286
+ msgid "Need a Better Theme?"
2287
  msgstr ""
2288
 
2289
+ #: includes/admin/settings/class-sp-settings-modules.php:182
2290
+ msgid "Free SportsPress Theme"
2291
+ msgstr ""
2292
+
2293
+ #: includes/admin/settings/class-sp-settings-modules.php:207
2294
  #, fuzzy
2295
  msgid "Documentation"
2296
  msgstr ""
2304
  "#-#-#-#-# 9extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2305
  "#-#-#-#-# 10extracted.pot (PACKAGE VERSION) #-#-#-#-#\n"
2306
 
2307
+ #: includes/admin/settings/class-sp-settings-modules.php:209
2308
  msgid "Getting Started"
2309
  msgstr ""
2310
 
2311
+ #: includes/admin/settings/class-sp-settings-modules.php:210
2312
+ #: includes/admin/views/html-notice-theme-support.php:9
2313
+ msgid "Theme Integration Guide"
2314
  msgstr ""
2315
 
2316
+ #: includes/admin/settings/class-sp-settings-modules.php:212
2317
+ msgid "Help"
 
2318
  msgstr ""
2319
 
2320
+ #: includes/admin/settings/class-sp-settings-modules.php:214
2321
+ msgid "Support Forums"
2322
  msgstr ""
2323
 
2324
+ #: includes/admin/settings/class-sp-settings-modules.php:215
2325
+ msgid "Feature Requests"
2326
  msgstr ""
2327
 
2328
+ #: includes/admin/settings/class-sp-settings-modules.php:217
2329
+ #: includes/admin/settings/class-sp-settings-modules.php:219
2330
  msgid "Premium Support"
2331
  msgstr ""
2332
 
2333
+ #: includes/admin/settings/class-sp-settings-modules.php:219
2334
+ #: includes/admin/settings/class-sp-settings-modules.php:247
 
 
 
2335
  msgid "Upgrade to Pro"
2336
  msgstr ""
2337
 
2338
+ #: includes/admin/settings/class-sp-settings-modules.php:222
2339
+ msgid "Connect"
2340
  msgstr ""
2341
 
2342
+ #: includes/admin/settings/class-sp-settings-modules.php:224
2343
+ #: includes/class-sp-modules.php:82
2344
+ msgid "Twitter"
 
 
 
2345
  msgstr ""
2346
 
2347
+ #: includes/admin/settings/class-sp-settings-modules.php:225
2348
+ msgid "Facebook"
2349
  msgstr ""
2350
 
2351
+ #: includes/admin/settings/class-sp-settings-modules.php:226
2352
+ msgid "YouTube"
2353
+ msgstr ""
2354
+
2355
+ #: includes/admin/settings/class-sp-settings-modules.php:227
2356
+ msgid "Google+"
2357
+ msgstr ""
2358
+
2359
+ #: includes/admin/settings/class-sp-settings-modules.php:252
2360
  msgid "Learn More"
2361
  msgstr ""
2362
 
2370
 
2371
  #: includes/admin/settings/class-sp-settings-players.php:56
2372
  #: includes/admin/settings/class-sp-settings-staff.php:55
2373
+ #: includes/sp-template-hooks.php:192
2374
  msgid "Photo"
2375
  msgstr ""
2376
 
2613
  msgstr ""
2614
 
2615
  #: includes/admin/settings/class-sp-settings-status.php:293
2616
+ #: includes/admin/views/html-admin-config.php:229
2617
  #: includes/admin/views/html-admin-page-status.php:257
2618
  #: includes/class-sp-post-types.php:253
2619
  #: modules/sportspress-league-tables.php:124
2621
  msgstr ""
2622
 
2623
  #: includes/admin/settings/class-sp-settings-status.php:305
2624
+ #: includes/admin/views/html-admin-config.php:285
2625
  #: includes/admin/views/html-admin-page-status.php:267
2626
  #: includes/class-sp-post-types.php:283
2627
  msgid "Player Metrics"
2628
  msgstr ""
2629
 
2630
  #: includes/admin/settings/class-sp-settings-status.php:315
2631
+ #: includes/admin/views/html-admin-config.php:334
2632
  #: includes/admin/views/html-admin-page-status.php:277
2633
  #: includes/class-sp-post-types.php:343
2634
  msgid "Player Statistics"
2706
 
2707
  #: includes/admin/views/html-admin-config.php:20
2708
  #: includes/admin/views/html-admin-config.php:75
2709
+ #: includes/admin/views/html-admin-config.php:148
2710
  msgid "Used for events."
2711
  msgstr ""
2712
 
2715
  msgstr ""
2716
 
2717
  #: includes/admin/views/html-admin-config.php:99
2718
+ #: includes/admin/views/html-admin-config.php:174
2719
  #, php-format
2720
  msgid "Default (%s)"
2721
  msgstr ""
2722
 
2723
+ #: includes/admin/views/html-admin-config.php:230
2724
  msgid "Used for league tables."
2725
  msgstr ""
2726
 
2727
+ #: includes/admin/views/html-admin-config.php:286
2728
+ #: includes/admin/views/html-admin-config.php:335
2729
  msgid "Used for player lists."
2730
  msgstr ""
2731
 
2736
 
2737
  #: includes/admin/views/html-notice-install.php:8
2738
  #: includes/admin/views/html-notice-template-check.php:6
2739
+ #: includes/admin/views/html-notice-theme-support.php:10
2740
  msgid "Hide this notice"
2741
  msgstr ""
2742
 
2749
  "See the system report for full details."
2750
  msgstr ""
2751
 
2752
+ #: includes/admin/views/html-notice-theme-support.php:5
2753
+ msgid ""
2754
+ "<strong>Your theme does not declare SportsPress support</strong> &#8211; if "
2755
+ "you encounter layout issues please read our integration guide or choose a "
2756
+ "SportsPress theme :)"
2757
+ msgstr ""
2758
+
2759
+ #: includes/admin/views/html-notice-theme-support.php:6
2760
+ msgid "Have you tried the free Rookie theme yet?"
2761
+ msgstr ""
2762
+
2763
  #: includes/class-sp-ajax.php:57 includes/class-sp-ajax.php:101
2764
  #: includes/class-sp-ajax.php:130 includes/class-sp-ajax.php:159
2765
  #: includes/class-sp-ajax.php:188 includes/class-sp-ajax.php:236
2835
  msgstr ""
2836
 
2837
  #: includes/class-sp-ajax.php:265 includes/class-sp-ajax.php:356
2838
+ #: includes/sp-core-functions.php:482
2839
  msgid "This week"
2840
  msgstr ""
2841
 
2842
  #: includes/class-sp-ajax.php:266 includes/class-sp-ajax.php:357
2843
+ #: includes/sp-core-functions.php:483
2844
  msgid "Today"
2845
  msgstr ""
2846
 
3843
  msgid "What's new:"
3844
  msgstr ""
3845
 
3846
+ #: includes/class-sp-league-table.php:402 includes/sp-core-functions.php:1216
3847
  #: templates/league-table.php:52
3848
  msgid "Pos"
3849
  msgstr ""
3850
 
3851
  #: includes/class-sp-modules.php:32
 
 
 
 
 
 
 
 
3852
  msgid "Tournaments"
3853
  msgstr ""
3854
 
3855
+ #: includes/class-sp-modules.php:44
3856
  msgid "Team Colors"
3857
  msgstr ""
3858
 
3859
+ #: includes/class-sp-modules.php:56
3860
  msgid "Birthdays"
3861
  msgstr ""
3862
 
3863
+ #: includes/class-sp-modules.php:58
3864
  msgid "Review on WP.org"
3865
  msgstr ""
3866
 
3867
+ #: includes/class-sp-modules.php:70
3868
  msgid "Directories"
3869
  msgstr ""
3870
 
3871
+ #: includes/class-sp-modules.php:78 modules/sportspress-tutorials.php:91
3872
+ #: modules/sportspress-tutorials.php:102
3873
+ msgid "Tutorials"
3874
  msgstr ""
3875
 
3876
+ #: includes/class-sp-modules.php:84
3877
  msgid "Tweet #SportsPress"
3878
  msgstr ""
3879
 
3880
+ #: includes/class-sp-modules.php:86
3881
  msgid ""
3882
  "Help spread the word by tweeting with #SportsPress and get the Twitter "
3883
  "module for free."
3884
  msgstr ""
3885
 
3886
+ #: includes/class-sp-modules.php:90
3887
  msgid "Branding"
3888
  msgstr ""
3889
 
3890
+ #: includes/class-sp-modules.php:96
3891
  msgid "League Menu"
3892
  msgstr ""
3893
 
3894
+ #: includes/class-sp-modules.php:102
3895
  msgid "Sponsors"
3896
  msgstr ""
3897
 
 
 
 
 
3898
  #: includes/class-sp-post-types.php:39
3899
  msgid "Edit Competition"
3900
  msgstr ""
4024
  msgid "Edit Statistic"
4025
  msgstr ""
4026
 
4027
+ #: includes/class-sp-post-types.php:374 modules/sportspress-tutorials.php:81
4028
  msgid "Edit Event"
4029
  msgstr ""
4030
 
4048
  msgid "View Player"
4049
  msgstr ""
4050
 
4051
+ #: includes/class-sp-post-types.php:467 modules/sportspress-tutorials.php:76
4052
  msgid "Add New Staff"
4053
  msgstr ""
4054
 
4056
  msgid "Edit Staff"
4057
  msgstr ""
4058
 
4059
+ #: includes/sp-core-functions.php:393
4060
  msgid "Average"
4061
  msgstr ""
4062
 
4063
+ #: includes/sp-core-functions.php:451
4064
  msgid "Published"
4065
  msgstr ""
4066
 
4067
+ #: includes/sp-core-functions.php:452
4068
  msgid "Scheduled"
4069
  msgstr ""
4070
 
4071
+ #: includes/sp-core-functions.php:484
4072
  msgid "Date range:"
4073
  msgstr ""
4074
 
4075
+ #: includes/sp-core-functions.php:755 includes/sp-core-functions.php:895
4076
  msgid "(no title)"
4077
  msgstr ""
4078
 
4079
+ #: includes/sp-core-functions.php:772 includes/sp-core-functions.php:852
4080
  msgid "Select All"
4081
  msgstr ""
4082
 
4083
+ #: includes/sp-core-functions.php:833 includes/sp-core-functions.php:836
4084
  msgid "Show all"
4085
  msgstr ""
4086
 
4087
+ #: includes/sp-core-functions.php:1223
4088
  msgid "Substitutes"
4089
  msgstr ""
4090
 
4091
+ #: includes/sp-core-functions.php:1230 modules/sportspress-event-videos.php:56
4092
  #: templates/event-video.php:19
4093
  msgid "Video"
4094
  msgstr ""
4095
 
4096
+ #: includes/sp-core-functions.php:1231 templates/event-blocks.php:142
4097
  #: templates/event-calendar.php:220 templates/event-list.php:362
4098
  msgid "View all events"
4099
  msgstr ""
4100
 
4101
+ #: includes/sp-core-functions.php:1232 templates/player-gallery.php:154
4102
  #: templates/player-list.php:171
4103
  msgid "View all players"
4104
  msgstr ""
4105
 
4106
+ #: includes/sp-core-functions.php:1233 templates/league-table.php:152
4107
  msgid "View full table"
4108
  msgstr ""
4109
 
4110
+ #: includes/sp-core-functions.php:1248
4111
  msgid "Love SportsPress? Help spread the word by rating us 5★ on WordPress.org"
4112
  msgstr ""
4113
 
4114
+ #: includes/sp-template-hooks.php:161
4115
  msgid ""
4116
  "The description is not prominent by default; however, some themes may show "
4117
  "it."
4118
  msgstr ""
4119
 
4120
+ #: includes/sp-template-hooks.php:170
4121
  msgid "Select Icon"
4122
  msgstr ""
4123
 
4124
+ #: includes/sp-template-hooks.php:173
4125
  msgid "Add icon"
4126
  msgstr ""
4127
 
4128
+ #: includes/sp-template-hooks.php:176
4129
  msgid "Remove icon"
4130
  msgstr ""
4131
 
4132
+ #: includes/sp-template-hooks.php:184
4133
  msgid "User"
4134
  msgstr ""
4135
 
4136
+ #: includes/sp-template-hooks.php:195
4137
  msgid "Select Photo"
4138
  msgstr ""
4139
 
4140
+ #: includes/sp-template-hooks.php:198
4141
  msgid "Add photo"
4142
  msgstr ""
4143
 
4144
+ #: includes/sp-template-hooks.php:201
4145
  msgid "Remove photo"
4146
  msgstr ""
4147
 
4148
+ #: includes/sp-template-hooks.php:212
4149
  msgid "Select Logo"
4150
  msgstr ""
4151
 
4152
+ #: includes/sp-template-hooks.php:215
4153
  msgid "Add logo"
4154
  msgstr ""
4155
 
4156
+ #: includes/sp-template-hooks.php:218
4157
  msgid "Remove logo"
4158
  msgstr ""
4159
 
4160
+ #: includes/sp-template-hooks.php:226
4161
  msgid "Date/Time:"
4162
  msgstr ""
4163
 
4164
+ #: includes/sp-template-hooks.php:226
4165
  msgid "Now"
4166
  msgstr ""
4167
 
4305
  msgid "Display season"
4306
  msgstr ""
4307
 
4308
+ #: modules/sportspress-countdowns.php:80
4309
+ msgid "Countdowns"
4310
+ msgstr ""
4311
+
4312
+ #: modules/sportspress-individual-mode.php:104
4313
  #: modules/sportspress-player-lists.php:220
4314
  msgid "players"
4315
  msgstr ""
4326
  msgid "View League Table"
4327
  msgstr ""
4328
 
4329
+ #: modules/sportspress-overview.php:52 modules/sportspress-overview.php:62
4330
+ msgid "Overview"
4331
+ msgstr ""
4332
+
4333
  #: modules/sportspress-player-lists.php:67
4334
  msgid "Add New Player List"
4335
  msgstr ""
4346
  msgid "Display photos"
4347
  msgstr ""
4348
 
4349
+ #: modules/sportspress-tutorials.php:62
4350
+ msgid "Installation"
4351
+ msgstr ""
4352
+
4353
+ #: modules/sportspress-tutorials.php:115
4354
+ msgid "Pop-out"
4355
+ msgstr ""
4356
+
4357
+ #: modules/sportspress-tutorials.php:153
4358
+ msgid "Watch Tutorials"
4359
+ msgstr ""
4360
+
4361
  #: sportspress.php:87 sportspress.php:96
4362
  msgid "Cheatin&#8217; huh?"
4363
  msgstr ""
4364
 
4365
+ #: sportspress.php:141
4366
  msgid "Upgrade"
4367
  msgstr ""
4368
 
license.txt CHANGED
@@ -22,23 +22,11 @@ permission notices:
22
  The SportsPress code has been inspired by and partly adapted from the
23
  beautifully coded WooCommerce plugin by WooThemes.
24
 
25
- "Crown" icon from WebHostingHub Glyphs, released under the SIL Open Font
26
- License.
27
-
28
- "Calendar", "Menu", "List", and "Trash" icons from 80 Shades of White Icons
29
- by Victor Erixon.
30
-
31
- "Eye" and "Cancel" icons from 60 Vicons by Victor Erixon.
32
-
33
- "Clock" icon from Entypo by Daniel Bruce, released under CC BY-SA 3.0.
34
-
35
- "Smile" icon from Font Awesome by Dave Gancy, released under the GPL.
36
-
37
- "Megaphone" icon modified from WebHostingHub Glyphs, released under the SIL
38
- Open Font License. Height decreased.
39
-
40
- "Shield" icon modified from Font Awesome by Dave Gancy, released under the
41
- GPL. Inner spacing added.
42
 
43
  Wherever third party code has been used, credit has been given in the code's
44
  comments.
22
  The SportsPress code has been inspired by and partly adapted from the
23
  beautifully coded WooCommerce plugin by WooThemes.
24
 
25
+ SportsPress includes icons from WebHostingHub Glyphs, released under the
26
+ SIL Open Font License; 80 Shades of White Icons by Victor Erixon; Entypo
27
+ and Entypo+ by Daniel Bruce, released under CC BY-SA 3.0; Font Awesome by
28
+ Dave Gancy, released under the GPL. The custom designed icons included in
29
+ SportsPress are released under the GPL.
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  Wherever third party code has been used, credit has been given in the code's
32
  comments.
modules/sportspress-countdowns.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
5
  Description: Add countdown widgets to SportsPress.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
- Version: 1.6.1
9
  */
10
 
11
  // Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Countdowns' ) ) :
17
  * Main SportsPress Countdowns Class
18
  *
19
  * @class SportsPress_Countdowns
20
- * @version 1.6.1
21
  */
22
  class SportsPress_Countdowns {
23
 
@@ -41,7 +41,7 @@ class SportsPress_Countdowns {
41
  */
42
  private function define_constants() {
43
  if ( !defined( 'SP_COUNTDOWNS_VERSION' ) )
44
- define( 'SP_COUNTDOWNS_VERSION', '1.6.1' );
45
 
46
  if ( !defined( 'SP_COUNTDOWNS_URL' ) )
47
  define( 'SP_COUNTDOWNS_URL', plugin_dir_url( __FILE__ ) );
@@ -100,6 +100,4 @@ class SportsPress_Countdowns {
100
 
101
  endif;
102
 
103
- if ( get_option( 'sportspress_load_countdowns_module', 'yes' ) == 'yes' ) {
104
- new SportsPress_Countdowns();
105
- }
5
  Description: Add countdown widgets to SportsPress.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
+ Version: 1.7.4
9
  */
10
 
11
  // Exit if accessed directly
17
  * Main SportsPress Countdowns Class
18
  *
19
  * @class SportsPress_Countdowns
20
+ * @version 1.7.4
21
  */
22
  class SportsPress_Countdowns {
23
 
41
  */
42
  private function define_constants() {
43
  if ( !defined( 'SP_COUNTDOWNS_VERSION' ) )
44
+ define( 'SP_COUNTDOWNS_VERSION', '1.7.4' );
45
 
46
  if ( !defined( 'SP_COUNTDOWNS_URL' ) )
47
  define( 'SP_COUNTDOWNS_URL', plugin_dir_url( __FILE__ ) );
100
 
101
  endif;
102
 
103
+ new SportsPress_Countdowns();
 
 
modules/sportspress-event-videos.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
5
  Description: Add videos to SportsPress events.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
- Version: 1.6
9
  */
10
 
11
  // Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Event_Videos' ) ) :
17
  * Main SportsPress Event Videos Class
18
  *
19
  * @class SportsPress_Event_Videos
20
- * @version 1.6
21
  */
22
  class SportsPress_Event_Videos {
23
 
@@ -37,7 +37,7 @@ class SportsPress_Event_Videos {
37
  */
38
  private function define_constants() {
39
  if ( !defined( 'SP_EVENT_VIDEOS_VERSION' ) )
40
- define( 'SP_EVENT_VIDEOS_VERSION', '1.6' );
41
 
42
  if ( !defined( 'SP_EVENT_VIDEOS_URL' ) )
43
  define( 'SP_EVENT_VIDEOS_URL', plugin_dir_url( __FILE__ ) );
@@ -65,6 +65,4 @@ class SportsPress_Event_Videos {
65
 
66
  endif;
67
 
68
- if ( get_option( 'sportspress_load_event_videos_module', 'yes' ) == 'yes' ) {
69
- new SportsPress_Event_Videos();
70
- }
5
  Description: Add videos to SportsPress events.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
+ Version: 1.7.4
9
  */
10
 
11
  // Exit if accessed directly
17
  * Main SportsPress Event Videos Class
18
  *
19
  * @class SportsPress_Event_Videos
20
+ * @version 1.7.4
21
  */
22
  class SportsPress_Event_Videos {
23
 
37
  */
38
  private function define_constants() {
39
  if ( !defined( 'SP_EVENT_VIDEOS_VERSION' ) )
40
+ define( 'SP_EVENT_VIDEOS_VERSION', '1.7.4' );
41
 
42
  if ( !defined( 'SP_EVENT_VIDEOS_URL' ) )
43
  define( 'SP_EVENT_VIDEOS_URL', plugin_dir_url( __FILE__ ) );
65
 
66
  endif;
67
 
68
+ new SportsPress_Event_Videos();
 
 
modules/sportspress-importers.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: SportsPress Importers
4
+ Plugin URI: http://themeboy.com/
5
+ Description: Add importers to SportsPress.
6
+ Author: ThemeBoy
7
+ Author URI: http://themeboy.com/
8
+ Version: 1.7.3
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+ if ( ! class_exists( 'SportsPress_Importers' ) ) :
15
+
16
+ /**
17
+ * Main SportsPress Importers Class
18
+ *
19
+ * @class SportsPress_Importers
20
+ * @version 1.7
21
+ */
22
+ class SportsPress_Importers {
23
+
24
+ /**
25
+ * Constructor
26
+ */
27
+ public function __construct() {
28
+ // Define constants
29
+ $this->define_constants();
30
+
31
+ add_action( 'init', array( $this, 'includes' ) );
32
+ }
33
+
34
+ /**
35
+ * Define constants.
36
+ */
37
+ private function define_constants() {
38
+ if ( !defined( 'SP_IMPORTERS_VERSION' ) )
39
+ define( 'SP_IMPORTERS_VERSION', '1.7' );
40
+
41
+ if ( !defined( 'SP_IMPORTERS_URL' ) )
42
+ define( 'SP_IMPORTERS_URL', plugin_dir_url( __FILE__ ) );
43
+
44
+ if ( !defined( 'SP_IMPORTERS_DIR' ) )
45
+ define( 'SP_IMPORTERS_DIR', plugin_dir_path( __FILE__ ) );
46
+ }
47
+
48
+ /**
49
+ * Include importers.
50
+ */
51
+ public function includes() {
52
+ if ( is_admin() && defined( 'WP_LOAD_IMPORTERS' ) ) {
53
+ include( SP()->plugin_path() . '/includes/admin/class-sp-admin-importers.php' );
54
+ }
55
+ }
56
+ }
57
+
58
+ endif;
59
+
60
+ new SportsPress_Importers();
modules/sportspress-individual-mode.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
5
  Description: Modify SportsPress to work with individual (player vs player) sports.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
- Version: 1.6
9
  */
10
 
11
  // Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Individual_Mode' ) ) :
17
  * Main SportsPress Individual Mode Class
18
  *
19
  * @class SportsPress_Individual_Mode
20
- * @version 1.6
21
  */
22
  class SportsPress_Individual_Mode {
23
 
@@ -38,6 +38,7 @@ class SportsPress_Individual_Mode {
38
  add_filter( 'sportspress_register_post_type_table', array( $this, 'move_table_post_type' ), 99 );
39
  add_filter( 'sportspress_settings_tabs_array', array( $this, 'remove_team_settings_tab' ), 99 );
40
  add_filter( 'sportspress_get_settings_pages', array( $this, 'remove_team_settings' ), 99 );
 
41
  add_filter( 'sportspress_player_options', array( $this, 'add_player_options' ), 99 );
42
  add_filter( 'sportspress_player_settings', array( $this, 'add_player_settings' ), 99 );
43
  add_filter( 'sportspress_next_steps', array( $this, 'remove_team_step' ), 99 );
@@ -56,7 +57,7 @@ class SportsPress_Individual_Mode {
56
  add_filter( 'sportspress_player_teams', '__return_false' );
57
  add_filter( 'sportspress_staff_teams', '__return_false' );
58
  add_filter( 'sportspress_list_team_selector', '__return_false' );
59
- add_filter( 'sportspress_split_performance_tables', '__return_false' );
60
 
61
  // Remove templates
62
  //remove_action( 'sportspress_single_event_content', 'sportspress_output_event_performance', 50 );
@@ -67,7 +68,7 @@ class SportsPress_Individual_Mode {
67
  */
68
  private function define_constants() {
69
  if ( !defined( 'SP_INDIVIDUAL_MODE_VERSION' ) )
70
- define( 'SP_INDIVIDUAL_MODE_VERSION', '1.6' );
71
 
72
  if ( !defined( 'SP_INDIVIDUAL_MODE_URL' ) )
73
  define( 'SP_INDIVIDUAL_MODE_URL', plugin_dir_url( __FILE__ ) );
@@ -171,6 +172,18 @@ class SportsPress_Individual_Mode {
171
  return $settings;
172
  }
173
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  /**
175
  * Add options from teams to players tab.
176
  */
@@ -265,6 +278,6 @@ class SportsPress_Individual_Mode {
265
 
266
  endif;
267
 
268
- if ( get_option( 'sportspress_load_individual_mode_module', 'yes' ) == 'yes' ) {
269
  new SportsPress_Individual_Mode();
270
  }
5
  Description: Modify SportsPress to work with individual (player vs player) sports.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
+ Version: 1.7.2
9
  */
10
 
11
  // Exit if accessed directly
17
  * Main SportsPress Individual Mode Class
18
  *
19
  * @class SportsPress_Individual_Mode
20
+ * @version 1.7.2
21
  */
22
  class SportsPress_Individual_Mode {
23
 
38
  add_filter( 'sportspress_register_post_type_table', array( $this, 'move_table_post_type' ), 99 );
39
  add_filter( 'sportspress_settings_tabs_array', array( $this, 'remove_team_settings_tab' ), 99 );
40
  add_filter( 'sportspress_get_settings_pages', array( $this, 'remove_team_settings' ), 99 );
41
+ add_filter( 'sportspress_performance_options', array( $this, 'remove_performance_options' ), 99 );
42
  add_filter( 'sportspress_player_options', array( $this, 'add_player_options' ), 99 );
43
  add_filter( 'sportspress_player_settings', array( $this, 'add_player_settings' ), 99 );
44
  add_filter( 'sportspress_next_steps', array( $this, 'remove_team_step' ), 99 );
57
  add_filter( 'sportspress_player_teams', '__return_false' );
58
  add_filter( 'sportspress_staff_teams', '__return_false' );
59
  add_filter( 'sportspress_list_team_selector', '__return_false' );
60
+ add_filter( 'option_sportspress_event_split_players_by_team', '__return_false' );
61
 
62
  // Remove templates
63
  //remove_action( 'sportspress_single_event_content', 'sportspress_output_event_performance', 50 );
68
  */
69
  private function define_constants() {
70
  if ( !defined( 'SP_INDIVIDUAL_MODE_VERSION' ) )
71
+ define( 'SP_INDIVIDUAL_MODE_VERSION', '1.7.2' );
72
 
73
  if ( !defined( 'SP_INDIVIDUAL_MODE_URL' ) )
74
  define( 'SP_INDIVIDUAL_MODE_URL', plugin_dir_url( __FILE__ ) );
172
  return $settings;
173
  }
174
 
175
+ /**
176
+ * Remove option to split players by team.
177
+ */
178
+ public function remove_performance_options( $options ) {
179
+ foreach ( $options as $index => $option ) {
180
+ if ( 'sportspress_event_split_players_by_team' == sp_array_value( $option, 'id' ) ) {
181
+ unset( $options[ $index ] );
182
+ }
183
+ }
184
+ return $options;
185
+ }
186
+
187
  /**
188
  * Add options from teams to players tab.
189
  */
278
 
279
  endif;
280
 
281
+ if ( get_option( 'sportspress_load_individual_mode_module', 'no' ) == 'yes' ) {
282
  new SportsPress_Individual_Mode();
283
  }
modules/sportspress-overview.php ADDED
@@ -0,0 +1,402 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: SportsPress Overview
4
+ Plugin URI: http://themeboy.com/
5
+ Description: Display a visual overview of SportsPress data.
6
+ Author: ThemeBoy
7
+ Author URI: http://themeboy.com/
8
+ Version: 1.7.3
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+ if ( ! class_exists( 'SportsPress_Overview' ) ) :
15
+
16
+ /**
17
+ * Main SportsPress Overview Class
18
+ *
19
+ * @class SportsPress_Overview
20
+ * @version 1.7
21
+ */
22
+ class SportsPress_Overview {
23
+
24
+ /**
25
+ * Constructor
26
+ */
27
+ public function __construct() {
28
+ // Define constants
29
+ $this->define_constants();
30
+
31
+ add_action( 'admin_menu', array( $this, 'admin_menu' ), 11 );
32
+ }
33
+
34
+ /**
35
+ * Define constants.
36
+ */
37
+ private function define_constants() {
38
+ if ( !defined( 'SP_OVERVIEW_VERSION' ) )
39
+ define( 'SP_OVERVIEW_VERSION', '1.7' );
40
+
41
+ if ( !defined( 'SP_OVERVIEW_URL' ) )
42
+ define( 'SP_OVERVIEW_URL', plugin_dir_url( __FILE__ ) );
43
+
44
+ if ( !defined( 'SP_OVERVIEW_DIR' ) )
45
+ define( 'SP_OVERVIEW_DIR', plugin_dir_path( __FILE__ ) );
46
+ }
47
+
48
+ /**
49
+ * Add menu item
50
+ */
51
+ public function admin_menu() {
52
+ add_submenu_page( 'sportspress', __( 'Overview', 'sportspress' ), __( 'Overview', 'sportspress' ), 'manage_sportspress', 'sportspress-overview', array( $this, 'overview_page' ) );
53
+ }
54
+
55
+ /**
56
+ * Init the overview page
57
+ */
58
+ public function overview_page() {
59
+ ?>
60
+ <div class="wrap sportspress sportspress-overview-wrap">
61
+ <h2>
62
+ <?php _e( 'Overview', 'sportspress' ); ?>
63
+ </h2>
64
+ <div class="sp-sitemap">
65
+
66
+ <?php $primary_post_types = sp_primary_post_types(); $hierarchy = sp_post_type_hierarchy(); ?>
67
+
68
+ <?php if ( ! isset( $_GET['type'] ) && ! isset( $_GET['taxonomy'] ) ): // Overview ?>
69
+
70
+ <ul class="sp-utility">
71
+ <?php foreach ( $primary_post_types as $post_type ): if ( post_type_exists( $post_type ) ): $object = get_post_type_object( $post_type ); ?>
72
+ <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>
73
+ <?php endif; endforeach; ?>
74
+ </ul>
75
+
76
+ <?php $taxonomies = sp_taxonomies(); ?>
77
+ <ul class="sp-primary col<?php echo sizeof( $taxonomies ); ?>">
78
+ <li class="sp-home"><a class="button disabled"><?php _e( 'SportsPress', 'sportspress' ); ?></a></li>
79
+ <?php foreach ( $taxonomies as $taxonomy ): $object = get_taxonomy( $taxonomy ); $post_types = apply_filters( 'sportspress_sitemap_taxonomy_post_types', $object->object_type, $taxonomy ); ?>
80
+ <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>
81
+ <?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
82
+ <ul>
83
+ <?php if ( sizeof( $terms ) > 0 ): ?>
84
+ <?php foreach ( $terms as $term ): ?>
85
+ <?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
86
+ <li>
87
+ <?php if ( ! $children && sizeof ( $post_types ) <= 1 ): ?>
88
+ <?php if ( sizeof( $post_types ) ): foreach ( $post_types as $post_type ): ?>
89
+ <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>
90
+ <?php endforeach; endif; ?>
91
+ <?php else: ?>
92
+ <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>
93
+ <?php endif; ?>
94
+
95
+ <?php if ( $children ): ?>
96
+ <ul>
97
+ <?php foreach ( $children as $child ): ?>
98
+ <li>
99
+ <?php if ( sizeof( $post_types ) <= 1 ): ?>
100
+ <?php if ( sizeof( $post_types ) ): foreach ( $post_types as $post_type ): ?>
101
+ <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>
102
+ <?php endforeach; endif; ?>
103
+ <?php else: ?>
104
+ <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>
105
+ <?php endif; ?>
106
+ </li>
107
+ <?php endforeach; ?>
108
+ </ul>
109
+ <?php endif; ?>
110
+ </li>
111
+ <?php endforeach; ?>
112
+ <?php else: ?>
113
+ <li><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'taxonomy' => $taxonomy ), 'edit-tags.php' ) ) ); ?>"><?php echo $object->labels->add_new_item; ?></a></li>
114
+ <?php endif; ?>
115
+ </ul>
116
+ </li>
117
+ <?php endforeach; ?>
118
+ </ul>
119
+
120
+ <?php elseif ( ! isset( $_GET['type'] ) ): $taxonomy = $_GET['taxonomy']; $taxonomy_object = get_taxonomy( $taxonomy ); ?>
121
+
122
+ <?php $post_types = apply_filters( 'sportspress_sitemap_taxonomy_post_types', $taxonomy_object->object_type, $taxonomy ); ?>
123
+
124
+ <?php if ( isset( $_GET['term'] ) ): $term = get_term( $_GET['term'], $taxonomy ); // Posts in term ?>
125
+
126
+ <ul class="sp-utility">
127
+ <li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'taxonomy' => $taxonomy ), 'edit-tags.php' ) ) ); ?>"><?php echo $taxonomy_object->labels->edit_item; ?></a></li>
128
+ </ul>
129
+
130
+ <?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
131
+
132
+ <?php if ( $terms ): // Has children ?>
133
+
134
+ <ul class="sp-primary col<?php echo sizeof( $terms ) + 1; ?>">
135
+ <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>
136
+ <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>
137
+ <li class="sp-home"><a class="button disabled"><?php echo wp_strip_all_tags( $term->name ); ?></a></li>
138
+ <li><a class="button disabled"><?php _e( 'All', 'sportspress' ); ?></a>
139
+ <ul>
140
+ <?php if ( sizeof ( $post_types ) ): ?>
141
+ <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
142
+ <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view"></span></a></li>
143
+ <?php endif; endforeach; ?>
144
+ <?php endif; ?>
145
+ </ul>
146
+ </li>
147
+ <?php foreach ( $terms as $term ): ?>
148
+ <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>
149
+ <?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
150
+
151
+ <?php if ( $children ): // Has children ?>
152
+
153
+ <ul>
154
+ <?php foreach ( $children as $child ): ?>
155
+ <li><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-notification"></span></a>
156
+
157
+ <?php if ( sizeof ( $post_types ) ): // Has associated post types ?>
158
+ <ul>
159
+ <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
160
+ <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view wp-ui-text-highlight"></span></a></li>
161
+ <?php endif; endforeach; ?>
162
+ </ul>
163
+ <?php endif; ?>
164
+
165
+ </li>
166
+ <?php endforeach; ?>
167
+ </ul>
168
+
169
+ <?php elseif ( sizeof ( $post_types ) ): // Has associated post types ?>
170
+
171
+ <ul>
172
+ <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
173
+ <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view wp-ui-text-notification"></span></a></li>
174
+ <?php endif; endforeach; ?>
175
+ </ul>
176
+
177
+ <?php endif; ?>
178
+
179
+ </li>
180
+ <?php endforeach; ?>
181
+ </ul>
182
+
183
+ <?php else: // No children ?>
184
+
185
+ <ul class="sp-primary col<?php echo sizeof( $post_types ); ?>">
186
+ <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>
187
+ <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>
188
+ <?php if ( $term->parent ): $parent = get_term( $term->parent, $taxonomy ); ?>
189
+ <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>
190
+ <?php endif; ?>
191
+ <li class="sp-home"><a class="button disabled"><?php echo wp_strip_all_tags( $term->name ); ?></a></li>
192
+ <?php if ( sizeof ( $taxonomy_object->object_type ) ): ?>
193
+ <ul>
194
+ <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
195
+ <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view"></span></a></li>
196
+ <?php endif; endforeach; ?>
197
+ </ul>
198
+ <?php endif; ?>
199
+ </ul>
200
+
201
+ <?php endif; ?>
202
+
203
+ <?php else: // Taxonomy archive ?>
204
+
205
+ <?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
206
+ <ul class="sp-primary col<?php echo sizeof( $terms ) + 1; ?>">
207
+ <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>
208
+ <li class="sp-home"><a class="button disabled"><?php echo $taxonomy_object->labels->name; ?></a></li>
209
+ <?php if ( $terms ): ?>
210
+ <?php foreach ( $terms as $term ): ?>
211
+ <li>
212
+ <?php if ( sizeof( $post_types ) <= 1 ): $post_type = reset( $post_types ); ?>
213
+ <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>
214
+ <?php else: ?>
215
+ <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>
216
+ <?php endif; ?>
217
+ <?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
218
+ <ul>
219
+
220
+ <?php if ( $children ): // Has children ?>
221
+
222
+ <?php if ( sizeof( $post_types ) <= 1 ): ?>
223
+
224
+ <?php foreach ( $children as $child ): ?>
225
+ <?php if ( sizeof ( $post_types ) ): ?>
226
+ <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
227
+ <li><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-notification"></span></a></li>
228
+ <?php endif; endforeach; ?>
229
+ <?php endif; ?>
230
+ <?php endforeach; ?>
231
+
232
+ <?php else: ?>
233
+
234
+ <?php if ( sizeof ( $post_types ) ): ?>
235
+ <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
236
+ <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view wp-ui-text-notification"></span></a></li>
237
+ <?php endif; endforeach; ?>
238
+ <li></li>
239
+ <li></li>
240
+ <?php endif; ?>
241
+
242
+ <?php foreach ( $children as $child ): ?>
243
+ <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>
244
+ <?php if ( sizeof ( $post_types ) ): ?>
245
+ <ul>
246
+ <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
247
+ <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view wp-ui-text-highlight"></span></a></li>
248
+ <?php endif; endforeach; ?>
249
+ </ul>
250
+ <?php endif; ?>
251
+ </li>
252
+ <?php endforeach; ?>
253
+
254
+ <?php endif; ?>
255
+
256
+ <?php else: // No children ?>
257
+
258
+ <?php if ( sizeof ( $post_types ) > 1 ): ?>
259
+ <?php foreach ( $post_types as $post_type ): if ( post_type_exists( $post_type ) ): $post_object = get_post_type_object( $post_type ); ?>
260
+ <li><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 $post_object->labels->name; ?><span class="dashicons dashicons-list-view wp-ui-text-notification"></span></a></li>
261
+ <?php endif; endforeach; ?>
262
+ <?php endif; ?>
263
+
264
+ <?php endif; ?>
265
+
266
+ </ul>
267
+ </li>
268
+ <?php endforeach; ?>
269
+ <?php endif; ?>
270
+ <li><a class="button button-primary action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'taxonomy' => $taxonomy ), 'edit-tags.php' ) ) ); ?>"><?php echo $taxonomy_object->labels->add_new_item; ?><span class="dashicons dashicons-plus"></span></a></li>
271
+ </ul>
272
+
273
+ <?php endif; ?>
274
+
275
+ <?php elseif ( ! isset( $_GET['taxonomy'] ) ): $post_type = $_GET['type']; // Post type archive ?>
276
+
277
+ <?php
278
+ $post_object = get_post_type_object( $post_type );
279
+ $taxonomies = get_object_taxonomies( $post_type, 'objects' );
280
+ ?>
281
+
282
+ <ul class="sp-utility">
283
+ <li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type ), 'post-new.php' ) ) ); ?>"><?php echo $post_object->labels->add_new_item; ?></a></li>
284
+ <li><a class="button" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type ), 'edit.php' ) ) ); ?>"><?php _e( 'View All', 'sportspress' ); ?></a></li>
285
+ </ul>
286
+
287
+ <?php if ( sizeof( $taxonomies ) || sizeof( sp_array_value( $hierarchy, $post_type ) ) ): // Display taxonomies ?>
288
+ <ul class="sp-primary col<?php echo sizeof( $taxonomies ) + sizeof( sp_array_value( $hierarchy, $post_type ) ); ?>">
289
+ <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>
290
+ <li class="sp-home"><a class="button disabled"><?php echo $post_object->labels->name; ?></a></li>
291
+ <?php foreach ( sp_array_value( $hierarchy, $post_type ) as $secondary_post_type ): if ( post_type_exists( $secondary_post_type ) ): $secondary_post_object = get_post_type_object( $secondary_post_type ); ?>
292
+ <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>
293
+ <?php $posts = get_posts( array( 'posts_per_page' => -1, 'post_type' => $secondary_post_type ) ); ?>
294
+ <?php if ( $posts ): ?>
295
+ <ul>
296
+ <?php foreach ( $posts as $post ): ?>
297
+ <li><a class="button action" href="<?php echo esc_url( get_edit_post_link( $post->ID ) ); ?>"><?php echo wp_strip_all_tags( $post->post_title ); ?><span class="dashicons dashicons-edit wp-ui-text-notification"></span></a></li>
298
+ <?php endforeach; ?>
299
+ </ul>
300
+ <?php endif; ?>
301
+ </li>
302
+ <?php endif; endforeach; ?>
303
+ <?php foreach ( $taxonomies as $taxonomy_object ): $taxonomy = $taxonomy_object->name; ?>
304
+ <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>
305
+ <?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
306
+ <?php if ( $terms ): ?>
307
+ <ul>
308
+ <?php foreach ( $terms as $term ): ?>
309
+ <li><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>
310
+ <?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
311
+
312
+ <?php if ( $children ): // Has children ?>
313
+
314
+ <ul>
315
+ <?php foreach ( $children as $child ): ?>
316
+ <li><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></li>
317
+ <?php endforeach; ?>
318
+ </ul>
319
+
320
+ <?php endif; ?>
321
+
322
+ </li>
323
+ <?php endforeach; ?>
324
+ </ul>
325
+ <?php endif; ?>
326
+ </li>
327
+ <?php endforeach; ?>
328
+ </ul>
329
+
330
+ <?php else: // Display posts ?>
331
+
332
+ <?php $posts = get_posts( array( 'posts_per_page' => -1, 'post_type' => $post_type ) ); ?>
333
+ <ul class="sp-primary col<?php echo sizeof( $posts ); ?>">
334
+ <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>
335
+ <li class="sp-home"><a class="button disabled"><?php echo $post_object->labels->name; ?></a></li>
336
+ <?php if ( $posts ): ?>
337
+ <?php foreach ( $posts as $post ): ?>
338
+ <li><a class="button button-primary action" href="<?php echo esc_url( get_edit_post_link( $post->ID ) ); ?>"><?php echo wp_strip_all_tags( $post->post_title ); ?><span class="dashicons dashicons-edit"></span></a></li>
339
+ <?php endforeach; ?>
340
+ <?php else: ?>
341
+ <li><a class="button disabled"><?php _e( 'No results found.', 'sportspress' ); ?></a></li>
342
+ <?php endif; ?>
343
+ </ul>
344
+
345
+ <?php endif; ?>
346
+
347
+ <?php else: $post_type = $_GET['type']; $taxonomy = $_GET['taxonomy']; // Filtered posts ?>
348
+
349
+ <?php if ( post_type_exists( $post_type ) ): ?>
350
+
351
+ <?php $post_object = get_post_type_object( $post_type ); $taxonomy_object = get_taxonomy( $_GET['taxonomy'] ); ?>
352
+
353
+ <?php $terms = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => 0, 'orderby' => 'slug' ) ); ?>
354
+
355
+ <ul class="sp-primary col<?php echo sizeof( $terms ) + 1; ?>">
356
+ <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>
357
+ <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>
358
+ <li class="sp-home"><a class="button disabled"><?php echo $taxonomy_object->labels->name; ?></a></li>
359
+
360
+ <?php if ( $terms ): foreach ( $terms as $term ): ?>
361
+ <li><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>
362
+ <?php $children = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $term->term_id, 'orderby' => 'slug' ) ); ?>
363
+
364
+ <?php if ( $children ): // Has children ?>
365
+
366
+ <ul>
367
+ <?php foreach ( $children as $child ): ?>
368
+ <li><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-notification"></span></a>
369
+ <?php $grandchildren = get_terms( $taxonomy, array( 'hide_empty' => false, 'parent' => $child->term_id, 'orderby' => 'slug' ) ); ?>
370
+
371
+ <?php if ( $grandchildren ): // Has grandchildren ?>
372
+ <ul>
373
+ <?php foreach ( $grandchildren as $grandchild ): ?>
374
+ <li><a class="button action" href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => $post_type, $taxonomy => $grandchild->slug ), 'edit.php' ) ) ); ?>"><?php echo $grandchild->name; ?><span class="dashicons dashicons-list-view wp-ui-text-highlight"></span></a></li>
375
+ <?php endforeach; ?>
376
+ </ul>
377
+ <?php endif; ?>
378
+
379
+ </li>
380
+ <?php endforeach; ?>
381
+ </ul>
382
+
383
+ <?php endif; ?>
384
+
385
+ </li>
386
+ <?php endforeach; endif; ?>
387
+ <li><a class="button button-primary" href="<?php echo esc_url( admin_url( add_query_arg( array( 'taxonomy' => $taxonomy ), 'edit-tags.php' ) ) ); ?>"><?php echo $taxonomy_object->labels->add_new_item; ?></a></li>
388
+ </ul>
389
+
390
+ <?php endif; ?>
391
+
392
+ <?php endif; ?>
393
+ </div>
394
+ <?php do_action( 'sportspress_overview_page' ); ?>
395
+ </div>
396
+ <?php
397
+ }
398
+ }
399
+
400
+ endif;
401
+
402
+ new SportsPress_Overview();
modules/sportspress-tutorials.php ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: SportsPress Tutorials
4
+ Plugin URI: http://themeboy.com/
5
+ Description: Display SportsPress video tutorials.
6
+ Author: ThemeBoy
7
+ Author URI: http://themeboy.com/
8
+ Version: 1.7.4
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+ if ( ! class_exists( 'SportsPress_Tutorials' ) ) :
15
+
16
+ /**
17
+ * Main SportsPress Tutorials Class
18
+ *
19
+ * @class SportsPress_Tutorials
20
+ * @version 1.7.4
21
+ */
22
+ class SportsPress_Tutorials {
23
+
24
+ /**
25
+ * @var array
26
+ */
27
+ public $ids = array();
28
+
29
+ /**
30
+ * Constructor
31
+ */
32
+ public function __construct() {
33
+ // Define constants
34
+ $this->define_constants();
35
+
36
+ add_action( 'init', array( $this, 'get_video_ids' ) );
37
+ add_action( 'admin_menu', array( $this, 'admin_menu' ), 10 );
38
+ add_action( 'sportspress_screen_ids', array( $this, 'screen_ids' ) );
39
+ add_filter( 'sportspress_next_steps', array( $this, 'next_steps' ) );
40
+ }
41
+
42
+ /**
43
+ * Define constants.
44
+ */
45
+ private function define_constants() {
46
+ if ( !defined( 'SP_TUTORIALS_VERSION' ) )
47
+ define( 'SP_TUTORIALS_VERSION', '1.7.4' );
48
+
49
+ if ( !defined( 'SP_TUTORIALS_URL' ) )
50
+ define( 'SP_TUTORIALS_URL', plugin_dir_url( __FILE__ ) );
51
+
52
+ if ( !defined( 'SP_TUTORIALS_DIR' ) )
53
+ define( 'SP_TUTORIALS_DIR', plugin_dir_path( __FILE__ ) );
54
+ }
55
+
56
+ /**
57
+ * Get video IDs.
58
+ */
59
+ public function get_video_ids() {
60
+ $this->ids = apply_filters( 'sportspress_tutorial_videos', array(
61
+ __( 'Get Started', 'sportspress' ) => apply_filters( 'sportspress_get_started_tutorial_videos', array(
62
+ __( 'Installation', 'sportspress' ) => '//www.youtube-nocookie.com/embed/nE8-RlbotmU?rel=0&amp;showinfo=0',
63
+ __( 'Competitions', 'sportspress' ) . ' &amp; ' . __( 'Seasons', 'sportspress' ) => '//www.youtube-nocookie.com/embed/XAf2EsDrf8M?rel=0&amp;showinfo=0',
64
+ __( 'Venues', 'sportspress' ) => '//www.youtube-nocookie.com/embed/iTZnC_7VvYk?rel=0&amp;showinfo=0',
65
+ __( 'Positions', 'sportspress' ) . ' &amp; ' . __( 'Jobs', 'sportspress' ) => '//www.youtube-nocookie.com/embed/g6QKbDH05n0?rel=0&amp;showinfo=0',
66
+ ) ),
67
+ __( 'Teams', 'sportspress' ) => apply_filters( 'sportspress_team_tutorial_videos', array(
68
+ __( 'Add New Team', 'sportspress' ) => '//www.youtube-nocookie.com/embed/x8GoxaHwC9U?rel=0&amp;showinfo=0',
69
+ __( 'League Tables', 'sportspress' ) => '//www.youtube-nocookie.com/embed/8AXh399Vstc?rel=0&amp;showinfo=0',
70
+ ) ),
71
+ __( 'Players', 'sportspress' ) . ' &amp; ' . __( 'Staff', 'sportspress' ) => array_merge(
72
+ apply_filters( 'sportspress_player_tutorial_videos', array(
73
+ __( 'Add New Player', 'sportspress' ) => '//www.youtube-nocookie.com/embed/wWYQNHITz-g?rel=0&amp;showinfo=0',
74
+ ) ),
75
+ apply_filters( 'sportspress_staff_tutorial_videos', array(
76
+ __( 'Add New Staff', 'sportspress' ) => '//www.youtube-nocookie.com/embed/cxm2S7qYSL4?rel=0&amp;showinfo=0',
77
+ ) )
78
+ ),
79
+ __( 'Events', 'sportspress' ) => apply_filters( 'sportspress_event_tutorial_videos', array(
80
+ __( 'Add New Event', 'sportspress' ) => '//www.youtube-nocookie.com/embed/UA25lgqgnSc?rel=0&amp;showinfo=0',
81
+ __( 'Edit Event', 'sportspress' ) => '//www.youtube-nocookie.com/embed/nL0ObdPMyBM?rel=0&amp;showinfo=0',
82
+ __( 'Calendars', 'sportspress' ) => '//www.youtube-nocookie.com/embed/NIHBKMMqN0s?rel=0&amp;showinfo=0',
83
+ ) ),
84
+ ) );
85
+ }
86
+
87
+ /**
88
+ * Add menu item
89
+ */
90
+ public function admin_menu() {
91
+ add_submenu_page( 'sportspress', __( 'Tutorials', 'sportspress' ), __( 'Tutorials', 'sportspress' ), 'manage_sportspress', 'sportspress-tutorials', array( $this, 'tutorials_page' ) );
92
+ }
93
+
94
+ /**
95
+ * Init the tutorials page
96
+ */
97
+ public function tutorials_page() {
98
+ $i = 0;
99
+ ?>
100
+ <div class="wrap sportspress sportspress-tutorials-wrap">
101
+ <h2>
102
+ <?php _e( 'Tutorials', 'sportspress' ); ?>
103
+ </h2>
104
+ <div class="sp-tutorials-main">
105
+ <?php foreach ( $this->ids as $section => $urls ) { ?>
106
+ <h3><?php echo $section; ?></h3>
107
+ <ul class="sp-tutorials-list">
108
+ <?php foreach ( $urls as $label => $url ) { $i++; ?>
109
+ <li>
110
+ <table class="widefat" cellspacing="0">
111
+ <thead>
112
+ <tr><th>
113
+ <strong><?php echo $i; ?></strong>
114
+ <?php echo $label; ?>
115
+ <a href="#" class="sp-popup sp-icon-popup" title="<?php _e( 'Pop-out', 'sportspress' ); ?>" onclick="window.open('<?php echo esc_url( add_query_arg( 'autoplay', 1, $url ) ); ?>', '_blank', 'width=640, height=360');return false;"></a>
116
+ </th></tr>
117
+ </thead>
118
+ <tbody>
119
+ <tr>
120
+ <td>
121
+ <div class="sp-fitvids">
122
+ <iframe width="320" height="180" src="<?php echo $url; ?>" frameborder="0" allowfullscreen></iframe>
123
+ </div>
124
+ </td>
125
+ </tr>
126
+ </tbody>
127
+ </table>
128
+ </li>
129
+ <?php } ?>
130
+ </ul>
131
+ <?php } ?>
132
+ <?php do_action( 'sportspress_tutorials_page' ); ?>
133
+ </div>
134
+ <?php
135
+ }
136
+
137
+ /**
138
+ * Add screen ids
139
+ */
140
+ public function screen_ids( $ids = array() ) {
141
+ $ids[] = 'sportspress_page_sportspress-tutorials';
142
+ return $ids;
143
+ }
144
+
145
+ /**
146
+ * Add link to next steps
147
+ */
148
+ public function next_steps( $steps = array() ) {
149
+ $steps = array(
150
+ 'tutorials' => array(
151
+ 'link' => admin_url( add_query_arg( array( 'page' => 'sportspress-tutorials' ), 'admin.php' ) ),
152
+ 'icon' => 'dashicons dashicons-video-alt3',
153
+ 'label' => __( 'Watch Tutorials', 'sportspress' ),
154
+ ) ) + $steps;
155
+ return $steps;
156
+ }
157
+ }
158
+
159
+ endif;
160
+
161
+ if ( get_option( 'sportspress_load_tutorials_module', 'yes' ) == 'yes' ) {
162
+ new SportsPress_Tutorials();
163
+ }
modules/sportspress-widgets.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: SportsPress Widgets
4
+ Plugin URI: http://themeboy.com/
5
+ Description: Add widgets to SportsPress.
6
+ Author: ThemeBoy
7
+ Author URI: http://themeboy.com/
8
+ Version: 1.7.3
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+ if ( ! class_exists( 'SportsPress_Widgets' ) ) :
15
+
16
+ /**
17
+ * Main SportsPress Widgets Class
18
+ *
19
+ * @class SportsPress_Widgets
20
+ * @version 1.7
21
+ */
22
+ class SportsPress_Widgets {
23
+
24
+ /**
25
+ * Constructor
26
+ */
27
+ public function __construct() {
28
+ // Define constants
29
+ $this->define_constants();
30
+
31
+ add_action( 'widgets_init', array( $this, 'includes' ) );
32
+ }
33
+
34
+ /**
35
+ * Define constants.
36
+ */
37
+ private function define_constants() {
38
+ if ( !defined( 'SP_WIDGETS_VERSION' ) )
39
+ define( 'SP_WIDGETS_VERSION', '1.7' );
40
+
41
+ if ( !defined( 'SP_WIDGETS_URL' ) )
42
+ define( 'SP_WIDGETS_URL', plugin_dir_url( __FILE__ ) );
43
+
44
+ if ( !defined( 'SP_WIDGETS_DIR' ) )
45
+ define( 'SP_WIDGETS_DIR', plugin_dir_path( __FILE__ ) );
46
+ }
47
+
48
+ /**
49
+ * Include widgets.
50
+ */
51
+ public function includes() {
52
+ include_once( SP()->plugin_path() . '/includes/widgets/class-sp-widget-staff.php' );
53
+
54
+ do_action( 'sportspress_widgets' );
55
+ }
56
+ }
57
+
58
+ endif;
59
+
60
+ new SportsPress_Widgets();
presets/cricket.json CHANGED
@@ -2,9 +2,7 @@
2
  "name": "Cricket",
3
  "positions": [
4
  "Batsman",
5
- "Bowler",
6
- "Keeper",
7
- "All-rounder"
8
  ],
9
  "outcomes": [
10
  { "name" : "Win", "condition" : ">" },
@@ -21,8 +19,14 @@
21
  { "name" : "Points", "description" : "Total points", "primary" : 1 }
22
  ],
23
  "performance": [
24
- "Runs",
25
- "Wickets taken"
 
 
 
 
 
 
26
  ],
27
  "columns": [
28
  { "name" : "P", "equation" : "$eventsplayed", "description" : "Matches played" },
@@ -36,9 +40,22 @@
36
  "metrics": [
37
  "Height",
38
  "Weight",
39
- "Bat brand"
40
  ],
41
  "statistics": [
42
- { "name" : "Appearances", "equation" : "$eventsplayed", "description" : "Matches played" }
43
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
2
  "name": "Cricket",
3
  "positions": [
4
  "Batsman",
5
+ "Bowler"
 
 
6
  ],
7
  "outcomes": [
8
  { "name" : "Win", "condition" : ">" },
19
  { "name" : "Points", "description" : "Total points", "primary" : 1 }
20
  ],
21
  "performance": [
22
+ { "name" : "R", "id" : "runs", "position" : "Batsman", "description" : "Runs" },
23
+ { "name" : "B", "position" : "Batsman", "description" : "Balls" },
24
+ { "name" : "4s", "position" : "Batsman", "description" : "Fours" },
25
+ { "name" : "6s", "position" : "Batsman", "description" : "Sixes" },
26
+ { "name" : "O", "position" : "Bowler", "description" : "Overs Bowled" },
27
+ { "name" : "M", "position" : "Bowler", "description" : "Maidens" },
28
+ { "name" : "R", "position" : "Bowler", "description" : "Runs" },
29
+ { "name" : "W", "position" : "Bowler", "description" : "Wickets" }
30
  ],
31
  "columns": [
32
  { "name" : "P", "equation" : "$eventsplayed", "description" : "Matches played" },
40
  "metrics": [
41
  "Height",
42
  "Weight",
43
+ "Bat Brand"
44
  ],
45
  "statistics": [
46
+ { "name" : "Mat", "equation" : "$eventsplayed", "description" : "Matches played" },
47
+ { "name" : "Avg", "equation" : "$eventsplayed", "description" : "Average" },
48
+ { "name" : "SR", "equation" : "$runs / $b * 100", "precision" : 2, "description" : "Strike Rate" }
49
+ ],
50
+ "options": {
51
+ "event_teams" : "2",
52
+ "event_show_players" : "yes",
53
+ "event_show_extras" : "yes",
54
+ "event_show_total" : "yes",
55
+ "sportspress_event_performance_mode" : "values",
56
+ "event_show_player_numbers" : "no",
57
+ "event_split_players_by_team" : "yes",
58
+ "event_split_players_by_position" : "yes",
59
+ "sportspress_event_total_performance" : "primary"
60
+ }
61
  }
presets/footy.json CHANGED
@@ -35,7 +35,7 @@
35
  { "name" : "D", "equation" : "$draw", "description" : "Draws" },
36
  { "name" : "F", "equation" : "$pointsfor", "priority" : 3, "description" : "Points for" },
37
  { "name" : "A", "equation" : "$pointsagainst", "description" : "Points against" },
38
- { "name" : "%", "id" : "pct", "equation" : "$pointsfor / $eventsplayed", "priority" : 2, "description" : "Season percentage" },
39
  { "name" : "Pts", "equation" : "$win * 4 + $draw * 2", "priority" : 1, "description" : "Points" }
40
  ],
41
  "metrics": [
35
  { "name" : "D", "equation" : "$draw", "description" : "Draws" },
36
  { "name" : "F", "equation" : "$pointsfor", "priority" : 3, "description" : "Points for" },
37
  { "name" : "A", "equation" : "$pointsagainst", "description" : "Points against" },
38
+ { "name" : "%", "id" : "pct", "equation" : "$win / $eventsplayed", "priority" : 2, "description" : "Season percentage" },
39
  { "name" : "Pts", "equation" : "$win * 4 + $draw * 2", "priority" : 1, "description" : "Points" }
40
  ],
41
  "metrics": [
presets/ice-hockey.json CHANGED
@@ -1,8 +1,7 @@
1
  {
2
  "name": "Ice Hockey",
3
  "positions": [
4
- "Forward",
5
- "Defenseman",
6
  "Goalie"
7
  ],
8
  "outcomes": [
@@ -20,14 +19,14 @@
20
  { "name" : "T", "id" : "goals", "description" : "Total goals", "primary" : 1 }
21
  ],
22
  "performance": [
23
- { "name" : "G", "description" : "Goals" },
24
- { "name" : "A", "description" : "Assists" },
25
- { "name" : "H", "description" : "Hits" },
26
- { "name" : "SOG", "id" : "s", "description" : "Shots on goal" },
27
- { "name" : "PIM", "description" : "Penalty in minutes" },
28
- { "name" : "SA", "description" : "Shots against" },
29
- { "name" : "GA", "description" : "Goals against" },
30
- { "name" : "SV", "description" : "Saves" }
31
  ],
32
  "columns": [
33
  { "name" : "GP", "equation" : "$eventsplayed", "description" : "Games played" },
@@ -56,5 +55,16 @@
56
  { "name" : "P", "equation" : "$g + $assists", "description" : "Points" },
57
  { "name" : "S%", "equation" : "$g / $s * 100", "precision" : 2, "description" : "Shot percentage" },
58
  { "name" : "SV%", "equation" : "$sv / $sa * 100", "precision" : 2, "description" : "Save percentage" }
59
- ]
 
 
 
 
 
 
 
 
 
 
 
60
  }
1
  {
2
  "name": "Ice Hockey",
3
  "positions": [
4
+ "Skater",
 
5
  "Goalie"
6
  ],
7
  "outcomes": [
19
  { "name" : "T", "id" : "goals", "description" : "Total goals", "primary" : 1 }
20
  ],
21
  "performance": [
22
+ { "name" : "G", "position" : "Skater", "description" : "Goals" },
23
+ { "name" : "A", "position" : "Skater", "description" : "Assists" },
24
+ { "name" : "H", "position" : "Skater", "description" : "Hits" },
25
+ { "name" : "SOG", "position" : "Skater", "id" : "s", "description" : "Shots on goal" },
26
+ { "name" : "PIM", "position" : "Skater", "description" : "Penalty in minutes" },
27
+ { "name" : "SA", "position" : "Goalie", "description" : "Shots against" },
28
+ { "name" : "GA", "position" : "Goalie", "description" : "Goals against" },
29
+ { "name" : "SV", "position" : "Goalie", "description" : "Saves" }
30
  ],
31
  "columns": [
32
  { "name" : "GP", "equation" : "$eventsplayed", "description" : "Games played" },
55
  { "name" : "P", "equation" : "$g + $assists", "description" : "Points" },
56
  { "name" : "S%", "equation" : "$g / $s * 100", "precision" : 2, "description" : "Shot percentage" },
57
  { "name" : "SV%", "equation" : "$sv / $sa * 100", "precision" : 2, "description" : "Save percentage" }
58
+ ],
59
+ "options": {
60
+ "event_teams" : "2",
61
+ "event_show_players" : "yes",
62
+ "event_show_extras" : "no",
63
+ "event_show_total" : "yes",
64
+ "sportspress_event_performance_mode" : "values",
65
+ "event_show_player_numbers" : "yes",
66
+ "event_split_players_by_team" : "yes",
67
+ "event_split_players_by_position" : "yes",
68
+ "sportspress_event_total_performance" : "all"
69
+ }
70
  }
presets/soccer.json CHANGED
@@ -8,8 +8,8 @@
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" },
8
  ],
9
  "outcomes": [
10
  { "name" : "Win", "condition" : ">" },
11
+ { "name" : "Draw", "condition" : "=" },
12
+ { "name" : "Loss", "condition" : "<" }
13
  ],
14
  "results": [
15
  { "name" : "1st Half", "description" : "1st half goals" },
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: sport, sports, club, clubs, teams, statistics, stats, metrics, data, fixtu
4
  Donate link: http://tboy.co/donate
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
- Stable tag: 1.6.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -143,14 +143,13 @@ Your feedback is much appreciated and makes all the difference in improving Spor
143
 
144
  == Installation ==
145
 
146
- = Tutorial Video =
147
- [vimeo http://vimeo.com/121430679]
148
-
149
  = Minimum Requirements =
150
  * WordPress 3.8 or greater
151
  * PHP version 5.2.4 or greater
152
  * MySQL version 5.0 or greater
153
 
 
 
154
  = Automatic Installation =
155
 
156
  Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't even need to leave your web browser. To do an automatic install of SportsPress, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.
@@ -225,6 +224,62 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate
225
 
226
  == Changelog ==
227
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  = 1.6.1 =
229
  * Feature - Countdown moved to module and now able to display team logos.
230
  * Feature - Add option to show or hide event list titles.
4
  Donate link: http://tboy.co/donate
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.7.7
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
143
 
144
  == Installation ==
145
 
 
 
 
146
  = Minimum Requirements =
147
  * WordPress 3.8 or greater
148
  * PHP version 5.2.4 or greater
149
  * MySQL version 5.0 or greater
150
 
151
+ [youtube http://www.youtube.com/watch?v=nE8-RlbotmU]
152
+
153
  = Automatic Installation =
154
 
155
  Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't even need to leave your web browser. To do an automatic install of SportsPress, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.
224
 
225
  == Changelog ==
226
 
227
+ = 1.7.7 =
228
+ * Tweak - Add option to filter teams in event by competition and season with no filter as default setting.
229
+
230
+ = 1.7.6 =
231
+ * Fix - Modules sidebar not displaying in admin.
232
+
233
+ = 1.7.5 =
234
+ * Fix - Calendars empty when no teams selected.
235
+
236
+ = 1.7.4 =
237
+ * Feature - Filter teams by competition and season on page load when editing event.
238
+ * Feature - Enable multiple team selection in calendars.
239
+ * Feature - Ability to install free starter theme from modules page.
240
+ * Tweak - Use YouTube for tutorials instead of Vimeo.
241
+ * Localization - Update Finnish, Dutch, Czech, Italian, and Polish translations.
242
+
243
+ = 1.7.3 =
244
+ * Tweak - Add option to hide/show player statistics.
245
+ * Tweak - Always load overview, widgets, and importers.
246
+ * Fix - Notice displaying in player statistics when no players available.
247
+ * Localization - Update Greek, Polish, Finnish, Dutch, and Icelandic translations.
248
+
249
+ = 1.7.2 =
250
+ * Fix - Player positions disappearing in event page.
251
+ * Fix - Individual mode automatically loading by default.
252
+ * Localization - Update Polish translation.
253
+
254
+ = 1.7.1 =
255
+ * Fix - Activation error related to server limitations.
256
+ * Localization - Update Greek translation.
257
+
258
+ = 1.7 =
259
+ * Feature - Enable multiple seasons and competitions to be selected for events, calendars, player lists, and league tables.
260
+ * Feature - Enable primary performance selection.
261
+ * Feature - Enable event result columns to be displayed automatically.
262
+ * Feature - Enable switching overview, widgets, and importers on and off via modules.
263
+ * Feature - New color scheme selector.
264
+ * Feature - New video tutorials module.
265
+ * Feature - Allow event performance tables to be split by team and by player position.
266
+ * Feature - Allow extras row to be displayed in event performance.
267
+ * Tweak - Display event venue address below map.
268
+ * Tweak - Display plugin and theme recommendations only to network admins.
269
+ * Tweak - Hide player details section if none available.
270
+ * Tweak - Link module request to form instead of email.
271
+ * Fix - Responsive table scrollbar causing horizontal page scrolling.
272
+ * Fix - Misplaced config meta boxes.
273
+ * Fix - Scrollbar appearing in countdown widget.
274
+ * Fix - Event blocks template not honoring link events setting.
275
+ * Fix - League table position calculations for tied teams.
276
+ * Fix - Filter out empty results when viewing events in admin list view.
277
+ * Fix - Invalid array issue when viewing league tables.
278
+ * Preset - Enable sport presets to define plugin options.
279
+ * Preset - Update cricket and ice hockey presets.
280
+ * Localization - Number changed to Squad Number.
281
+ * Localization - Update Polish, French, Czech, Dutch, Kannada, Finnish, Swedish, German, Russian, Greek, Portuguese, and Japanese translations.
282
+
283
  = 1.6.1 =
284
  * Feature - Countdown moved to module and now able to display team logos.
285
  * Feature - Add option to show or hide event list titles.
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.6.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.6.1
30
  */
31
  final class SportsPress {
32
 
33
  /**
34
  * @var string
35
  */
36
- public $version = '1.6.1';
37
 
38
  /**
39
  * @var SporsPress The single instance of the class
@@ -117,7 +117,6 @@ final class SportsPress {
117
 
118
  // Hooks
119
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
120
- add_action( 'widgets_init', array( $this, 'include_widgets' ) );
121
  add_action( 'init', array( $this, 'init' ), 0 );
122
  add_action( 'init', array( 'SP_Shortcodes', 'init' ) );
123
  add_action( 'after_setup_theme', array( $this, 'setup_environment' ) );
@@ -255,20 +254,19 @@ final class SportsPress {
255
  * Include core modules.
256
  */
257
  private function include_modules() {
258
- foreach ( glob( $this->plugin_path() . '/modules/*.php' ) as $filename ) {
259
- include $filename;
 
 
 
 
 
 
 
 
260
  }
261
  }
262
 
263
- /**
264
- * Include core widgets.
265
- */
266
- public function include_widgets() {
267
- include_once( 'includes/widgets/class-sp-widget-staff.php' );
268
-
269
- do_action( 'sportspress_widgets' );
270
- }
271
-
272
  /**
273
  * Init SportsPress when WordPress Initialises.
274
  */
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.7
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.7.7
30
  */
31
  final class SportsPress {
32
 
33
  /**
34
  * @var string
35
  */
36
+ public $version = '1.7.7';
37
 
38
  /**
39
  * @var SporsPress The single instance of the class
117
 
118
  // Hooks
119
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
 
120
  add_action( 'init', array( $this, 'init' ), 0 );
121
  add_action( 'init', array( 'SP_Shortcodes', 'init' ) );
122
  add_action( 'after_setup_theme', array( $this, 'setup_environment' ) );
254
  * Include core modules.
255
  */
256
  private function include_modules() {
257
+ $dir = scandir( $this->plugin_path() . '/modules' );
258
+ if ( $dir ) {
259
+ $path = $this->plugin_path() . '/modules/';
260
+ foreach ( $dir as $module ) {
261
+ if ( $path && substr( $module, 0, 1 ) !== '.' ) {
262
+ if ( is_readable( $path . $module ) ) {
263
+ include_once( $path . $module );
264
+ }
265
+ }
266
+ }
267
  }
268
  }
269
 
 
 
 
 
 
 
 
 
 
270
  /**
271
  * Init SportsPress when WordPress Initialises.
272
  */
templates/event-blocks.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
- * @version 1.6
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -19,6 +19,7 @@ $defaults = array(
19
  'date_to' => 'default',
20
  'number' => -1,
21
  'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false,
 
22
  'paginated' => get_option( 'sportspress_event_blocks_paginated', 'yes' ) == 'yes' ? true : false,
23
  'rows' => get_option( 'sportspress_event_blocks_rows', 10 ),
24
  'order' => 'default',
@@ -119,7 +120,14 @@ if ( $show_title && $id ) {
119
  <?php if ( $show_venue ): $venues = get_the_terms( $event, 'sp_venue' ); if ( $venues ): $venue = array_shift( $venues ); ?>
120
  <div class="sp-event-venue"><?php echo $venue->name; ?></div>
121
  <?php endif; endif; ?>
122
- <h4 class="sp-event-title"><a href="<?php echo get_post_permalink( $event ); ?>"><?php echo $event->post_title; ?></a></h4>
 
 
 
 
 
 
 
123
  </td>
124
  </tr>
125
  <?php
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
+ * @version 1.7
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
  'date_to' => 'default',
20
  'number' => -1,
21
  'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false,
22
+ 'link_events' => get_option( 'sportspress_link_events', 'yes' ) == 'yes' ? true : false,
23
  'paginated' => get_option( 'sportspress_event_blocks_paginated', 'yes' ) == 'yes' ? true : false,
24
  'rows' => get_option( 'sportspress_event_blocks_rows', 10 ),
25
  'order' => 'default',
120
  <?php if ( $show_venue ): $venues = get_the_terms( $event, 'sp_venue' ); if ( $venues ): $venue = array_shift( $venues ); ?>
121
  <div class="sp-event-venue"><?php echo $venue->name; ?></div>
122
  <?php endif; endif; ?>
123
+ <h4 class="sp-event-title">
124
+ <?php if ( $link_events ): ?>
125
+ <a href="<?php echo get_post_permalink( $event ); ?>"><?php echo $event->post_title; ?></a>
126
+ <?php else: ?>
127
+ <?php echo $event->post_title; ?>
128
+ <?php endif; ?>
129
+ </h4>
130
+
131
  </td>
132
  </tr>
133
  <?php
templates/event-performance-table-combined.php ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Event Performance Table Combined
4
+ *
5
+ * @author ThemeBoy
6
+ * @package SportsPress/Templates
7
+ * @version 1.7
8
+ */
9
+
10
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
+
12
+ // Initialize totals
13
+ $totals = array();
14
+ ?>
15
+ <div class="sp-template sp-template-event-performance sp-template-event-performance-<?php echo $mode; ?>">
16
+ <?php if ( $caption ): ?>
17
+ <h4 class="sp-table-caption"><?php echo $caption; ?></h4>
18
+ <?php endif; ?>
19
+ <div class="sp-table-wrapper">
20
+ <table class="sp-event-performance sp-data-table<?php if ( $scrollable ) { ?> sp-scrollable-table<?php } ?><?php if ( $sortable ) { ?> sp-sortable-table<?php } ?>">
21
+ <thead>
22
+ <tr>
23
+ <?php if ( isset( $labels['number'] ) ): ?>
24
+ <th class="data-number">#</th>
25
+ <?php endif; ?>
26
+ <th class="data-name"><?php _e( 'Player', 'sportspress' ); ?></th>
27
+ <?php if ( $mode == 'values' ): foreach( $labels as $key => $label ): ?>
28
+ <?php if ( 'number' == $key ) continue; ?>
29
+ <th class="data-<?php echo $key; ?>"><?php echo $label; ?></th>
30
+ <?php endforeach; else: ?>
31
+ <th class="sp-performance-icons">&nbsp;</th>
32
+ <?php endif; ?>
33
+ </tr>
34
+ </thead>
35
+ <tbody>
36
+ <?php
37
+ if ( $show_players ) {
38
+ $i = 0;
39
+ foreach ( $data as $player_id => $row ):
40
+
41
+ if ( ! $player_id )
42
+ continue;
43
+
44
+ $name = get_the_title( $player_id );
45
+
46
+ if ( ! $name )
47
+ continue;
48
+
49
+ echo '<tr class="' . sp_array_value( $row, 'status', 'lineup' ) . ' ' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
50
+
51
+ if ( isset( $labels['number'] ) ):
52
+ $number = sp_array_value( $row, 'number', '&nbsp;' );
53
+
54
+ // Player number
55
+ echo '<td class="data-number">' . $number . '</td>';
56
+ endif;
57
+
58
+ if ( $link_posts ):
59
+ $permalink = get_post_permalink( $player_id );
60
+ $name = '<a href="' . $permalink . '">' . $name . '</a>';
61
+ endif;
62
+
63
+ echo '<td class="data-name">' . $name . '</td>';
64
+
65
+ if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
66
+
67
+ foreach ( $labels as $key => $label ):
68
+ if ( in_array( $key, array( 'number', 'name' ) ) )
69
+ continue;
70
+ $value = '&mdash;';
71
+ if ( $key == 'position' ):
72
+ if ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
73
+ $positions = array();
74
+ $position_ids = (array) $row[ $key ];
75
+ foreach ( $position_ids as $position_id ) {
76
+ $player_position = get_term_by( 'id', $position_id, 'sp_position' );
77
+ if ( $player_position ) $positions[] = $player_position->name;
78
+ }
79
+ $value = implode( ', ', $positions );
80
+ endif;
81
+ else:
82
+ if ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
83
+ $value = $row[ $key ];
84
+ else:
85
+ $value = 0;
86
+ endif;
87
+ endif;
88
+ if ( ! array_key_exists( $key, $totals ) ):
89
+ $totals[ $key ] = 0;
90
+ endif;
91
+ $totals[ $key ] += $value;
92
+
93
+ if ( $mode == 'values' ):
94
+ echo '<td class="data-' . $key . '">' . $value . '</td>';
95
+ elseif ( intval( $value ) && $mode == 'icons' ):
96
+ $performance_id = sp_array_value( $performance_ids, $key, null );
97
+ if ( $performance_id && has_post_thumbnail( $performance_id ) ):
98
+ echo str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini' ) . ' ', $value );
99
+ endif;
100
+ endif;
101
+ endforeach;
102
+
103
+ if ( $mode == 'icons' ) echo '</td>';
104
+
105
+ echo '</tr>';
106
+
107
+ $i++;
108
+
109
+ endforeach;
110
+
111
+ }
112
+ ?>
113
+ </tbody>
114
+ <?php if ( $show_total ): ?>
115
+ <?php if ( ! $primary || sizeof( array_intersect_key( $totals, array_flip( (array) $primary ) ) ) ): ?>
116
+ <tfoot>
117
+ <tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">
118
+ <?php
119
+ if ( isset( $labels['number'] ) ):
120
+ echo '<td class="data-number">&nbsp;</td>';
121
+ endif;
122
+ echo '<td class="data-name">' . __( 'Total', 'sportspress' ) . '</td>';
123
+
124
+ $row = sp_array_value( $data, 0, array() );
125
+
126
+ if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
127
+
128
+ foreach ( $labels as $key => $label ):
129
+ if ( in_array( $key, array( 'number', 'name' ) ) )
130
+ continue;
131
+ if ( $key == 'position' ):
132
+ $value = '&mdash;';
133
+ elseif ( $primary && $key !== $primary ):
134
+ $value = '&nbsp;';
135
+ elseif ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
136
+ $value = $row[ $key ];
137
+ else:
138
+ $value = sp_array_value( $totals, $key, 0 );
139
+ endif;
140
+
141
+ if ( $mode == 'values' ):
142
+ echo '<td class="data-' . $key . '">' . $value . '</td>';
143
+ elseif ( intval( $value ) && $mode == 'icons' ):
144
+ $performance_id = sp_array_value( $performance_ids, $key, null );
145
+ if ( $performance_id && has_post_thumbnail( $performance_id ) ):
146
+ echo str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini' ) . ' ', $value );
147
+ endif;
148
+ endif;
149
+ endforeach;
150
+
151
+ if ( $mode == 'icons' ) echo '</td>';
152
+ ?>
153
+ </tr>
154
+ </tfoot>
155
+ <?php endif; ?>
156
+ <?php endif; ?>
157
+ </table>
158
+ </div>
159
+ </div>
templates/event-performance-table.php ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Event Performance Table
4
+ *
5
+ * @author ThemeBoy
6
+ * @package SportsPress/Templates
7
+ * @version 1.7
8
+ */
9
+
10
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
+
12
+ // Initialize totals
13
+ $totals = array();
14
+ ?>
15
+ <div class="sp-template sp-template-event-performance sp-template-event-performance-<?php echo $mode; ?>">
16
+ <?php if ( $caption ): ?>
17
+ <h4 class="sp-table-caption"><?php echo $caption; ?></h4>
18
+ <?php endif; ?>
19
+ <div class="sp-table-wrapper">
20
+ <table class="sp-event-performance sp-data-table<?php if ( $scrollable ) { ?> sp-scrollable-table<?php } ?><?php if ( $sortable ) { ?> sp-sortable-table<?php } ?>">
21
+ <thead>
22
+ <tr>
23
+ <?php if ( $show_players ): ?>
24
+ <?php if ( $show_numbers ) { ?>
25
+ <th class="data-number">#</th>
26
+ <?php } ?>
27
+ <th class="data-name">
28
+ <?php if ( isset( $position ) ) { ?>
29
+ <?php echo $position; ?>
30
+ <?php } else { ?>
31
+ <?php _e( 'Player', 'sportspress' ); ?>
32
+ <?php } ?>
33
+ </th>
34
+ <?php endif; ?>
35
+ <?php if ( $mode == 'values' ): foreach ( $labels as $key => $label ): ?>
36
+ <?php if ( isset( $position ) && 'position' == $key ) continue; ?>
37
+ <th class="data-<?php echo $key; ?>"><?php echo $label; ?></th>
38
+ <?php endforeach; else: ?>
39
+ <th class="sp-performance-icons">&nbsp;</th>
40
+ <?php endif; ?>
41
+ </tr>
42
+ </thead>
43
+ <?php if ( $show_players ): ?>
44
+ <tbody>
45
+ <?php
46
+
47
+ $lineups = array_filter( $data, array( $event, 'lineup_filter' ) );
48
+ $subs = array_filter( $data, array( $event, 'sub_filter' ) );
49
+
50
+ $lineup_sub_relation = array();
51
+ foreach ( $subs as $sub_id => $sub ):
52
+ if ( ! $sub_id )
53
+ continue;
54
+ $lineup_sub_relation[ sp_array_value( $sub, 'sub', 0 ) ] = $sub_id;
55
+ endforeach;
56
+
57
+ $i = 0;
58
+ foreach ( $data as $player_id => $row ):
59
+
60
+ if ( ! $player_id )
61
+ continue;
62
+
63
+ $name = get_the_title( $player_id );
64
+
65
+ if ( ! $name )
66
+ continue;
67
+
68
+ echo '<tr class="' . sp_array_value( $row, 'status', 'lineup' ) . ' ' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
69
+
70
+ if ( $show_numbers ) {
71
+ $number = sp_array_value( $row, 'number', '&nbsp;' );
72
+
73
+ // Player number
74
+ echo '<td class="data-number">' . $number . '</td>';
75
+ }
76
+
77
+ if ( $link_posts ):
78
+ $permalink = get_post_permalink( $player_id );
79
+ $name = '<a href="' . $permalink . '">' . $name . '</a>';
80
+ if ( isset( $row['status'] ) && $row['status'] == 'sub' ):
81
+ $name = '(' . $name . ')';
82
+ endif;
83
+ endif;
84
+
85
+ if ( array_key_exists( $player_id, $lineup_sub_relation ) ):
86
+ $name .= ' <span class="sub-in" title="' . get_the_title( $lineup_sub_relation[ $player_id ] ) . '">' . sp_array_value( sp_array_value( $data, $lineup_sub_relation[ $player_id ], array() ), 'number', null ) . '</span>';
87
+ elseif ( isset( $row['sub'] ) && $row['sub'] ):
88
+ $name .= ' <span class="sub-out" title="' . get_the_title( $row[ 'sub' ] ) . '">' . sp_array_value( sp_array_value( $data, $row['sub'], array() ), 'number', null ) . '</span>';
89
+ endif;
90
+
91
+ echo '<td class="data-name">' . $name . '</td>';
92
+
93
+ if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
94
+
95
+ foreach ( $labels as $key => $label ):
96
+ if ( 'name' == $key )
97
+ continue;
98
+ if ( isset( $position ) && 'position' == $key )
99
+ continue;
100
+
101
+ $value = '&mdash;';
102
+ if ( $key == 'position' ):
103
+ $positions = array();
104
+ if ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
105
+ $position_ids = (array) $row[ $key ];
106
+ else:
107
+ $position_ids = (array) sp_get_the_term_id( $player_id, 'sp_position' );
108
+ endif;
109
+
110
+ foreach ( $position_ids as $position_id ) {
111
+ $player_position = get_term_by( 'id', $position_id, 'sp_position' );
112
+ if ( $player_position ) $positions[] = $player_position->name;
113
+ }
114
+
115
+ if ( sizeof( $positions ) ):
116
+ $value = implode( ', ', $positions );
117
+ endif;
118
+ else:
119
+ if ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
120
+ $value = $row[ $key ];
121
+ else:
122
+ $value = 0;
123
+ endif;
124
+ endif;
125
+ if ( ! array_key_exists( $key, $totals ) ):
126
+ $totals[ $key ] = 0;
127
+ endif;
128
+ $totals[ $key ] += $value;
129
+
130
+ if ( $mode == 'values' ):
131
+ echo '<td class="data-' . $key . '">' . $value . '</td>';
132
+ elseif ( intval( $value ) && $mode == 'icons' ):
133
+ $performance_id = sp_array_value( $performance_ids, $key, null );
134
+ if ( $performance_id && has_post_thumbnail( $performance_id ) ):
135
+ echo str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini' ) . ' ', $value );
136
+ endif;
137
+ endif;
138
+ endforeach;
139
+
140
+ if ( $mode == 'icons' ) echo '</td>';
141
+
142
+ echo '</tr>';
143
+
144
+ $i++;
145
+
146
+ endforeach;
147
+ ?>
148
+ </tbody>
149
+ <?php endif; ?>
150
+ <?php if ( $show_total || $show_extras ): ?>
151
+ <<?php echo ( $show_players ? 'tfoot' : 'tbody' ); ?>>
152
+ <?php
153
+ if ( $show_extras ) {
154
+ $row = sp_array_value( $data, -1, array() );
155
+ $row = array_filter( $row );
156
+ $row = array_intersect_key( $row, $labels );
157
+ if ( ! empty( $row ) ) {
158
+ ?>
159
+ <tr class="sp-extras-row <?php echo ( $i % 2 == 0 ? 'odd' : 'even' ); ?>">
160
+ <?php
161
+ if ( $show_players ):
162
+ if ( $show_numbers ) {
163
+ echo '<td class="data-number">&nbsp;</td>';
164
+ }
165
+ echo '<td class="data-name">' . __( 'Extras', 'sportspress' ) . '</td>';
166
+ endif;
167
+
168
+ $row = sp_array_value( $data, -1, array() );
169
+
170
+ if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
171
+
172
+ foreach ( $labels as $key => $label ):
173
+ if ( 'name' == $key )
174
+ continue;
175
+ if ( isset( $position ) && 'position' == $key )
176
+ continue;
177
+ if ( $key == 'position' ):
178
+ $value = '&nbsp;';
179
+ elseif ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
180
+ $value = $row[ $key ];
181
+ else:
182
+ $value = '&nbsp;';
183
+ endif;
184
+
185
+ if ( $mode == 'values' ):
186
+ echo '<td class="data-' . $key . '">' . $value . '</td>';
187
+ elseif ( intval( $value ) && $mode == 'icons' ):
188
+ $performance_id = sp_array_value( $performance_ids, $key, null );
189
+ if ( $performance_id && has_post_thumbnail( $performance_id ) ):
190
+ echo str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini' ) . ' ', $value );
191
+ endif;
192
+ endif;
193
+ endforeach;
194
+
195
+ if ( $mode == 'icons' ) echo '</td>';
196
+ ?>
197
+ </tr>
198
+ <?php
199
+ $i++;
200
+ }
201
+ }
202
+ if ( $show_total ) {
203
+ if ( ! $primary || sizeof( array_intersect_key( $totals, array_flip( (array) $primary ) ) ) ) {
204
+ ?>
205
+ <tr class="sp-total-row <?php echo ( $i % 2 == 0 ? 'odd' : 'even' ); ?>">
206
+ <?php
207
+ if ( $show_players ):
208
+ if ( $show_numbers ) {
209
+ echo '<td class="data-number">&nbsp;</td>';
210
+ }
211
+ echo '<td class="data-name">' . __( 'Total', 'sportspress' ) . '</td>';
212
+ endif;
213
+
214
+ $row = sp_array_value( $data, 0, array() );
215
+
216
+ if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
217
+
218
+ foreach ( $labels as $key => $label ):
219
+ if ( 'name' == $key )
220
+ continue;
221
+ if ( isset( $position ) && 'position' == $key )
222
+ continue;
223
+ if ( $key == 'position' ):
224
+ $value = '&nbsp;';
225
+ else:
226
+ if ( $primary && $key !== $primary ):
227
+ $value = '&nbsp;';
228
+ elseif ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
229
+ $value = $row[ $key ];
230
+ else:
231
+ $value = sp_array_value( $totals, $key, 0 );
232
+ if ( $show_extras ) {
233
+ $value += sp_array_value( sp_array_value( $data, -1, array() ), $key, 0 );
234
+ }
235
+ endif;
236
+ endif;
237
+
238
+ if ( $mode == 'values' ):
239
+ echo '<td class="data-' . $key . '">' . $value . '</td>';
240
+ elseif ( intval( $value ) && $mode == 'icons' ):
241
+ $performance_id = sp_array_value( $performance_ids, $key, null );
242
+ if ( $performance_id && has_post_thumbnail( $performance_id ) ):
243
+ echo str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini' ) . ' ', $value );
244
+ endif;
245
+ endif;
246
+ endforeach;
247
+
248
+ if ( $mode == 'icons' ) echo '</td>';
249
+ ?>
250
+ </tr>
251
+ <?php } ?>
252
+ <?php } ?>
253
+ </<?php echo ( $show_players ? 'tfoot' : 'tbody' ); ?>>
254
+ <?php endif; ?>
255
+ </table>
256
+ </div>
257
+ </div>
templates/event-performance.php CHANGED
@@ -4,17 +4,22 @@
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
- * @version 1.6
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
 
12
  $show_players = get_option( 'sportspress_event_show_players', 'yes' ) === 'yes' ? true : false;
13
  $show_staff = get_option( 'sportspress_event_show_staff', 'yes' ) === 'yes' ? true : false;
 
14
  $show_total = get_option( 'sportspress_event_show_total', 'yes' ) === 'yes' ? true : false;
15
- $split_tables = apply_filters( 'sportspress_split_performance_tables', true );
 
 
 
 
16
 
17
- if ( ! $show_players && ! $show_staff && ! $show_total ) return;
18
 
19
  if ( ! isset( $id ) )
20
  $id = get_the_ID();
@@ -38,6 +43,7 @@ if ( is_array( $teams ) ):
38
 
39
  $link_posts = get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false;
40
  $scrollable = get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false;
 
41
  $mode = get_option( 'sportspress_event_performance_mode', 'values' );
42
 
43
  // Get performance ids for icons
@@ -49,7 +55,7 @@ if ( is_array( $teams ) ):
49
  endforeach;
50
  endif;
51
 
52
- if ( $split_tables ) {
53
  // Split tables
54
  foreach( $teams as $index => $team_id ):
55
  if ( -1 == $team_id ) continue;
@@ -58,9 +64,11 @@ if ( is_array( $teams ) ):
58
  $players = sp_array_between( (array)get_post_meta( $id, 'sp_player', false ), 0, $index );
59
  $has_players = sizeof( $players ) > 1;
60
 
61
- $show_team_players = $show_players && $has_players;
 
 
62
 
63
- $totals = array();
64
 
65
  if ( 0 < $team_id ) {
66
  $data = sp_array_combine( $players, sp_array_value( $performance, $team_id, array() ) );
@@ -75,326 +83,164 @@ if ( is_array( $teams ) ):
75
  $data = sp_array_value( array_values( $performance ), $index );
76
  }
77
 
78
- if ( ! $show_team_players && ! $show_staff && ! $show_total ) continue;
79
- ?>
80
- <div class="sp-template sp-template-event-performance sp-template-event-performance-<?php echo $mode; ?>">
81
- <?php if ( $team_id ): ?>
82
- <h4 class="sp-table-caption"><?php echo get_the_title( $team_id ); ?></h4>
83
- <?php endif; ?>
84
- <?php
85
- if ( $show_staff ):
86
- sp_get_template( 'event-staff.php', array( 'id' => $id, 'index' => $index ) );
87
- endif;
88
- ?>
89
- <?php if ( $show_team_players || $show_total ): ?>
90
- <div class="sp-table-wrapper">
91
- <table class="sp-event-performance sp-data-table <?php if ( $scrollable ) { ?> sp-scrollable-table<?php } ?>">
92
- <thead>
93
- <tr>
94
- <?php if ( $show_team_players ): ?>
95
- <th class="data-number">#</th>
96
- <th class="data-name"><?php _e( 'Player', 'sportspress' ); ?></th>
97
- <?php endif; ?>
98
- <?php if ( $mode == 'values' ): foreach( $labels as $key => $label ): ?>
99
- <th class="data-<?php echo $key; ?>"><?php echo $label; ?></th>
100
- <?php endforeach; else: ?>
101
- <th class="sp-performance-icons">&nbsp;</th>
102
- <?php endif; ?>
103
- </tr>
104
- </thead>
105
- <?php if ( $show_team_players ): ?>
106
- <tbody>
107
- <?php
108
-
109
- $lineups = array_filter( $data, array( $event, 'lineup_filter' ) );
110
- $subs = array_filter( $data, array( $event, 'sub_filter' ) );
111
-
112
- $lineup_sub_relation = array();
113
- foreach ( $subs as $sub_id => $sub ):
114
- if ( ! $sub_id )
115
- continue;
116
- $lineup_sub_relation[ sp_array_value( $sub, 'sub', 0 ) ] = $sub_id;
117
- endforeach;
118
-
119
- $i = 0;
120
- foreach( $data as $player_id => $row ):
121
-
122
- if ( ! $player_id )
123
- continue;
124
-
125
- $name = get_the_title( $player_id );
126
-
127
- if ( ! $name )
128
- continue;
129
-
130
- echo '<tr class="' . sp_array_value( $row, 'status', 'lineup' ) . ' ' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
131
-
132
- $number = sp_array_value( $row, 'number', '&nbsp;' );
133
-
134
- // Player number
135
- echo '<td class="data-number">' . $number . '</td>';
136
-
137
- if ( $link_posts ):
138
- $permalink = get_post_permalink( $player_id );
139
- $name = '<a href="' . $permalink . '">' . $name . '</a>';
140
- if ( isset( $row['status'] ) && $row['status'] == 'sub' ):
141
- $name = '(' . $name . ')';
142
- endif;
143
- endif;
144
-
145
- if ( array_key_exists( $player_id, $lineup_sub_relation ) ):
146
- $name .= ' <span class="sub-in" title="' . get_the_title( $lineup_sub_relation[ $player_id ] ) . '">' . sp_array_value( sp_array_value( $data, $lineup_sub_relation[ $player_id ], array() ), 'number', null ) . '</span>';
147
- elseif ( isset( $row['sub'] ) && $row['sub'] ):
148
- $name .= ' <span class="sub-out" title="' . get_the_title( $row[ 'sub' ] ) . '">' . sp_array_value( sp_array_value( $data, $row['sub'], array() ), 'number', null ) . '</span>';
149
- endif;
150
-
151
- echo '<td class="data-name">' . $name . '</td>';
152
-
153
- if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
154
-
155
- foreach( $labels as $key => $label ):
156
- if ( $key == 'name' )
157
- continue;
158
- $value = '&mdash;';
159
- if ( $key == 'position' ):
160
- if ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
161
- $position = get_term_by( 'id', $row[ $key ], 'sp_position' );
162
- if ( $position ) $value = $position->name;
163
- endif;
164
- else:
165
- if ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
166
- $value = $row[ $key ];
167
- else:
168
- $value = 0;
169
- endif;
170
- endif;
171
- if ( ! array_key_exists( $key, $totals ) ):
172
- $totals[ $key ] = 0;
173
- endif;
174
- $totals[ $key ] += $value;
175
-
176
- if ( $mode == 'values' ):
177
- echo '<td class="data-' . $key . '">' . $value . '</td>';
178
- elseif ( intval( $value ) && $mode == 'icons' ):
179
- $performance_id = sp_array_value( $performance_ids, $key, null );
180
- if ( $performance_id && has_post_thumbnail( $performance_id ) ):
181
- echo str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini' ) . ' ', $value );
182
- endif;
183
- endif;
184
- endforeach;
185
-
186
- if ( $mode == 'icons' ) echo '</td>';
187
-
188
- echo '</tr>';
189
-
190
- $i++;
191
-
192
- endforeach;
193
- ?>
194
- </tbody>
195
- <?php endif; ?>
196
- <?php if ( $show_total ): ?>
197
- <<?php echo ( $show_team_players ? 'tfoot' : 'tbody' ); ?>>
198
- <tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">
199
- <?php
200
- if ( $show_team_players ):
201
- echo '<td class="data-number">&nbsp;</td>';
202
- echo '<td class="data-name">' . __( 'Total', 'sportspress' ) . '</td>';
203
- endif;
204
-
205
- $row = sp_array_value( $data, 0, array() );
206
 
207
- if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
 
209
- foreach( $labels as $key => $label ):
210
- if ( $key == 'name' )
211
- continue;
212
- if ( $key == 'position' ):
213
- $value = '&mdash;';
214
- elseif ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
215
- $value = $row[ $key ];
216
- else:
217
- $value = sp_array_value( $totals, $key, 0 );
218
- endif;
219
 
220
- if ( $mode == 'values' ):
221
- echo '<td class="data-' . $key . '">' . $value . '</td>';
222
- elseif ( intval( $value ) && $mode == 'icons' ):
223
- $performance_id = sp_array_value( $performance_ids, $key, null );
224
- if ( $performance_id && has_post_thumbnail( $performance_id ) ):
225
- echo str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini' ) . ' ', $value );
226
- endif;
227
- endif;
228
- endforeach;
229
 
230
- if ( $mode == 'icons' ) echo '</td>';
231
- ?>
232
- </tr>
233
- </<?php echo ( $show_team_players ? 'tfoot' : 'tbody' ); ?>>
234
- <?php endif; ?>
235
- </table>
236
- </div>
237
- <?php endif; ?>
238
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  <?php
240
  endforeach;
241
  } else {
242
  // Combined table
243
- ?>
244
- <div class="sp-template sp-template-event-performance sp-template-event-performance-<?php echo $mode; ?>">
245
- <h4 class="sp-table-caption"><?php _e( 'Performance', 'sportspress' ); ?></h4>
246
- <div class="sp-table-wrapper">
247
- <table class="sp-event-performance sp-data-table <?php if ( $scrollable ) { ?> sp-scrollable-table<?php } ?>">
248
- <thead>
249
- <tr>
250
- <th class="data-number">#</th>
251
- <th class="data-name"><?php _e( 'Player', 'sportspress' ); ?></th>
252
- <?php if ( $mode == 'values' ): foreach( $labels as $key => $label ): ?>
253
- <th class="data-<?php echo $key; ?>"><?php echo $label; ?></th>
254
- <?php endforeach; else: ?>
255
- <th class="sp-performance-icons">&nbsp;</th>
256
- <?php endif; ?>
257
- </tr>
258
- </thead>
259
- <tbody>
260
- <?php
261
- foreach ( $teams as $index => $team_id ) {
262
- if ( -1 == $team_id ) continue;
263
-
264
- // Get results for players in the team
265
- $players = sp_array_between( (array) get_post_meta( $id, 'sp_player', false ), 0, $index );
266
- $has_players = sizeof( $players ) > 1;
267
-
268
- $show_team_players = $show_players && $has_players;
269
- if ( ! $show_team_players && ! $show_total ) continue;
270
-
271
- $totals = array();
272
-
273
- if ( 0 < $team_id ) {
274
- $data = sp_array_combine( $players, sp_array_value( $performance, $team_id, array() ) );
275
- } elseif ( 0 == $team_id ) {
276
- $data = array();
277
- foreach ( $players as $player_id ) {
278
- if ( isset( $performance[ $player_id ][ $player_id ] ) ) {
279
- $data[ $player_id ] = $performance[ $player_id ][ $player_id ];
280
- }
281
- }
282
- } else {
283
- $data = sp_array_value( array_values( $performance ), $index );
284
- }
285
-
286
- if ( $show_team_players ) {
287
-
288
- $i = 0;
289
- foreach( $data as $player_id => $row ):
290
-
291
- if ( ! $player_id )
292
- continue;
293
-
294
- $name = get_the_title( $player_id );
295
-
296
- if ( ! $name )
297
- continue;
298
-
299
- echo '<tr class="' . sp_array_value( $row, 'status', 'lineup' ) . ' ' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
300
-
301
- $number = sp_array_value( $row, 'number', '&nbsp;' );
302
-
303
- // Player number
304
- echo '<td class="data-number">' . $number . '</td>';
305
-
306
- if ( $link_posts ):
307
- $permalink = get_post_permalink( $player_id );
308
- $name = '<a href="' . $permalink . '">' . $name . '</a>';
309
- endif;
310
-
311
- echo '<td class="data-name">' . $name . '</td>';
312
-
313
- if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
314
-
315
- foreach( $labels as $key => $label ):
316
- if ( $key == 'name' )
317
- continue;
318
- $value = '&mdash;';
319
- if ( $key == 'position' ):
320
- if ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
321
- $position = get_term_by( 'id', $row[ $key ], 'sp_position' );
322
- if ( $position ) $value = $position->name;
323
- endif;
324
- else:
325
- if ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
326
- $value = $row[ $key ];
327
- else:
328
- $value = 0;
329
- endif;
330
- endif;
331
- if ( ! array_key_exists( $key, $totals ) ):
332
- $totals[ $key ] = 0;
333
- endif;
334
- $totals[ $key ] += $value;
335
-
336
- if ( $mode == 'values' ):
337
- echo '<td class="data-' . $key . '">' . $value . '</td>';
338
- elseif ( intval( $value ) && $mode == 'icons' ):
339
- $performance_id = sp_array_value( $performance_ids, $key, null );
340
- if ( $performance_id && has_post_thumbnail( $performance_id ) ):
341
- echo str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini' ) . ' ', $value );
342
- endif;
343
- endif;
344
- endforeach;
345
-
346
- if ( $mode == 'icons' ) echo '</td>';
347
-
348
- echo '</tr>';
349
-
350
- $i++;
351
-
352
- endforeach;
353
-
354
- }
355
- }
356
- ?>
357
- </tbody>
358
- <?php if ( $show_total ): ?>
359
- <tfoot>
360
- <tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">
361
- <?php
362
- echo '<td class="data-number">&nbsp;</td>';
363
- echo '<td class="data-name">' . __( 'Total', 'sportspress' ) . '</td>';
364
-
365
- $row = sp_array_value( $data, 0, array() );
366
-
367
- if ( $mode == 'icons' ) echo '<td class="sp-performance-icons">';
368
-
369
- foreach( $labels as $key => $label ):
370
- if ( $key == 'name' )
371
- continue;
372
- if ( $key == 'position' ):
373
- $value = '&mdash;';
374
- elseif ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
375
- $value = $row[ $key ];
376
- else:
377
- $value = sp_array_value( $totals, $key, 0 );
378
- endif;
379
-
380
- if ( $mode == 'values' ):
381
- echo '<td class="data-' . $key . '">' . $value . '</td>';
382
- elseif ( intval( $value ) && $mode == 'icons' ):
383
- $performance_id = sp_array_value( $performance_ids, $key, null );
384
- if ( $performance_id && has_post_thumbnail( $performance_id ) ):
385
- echo str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini' ) . ' ', $value );
386
- endif;
387
- endif;
388
- endforeach;
389
 
390
- if ( $mode == 'icons' ) echo '</td>';
391
- ?>
392
- </tr>
393
- </tfoot>
394
- <?php endif; ?>
395
- </table>
396
- </div>
397
- </div>
398
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
399
  }
400
  endif;
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
+ * @version 1.7
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
 
12
  $show_players = get_option( 'sportspress_event_show_players', 'yes' ) === 'yes' ? true : false;
13
  $show_staff = get_option( 'sportspress_event_show_staff', 'yes' ) === 'yes' ? true : false;
14
+ $show_extras = get_option( 'sportspress_event_show_extras', 'no' ) === 'yes' ? true : false;
15
  $show_total = get_option( 'sportspress_event_show_total', 'yes' ) === 'yes' ? true : false;
16
+ $show_numbers = get_option( 'sportspress_event_show_player_numbers', 'yes' ) === 'yes' ? true : false;
17
+ $split_positions = get_option( 'sportspress_event_split_players_by_position', 'no' ) === 'yes' ? true : false;
18
+ $split_teams = get_option( 'sportspress_event_split_players_by_team', 'yes' ) === 'yes' ? true : false;
19
+ $primary = get_option( 'sportspress_primary_performance', null );
20
+ $total = get_option( 'sportspress_event_total_performance', 'all');
21
 
22
+ if ( ! $show_players && ! $show_staff && ! $show_extras && ! $show_total ) return;
23
 
24
  if ( ! isset( $id ) )
25
  $id = get_the_ID();
43
 
44
  $link_posts = get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false;
45
  $scrollable = get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false;
46
+ $sortable = get_option( 'sportspress_enable_sortable_tables', 'yes' ) == 'yes' ? true : false;
47
  $mode = get_option( 'sportspress_event_performance_mode', 'values' );
48
 
49
  // Get performance ids for icons
55
  endforeach;
56
  endif;
57
 
58
+ if ( $split_teams ) {
59
  // Split tables
60
  foreach( $teams as $index => $team_id ):
61
  if ( -1 == $team_id ) continue;
64
  $players = sp_array_between( (array)get_post_meta( $id, 'sp_player', false ), 0, $index );
65
  $has_players = sizeof( $players ) > 1;
66
 
67
+ if ( $show_extras ) {
68
+ $players[] = -1;
69
+ }
70
 
71
+ $show_team_players = $show_players && $has_players;
72
 
73
  if ( 0 < $team_id ) {
74
  $data = sp_array_combine( $players, sp_array_value( $performance, $team_id, array() ) );
83
  $data = sp_array_value( array_values( $performance ), $index );
84
  }
85
 
86
+ if ( ! $show_team_players && ! $show_staff && ! $show_extras && ! $show_total ) continue;
87
+
88
+ if ( $show_team_players || $show_extras || $show_total ) {
89
+ if ( $split_positions ) {
90
+ $positions = get_terms( 'sp_position', array(
91
+ 'orderby' => 'slug',
92
+ ) );
93
+
94
+ foreach ( $positions as $position_index => $position ) {
95
+ $subdata = array();
96
+ foreach ( $data as $player_id => $player ) {
97
+ $player_positions = (array) sp_array_value( $player, 'position' );
98
+ $player_positions = array_filter( $player_positions );
99
+ if ( empty( $player_positions ) ) {
100
+ $player_positions = (array) sp_get_the_term_id( $player_id, 'sp_position' );
101
+ }
102
+ if ( in_array( $position->term_id, $player_positions ) ) {
103
+ $subdata[ $player_id ] = $data[ $player_id ];
104
+ }
105
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
 
107
+ // Initialize Sublabels
108
+ $sublabels = $labels;
109
+
110
+ $performance_labels = get_posts( array(
111
+ 'post_type' => 'sp_performance',
112
+ 'posts_per_page' => -1,
113
+ 'tax_query' => array(
114
+ array(
115
+ 'taxonomy' => 'sp_position',
116
+ 'terms' => $position->term_id,
117
+ ),
118
+ ),
119
+ ) );
120
+
121
+ $allowed_labels = array();
122
+ if ( ! empty( $performance_labels ) ) {
123
+ foreach ( $performance_labels as $label ) {
124
+ $allowed_labels[ $label->post_name ] = $label->post_title;
125
+ }
126
 
127
+ $sublabels = array_intersect_key( $sublabels, $allowed_labels );
128
+ }
 
 
 
 
 
 
 
 
129
 
130
+ if ( sizeof( $subdata ) ) {
131
+ if ( $show_extras ) {
132
+ $subdata[-1] = sp_array_value( $data, -1 );
133
+ }
 
 
 
 
 
134
 
135
+ sp_get_template( 'event-performance-table.php', array(
136
+ 'position' => $position->name,
137
+ 'scrollable' => $scrollable,
138
+ 'sortable' => $sortable,
139
+ 'show_players' => $show_team_players,
140
+ 'show_numbers' => $show_numbers,
141
+ 'show_extras' => $show_extras,
142
+ 'show_total' => $show_total,
143
+ 'caption' => 0 == $position_index && $team_id ? get_the_title( $team_id ) : null,
144
+ 'labels' => $sublabels,
145
+ 'mode' => $mode,
146
+ 'data' => $subdata,
147
+ 'event' => $event,
148
+ 'link_posts' => $link_posts,
149
+ 'performance_ids' => isset( $performance_ids ) ? $performance_ids : null,
150
+ 'primary' => 'primary' == $total ? $primary : null,
151
+ ) );
152
+ }
153
+ }
154
+ } else {
155
+ sp_get_template( 'event-performance-table.php', array(
156
+ 'scrollable' => $scrollable,
157
+ 'sortable' => $sortable,
158
+ 'show_players' => $show_team_players,
159
+ 'show_numbers' => $show_numbers,
160
+ 'show_extras' => $show_extras,
161
+ 'show_total' => $show_total,
162
+ 'caption' => $team_id ? get_the_title( $team_id ) : null,
163
+ 'labels' => $labels,
164
+ 'mode' => $mode,
165
+ 'data' => $data,
166
+ 'event' => $event,
167
+ 'link_posts' => $link_posts,
168
+ 'performance_ids' => isset( $performance_ids ) ? $performance_ids : null,
169
+ 'primary' => 'primary' == $total ? $primary : null,
170
+
171
+ ) );
172
+ }
173
+ }
174
+ if ( $show_staff ):
175
+ sp_get_template( 'event-staff.php', array( 'id' => $id, 'index' => $index ) );
176
+ endif;
177
+ ?>
178
  <?php
179
  endforeach;
180
  } else {
181
  // Combined table
182
+ $data = array();
183
+ foreach ( $performance as $players ) {
184
+ foreach ( $players as $player_id => $player ) {
185
+ if ( $player_id <= 0 ) continue;
186
+ $data[ $player_id ] = $player;
187
+ }
188
+ }
189
+
190
+ if ( $split_positions ) {
191
+ $positions = get_terms( 'sp_position', array(
192
+ 'orderby' => 'slug',
193
+ ) );
194
+
195
+ foreach ( $positions as $position_index => $position ) {
196
+ $subdata = array();
197
+ foreach ( $data as $player_id => $player ) {
198
+ $player_positions = (array) sp_array_value( $player, 'position' );
199
+ $player_positions = array_filter( $player_positions );
200
+ if ( empty( $player_positions ) ) {
201
+ $player_positions = (array) sp_get_the_term_id( $player_id, 'sp_position' );
202
+ }
203
+ if ( in_array( $position->term_id, $player_positions ) ) {
204
+ $subdata[ $player_id ] = $data[ $player_id ];
205
+ }
206
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
 
208
+ if ( sizeof( $subdata ) ) {
209
+ sp_get_template( 'event-performance-table-combined.php', array(
210
+ 'scrollable' => $scrollable,
211
+ 'sortable' => $sortable,
212
+ 'show_players' => $show_players,
213
+ 'show_numbers' => $show_numbers,
214
+ 'show_extras' => $show_extras,
215
+ 'show_total' => $show_total,
216
+ 'caption' => $position->name,
217
+ 'labels' => $labels,
218
+ 'mode' => $mode,
219
+ 'data' => $subdata,
220
+ 'event' => $event,
221
+ 'link_posts' => $link_posts,
222
+ 'performance_ids' => isset( $performance_ids ) ? $performance_ids : null,
223
+ 'primary' => 'primary' == $total ? $primary : null,
224
+ ) );
225
+ }
226
+ }
227
+ } else {
228
+ sp_get_template( 'event-performance-table-combined.php', array(
229
+ 'scrollable' => $scrollable,
230
+ 'sortable' => $sortable,
231
+ 'show_players' => $show_players,
232
+ 'show_numbers' => $show_numbers,
233
+ 'show_extras' => $show_extras,
234
+ 'show_total' => $show_total,
235
+ 'caption' => __( 'Performance', 'sportspress' ),
236
+ 'labels' => $labels,
237
+ 'mode' => $mode,
238
+ 'data' => $data,
239
+ 'event' => $event,
240
+ 'link_posts' => $link_posts,
241
+ 'performance_ids' => isset( $performance_ids ) ? $performance_ids : null,
242
+ 'primary' => 'primary' == $total ? $primary : null,
243
+ ) );
244
+ }
245
  }
246
  endif;
templates/event-staff.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
- * @version 1.1
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -21,36 +21,38 @@ if ( ! $staffs ) return;
21
 
22
  extract( $defaults, EXTR_SKIP );
23
  ?>
24
- <p class="sp-event-staff">
25
- <?php
26
- foreach( $staffs as $staff_id ):
 
27
 
28
- if ( ! $staff_id )
29
- continue;
30
 
31
- $name = get_the_title( $staff_id );
32
 
33
- if ( ! $name )
34
- continue;
35
 
36
- $staff = new SP_Staff( $staff_id );
37
 
38
- $role = $staff->role();
39
 
40
- if ( $role )
41
- echo $role->name;
42
- else
43
- _e( 'Staff', 'sportspress' );
44
 
45
- echo ': ';
46
 
47
- if ( $link_posts ):
48
- $permalink = get_post_permalink( $staff_id );
49
- $name = '<a href="' . $permalink . '">' . $name . '</a>';
50
- endif;
51
 
52
- echo $name . '<br>';
53
 
54
- endforeach;
55
- ?>
56
- </p>
 
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
+ * @version 1.7
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
21
 
22
  extract( $defaults, EXTR_SKIP );
23
  ?>
24
+ <div class="sp-template sp-template-event-staff">
25
+ <p class="sp-event-staff">
26
+ <?php
27
+ foreach( $staffs as $staff_id ):
28
 
29
+ if ( ! $staff_id )
30
+ continue;
31
 
32
+ $name = get_the_title( $staff_id );
33
 
34
+ if ( ! $name )
35
+ continue;
36
 
37
+ $staff = new SP_Staff( $staff_id );
38
 
39
+ $role = $staff->role();
40
 
41
+ if ( $role )
42
+ echo $role->name;
43
+ else
44
+ _e( 'Staff', 'sportspress' );
45
 
46
+ echo ': ';
47
 
48
+ if ( $link_posts ):
49
+ $permalink = get_post_permalink( $staff_id );
50
+ $name = '<a href="' . $permalink . '">' . $name . '</a>';
51
+ endif;
52
 
53
+ echo $name . '<br>';
54
 
55
+ endforeach;
56
+ ?>
57
+ </p>
58
+ </div>
templates/event-venue.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
- * @version 1.5
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -41,16 +41,16 @@ foreach( $venues as $venue ):
41
  <th><?php echo $name; ?></th>
42
  </tr>
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; ?>
54
  </tbody>
55
  <?php endif; ?>
56
  </table>
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
+ * @version 1.7
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
41
  <th><?php echo $name; ?></th>
42
  </tr>
43
  </thead>
44
+ <?php if ( $show_maps && $latitude != null && $longitude != null ): ?>
45
  <tbody>
46
+ <tr class="sp-event-venue-map-row">
47
+ <td<?php if ( $address != null ) { ?> colspan="2"<?php } ?>><?php sp_get_template( 'venue-map.php', array( 'meta' => $meta ) ); ?></td>
48
  </tr>
49
+ <?php if ( $address != null ) { ?>
50
+ <tr>
51
+ <td class="sp-event-venue-address-row"><?php echo $address; ?></td>
52
  </tr>
53
+ <?php } ?>
54
  </tbody>
55
  <?php endif; ?>
56
  </table>
templates/player-details.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
- * @version 1.6
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -25,6 +25,7 @@ $countries = SP()->countries->countries;
25
  $player = new SP_Player( $id );
26
 
27
  $nationality = $player->nationality;
 
28
  $current_teams = $player->current_teams();
29
  $past_teams = $player->past_teams();
30
  $metrics_before = $player->metrics( true );
@@ -41,13 +42,13 @@ if ( $nationality ):
41
  $common[ __( 'Nationality', 'sportspress' ) ] = $country_name ? ( $show_nationality_flags ? '<img src="' . plugin_dir_url( SP_PLUGIN_FILE ) . 'assets/images/flags/' . strtolower( $nationality ) . '.png" alt="' . $nationality . '"> ' : '' ) . $country_name : '&mdash;';
42
  endif;
43
 
44
- $position_names = array();
45
- $positions = get_the_terms( $id, 'sp_position' );
46
- if ( $positions ): foreach ( $positions as $position ):
47
- $position_names[] = $position->name;
48
- endforeach; endif;
49
-
50
- $common[ __( 'Position', 'sportspress' ) ] = implode( ', ', $position_names );
51
 
52
  $data = array_merge( $metrics_before, $common, $metrics_after );
53
 
@@ -74,14 +75,16 @@ endif;
74
 
75
  $data = apply_filters( 'sportspress_player_details', $data, $id );
76
 
77
- $output = '<div class="sp-template sp-template-player-details sp-template-details"><div class="sp-list-wrapper"><dl class="sp-player-details">';
 
78
 
79
- foreach( $data as $label => $value ):
80
 
81
- $output .= '<dt>' . $label . '</dt><dd>' . $value . '</dd>';
82
 
83
- endforeach;
84
 
85
- $output .= '</dl></div></div>';
86
 
87
- echo $output;
 
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
+ * @version 1.7
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
25
  $player = new SP_Player( $id );
26
 
27
  $nationality = $player->nationality;
28
+ $positions = $player->positions();
29
  $current_teams = $player->current_teams();
30
  $past_teams = $player->past_teams();
31
  $metrics_before = $player->metrics( true );
42
  $common[ __( 'Nationality', 'sportspress' ) ] = $country_name ? ( $show_nationality_flags ? '<img src="' . plugin_dir_url( SP_PLUGIN_FILE ) . 'assets/images/flags/' . strtolower( $nationality ) . '.png" alt="' . $nationality . '"> ' : '' ) . $country_name : '&mdash;';
43
  endif;
44
 
45
+ if ( $positions ):
46
+ $position_names = array();
47
+ foreach ( $positions as $position ):
48
+ $position_names[] = $position->name;
49
+ endforeach;
50
+ $common[ __( 'Position', 'sportspress' ) ] = implode( ', ', $position_names );
51
+ endif;
52
 
53
  $data = array_merge( $metrics_before, $common, $metrics_after );
54
 
75
 
76
  $data = apply_filters( 'sportspress_player_details', $data, $id );
77
 
78
+ if ( sizeof( $data ) ) {
79
+ $output = '<div class="sp-template sp-template-player-details sp-template-details"><div class="sp-list-wrapper"><dl class="sp-player-details">';
80
 
81
+ foreach( $data as $label => $value ):
82
 
83
+ $output .= '<dt>' . $label . '</dt><dd>' . $value . '</dd>';
84
 
85
+ endforeach;
86
 
87
+ $output .= '</dl></div></div>';
88
 
89
+ echo $output;
90
+ }
templates/player-statistics.php CHANGED
@@ -4,10 +4,11 @@
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
- * @version 1.6
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
 
11
 
12
  if ( ! isset( $id ) )
13
  $id = get_the_ID();
@@ -15,7 +16,6 @@ if ( ! isset( $id ) )
15
  $player = new SP_Player( $id );
16
 
17
  $scrollable = get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false;
18
- $show_total = get_option( 'sportspress_player_show_total', 'no' ) == 'yes' ? true : false;
19
  $leagues = get_the_terms( $id, 'sp_league' );
20
 
21
  // Loop through statistics for each league
@@ -68,53 +68,51 @@ if ( is_array( $leagues ) ):
68
  endforeach;
69
  endif;
70
 
71
- if ( $show_total ):
72
- $data = $player->data( 0 );
73
 
74
- // The first row should be column labels
75
- $labels = $data[0];
76
 
77
- // Remove the first row to leave us with the actual data
78
- unset( $data[0] );
79
 
80
- // Skip if there are no rows in the table
81
- if ( empty( $data ) )
82
- return false;
83
 
84
- $output = '<h4 class="sp-table-caption">' . __( 'Career Total', 'sportspress' ) . '</h4>' .
85
- '<div class="sp-table-wrapper">' .
86
- '<table class="sp-player-statistics sp-data-table' . ( $scrollable ? ' sp-scrollable-table' : '' ) . '">' . '<thead>' . '<tr>';
87
 
88
- foreach( $labels as $key => $label ):
89
- if ( 'team' == $key )
90
- continue;
91
- $output .= '<th class="data-' . $key . '">' . $label . '</th>';
92
- endforeach;
93
 
94
- $output .= '</tr>' . '</thead>' . '<tbody>';
95
 
96
- $i = 0;
97
 
98
- foreach( $data as $season_id => $row ):
99
 
100
- $output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
101
 
102
- foreach( $labels as $key => $value ):
103
- if ( 'team' == $key )
104
- continue;
105
- $output .= '<td class="data-' . $key . '">' . sp_array_value( $row, $key, '&mdash;' ) . '</td>';
106
- endforeach;
107
 
108
- $output .= '</tr>';
109
 
110
- $i++;
111
 
112
- endforeach;
113
 
114
- $output .= '</tbody>' . '</table>' . '</div>';
115
- ?>
116
- <div class="sp-template sp-template-player-statistics sp-template-player-total">
117
- <?php echo $output; ?>
118
- </div>
119
- <?php
120
- endif;
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
+ * @version 1.7.4
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
+ if ( get_option( 'sportspress_player_show_statistics', 'yes' ) === 'no' ) return;
12
 
13
  if ( ! isset( $id ) )
14
  $id = get_the_ID();
16
  $player = new SP_Player( $id );
17
 
18
  $scrollable = get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false;
 
19
  $leagues = get_the_terms( $id, 'sp_league' );
20
 
21
  // Loop through statistics for each league
68
  endforeach;
69
  endif;
70
 
71
+ // Career total
72
+ $data = $player->data( 0 );
73
 
74
+ // The first row should be column labels
75
+ $labels = $data[0];
76
 
77
+ // Remove the first row to leave us with the actual data
78
+ unset( $data[0] );
79
 
80
+ // Skip if there are no rows in the table
81
+ if ( empty( $data ) )
82
+ return false;
83
 
84
+ $output = '<h4 class="sp-table-caption">' . __( 'Career Total', 'sportspress' ) . '</h4>' .
85
+ '<div class="sp-table-wrapper">' .
86
+ '<table class="sp-player-statistics sp-data-table' . ( $scrollable ? ' sp-scrollable-table' : '' ) . '">' . '<thead>' . '<tr>';
87
 
88
+ foreach( $labels as $key => $label ):
89
+ if ( 'team' == $key )
90
+ continue;
91
+ $output .= '<th class="data-' . $key . '">' . $label . '</th>';
92
+ endforeach;
93
 
94
+ $output .= '</tr>' . '</thead>' . '<tbody>';
95
 
96
+ $i = 0;
97
 
98
+ foreach( $data as $season_id => $row ):
99
 
100
+ $output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
101
 
102
+ foreach( $labels as $key => $value ):
103
+ if ( 'team' == $key )
104
+ continue;
105
+ $output .= '<td class="data-' . $key . '">' . sp_array_value( $row, $key, '&mdash;' ) . '</td>';
106
+ endforeach;
107
 
108
+ $output .= '</tr>';
109
 
110
+ $i++;
111
 
112
+ endforeach;
113
 
114
+ $output .= '</tbody>' . '</table>' . '</div>';
115
+ ?>
116
+ <div class="sp-template sp-template-player-statistics sp-template-player-total">
117
+ <?php echo $output; ?>
118
+ </div>