Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.5 kb
class AdBannersExtension < Radiant::Extension
version "0.9" # Compatible with Radiant 0.9
description "Manage ad banners"
url "http://github.com/davec/radiant-ad_banners-extension"
def activate
Radiant::AdminUI.send :include, AdBannersAdminUI unless defined? admin.ad_banner
admin.ad_banner = Radiant::AdminUI.load_default_ad_banner_regions
tab "Content" do
add_item "Ads", "/admin/ad_banners", :after => "Pages"
end
Page.send :include, AdBannerTags
end
end
Jump to Line
Something went wrong with that request. Please try again.