closedir($dh);
}
}
+
+function set_template_engine(&$a, $engine = 'internal') {
+
+ $a->theme['template_engine'] = 'internal';
+
+ if(is_writable('view/smarty3/')) {
+ switch($engine) {
+ case 'smarty3':
+ $a->theme['template_engine'] = 'smarty3';
+ break;
+ default:
+ break;
+ }
+ }
+}
$o = '';
- $geotag = (($x['allow_location']) ? get_markup_template('jot_geotag.tpl') : '');
+ $geotag = (($x['allow_location']) ? replace_macros(get_markup_template('jot_geotag.tpl'), array()) : '');
/* $plaintext = false;
if( local_user() && (intval(get_pconfig(local_user(),'system','plaintext')) || !feature_enabled(local_user(),'richtext')) )
$a->theme_info = array(
'extends' => 'duepuntozero',
);
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function cleanzero_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
$a->theme_info = array(
'extends' => 'duepuntozero',
);
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
$a->page['htmlhead'] .= <<< EOT
<script>
$a->theme_info = array(
'extends' => 'duepuntozero',
);
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
$a->page['htmlhead'] .= <<< EOT
<script>
$a->theme_info = array(
'extends' => 'testbubble',
);
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
$a->page['htmlhead'] .= <<< EOT
$a->theme_info = array(
'extends' => 'duepuntozero',
);
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function darkzero_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
*/
$a = get_app();
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function get_diabook_config($key, $default = false) {
if (local_user()) {
'family' => 'dispy',
'version' => '1.2.2'
);
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function dispy_init(&$a) {
<?php
$a->theme_info = array();
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function duepuntozero_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
<?php
$a->theme_info = array();
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
$a->page['htmlhead'] .= <<< EOT
<script>
$a->videoheight = 200;
$a->theme_thread_allow = false;
$a->force_max_items = 10;
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function frost_mobile_content_loaded(&$a) {
$a->videowidth = 400;
$a->videoheight = 330;
$a->theme_thread_allow = false;
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function frost_content_loaded(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function greenzero_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
$a->theme_info = array(
'extends' => 'duepuntozero',
);
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function purplezero_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
*/
$a->theme_info = array();
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function quattro_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
$a->theme_info = array(
'extends' => 'duepuntozero',
);
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function slackr_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
$a = get_app();
$a->theme_info = array();
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
function smoothly_init(&$a) {
$cssFile = null;
* Maintainer: Mike Macgirvin <mike@macgirvin.com>
*/
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
$a->page['htmlhead'] .= <<< EOT
<script>
* Maintainer: Ike <http://pirati.ca/profile/heluecht>
*/
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
$a->theme_info = array();