Code: Select all
echo '<span style="float:right; margin-top:0.5em;">';
echo smarty_cms_function_anchor(array('anchor' => 'main','text' => '^ Top'), $this);
echo '</span>';
You can see the result at this page (as you can see I pretty much use only default templates and modules).
When you press the Print button the page is empty and the Apache log shows:
Code: Select all
PHP Fatal error: Call to undefined function smarty_cms_function_anchor() in /sites/furix.com/www/lib/content.functions.php(976) : eval()'d code on line 2
Why is smarty_cms_function_anchor not defined when printing?
(Come to think of it: actually the links are unnecessary when printing, how do I implement an 'if (not printing)' clause?)