You are here

function theme_disqus_comments in Disqus 5

Same name and namespace in other branches
  1. 6 disqus.module \theme_disqus_comments()

Renders the JavaScript to display the Disqus thread for the current page.

Parameters

$options: An array containing the following items:

  • "domain": The domain associated with this Disqus account.
  • "title": The title of the thread.
  • "message": The teaser of the thread.
  • "developer": Whether or not testing is enabled.
  • "url": The disqus_url variable (http://disqus.com/docs/help/#faq-16).
2 theme calls to theme_disqus_comments()
disqus_block in ./disqus.module
Implementation of hook_block().
disqus_nodeapi in ./disqus.module
Implementation of hook_nodeapi().

File

./disqus.module, line 331

Code

function theme_disqus_comments($options = array()) {
  disqus_footer(0, $options);
  return '<div id="disqus_thread"></div><noscript><div class="disqus-noscript"><a href="http://' . $options['domain'] . '.disqus.com/?url=' . urlencode($options['url']) . '">' . t('View the discussion thread.') . '</a></div></noscript>';
}