mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
*** empty log message ***
This commit is contained in:
@@ -385,7 +385,12 @@ class Smarty
|
|||||||
return "";
|
return "";
|
||||||
|
|
||||||
/* Split tag into two parts: command and the arguments. */
|
/* Split tag into two parts: command and the arguments. */
|
||||||
list($tag_command, $tag_args) = preg_split('!\s+!', $template_tag, 2);
|
preg_match('/^(
|
||||||
|
(?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | \'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | (?>[^"\' ]+))+
|
||||||
|
)
|
||||||
|
(?:\s+(.*))?
|
||||||
|
/x', $template_tag, $match);
|
||||||
|
list(, $tag_command, $tag_args) = $match;
|
||||||
|
|
||||||
/* If the tag name matches a variable or section property definition,
|
/* If the tag name matches a variable or section property definition,
|
||||||
we simply process it. */
|
we simply process it. */
|
||||||
|
@@ -14,8 +14,8 @@ My interests are:
|
|||||||
{else}
|
{else}
|
||||||
* {$outer/FirstName} {$outer/LastName}
|
* {$outer/FirstName} {$outer/LastName}
|
||||||
{/if}
|
{/if}
|
||||||
|
{$outer/date|date_format:"%B %d, %Y"}
|
||||||
{sectionelse}
|
{sectionelse}
|
||||||
none
|
none
|
||||||
{/section}
|
{/section}
|
||||||
|
|
||||||
{html_options values=#title# output=$FirstName|replace:"a":"@"}
|
|
||||||
|
@@ -385,7 +385,12 @@ class Smarty
|
|||||||
return "";
|
return "";
|
||||||
|
|
||||||
/* Split tag into two parts: command and the arguments. */
|
/* Split tag into two parts: command and the arguments. */
|
||||||
list($tag_command, $tag_args) = preg_split('!\s+!', $template_tag, 2);
|
preg_match('/^(
|
||||||
|
(?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | \'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | (?>[^"\' ]+))+
|
||||||
|
)
|
||||||
|
(?:\s+(.*))?
|
||||||
|
/x', $template_tag, $match);
|
||||||
|
list(, $tag_command, $tag_args) = $match;
|
||||||
|
|
||||||
/* If the tag name matches a variable or section property definition,
|
/* If the tag name matches a variable or section property definition,
|
||||||
we simply process it. */
|
we simply process it. */
|
||||||
|
@@ -14,8 +14,8 @@ My interests are:
|
|||||||
{else}
|
{else}
|
||||||
* {$outer/FirstName} {$outer/LastName}
|
* {$outer/FirstName} {$outer/LastName}
|
||||||
{/if}
|
{/if}
|
||||||
|
{$outer/date|date_format:"%B %d, %Y"}
|
||||||
{sectionelse}
|
{sectionelse}
|
||||||
none
|
none
|
||||||
{/section}
|
{/section}
|
||||||
|
|
||||||
{html_options values=#title# output=$FirstName|replace:"a":"@"}
|
|
||||||
|
Reference in New Issue
Block a user