OSDN Git Service

implement <mt:LoveLetter>
[mt-acme/Lovers.git] / config.yaml
1 # Copyright (c) 2008 Movable Type ACME Plugin Project, All rights reserved.
2
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
9
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 # THE SOFTWARE.
20
21 # plugin name
22 name: Lovers
23 version: 0.0.1
24
25 # about this plugin
26 description: <__trans phrase="Provide Movable Type functions for lovers.">
27 author_name: <__trans phrase="Movable Type ACME Plugin Project">
28 author_link: http://mt-acme.sourceforge.jp/
29 plugin_link: http://mt-acme.sourceforge.jp/lovers/
30 doc_link: http://mt-acme.sourceforge.jp/lovers/
31
32 #Localization
33 l10n_class: Lovers::L10N
34
35 schema_version: 2
36 object_types:
37     love_letter: Lovers::LoveLetter
38
39 #tag
40 tags:
41     help_url: http://mt-acme.sourceforge.jp/lovers/tags#%t
42     function:
43         LoveLetterResponse: Lovers::App::_hdlr_love_letter_response
44         LoveLetterOK: Lovers::App::_hdlr_love_letter_ok
45         LoveLetterCancel: Lovers::App::_hdlr_love_letter_cancel
46
47     block:
48         LoversPopularWith: Lovers::App::_hdlr_popular_with
49         Mote:  Lovers::App::_hdlr_popular_with
50         LoveLetter: Lovers::App::_hdlr_love_letter
51         IfLoveLetterOK: Lovers::App::_hdlr_if_love_letter_ok
52         IfLoveLetterCancel: Lovers::App::_hdlr_if_love_letter_cancel
53
54 applications:
55     cms:
56         methods:
57             love_letter:
58                 code: Lovers::App::app_love_letter
59                 requires_login: 0
60
61 callbacks:
62     MT::App::CMS::template_source.rebuilding: Lovers::App::source_rebuilding
63     *::post_build: Lovers::App::post_build