Exemplo n.º 1
0
			</dt>
			<dd>
				<p>
					Ranking is calculated from a formula comprised of <a href="<?php 
        echo Route::url('index.php?option=' . $this->option . '&id=' . $this->publication->id . '&active=reviews');
        ?>
">user reviews</a> and usage statistics. <a href="about/ranking/">Learn more &rsaquo;</a>
				</p>
				<div></div>
			</dd>
		</dl>
		<?php 
    }
    // Supported publication?
    $rt = new \Components\Publications\Helpers\Tags($database);
    $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);