summaryrefslogtreecommitdiff
path: root/demos/blog-tutorial/protected/common/NoteBox.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/blog-tutorial/protected/common/NoteBox.php')
-rw-r--r--demos/blog-tutorial/protected/common/NoteBox.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/demos/blog-tutorial/protected/common/NoteBox.php b/demos/blog-tutorial/protected/common/NoteBox.php
new file mode 100644
index 00000000..f5123380
--- /dev/null
+++ b/demos/blog-tutorial/protected/common/NoteBox.php
@@ -0,0 +1,13 @@
+<?php
+
+class NoteBox extends TControl
+{
+ public function render($writer)
+ {
+ $writer->write("<div class=\"note\"><b class=\"tip\">Note:</b>\n");
+ $body=$this->renderChildren($writer);
+ $writer->write("</div>");
+ }
+}
+
+?> \ No newline at end of file