require_plugin 'tog_core'
require_plugin 'seo_urls'
require_plugin 'flashplayrhelpr'
require_plugin 'paperclip'
require "i18n" unless defined?(I18n)
Dir[File.dirname(__FILE__) + '/locale/**/*.yml'].each do |file|
I18n.load_path << file
end
Tog::Plugins.settings :tog_podcasts, "channel.cover.max_file_size_kb"=> 1000, #kb
"channel.cover.big" => "150x150#",
"channel.cover.medium" => "100x100#",
"channel.cover.small" => "50x50#",
"channel.cover.tiny" => "25x25#",
"channel.cover.default_image" => '/tog_podcasts/images/default_cover.jpg',
"episodes.max_file_size_kb" => 30000, #kb
"allowed_mime_types" => %w( audio/mpeg audio/mpg audio/mp3 audio/mp4 audio/mpeg3 audio/x-mp3 audio/x-mpeg3 ).join(', ')
Tog::Plugins.helpers Podcasts::ChannelsHelper
Tog::Interface.sections(:site).add "Podcasts", "/podcasts/channels"
Tog::Interface.sections(:member).add "Podcasts", "/member/podcasts/channels"
Tog::Search.sources << "Channel"
Tog::Search.sources << "Episode"