-
Notifications
You must be signed in to change notification settings - Fork 1
/
component.php
61 lines (53 loc) · 1.69 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
*
* @package Expose Bootstrap Theme
* @version 2.2
* @author ThemeXpert http://www.themexpert.com
* @copyright Copyright (C) 2010 - 2011 ThemeXpert
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3
*
**/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
//framework bootstrap
if( file_exists( JPATH_LIBRARIES . '/expose/expose.php' ) ){
require_once JPATH_LIBRARIES . '/expose/expose.php';
}else{
echo JText::_('Unable to find Expose library. Please make sure you have it installed.');
die();
}
//Import layout class
expose_import('core.layout');
// Create an instance of layout class and it will call the widget->init().
$layout = ExposeLayout::getInstance();
?>
<?php if (JRequest::getString('type')=='raw'):?>
<jdoc:include type="component" />
<?php else: ?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo ($this->direction =='rtl' OR $expose->get('rtl-support'))? 'rtl' : 'ltr'; ?>" class="no-js">
<head>
<?php
$expose->displayHead();
$expose->addLink(array('template.css','bootstrap.css'),'css');
?>
</head>
<body <?php echo $expose->generateBodyClass();?> >
<!--Start Main Body-->
<div id="ex-main">
<div class="ex-container">
<div id="ex-mainbody">
<div id="ex-component">
<jdoc:include type="component" />
</div>
</div>
</div>
</div>
<!--End Main Body Modules-->
</body>
</html>
<?php endif;?>
<?php
$expose->finalizedExpose();
?>