---input--- {php} include "some/php/file.php"; foreach ($rows as $row) { echo $row; } {/php} {* smarty comment *} {serendipity_hookPlugin hook="entries_header" addData="$entry_id"} {foreach from=$entries item="dategroup"}
{if $dategroup.is_sticky}

{$CONST.STICKY_POSTINGS}

{else}

{$dategroup.date|@formatTime:DATE_FORMAT_BARSINISTER}

{/if} {foreach from=$dategroup.entries item="entry"}

{$entry.title}

{if $entry.categories} {foreach from=$entry.categories item="category"} {if $category.category_icon} {$category.category_name|@escape} {/if} {/foreach} {/if}
{$entry.body}
{if $entry.is_extended}
{$entry.extended}
{/if} {if $entry.has_extended and not $is_single_entry and not $entry.is_extended}

{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}


{/if}
{$entry.plugin_display_dat} {if $is_single_entry and not $use_popups and not $is_preview} {if $CONST.DATA_UNSUBSCRIBED}
{$CONST.DATA_UNSUBSCRIBED|@sprintf:$CONST.UNSUBSCRIBE_OK}

{/if} {if $CONST.DATA_TRACKBACK_DELETED}
{$CONST.DATA_TRACKBACK_DELETED|@sprintf:$CONST.TRACKBACK_DELETED}

{/if} {if $CONST.DATA_TRACKBACK_APPROVED}
{$CONST.DATA_TRACKBACK_APPROVED|@sprintf:$CONST.TRACKBACK_APPROVED}

{/if} {if $CONST.DATA_COMMENT_DELETED}
{$CONST.DATA_COMMENT_DELETED|@sprintf:$CONST.COMMENT_DELETED}

{/if} {if $CONST.DATA_COMMENT_APPROVED}
{$CONST.DATA_COMMENT_APPROVED|@sprintf:$CONST.COMMENT_APPROVED}

{/if} {/if} {if $is_single_entry and not $is_preview}

{$CONST.TRACKBACKS}

{serendipity_printTrackbacks entry=$entry.id}

{$CONST.COMMENTS}
{$CONST.DISPLAY_COMMENTS_AS} {if $entry.viewmode eq $CONST.VIEWMODE_LINEAR} ({$CONST.COMMENTS_VIEWMODE_LINEAR} | {$CONST.COMMENTS_VIEWMODE_THREADED}) {else} ({$CONST.COMMENTS_VIEWMODE_LINEAR} | {$CONST.COMMENTS_VIEWMODE_THREADED}) {/if}

{serendipity_printComments entry=$entry.id mode=$entry.viewmode} {if $entry.is_entry_owner} {if $entry.allow_comments} {else} {/if} {/if} {foreach from=$comments_messagestack item="message"}
{$message}
{/foreach} {if $is_comment_added}
{$CONST.COMMENT_ADDED}
{elseif $is_comment_moderate}
{$CONST.COMMENT_ADDED}
{$CONST.THIS_COMMENT_NEEDS_REVIEW}
{elseif not $entry.allow_comments}
{$CONST.COMMENTS_CLOSED}
{else}
{$CONST.ADD_COMMENT}
{$COMMENTFORM} {/if}
{/if} {$entry.backend_preview} {/foreach}
{foreachelse} {if not $plugin_clean_page} {$CONST.NO_ENTRIES_TO_PRINT} {/if} {/foreach} {if $footer_info} {/if} {serendipity_hookPlugin hook="entries_footer"} ---tokens--- '{php}' Comment.Preproc '\n ' Text 'include' Keyword ' ' Text '"' Literal.String.Double 'some/php/file.php' Literal.String.Double '"' Literal.String.Double ';' Punctuation '\n\n ' Text 'foreach' Keyword ' ' Text '(' Punctuation '$rows' Name.Variable ' ' Text 'as' Keyword ' ' Text '$row' Name.Variable ')' Punctuation ' ' Text '{' Punctuation '\n ' Text 'echo' Keyword ' ' Text '$row' Name.Variable ';' Punctuation '\n ' Text '}' Punctuation '\n' Text '{/php}' Comment.Preproc '\n\n' Other '{' Comment.Preproc '* smarty comment *' Comment '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'serendipity_hookPlugin' Name.Function ' ' Text 'hook' Name.Attribute '=' Operator '"entries_header"' Literal.String.Double ' ' Text 'addData' Name.Attribute '=' Operator '"$entry_id"' Literal.String.Double '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'foreach' Name.Function ' ' Text 'from' Name.Attribute '=' Operator '$entries' Name.Variable ' ' Text 'item' Name.Attribute '=' Operator '"dategroup"' Literal.String.Double '}' Comment.Preproc '\n
\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$dategroup.is_sticky' Name.Variable '}' Comment.Preproc '\n

' Other '{' Comment.Preproc '$CONST.STICKY_POSTINGS' Name.Variable '}' Comment.Preproc '

\n ' Other '{' Comment.Preproc 'else' Name.Function '}' Comment.Preproc '\n

