Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/view/PholioMockEmbedView.php
| Show All 20 Lines | public function render() { | ||||
| } | } | ||||
| $mock = $this->mock; | $mock = $this->mock; | ||||
| $images_to_show = array(); | $images_to_show = array(); | ||||
| $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)); | ||||
| } | |||||
| if (!empty($this->images) && !empty($images_to_show)) { | |||||
| 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().')'; | ' (#'.$image->getID().')'; | ||||
| $uri = '/M'.$this->mock->getID().'/'.$image->getID().'/'; | $uri = '/M'.$this->mock->getID().'/'.$image->getID().'/'; | ||||
| } else { | } else { | ||||
| Show All 18 Lines | |||||