Beispiel #1
0
    echo \Components\Publications\Helpers\Html::showSubInfo($this->publication);
    // Show published date and category
    ?>
				</div><!-- / .overviewcontainer -->
				<div class="col span4 omega launcharea">
					<?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