' Other '{' Comment.Preproc '$dategroup.date' Name.Variable '|' Operator '@' Operator 'formatTime' Name.Attribute ':' Operator 'DATE_FORMAT_BARSINISTER' Name.Attribute '}' Comment.Preproc '

\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'foreach' Name.Function ' ' Text 'from' Name.Attribute '=' Operator '$dategroup.entries' Name.Variable ' ' Text 'item' Name.Attribute '=' Operator '"entry"' Literal.String.Double '}' Comment.Preproc '\n

' Other '{' Comment.Preproc '$entry.title' Name.Variable '}' Comment.Preproc '

\n\n
\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$entry.categories' Name.Variable '}' Comment.Preproc '\n \n ' Other '{' Comment.Preproc 'foreach' Name.Function ' ' Text 'from' Name.Attribute '=' Operator '$entry.categories' Name.Variable ' ' Text 'item' Name.Attribute '=' Operator '"category"' Literal.String.Double '}' Comment.Preproc '\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$category.category_icon' Name.Variable '}' Comment.Preproc '\n '     Other
'{'           Comment.Preproc
'$category.category_name' Name.Variable
'|'           Operator
'@'           Operator
'escape'      Name.Attribute
'}'           Comment.Preproc
'\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n ' Other '{' Comment.Preproc '/foreach' Name.Function '}' Comment.Preproc '\n \n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n\n
\n ' Other '{' Comment.Preproc '$entry.body' Name.Variable '}' Comment.Preproc '\n
\n\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$entry.is_extended' Name.Variable '}' Comment.Preproc '\n
' Other '{' Comment.Preproc '$entry.extended' Name.Variable '}' Comment.Preproc '
\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$entry.has_extended' Name.Variable ' ' Text 'and' Name.Attribute ' ' Text 'not' Name.Attribute ' ' Text '$is_single_entry' Name.Variable ' ' Text 'and' Name.Attribute ' ' Text 'not' Name.Attribute ' ' Text '$entry.is_extended' Name.Variable '}' Comment.Preproc '
\n

' Other '{' Comment.Preproc '$CONST.VIEW_EXTENDED_ENTRY' Name.Variable '|' Operator '@' Operator 'sprintf' Name.Attribute ':' Operator '$entry.title' Name.Variable '}' Comment.Preproc '


\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc "\n\n \n
\n \n ' Other '{' Comment.Preproc '$entry.plugin_display_dat' Name.Variable '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$is_single_entry' Name.Variable ' ' Text 'and' Name.Attribute ' ' Text 'not' Name.Attribute ' ' Text '$use_popups' Name.Variable ' ' Text 'and' Name.Attribute ' ' Text 'not' Name.Attribute ' ' Text '$is_preview' Name.Variable '}' Comment.Preproc '\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$CONST.DATA_UNSUBSCRIBED' Name.Variable '}' Comment.Preproc '\n
' Other '{' Comment.Preproc '$CONST.DATA_UNSUBSCRIBED' Name.Variable '|' Operator '@' Operator 'sprintf' Name.Attribute ':' Operator '$CONST.UNSUBSCRIBE_OK' Name.Variable '}' Comment.Preproc '

\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$CONST.DATA_TRACKBACK_DELETED' Name.Variable '}' Comment.Preproc '\n
' Other '{' Comment.Preproc '$CONST.DATA_TRACKBACK_DELETED' Name.Variable '|' Operator '@' Operator 'sprintf' Name.Attribute ':' Operator '$CONST.TRACKBACK_DELETED' Name.Variable '}' Comment.Preproc '

\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$CONST.DATA_TRACKBACK_APPROVED' Name.Variable '}' Comment.Preproc '\n
' Other '{' Comment.Preproc '$CONST.DATA_TRACKBACK_APPROVED' Name.Variable '|' Operator '@' Operator 'sprintf' Name.Attribute ':' Operator '$CONST.TRACKBACK_APPROVED' Name.Variable '}' Comment.Preproc '

\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$CONST.DATA_COMMENT_DELETED' Name.Variable '}' Comment.Preproc '\n
' Other '{' Comment.Preproc '$CONST.DATA_COMMENT_DELETED' Name.Variable '|' Operator '@' Operator 'sprintf' Name.Attribute ':' Operator '$CONST.COMMENT_DELETED' Name.Variable '}' Comment.Preproc '

\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$CONST.DATA_COMMENT_APPROVED' Name.Variable '}' Comment.Preproc '\n
' Other '{' Comment.Preproc '$CONST.DATA_COMMENT_APPROVED' Name.Variable '|' Operator '@' Operator 'sprintf' Name.Attribute ':' Operator '$CONST.COMMENT_APPROVED' Name.Variable '}' Comment.Preproc '

