[pLog-svn] r1093 - plog/trunk/templates/standard-with-plugins
mark at devel.plogworld.net
mark at devel.plogworld.net
Tue Feb 15 17:52:58 GMT 2005
Author: mark
Date: 2005-02-15 17:52:58 +0000 (Tue, 15 Feb 2005)
New Revision: 1093
Added:
plog/trunk/templates/standard-with-plugins/authimage.template
plog/trunk/templates/standard-with-plugins/readme.txt
Modified:
plog/trunk/templates/standard-with-plugins/commentform.template
plog/trunk/templates/standard-with-plugins/postandcomments.template
Log:
Add 3 new plugins support
1. Authimage
2. Gravatar
3. Smiley
and also add a readme.txt file to explain what this template for.
Added: plog/trunk/templates/standard-with-plugins/authimage.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/authimage.template 2005-02-15 17:45:31 UTC (rev 1092)
+++ plog/trunk/templates/standard-with-plugins/authimage.template 2005-02-15 17:52:58 UTC (rev 1093)
@@ -0,0 +1 @@
+{$authimage->showImage()}
\ No newline at end of file
Modified: plog/trunk/templates/standard-with-plugins/commentform.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/commentform.template 2005-02-15 17:45:31 UTC (rev 1092)
+++ plog/trunk/templates/standard-with-plugins/commentform.template 2005-02-15 17:52:58 UTC (rev 1093)
@@ -1,13 +1,30 @@
<div id="CommentForm">
- <form id="NewComment" action="{$url->getBaseUrl()}/index.php" method="post">
+ <form id="NewComment" name="NewComment" action="{$url->getBaseUrl()}/index.php" method="post">
<fieldset>
<legend>{$locale->tr("add_comment")}</legend>
<div><label for="commentTopic">{$locale->pr("comment_topic")}</label><input type="text" name="commentTopic" id="commentTopic" value="" /></div>
- <div><label for="commentText">{$locale->pr("comment_text")}</label><textarea rows="10" cols="30" name="commentText" id="commentText"></textarea></div>
+
+ <div>
+ <label for="commentText">{$locale->pr("comment_text")}</label><textarea rows="10" cols="30" name="commentText" id="commentText"></textarea>
+ {if !empty($smileys)}
+ {if $smileys->isEnabled()}
+ <script type="text/javascript" src="plugins/smileys/js/smileys/smileys.js"></script>
+ <br/><label for="simleysBar"></label>{$smileys->generateSmileysBar()}
+ {/if}
+ {/if}
+ </div>
+
<div><label for="userName">{$locale->pr("comment_username")}</label><input type="text" name="userName" id="userName" value="" /></div>
<div><label for="userEmail">Email</label><input type="text" name="userEmail" id="userEmail" value="" /></div>
<div><label for="userUrl">Web</label><input type="text" name="userUrl" id="userUrl" value="" /></div>
+
+ {if !empty($authimage)}
+ {if $authimage->isEnabled()}
+ <div><label for="authImage">{$locale->tr("authimage_code")}</label><input type="text" name="authImage" id="authImage" value="" /> {$authimage->show()}</div>
+ {/if}
+ {/if}
+
<div id="Submit"><input id="Add" type="submit" value="{$locale->pr("comment_send")}" name="Add" />
<input type="hidden" name="op" value="AddComment" />
<input type="hidden" name="articleId" value="{$post->getId()}" />
Modified: plog/trunk/templates/standard-with-plugins/postandcomments.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/postandcomments.template 2005-02-15 17:45:31 UTC (rev 1092)
+++ plog/trunk/templates/standard-with-plugins/postandcomments.template 2005-02-15 17:52:58 UTC (rev 1093)
@@ -28,6 +28,11 @@
</p>
<div class="commenttext">
+{if !empty($gravatar)}
+ {if $gravatar->isEnabled()}
+ <img src="{$gravatar->gravatar($comment)}" width="{$gravatar->getSize()}" style="margin: 5px 5px 5px 5px;" height="{$gravatar->getSize()}" align="left" />
+ {/if}
+{/if}
{$comment->getText()}
</div>
{/foreach}
Added: plog/trunk/templates/standard-with-plugins/readme.txt
===================================================================
--- plog/trunk/templates/standard-with-plugins/readme.txt 2005-02-15 17:45:31 UTC (rev 1092)
+++ plog/trunk/templates/standard-with-plugins/readme.txt 2005-02-15 17:52:58 UTC (rev 1093)
@@ -0,0 +1,27 @@
+Template: Standard with Plugin
+Author: Mark Wu
+Release Date: 2005/02/16
+Version: 1.0
+
+This Template offers you preconfigure plugin sections.
+It will easier for user to understand how plugins work with templates.
+
+Current preconfigure plugins includes:
+1. Recent Comments
+2. Recent Trackbacks
+3. Top Comment Posts
+4. Top Comment Visitors
+5. Top Read posts
+6. Top Trackback Posts
+7. Gravatar
+8. AuthImage
+9. Smileys
+
+Notice:
+All plugin sections rounded with two {if} statements
+
+{if !empty($plugin)} // To check the plugin is installed or not
+ {if $plugin->isEnabled()} // To check the plugin is enabled or not
+ Plugin Template Here!!
+ {/if}
+{if}
\ No newline at end of file
More information about the pLog-svn
mailing list