Sha256: 9a2497d488cf47faca85370c53403bccbf218bfb8ed2e4d1c198ec31bb74682d

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

module FacebookSocialPlugins
	module ViewHelper
		def fb_root
			content_tag :div, '', :class => "fb-root"
		end

		def fb_analytics app_id
			FacebookSocialPlugins::Analytics.new(app_id).render
		end		

		def fb_activity namespace, action
			content_tag :div, '', :class => "fb-activity", :'data-actions' => "#{namespace}:#{action}"
		end		

		def fb_activity_feed options = {}
			FacebookSocialPlugins::ActivityFeed.new(options).render
		end

		def fb_add_to_timeline options = {}
			FacebookSocialPlugins::AddToTimeline.new(options).render
		end

		def fb_comments options = {}
			FacebookSocialPlugins::Comments.new(options).render
		end

		def fb_facepile options = {}
			FacebookSocialPlugins::Facepile.new(options).render
		end

		def fb_like_box options = {}
			FacebookSocialPlugins::LikeBox.new(options).render
		end

		def fb_like_button options = {}
			FacebookSocialPlugins::LikeButton.new(options).render
		end

		def fb_live_stream options = {}
			FacebookSocialPlugins::LiveStream.new(options).render
		end

		def fb_login_button options = {}
			FacebookSocialPlugins::LoginButton.new(options).render
		end

		def fb_recommendations_box options = {}
			FacebookSocialPlugins::RecommendationsBox.new(options).render
		end

		def fb_registration options = {}
			FacebookSocialPlugins::Registration.new(options).render
		end

		def fb_send_button options = {}
			FacebookSocialPlugins::SendButton.new(options).render
		end

		def fb_subscribe_button options = {}
			FacebookSocialPlugins::SubscribeButton.new(options).render
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facebook-social_plugins-0.1.1 lib/facebook-social_plugins/view_helper.rb