Module: ODDB::View::Facebook

Included in:
Drugs::CenteredSearchComposite, Drugs::DDDPriceComposite, Drugs::PackageComposite
Defined in:
src/view/facebook.rb

Instance Method Summary (collapse)

Instance Method Details

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



4
5
6
# File 'src/view/facebook.rb', line 4

def (model, session=@session)
  "<script type=\"text/javascript\" src=\"http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US\"></script>\n<script type=\"text/javascript\">FB.init(\"3252fd8899d16ddc5b75a43ecfcf3e8b\");</script>\n<fb:fan profile_id=\"273461529221\" stream=\"0\" connections=\"0\" logobar=\"0\" width=\"300\"></fb:fan>\n<div style=\"font-size:8px; padding-left:10px\">\n<a href=\"http://www.facebook.com/pages/Generika/273461529221\">Generika</a> on Facebook</div>\n"
end

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



14
15
16
# File 'src/view/facebook.rb', line 14

def (model, session=@session)
  "<a name=\"fb_share\" type=\"button_count\" href=\"http://www.facebook.com/sharer.php\">Share</a>\n<script src=\"http://static.ak.fbcdn.net/connect.php/js/FB.Share\" type=\"text/javascript\"></script>\n"
end