public function renderPhotoDetail() { parent::renderPhotoDetail(); $photo = $this->plugin->getData('photo'); if ($this->plugin->getData('page') !== 'photo-detail') { return; } if (!isset($photo['permission']) || $photo['permission'] == 0) { return; } return <<<MKP <div class="fb-like"></div> MKP; }