예제 #1
0
 public static function translate($key, $language = 'en', $force = false)
 {
     if (!$force && \components\input\Input::hasGET('lang')) {
         $language = \components\input\Input::getGET('lang');
     }
     if (self::hasTranslation($key, $language)) {
         return self::$translations[$language][$key];
     } else {
         return self::translateGlobal($key);
     }
     return $key;
 }
예제 #2
0
<?php

if (\components\input\Input::hasGET('summoner')) {
    $summoner_name = \components\input\Input::getGET('summoner');
    $region = \components\input\Input::getGET('region');
    $summoner = new extensions\league\Summoner($summoner_name, $region);
    $summoner->getGames();
    ?>
    <div class="page-header">
        <h3><?php 
    echo $summoner->getInfo('name');
    ?>
</h3>
    </div>
    <div class="panel-group" id="summoner" role="tablist" aria-multiselectable="false">
        <div class="panel panel-default" id="summoner_data">
            <div class="panel-heading">
                <h3 class="panel-title">
                    <a role="button" data-toggle="collapse" data-parent="#summoner" href="#stats" aria-expanded="true" aria-controls="stats">
                        <?php 
    echo components\language\Language::translate('summonerstats');
    ?>
                    </a>
                </h3>
            </div>
            <div id="stats" class="panel-collapse toggle-group collapse in" role="tabpanel">
                <?php 
    foreach ($summoner->getStats('playerStatSummaries') as $summary) {
        if (!empty((array) $summary->{'aggregatedStats'})) {
            ?>
                        <a class="block toggle" href="#<?php 
예제 #3
0
<div class="page container-fluid col-xs-12 col-md-8 col-md-offset-2">
    <?php 
$page = \components\input\Input::getGET('page', 'home');
echo \extensions\pages\PageFactory::get($page);
?>
</div>