<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* posting_buttons.html */
class __TwigTemplate_471358dc32707f5e6f609a6175be345e44266fa42b2148fac4ebdf66c8063078 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        echo "<script>
\tvar form_name = 'postform';
\tvar text_name = ";
        // line 3
        if ($this->getAttribute(($context["definition"] ?? null), "SIG_EDIT", [])) {
            echo "'signature'";
        } else {
            echo "'message'";
        }
        echo ";
\tvar load_draft = false;
\tvar upload = false;

\t// Define the bbCode tags
\tvar bbcode = new Array();
\tvar bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]','[/flash]','[size=]','[/size]'";
        // line 9
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "custom_tags", []));
        foreach ($context['_seq'] as $context["_key"] => $context["custom_tags"]) {
            echo ", ";
            echo $this->getAttribute($context["custom_tags"], "BBCODE_NAME", []);
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['custom_tags'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        echo ");
\tvar imageTag = false;

\t// Helpline messages
\tvar help_line = {
\t\tb: '";
        // line 14
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_B_HELP"), "js");
        echo "',
\t\ti: '";
        // line 15
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_I_HELP"), "js");
        echo "',
\t\tu: '";
        // line 16
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_U_HELP"), "js");
        echo "',
\t\tq: '";
        // line 17
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_Q_HELP"), "js");
        echo "',
\t\tc: '";
        // line 18
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_C_HELP"), "js");
        echo "',
\t\tl: '";
        // line 19
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_L_HELP"), "js");
        echo "',
\t\to: '";
        // line 20
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_O_HELP"), "js");
        echo "',
\t\tp: '";
        // line 21
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_P_HELP"), "js");
        echo "',
\t\tw: '";
        // line 22
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_W_HELP"), "js");
        echo "',
\t\ta: '";
        // line 23
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_A_HELP"), "js");
        echo "',
\t\ts: '";
        // line 24
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_S_HELP"), "js");
        echo "',
\t\ty: '";
        // line 25
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_Y_HELP"), "js");
        echo "',
\t\td: '";
        // line 26
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_D_HELP"), "js");
        echo "'
\t\t";
        // line 27
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "custom_tags", []));
        foreach ($context['_seq'] as $context["_key"] => $context["custom_tags"]) {
            // line 28
            echo "\t\t\t,cb_";
            echo $this->getAttribute($context["custom_tags"], "BBCODE_ID", []);
            echo ": '";
            echo $this->getAttribute($context["custom_tags"], "A_BBCODE_HELPLINE", []);
            echo "'
\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['custom_tags'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 30
        echo "\t}

\tfunction change_palette()
\t{
\t\tphpbb.toggleDisplay('colour_palette');
\t\te = document.getElementById('colour_palette');

\t\tif (e.style.display == 'block')
\t\t{
\t\t\tdocument.getElementById('bbpalette').value = '";
        // line 39
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("FONT_COLOR_HIDE"), "js");
        echo "';
\t\t}
\t\telse
\t\t{
\t\t\tdocument.getElementById('bbpalette').value = '";
        // line 43
        echo twig_escape_filter($this->env, $this->env->getExtension('phpbb\template\twig\extension')->lang("FONT_COLOR"), "js");
        echo "';
\t\t}
\t}
</script>
<script src=\"";
        // line 47
        echo ($context["T_THEME_PATH"] ?? null);
        echo "/vendors/editor.js\"></script>

";
        // line 49
        if (($context["S_BBCODE_ALLOWED"] ?? null)) {
            // line 50
            echo "<div id=\"colour_palette\" style=\"display: none;\">
\t<label class=\"control-label\">";
            // line 51
            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FONT_COLOR");
            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("COLON");
            echo "</label>
\t<div id=\"color_palette_placeholder\" data-orientation=\"h\" data-height=\"12\" data-width=\"15\" data-bbcode=\"true\"></div>
</div>
<div class=\"space10\"></div>
";
            // line 55
            echo "  
";
            // line 56
            if ( !($context["S_BBCODEORDER"] ?? null)) {
                // line 57
                echo "<div id=\"imgurAnchor\" class=\"btn-toolbar posting-btns\" role=\"toolbar\">
";
                // line 58
                // line 59
                echo "\t<div class=\"btn-group\">
         <button class=\"btn btn-default\" type=\"button\" accesskey=\"b\" name=\"addbbcode0\" onclick=\"bbstyle(0);\" title=\"";
                // line 60
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_B_HELP");
                echo "\"><i class=\"fa fa-bold\"></i></button>
         <button class=\"btn btn-default\" type=\"button\" accesskey=\"i\" name=\"addbbcode2\" onclick=\"bbstyle(2);\" title=\"";
                // line 61
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_I_HELP");
                echo "\"><i class=\"fa fa-italic\"></i></button>
         <button class=\"btn btn-default\" type=\"button\" accesskey=\"u\" name=\"addbbcode4\" onclick=\"bbstyle(4);\" title=\"";
                // line 62
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_U_HELP");
                echo "\"><i class=\"fa fa-underline\"></i></button>
\t</div>
\t
\t<div class=\"btn-group hidden-xs\">
         <button class=\"btn btn-default\" type=\"button\" accesskey=\"l\" name=\"addbbcode10\" onclick=\"bbstyle(10);\" title=\"";
                // line 66
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_L_HELP");
                echo "\"><i class=\"fa fa-list\"></i></button>
         <button class=\"btn btn-default\" type=\"button\" accesskey=\"o\" name=\"addbbcode12\" onclick=\"bbstyle(12);\" title=\"";
                // line 67
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_O_HELP");
                echo "\"><i class=\"fa fa-list-ol\"></i></button>
         <button class=\"btn btn-default\" type=\"button\" accesskey=\"y\" name=\"addlistitem\" onclick=\"bbstyle(-1);\" title=\"";
                // line 68
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_LISTITEM_HELP");
                echo "\"><i class=\"fa fa-asterisk\"></i></button>
    </div>

\t<div class=\"btn-group\">
\t     <button class=\"btn btn-default\" type=\"button\" accesskey=\"c\" name=\"addbbcode8\" onclick=\"bbstyle(8);\" title=\"";
                // line 72
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_C_HELP");
                echo "\"><i class=\"fa fa-code\"></i></button>
        ";
                // line 73
                if (($context["S_BBCODE_QUOTE"] ?? null)) {
                    // line 74
                    echo "\t     <button class=\"btn btn-default\" type=\"button\" accesskey=\"q\" name=\"addbbcode6\" onclick=\"bbstyle(6);\" title=\"";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_Q_HELP");
                    echo "\"><i class=\"fa fa-comment\"></i></button>
\t    ";
                }
                // line 75
                echo " 
\t\t";
                // line 76
                if (($context["S_BBCODE_IMG"] ?? null)) {
                    // line 77
                    echo "\t     <button class=\"btn btn-default\" type=\"button\" accesskey=\"p\" name=\"addbbcode14\" onclick=\"bbstyle(14);\" title=\"";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_P_HELP");
                    echo "\"><i class=\"fa fa-picture-o\"></i></button>
\t    ";
                }
                // line 79
                echo "\t    ";
                if (($context["S_LINKS_ALLOWED"] ?? null)) {
                    // line 80
                    echo "\t     <button class=\"btn btn-default\" type=\"button\" accesskey=\"w\" name=\"addbbcode16\" onclick=\"bbstyle(16);\" title=\"";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_W_HELP");
                    echo "\"><i class=\"fa fa-link\"></i></button>
\t\t";
                }
                // line 82
                echo "\t</div>
\t
\t<div class=\"btn-group hidden-xs\">
\t\t<!--// flash no mooorrreeeeee --> 
\t\t <button class=\"btn btn-default\" type=\"button\" name=\"bbpalette\" id=\"bbpalette\" value=\"";
                // line 86
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FONT_COLOR");
                echo "\" onclick=\"change_palette();\" title=\"";
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_S_HELP");
                echo "\"><i class=\"fa fa-tint\"></i></button>
\t
\t";
                // line 88
                // line 89
                echo "\t
";
                // line 97
                echo "\t
\t";
                // line 98
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "custom_tags", []));
                foreach ($context['_seq'] as $context["_key"] => $context["custom_tags"]) {
                    // line 99
                    echo "\t";
                    if (($this->getAttribute($context["custom_tags"], "BBCODE_TAG", []) == "youtube")) {
                        // line 100
                        echo "\t <button class=\"btn btn-default\" type=\"button\" name=\"addbbcode";
                        echo $this->getAttribute($context["custom_tags"], "BBCODE_ID", []);
                        echo "\" onclick=\"bbstyle(";
                        echo $this->getAttribute($context["custom_tags"], "BBCODE_ID", []);
                        echo ");\" title=\"";
                        echo $this->getAttribute($context["custom_tags"], "BBCODE_HELPLINE", []);
                        echo "\"><i class=\"fa fa-youtube\"></i></button>
\t";
                    }
                    // line 102
                    echo "\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['custom_tags'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 103
                echo "\t
\t";
                // line 104
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "custom_tags", []));
                foreach ($context['_seq'] as $context["_key"] => $context["custom_tags"]) {
                    // line 105
                    echo "\t";
                    if (($this->getAttribute($context["custom_tags"], "BBCODE_TAG", []) == "c")) {
                        // line 106
                        echo "\t <button class=\"btn btn-default\" type=\"button\" name=\"addbbcode";
                        echo $this->getAttribute($context["custom_tags"], "BBCODE_ID", []);
                        echo "\" onclick=\"bbstyle(";
                        echo $this->getAttribute($context["custom_tags"], "BBCODE_ID", []);
                        echo ");\" title=\"";
                        echo $this->getAttribute($context["custom_tags"], "BBCODE_HELPLINE", []);
                        echo "\"><i class=\"fa fa-text-width\"></i></button>
\t";
                    }
                    // line 108
                    echo "\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['custom_tags'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 109
                echo "   </div>

\t<select class=\"selectpicker hidden-xs\" data-style=\"btn-default\" data-width=\"auto\" name=\"addbbcode20\" onchange=\"bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;\" title=\"";
                // line 111
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODE_F_HELP");
                echo "\">
\t\t<option value=\"50\">";
                // line 112
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FONT_TINY");
                echo "</option>
\t\t<option value=\"85\">";
                // line 113
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FONT_SMALL");
                echo "</option>
\t\t<option data-icon=\"fa fa-font\" value=\"100\" selected=\"selected\">";
                // line 114
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FONT_NORMAL");
                echo "</option>
\t\t";
                // line 115
                if (( !($context["MAX_FONT_SIZE"] ?? null) || (($context["MAX_FONT_SIZE"] ?? null) >= 150))) {
                    // line 116
                    echo "\t\t\t<option value=\"150\">";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FONT_LARGE");
                    echo "</option>
\t\t\t";
                    // line 117
                    if (( !($context["MAX_FONT_SIZE"] ?? null) || (($context["MAX_FONT_SIZE"] ?? null) >= 200))) {
                        // line 118
                        echo "\t\t\t\t<option value=\"200\">";
                        echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FONT_HUGE");
                        echo "</option>
\t\t\t";
                    }
                    // line 120
                    echo "\t\t";
                }
                // line 121
                echo "\t</select>
\t
\t<select class=\"selectpicker hidden-xs\" data-style=\"btn-default\" data-width=\"auto\" name=\"addbbcode_custom\" onchange=\"bbstyle(this.form.addbbcode_custom.options[this.form.addbbcode_custom.selectedIndex].value*1);this.form.addbbcode_custom.selectedIndex = 0;\">
\t  <option data-icon=\"fa fa-cog\" value=\"100\" selected=\"selected\">";
                // line 124
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("BBCODES");
                echo "</option>
      ";
                // line 125
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "custom_tags", []));
                foreach ($context['_seq'] as $context["_key"] => $context["custom_tags"]) {
                    // line 126
                    echo "      <option value=\"";
                    echo $this->getAttribute($context["custom_tags"], "BBCODE_ID", []);
                    echo "\" title=\"";
                    echo $this->getAttribute($context["custom_tags"], "BBCODE_HELPLINE", []);
                    echo "\">";
                    echo $this->getAttribute($context["custom_tags"], "BBCODE_TAG", []);
                    echo "</option>
      ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['custom_tags'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 127
                echo "   
    </select>
";
                // line 129
                // line 130
                echo "</div>
";
            }
            // line 132
        }
    }

    public function getTemplateName()
    {
        return "posting_buttons.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  389 => 132,  385 => 130,  384 => 129,  380 => 127,  367 => 126,  363 => 125,  359 => 124,  354 => 121,  351 => 120,  345 => 118,  343 => 117,  338 => 116,  336 => 115,  332 => 114,  328 => 113,  324 => 112,  320 => 111,  316 => 109,  310 => 108,  300 => 106,  297 => 105,  293 => 104,  290 => 103,  284 => 102,  274 => 100,  271 => 99,  267 => 98,  264 => 97,  261 => 89,  260 => 88,  253 => 86,  247 => 82,  241 => 80,  238 => 79,  232 => 77,  230 => 76,  227 => 75,  221 => 74,  219 => 73,  215 => 72,  208 => 68,  204 => 67,  200 => 66,  193 => 62,  189 => 61,  185 => 60,  182 => 59,  181 => 58,  178 => 57,  176 => 56,  173 => 55,  165 => 51,  162 => 50,  160 => 49,  155 => 47,  148 => 43,  141 => 39,  130 => 30,  119 => 28,  115 => 27,  111 => 26,  107 => 25,  103 => 24,  99 => 23,  95 => 22,  91 => 21,  87 => 20,  83 => 19,  79 => 18,  75 => 17,  71 => 16,  67 => 15,  63 => 14,  47 => 9,  34 => 3,  30 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "posting_buttons.html", "");
    }
}
