Class: ODDB::View::Drugs::GoogleAdSenseComposite

Inherits:
GoogleAdSenseComposite show all
Defined in:
src/view/drugs/centeredsearchform.rb

Constant Summary

CONTENT =
CenteredSearchComposite
GOOGLE_CHANNEL =
'2298340258'
COMPONENTS =
{
  [0,0] =>  :rss_feeds_left,
  [1,0] =>  :content,
  [2,0] =>  :rss_feeds_right,
}
CSS_MAP =
{
  [0,0] => 'sidebar',
  [2,0] => 'sidebar',
}

Constants inherited from GoogleAdSenseComposite

COMPONENTS, CSS_CLASS, CSS_MAP, GOOGLE_CHANNEL, GOOGLE_FORMAT, GOOGLE_HEIGHT, GOOGLE_WIDTH

Instance Method Summary (collapse)

Methods inherited from GoogleAdSenseComposite

#content

Methods included from GoogleAdSenseMethods

#active_sponsor?, #ad_sense

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) rss_feeds_left(model, session = @session)



284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# File 'src/view/drugs/centeredsearchform.rb', line 284

def rss_feeds_left(model, session=@session)
  content = []
  if(@lookandfeel.enabled?(:fachinfo_rss))
    content.push FachinfoNews.new(model.fachinfo_news[0,5], @session, self)
  end
  if(@lookandfeel.enabled?(:sl_introduction_rss))
    content.push SLPriceNews.new(:sl_introduction, @session, self)
  end
  if(@lookandfeel.enabled?(:price_cut_rss))
    content.push SLPriceNews.new(:price_cut, @session, self)
  end
  if(@lookandfeel.enabled?(:price_rise_rss))
    content.push SLPriceNews.new(:price_rise, @session, self)
  end
  content
end

- (Object) rss_feeds_right(model, session = @session)



300
301
302
303
304
# File 'src/view/drugs/centeredsearchform.rb', line 300

def rss_feeds_right(model, session=@session)
  if(@lookandfeel.enabled?(:feedback_rss))
    RssFeedbacks.new(model.feedbacks, @session, self)
  end
end