diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/quickstart/protected/comments/CommentList.php | 5 | ||||
-rw-r--r-- | demos/quickstart/protected/comments/CommentList.tpl | 9 | ||||
-rw-r--r-- | demos/quickstart/themes/PradoSoft/style.css | 12 |
3 files changed, 24 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> diff --git a/demos/quickstart/themes/PradoSoft/style.css b/demos/quickstart/themes/PradoSoft/style.css index d0c3b0be..782697ae 100644 --- a/demos/quickstart/themes/PradoSoft/style.css +++ b/demos/quickstart/themes/PradoSoft/style.css @@ -505,4 +505,16 @@ dd {
background-color: #ffffcc;
padding: 20px;
+}
+
+pre code
+{
+ display: block;
+ padding: 0.5em;
+ border-style:solid;
+ border-width:1px;
+ border-color:#eeeeee;
+ background-color:#ffffee;
+ font-family: "Courier New", Courier, mono;
+ margin: 0.2em;
}
\ No newline at end of file |