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); }
?> </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écenter: <strong><?php echo utf8_decode($general->current_pokecenter); ?> </strong></p> <p>Money in hand: <strong><?php echo Image::toImage('/items', 'pokedollar', ['title' => 'Pokédollar', 'alt' => 'Pokédollar']); echo $general->money; ?> </strong></p> </div> <div class="current-info pull-right text-right"> <p>Before this, we played Poké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é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> <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é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émon a real event for people who like video games, and as a result it's gotten super-popular.</p>
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érus'; break; case 2: $pokerusImg = '_cured'; $pokerusTitle = 'Is cured from Poké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>