<?php

/* ucp_pm_history.html */
class __TwigTemplate_20067221aa40b3e5401f153c2db744df2546bce25875b57b5b18e63adff87274 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "
<h3 id=\"review\">
\t<span class=\"right-box\"><a href=\"#review\" onclick=\"viewableArea(getElementById('topicreview'), true); var rev_text = getElementById('review').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '";
        // line 3
        echo addslashes($this->env->getExtension('phpbb')->lang("EXPAND_VIEW"));
        echo "'){rev_text.data = '";
        echo addslashes($this->env->getExtension('phpbb')->lang("COLLAPSE_VIEW"));
        echo "'; } else if (rev_text.data == '";
        echo addslashes($this->env->getExtension('phpbb')->lang("COLLAPSE_VIEW"));
        echo "'){rev_text.data = '";
        echo addslashes($this->env->getExtension('phpbb')->lang("EXPAND_VIEW"));
        echo "'};\">";
        echo $this->env->getExtension('phpbb')->lang("EXPAND_VIEW");
        echo "</a></span>
\t";
        // line 4
        echo $this->env->getExtension('phpbb')->lang("MESSAGE_HISTORY");
        echo $this->env->getExtension('phpbb')->lang("COLON");
        echo "
</h3>

<div id=\"topicreview\">
\t<script type=\"text/javascript\">
\t// <![CDATA[
\t\tbbcodeEnabled = ";
        // line 10
        echo (isset($context["S_BBCODE_ALLOWED"]) ? $context["S_BBCODE_ALLOWED"] : null);
        echo ";
