Example #1
0
                    <table class="table table-bordered table-condensed table-league-data" id="<?php 
        echo $game->{'gameId'};
        ?>
">
                        <caption><?php 
        echo $game->{'gameMode'};
        ?>
</caption>
                        <thead>
                            <tr>
                                <th><?php 
        echo \components\language\Language::translate('table_key');
        ?>
</th>
                                <th><?php 
        echo \components\language\Language::translate('table_value');
        ?>
</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php 
        foreach ($game as $key => $value) {
            ?>
                                <?php 
            if (is_string($value)) {
                ?>
                                    <tr>
                                        <td><?php 
                echo components\language\Language::translate($key);
                ?>
Example #2
0
<div class="page-header">
    <h3><?php 
echo \components\language\Language::translate('math_header');
?>
</h3>
</div>
<?php 
echo \components\view\ViewFactory::get('math.limes.view.php');
Example #3
0
<?php

$math_english = array('find_player_info' => 'Find information about any player on OGame.', 'player_search_placeholder' => 'Enter player name', 'player_search_button' => 'Search');
\components\language\Language::addLanguage('en', $math_english);
Example #4
0
</h3>
    </div>
    <div class="panel-body">
        <?php 
if (!components\input\Input::hasGET('calculate')) {
    ?>
            <form method="GET" action="">
                <input type="hidden" name="page" value="math" />
                <div class="input-group">
                    <input type="text" name="formula" class="form-control" placeholder="<?php 
    echo \components\language\Language::translate('math_formula');
    ?>
" />
                    <span class="input-group-btn">
                        <input class="btn btn-default" type="submit" name="calculate" value="<?php 
    echo \components\language\Language::translate('math_calculate');
    ?>
" />
                    </span>
                </div>
            </form>
        <?php 
} else {
    ?>
        <?php 
    $formula_string = str_replace(' ', '', components\input\Input::getGET('formula'));
    $formula = new components\math\Formula($formula_string);
    ?>
        <pre><?php 
    echo $formula->getText();
    ?>