예제 #1
0
<h2>Tournois</h2>

<section class="tournaments">
	<?php 
use lib\content\Image;
use lib\lan\Game;
use lib\lan\Tournament;
$tournaments = Tournament::getTournaments();
foreach ($tournaments as $tournament) {
    ?>
    <article>
        <img src="<?php 
    echo Image::thumb('250', '360', 'uploads/', $tournament->getGame()->getCover(), 'fill');
    ?>
" alt="" />
        <div class="name"><?php 
    echo $tournament->getName();
    ?>
</div>
        <div class="ss-name">Jeu : <?php 
    echo $tournament->getGame()->getName();
    ?>
</div>
        <p class="description"><?php 
    echo $tournament->getDescription();
    ?>
</p>
    </article>
	<?php 
}
?>
예제 #2
0
<h2>Jeux</h2>
<section class="games">
	<?php 
use lib\content\Image;
use lib\lan\Game;
$games = Game::getGames();
foreach ($games as $game) {
    ?>
	    <article>
	        <img src="<?php 
    echo Image::thumb('250', '360', 'uploads/', $game->getCover(), 'fill');
    ?>
" alt="" />
	        <div class="name"><?php 
    echo $game->getName();
    ?>
</div>
	        <p class="description"><?php 
    echo $game->getDescription();
    ?>
</p>
	    </article>
	<?php 
}
?>
</section>