Plugin Directory

Changeset 3277496


Ignore:
Timestamp:
04/20/2025 08:37:20 AM (11 months ago)
Author:
beardev
Message:

v 3.0.4

Location:
joomsport-prediction
Files:
86 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • joomsport-prediction/trunk/includes/joomsport-prediction-actions.php

    r3131650 r3277496  
    536536                            $newdt = $ceilN * pow(2,($intB+1));
    537537                        }
    538                        
    539                        
    540                        
    541                         if(isset($knockoutView[$intB][$intA])){
     538
     539
     540
     541                        if(class_exists("JoomsportTermsMeta")) {
     542                            $knT = unserialize($knockoutView);
     543                        }else{
     544                            $knT = $knockoutView;
     545                        }
     546                        if($knT){
     547
    542548                            $kvalues = array(
    543                                 "home" => $knockoutView[$intB][$intA]["home"],
    544                                 "away" => $knockoutView[$intB][$intA]["away"],
    545                                 "score1" => $knockoutView[$intB][$intA]["score1"],
    546                                 "score2" => $knockoutView[$intB][$intA]["score2"],
    547                                 "match_id" => $knockoutView[$intB][$intA]["match_id"]
     549                                "home" => $knT[$intB][$intA]["home"],
     550                                "away" => $knT[$intB][$intA]["away"],
     551                                "score1" => $knT[$intB][$intA]["score1"],
     552                                "score2" => $knT[$intB][$intA]["score2"],
     553                                "match_id" => $knT[$intB][$intA]["match_id"]
    548554                            );
    549555                        }
     
    555561                       
    556562                        if(isset($arrV[0]) && $arrV[0]){
    557                             if(isset($knockoutView[$intB+1][$newdt][$od?"away":"home"])){
     563                            if(isset($knT[$intB+1][$newdt][$od?"away":"home"])){
    558564                                $arrVNext = isset($prediction['knockpartic_'.$newdt.'_'.($intB+1)])?$prediction['knockpartic_'.$newdt.'_'.($intB+1)]:array();
    559565                               
     
    562568                                    $filled++;
    563569                                    //var_dump($knockoutView[$newdt][$intB+1]);
    564                                     if($knockoutView[$intB+1][$newdt][$od?"away":"home"] == $arrVNext[$od]){
     570                                    if($knT[$intB+1][$newdt][$od?"away":"home"] == $arrVNext[$od]){
    565571                                        $success++;
    566572                                        if(isset($knock_settings[$kformat/(pow(2,($intB+1)))])){
  • joomsport-prediction/trunk/includes/meta-boxes/joomsport-prediction-meta-round.php

    r3131650 r3277496  
    391391                }
    392392                echo __('Filters:','joomsport-prediction')." ";
    393                 echo JoomSportHelperSelectBox::Simple('season_id', $seasonsStd,0,' id="jspred_fltr_season_id" onchange="JSPRED_filteredMatches(0,'.$leagueid.');"',__('Select season','joomsport-prediction'));
    394                 echo JoomSportHelperSelectBox::Simple('matchday_id', array(),0,' id="jspred_fltr_matchday_id"  onchange="JSPRED_filteredMatches(1,'.$leagueid.');"',__('Select matchday','joomsport-prediction'));
     393                echo JoomSportHelperSelectBox::Simple('season_id', $seasonsStd,0,' id="jspred_fltr_season_id" onchange="JSFANT_filteredMatches(0,'.$leagueid.');"',__('Select season','joomsport-prediction'));
     394                echo JoomSportHelperSelectBox::Simple('matchday_id', array(),0,' id="jspred_fltr_matchday_id"  onchange="JSFANT_filteredMatches(1,'.$leagueid.');"',__('Select matchday','joomsport-prediction'));
    395395
    396396                echo '&nbsp;<input type="button" id="jsprediction_matches_selectall" class="button" value="'.__('Select All','joomsport-prediction').'">';
  • joomsport-prediction/trunk/joomsport-prediction.php

    r3177772 r3277496  
    44Plugin URI: http://joomsport.com
    55Description: Create sport predictions for your JoomSport matches
    6 Version: 3.0.3
     6Version: 3.0.4
    77Author: BearDev
    88Author URI: http://BearDev.com
  • joomsport-prediction/trunk/readme.txt

    r3271110 r3277496  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 3.0.3
     7Stable tag: 3.0.4
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    8888== Changelog ==
    8989
     90= 3.0.4 =
     91Bug fix. Show predict Joker option for mobiles view.
     92
    9093= 3.0.3 =
    9194Mobile view improvement for scores predict page.
  • joomsport-prediction/trunk/sportleague/assets/css/prediction.css

    r3177772 r3277496  
    771771    min-height: 50px;
    772772}
     773.jsMatchPredJoker {
     774    display: flex;
     775    align-items: center;
     776    justify-content: center;
     777    gap: 2px;
     778    min-width: 75px;
     779}
     780.jsMatchPredLink {
     781    min-width: 70px;
     782    text-align: right;
     783}
    773784#joomsport-container .jsMatchPredTeam img {
    774785    min-width: auto;
  • joomsport-prediction/trunk/sportleague/views/default/userround.php

    r3177772 r3277496  
    5757                                ?>
    5858                            </div>
     59                           
     60                            <?php
     61                                if($joker_match && $rows->getMatchJoker($match->id) != ''){
     62                                    echo '<div class="jsMatchPredJoker">';
     63                                    echo __('Joker','joomsport-prediction') .': '.$rows->getMatchJoker($match->id);
     64                                    echo '</div>';
     65                                }
     66                            ?>
     67                           
    5968                            <div class="jsMatchPredLink">
    6069                                <?php echo classJsportLink::match(__('View Match','joomsport-prediction'), $match->id, false, '', 0); ?>
Note: See TracChangeset for help on using the changeset viewer.