diff options
author | wei <> | 2006-06-01 11:30:16 +0000 |
---|---|---|
committer | wei <> | 2006-06-01 11:30:16 +0000 |
commit | c747273ddd0656b348598b64c78b72d2d4ca23d1 (patch) | |
tree | 8ff71f72dc7c2e29f88e234d0ad74d745851758d /demos/quickstart/protected/comments | |
parent | 6c51bde9db85fa63adbddf2240a521b437bbb06a (diff) |
adding TMarkdown for markdown syntax
Diffstat (limited to 'demos/quickstart/protected/comments')
-rw-r--r-- | demos/quickstart/protected/comments/CommentList.php | 5 | ||||
-rw-r--r-- | demos/quickstart/protected/comments/CommentList.tpl | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/demos/quickstart/protected/comments/CommentList.php b/demos/quickstart/protected/comments/CommentList.php index 7ea5be6b..d44c3e55 100644 --- a/demos/quickstart/protected/comments/CommentList.php +++ b/demos/quickstart/protected/comments/CommentList.php @@ -12,7 +12,10 @@ Prado::using('System.I18N.*'); */ class CommentList extends TTemplateControl { - private $_exclude = array('Comments', 'GettingStarted.Introduction'); + private $_exclude = array( + 'Comments', + 'Markdown', + 'GettingStarted.Introduction'); private $_quickstart; diff --git a/demos/quickstart/protected/comments/CommentList.tpl b/demos/quickstart/protected/comments/CommentList.tpl index 1dd4ee2d..25cb871f 100644 --- a/demos/quickstart/protected/comments/CommentList.tpl +++ b/demos/quickstart/protected/comments/CommentList.tpl @@ -16,7 +16,9 @@ </span> <div class="comment"> <com:TSafeHtml> + <com:TMarkdown> <%# $this->DataItem['comment'] %> + </com:TMarkdown> </com:TSafeHtml> </div> </div> @@ -38,7 +40,8 @@ Please use the <a href="http://pradosoft.com/wiki/index.php/Main_Page">Prado wiki</a> for longer pieces and detailed solutions</a>. </p> <p>Comments will be periodically reviewed, integrated into the documentation and removed. - You may use HTML in your comment.</p> + You may use <a href="?page=Markdown">markdown syntax</a> in your comment. </p> + <div class="comment_email"> <com:TLabel ID="email_label" Text="Email:" ForControl="email"/> <com:TTextBox ID="email" /> @@ -67,7 +70,9 @@ <h3 style="margin:0">Preview comment</h3> <div class="comment"> <com:TSafeHtml> + <com:TMarkdown> <%= $this->content->Text %> + </com:TMarkdown> </com:TSafeHtml> </div> </div> @@ -85,7 +90,9 @@ <h3 style="margin:0">Preview comment</h3> <div class="comment"> <com:TSafeHtml> + <com:TMarkdown> <%= $this->content->Text %> + </com:TMarkdown> </com:TSafeHtml> </div> </div> |