<?php
/**
* @package Warp Theme Framework
* @author YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
// no direct access
defined('_JEXEC') or die;
echo ("<div class='tm-search-results'>");
foreach ($this->results as $result) {
if(!empty($result->category_id)) {
$productClass = hikashop_get('class.category');
$category = $productClass->get($result->category_id);
$r=(' "'.$category->category_name).'"';
} else {
if ($result->section) $r= $this->escape($result->section);
}
$args = array(
'permalink' => '',
'image' => ($result->image) ? $result->image : '',
'image_alignment' => 'right',
'image_alt' => '',
'image_caption' => '',
'title' => $result->title,
'title_link' => '1',
'author' => '',
'author_url' => '',
'date' => '',
'datetime' => '',
'category' => ($r) ? $this->escape($r) : '',
'category_url' => '',
'hook_aftertitle' => '',
'hook_beforearticle' => '',
'hook_afterarticle' => '',
'article' => $result->text,
'tags' => '',
'edit' => '',
'url' => ($result->href) ? JRoute::_($result->href) : '',
'more' => 'ПЕРЕЙТИ',
'previous' => '',
'next' => ''
);
// Render template
echo ("<hr />".$warp['template']->render('article', $args));
}
echo ("</div>");
echo $this->pagination->getPagesLinks();