Example #1
0
		/**
		 * GetInstance
		 * @return mixed Returns a handle to the front end template instance.
		 */
		public function GetInstance()
		{
			if(!self::$instance) {
				$frontEndTemplate = new TEMPLATE('ISC_LANG');
				$frontEndTemplate->frontEnd();
				$frontEndTemplate->setTemplateBase(ISC_BASE_PATH . '/templates');
				$frontEndTemplate->panelPHPDir = ISC_BASE_PATH . '/includes/display/';
				$frontEndTemplate->templateExt = 'html';
				$frontEndTemplate->setTemplate(getConfig('template'));

				self::$instance = $frontEndTemplate;
			}

			return self::$instance;
		}