            </div>
        </div>
    </div>
</div>

<footer>
    <div class="container-fluid">
        <div class="row">
            <form action="{{ formAction }}" method="post" class="pull-right">
                {{ languageSelector|raw }}
            </form>
        </div>
        <div class="row">
            <p class="copyright pull-right">
                Proudly powered by <strong>phpMyFAQ {{ pmfVersion }}</strong> |
                <a href="http://www.phpmyfaq.de/documentation.php" target="_blank">phpMyFAQ documentation</a> |
                Follow us on <a href="http://twitter.com/phpMyFAQ">Twitter</a> |
                &copy; 2001-2013 <a href="http://www.phpmyfaq.de/" target="_blank">phpMyFAQ Team</a>
            </p>
        </div>
    </div>
    {% if constant('DEBUG') %}
    <div class="container">DEBUG INFORMATION:<br>{{ debugInformation|raw }}</div>
    {% endif %}
</footer>

{% if isAuthenticated %}
<iframe id="keepPMFSessionAlive" src="{{ sessionKeepaliveUrl }}" style="border: none;" width="0" height="0"></iframe>
{% if wysiwygActive %}
<!-- tinyMCE -->
{% autoescape 'js' %}
<script>
    /*<![CDATA[*/ //<!--
    $().tooltip({placement: 'bottom'})
    tinyMCE.init({
        // General options
        mode     : "exact",
        language : "{{ tinyMceLanguage }}",
        elements : "{{ tinyMceElements }}",
        width    : "500",
        height   : "480",
        theme    : "advanced",
        plugins  : "spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,syntaxhl,phpmyfaq",
        theme_advanced_blockformats : "p,div,h1,h2,h3,h4,h5,h6,blockquote,dt,dd,code,samp",

        // Theme options
        theme_advanced_buttons1 : "{{ tinyMceSave }}bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontsizeselect",
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,phpmyfaq,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,syntaxhl,|,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl,|,fullscreen",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
        relative_urls           : false,
        convert_urls            : false,
        remove_linebreaks       : false,
        use_native_selects      : true,
        entity_encoding         : "raw",
        extended_valid_elements : "code",

        // Save function
        save_onsavecallback : "phpMyFAQSave",

        // Example content CSS (should be your site CSS)
        content_css : "{{ tinyMceContentCss }}",

        // Drop lists for link/image/media/template dialogs
        template_external_list_url : "js/template_list.js",

        // Replace values for the template plugin
        template_replace_values : {
            username : "{{ userDisplayName }}",
            user_id  : "{{ userId }}"
        }
    });

    /**
     *
     */
    function phpMyFAQSave()
    {
        $('#saving_data_indicator').html('<img src="images/indicator.gif" /> Saving ...');
        // Create an input field with the save button name
        var input = document.createElement("input");
        input.setAttribute('name', $('input:submit')[0].name);
        input.setAttribute('id', 'temporarySaveButton');
        $('#answer')[0].parentNode.appendChild(input);
        // Submit the form by an ajax request
        var data = {action: "ajax", ajax: '{{ tinyMceSaveCallbackAction }}'};
        var id = $('#answer')[0].parentNode.parentNode.id;
        $.each($('#' + id).serializeArray(), function(i, field) {
            data[field.name] = field.value;
        });
        $.post("index.php", data, null);
        $('#saving_data_indicator').html('{{ PMF_LANG['ad_entry_savedsuc'] }}');
        $('#temporarySaveButton').remove();
    }

    // --> /*]]>*/
</script>
{% endautoescape %}
<!-- /tinyMCE -->

<!-- SyntaxHighlighter -->
<script src="../assets/js/syntaxhighlighter/scripts/shCore.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushBash.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushCpp.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushCSharp.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushCss.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushDelphi.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushDiff.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushGroovy.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushJava.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushJScript.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushPhp.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushPerl.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushPlain.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushPython.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushRuby.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushScala.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushSql.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushVb.js"></script>
<script src="../assets/js/syntaxhighlighter/scripts/shBrushXml.js"></script>
<link type="text/css" rel="stylesheet" href="../assets/js/syntaxhighlighter/styles/shCore.css"/>
<link type="text/css" rel="stylesheet" href="../assets/js/syntaxhighlighter/styles/shThemeDefault.css"/>
<script type="text/javascript">
    SyntaxHighlighter.config.clipboardSwf = '../js/syntaxhighlighter/scripts/clipboard.swf';
    SyntaxHighlighter.all();
</script>
<!-- /SyntaxHighlighter -->
{% endif %}
{% endif %}
</body>
</html>