Commit Graph

517 Commits

Author SHA1 Message Date
Uwe.Tews
51cc106811 - fix that {$smarty.current_dir} returns correct value within {block} tags. 2009-07-21 16:26:11 +00:00
Uwe.Tews
12ef15812c - drop error message on unmatched {block} {/block} pairs 2009-07-20 15:38:11 +00:00
Uwe.Tews
581620d8cd - fix on \n and spaces inside smarty tags
- removed request_use_auto_globals propert as it is no longer needed because Smarty 3 will always run under PHP 5
2009-06-22 14:23:21 +00:00
Uwe.Tews
f5aabcd47f - added $smarty.current_dir which returns the current working directory 2009-06-18 18:51:21 +00:00
Uwe.Tews
b6b4d90487 - fixed compilation of block plugins when caching enabled 2009-06-18 17:46:25 +00:00
Uwe.Tews
ce9a656829 - allow smarty tags within xml tags
- PHPunit update
2009-06-14 13:08:13 +00:00
Uwe.Tews
ae3c3fce48 - fixed array access on super globals
- changed internal access to smarty object
2009-06-14 11:07:26 +00:00
Uwe.Tews
18a3bb1971 - instantiate classes of plugins instead of calling them static 2009-06-13 21:05:57 +00:00
Uwe.Tews
06ce127133 - bugfix at extend resource: create unique files for compiled template and cache for each combination of template files
- update extend resource to handle appen and prepend block attributes
2009-06-13 20:39:56 +00:00
Uwe.Tews
30bd8f119b - fixed repeat at block plugins 2009-06-03 18:07:15 +00:00
Uwe.Tews
d4558ca158 - fixed problem with caching of compiler plugins 2009-05-25 21:14:44 +00:00
Uwe.Tews
1084678645 - fixed directory separator handling 2009-05-14 10:53:28 +00:00
Uwe.Tews
bd6b49ee1e - syntax change for stream variables 2009-05-09 12:44:43 +00:00
Uwe.Tews
8f8111a449 - fixed bug when using absolute template filepath and caching 2009-05-09 07:04:55 +00:00
Uwe.Tews
0a64988240 - fixed bug of {nocache} tag in included templates 2009-05-08 11:34:21 +00:00
Uwe.Tews
d7a8731ac9 - fixed E_STRICT incompabilities
- {function} tag bug fix 
- security policy definitions have been moved from plugins folder to file Security.class.php in libs folder
- added allow_super_global configuration to security
2009-05-05 17:19:33 +00:00
Uwe.Tews
5bbc44f35d - functions defined with the {function} tag now always have global scope 2009-04-30 17:39:17 +00:00
Uwe.Tews
f3c58dfa8d - allow that cache_dir can end without directory separator 2009-04-29 19:31:33 +00:00
Uwe.Tews
0b9887cc17 - allow that cache_dir can end without directory separator 2009-04-29 19:25:44 +00:00
Uwe.Tews
d7093433ae - fixed problem with directory setter methodes 2009-04-29 17:56:56 +00:00
Uwe.Tews
4c794a3d70 - the {function} tag can no longer overwrite standard smarty tags
- inherit functions defined by the {fuction} tag into subtemplates
- added {while <statement>} sytax to while tag
2009-04-28 15:37:13 +00:00
Uwe.Tews
c724b720be - added trusted stream checking to security
- internal changes at file dependency check for caching
2009-04-26 16:56:17 +00:00
Uwe.Tews
4f4f2d3dd3 - changed name of {template} tag to {function} 2009-04-24 22:36:12 +00:00
Uwe.Tews
e315782819 - added new {template} tag 2009-04-24 19:59:51 +00:00
Uwe.Tews
1ee0747801 - fixed access of special smarty variables from included template 2009-04-23 13:32:45 +00:00
Uwe.Tews
d991f96423 - unified template stream syntax with standard Smarty resource syntax $smarty->display('mystream:mytemplate') 2009-04-21 22:09:17 +00:00
Uwe.Tews
453d8a23da - change of new style syntax for forach. Now: {foreach $array as $var} like in PHP 2009-04-21 18:02:34 +00:00
Uwe.Tews
380cb27945 - fixed "$foo.bar ..." variable replacement in double quoted strings 2009-04-20 20:33:14 +00:00
Uwe.Tews
73fe38c488 - fixed error in {include} tag with variable file attribute 2009-04-20 14:08:02 +00:00
Uwe.Tews
152cedb75c - added stream resources ($smarty->display('mystream://mytemplate'))
- added stream variables  {$mystream:myvar}
2009-04-18 14:46:29 +00:00
Uwe.Tews
24e3218d28 - added {if 'expression' is in 'array'} syntax 2009-04-14 12:41:07 +00:00
Uwe.Tews
1970c0cbdb - fixed compile_id handling on {include} tags 2009-04-14 11:25:45 +00:00
Uwe.Tews
3d0b7663e2 - fixed compile_id handling on {include} tags 2009-04-14 10:31:02 +00:00
Uwe.Tews
04fc33b99a - fixed append/prepend attributes in {block} tag
- added  {if  'expression' is in 'array'}  syntax
- use crc32 as hash for compiled config files.
2009-04-14 09:04:15 +00:00
Uwe.Tews
139b3d4570 - fixed scope problem with parent variables when appending variables within templates.
- fixed code for {block} without childs (possible sources for notice errors removed)
2009-04-12 22:26:02 +00:00
Uwe.Tews
bdb43faab3 - update on append and prepend attribute at {block} tag 2009-04-12 05:40:30 +00:00
Uwe.Tews
62039b5e24 - added append and prepend attribute to {block} tag 2009-04-12 02:30:54 +00:00
Uwe.Tews
c9b789ca32 - fixed variables in 'file' attribute of {extend} tag
- fixed problems in modifiers (if mb string functions not present)
2009-04-11 08:47:28 +00:00
Uwe.Tews
ba61f12384 - check if mb string functions available otherwise fallback to normal string functions 2009-04-10 15:52:59 +00:00
Uwe.Tews
1262b7d873 - parser update 2009-04-10 14:31:23 +00:00
Uwe.Tews
eace27e2b6 - added global variable scope SMARTY_GLOBAL_SCOPE
- enable 'variable' filter by default
2009-04-10 12:33:51 +00:00
Uwe.Tews
33082844a5 - fixed {$smarty.block.parent.foo} 2009-04-10 02:29:46 +00:00
Uwe.Tews
066467ca82 - implementation of a 'variable' filter as replacement for default modifier
- update of unregister_....filter methods
2009-04-10 01:15:53 +00:00
Uwe.Tews
a424da0671 - syntax corrections on variable object property 2009-04-09 17:43:32 +00:00
Uwe.Tews
ba74349d59 - fixed execution of filters defined by classes 2009-04-09 16:38:07 +00:00
Uwe.Tews
57d190e997 - compile the always the content of {block} tags to make shure that the filters are running over it
- syntax corrections on variable object property
- syntax corrections on array access in dot syntax
2009-04-09 15:53:52 +00:00
Uwe.Tews
8bcd6514b5 - allow variable object property 2009-04-08 14:47:28 +00:00
Uwe.Tews
9b41308bf6 - changed variable scopes to SMARTY_LOCAL_SCOPE, SMARTY_PARENT_SCOPE, SMARTY_ROOT_SCOPE to avoid possible conflicts with user constants
- Smarty variable global attribute replaced with scope attribute
2009-04-07 16:22:31 +00:00
Uwe.Tews
0ab30877db - variable scopes LOCAL_SCOPE, PARENT_SCOPE, ROOT_SCOPE
- more getter/setter methodes
2009-04-06 02:53:09 +00:00
Uwe.Tews
fa3a23dace - replaced new array looping syntax {for $foo in $array} with {foreach $foo in $array} to avoid confusion 2009-04-05 17:56:04 +00:00