</span> <?php echo number_format($this->line->ranking, 1) . ' ' . Lang::txt('COM_RESOURCES_RANKING'); ?> </dt> <dd> <p><?php echo Lang::txt('COM_RESOURCES_RANKING_EXPLANATION'); ?> </p> <div> <?php if ($this->line->type == 7) { $stats = new \Components\Resources\Tables\Usage\Tools($database, $this->line->id, $this->line->type, $this->line->rating, $helper->citationsCount, $helper->lastCitationDate); } else { $stats = new \Components\Resources\Tables\Usage\Andmore($database, $this->line->id, $this->line->type, $this->line->rating, $helper->citationsCount, $helper->lastCitationDate); } echo $stats->display(); ?> </div> </dd> </dl> </div> <?php } elseif ($params->get('show_rating')) { ?> <?php switch ($this->line->rating) { case 0.5: $class = ' half-stars'; break;
$helper = $this->bits['helper']; $sef = $this->bits['sef']; $sections = $this->bits['sections']; $primary_child = isset($this->bits['primary_child']) ? $this->bits['primary_child'] : ''; $params = $this->bits['params']; $rt = $this->bits['rt']; $config = $this->bits['config']; $authorized = $this->bits['authorized']; $database = App::get('db'); $statshtml = ''; if ($params->get('show_ranking')) { $helper->getLastCitationDate(); if ($resource->type == 7) { $stats = new \Components\Resources\Tables\Usage\Tools($database, $resource->id, $resource->type, $resource->rating, $helper->citationsCount, $helper->lastCitationDate); } else { $stats = new \Components\Resources\Tables\Usage\Andmore($database, $resource->id, $resource->type, $resource->rating, $helper->citationsCount, $helper->lastCitationDate); } $statshtml = $stats->display(); } $html .= '<h3>' . Lang::txt('COM_RESOURCES_INFO') . '</h3>'; $html .= '<ul id="ulinfo">'; $html .= '<li>'; $html .= '<h4'; switch ($resource->access) { case 1: $html .= ' class="registered"'; break; case 2: $html .= ' class="special"'; break; case 3: