OSDN Git Service

5d23bac4f376d4cee5deff7f3332c855fcb8d3ee
[fswiki/sandbox.git] / takezoe / plugin / book / Note.pm
1 ###############################################################################
2 #
3 # <p>¥Î¡¼¥È¤òµ­½Ò¤¹¤ë¤¿¤á¤Î¥Ö¥í¥Ã¥¯¥×¥é¥°¥¤¥ó¤Ç¤¹¡£</p>
4 # <pre>
5 # {{note
6 # ¥Î¡¼¥ÈËÜʸ
7 # }}
8 # </pre>
9 # <p>¥³¥é¥àËÜʸ¤ÏWiki·Á¼°¤Çµ­½Ò¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£</p>
10 #
11 ###############################################################################
12 package plugin::book::Note;
13 #==============================================================================
14 # ¥³¥ó¥¹¥È¥é¥¯¥¿
15 #==============================================================================
16 sub new {
17         my $class = shift;
18         my $self = {};
19         return bless $self,$class;
20 }
21
22 #==============================================================================
23 # ¥Ö¥í¥Ã¥¯¥á¥½¥Ã¥É
24 #==============================================================================
25 sub block {
26         my $self    = shift;
27         my $wiki    = shift;
28         my $content = shift;
29         
30         return '<div class="note"><div class="note-title">Note</div>'.
31                 '<div class="note-body">'.$wiki->process_wiki($content).'</div></div>';
32 }
33
34 1;