Created
March 19, 2018 02:31
-
-
Save chetanmadaan/9365bd3621ccc25ce3be3a35fc74aafd to your computer and use it in GitHub Desktop.
JD Medical error.php fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Helix3 Framework | |
* Template Name - Shaper Helix - iii | |
* @author JoomShaper http://www.joomshaper.com | |
* @copyright Copyright (c) 2010 - 2015 JoomShaper | |
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later | |
*/ | |
//no direct accees | |
defined ('_JEXEC') or die ('resticted aceess'); | |
$doc = JFactory::getDocument(); | |
$params = JFactory::getApplication()->getTemplate('true')->params; | |
//Error Logo | |
if ($logo_image = $params->get('error_logo')) { | |
$logo = JURI::root() . '/' . $logo_image; | |
$path = JPATH_ROOT . '/' . $logo_image; | |
} else { | |
$logo = $this->baseurl . '/templates/' . $this->template . '/images/presets/preset1/logo.png'; | |
$path = JPATH_ROOT . '/templates/' . $this->template . '/images/presets/preset1/logo.png'; | |
$ratlogo = $this->baseurl . '/templates/' . $this->template . '/images/presets/preset1/logo@2x.png'; | |
} | |
//Stylesheets | |
$custom_css_path = JPATH_ROOT . '/templates/' . $this->template . '/css/custom.css'; | |
//background image | |
$error_bg = ''; | |
$hascs_bg = ''; | |
if ($err_bg = $params->get('error_bg')) { | |
$error_bg = 'background-image: url('.JURI::root() . $err_bg.');'; | |
$hascs_bg = 'has-background'; | |
} | |
?> | |
<!DOCTYPE html> | |
<html class="error-page" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/css/bootstrap.min.css';?>" rel="stylesheet" type="text/css" /> | |
<?php if (file_exists($custom_css_path)) { ?> | |
<link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/css/custom.css';?>" rel="stylesheet" type="text/css" /> | |
<?php } ?> | |
<link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/css/template.css';?>" rel="stylesheet" type="text/css" /> | |
<link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/css/font-awesome.min.css';?>" rel="stylesheet" type="text/css" /> | |
<title><?php echo $this->error->getCode() . ' - '.$this->title;?> </title> | |
</head> | |
<body> | |
<div class="error-page-inner <?php echo $hascs_bg; ?>" style="<?php echo $error_bg; ?>"> | |
<div> | |
<div class="container"> | |
<?php if(isset($logo) && $logo ) { ?> | |
<div class="error-logo-wrap"> | |
<img class="error-logo" alt="logo" src="<?php echo $logo; ?>" /> | |
</div> | |
<?php } else { ?> | |
<p><i class="fa fa-exclamation-triangle"></i></p> | |
<?php } ?> | |
<h1 class="error-code"><?php echo $this->error->getCode(); ?></h1> | |
<p class="error-message"><?php echo $this->error->getMessage(); ?></p> | |
<a class="btn btn-primary btn-lg" href="<?php echo $this->baseurl; ?>/" title="<?php echo JText::_('HOME'); ?>"><i class="fa fa-chevron-left"></i> <?php echo JText::_('HELIX_GO_BACK'); ?></a> | |
<?php echo $doc->getBuffer('modules', '404', array('style' => 'sp_xhtml')); ?> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment