| 1 | # Movable Type (r) Open Source (C) 2005-2008 Six Apart, Ltd. |
|---|
| 2 | # This program is distributed under the terms of the |
|---|
| 3 | # GNU General Public License, version 2. |
|---|
| 4 | # |
|---|
| 5 | # $Id$ |
|---|
| 6 | |
|---|
| 7 | package MT::Plugin::StyleCatcher; |
|---|
| 8 | |
|---|
| 9 | use strict; |
|---|
| 10 | use base 'MT::Plugin'; |
|---|
| 11 | our $VERSION = '2.0'; |
|---|
| 12 | |
|---|
| 13 | my $plugin; |
|---|
| 14 | $plugin = MT::Plugin::StyleCatcher->new({ |
|---|
| 15 | id => 'StyleCatcher', |
|---|
| 16 | name => "StyleCatcher", |
|---|
| 17 | version => $VERSION, |
|---|
| 18 | doc_link => "http://www.sixapart.com/movabletype/styles/", |
|---|
| 19 | description => q(<MT_TRANS phrase="StyleCatcher lets you easily browse through styles and then apply them to your blog in just a few clicks. To find out more about Movable Type styles, or for new sources for styles, visit the <a href='http://www.sixapart.com/movabletype/styles'>Movable Type styles</a> page.">), |
|---|
| 20 | author_name => "Six Apart, Ltd.", |
|---|
| 21 | author_link => "http://www.sixapart.com/", |
|---|
| 22 | l10n_class => 'StyleCatcher::L10N', |
|---|
| 23 | registry => { |
|---|
| 24 | stylecatcher_libraries => { |
|---|
| 25 | 'sixapart_mt4' => { |
|---|
| 26 | url => 'http://www.sixapart.com/movabletype/styles/mt4/library', |
|---|
| 27 | label => 'MT 4 Style Library', |
|---|
| 28 | description_label => "A collection of styles compatible with Movable Type 4 default templates.", |
|---|
| 29 | order => 1, |
|---|
| 30 | }, |
|---|
| 31 | # 'sixapart_mt3' => { |
|---|
| 32 | # url => 'http://www.sixapart.com/movabletype/styles/mt3/library', |
|---|
| 33 | # label => 'MT 3 Style Library', |
|---|
| 34 | # description_label => "A collection of styles compatible with Movable Type 3.3+ default templates.", |
|---|
| 35 | # order => 1000, |
|---|
| 36 | # }, |
|---|
| 37 | }, |
|---|
| 38 | applications => { |
|---|
| 39 | cms => { |
|---|
| 40 | methods => { |
|---|
| 41 | stylecatcher_theme => '$StyleCatcher::StyleCatcher::CMS::view', |
|---|
| 42 | stylecatcher_js => '$StyleCatcher::StyleCatcher::CMS::js', |
|---|
| 43 | stylecatcher_apply => '$StyleCatcher::StyleCatcher::CMS::apply', |
|---|
| 44 | }, |
|---|
| 45 | menus => { |
|---|
| 46 | 'design:theme' => { |
|---|
| 47 | label => 'Styles', |
|---|
| 48 | order => 300, |
|---|
| 49 | mode => 'stylecatcher_theme', |
|---|
| 50 | view => "blog", |
|---|
| 51 | permission => 'edit_templates', |
|---|
| 52 | }, |
|---|
| 53 | }, |
|---|
| 54 | }, |
|---|
| 55 | }, |
|---|
| 56 | }, |
|---|
| 57 | }); |
|---|
| 58 | MT->add_plugin($plugin); |
|---|
| 59 | |
|---|
| 60 | sub instance { $plugin } |
|---|
| 61 | |
|---|
| 62 | 1; |
|---|