Changeset 3166632
- Timestamp:
- 10/10/2024 02:21:18 PM (17 months ago)
- Location:
- eh-gms-feed
- Files:
-
- 6 edited
-
tags/3.18/eh-gms-feed.php (modified) (1 diff)
-
tags/3.18/includes/coreAPI.php (modified) (3 diffs)
-
tags/3.18/readme.txt (modified) (2 diffs)
-
trunk/eh-gms-feed.php (modified) (1 diff)
-
trunk/includes/coreAPI.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eh-gms-feed/tags/3.18/eh-gms-feed.php
r3158574 r3166632 4 4 * Plugin URI: https://wordpress.org/plugins/eh-gms-feed/ 5 5 * Description: Show fixtures, results and tables from England Hockey GMS 6 * Version: 3.1 76 * Version: 3.18 7 7 * Author: Matthew Treherne 8 8 * Author URI: https://profiles.wordpress.org/mtreherne -
eh-gms-feed/tags/3.18/includes/coreAPI.php
r3158574 r3166632 131 131 if (str_contains($this->atts_show['show'], 'teams')) $tables[] = 'teams'; 132 132 foreach ($tables as $table_name) { 133 if ($this->api_error) break;133 $result = ''; 134 134 $this->table_name = $table_name; 135 135 $this->display_name = ($table_name == 'combined') ? 'results' : $table_name; … … 138 138 if ($table_name == 'league') { 139 139 if ($this->atts_show['link']) $this->comp_link = $this->atts_show['link']; 140 if ($this->is_competition()) $ html .= $this->get_json('competition', $this->atts_show['comp_id']);141 else $ html .= $this->multiple_teams();140 if ($this->is_competition()) $result = $this->get_json('competition', $this->atts_show['comp_id']); 141 else $result = $this->multiple_teams(); 142 142 } 143 143 elseif (($table_name == 'fixtures' || $table_name == 'results' || $table_name == 'combined') && $this->is_team()) { 144 144 if ($this->atts_show['link']) $this->team_link = $this->atts_show['link']; 145 $ html .= $this->get_json('fixturesandresults', $this->atts_show['team']);145 $result = $this->get_json('fixturesandresults', $this->atts_show['team']); 146 146 } 147 147 elseif (($table_name == 'fixtures' || $table_name == 'results' || $table_name == 'combined') && $this->is_clubwide()) { 148 148 if ($this->atts_show['link']) $this->club_link = $this->atts_show['link']; 149 $ html .= $this->get_json('matchdays', $this->atts_show['club_id']);149 $result = $this->get_json('matchdays', $this->atts_show['club_id']); 150 150 } 151 151 elseif ($table_name == 'teams' && $this->is_clubwide()) { 152 152 if ($this->atts_show['link']) $this->club_link = $this->atts_show['link']; 153 $ html .= $this->get_json('teamslist', $this->atts_show['club_id']);153 $result = $this->get_json('teamslist', $this->atts_show['club_id']); 154 154 } 155 155 elseif ($table_name == 'fixture' && $this->id) { 156 156 $this->show_list = true; 157 $html .= $this->get_json('fixture', $this->id); 158 } 157 $result = $this->get_json('fixture', $this->id); 158 } 159 if ($this->api_error) { $html = $result; break; } 160 else $html .= $result; 159 161 } 160 162 return $html; … … 269 271 } 270 272 switch ($player->otherRoleDescription) { 271 case 'Goalkeeper' : $role = ' (GK)'; break;272 case 'Captain' : $role = ' (C)'; break;273 case 'Goalkeeper' : case 'GK' : $role = ' (GK)'; break; 274 case 'Captain' : case 'CAPT' : $role = ' (C)'; break; 273 275 default : $role = ''; 274 276 } -
eh-gms-feed/tags/3.18/readme.txt
r3158574 r3166632 5 5 Tested up to: 6.6 6 6 Requires PHP: 5.3 7 Stable tag: 3.1 77 Stable tag: 3.18 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 62 62 63 63 == Changelog == 64 65 = 3.18 = 66 * Fix to display player role on fixture detail 67 * Technical upgrade to error handling 64 68 65 69 = 3.17 = -
eh-gms-feed/trunk/eh-gms-feed.php
r3158574 r3166632 4 4 * Plugin URI: https://wordpress.org/plugins/eh-gms-feed/ 5 5 * Description: Show fixtures, results and tables from England Hockey GMS 6 * Version: 3.1 76 * Version: 3.18 7 7 * Author: Matthew Treherne 8 8 * Author URI: https://profiles.wordpress.org/mtreherne -
eh-gms-feed/trunk/includes/coreAPI.php
r3158574 r3166632 131 131 if (str_contains($this->atts_show['show'], 'teams')) $tables[] = 'teams'; 132 132 foreach ($tables as $table_name) { 133 if ($this->api_error) break;133 $result = ''; 134 134 $this->table_name = $table_name; 135 135 $this->display_name = ($table_name == 'combined') ? 'results' : $table_name; … … 138 138 if ($table_name == 'league') { 139 139 if ($this->atts_show['link']) $this->comp_link = $this->atts_show['link']; 140 if ($this->is_competition()) $ html .= $this->get_json('competition', $this->atts_show['comp_id']);141 else $ html .= $this->multiple_teams();140 if ($this->is_competition()) $result = $this->get_json('competition', $this->atts_show['comp_id']); 141 else $result = $this->multiple_teams(); 142 142 } 143 143 elseif (($table_name == 'fixtures' || $table_name == 'results' || $table_name == 'combined') && $this->is_team()) { 144 144 if ($this->atts_show['link']) $this->team_link = $this->atts_show['link']; 145 $ html .= $this->get_json('fixturesandresults', $this->atts_show['team']);145 $result = $this->get_json('fixturesandresults', $this->atts_show['team']); 146 146 } 147 147 elseif (($table_name == 'fixtures' || $table_name == 'results' || $table_name == 'combined') && $this->is_clubwide()) { 148 148 if ($this->atts_show['link']) $this->club_link = $this->atts_show['link']; 149 $ html .= $this->get_json('matchdays', $this->atts_show['club_id']);149 $result = $this->get_json('matchdays', $this->atts_show['club_id']); 150 150 } 151 151 elseif ($table_name == 'teams' && $this->is_clubwide()) { 152 152 if ($this->atts_show['link']) $this->club_link = $this->atts_show['link']; 153 $ html .= $this->get_json('teamslist', $this->atts_show['club_id']);153 $result = $this->get_json('teamslist', $this->atts_show['club_id']); 154 154 } 155 155 elseif ($table_name == 'fixture' && $this->id) { 156 156 $this->show_list = true; 157 $html .= $this->get_json('fixture', $this->id); 158 } 157 $result = $this->get_json('fixture', $this->id); 158 } 159 if ($this->api_error) { $html = $result; break; } 160 else $html .= $result; 159 161 } 160 162 return $html; … … 269 271 } 270 272 switch ($player->otherRoleDescription) { 271 case 'Goalkeeper' : $role = ' (GK)'; break;272 case 'Captain' : $role = ' (C)'; break;273 case 'Goalkeeper' : case 'GK' : $role = ' (GK)'; break; 274 case 'Captain' : case 'CAPT' : $role = ' (C)'; break; 273 275 default : $role = ''; 274 276 } -
eh-gms-feed/trunk/readme.txt
r3158574 r3166632 5 5 Tested up to: 6.6 6 6 Requires PHP: 5.3 7 Stable tag: 3.1 77 Stable tag: 3.18 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 62 62 63 63 == Changelog == 64 65 = 3.18 = 66 * Fix to display player role on fixture detail 67 * Technical upgrade to error handling 64 68 65 69 = 3.17 =
Note: See TracChangeset
for help on using the changeset viewer.