module Octopress::Social::GooglePlus
Constants
- DEFAULTS
- HEIGHT
Attributes
config[RW]
url[RW]
Public Instance Methods
count(type)
click to toggle source
# File lib/octopress-social/google-plus.rb, line 59 def count(type) if config["#{type}_count"] %Q{data-annotation="bubble"} else %Q{data-annotation="none"} end end
gplus_profile_link(*args)
click to toggle source
# File lib/octopress-social/google-plus.rb, line 51 def gplus_profile_link(*args) %Q{<a class="g-plus-profile-link" href="//plus.google.com/u/0/#{config['userid']}" title="#{config['profile_link_title']}" >#{config['profile_link_text']}</a>} end
gplus_script_tag(site, item)
click to toggle source
# File lib/octopress-social/google-plus.rb, line 87 def gplus_script_tag(site, item) %Q{ <script type="text/javascript"> #{Octopress::Social::GooglePlus.lang(item)} (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/platform.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> } end
height()
click to toggle source
# File lib/octopress-social/google-plus.rb, line 75 def height %Q{data-height="#{HEIGHT[config['size']]}"} end
lang(item)
click to toggle source
# File lib/octopress-social/google-plus.rb, line 79 def lang(item) if item['lang'] "window.___gcfg = {lang: '#{item['lang']}'};" else '' end end
size()
click to toggle source
# File lib/octopress-social/google-plus.rb, line 71 def size %Q{data-size="#{config['size']}"} end
width()
click to toggle source
# File lib/octopress-social/google-plus.rb, line 67 def width %Q{data-width="#{config['width']}"} end