Exemplo n.º 1
0
 * @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';
Exemplo n.º 2
0
 public function renderBody()
 {
     $layout = ExposeLayout::getInstance();
     $layout->renderBody();
 }