Changeset 386

Show
Ignore:
Timestamp:
08/22/07 17:33:34 (15 months ago)
Author:
ogawa
Message:

move template tag definitions to the registry.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • TagSupplementals/trunk/TagSupplementals.pl

    r385 r386  
    2323 
    2424BEGIN { 
    25     our $VERSION = '0.05'; 
     25    our $VERSION = '0.06'; 
    2626 
    2727    eval { require MT::XSearch; $HAVE_MT_XSEARCH = 1 }; 
     
    3737    my $plugin = __PACKAGE__->new({ 
    3838        name => 'TagSupplementals Plugin', 
    39         description => 'A plugin for providing supplemental features for MT 3.3 tags.', 
     39        description => 'A plugin for providing supplemental "tag" features for MT 3.3+', 
    4040        doc_link => 'http://code.as-is.net/wiki/TagSupplementals_Plugin', 
    4141        author_name => 'Hirotaka Ogawa', 
    4242        author_link => 'http://profile.typekey.com/ogawa/', 
    4343        version => $VERSION, 
    44         tags => { 
    45             block => { 
    46                 RelatedEntries => \&related_entries, 
    47                 RelatedTags => \&related_tags, 
    48                 ArchiveTags => \&archive_tags, 
    49                 SearchTags => \&search_tags, 
    50                 $HAVE_MT_XSEARCH ? (XSearchTags => \&xsearch_tags) : (), 
    51             }, 
    52             function => { 
    53                 EntryTagsCount => \&entry_tags_count, 
    54                 TagLastUpdated => \&tag_last_updated, 
    55                 $HAVE_MT_XSEARCH ? (TagXSearchLink => \&tag_xsearch_link) : (), 
    56             }, 
    57             modifier => { 
    58                 encode_urlplus => \&encode_urlplus, 
     44        registry => { 
     45            tags => { 
     46                block => { 
     47                    RelatedEntries => \&related_entries, 
     48                    RelatedTags => \&related_tags, 
     49                    ArchiveTags => \&archive_tags, 
     50                    SearchTags => \&search_tags, 
     51                    $HAVE_MT_XSEARCH ? (XSearchTags => \&xsearch_tags) : (), 
     52                }, 
     53                function => { 
     54                    EntryTagsCount => \&entry_tags_count, 
     55                    TagLastUpdated => \&tag_last_updated, 
     56                    $HAVE_MT_XSEARCH ? (TagXSearchLink => \&tag_xsearch_link) : (), 
     57                }, 
     58                modifier => { 
     59                    encode_urlplus => \&encode_urlplus, 
     60                }, 
    5961            }, 
    6062        },