Plugin: Placard 个人公告
Author: scud 飞云小侠
Release Date: 2006/04/19
Version: 1.0
WebSite: http://www.javascud.org
This plugin allows you to publish any placard.
可以用来做个人公告,或者做自定义CSS,只要修改文字说明已经显示的位置,就可以改为不同的用途.
Usage as follow:
You can use:
1. $placard->isEnabled() to check the plugin is enabled or not.
2. $placard->getPlacardText() to fetch and show the placard.
3. $placard->getPlacardTitle() to fetch and show the placard.
Example:
Add the following code to any template file where you want it to show:
{if $placard->isEnabled()}
{if $placard->getPlacardTitle() != ""}
<div class="Sidetitle">
<h4>{$placard->getPlacardTitle()}</h4>
</div>
{/if}
<p>
{$placard->getPlacardText()}
</p>
{/if}
Extend:
this is a very simple plugin,can add your fields for configurate,for your special use.
for example,for your custom css,for ....
扩展非常容易,参考脚本可以自己增加一些字段,非常简单了.
ScreenShot:

Admin Screen:

Download:
placard.zip