The only {eval } I found is used in bulletproof/entries.tpl pagination section.The {eval} tag is consuming a lot of memory as it loads and executes the compiler each time the template gets rendered. This is true for both versions Smarty2 and Smarty3.
Since eval will be forbidden by default in Smarty3.1, could we just replace it now with {assign }, to be future compatible, without breaking something?
Code: Select all
<div class="pagination">
{* eval var=$footer_currentPage-3 assign="paginationStartPage" *}
{assign var="paginationStartPage" value="`$footer_currentPage-3`"}
{if $footer_currentPage+3 > $footer_totalPages}
{* eval var=$footer_totalPages-6 assign="paginationStartPage" *}
{assign var="paginationStartPage" value="`$footer_totalPages-6`"}
{/if}
{if $paginationStartPage <= 0}
{assign var="paginationStartPage" value="1"}
{/if}
...