Вход Регистрация
Файл: adultscript-2.0.3-pro/files/mobile/components/categories.php
Строк: 21
<?php
defined
('_VALID') or die('Restricted Access!');
class 
VComponent_mobile_categories extends VMobile
{
    public function 
__construct()
    {
        
parent::__construct();
    }
    
    public function 
render()
    {
        if (!
$categories $this->cache->get('categories'86400)) {
            
$this->db->query("SELECT cat_id, name, slug, description, total_videos
                              FROM #__video_categories
                              ORDER BY name ASC"
);
            if (
$this->db->affected_rows()) {
                
$categories    $this->db->fetch_rows();
                
$this->cache->store('categories'$categories86400);
            } else {
                
$categories    = array();
            }
        }
    
        
$this->tpl->menu        'categories';

        
$this->tpl->title        __('categories-title');
        
$this->tpl->meta_title    __('categories-meta-title', array($this->mcfg['site_name']));
        
$this->tpl->meta_desc    __('categories-meta-desc', array($this->mcfg['site_name']));
        
$this->tpl->meta_keys    __('categories-meta-keys');

        
$this->tpl->canonical    BASE_URL.'/categories/';

        
$this->tpl->categories    $categories;
        
$this->tpl->load(array('header''categories''footer'));
        
$this->tpl->display();
    }
}
Онлайн: 2
Реклама