Пример #1
0
 public function image($path = '', $name = null, $htmlOptions = [])
 {
     if (is_null($name)) {
         $name = $this->name;
     }
     if (strpos($path, '/') !== 0) {
         $path = '/' . $path;
     }
     return Image::toImage($path, $name, $htmlOptions);
 }
Пример #2
0
?>
</strong></p>
				<p>Optional Goal: <strong><?php 
echo !empty($general->optional_goal) ? utf8_decode($general->optional_goal) : '-';
?>
</strong></p>
				<p>Current Location: <strong><?php 
echo utf8_decode($general->current_location);
?>
</strong></p>
				<p>Current Pok&eacute;center: <strong><?php 
echo utf8_decode($general->current_pokecenter);
?>
</strong></p>
				<p>Money in hand: <strong><?php 
echo Image::toImage('/items', 'pokedollar', ['title' => 'Pok&eacute;dollar', 'alt' => 'Pok&eacute;dollar']);
echo $general->money;
?>
</strong></p>
			</div>
					<div class="current-info pull-right text-right">
						<p>Before this, we played Pok&eacute;mon:</p>
						<p><a href="/red">Red</a> | <a href="/crystal">Crystal</a> | <a href="/emerald">Emerald</a> | <a href="/firered">FireRed</a> | <a href="/platinum">Platinum</a> | <a href="/heartgold">HeartGold</a> | <a href="/black">Black</a> | <a href="/black2">Black 2</a></p>
						<p><a href="/x">X</a> | <a href="/omegaruby">Omega Ruby</a> | <a href="/ar">Anniversary Red</a> | <a href="/alphasapphire">Alpha Sapphire</a> | <a href="/colosseum">Colosseum</a> | <a href="/xd">XD</a></p>
						<p>We're playing <a href="http://www.reddit.com/r/twitchplayspokemon/" target="_blank">Pok&eacute;mon Anniversary Crystal</a> right now!</p>
						<p><span class="more-info"><a href="" class="show-about"><i class="fa fa-caret-right"></i>What is this all about?</a></span>&nbsp;&nbsp;&nbsp;<span class="more-info"><a href="" class="show-feedback"><i class="fa fa-caret-right"></i>Feedback/suggestions?</a></span></p>
					</div>
			<div class="clearfix"></div>
		</div>
		<div id="about" class="about">
			<p>There's a livestreaming channel that's playing series of Pok&eacute;mon games. Normally live streams have one person controlling the game and everyone else simply watching them, but the creator of this live stream in particular set the game up so that anyone who comments on the stream can control the game. Anyone watching can tell the game to press any button at any time, and the game will do it. This created a game being played by thousands of people at the same time. Of course, coordinating thousands of people is impossible, so as a result the game has seriously struggled- the main character even struggles to walk in a straight line. But some combination of the main character's laughable failure to do anything, the fact that the entire audience is controlling the game together, and the unthinkable amount of progress they've made in the game so far has made Twitch Plays Pok&eacute;mon a real event for people who like video games, and as a result it's gotten super-popular.</p>
Пример #3
0
foreach ($pokemon as $p) {
    ?>

						<td class="valign-middle">Level <?php 
    echo $p->level;
    if (isset($p->has_pokerus)) {
        switch ($p->has_pokerus) {
            case 1:
                $pokerusImg = '';
                $pokerusTitle = 'Is infected with Pok&eacute;rus';
                break;
            case 2:
                $pokerusImg = '_cured';
                $pokerusTitle = 'Is cured from Pok&eacute;rus';
                break;
        }
        if ($p->has_pokerus == 1) {
            ?>

							<br /><?php 
        } else {
            echo ' ';
        }
        echo Image::toImage('/misc', 'pokerus' . $pokerusImg, ['data-content' => $pokerusTitle, 'class' => 'tpp-tooltip']);
        ?>
</td><?php 
    }
}
?>

					</tr>