\t// ]]>
\t</script>
\t";
        // line 13
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["loops"]) ? $context["loops"] : null), "history_row", array()));
        foreach ($context['_seq'] as $context["_key"] => $context["history_row"]) {
            // line 14
            echo "\t<div class=\"post ";
            if (($this->getAttribute($context["history_row"], "S_ROW_COUNT", array()) % 2 == 0)) {
                echo "bg1";
            } else {
                echo "bg2";
            }
            echo "\">
\t\t<div class=\"inner\">

\t\t<div class=\"postbody\" id=\"pr";
            // line 17
            echo $this->getAttribute($context["history_row"], "MSG_ID", array());
            echo "\">
\t\t\t<h3><a href=\"";
            // line 18
            echo $this->getAttribute($context["history_row"], "U_VIEW_MESSAGE", array());
            echo "\" ";
            if ($this->getAttribute($context["history_row"], "S_CURRENT_MSG", array())) {
                echo "class=\"current\"";
            }
            echo ">";
            echo $this->getAttribute($context["history_row"], "SUBJECT", array());
            echo "</a></h3>

\t\t\t";
            // line 20
            if (($this->getAttribute($context["history_row"], "U_QUOTE", array()) || $this->getAttribute($context["history_row"], "MESSAGE_AUTHOR_QUOTE", array()))) {
                // line 21
                echo "\t\t\t<ul class=\"post-buttons\">
\t\t\t\t<li>
\t\t\t\t\t<a ";
                // line 23
                if ($this->getAttribute($context["history_row"], "U_QUOTE", array())) {
                    echo "href=\"";
                    echo $this->getAttribute($context["history_row"], "U_QUOTE", array());
                    echo "\"";
                } else {
                    echo "href=\"#postingbox\" onclick=\"addquote(";
                    echo $this->getAttribute($context["history_row"], "MSG_ID", array());
                    echo ", '";
                    echo $this->getAttribute($context["history_row"], "MESSAGE_AUTHOR_QUOTE", array());
                    echo "', '";
                    echo addslashes($this->env->getExtension('phpbb')->lang("WROTE"));
                    echo "');\"";
                }
                echo " title=\"";
                echo $this->env->getExtension('phpbb')->lang("QUOTE");
                echo " ";
                echo $this->getAttribute($context["history_row"], "MESSAGE_AUTHOR", array());
                echo "\" class=\"button icon-button quote-icon\">
\t\t\t\t\t\t<span>";
                // line 24
                echo $this->env->getExtension('phpbb')->lang("QUOTE");
                echo " ";
                echo $this->getAttribute($context["history_row"], "MESSAGE_AUTHOR", array());
                echo "</span>
\t\t\t\t\t</a>
\t\t\t\t</li>
\t\t\t</ul>
\t\t\t";
            }
            // line 29
            echo "
\t\t\t<p class=\"author\">";
            // line 30
            echo $this->getAttribute($context["history_row"], "MINI_POST_IMG", array());
            echo " ";
            echo $this->env->getExtension('phpbb')->lang("SENT_AT");
            echo $this->env->getExtension('phpbb')->lang("COLON");
            echo " <strong>";
            echo $this->getAttribute($context["history_row"], "SENT_DATE", array());
            echo "</strong><br />
\t\t\t\t";
            // line 31
            echo $this->env->getExtension('phpbb')->lang("MESSAGE_BY_AUTHOR");
            echo " ";
            echo $this->getAttribute($context["history_row"], "MESSAGE_AUTHOR_FULL", array());
            echo "</p>
\t\t\t<div class=\"content\">";
            // line 32
            if ($this->getAttribute($context["history_row"], "MESSAGE", array())) {
                echo $this->getAttribute($context["history_row"], "MESSAGE", array());
            } else {
                echo "<span class=\"error\">";
                echo $this->env->getExtension('phpbb')->lang("MESSAGE_REMOVED_FROM_OUTBOX");
                echo "</span>";
            }
            echo "</div>
\t\t\t<div id=\"message_";
            // line 33
            echo $this->getAttribute($context["history_row"], "MSG_ID", array());
            echo "\" style=\"display: none;\">";
            echo $this->getAttribute($context["history_row"], "DECODED_MESSAGE", array());
            echo "</div>
\t\t</div>

\t\t</div>
\t</div>
\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['history_row'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 39
        echo "</div>

<hr />
<p><a href=\"#cp-main\" class=\"top2\">";
        // line 42
        echo $this->env->getExtension('phpbb')->lang("BACK_TO_TOP");
        echo "</a></p>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  164 => 42,  159 => 39,  145 => 33,  135 => 32,  129 => 31,  120 => 30,  117 => 29,  107 => 24,  87 => 23,  83 => 21,  81 => 20,  70 => 18,  66 => 17,  55 => 14,  51 => 13,  45 => 10,  35 => 4,  23 => 3,  19 => 1,);
    }
}
/* */
/* <h3 id="review">*/
/* 	<span class="right-box"><a href="#review" onclick="viewableArea(getElementById('topicreview'), true); var rev_text = getElementById('review').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{LA_EXPAND_VIEW}'){rev_text.data = '{LA_COLLAPSE_VIEW}'; } else if (rev_text.data == '{LA_COLLAPSE_VIEW}'){rev_text.data = '{LA_EXPAND_VIEW}'};">{L_EXPAND_VIEW}</a></span>*/
/* 	{L_MESSAGE_HISTORY}{L_COLON}*/
/* </h3>*/
/* */
/* <div id="topicreview">*/
/* 	<script type="text/javascript">*/
/* 	// <![CDATA[*/
/* 		bbcodeEnabled = {S_BBCODE_ALLOWED};*/
/* 	// ]]>*/
/* 	</script>*/
/* 	<!-- BEGIN history_row -->*/
/* 	<div class="post <!-- IF history_row.S_ROW_COUNT is even -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">*/
/* 		<div class="inner">*/
/* */
/* 		<div class="postbody" id="pr{history_row.MSG_ID}">*/
/* 			<h3><a href="{history_row.U_VIEW_MESSAGE}" <!-- IF history_row.S_CURRENT_MSG -->class="current"<!-- ENDIF -->>{history_row.SUBJECT}</a></h3>*/
/* */
/* 			<!-- IF history_row.U_QUOTE or history_row.MESSAGE_AUTHOR_QUOTE -->*/
/* 			<ul class="post-buttons">*/
/* 				<li>*/
/* 					<a <!-- IF history_row.U_QUOTE -->href="{history_row.U_QUOTE}"<!-- ELSE -->href="#postingbox" onclick="addquote({history_row.MSG_ID}, '{history_row.MESSAGE_AUTHOR_QUOTE}', '{LA_WROTE}');"<!-- ENDIF --> title="{L_QUOTE} {history_row.MESSAGE_AUTHOR}" class="button icon-button quote-icon">*/
/* 						<span>{L_QUOTE} {history_row.MESSAGE_AUTHOR}</span>*/
/* 					</a>*/
/* 				</li>*/
/* 			</ul>*/
/* 			<!-- ENDIF -->*/
/* */
/* 			<p class="author">{history_row.MINI_POST_IMG} {L_SENT_AT}{L_COLON} <strong>{history_row.SENT_DATE}</strong><br />*/
/* 				{L_MESSAGE_BY_AUTHOR} {history_row.MESSAGE_AUTHOR_FULL}</p>*/
/* 			<div class="content"><!-- IF history_row.MESSAGE -->{history_row.MESSAGE}<!-- ELSE --><span class="error">{L_MESSAGE_REMOVED_FROM_OUTBOX}</span><!-- ENDIF --></div>*/
/* 			<div id="message_{history_row.MSG_ID}" style="display: none;">{history_row.DECODED_MESSAGE}</div>*/
/* 		</div>*/
/* */
/* 		</div>*/
/* 	</div>*/
/* 	<!-- END history_row -->*/
/* </div>*/
/* */
/* <hr />*/
/* <p><a href="#cp-main" class="top2">{L_BACK_TO_TOP}</a></p>*/
/* */
