Example #1
0
			<?php 
    // 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)->display();
    ?>
		</div><!-- / .aside -->
	</section><!-- / .main section -->
</div>
	<?php 
}
$html = '';
// Part below
if ($this->publication->access('view-all')) {
    $html .= '<div class="clear sep"></div>' . "\n";
    $html .= '<section class="main section noborder">' . "\n";
    $html .= ' <div class="subject tabbed">' . "\n";
    $html .= \Components\Publications\Helpers\Html::tabs($this->option, $this->publication->id, $this->cats, $this->tab, $this->publication->alias, $this->version);
    $html .= \Components\Publications\Helpers\Html::sections($this->sections, $this->cats, $this->tab, 'hide', 'main');
    // Add footer notice
    if ($this->tab == 'about') {
        $html .= \Components\Publications\Helpers\Html::footer($this->publication);
    }
    $html .= '</div><!-- / .subject -->' . "\n";
    $html .= ' <div class="aside extracontent">' . "\n";
}
// Show related content
$out = Event::trigger('publications.onPublicationSub', array($this->publication, $this->option, 1));
if (count($out) > 0) {
    foreach ($out as $ou) {
        if (isset($ou['html'])) {
            $html .= $ou['html'];
        }