Esempio n. 1
0
            foreach ($games as $game) {
                $groupPoints += $game->getGroupPoints();
                $enemyPoints += $game->getEnemyPoints();
            }
            if ($groupPoints > $enemyPoints) {
                $class = 'class="war_win small"';
            }
            if ($groupPoints < $enemyPoints) {
                $class = 'class="war_lost small"';
            }
            if ($groupPoints == $enemyPoints) {
                $class = 'class="war_drawn small"';
            }
        }
        $gameImg = $this->getBaseUrl('application/modules/war/static/img/' . $war->getWarGame() . '.png');
        if ($warMapper->url_check($gameImg)) {
            $gameImg = '<img src="' . $this->getBaseUrl('application/modules/war/static/img/' . $war->getWarGame() . '.png') . '" title="' . $this->escape($war->getWarGame()) . '" width="16" height="16">';
        } else {
            $gameImg = '<i class="fa fa-question-circle text-muted"></i>';
        }
        ?>
        <div class="games-schedule-items">
            <div class="row games-team">
                <a href="<?php 
        echo $this->getUrl('war/index/show/id/' . $war->getId());
        ?>
">
                <div class="col-md-5">
                    <div style="width: 20px; float: left;"><?php 
        echo $gameImg;
        ?>