Plugin Directory

Changeset 3273766


Ignore:
Timestamp:
04/15/2025 04:21:06 PM (10 months ago)
Author:
mtreherne
Message:

Release of Version 3.20

Location:
eh-gms-feed
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • eh-gms-feed/tags/3.20/eh-gms-feed.php

    r3251215 r3273766  
    44 * Plugin URI: https://wordpress.org/plugins/eh-gms-feed/
    55 * Description: Show fixtures, results and tables from England Hockey GMS
    6  * Version: 3.19
     6 * Version: 3.20
    77 * Author: Matthew Treherne
    88 * Author URI: https://profiles.wordpress.org/mtreherne
  • eh-gms-feed/tags/3.20/includes/coreAPI.php

    r3251215 r3273766  
    313313            if ($fixture->status == 'Postponed' || ($fixture->homeTeamScore == 'P' && $fixture->awayTeamScore == 'P'));
    314314            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            }
    319321        }
    320322        if ($this->is_clubteam($fixture->homeTeam) && $this->is_clubwide()) {
  • eh-gms-feed/tags/3.20/includes/main-class.php

    r3158574 r3273766  
    145145
    146146    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);
    148148        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')]);
    149149        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  
    8383                var team = filter ? filter.find('select[name="team"]').val() : null;
    8484                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');
    8586                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 })
    8788                    .always(function() {
    8889                        loader.hide();
  • eh-gms-feed/tags/3.20/readme.txt

    r3251215 r3273766  
    55Tested up to: 6.7
    66Requires PHP: 5.3
    7 Stable tag: 3.19
     7Stable tag: 3.20
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6262
    6363== Changelog ==
     64
     65= 3.20 =
     66* Fix to display of results for team
    6467
    6568= 3.19 =
  • eh-gms-feed/trunk/eh-gms-feed.php

    r3251215 r3273766  
    44 * Plugin URI: https://wordpress.org/plugins/eh-gms-feed/
    55 * Description: Show fixtures, results and tables from England Hockey GMS
    6  * Version: 3.19
     6 * Version: 3.20
    77 * Author: Matthew Treherne
    88 * Author URI: https://profiles.wordpress.org/mtreherne
  • eh-gms-feed/trunk/includes/coreAPI.php

    r3251215 r3273766  
    313313            if ($fixture->status == 'Postponed' || ($fixture->homeTeamScore == 'P' && $fixture->awayTeamScore == 'P'));
    314314            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            }
    319321        }
    320322        if ($this->is_clubteam($fixture->homeTeam) && $this->is_clubwide()) {
  • eh-gms-feed/trunk/includes/main-class.php

    r3158574 r3273766  
    145145
    146146    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);
    148148        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')]);
    149149        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  
    8383                var team = filter ? filter.find('select[name="team"]').val() : null;
    8484                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');
    8586                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 })
    8788                    .always(function() {
    8889                        loader.hide();
  • eh-gms-feed/trunk/readme.txt

    r3251215 r3273766  
    55Tested up to: 6.7
    66Requires PHP: 5.3
    7 Stable tag: 3.19
     7Stable tag: 3.20
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6262
    6363== Changelog ==
     64
     65= 3.20 =
     66* Fix to display of results for team
    6467
    6568= 3.19 =
Note: See TracChangeset for help on using the changeset viewer.