\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$is_single_entry' Name.Variable ' ' Text 'and' Name.Attribute ' ' Text 'not' Name.Attribute ' ' Text '$is_preview' Name.Variable '}' Comment.Preproc '\n
\n
\n \n
' Other '{' Comment.Preproc '$CONST.TRACKBACKS' Name.Variable '}' Comment.Preproc '
\n \n
\n ' Other '{' Comment.Preproc 'serendipity_printTrackbacks' Name.Function ' ' Text 'entry' Name.Attribute '=' Operator '$entry.id' Name.Variable '}' Comment.Preproc '\n
\n
\n
\n \n
' Other '{' Comment.Preproc '$CONST.COMMENTS' Name.Variable '}' Comment.Preproc '
\n
' Other '{' Comment.Preproc '$CONST.DISPLAY_COMMENTS_AS' Name.Variable '}' Comment.Preproc '\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$entry.viewmode' Name.Variable ' ' Text 'eq' Name.Attribute ' ' Text '$CONST.VIEWMODE_LINEAR' Name.Variable '}' Comment.Preproc '\n (' Other '{' Comment.Preproc '$CONST.COMMENTS_VIEWMODE_LINEAR' Name.Variable '}' Comment.Preproc ' | ' Other '{' Comment.Preproc '$CONST.COMMENTS_VIEWMODE_THREADED' Name.Variable '}' Comment.Preproc ')\n ' Other '{' Comment.Preproc 'else' Name.Function '}' Comment.Preproc '\n (' Other '{' Comment.Preproc '$CONST.COMMENTS_VIEWMODE_LINEAR' Name.Variable '}' Comment.Preproc ' | ' Other '{' Comment.Preproc '$CONST.COMMENTS_VIEWMODE_THREADED' Name.Variable '}' Comment.Preproc ')\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n
\n
\n ' Other '{' Comment.Preproc 'serendipity_printComments' Name.Function ' ' Text 'entry' Name.Attribute '=' Operator '$entry.id' Name.Variable ' ' Text 'mode' Name.Attribute '=' Operator '$entry.viewmode' Name.Variable '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$entry.is_entry_owner' Name.Variable '}' Comment.Preproc '\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$entry.allow_comments' Name.Variable '}' Comment.Preproc '\n \n ' Other '{' Comment.Preproc 'else' Name.Function '}' Comment.Preproc '\n \n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n \n\n ' Other '{' Comment.Preproc 'foreach' Name.Function ' ' Text 'from' Name.Attribute '=' Operator '$comments_messagestack' Name.Variable ' ' Text 'item' Name.Attribute '=' Operator '"message"' Literal.String.Double '}' Comment.Preproc '\n
' Other '{' Comment.Preproc '$message' Name.Variable '}' Comment.Preproc '
\n ' Other '{' Comment.Preproc '/foreach' Name.Function '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$is_comment_added' Name.Variable '}' Comment.Preproc '\n\n
\n
' Other '{' Comment.Preproc '$CONST.COMMENT_ADDED' Name.Variable '}' Comment.Preproc '
\n\n ' Other '{' Comment.Preproc 'elseif' Name.Function ' ' Text '$is_comment_moderate' Name.Variable '}' Comment.Preproc '\n\n
\n
' Other '{' Comment.Preproc '$CONST.COMMENT_ADDED' Name.Variable '}' Comment.Preproc '
' Other '{' Comment.Preproc '$CONST.THIS_COMMENT_NEEDS_REVIEW' Name.Variable '}' Comment.Preproc '
\n\n ' Other '{' Comment.Preproc 'elseif' Name.Function ' ' Text 'not' Name.Attribute ' ' Text '$entry.allow_comments' Name.Variable '}' Comment.Preproc '\n\n
\n
' Other '{' Comment.Preproc '$CONST.COMMENTS_CLOSED' Name.Variable '}' Comment.Preproc '
\n\n ' Other '{' Comment.Preproc 'else' Name.Function '}' Comment.Preproc '\n\n
\n
' Other '{' Comment.Preproc '$CONST.ADD_COMMENT' Name.Variable '}' Comment.Preproc '
\n ' Other '{' Comment.Preproc '$COMMENTFORM' Name.Variable '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n
\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n\n ' Other '{' Comment.Preproc '$entry.backend_preview' Name.Variable '}' Comment.Preproc '\n ' Other '{' Comment.Preproc '/foreach' Name.Function '}' Comment.Preproc '\n
\n ' Other '{' Comment.Preproc 'foreachelse' Name.Function '}' Comment.Preproc '\n ' Other '{' Comment.Preproc 'if' Name.Function ' ' Text 'not' Name.Attribute ' ' Text '$plugin_clean_page' Name.Variable '}' Comment.Preproc '\n ' Other '{' Comment.Preproc '$CONST.NO_ENTRIES_TO_PRINT' Name.Variable '}' Comment.Preproc '\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n ' Other '{' Comment.Preproc '/foreach' Name.Function '}' Comment.Preproc '\n\n' Other '{' Comment.Preproc 'if' Name.Function ' ' Text '$footer_info' Name.Variable '}' Comment.Preproc '\n ' Other '{' Comment.Preproc '/if' Name.Function '}' Comment.Preproc '\n ' Other '{' Comment.Preproc 'serendipity_hookPlugin' Name.Function ' ' Text 'hook' Name.Attribute '=' Operator '"entries_footer"' Literal.String.Double '}' Comment.Preproc '\n\n' Other