Вход Регистрация
Файл: adultscript-2.0.3-pro/files/modules/profile/components/videos.php
Строк: 44
<?php
class VComponent_profile_videos extends VModule_profile
{
    public function 
__construct()
    {
        
parent::__construct();
    }
    
    public function 
render()
    {
        if (!
VUri::match('users/'.$this->username.'/videos/')) {
            
VModule::load('404'true);
        }
        
        if (!
$this->profile($this->username)) {
            return 
false;
        }
        
        
VLanguage::load('frontend.global');
        
VLanguage::load('frontend.profile');
        
        
$user_id    $this->user['user_id'];
        
        if (
$this->show($this->user['show_videos'])) {
            if (
$this->tpl->total_public_videos $this->get_videos_count($user_id'public')) {
                
$this->tpl->public_videos     $this->get_videos($user_id'public'8);
            }

            if (
$this->tpl->total_private_videos $this->get_videos_count($user_id'private')) {
                
$this->tpl->private_videos    $this->get_videos($user_id'private'8);
            }
        }

        if (
$this->show($this->user['show_video_favorites'])) {
            if (
$this->tpl->total_favorite_videos $this->get_favorites_count($user_id)) {
                
$this->tpl->favorite_videos $this->get_video_favorites($user_id);
            }
        }
        
        if (
$this->show($this->user['show_video_ratings'])) {
            
$this->tpl->rated_vides $this->get_video_ratings($user_id);
        }
        
        if (
$this->show($this->user['show_video_history'])) {
            if (
$this->tpl->total_watched_videos $this->get_history_count($user_id)) {
                
$this->tpl->watched_videos $this->get_video_history($user_id);
            }
        }

        
$this->tpl->menu          'community';
        
$this->tpl->submenu       'profile';
        
$this->tpl->meta_title    __('videos-meta-title', array($this->usernameVF::cfg_item('site_name')));
        
$this->tpl->meta_title    __('videos-meta-desc', array($this->usernameVF::cfg_item('site_name')));
        
$this->tpl->user          $this->user;
        
$this->tpl->username      e($this->username);
        
$this->tpl->is_subscribed $this->is_subscribed;
        
$this->tpl->is_friend     $this->is_friend;
        
$this->tpl->is_self       $this->is_self;
        
$this->tpl->is_moderator  $this->is_moderator;
        
$this->tpl->is_loggedin   $this->is_loggedin;
        
$this->tpl->is_blocked    $this->is_blocked;
        
$this->tpl->load(array('header''profile''footer'));
        
$this->tpl->display();
    }
    
    private function 
get_video_playlists($user_id$limit=4)
    {
        return 
null;
    }
}
Онлайн: 1
Реклама