-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherror.php
More file actions
61 lines (60 loc) · 3.12 KB
/
error.php
File metadata and controls
61 lines (60 loc) · 3.12 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
<?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 = $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-error">
<head>
<title><?php echo $this->error->getCode(); ?>-<?php echo $this->title; ?></title>
<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 $this->baseurl; ?>/templates/<?php echo $template ?>/css/<?php echo $yjsg_get_styles; ?>.css" rel="stylesheet" type="text/css" />
<style type="text/css">a{color:#<?php echo $default_link_color?>;}</style>
</head>
<body id="stylef<?php echo $default_font_family ?>">
<div class="centered">
<div id="header">
<img src="<?php echo $logo ?>" alt="site_logo" />
</div>
<h1><?php echo $this->error->getCode(); ?></h1>
<a href="<?php echo $this->baseurl; ?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>">
<?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?>
</a>
<br />
<span class="errormsg">
<?php echo $this->error->getMessage();?>
</span>
</div>
<?php if($this->debug) : echo '<p>'.$this->renderBacktrace().'</p>'; endif; ?>
</body>
</html>