<? global $vis_language; 
  $database=new class_database();
    include_once(VIS_PATH_CLASS.VIS_CLASS_PREFIX.'setting.php');
    $object=new class_setting($database);
   $setting=$object->get_settings('(title="vis_manage_portal_logo" OR title="vis_manage_favicon" OR title like "vis_manage_logo" OR title like "vis_manage_portal_text" or title="vis_manage_portal_text_bold" or title="vis_manage_portal_text_italic" or title="vis_manage_portal_text_colour") and domain_id=0', VIS_STAFF_ID, VIS_LOCATION_AREA);   
   
     if($setting!=-1) for($i=0;$i<count($setting);$i++) {
		if($setting[$i]['title']=='vis_manage_portal_logo') {
			$poral_setting['vis_manage_portal_logo']=$setting[$i]['content'];
		}
		elseif($setting[$i]['title']=='vis_manage_favicon') {
			$poral_setting['vis_manage_favicon']=$setting[$i]['content'];
		}
		elseif($setting[$i]['title']=='vis_manage_portal_text') {
			$poral_setting['vis_manage_portal_text']=$setting[$i]['content'];
		}
		elseif($setting[$i]['title']=='vis_manage_logo') {
			$poral_setting['vis_manage_logo']=$setting[$i]['content'];
		}
		elseif($setting[$i]['title']=='vis_manage_portal_text_bold') {
			$poral_setting['vis_manage_portal_text_bold']=$setting[$i]['content'];
			$style .= ($setting[$i]['content'] == 1) ? 'font-weight: bold; ' : '';
		}
		elseif($setting[$i]['title']=='vis_manage_portal_text_italic') {
			$poral_setting['vis_manage_portal_text_italic']=$setting[$i]['content'];
			$style .= ($setting[$i]['content'] == 1) ? 'font-style: italic; ' : '';
		}
		elseif($setting[$i]['title']=='vis_manage_portal_text_colour') {
			$poral_setting['vis_manage_portal_text_colour']=$setting[$i]['content'];
			$style .= 'color: '.$setting[$i]['content'].'; ';
		}
	}
	$database->database_disconnect();
?>
<!DOCTYPE html>
<html lang="en" class="app">
<head>
<meta charset="utf-8" />
<title><? echo $vis_language['TXTLOGIN']; ?></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="<? echo (isset($poral_setting['vis_manage_favicon']) && $poral_setting['vis_manage_favicon']!='image')?(VIS_PATH_PROFILE.$poral_setting['vis_manage_favicon']):(VIS_PATH_IMAGES.'favicon.ico'); ?>" type="image/x-icon">
<link rel="stylesheet" href="<?= VIS_PATH_SCRIPT; ?>bootstrap-select/bootstrap-select.css" type="text/css" />
<link rel="stylesheet" href="<?= VIS_PATH_STYLE; ?>bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="<?= VIS_PATH_STYLE; ?>animate.css" type="text/css" />
<link rel="stylesheet" href="<?= VIS_PATH_STYLE; ?>font.css" type="text/css" />
<? if(VIS_MANAGE_THEME_NAME!='' && file_exists(VIS_PATH_MANAGE_THEME.VIS_MANAGE_THEME_NAME.".css")) { ?><link rel="stylesheet" href="<?= VIS_PATH_MANAGE_THEME.VIS_MANAGE_THEME_NAME; ?>.css" type="text/css" /><? } else { ?><link rel="stylesheet" href="<?= VIS_PATH_MANAGE_THEME.'default.css'; ?>" type="text/css" />
<? } ?>
<!--<link rel="stylesheet" href="<? //= VIS_PATH_STYLE; ?>css/vh-icons.css" type="text/css" />-->
<link rel="stylesheet" href="<?= VIS_PATH_STYLE; ?>v4.css" type="text/css" />
<link rel="stylesheet" href="<?= VIS_PATH_SCRIPT; ?>slider/slider.css" type="text/css" />
<!--[if lt IE 9]> <script src="js/ie/html5shiv.js"></script> <script src="js/ie/respond.min.js"></script> <script src="js/ie/excanvas.js"></script> <![endif]-->
 <!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>-->
 <link rel="stylesheet" href="<?= VIS_PATH_SCRIPT; ?>tokeninput/token-input-facebook.css" type="text/css" />
 <link rel="stylesheet" href="<?= VIS_PATH_PLUGINS; ?>redactor/redactor.css" />
 <link href="<?= VIS_PATH_SCRIPT; ?>datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
 <?if($twilio_details!=-1 && $twilio_details['is_enabled']==1) { ?>
 <script src="https://static.twilio.com/libs/twiliojs/1.1/twilio.min.js"></script> 
 <? } ?>
<script src="<?= VIS_PATH_SCRIPT; ?>jquery.js"></script>
<script type="text/javascript" src="<?= VIS_PATH_SCRIPT; ?>common.js"></script>
<? if(($_COOKIE['IS_LOGOUT']!=1 && isset($_COOKIE['vis_staff_local'])) && ($this->error != 6)) { ?>
<!--<script>jQuery.noConflict();</script>-->
<script src="<?= VIS_PATH_SCRIPT; ?>slider/bootstrap-slider.js"></script>
<script type="text/javascript" src="<?= VIS_PATH_SCRIPT; ?>tokeninput/jquery.tokeninput.js"></script>
<script src="<?= VIS_PATH_PLUGINS; ?>redactor/redactor.min.js"></script>
<script src="<?= VIS_PATH_SCRIPT; ?>datetimepicker/js/moment.js"></script>
<script src="<?= VIS_PATH_SCRIPT; ?>datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script src="<?= VIS_PATH_PLUGINS; ?>redactor/source.js"></script>
<? } ?>
 <style type="text/css">
.redactor-editor{
    direction:<? echo VIS_LANGUAGE_DIRECTION;?>;
}
</style>
