Module: ODDB::View::SponsorDisplay

Includes:
GoogleAdSenseMethods
Included in:
CommonLogoHead, WelcomeHead
Defined in:
src/view/logohead.rb

Constant Summary

CSS_CLASS =
'composite'
GOOGLE_CHANNEL =
'6336403681'
GOOGLE_FORMAT =
'468x60_as'
GOOGLE_WIDTH =
'468'
GOOGLE_HEIGHT =
'60'

Instance Method Summary (collapse)

Methods included from GoogleAdSenseMethods

#active_sponsor?, #ad_sense

Instance Method Details



23
24
25
26
27
28
29
30
31
# File 'src/view/logohead.rb', line 23

def (model, session=@session)
  unless(@session.user.valid?)
    if((spons = @session.) && spons.valid?)
      View::.new(spons, session, self)
    elsif(@lookandfeel.enabled?(:google_adsense))
      ad_sense(model, session)
    end
  end
end