Example #1
0
 public function showImageSprite($htmlOptions = [])
 {
     $addToImage = '';
     $addToImage .= isset($this->season) ? '_' . $this->season : '';
     $addToImage .= isset($this->gender) ? '_' . $this->gender : '';
     $addToImage .= isset($this->is_shiny) ? '_s' : '';
     return parent::image('/pokemon/sprites/' . TWITCHVERSION, $this->pokemon . $addToImage, $htmlOptions);
 }
Example #2
0
 /**
  * @return string
  */
 public function showImage()
 {
     return parent::image('/pokemon/80', $this->pokemon);
 }