Version 0.9.2 ()
------------------------------------------------------------------------
+ * Include a template's "config.inc.php" also when previewing an entry,
+ so that custom functions can be called (garvinhicking)
+
* Media uploader remembers last used upload directory (garvinhicking)
* Add "Precedence: Bulk" headers to sent mails (garvinhicking)
case 'preview':
echo '<div style="float: left; height: 225px"></div>';
$serendipity['smarty_raw_mode'] = true; // Force output of Smarty stuff in the backend
+ $serendipity['smarty_preview'] = true;
serendipity_smarty_init();
$serendipity['smarty']->assign('is_preview', true);
)
);
+ // For advanced usage, we allow template authors to create a file 'config.inc.php' where they can
+ // setup custom smarty variables, modifiers etc. to use in their templates.
+ @include_once $serendipity['smarty']->config_dir . '/config.inc.php';
+
return true;
}
serendipity_plugin_api::hook_event('genpage', $uri);
serendipity_smarty_init();
-// For advanced usage, we allow template authors to create a file 'config.inc.php' where they can
-// setup custom smarty variables, modifiers etc. to use in their templates.
-@include_once $serendipity['smarty']->config_dir . '/config.inc.php';
-
$serendipity['smarty']->assign(
array(
'leftSidebarElements' => serendipity_plugin_api::count_plugins('left'),