replacesPHID = $replaces_phid; return $this; } public function setImage(PholioImage $image) { $this->image = $image; return $this; } public function render() { require_celerity_resource('pholio-edit-css'); $image = $this->image; $file = $image->getFile(); $phid = $file->getPHID(); $replaces_phid = $this->replacesPHID; $thumb = phutil_tag( 'img', array( 'src' => $file->getThumb280x210URI(), 'width' => 280, 'height' => 210, )); $remove = $this->renderRemoveElement(); $title = id(new AphrontFormTextControl()) ->setName('title_'.$phid) ->setValue($image->getName()) ->setSigil('image-title') ->setLabel(pht('Title')); $description = id(new AphrontFormTextAreaControl()) ->setName('description_'.$phid) ->setValue($image->getDescription()) ->setSigil('image-description') ->setLabel(pht('Description')); $thumb_frame = javelin_tag( 'div', array( 'class' => 'pholio-thumb-frame', 'sigil' => 'pholio-thumb-frame', ), $thumb); $content = hsprintf( '