示例#1
0
    $this->view('_metadata')->set('option', $this->option)->set('sections', $this->sections)->set('model', $this->model)->display();
}
?>
	</aside><!-- / .aside -->
</section>

<?php 
if ($this->model->access('view-all')) {
    ?>
	<section class="main section noborder <?php 
    echo $this->model->params->get('pageclass_sfx', '');
    ?>
">
		<div class="subject tabbed">
			<?php 
    echo \Components\Resources\Helpers\Html::tabs($this->option, $this->model->resource->id, $this->cats, $this->tab, $this->model->resource->alias);
    ?>
			<?php 
    echo \Components\Resources\Helpers\Html::sections($this->sections, $this->cats, $this->tab, 'hide', 'main');
    ?>
		</div><!-- / .subject -->
		<div class="aside extracontent">
			<?php 
    // Show related content
    $out = Event::trigger('resources.onResourcesSub', array($this->model->resource, $this->option, 1));
    if (count($out) > 0) {
        foreach ($out as $ou) {
            if (isset($ou['html'])) {
                echo $ou['html'];
            }
        }