-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor bugfix in the disqus and google-analytics play tags
- Loading branch information
Showing
2 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
%{ ~~~~~~~~~~~~~~~~~~~~~ | ||
*{ ~~~~~~~~~~~~~~~~~~~~~ | ||
# Parameters | ||
- identifier : the Thread identifier to use in the current forum | ||
~~~~~~~~~~~~~~~~~~~~~ }% | ||
~~~~~~~~~~~~~~~~~~~~~ }* | ||
#{if play.configuration['plui.disqus.shortname']} | ||
<!-- Disqus forum thread - START --> | ||
<div id="disqus_thread"></div> | ||
<script type="text/javascript"> | ||
var disqus_shortname = '${play.configuration['plui.disqus.shortname']}'; | ||
// The following are highly recommended additional parameters. Remove the slashes in front to use. | ||
// var disqus_identifier = 'unique_dynamic_id_1234'; | ||
// var disqus_url = 'http://example.com/permalink-to-page.html'; | ||
#{if _identifier} | ||
var disqus_identifier = '${_identifier}'; | ||
#{/if} | ||
#{if play.mode.name() == 'DEV'} | ||
var disqus_developer = 1; | ||
#{/if} | ||
#{if _identifier}var disqus_identifier = '${_identifier}';#{/if} | ||
|
||
#{if play.mode.name() == 'DEV'}var disqus_developer = 1;#{/if} | ||
/* * * DON'T EDIT BELOW THIS LINE * * */ | ||
(function() { | ||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
})(); | ||
</script> | ||
#{/if} | ||
<!-- Disqus forum thread - START --> | ||
#{/if} | ||
#{else}<!-- no Disqus forum thread integration -->#{/else} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters