﻿@using CkanDotNet.Web.Models.Helpers
<div class="container">
    <h2 class="container-title">Comments</h2>
    <div class="container-content">
    <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = '@SettingsHelper.GetDisqusForumShortName()'; // required: replace example with your forum shortname
        @if (SettingsHelper.GetDisqusDeveloperModeEnabled()) 
        {
            <text>var disqus_developer = 1; // developer mode is on</text>
        }

        /* * * 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>
    <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    </div>
</div>

﻿@using CkanDotNet.Web.Models.Helpers
<div class="container">
    <h2 class="container-title">Comments</h2>
    <div class="container-content">
    <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = '@SettingsHelper.GetDisqusForumShortName()'; // required: replace example with your forum shortname
        @if (SettingsHelper.GetDisqusDeveloperModeEnabled()) 
        {
            <text>var disqus_developer = 1; // developer mode is on</text>
        }

        @if (SettingsHelper.GetIframeEnabled())
        {
        <text>
        function disqus_config() {
            this.callbacks.onNewComment = [function() { resizeFrame() }];
            this.callbacks.onReady = [function() { resizeFrame() }];
        }
        </text>
        }

        /* * * 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>
    <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    </div>
</div>

Add support for dynamic resizing of iframe when disqus forum loads
Add support for dynamic resizing of iframe when disqus forum loads
