mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
27 lines
585 B
PHP
27 lines
585 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @package util
|
||
|
*/
|
||
|
|
||
|
#require_once('boot.php');
|
||
|
#require_once('include/cli_startup.php');
|
||
|
require_once "library/Smarty/libs/Smarty.class.php";
|
||
|
|
||
|
#cli_startup();
|
||
|
|
||
|
$folders = array_merge(array('view/tpl/'),glob('view/theme/*/tpl/*',GLOB_ONLYDIR));
|
||
|
|
||
|
$s = new Smarty();
|
||
|
|
||
|
$s->setTemplateDir($folders);
|
||
|
|
||
|
$s->setCompileDir(TEMPLATE_BUILD_PATH . '/compiled/');
|
||
|
$s->setConfigDir(TEMPLATE_BUILD_PATH . '/config/');
|
||
|
$s->setCacheDir(TEMPLATE_BUILD_PATH . '/cache/');
|
||
|
|
||
|
$s->left_delimiter = "{{";
|
||
|
$s->right_delimiter = "}}";
|
||
|
|
||
|
$s->compileAllTemplates('.tpl',true);
|