root/trunk/ActionStreams/plugins/ActionStreams/config.yaml @ 1564

Revision 1564, 10.4 kB (checked in by mpaschal, 5 months ago)

Switch the Google Reader stream to a yaml recipe instead of a class based definition

Line 
1name: Action Streams
2id: ActionStreams
3key: ActionStreams
4author_link: http://www.sixapart.com/
5author_name: Six Apart Ltd.
6description: <MT_TRANS phrase="Manages authors' accounts and actions on sites elsewhere around the web">
7schema_version: 16
8version: 2.2
9plugin_link: http://www.sixapart.com/
10settings:
11    rebuild_for_action_stream_events:
12        Default: 0
13        Scope: blog
14l10n_class: ActionStreams::L10N
15blog_config_template: blog_config_template.tmpl
16
17init_app: $ActionStreams::ActionStreams::Init::init_app
18applications:
19    cms:
20        methods:
21            list_profileevent:       $ActionStreams::ActionStreams::Plugin::list_profileevent
22            other_profiles:          $ActionStreams::ActionStreams::Plugin::other_profiles
23            dialog_add_profile:      $ActionStreams::ActionStreams::Plugin::dialog_add_edit_profile
24            dialog_edit_profile:     $ActionStreams::ActionStreams::Plugin::dialog_add_edit_profile
25            add_other_profile:       $ActionStreams::ActionStreams::Plugin::add_other_profile
26            edit_other_profile:      $ActionStreams::ActionStreams::Plugin::edit_other_profile
27            remove_other_profile:    $ActionStreams::ActionStreams::Plugin::remove_other_profile
28            itemset_update_profiles: $ActionStreams::ActionStreams::Plugin::itemset_update_profiles
29            itemset_hide_events:     $ActionStreams::ActionStreams::Plugin::itemset_hide_events
30            itemset_show_events:     $ActionStreams::ActionStreams::Plugin::itemset_show_events
31            itemset_hide_all_events: $ActionStreams::ActionStreams::Plugin::itemset_hide_all_events
32            itemset_show_all_events: $ActionStreams::ActionStreams::Plugin::itemset_show_all_events
33    community:
34        methods:
35            profile_add_external_profile:    $ActionStreams::ActionStreams::Plugin::profile_add_external_profile
36            profile_delete_external_profile: $ActionStreams::ActionStreams::Plugin::profile_delete_external_profile
37        callbacks:
38            post_add_profile: $ActionStreams::ActionStreams::Plugin::profile_first_update_events
39callbacks:
40    MT::App::CMS::template_param.edit_author: $ActionStreams::ActionStreams::Plugin::users_content_nav
41    MT::App::CMS::template_param.list_member: $ActionStreams::ActionStreams::Plugin::param_list_member
42    MT::App::CMS::template_param.other_profiles: $ActionStreams::ActionStreams::Plugin::users_content_nav
43    MT::App::CMS::template_param.list_profileevent: $ActionStreams::ActionStreams::Plugin::users_content_nav
44    MT::App::CMS::post_add_profile: $ActionStreams::ActionStreams::Plugin::first_profile_update
45    post_action_streams_task: $ActionStreams::ActionStreams::Plugin::rebuild_action_stream_blogs
46    pre_build_action_streams_event.flickr_favorites:        $ActionStreams::ActionStreams::Fix::flickr_photo_thumbnail
47    pre_build_action_streams_event.flickr_photos:           $ActionStreams::ActionStreams::Fix::flickr_photo_thumbnail
48    pre_build_action_streams_event.gametap_scores:          $ActionStreams::ActionStreams::Fix::gametap_score_stuff
49    pre_build_action_streams_event.googlereader_links:      $ActionStreams::ActionStreams::Fix::googlereader_link_links
50    pre_build_action_streams_event.identica_statuses:       $ActionStreams::ActionStreams::Fix::twitter_tweet_name
51    pre_build_action_streams_event.iminta_links:            $ActionStreams::ActionStreams::Fix::iminta_link_title
52    pre_build_action_streams_event.instructables_favorites: $ActionStreams::ActionStreams::Fix::instructables_favorites_thumbnails
53    pre_build_action_streams_event.iusethis_events:         $ActionStreams::ActionStreams::Fix::iusethis_event_title
54    pre_build_action_streams_event.kongregate_achievements: $ActionStreams::ActionStreams::Fix::kongregate_achievement_title_thumb
55    pre_build_action_streams_event.magnolia_links:          $ActionStreams::ActionStreams::Fix::magnolia_link_notes
56    pre_build_action_streams_event.metafilter_favorites:    $ActionStreams::ActionStreams::Fix::metafilter_favorites_titles
57    pre_build_action_streams_event.netflix_queue:           $ActionStreams::ActionStreams::Fix::netflix_queue_prefix_thumb
58    pre_build_action_streams_event.netflix_recent:          $ActionStreams::ActionStreams::Fix::netflix_recent_prefix_thumb
59    pre_build_action_streams_event.p0pulist_stuff:          $ActionStreams::ActionStreams::Fix::p0pulist_stuff_urls
60    pre_build_action_streams_event.twitter_favorites:       $ActionStreams::ActionStreams::Fix::twitter_favorite_author
61    pre_build_action_streams_event.twitter_statuses:        $ActionStreams::ActionStreams::Fix::twitter_tweet_name
62    pre_build_action_streams_event.typepad_comments:        $ActionStreams::ActionStreams::Fix::typepad_comment_titles
63    pre_build_action_streams_event.wists_wists:             $ActionStreams::ActionStreams::Fix::wists_thumb
64    filter_action_streams_event.nytimes_links:              $ActionStreams::ActionStreams::Fix::nytimes_links_titles
65object_types:
66    profileevent: ActionStreams::Event
67    as: ActionStreams::Event
68    as_ua_cache:  ActionStreams::UserAgent::Cache
69list_actions:
70    profileevent:
71        hide_all:
72            label: Hide All
73            order: 100
74            js:    finishPluginActionAll
75            code:  $ActionStreams::ActionStreams::Plugin::itemset_hide_all_events
76            continue_prompt_handler: >
77                sub { MT->translate('Are you sure you want to hide EVERY event in EVERY action stream?') }
78        show_all:
79            label: Show All
80            order: 200
81            js:    finishPluginActionAll
82            code:  $ActionStreams::ActionStreams::Plugin::itemset_show_all_events
83            continue_prompt_handler: >
84                sub { MT->translate('Are you sure you want to show EVERY event in EVERY action stream?') }
85        delete:
86            label: Delete
87            order: 300
88            code:  $core::MT::App::CMS::delete
89            continue_prompt_handler: >
90                sub { MT->translate('Deleted events that are still available from the remote service will be added back in the next scan. Only events that are no longer available from your profile will remain deleted. Are you sure you want to delete the selected event(s)?') }
91tags:
92    function:
93        StreamAction:             $ActionStreams::ActionStreams::Tags::stream_action
94        StreamActionID:           $ActionStreams::ActionStreams::Tags::stream_action_id
95        StreamActionVar:          $ActionStreams::ActionStreams::Tags::stream_action_var
96        StreamActionDate:         $ActionStreams::ActionStreams::Tags::stream_action_date
97        StreamActionModifiedDate: $ActionStreams::ActionStreams::Tags::stream_action_modified_date
98        StreamActionTitle:        $ActionStreams::ActionStreams::Tags::stream_action_title
99        StreamActionURL:          $ActionStreams::ActionStreams::Tags::stream_action_url
100        StreamActionThumbnailURL: $ActionStreams::ActionStreams::Tags::stream_action_thumbnail_url
101        StreamActionVia:          $ActionStreams::ActionStreams::Tags::stream_action_via
102        OtherProfileVar:          $ActionStreams::ActionStreams::Tags::other_profile_var
103    block:
104        ActionStreams:      $ActionStreams::ActionStreams::Tags::action_streams
105        StreamActionTags:   $ActionStreams::ActionStreams::Tags::stream_action_tags
106        OtherProfiles:      $ActionStreams::ActionStreams::Tags::other_profiles
107        ProfileServices:    $ActionStreams::ActionStreams::Tags::profile_services
108        StreamActionRollup: $ActionStreams::ActionStreams::Tags::stream_action_rollup
109tasks:
110    UpdateEvents:
111        frequency: 1800
112        label: Poll for new events
113        code: $ActionStreams::ActionStreams::Plugin::update_events
114task_workers:
115    UpdateEvents:
116        label: Update Events
117        class: ActionStreams::Worker
118widgets:
119    asotd:
120        label: Recent Actions
121        template: widget_recent.mtml
122        permission: post
123        singular: 1
124        set: sidebar
125        handler: $ActionStreams::ActionStreams::Plugin::widget_recent
126        condition: $ActionStreams::ActionStreams::Plugin::widget_blog_dashboard_only
127template_sets:
128    streams:
129        label: Action Stream
130        base_path: 'blog_tmpl'
131        base_css: themes-base/blog.css
132        order: 100
133        templates:
134            index:
135                main_index:
136                    label: Main Index (Recent Actions)
137                    outfile: index.html
138                    rebuild_me: 1
139                archive:
140                    label: Action Archive
141                    outfile: archive.html
142                    rebuild_me: 1
143                styles:
144                    label: Stylesheet
145                    outfile: styles.css
146                    rebuild_me: 1
147                feed_recent:
148                    label: Feed - Recent Activity
149                    outfile: atom.xml
150                    rebuild_me: 1
151            module:
152                html_head:
153                    label: HTML Head
154                banner_header:
155                    label: Banner Header
156                banner_footer:
157                    label: Banner Footer
158                sidebar:
159                    label: Sidebar
160            widget:
161                elsewhere:
162                    label: Find Authors Elsewhere
163                actions:
164                    label: Recent Actions
165            widgetset:
166                2column_layout_sidebar:
167                    label: 2-column layout - Sidebar
168                    widgets:
169                        - Find Authors Elsewhere
170upgrade_functions:
171    enable_existing_streams:
172        version_limit: 9
173        updater:
174            type: author
175            label: Enabling default action streams for selected profiles...
176            code: $ActionStreams::ActionStreams::Upgrade::enable_existing_streams
177    reclass_actions:
178        version_limit: 15
179        handler: $ActionStreams::ActionStreams::Upgrade::reclass_actions
180        priority: 8
181    rename_action_metadata:
182        version_limit: 15
183        handler: $ActionStreams::ActionStreams::Upgrade::rename_action_metadata
184        priority: 9
185upgrade_data:
186    reclass_actions:
187        twitter_tweets:      twitter_statuses
188        pownce_notes:        pownce_statuses
189        googlereader_shared: googlereader_links
190    rename_action_metadata:
191        - action_type: delicious_links
192          old:         annotation
193          new:         note
194        - action_type: googlereader_links
195          old:         annotation
196          new:         note
197profile_services: services.yaml
198action_streams:   streams.yaml
Note: See TracBrowser for help on using the browser.