Example #1
0
 /**
  * making self object for singleton method
  *
  */
 public static final function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
         self::getInstance()->getDocument();
     }
     return self::$_instance;
 }
Example #2
0
<?php

/**
* @package Helix3 Framework
* @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
*/
defined('_JEXEC') or die;
$doc = JFactory::getDocument();
$app = JFactory::getApplication();
//Load Helix
$helix3_path = JPATH_PLUGINS . '/system/helix3/core/helix3.php';
if (file_exists($helix3_path)) {
    require_once $helix3_path;
    $this->helix3 = Helix3::getInstance();
} else {
    die('Please install and activate helix plugin');
}
$comingsoon_title = $this->params->get('comingsoon_title');
if ($comingsoon_title) {
    $doc->setTitle($comingsoon_title . ' | ' . $app->get('sitename'));
}
$comingsoon_date = explode('-', $this->params->get("comingsoon_date"));
//Load jQuery
JHtml::_('jquery.framework');
?>
<!DOCTYPE html>
<html class="sp-comingsoon" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php 
echo $this->language;
?>