function theme_disqus_noscript in Disqus 7
Prepares the noscript tag which is used when JavaScript is not available.
Parameters
$variables: An array containing a "disqus" array, containing the following items:
- "domain": The domain associated with this Disqus account.
- "title": The title of the thread.
- "developer": Whether or not testing is enabled.
- "url": The disqus_url variable (http://disqus.com/docs/help/#faq-16).
File
- ./
disqus.module, line 835 - The Disqus Drupal module.
Code
function theme_disqus_noscript($variables = array()) {
$disqus = $variables['disqus'];
// Return the comment markup.
return '<noscript><p>' . l(t('View the discussion thread.'), 'http://' . $disqus['domain'] . '.disqus.com/?url=' . urlencode($disqus['url'])) . '</p></noscript>';
}