Changeset 3273766
- Timestamp:
- 04/15/2025 04:21:06 PM (10 months ago)
- Location:
- eh-gms-feed
- Files:
-
- 10 edited
-
tags/3.20/eh-gms-feed.php (modified) (1 diff)
-
tags/3.20/includes/coreAPI.php (modified) (1 diff)
-
tags/3.20/includes/main-class.php (modified) (1 diff)
-
tags/3.20/js/eh-gms-feed.js (modified) (1 diff)
-
tags/3.20/readme.txt (modified) (2 diffs)
-
trunk/eh-gms-feed.php (modified) (1 diff)
-
trunk/includes/coreAPI.php (modified) (1 diff)
-
trunk/includes/main-class.php (modified) (1 diff)
-
trunk/js/eh-gms-feed.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eh-gms-feed/tags/3.20/eh-gms-feed.php
r3251215 r3273766 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. 196 * Version: 3.20 7 7 * Author: Matthew Treherne 8 8 * Author URI: https://profiles.wordpress.org/mtreherne -
eh-gms-feed/tags/3.20/includes/coreAPI.php
r3251215 r3273766 313 313 if ($fixture->status == 'Postponed' || ($fixture->homeTeamScore == 'P' && $fixture->awayTeamScore == 'P')); 314 314 elseif ($fixture->status == 'Cancelled' || ($fixture->homeTeamScore == 'C' && $fixture->awayTeamScore == 'C')); 315 elseif ($fixture->homeTeamScore == $fixture->awayTeamScore) $score_class = 'gms-draw'; 316 elseif (($fixture->homeTeam->id == $this->atts_show['team'] || ($this->is_clubwide() && $fixture->homeTeam->clubId == $this->atts_show['club_id'])) && $fixture->homeTeamScore > $fixture->awayTeamScore) $score_class = 'gms-win'; 317 elseif (($fixture->awayTeam->id == $this->atts_show['team'] || ($this->is_clubwide() && $fixture->awayTeam->clubId == $this->atts_show['club_id'])) && $fixture->homeTeamScore < $fixture->awayTeamScore) $score_class = 'gms-win'; 318 else $score_class = 'gms-loss'; 315 elseif ($this->is_clubwide() || $this->is_team()) { 316 if ($fixture->homeTeamScore == $fixture->awayTeamScore) $score_class = 'gms-draw'; 317 elseif (($fixture->homeTeam->id == $this->atts_show['team'] || $fixture->homeTeam->clubId == $this->atts_show['club_id']) && $fixture->homeTeamScore > $fixture->awayTeamScore) $score_class = 'gms-win'; 318 elseif (($fixture->awayTeam->id == $this->atts_show['team'] || $fixture->awayTeam->clubId == $this->atts_show['club_id']) && $fixture->homeTeamScore < $fixture->awayTeamScore) $score_class = 'gms-win'; 319 else $score_class = 'gms-loss'; 320 } 319 321 } 320 322 if ($this->is_clubteam($fixture->homeTeam) && $this->is_clubwide()) { -
eh-gms-feed/tags/3.20/includes/main-class.php
r3158574 r3273766 145 145 146 146 public function enqueue_scripts () { 147 wp_register_script('EH_GMS_Feed', plugin_dir_url(__DIR__).'js/eh-gms-feed.js', ['jquery'], '3. 14', true);147 wp_register_script('EH_GMS_Feed', plugin_dir_url(__DIR__).'js/eh-gms-feed.js', ['jquery'], '3.20', true); 148 148 wp_localize_script('EH_GMS_Feed', 'eh_gms_feed_ajax_obj', ['ajax_url' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce('get_gms_table')]); 149 149 wp_register_style('EH_GMS_Feed', plugin_dir_url(__DIR__).'css/gms-default.css',[],'3.15'); -
eh-gms-feed/tags/3.20/js/eh-gms-feed.js
r3066677 r3273766 83 83 var team = filter ? filter.find('select[name="team"]').val() : null; 84 84 var club_id = (wrapper.data('club_id') && !team) ? wrapper.data('club_id') : null; 85 if (!team && !club_id && wrapper.data('team')) team = wrapper.data('team'); 85 86 var back_btns = []; 86 jQuery.post(eh_gms_feed_ajax_obj.ajax_url, { _ajax_nonce: eh_gms_feed_ajax_obj.nonce, action: "get_gms_table", method: 'api', show: 'fixture', club_id: club_id, options: 'id:' + fixture })87 jQuery.post(eh_gms_feed_ajax_obj.ajax_url, { _ajax_nonce: eh_gms_feed_ajax_obj.nonce, action: "get_gms_table", method: 'api', show: 'fixture', club_id: club_id, options: 'id:' + fixture, team: team }) 87 88 .always(function() { 88 89 loader.hide(); -
eh-gms-feed/tags/3.20/readme.txt
r3251215 r3273766 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.3 7 Stable tag: 3. 197 Stable tag: 3.20 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.20 = 66 * Fix to display of results for team 64 67 65 68 = 3.19 = -
eh-gms-feed/trunk/eh-gms-feed.php
r3251215 r3273766 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. 196 * Version: 3.20 7 7 * Author: Matthew Treherne 8 8 * Author URI: https://profiles.wordpress.org/mtreherne -
eh-gms-feed/trunk/includes/coreAPI.php
r3251215 r3273766 313 313 if ($fixture->status == 'Postponed' || ($fixture->homeTeamScore == 'P' && $fixture->awayTeamScore == 'P')); 314 314 elseif ($fixture->status == 'Cancelled' || ($fixture->homeTeamScore == 'C' && $fixture->awayTeamScore == 'C')); 315 elseif ($fixture->homeTeamScore == $fixture->awayTeamScore) $score_class = 'gms-draw'; 316 elseif (($fixture->homeTeam->id == $this->atts_show['team'] || ($this->is_clubwide() && $fixture->homeTeam->clubId == $this->atts_show['club_id'])) && $fixture->homeTeamScore > $fixture->awayTeamScore) $score_class = 'gms-win'; 317 elseif (($fixture->awayTeam->id == $this->atts_show['team'] || ($this->is_clubwide() && $fixture->awayTeam->clubId == $this->atts_show['club_id'])) && $fixture->homeTeamScore < $fixture->awayTeamScore) $score_class = 'gms-win'; 318 else $score_class = 'gms-loss'; 315 elseif ($this->is_clubwide() || $this->is_team()) { 316 if ($fixture->homeTeamScore == $fixture->awayTeamScore) $score_class = 'gms-draw'; 317 elseif (($fixture->homeTeam->id == $this->atts_show['team'] || $fixture->homeTeam->clubId == $this->atts_show['club_id']) && $fixture->homeTeamScore > $fixture->awayTeamScore) $score_class = 'gms-win'; 318 elseif (($fixture->awayTeam->id == $this->atts_show['team'] || $fixture->awayTeam->clubId == $this->atts_show['club_id']) && $fixture->homeTeamScore < $fixture->awayTeamScore) $score_class = 'gms-win'; 319 else $score_class = 'gms-loss'; 320 } 319 321 } 320 322 if ($this->is_clubteam($fixture->homeTeam) && $this->is_clubwide()) { -
eh-gms-feed/trunk/includes/main-class.php
r3158574 r3273766 145 145 146 146 public function enqueue_scripts () { 147 wp_register_script('EH_GMS_Feed', plugin_dir_url(__DIR__).'js/eh-gms-feed.js', ['jquery'], '3. 14', true);147 wp_register_script('EH_GMS_Feed', plugin_dir_url(__DIR__).'js/eh-gms-feed.js', ['jquery'], '3.20', true); 148 148 wp_localize_script('EH_GMS_Feed', 'eh_gms_feed_ajax_obj', ['ajax_url' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce('get_gms_table')]); 149 149 wp_register_style('EH_GMS_Feed', plugin_dir_url(__DIR__).'css/gms-default.css',[],'3.15'); -
eh-gms-feed/trunk/js/eh-gms-feed.js
r3066677 r3273766 83 83 var team = filter ? filter.find('select[name="team"]').val() : null; 84 84 var club_id = (wrapper.data('club_id') && !team) ? wrapper.data('club_id') : null; 85 if (!team && !club_id && wrapper.data('team')) team = wrapper.data('team'); 85 86 var back_btns = []; 86 jQuery.post(eh_gms_feed_ajax_obj.ajax_url, { _ajax_nonce: eh_gms_feed_ajax_obj.nonce, action: "get_gms_table", method: 'api', show: 'fixture', club_id: club_id, options: 'id:' + fixture })87 jQuery.post(eh_gms_feed_ajax_obj.ajax_url, { _ajax_nonce: eh_gms_feed_ajax_obj.nonce, action: "get_gms_table", method: 'api', show: 'fixture', club_id: club_id, options: 'id:' + fixture, team: team }) 87 88 .always(function() { 88 89 loader.hide(); -
eh-gms-feed/trunk/readme.txt
r3251215 r3273766 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.3 7 Stable tag: 3. 197 Stable tag: 3.20 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.20 = 66 * Fix to display of results for team 64 67 65 68 = 3.19 =
Note: See TracChangeset
for help on using the changeset viewer.