Вход Регистрация
Файл: adultscript-2.0.3-pro/files/modules/profile/components/photos.php
Строк: 41
<?php
class VComponent_profile_photos extends VModule_profile
{
    public function 
__construct()
    {
        
parent::__construct();
    }
    
    public function 
render()
    {
        if (!
VUri::match('users/'.$this->username.'/photos/')) {
            
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_albums'])) {
            if (
$this->tpl->total_public_albums $this->get_albums_count($user_id'public')) {
                
$this->tpl->public_albums     $this->get_albums($user_id'public'8);
            }

            if (
$this->tpl->total_private_albums $this->get_albums_count($user_id'private')) {
                
$this->tpl->private_albums    $this->get_albums($user_id'private'8);
            }
        }

        if (
$this->show($this->user['show_photo_favorites'])) {
            if (
$this->tpl->total_photos $this->get_photo_favorites_count($user_id)) {
                
$this->tpl->photos $this->get_photo_favorites($user_id8);
            }
        }        

        
$this->tpl->menu          'community';
        
$this->tpl->submenu       'profile';
        
$this->tpl->meta_title    __('photos-meta-title', array($this->usernameVF::cfg_item('site_name')));
        
$this->tpl->meta_title    __('photos-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
Реклама