Module: Awestruct::Extensions::IntenseDebate::IntenseDebatable
- Defined in:
- lib/awestruct/extensions/intense_debate.rb
Instance Method Summary collapse
Instance Method Details
#intense_debate_comments ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/awestruct/extensions/intense_debate.rb', line 12 def intense_debate_comments() post_id = self.post_id ? self.post_id : Digest::SHA1.hexdigest( self.url ) html = %Q(<script>\n) html += %Q( var idcomments_acct='#{site.intense_debate_acct}';\n) html += %Q( var idcomments_post_id='#{post_id}';\n ) html += %Q( var idcomments_post_url='#{site.intense_debate_base_url || site.base_url}#{self.url}';\n) html += %Q(</script>\n) html += %Q(<span id="IDCommentsPostTitle" style="display:none"></span>\n) html += %Q(<script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>\n) html end |
#intense_debate_comments_link ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/awestruct/extensions/intense_debate.rb', line 24 def intense_debate_comments_link() post_id = self.post_id ? self.post_id : Digest::SHA1.hexdigest( self.url ) html = %Q(<script>\n) html += %Q( var idcomments_acct='#{site.intense_debate_acct}';\n) html += %Q( var idcomments_post_id='#{post_id}';\n ) html += %Q( var idcomments_post_url='#{self.url}';\n) html += %Q(</script>\n) html += %Q(<script type='text/javascript' src='http://www.intensedebate.com/js/genericLinkWrapperV2.js'></script>\n) html end |