Hohum.
I just now tried to implement this in the entries.tpl. Seems like something like:
Code: Select all
{if $template_option.dategroup_sort == 'false'}
{foreach from=$dategroup.entries item="entry"}
{/if}
isn't possible in Smarty, since I get:
Code: Select all
Fatal error: Smarty error: [in file:/var/www/serendipity/templates/bp-svn/entries.tpl line 7]: syntax error: mismatched tag {/if}. expected {/foreach} (opened line 6). (Smarty_Compiler.class.php, line 2324) in /var/www/serendipity/bundled-libs/Smarty/libs/Smarty.class.php on line 1092
Does anybody have a clue
why this doesn't work? Is it invalid to just open a foreach within an if statement without closing it within the same if statement?
'cause if that's the case, I think we're gonna have to drop it as a theme option altogether. If can't use the code above, I'd have to basically have the whole entries.tpl twice (if anybody can follow me here), which is
definitely way too much overhead for a small detail like this ...
YL