allAlbums = $options['allAlbums']; $this->asset = $options['asset']; $this->currentAlbumId = $options['currentAlbumId']; $this->thumbs = $options['thumbs']; } public function html_main() { echo '
', 'Delete asset View asset

Edit asset \'', $this->asset->getTitle(), '\' (', $this->asset->getFilename(), ')

'; $this->section_replace(); echo '
'; $this->section_key_info(); $this->section_asset_meta(); echo '
'; if (!empty($this->thumbs)) $this->section_thumbnails(); $this->section_linked_tags(); echo '
'; $this->section_crop_editor(); echo '
'; } protected function section_key_info() { $date_captured = $this->asset->getDateCaptured(); echo '

Key info

'; } protected function section_linked_tags() { echo '

Linked tags

'; } protected function section_thumbnails() { echo '

Thumbnails

View: Thumbnail
'; } protected function section_crop_editor() { if (!$this->asset->isImage()) return; echo ' '; } protected function section_asset_meta() { echo '

Asset meta data

'; $i = 0; foreach ($this->asset->getMeta() as $key => $meta) { echo '
'; $i++; } echo '
'; } protected function section_replace() { echo '

Replace asset

File: Target:
'; } }