<?php
$this->load_template('_header.php');
$this->load_template('_top.php');
?>
<script>
var txtloading = '<?php echo $this->lang('global_txtloading'); ?>';
var txtclose = '<?php echo $this->lang('global_txtclose'); ?>';
var txtnext = '<?php echo $this->lang('global_txt_next'); ?>';
var txtprevious = '<?php echo $this->lang('global_txt_prev'); ?>';
var txtof = '<?php echo $this->lang('global_txt_of'); ?>';
var txtloading = '<?php echo $this->lang('global_txtloading'); ?>';
var msgnocomment = '<?php echo $this->lang('global_msg_txtwithoutcomment');?>';
var txt_norequest = '<?php echo $this->lang('global_txt_no_request') ?>';
</script>
<script type="text/javascript" src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/js/js_dashboard.js"></script>
<script type="text/javascript" src="<?php echo $C->SITE_URL; ?>themes/<?php echo $C->THEME ?>/js/jquery.magnific-popup.js"></script>
<script type="text/javascript" src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/js/js_profile.js"></script>
<div id="generalspace">
        
    <div id="container">
    
        <div style="position:relative; float:left;">
        
        	<div><?php $this->load_template('_header-profile.php'); ?></div>

			<div>
    
                <div id="column1"><?php $this->load_template('_verticalmenu.php'); ?></div>
                
                <div id="column2">
                
                <?php
                
                if ($D->show_profile == 0) {
                    $this->load_template('_profile-no-show.php');
                } else {
                                
                ?>            
                
                    <div id="profile2"> 
                        
                        
                        <?php if (!empty($D->htmlResult)) { ?>
                        
                        <div class="title spaceWhite mrg15B"><?php echo $this->lang('profile_photos_title'); ?></div>
                        
                        <div><?php echo $D->htmlResult; ?></div>
                        
                        
                        <?php if ($D->totalposts > $C->NUM_ACTIVITIES_PAGE) { ?>
                        
                        <div id="moreitems"></div>
                        
                        <div><input name="numitems" type="hidden" id="numitems" value="<?php echo $D->numitems?>" /></div>
                        
                        <div id="moreitemsbar" class="mrg30T mrg10B">
                            <div class="centered">
                                <span id="bmore" class="bwhite rounded"><?php echo $this->lang('global_txt_morestories')?></span>
                                <span id="morepreload" class="hide"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/preload.gif" /></span>
                            </div>
                        </div>
                        <script>
                            var idu = <?php echo $D->u->iduser ?>;
                            var itemperpage = <?php echo $C->NUM_ACTIVITIES_PAGE ?>;
                            var txt_norequest = '<?php echo $this->lang('global_txt_no_request') ?>';
                            $('#bmore').click(function(){
                                reloadinfo_profile('photos');
                                return false;
                            });
                        </script>
                
                        <?php } ?>
                        
                        
                        <?php } else {?>
                        
                        <div class="boxprof">
                        
                        	<div class="title"><?php echo $this->lang('profile_photos_title'); ?></div>
                            
                            <div class="spaceinfo">
                        
								<div id="_areanoitem" class="centered mrg20T mrg30B txtsize00"><?php echo $this->lang('profile_photos_txtnophotos');?></div>
                                
                            </div>
                        
                        </div>
                        
                        <?php } ?>
                    
                    </div>
                    
                <?php } ?>
                
                </div>

			</div>
            
        </div>
        
        
        <div id="divseparator" class="sh"></div>
        
        <div id="column3"><?php $this->load_template('_accessories.php'); ?></div>
        
        <div class="sh"></div>
    
    </div>
            
</div>

<?php
$this->load_template('_foot.php');
$this->load_template('_footer.php');
?>