From 4e4ce5d362db3e88d41d371645bf998cdead1fbf Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 4 Jul 2009 08:46:20 -0400 Subject: html various minor: use suffix provided in constants; module SiSU_HTML_Tune; html promo html promo, possibility of use of adsense, or other --- lib/sisu/v0/html_promo.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/sisu/v0/html_promo.rb') diff --git a/lib/sisu/v0/html_promo.rb b/lib/sisu/v0/html_promo.rb index eefc2e72..d4c1f4c0 100644 --- a/lib/sisu/v0/html_promo.rb +++ b/lib/sisu/v0/html_promo.rb @@ -244,6 +244,21 @@ module SiSU_HTML_promo end %{

Price:#{gbp}#{euro}#{usd}

} end + def adsense #draw content from a configuration file + def column_right + if defined? @ad[:promo]['ad']['adsense']['column_right'] + @ad[:promo]['ad']['adsense']['column_right'].join("\n") + else '' + end + end + def line_single + if defined? @ad[:promo]['ad']['adsense']['line_single'] + @ad[:promo]['ad']['adsense']['line_single'].join("\n") + else '' + end + end + self + end def site_link #Work area if url_link.url < 0 + adverts << @ad[:promo][category][type][id].join("\n") + end end end end -- cgit v1.2.3