-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoffline.php
More file actions
120 lines (119 loc) · 6.08 KB
/
offline.php
File metadata and controls
120 lines (119 loc) · 6.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
/*======================================================================*\
|| #################################################################### ||
|| # Package - Joomla Template based on YJSimpleGrid Framework ||
|| # Copyright (C) 2010 Youjoomla.com. All Rights Reserved. ||
|| # license - PHP files are licensed under GNU/GPL V2 ||
|| # license - CSS - JS - IMAGE files are Copyrighted material ||
|| # bound by Proprietary License of Youjoomla.com ||
|| # for more information visit http://www.youjoomla.com/license.html ||
|| # Redistribution and modification of this software ||
|| # is bounded by its licenses ||
|| # websites - http://www.youjoomla.com | http://www.yjsimplegrid.com ||
|| #################################################################### ||
\*======================================================================*/
defined( '_JEXEC' ) or die( 'Restricted access' );
$app = JFactory::getApplication();
$yjsg_params = $app->getTemplate(true)->params;
$template = $this->template;
$check_style_param = $yjsg_params->get("yjsg_get_styles");
if(isset($check_style_param)){
$get_style_value = explode('|',$yjsg_params->get("yjsg_get_styles"));
$yjsg_get_styles = $get_style_value[0];
$default_link_color = $get_style_value[1];
$site_link_color = '#'.$default_link_color;
}else{
$yjsg_get_styles = $yjsg_params->get("default_color");
$default_link_color = '';
}
$default_font_family = $yjsg_params->get("default_font_family");
$logo_height = $yjsg_params->get("logo_height");
require( YJSGCORE_PATH );
if(intval(JVERSION) >= 3 && $app->getCfg('offline_image')){
$logo = JURI::base().$app->getCfg('offline_image');
}else{
$logo = $this->baseurl.'/templates/'.$template.'/images/'.$yjsg_get_styles.'/logo.png';
if($yjsg_params->get("logo_image")){
$logo = JURI::base().$yjsg_params->get("logo_image");
}
}
?>
<!DOCTYPE html>
<html xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" class="yjsg-page-offline">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $app->getCfg('sitename') ?></title>
<?php if($app->getCfg('MetaDesc')): ?>
<meta name="description" content="<?php echo $app->getCfg('MetaDesc') ?>" />
<?php endif ; ?>
<?php if($app->getCfg('MetaKeys')): ?>
<meta name="keywords" content="<?php echo $app->getCfg('MetaKeys') ?>" />
<?php endif ; ?>
<link href="<?php echo JURI::base(); ?>templates/<?php echo $template ?>/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<link href="<?php echo JURI::base(); ?>plugins/system/yjsg/assets/css/template.css" rel="stylesheet" type="text/css" />
<link href="<?php echo JURI::base(); ?>templates/<?php echo $template ?>/css/<?php echo $yjsg_get_styles; ?>.css" rel="stylesheet" type="text/css" />
<?php if($bootstrap_here) { ?>
<link href="<?php echo YJSG_ASSETS; ?><?php echo $bootstrap_version ?>/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<?php } ?>
<style type="text/css">a{color:#<?php echo $default_link_color?>;}</style>
</head>
<body id="stylef<?php echo $default_font_family ?>">
<div class="centered">
<jdoc:include type="message" />
<div id="header">
<img src="<?php echo $logo ?>" alt="site_logo" />
</div>
<form action="index.php" method="post" name="login" id="form-login" class="yjsg-form">
<fieldset class="yjsg-form-fieldset">
<p class="offlinemsg">
<?php echo $app->getCfg('offline_message'); ?>
</p>
<div class="yjsg-form-group">
<label for="username"><?php echo JText::_('YJSG_USERNAME') ?></label>
<div class="yjsg-element-holder">
<input name="username" id="username" type="text" class="yjsg-form-element" alt="<?php echo JText::_('YJSG_USERNAME') ?>" size="18" />
</div>
<label for="password"><?php echo JText::_('YJSG_PASSWORD') ?></label>
<div class="yjsg-element-holder">
<input type="password" name="password" class="yjsg-form-element" size="18" alt="<?php echo JText::_('YJSG_PASSWORD') ?>" id="passwd" />
</div>
</div>
<div class="yjsg-form-group-inline">
<input type="checkbox" name="remember" class="remeberbox" value="yes" alt="<?php echo JText::_('YJSG_REMEMBER') ?>" id="remember" />
<label for="remember" class="checkbox-label"><?php echo JText::_('YJSG_REMEMBER') ?></label>
<div class="yjsg-element-holder">
<button type="submit" tabindex="3" name="Submit" class="button"><?php echo JText::_('YJSG_LOGIN') ?></button>
</div>
</div>
</fieldset>
<input type="hidden" name="option" value="com_users" />
<input type="hidden" name="option" value="com_users" />
<input type="hidden" name="task" value="user.login" />
<input type="hidden" name="return" value="<?php echo base64_encode(JURI::base()) ?>" />
<?php echo JHtml::_('form.token'); ?>
</form>
</div>
<script type="text/javascript" src="<?php echo YJSG_ASSETS.'src/libraries/jquery.min.js' ?>"></script>
<script type="text/javascript" src="<?php echo YJSG_ASSETS.'src/libraries/jquery-noconflict.js' ?>"></script>
<?php if($bootstrap_here) { ?>
<script type="text/javascript" src="<?php echo YJSG_ASSETS.$bootstrap_version.'/js/bootstrap.min.js' ?>"></script>
<?php } ?>
<script type="text/javascript" src="<?php echo YJSG_ASSETS.'src/yjsg.site.plugins.js' ?>"></script>
<script type="text/javascript" src="<?php echo YJSG_ASSETS.'src/yjsg.site.js' ?>"></script>
<script type="text/javascript">
var logo_w = <?php echo $logo_per_width ?>;
var site_w = <?php echo $css_width ?>;
var site_f = '<?php echo $css_font ?>';
var sp='<?php echo $sp ?>';
var tp ='<?php echo $this->template ?>';
var compileme =<?php echo $compileme ?>;
var fontc ='<?php echo $fontc ?>';
var yjsglegacy='0';
var yjsgrtl='<?php echo $text_direction ?>';
var yver='<?php echo $jver[0] ?>';
var bootstrapv='<?php echo $bootstrap_version ?>';
var offcanvas=0;
var offcanvasW='<?php echo $offCanvasWidth ?>';
</script>
</body>
</html>