forked from qubeshub/supertemplates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
44 lines (40 loc) · 1.42 KB
/
error.php
File metadata and controls
44 lines (40 loc) · 1.42 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
<?php
/**
* Error Template
*
* Template used for Special Groups. Will now be auto-created
* when admin switches group from type HUB to type Special.
*
* @author HUBzero
* @copyright December 2015
*/
// define base path
$base = str_replace(PATH_ROOT, '', __DIR__);
// add stylesheets and scripts
Document::addStyleSheet($base . DS . 'assets/css/main.css');
Document::addStyleSheet($base . DS . 'assets/css/error.css');
Document::addScript($base . DS . 'assets/js/main.js');
?>
<script>
jQuery(document).ready(function(jq) {
HUB.Modules.ReportProblems.initialize('.report');
});
</script>
<div class="super-group-body-wrap group-<?php echo $this->group->get('cn'); ?>">
<div class="super-group-body error-page">
<div class="error-message"><?php echo $this->error->getMessage(); ?></div>
<div class="error-num"><?php echo $this->error->getCode(); ?></div>
<ul class="error-options cf">
<li>
<a class="back" title="Go Back" href="javascript: history.go(-1);">Back</a>
</li>
<li>
<a class="group" title="Go to Group Home Page" href="<?php echo Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn')); ?>">Go to Group Home Page</a>
</li>
<li>
<a class="report" title="Report a Problem" href="<?php echo Route::url('index.php?option=com_support&controller=tickets&task=new'); ?>">Report a Problem</a>
</li>
</ul>
</div>
</div>
<group:include type="googleanalytics" account="" />