<?php // Sort out primary files and draw a launch button if ($this->tab != 'play') { // Get primary elements $elements = $this->publication->_curationModel->getElements(1); // Get attachment type model $attModel = new \Components\Publications\Models\Attachments($this->database); if ($elements) { $element = $elements[0]; // Draw button $launcher = $attModel->drawLauncher($element->manifest->params->type, $this->publication, $element, $elements, $this->publication->access('view-all')); $html .= $launcher; } } // Show additional docs $html .= $this->tab != 'play' ? \Components\Publications\Helpers\Html::drawSupportingItems($this->publication) : ''; // Show version information $html .= $this->tab != 'play' ? \Components\Publications\Helpers\Html::showVersionInfo($this->publication) : ''; // Show license information $html .= $this->tab != 'play' && $this->publication->license() && $this->publication->license()->name != 'standard' ? \Components\Publications\Helpers\Html::showLicense($this->publication, 'play') : ''; echo $html; ?> </div><!-- / .aside launcharea --> </div> <?php // Show status for authorized users if ($this->contributable) { echo \Components\Publications\Helpers\Html::showAccessMessage($this->publication); } ?>