Exemplo n.º 1
0
    $supported = $rt->checkTagUsage($this->config->get('supportedtag'), $this->publication->id);
    if ($supported) {
        $tag = new \Components\Tags\Tables\Tag($database);
        $tag->loadTag($this->config->get('supportedtag'));
        $sl = $this->config->get('supportedlink');
        if ($sl) {
            $link = $sl;
        } else {
            $link = Route::url('index.php?option=com_tags&tag=' . $tag->tag);
        }
        echo '<p class="supported"><a href="' . $link . '">' . $tag->raw_tag . '</a></p>';
    }
    // Show audience
    if ($this->params->get('show_audience')) {
        $ra = new \Components\Publications\Tables\Audience($database);
        $audience = $ra->getAudience($this->publication->id, $this->publication->version_id, $getlabels = 1, $numlevels = 4);
        $this->view('_audience', 'view')->set('audience', $audience)->set('showtips', true)->set('numlevels', 4)->set('audiencelink', $this->params->get('audiencelink'))->display();
    }
    // Archive version?
    if ($this->lastPubRelease && $this->lastPubRelease->id != $this->publication->version_id) {
        ?>
		<p>
			<?php 
        echo Lang::txt('COM_PUBLICATIONS_METADATA_ARCHIVE');
        ?>
			[<a href="<?php 
        echo Route::url('index.php?option=' . $this->option . '&id=' . $this->publication->id . '&v=' . $this->lastPubRelease->version_number);
        ?>
"><?php 
        echo $this->lastPubRelease->version_label;
        ?>