This repository has been archived by the owner on Jun 13, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable custom template files for droplets
- Loading branch information
Showing
22 changed files
with
126 additions
and
777 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/** | ||
* This file is part of an ADDON for use with LEPTON Core. | ||
* This ADDON is released under the GNU GPL. | ||
* Additional license terms can be seen in the info.php of this module. | ||
* | ||
* @module Droplets | ||
* @author LEPTON Project | ||
* @copyright 2010-2015 LEPTON Project | ||
* @link http://www.LEPTON-cms.org | ||
* @license http://www.gnu.org/licenses/gpl.html | ||
* @license_terms please see info.php of this module | ||
* @reformatted 2011-12-30 | ||
* | ||
* This code was originally created by Ruud Eisinga (Ruud) and John (PCWacht) | ||
* for Website Baker CMS and adapted for LEPTON in 2011 | ||
* | ||
*/ | ||
|
||
/** ******************************* | ||
* Try to get the template-engine. | ||
* | ||
* Make your basic settings for your module-backend interface(-s) here. | ||
* Keep in mind, that the paths-settings belongs to the backend only! | ||
* | ||
*/ | ||
global $parser, $loader; | ||
if (!isset($parser)) | ||
{ | ||
require_once( LEPTON_PATH."/modules/lib_twig/library.php" ); | ||
} | ||
|
||
require(dirname(__FILE__)."/info.php"); | ||
|
||
$loader->prependPath( dirname(__FILE__)."/templates/", $module_directory ); | ||
|
||
$backend_template_path = LEPTON_PATH."/templates/".DEFAULT_THEME."/backend/".$module_directory."/"; | ||
$module_template_path = dirname(__FILE__)."/templates/"; | ||
|
||
require_once (LEPTON_PATH."/modules/lib_twig/classes/class.twig_utilities.php"); | ||
$twig_util = new twig_utilities( $parser, $loader, $module_template_path, $backend_template_path ); | ||
$twig_util->template_namespace = $module_directory; | ||
|
||
$twig_modul_namespace = "@".$module_directory."/" | ||
|
||
?> |
Oops, something went wrong.