Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Dynamically load the Disqus embed in Joomla current language #3

Open
wants to merge 1 commit into from

1 participant

This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  plugins/content/artofcomments/artofcomments.php
View
2  plugins/content/artofcomments/artofcomments.php
@@ -54,6 +54,8 @@ public function onContentAfterDisplay($context, $article, $params, $limitstart =
. '<script type="text/javascript">'
. sprintf("var disqus_shortname = '%s';", JFilterOutput::cleanText($providerId))
. sprintf("var disqus_developer = %d;", $this->params->get('developer', 0))
+ . sprintf("var disqus_config = function () { this.language = '%s'; };",
+ str_replace("-","_",JFactory::getLanguage()->getTag()))
. sprintf("var disqus_identifier = '/joomla/%s/%d';", JFilterOutput::cleanText($context), $article->id)
// . sprintf("var disqus_title = '%s';", $article->title)
. '(function() {'
Something went wrong with that request. Please try again.