Ignore:
Timestamp:
Feb 12, 2014, 8:54:47 PM (10 years ago)
Author:
chronos
Message:
  • Fixed: Wrong HTML tags.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/FrontPage/FrontPage.php

    r778 r796  
    1313    $this->Dependencies = array('News', 'User', 'ShoutBox', 'Translation');
    1414  }
    15  
     15
    1616  function Start()
    1717  {
     
    1919    $this->System->RegisterMenuItem(array(
    2020      'Title' => T('Home'),
    21       'Hint' => T('Main page'), 
     21      'Hint' => T('Main page'),
    2222      'Link' => $this->System->Link('/'),
    2323      'Permission' => LICENCE_ANONYMOUS,
    24       'Icon' => '', 
     24      'Icon' => '',
    2525    ), 0);
    2626  }
    27  
     27
    2828  function HandleLoginForm()
    2929  {
    3030        global $Message, $MessageType;
    31  
     31
    3232        if(array_key_exists('action', $_GET))
    3333        {
     
    6565                        }
    6666        }
    67   } 
     67  }
    6868}
    6969
     
    7373  {
    7474        global $Message, $MessageType;
    75        
     75
    7676        $this->Title = T('Home');
    7777        $this->System->ModuleManager->Modules['FrontPage']->HandleLoginForm();
    7878        $Output = '';
    7979        if(isset($Message)) $Output .= ShowMessage($Message, $MessageType);
    80                            
     80
    8181        $Output .= '<br />'.
    82                         '<table class="Home"><tr><td colspan="3">'.$this->ShowWelcome().
    83                         '</td></tr>';
    84       $Output .= '<tr><td><h3><a href="'.$this->System->Link('/download/').'">'.T('Download Czech File').'</a></h3></tr><td>';
     82                '<table class="Home"><tr><td colspan="3">'.$this->ShowWelcome().
     83                '</td></tr>';
     84    $Output .= '<tr><td><h3><a href="'.$this->System->Link('/download/').'">'.T('Download Czech File').'</a></h3></td></tr>';
    8585
    8686        $Output .= '<tr><td>'.$this->ShowLastTranslated().'</td>'.
     
    8989                        '</tr></table>';
    9090         return($Output);
    91   } 
    92  
     91  }
     92
    9393  function ShowLastTranslated()
    9494  {
    9595        $Count = 40;
    9696        $Output = '<strong>'.T('Last translated').':</strong>';
    97  
     97
    9898        $GroupListQuery = 'SELECT `Group`.* FROM `Group`';
    9999        $Query = '';
     
    140140        }
    141141        setcookie('HideWelcome', $_COOKIE['HideWelcome'], time() + 3600 * 24 * 365);
    142  
     142
    143143        if(isset($_COOKIE['HideWelcome']) and ($_COOKIE['HideWelcome'] == 1))
    144144        {
     
    150150                $HideWelcome = '';
    151151        }
    152  
     152
    153153        // Echo text even if it is hidden because of caching by external searching engines
    154154        return('<div style="'.$HideWelcome.'">'.
     
    161161                        '<li>Přeložené texty lze volně stahovat v různých tvarech jako XML, SQL, Addon a Lua. Přeložené texty lze tedy snadno importovat do svého free serveru nebo použít v jiných projektech.</li>'.
    162162                        '<li>Cílem projektu je přeložit všechny texty ze hry. Nikoliv pouze texty výprav (questů).</li>'.
    163         '<li>Díky propracovanému systému volitelných exportů si můžete stáhnout libovolnou část překladu, klidně pouze výpravy. A vynechat tak překlady předmětů, jména postav a jiných.'.
     163        '<li>Díky propracovanému systému volitelných exportů si můžete stáhnout libovolnou část překladu, klidně pouze výpravy. A vynechat tak překlady předmětů, jména postav a jiných.</li>'.
    164164                        '<li>Texty lze překládat do dvou jazyků, češtiny a slovenštiny.</li>'.
    165165                        '</ul></div>'.$Action);
    166   } 
     166  }
    167167}
Note: See TracChangeset for help on using the changeset viewer.