forked from nielsnuebel/kicktemp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent.php
43 lines (35 loc) · 1.84 KB
/
component.php
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
<?php defined( '_JEXEC' ) or die;
// variables
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$tpath = $this->baseurl.'/templates/'.$this->template;
$input = $app->input;
$print = $input->get('print',0);
$this->setGenerator(null);
// load sheets and scripts
//$doc->addStyleSheet($tpath.'/css/bootstrap.min.css');
//$doc->addStyleSheet($tpath.'/css/bootstrap-responsive.min.css');
$doc->addStyleSheet($tpath.'/css/kickstart.css');
$doc->addStyleSheet($tpath.'/css/print.css?v=1');
//$doc->addScript($tpath.'/js/modernizr-2.6.2.js');
?><!doctype html>
<!--[if IEMobile]><html class="iemobile" lang="<?php echo $this->language; ?>"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="<?php echo $this->language; ?>"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="<?php echo $this->language; ?>"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="<?php echo $this->language; ?>"> <!--<![endif]-->
<head>
<jdoc:include type="head" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- mobile viewport optimized -->
<link rel="apple-touch-icon-precomposed" href="<?php echo $tpath; ?>/images/apple-touch-icon-57x57-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo $tpath; ?>/images/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo $tpath; ?>/images/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo $tpath; ?>/images/apple-touch-icon-144x144-precomposed.png">
</head>
<body id="print">
<div id="overall">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
<?php if ($print == '1') echo '<script type="text/javascript">window.print();</script>'; ?>
</body>
</html>