Plugin Directory

Changeset 690159


Ignore:
Timestamp:
04/01/2013 04:15:58 PM (13 years ago)
Author:
finalan
Message:
  • bugfix: if search&replace is not replacing anything in the league-name, then the full league-name is been displayed
Location:
ttlive/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ttlive/trunk/index.php

    r690149 r690159  
    44Plugin URI: http://www.svbb-tischtennis.de/
    55Description: A simple wordpress plugin to get the data from the ttlive-system and show it on my wp-post or wp-page
    6 Version: 0.8.3
     6Version: 0.8.4
    77Author: finalan
    88Author URI: http://www.svbb-tischtennis.de
     
    406406        }
    407407        $plan .= "<table class='" . $tableclassname . "'>\n";
    408         $plan .= "<tr><th></th><th style='text-align:center'>Datum</th>\n";
    409         $plan .= "<th style='text-align:center'>Zeit</th>\n";
     408        $plan .= "<tr><th></th><th>Datum</th>\n";
     409        $plan .= "<th>Zeit</th>\n";
    410410        $plan .= "<th style='text-align:left'>Staffel</th>\n";
    411411        $plan .= "<th style='text-align:right'>Heimteam</th>\n";
     
    414414        if ($params['display_type']==0)
    415415        {
    416             $plan .= "<th style='text-align:center'>Erg.</th>\n";
     416            $plan .= "<th>Erg.</th>\n";
    417417        }
    418418        $plan .= "</tr>\n";
     
    447447                    $plan .=  " class='odd'>";
    448448                }                       
    449                 $plan .= '<td>'.$marker.$attribute->Tag.'</td><td>'.$thedate->format('d.m.Y').'</td>'."\n";
     449                $plan .= '<td>'.$marker.$attribute->Tag.'</td><td>'.$thedate->format('d.m.').'</td>'."\n";
    450450                $plan .= "<td>$time</td>\n";
    451451                $staffel = explode(", ", $attribute->Staffelname);
     
    453453                $replace = array("BK", "BL", "KL", "KK", "LL", "N", "S", "O", "W", "M");
    454454                $newstaffel = str_replace($search, $replace, $staffel[1]);
    455                 if ($staffel[0] == "Pokal Herren"):
    456                     $newstaffel = "Pokal He";
     455                if ($staffel[0] == $attribute->Staffelname):
     456                    $newstaffel = $attribute->Staffelname;
    457457                endif;
    458458                $plan .= "<td>".$newstaffel."</td>\n";
  • ttlive/trunk/readme.txt

    r690149 r690159  
    8080== Changelog ==
    8181
     82= 0.8.4 =
     83* bugfix: if search&replace is not replacing anything in the league-name, then the full league-name is been displayed
     84
    8285= 0.8.3 =
    83 * added sorting for last matches (14 Tage), to show the max number of matches by date
     86* added sorting for last matches, to show the max number of matches by date
    8487
    8588= 0.8.1 =
Note: See TracChangeset for help on using the changeset viewer.