Ejemplo n.º 1
0
        $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);
    }
    ?>
		</div><!-- / .subject -->
		<div class="aside rankarea">
			<?php 
    // Show metadata
Ejemplo n.º 2
0
?>
			</div>
		</div>
		<div class="col span4 launch-wrap">
			<?php 
if ($elements) {
    $element = $elements[0];
    // Draw button
    $launcher = $attModel->drawLauncher($element->manifest->params->type, $this->publication, $element, $elements, $this->publication->access('view-all'));
    echo $launcher;
}
?>
			<div class="version-info">
				<?php 
echo \Components\Publications\Helpers\Html::showVersionInfo($this->publication);
echo \Components\Publications\Helpers\Html::showLicense($this->publication, 'play');
?>
			</div>
		</div>
		<div class="col span2 omega">
			<div class="meta">
<?php 
if ($this->publication->state == 1 && $this->publication->main == 1) {
    // Show metadata
    $this->view('_metadata')->set('option', $this->option)->set('publication', $this->publication)->set('config', $this->config)->set('version', $this->version)->set('sections', $this->sections)->set('cats', $this->cats)->set('params', $this->publication->params)->set('lastPubRelease', $this->lastPubRelease)->set('launcherLayout', true)->display();
}
?>
			</div>
		</div>
	</div>
</section>