diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-09-21 19:33:45 +0100 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-12-11 21:14:01 +0000 |
commit | f77f7a02a6f235e02c4729f6f56e7c43bd8a33fb (patch) | |
tree | 7a96b670c4a755032d892e710ad1157600264d77 /templates | |
parent | b67632cdcdd333cf0a88d03c0f7e6e62921f32c3 (diff) | |
download | ikiwiki-f77f7a02a6f235e02c4729f6f56e7c43bd8a33fb.tar ikiwiki-f77f7a02a6f235e02c4729f6f56e7c43bd8a33fb.tar.gz |
Add initial version of a postcomment plugin (temporarily namespaced as smcvpostcomment)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/smcvpostcomment_comment.tmpl | 10 | ||||
-rw-r--r-- | templates/smcvpostcomment_display.tmpl | 24 | ||||
-rw-r--r-- | templates/smcvpostcomment_embed.tmpl | 11 | ||||
-rw-r--r-- | templates/smcvpostcomment_form.tmpl | 20 |
4 files changed, 65 insertions, 0 deletions
diff --git a/templates/smcvpostcomment_comment.tmpl b/templates/smcvpostcomment_comment.tmpl new file mode 100644 index 000000000..8c89458f3 --- /dev/null +++ b/templates/smcvpostcomment_comment.tmpl @@ -0,0 +1,10 @@ +<TMPL_VAR BODY> +<TMPL_IF NAME="SUBJECT"> +[[!meta title="<TMPL_VAR NAME="SUBJECT" ESCAPE=HTML>"]] +</TMPL_IF> +<TMPL_IF NAME="AUTHOR"> +[[!meta author="<TMPL_VAR NAME="AUTHOR" ESCAPE=HTML>"]] +</TMPL_IF> +<TMPL_IF NAME="AUTHORURL"> +[[!meta authorurl="<TMPL_VAR NAME="AUTHORURL" ESCAPE=HTML>"]] +</TMPL_IF> diff --git a/templates/smcvpostcomment_display.tmpl b/templates/smcvpostcomment_display.tmpl new file mode 100644 index 000000000..32618d94d --- /dev/null +++ b/templates/smcvpostcomment_display.tmpl @@ -0,0 +1,24 @@ +<div class="smcvpostcomment-page"> + +<div class="smcvpostcomment-header"> +Posted by +<TMPL_IF NAME="AUTHOR"> +<span class="author"> +<TMPL_IF NAME="AUTHORURL"> +<a href="<TMPL_VAR NAME=AUTHORURL>"><TMPL_VAR NAME=AUTHOR></a> +<TMPL_ELSE> +<TMPL_VAR NAME=AUTHOR> +</TMPL_IF> +</span> +</TMPL_IF> + +(<TMPL_VAR CTIME>) +</div> + +<div class="smcvpostcomment-subject"><TMPL_VAR TITLE></div> + +<div class="inlinecontent"> +<TMPL_VAR CONTENT> +</div> + +</div><!--.inlinepage--> diff --git a/templates/smcvpostcomment_embed.tmpl b/templates/smcvpostcomment_embed.tmpl new file mode 100644 index 000000000..2db055d51 --- /dev/null +++ b/templates/smcvpostcomment_embed.tmpl @@ -0,0 +1,11 @@ +<form action="<TMPL_VAR CGIURL>" method="get"> +<div class="smcvpostcommentembed"> +<input type="hidden" name="do" value="smcvpostcomment" /> +<input type="hidden" name="page" value="<TMPL_VAR PAGE>" /> +<input type="submit" name="submit" value="Post a comment" + <TMPL_IF NAME=DISABLED>disabled="disabled"</TMPL_IF> /> +<TMPL_IF NAME=DISABLED> +<label for="submit">(<TMPL_VAR NAME=DISABLED>)</label> +</TMPL_IF> +</div> +</form> diff --git a/templates/smcvpostcomment_form.tmpl b/templates/smcvpostcomment_form.tmpl new file mode 100644 index 000000000..9bce62396 --- /dev/null +++ b/templates/smcvpostcomment_form.tmpl @@ -0,0 +1,20 @@ +<TMPL_VAR MESSAGE> +<TMPL_VAR FORM-START> +<TMPL_VAR FIELD-DO> +<TMPL_VAR FIELD-SID> +<TMPL_VAR FIELD-PAGE> +Subject: <TMPL_VAR FIELD-SUBJECT><br /> +<TMPL_VAR FIELD-BODY><br /> +<TMPL_VAR FORM-SUBMIT><br /> +<TMPL_VAR HELPONFORMATTINGLINK> +<TMPL_VAR FORM-END> + +<TMPL_IF NAME="PAGE_PREVIEW"> +<hr /> +<div class="header"> +<span>Page preview:</span> +</div> +<div id="preview"> +<TMPL_VAR PAGE_PREVIEW> +</div> +</TMPL_IF> |