$ghtml = substr($ghtml, 0, strlen($ghtml) - 2); $html .= '<p class="warning">' . $ghtml . '</p>' . "\n"; } else { if ($helper->firstChild || $resource->type == 7) { $html .= $primary_child; } } $supported = null; if ($this->bits['supportedtag']) { $supported = $rt->checkTagUsage($this->bits['supportedtag'], $resource->id); } $xtra = ''; if ($params->get('show_audience')) { include_once PATH_CORE . DS . 'components' . DS . 'com_resources' . DS . 'tables' . DS . 'audience.php'; include_once PATH_CORE . DS . 'components' . DS . 'com_resources' . DS . 'tables' . DS . 'audiencelevel.php'; $ra = new \Components\Resources\Tables\Audience($database); $audience = $ra->getAudience($resource->id, 0, 1, 4); $view = $this->view('_audience', 'view')->set('audience', $audience)->set('showtips', 0)->set('numlevels', 4)->set('audiencelink', $params->get('audiencelink')); $xtra .= $view->loadTemplate(); } if ($this->bits['supportedtag'] && $supported) { include_once PATH_CORE . DS . 'components' . DS . 'com_tags' . DS . 'helpers' . DS . 'handler.php'; $tag = new \Components\Tags\Tables\Tag($database); $tag->loadTag($config->get('supportedtag')); $sl = $config->get('supportedlink'); if ($sl) { $link = $sl; } else { $link = Route::url('index.php?option=com_tags&tag=' . $tag->tag); } $xtra .= '<p class="supported"><a href="' . $link . '">' . $tag->raw_tag . '</a></p>';
?> ">user reviews</a> and usage statistics. <a href="about/ranking/">Learn more ›</a> </p> <div> <?php echo $stats->display(); ?> </div> </dd> </dl> <?php } if ($this->model->params->get('show_audience')) { include_once PATH_CORE . DS . 'components' . DS . $this->option . DS . 'tables' . DS . 'audience.php'; include_once PATH_CORE . DS . 'components' . DS . $this->option . DS . 'tables' . DS . 'audiencelevel.php'; $ra = new \Components\Resources\Tables\Audience($database); $audience = $ra->getAudience($this->model->resource->id, $versionid = 0, $getlabels = 1, $numlevels = 4); $this->view('_audience', 'view')->set('audience', $audience)->set('showtips', 1)->set('numlevels', 4)->set('audiencelink', $this->model->params->get('audiencelink'))->display(); } if ($this->model->params->get('supportedtag')) { $rt = new \Components\Resources\Helpers\Tags($this->model->resource->id); if ($rt->checkTagUsage($this->model->params->get('supportedtag'), $this->model->resource->id)) { include_once PATH_CORE . DS . 'components' . DS . 'com_tags' . DS . 'helpers' . DS . 'handler.php'; $tag = new \Components\Tags\Tables\Tag($database); $tag->loadTag($this->model->params->get('supportedtag')); ?> <p class="supported"> <a href="<?php echo $this->model->params->get('supportedlink', Route::url('index.php?option=com_tags&tag=' . $tag->tag)); ?> "><?php