From 51609351f2c4b5082b7e6f0744cd3811c325303f Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 11 Oct 2016 14:01:29 +0200 Subject: * initial template --- .../sysplugins/smarty_internal_nocache_insert.php | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 lib/smarty/sysplugins/smarty_internal_nocache_insert.php (limited to 'lib/smarty/sysplugins/smarty_internal_nocache_insert.php') diff --git a/lib/smarty/sysplugins/smarty_internal_nocache_insert.php b/lib/smarty/sysplugins/smarty_internal_nocache_insert.php new file mode 100644 index 0000000..faae49a --- /dev/null +++ b/lib/smarty/sysplugins/smarty_internal_nocache_insert.php @@ -0,0 +1,53 @@ +assign('{$_assign}' , {$_function} (" . var_export($_attr, true) . ",\$_smarty_tpl), true);?>"; + } else { + $_output .= "echo {$_function}(" . var_export($_attr, true) . ",\$_smarty_tpl);?>"; + } + $_tpl = $_template; + while ($_tpl->parent instanceof Smarty_Internal_Template) { + $_tpl = $_tpl->parent; + } + return "/*%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/" . $_output . "/*/%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/"; + } + +} + +?> -- cgit v1.2.3