Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/view/PholioMockEmbedView.php
| Show All 24 Lines | public function render() { | ||||
| $thumbnail = null; | $thumbnail = null; | ||||
| if (!empty($this->images)) { | if (!empty($this->images)) { | ||||
| $images_to_show = array_intersect_key( | $images_to_show = array_intersect_key( | ||||
| $this->mock->getImages(), array_flip($this->images)); | $this->mock->getImages(), array_flip($this->images)); | ||||
| foreach ($images_to_show as $image) { | foreach ($images_to_show as $image) { | ||||
| $thumbfile = $image->getFile(); | $thumbfile = $image->getFile(); | ||||
| $thumbnail = $thumbfile->getThumb280x210URI(); | $thumbnail = $thumbfile->getThumb280x210URI(); | ||||
| } | } | ||||
| $header = 'M'.$mock->getID().' '.$mock->getName(). | $header = 'M'.$mock->getID().' '.$mock->getName(); | ||||
| ' (#'.$image->getID().')'; | |||||
| $uri = '/M'.$this->mock->getID().'/'.$image->getID().'/'; | $uri = '/M'.$this->mock->getID().'/'.$image->getID().'/'; | ||||
| } else { | } else { | ||||
| $thumbnail = $mock->getCoverFile()->getThumb280x210URI(); | $thumbnail = $mock->getCoverFile()->getThumb280x210URI(); | ||||
| $header = 'M'.$mock->getID().' '.$mock->getName(); | $header = 'M'.$mock->getID().' '.$mock->getName(); | ||||
| $uri = '/M'.$this->mock->getID(); | $uri = '/M'.$this->mock->getID(); | ||||
| } | } | ||||
| $item = id(new PHUIPinboardItemView()) | $item = id(new PHUIPinboardItemView()) | ||||
| Show All 12 Lines | |||||