コード例 #1
0
ファイル: courses.php プロジェクト: sumudinie/hubzero-cms
					<?php 
    echo Lang::txt('COM_RESOURCES_ERROR_MUST_BE_PART_OF_GROUP') . ' ' . implode(', ', $ghtml);
    ?>
				</p>
				<?php 
} else {
    $ccount = count($this->model->children('standalone'));
    if ($ccount > 0) {
        echo \Components\Resources\Helpers\Html::primary_child($this->option, $this->model->resource, '', '');
    }
    // get launch button
    $firstChild = $this->model->children(0);
    // Display some supporting documents
    $children = $this->model->children('!standalone');
    // Sort out supporting docs
    $html .= $children && count($children) > 1 ? \Components\Resources\Helpers\Html::sortSupportingDocs($this->model->resource, $this->option, $children) : '';
    echo $html;
    $live_site = rtrim(Request::base(), '/');
    ?>
					<p>
						<a class="feed" id="resource-audio-feed" href="<?php 
    echo $live_site . '/resources/' . $this->model->resource->id . '/feed.rss?format=audio';
    ?>
"><?php 
    echo Lang::txt('Audio podcast');
    ?>
</a><br />
						<a class="feed" id="resource-video-feed" href="<?php 
    echo $live_site . '/resources/' . $this->model->resource->id . '/feed.rss?format=video';
    ?>
"><?php