<?php
/**
 * [ACTIVE-LAYOUT]
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

$cakeDescription = __d('cake_dev', 'Foqas');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>
		<?php echo $cakeDescription ?>
	</title>
	<link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->webroot; ?>img/foqas_title.png">
	<?php
//		echo $this->Html->meta('icon');
                echo $this->Html->meta('foqas_title.png','../img/foqas_title.png',array('type' => 'icon'));
		echo $this->Html->css(array('bootstrap_new','bootstrap','bootstrap-responsive','grid','style','custom','opaicons','bootextra','media-queries','chat','4','font'));
		echo $this->Html->script(array('jquery-1.9.1.min','menu','4'));

		//echo $this->fetch('meta');
		//echo $this->fetch('css');
		//echo $this->fetch('script');
	?>
	
        <style>
            body{
                min-width: 850px;
            }
        </style>
</head>
<body>
	<div class="container1">
		<?php echo $this->element('head');?>
	</div>
	
	
	<div class="container3">
	
		<!-- MAIN-CONTENT[LEFT-MENU] -->
		
                <div class="divONE" style="margin-top: 4px;">
			<div class="tac">
			<div style="">
				<?php 
                            $software_title = $loggedUser['Profile']['fname'];
                            $user_title = $loggedUser['Profile']['fname'].' '.$loggedUser['Profile']['lname'];
                            $url='https://foqas.com/contents/blog/';
							if ($url){
								$owner_profileId = substr($this->params['pass'][1],4,120);
								
							}elseif (!empty($this->Session->read('owner_profileId'))){
								$owner_profileId = $this->Session->read('owner_profileId');
							}else {
								$owner_profileId = $loggedUser['profile_id'];
							}
                            
                            
                            if($owner_profileId){
                                    $software_title=$profileNames[$owner_profileId];
                                     $photo=$link1[$owner_profileId];
                            }else {
                            	$photo=$link1[$loggedUser['profile_id']];
                            };
                            ?>
                            <?php 
                            if(!empty($photo)){
                            ?>
                            <img src="<?php echo $photo;?>" height="164px;" width="164px;"  style="margin:auto;">
                            <?php }else {
                                    echo $this->Html->image('profile.jpg',array('style'=>'width="164px" height="164px"'));
                            }?>		
                        </div>
                    </div>
                    <div class="activeModule bold" title="<?php echo $user_title;?>" style="overflow-wrap: break-word; word-wrap: break-word;"><?php echo $software_title;?></div>			
		
			
			<div id="updateMenu">
				<?php echo $this->element('menu');?>
			</div>
		</div>
		
		
		<div class="divTWO">
		
			<div class="partA">
				<div class="pd5 " id="ajaxData">
					<?php echo $this->fetch('content'); ?>
				</div>
			</div>
			
			<div class="partX">
				<?php //echo $this->element('right_part'); ?>
				<?php echo $this->element('right_paathsala_update'); ?>
			</div>
			
		</div>
	
	</div>
	
	<div class="clearall"></div>
	<br/>
	
	<?php echo $this->Html->script(array('bootstrap-transition','bootstrap-collapse'));?>
	<?php //echo $this->element('sql_dump'); ?>
	<?php //echo $this->Js->writeBuffer();?>
</body>
</html>
