mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 07:50:23 +01:00
Accidentally committed my template cache.
This commit is contained in:
parent
daed6d9221
commit
378497536a
@ -1,368 +0,0 @@
|
||||
<?php
|
||||
|
||||
/* post_reply.html */
|
||||
class __TwigTemplate_2a6e4309b9f7dc4a632ee8b3f6f3b2e4 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->blocks = array(
|
||||
'__internal_2a6e4309b9f7dc4a632ee8b3f6f3b2e4_1' => array($this, 'block___internal_2a6e4309b9f7dc4a632ee8b3f6f3b2e4_1'),
|
||||
'__internal_2a6e4309b9f7dc4a632ee8b3f6f3b2e4_2' => array($this, 'block___internal_2a6e4309b9f7dc4a632ee8b3f6f3b2e4_2'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$context = array_merge($this->env->getGlobals(), $context);
|
||||
|
||||
// line 1
|
||||
echo twig_remove_whitespace_filter((string) $this->renderBlock("__internal_2a6e4309b9f7dc4a632ee8b3f6f3b2e4_1", $context, $blocks));
|
||||
// line 96
|
||||
if ($this->getContext($context, 'index')) {
|
||||
echo truncate($this->getAttribute($this->getContext($context, 'post'), "body", array(), "any", false), $this->getAttribute($this->getContext($context, 'post'), "link", array(), "any", false));
|
||||
} else {
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "body", array(), "any", false);
|
||||
}
|
||||
echo twig_remove_whitespace_filter((string) $this->renderBlock("__internal_2a6e4309b9f7dc4a632ee8b3f6f3b2e4_2", $context, $blocks));
|
||||
}
|
||||
|
||||
// line 1
|
||||
public function block___internal_2a6e4309b9f7dc4a632ee8b3f6f3b2e4_1($context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
echo "<div class=\"post reply\" id=\"reply_";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\" itemprop=\"comment\" itemscope itemid=\"/";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false);
|
||||
echo "/";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\" itemtype=\"http://schema.org/UserComments\"
|
||||
\t";
|
||||
// line 4
|
||||
if ((!$this->getContext($context, 'index'))) {
|
||||
echo " itemref=\"/";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false);
|
||||
echo "/";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "thread", array(), "any", false);
|
||||
echo "\"";
|
||||
}
|
||||
echo ">
|
||||
|
||||
<p class=\"intro\"";
|
||||
// line 6
|
||||
if ((!$this->getContext($context, 'index'))) {
|
||||
echo " id=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\"";
|
||||
}
|
||||
echo ">
|
||||
\t<input type=\"checkbox\" class=\"delete\" name=\"delete_";
|
||||
// line 7
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\" id=\"delete_";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\" />
|
||||
\t<label for=\"delete_";
|
||||
// line 8
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\">
|
||||
\t\t";
|
||||
// line 9
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "subject", array(), "any", false)) > 0)) {
|
||||
// line 10
|
||||
echo "\t\t\t";
|
||||
// line 11
|
||||
echo "\t\t\t<span itemprop=\"name\" class=\"subject\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "subject", array(), "any", false);
|
||||
echo "</span>
|
||||
\t\t";
|
||||
}
|
||||
// line 13
|
||||
echo "\t\t";
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "email", array(), "any", false)) > 0)) {
|
||||
// line 14
|
||||
echo "\t\t\t";
|
||||
// line 15
|
||||
echo "\t\t\t<a class=\"email\" href=\"mailto:";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "email", array(), "any", false);
|
||||
echo "\">
|
||||
\t\t";
|
||||
}
|
||||
// line 17
|
||||
echo "\t\t<span class=\"name\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "name", array(), "any", false);
|
||||
echo "</span>
|
||||
\t\t";
|
||||
// line 18
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "trip", array(), "any", false)) > 0)) {
|
||||
// line 19
|
||||
echo "\t\t\t<span class=\"trip\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "trip", array(), "any", false);
|
||||
echo "</span>
|
||||
\t\t";
|
||||
}
|
||||
// line 21
|
||||
echo "\t\t";
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "email", array(), "any", false)) > 0)) {
|
||||
// line 22
|
||||
echo "\t\t\t";
|
||||
// line 23
|
||||
echo "\t\t\t</a>
|
||||
\t\t";
|
||||
}
|
||||
// line 25
|
||||
echo "\t\t";
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "capcode", array(), "any", false)) > 0)) {
|
||||
// line 26
|
||||
echo "\t\t\t";
|
||||
// line 27
|
||||
echo "\t\t\t";
|
||||
echo capcode($this->getAttribute($this->getContext($context, 'post'), "capcode", array(), "any", false));
|
||||
echo "
|
||||
\t\t";
|
||||
}
|
||||
// line 29
|
||||
echo "\t\t";
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "mod", array(), "any", false) && twig_hasPermission_filter($this->getAttribute($this->getContext($context, 'post'), "mod", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "mod", array(), "any", false), "show_ip", array(), "any", false), $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false)))) {
|
||||
// line 30
|
||||
echo "\t\t\t [<a style=\"margin:0;\" href=\"?/IP/";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "ip", array(), "any", false);
|
||||
echo "\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "ip", array(), "any", false);
|
||||
echo "</a>]
|
||||
\t\t";
|
||||
}
|
||||
// line 32
|
||||
echo "\t\t <time itemprop=\"commentTime\" datetime=\"";
|
||||
echo twig_date_filter($this->getAttribute($this->getContext($context, 'post'), "time", array(), "any", false), "%Y-%m-%dT%H:%M:%S%z");
|
||||
echo "\">";
|
||||
echo twig_date_filter($this->getAttribute($this->getContext($context, 'post'), "time", array(), "any", false), $this->getAttribute($this->getContext($context, 'config'), "post_date", array(), "any", false));
|
||||
echo "</time>
|
||||
\t</label>
|
||||
\t";
|
||||
// line 34
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "poster_ids", array(), "any", false)) {
|
||||
// line 35
|
||||
echo "\t\t ID: ";
|
||||
echo poster_id($this->getAttribute($this->getContext($context, 'post'), "ip", array(), "any", false), $this->getAttribute($this->getContext($context, 'post'), "thread", array(), "any", false));
|
||||
echo "
|
||||
\t";
|
||||
}
|
||||
// line 37
|
||||
echo "\t <a itemprop=\"url\" class=\"post_no\" ";
|
||||
if ((!$this->getContext($context, 'index'))) {
|
||||
echo "onclick=\"highlightReply(";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo ")\" ";
|
||||
}
|
||||
echo "href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "link", array(), "any", false);
|
||||
echo "\">No.</a>
|
||||
\t<a itemprop=\"replyToUrl\" class=\"post_no\"
|
||||
\t\t";
|
||||
// line 39
|
||||
if ((!$this->getContext($context, 'index'))) {
|
||||
// line 40
|
||||
echo "\t\t\t onclick=\"citeReply(";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo ");\"
|
||||
\t\t";
|
||||
}
|
||||
// line 42
|
||||
echo "\t\t href=\"";
|
||||
if ($this->getContext($context, 'index')) {
|
||||
// line 43
|
||||
echo "\t\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "link", array("q", ), "method", false);
|
||||
echo "
|
||||
\t\t";
|
||||
} else {
|
||||
// line 45
|
||||
echo "\t\t\tjavascript:void(0);
|
||||
\t\t";
|
||||
}
|
||||
// line 46
|
||||
echo "\">
|
||||
\t\t";
|
||||
// line 47
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "
|
||||
\t</a>
|
||||
\t</p>
|
||||
\t";
|
||||
// line 50
|
||||
if ($this->getAttribute($this->getContext($context, 'post'), "embed", array(), "any", false)) {
|
||||
// line 51
|
||||
echo "\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "embed", array(), "any", false);
|
||||
echo "
|
||||
\t";
|
||||
} elseif (($this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false) == "deleted")) {
|
||||
// line 53
|
||||
echo "\t\t<img itemprop=\"image\" src=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "image_deleted", array(), "any", false);
|
||||
echo "\" alt=\"\" />
|
||||
\t";
|
||||
} elseif (($this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false) && $this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false))) {
|
||||
// line 55
|
||||
echo "\t\t<p class=\"fileinfo\">File: <a href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "uri_img", array(), "any", false);
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false);
|
||||
echo "\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false);
|
||||
echo "</a> <span class=\"unimportant\">
|
||||
\t\t(
|
||||
\t\t\t";
|
||||
// line 57
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "thumb", array(), "any", false) == "spoiler")) {
|
||||
// line 58
|
||||
echo "\t\t\t\tSpoiler Image,
|
||||
\t\t\t";
|
||||
}
|
||||
// line 60
|
||||
echo "\t\t\t";
|
||||
echo format_bytes($this->getAttribute($this->getContext($context, 'post'), "filesize", array(), "any", false));
|
||||
echo "
|
||||
\t\t\t";
|
||||
// line 61
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "filex", array(), "any", false) && $this->getAttribute($this->getContext($context, 'post'), "filey", array(), "any", false))) {
|
||||
// line 62
|
||||
echo "\t\t\t\t, ";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "filex", array(), "any", false);
|
||||
echo "x";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "filey", array(), "any", false);
|
||||
echo "
|
||||
\t\t\t\t";
|
||||
// line 63
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "show_ratio", array(), "any", false)) {
|
||||
// line 64
|
||||
echo "\t\t\t\t\t, ";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "ratio", array(), "any", false);
|
||||
echo "
|
||||
\t\t\t\t";
|
||||
}
|
||||
// line 66
|
||||
echo "\t\t\t";
|
||||
}
|
||||
// line 67
|
||||
echo "\t\t\t";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "show_filename", array(), "any", false)) {
|
||||
// line 68
|
||||
echo "\t\t\t\t,
|
||||
\t\t\t\t";
|
||||
// line 69
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false)) > $this->getAttribute($this->getContext($context, 'config'), "max_filename_display", array(), "any", false))) {
|
||||
// line 70
|
||||
echo "\t\t\t\t\t<span title=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false);
|
||||
echo "\">";
|
||||
echo twig_truncate_filter($this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false), $this->getAttribute($this->getContext($context, 'config'), "max_filename_display", array(), "any", false));
|
||||
echo "</span>
|
||||
\t\t\t\t";
|
||||
} else {
|
||||
// line 72
|
||||
echo "\t\t\t\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false);
|
||||
echo "
|
||||
\t\t\t\t";
|
||||
}
|
||||
// line 74
|
||||
echo "\t\t\t";
|
||||
}
|
||||
// line 75
|
||||
echo "\t\t)
|
||||
\t\t</span>
|
||||
</p>
|
||||
\t<a href=\"";
|
||||
// line 78
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "uri_img", array(), "any", false);
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false);
|
||||
echo "\" target=\"_blank\"";
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "thumb", array(), "any", false) == "file")) {
|
||||
echo " class=\"file\"";
|
||||
}
|
||||
echo ">
|
||||
\t<img src=\"
|
||||
\t\t";
|
||||
// line 80
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "thumb", array(), "any", false) == "file")) {
|
||||
// line 81
|
||||
echo "\t\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "root", array(), "any", false);
|
||||
echo "
|
||||
\t\t\t";
|
||||
// line 82
|
||||
if ($this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "file_icons", array(), "any", false), twig_extension_filter($this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false)), array(), "array", false)) {
|
||||
// line 83
|
||||
echo "\t\t\t\t";
|
||||
echo sprintf($this->getAttribute($this->getContext($context, 'config'), "file_thumb", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "file_icons", array(), "any", false), twig_extension_filter($this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false)), array(), "array", false));
|
||||
echo "
|
||||
\t\t\t";
|
||||
} else {
|
||||
// line 85
|
||||
echo "\t\t\t\t";
|
||||
echo sprintf($this->getAttribute($this->getContext($context, 'config'), "file_thumb", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "file_icons", array(), "any", false), "default", array(), "any", false));
|
||||
echo "
|
||||
\t\t\t";
|
||||
}
|
||||
// line 87
|
||||
echo "\t\t";
|
||||
} elseif (($this->getAttribute($this->getContext($context, 'post'), "thumb", array(), "any", false) == "spoiler")) {
|
||||
// line 88
|
||||
echo "\t\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "root", array(), "any", false);
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "spoiler_image", array(), "any", false);
|
||||
echo "
|
||||
\t\t";
|
||||
} else {
|
||||
// line 90
|
||||
echo "\t\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "uri_thumb", array(), "any", false);
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "thumb", array(), "any", false);
|
||||
echo "
|
||||
\t\t";
|
||||
}
|
||||
// line 91
|
||||
echo "\" style=\"width:";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "thumbx", array(), "any", false);
|
||||
echo "px;height:";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "thumby", array(), "any", false);
|
||||
echo "px\" alt=\"\" />
|
||||
\t</a>
|
||||
\t";
|
||||
}
|
||||
// line 94
|
||||
echo "\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "postControls", array(), "any", false);
|
||||
echo "
|
||||
\t<p itemprop=\"commentText\" class=\"body\">
|
||||
\t\t";
|
||||
}
|
||||
|
||||
// line 96
|
||||
public function block___internal_2a6e4309b9f7dc4a632ee8b3f6f3b2e4_2($context, array $blocks = array())
|
||||
{
|
||||
// line 97
|
||||
echo "\t</p>
|
||||
</div>
|
||||
<br/>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "post_reply.html";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@ -1,241 +0,0 @@
|
||||
<?php
|
||||
|
||||
/* post_form.html */
|
||||
class __TwigTemplate_2c7bbba93327ba78b74a61cb7bb6a56b extends Twig_Template
|
||||
{
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$context = array_merge($this->env->getGlobals(), $context);
|
||||
|
||||
// line 1
|
||||
echo "<form name=\"post\" onsubmit=\"return dopost(this);\" enctype=\"multipart/form-data\" action=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "post_url", array(), "any", false);
|
||||
echo "\" method=\"post\">
|
||||
";
|
||||
// line 2
|
||||
echo $this->getContext($context, 'hidden_inputs');
|
||||
echo "
|
||||
";
|
||||
// line 3
|
||||
if ($this->getContext($context, 'id')) {
|
||||
echo "<input type=\"hidden\" name=\"thread\" value=\"";
|
||||
echo $this->getContext($context, 'id');
|
||||
echo "\" />";
|
||||
}
|
||||
// line 4
|
||||
echo "<input type=\"hidden\" name=\"board\" value=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false);
|
||||
echo "\" />
|
||||
";
|
||||
// line 5
|
||||
if ($this->getContext($context, 'mod')) {
|
||||
echo "<input type=\"hidden\" name=\"mod\" value=\"1\" />";
|
||||
}
|
||||
// line 6
|
||||
echo "\t<table>
|
||||
\t\t";
|
||||
// line 7
|
||||
if ((!$this->getAttribute($this->getContext($context, 'config'), "field_disable_name", array(), "any", false))) {
|
||||
echo "<tr>
|
||||
\t\t\t<th>
|
||||
\t\t\t\t";
|
||||
// line 9
|
||||
echo gettext("Name"); // line 10
|
||||
echo "\t\t\t</th>
|
||||
\t\t\t<td>
|
||||
\t\t\t\t<input type=\"text\" name=\"name\" size=\"25\" maxlength=\"50\" autocomplete=\"off\" />
|
||||
\t\t\t</td>
|
||||
\t\t</tr>";
|
||||
}
|
||||
// line 15
|
||||
echo "\t\t";
|
||||
if ((!$this->getAttribute($this->getContext($context, 'config'), "field_disable_email", array(), "any", false))) {
|
||||
echo "<tr>
|
||||
\t\t\t<th>
|
||||
\t\t\t\t";
|
||||
// line 17
|
||||
echo gettext("Email"); // line 18
|
||||
echo "\t\t\t</th>
|
||||
\t\t\t<td>
|
||||
\t\t\t\t<input type=\"text\" name=\"email\" size=\"25\" maxlength=\"40\" autocomplete=\"off\" />
|
||||
\t\t\t</td>
|
||||
\t\t</tr>";
|
||||
}
|
||||
// line 23
|
||||
echo "\t\t<tr>
|
||||
\t\t\t<th>
|
||||
\t\t\t\t";
|
||||
// line 25
|
||||
echo gettext("Subject"); // line 26
|
||||
echo "\t\t\t</th>
|
||||
\t\t\t<td>
|
||||
\t\t\t\t<input style=\"float:left;\" type=\"text\" name=\"subject\" size=\"25\" maxlength=\"100\" autocomplete=\"off\" />
|
||||
\t\t\t\t<input accesskey=\"s\" style=\"margin-left:2px;\" type=\"submit\" name=\"post\" value=\"";
|
||||
// line 29
|
||||
if ($this->getContext($context, 'id')) {
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "button_reply", array(), "any", false);
|
||||
} else {
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "button_newtopic", array(), "any", false);
|
||||
}
|
||||
echo "\" />";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "spoiler_images", array(), "any", false)) {
|
||||
echo " <input id=\"spoiler\" name=\"spoiler\" type=\"checkbox\" /> <label for=\"spoiler\">";
|
||||
echo gettext("Spoiler Image"); echo "</label>";
|
||||
}
|
||||
// line 30
|
||||
echo "\t\t\t</td>
|
||||
\t\t</tr>
|
||||
\t\t<tr>
|
||||
\t\t\t<th>
|
||||
\t\t\t\t";
|
||||
// line 34
|
||||
echo gettext("Comment"); // line 35
|
||||
echo "\t\t\t</th>
|
||||
\t\t\t<td>
|
||||
\t\t\t\t<textarea name=\"body\" id=\"body\" rows=\"5\" cols=\"35\"></textarea>
|
||||
\t\t\t</td>
|
||||
\t\t</tr>
|
||||
\t\t";
|
||||
// line 40
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "recaptcha", array(), "any", false)) {
|
||||
// line 41
|
||||
echo "\t\t<tr>
|
||||
\t\t\t<th>
|
||||
\t\t\t\t";
|
||||
// line 43
|
||||
echo gettext("Verification"); // line 44
|
||||
echo "\t\t\t</th>
|
||||
\t\t\t<td>
|
||||
\t\t\t\t<script type=\"text/javascript\" src=\"http://www.google.com/recaptcha/api/challenge?k=";
|
||||
// line 46
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "recaptcha_public", array(), "any", false);
|
||||
echo "\"></script>
|
||||
\t\t\t</td>
|
||||
\t\t</tr>
|
||||
\t\t";
|
||||
}
|
||||
// line 50
|
||||
echo "\t\t<tr>
|
||||
\t\t\t<th>
|
||||
\t\t\t\t";
|
||||
// line 52
|
||||
echo gettext("File"); // line 53
|
||||
echo "\t\t\t</th>
|
||||
\t\t\t<td>
|
||||
\t\t\t\t<input type=\"file\" name=\"file\" />
|
||||
\t\t\t</td>
|
||||
\t\t</tr>
|
||||
\t\t";
|
||||
// line 58
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "enable_embedding", array(), "any", false)) {
|
||||
// line 59
|
||||
echo "\t\t<tr>
|
||||
\t\t\t<th>
|
||||
\t\t\t\t";
|
||||
// line 61
|
||||
echo gettext("Embed"); // line 62
|
||||
echo "\t\t\t</th>
|
||||
\t\t\t<td>
|
||||
\t\t\t\t<input type=\"text\" name=\"embed\" size=\"30\" maxlength=\"120\" autocomplete=\"off\" />
|
||||
\t\t\t</td>
|
||||
\t\t</tr>
|
||||
\t\t";
|
||||
}
|
||||
// line 68
|
||||
echo "\t\t";
|
||||
if ($this->getContext($context, 'mod')) {
|
||||
// line 69
|
||||
echo "\t\t<tr>
|
||||
\t\t\t<th>
|
||||
\t\t\t\t";
|
||||
// line 71
|
||||
echo gettext("Flags"); // line 72
|
||||
echo "\t\t\t</th>
|
||||
\t\t\t<td>
|
||||
\t\t\t\t";
|
||||
// line 74
|
||||
if (((!$this->getContext($context, 'id')) && twig_hasPermission_filter($this->getAttribute($this->getContext($context, 'post'), "mod", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "mod", array(), "any", false), "sticky", array(), "any", false), $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false)))) {
|
||||
echo "<div>
|
||||
\t\t\t\t\t<label for=\"sticky\">";
|
||||
// line 75
|
||||
echo gettext("Sticky"); echo "</label>
|
||||
\t\t\t\t\t<input title=\"";
|
||||
// line 76
|
||||
echo gettext("Sticky"); echo "\" type=\"checkbox\" name=\"sticky\" id=\"sticky\" /><br />
|
||||
\t\t\t\t</div>";
|
||||
}
|
||||
// line 78
|
||||
echo "\t\t\t\t";
|
||||
if (((!$this->getContext($context, 'id')) && twig_hasPermission_filter($this->getAttribute($this->getContext($context, 'post'), "mod", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "mod", array(), "any", false), "lock", array(), "any", false), $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false)))) {
|
||||
echo "<div>
|
||||
\t\t\t\t\t<label for=\"lock\">";
|
||||
// line 79
|
||||
echo gettext("Lock"); echo "</label><br />
|
||||
\t\t\t\t\t<input title=\"";
|
||||
// line 80
|
||||
echo gettext("Lock"); echo "\" type=\"checkbox\" name=\"lock\" id=\"lock\" />
|
||||
\t\t\t\t</div>";
|
||||
}
|
||||
// line 82
|
||||
echo "\t\t\t\t";
|
||||
if (twig_hasPermission_filter($this->getAttribute($this->getContext($context, 'post'), "mod", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "mod", array(), "any", false), "rawhtml", array(), "any", false), $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false))) {
|
||||
echo "<div>
|
||||
\t\t\t\t\t<label for=\"raw\">";
|
||||
// line 83
|
||||
echo gettext("Raw HTML"); echo "</label><br />
|
||||
\t\t\t\t\t<input title=\"";
|
||||
// line 84
|
||||
echo gettext("Raw HTML"); echo "\" type=\"checkbox\" name=\"raw\" id=\"raw\" />
|
||||
\t\t\t\t</div>";
|
||||
}
|
||||
// line 86
|
||||
echo "\t\t\t</td>
|
||||
\t\t</tr>
|
||||
\t\t";
|
||||
}
|
||||
// line 89
|
||||
echo "\t\t";
|
||||
if ((!$this->getAttribute($this->getContext($context, 'config'), "field_disable_password", array(), "any", false))) {
|
||||
echo "<tr>
|
||||
\t\t\t<th>
|
||||
\t\t\t\t";
|
||||
// line 91
|
||||
echo gettext("Password"); // line 92
|
||||
echo "\t\t\t</th>
|
||||
\t\t\t<td>
|
||||
\t\t\t\t<input type=\"password\" name=\"password\" size=\"12\" maxlength=\"18\" autocomplete=\"off\" />
|
||||
\t\t\t\t<span class=\"unimportant\">";
|
||||
// line 95
|
||||
echo gettext("(For file deletion.)"); echo "</span>
|
||||
\t\t\t</td>
|
||||
\t\t</tr>";
|
||||
}
|
||||
// line 98
|
||||
echo "\t</table>
|
||||
</form>
|
||||
|
||||
<script type=\"text/javascript\">";
|
||||
// line 101
|
||||
echo "
|
||||
\trememberStuff();
|
||||
";
|
||||
// line 103
|
||||
echo "</script>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "post_form.html";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@ -1,271 +0,0 @@
|
||||
<?php
|
||||
|
||||
/* index.html */
|
||||
class __TwigTemplate_2d974182d37fe12d97825850a1268803 extends Twig_Template
|
||||
{
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$context = array_merge($this->env->getGlobals(), $context);
|
||||
|
||||
// line 1
|
||||
echo "<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
\t<link rel=\"stylesheet\" media=\"screen\" href=\"";
|
||||
// line 4
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_stylesheet", array(), "any", false);
|
||||
echo "\" />
|
||||
\t";
|
||||
// line 5
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "url_favicon", array(), "any", false)) {
|
||||
echo "<link rel=\"shortcut icon\" href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_favicon", array(), "any", false);
|
||||
echo "\" />";
|
||||
}
|
||||
// line 6
|
||||
echo "\t<title>";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "url", array(), "any", false);
|
||||
echo " - ";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "name", array(), "any", false);
|
||||
echo "</title>
|
||||
\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
|
||||
\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" />
|
||||
\t";
|
||||
// line 9
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "meta_keywords", array(), "any", false)) {
|
||||
echo "<meta name=\"keywords\" content=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "meta_keywords", array(), "any", false);
|
||||
echo "\" />";
|
||||
}
|
||||
// line 10
|
||||
echo "\t<link rel=\"stylesheet\" type=\"text/css\" id=\"stylesheet\" href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "uri_stylesheets", array(), "any", false);
|
||||
echo $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "default_stylesheet", array(), "any", false), 1, array(), "any", false);
|
||||
echo "\" />
|
||||
\t";
|
||||
// line 11
|
||||
if ((!$this->getContext($context, 'nojavascript'))) {
|
||||
echo "<script type=\"text/javascript\" src=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_javascript", array(), "any", false);
|
||||
echo "\"></script>";
|
||||
}
|
||||
// line 12
|
||||
echo "\t";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "recaptcha", array(), "any", false)) {
|
||||
echo "<style type=\"text/css\">";
|
||||
echo "
|
||||
\t\t.recaptcha_image_cell {
|
||||
\t\t\tbackground: none !important;
|
||||
\t\t}
|
||||
\t\ttable.recaptchatable {
|
||||
\t\t\tborder: none !important;
|
||||
\t\t}
|
||||
\t\t#recaptcha_logo, #recaptcha_tagline {
|
||||
\t\t\tdisplay: none;
|
||||
\t\t\tfloat: right;
|
||||
\t\t}
|
||||
\t\t.recaptchatable a {
|
||||
\t\t\tdisplay: block;
|
||||
\t\t}
|
||||
\t";
|
||||
// line 26
|
||||
echo "</style>";
|
||||
}
|
||||
// line 27
|
||||
echo "</head>
|
||||
<body>\t
|
||||
\t";
|
||||
// line 29
|
||||
echo $this->getAttribute($this->getContext($context, 'boardlist'), "top", array(), "any", false);
|
||||
echo "
|
||||
\t";
|
||||
// line 30
|
||||
if ($this->getContext($context, 'pm')) {
|
||||
echo "<div class=\"top_notice\">You have <a href=\"?/PM/";
|
||||
echo $this->getAttribute($this->getContext($context, 'pm'), "id", array(), "any", false);
|
||||
echo "\">an unread PM</a>";
|
||||
if (($this->getAttribute($this->getContext($context, 'pm'), "waiting", array(), "any", false) > 0)) {
|
||||
echo ", plus ";
|
||||
echo $this->getAttribute($this->getContext($context, 'pm'), "waiting", array(), "any", false);
|
||||
echo " more waiting";
|
||||
}
|
||||
echo ".</div><hr />";
|
||||
}
|
||||
// line 31
|
||||
echo "\t";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "url_banner", array(), "any", false)) {
|
||||
echo "<img class=\"banner\" src=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_banner", array(), "any", false);
|
||||
echo "\" ";
|
||||
if (($this->getAttribute($this->getContext($context, 'config'), "banner_width", array(), "any", false) || $this->getAttribute($this->getContext($context, 'config'), "banner_height", array(), "any", false))) {
|
||||
echo "style=\"";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "banner_width", array(), "any", false)) {
|
||||
echo "width:";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "banner_width", array(), "any", false);
|
||||
echo "px";
|
||||
}
|
||||
echo ";";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "banner_width", array(), "any", false)) {
|
||||
echo "height:";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "banner_height", array(), "any", false);
|
||||
echo "px";
|
||||
}
|
||||
echo "\" ";
|
||||
}
|
||||
echo "alt=\"\" />";
|
||||
}
|
||||
// line 32
|
||||
echo "\t<h1>";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "url", array(), "any", false);
|
||||
echo " - ";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "name", array(), "any", false);
|
||||
echo "</h1>
|
||||
\t<div class=\"title\">";
|
||||
// line 33
|
||||
if ($this->getAttribute($this->getContext($context, 'board'), "title", array(), "any", false)) {
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "title", array(), "any", false);
|
||||
}
|
||||
echo "<p>";
|
||||
if ($this->getContext($context, 'mod')) {
|
||||
echo "<a href=\"?/\">";
|
||||
echo gettext("Return to dashboard"); echo "</a>";
|
||||
}
|
||||
echo "</p></div>
|
||||
\t
|
||||
\t";
|
||||
// line 35
|
||||
$this->env->loadTemplate("post_form.html")->display($context);
|
||||
// line 36
|
||||
echo "\t
|
||||
\t";
|
||||
// line 37
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "blotter", array(), "any", false)) {
|
||||
echo "<hr /><div class=\"blotter\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "blotter", array(), "any", false);
|
||||
echo "</div>";
|
||||
}
|
||||
// line 38
|
||||
echo "\t<hr />
|
||||
\t<form name=\"postcontrols\" action=\"";
|
||||
// line 39
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "post_url", array(), "any", false);
|
||||
echo "\" method=\"post\">
|
||||
\t<input type=\"hidden\" name=\"board\" value=\"";
|
||||
// line 40
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false);
|
||||
echo "\" />
|
||||
\t";
|
||||
// line 41
|
||||
if ($this->getContext($context, 'mod')) {
|
||||
echo "<input type=\"hidden\" name=\"mod\" value=\"1\" />";
|
||||
}
|
||||
// line 42
|
||||
echo "\t";
|
||||
echo $this->getContext($context, 'body');
|
||||
echo "
|
||||
\t<div class=\"delete\">
|
||||
\t\t";
|
||||
// line 44
|
||||
echo gettext("Delete Post"); echo " [<input title=\"Delete file only\" type=\"checkbox\" name=\"file\" id=\"delete_file\" />
|
||||
\t\t <label for=\"delete_file\">";
|
||||
// line 45
|
||||
echo gettext("File"); echo "</label>] <label for=\"password\">";
|
||||
echo gettext("Password"); echo "</label>
|
||||
\t\t\t<input id=\"password\" type=\"password\" name=\"password\" size=\"12\" maxlength=\"18\" />
|
||||
\t\t\t<input type=\"submit\" name=\"delete\" value=\"";
|
||||
// line 47
|
||||
echo gettext("Delete"); echo "\" />
|
||||
\t</div>
|
||||
\t<div class=\"delete\" style=\"clear:both\">
|
||||
\t\t<label for=\"reason\">";
|
||||
// line 50
|
||||
echo gettext("Reason"); echo "</label>
|
||||
\t\t\t<input id=\"reason\" type=\"text\" name=\"reason\" size=\"20\" maxlength=\"30\" />
|
||||
\t\t\t<input type=\"submit\" name=\"report\" value=\"";
|
||||
// line 52
|
||||
echo gettext("Report"); echo "\" />
|
||||
\t</div>
|
||||
\t</form>
|
||||
\t<div class=\"pages\">";
|
||||
// line 55
|
||||
echo $this->getAttribute($this->getContext($context, 'btn'), "prev", array(), "any", false);
|
||||
echo " ";
|
||||
$context['_parent'] = (array) $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getContext($context, 'pages'));
|
||||
$context['loop'] = array(
|
||||
'parent' => $context['_parent'],
|
||||
'index0' => 0,
|
||||
'index' => 1,
|
||||
'first' => true,
|
||||
);
|
||||
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
|
||||
$length = count($context['_seq']);
|
||||
$context['loop']['revindex0'] = $length - 1;
|
||||
$context['loop']['revindex'] = $length;
|
||||
$context['loop']['length'] = $length;
|
||||
$context['loop']['last'] = 1 === $length;
|
||||
}
|
||||
foreach ($context['_seq'] as $context['_key'] => $context['page']) {
|
||||
// line 56
|
||||
echo "\t\t [<a ";
|
||||
if ($this->getAttribute($this->getContext($context, 'page'), "selected", array(), "any", false)) {
|
||||
echo "class=\"selected\"";
|
||||
}
|
||||
if ((!$this->getAttribute($this->getContext($context, 'page'), "selected", array(), "any", false))) {
|
||||
echo "href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'page'), "link", array(), "any", false);
|
||||
echo "\"";
|
||||
}
|
||||
echo ">";
|
||||
echo $this->getAttribute($this->getContext($context, 'page'), "num", array(), "any", false);
|
||||
echo "</a>]";
|
||||
if ($this->getAttribute($this->getContext($context, 'loop'), "last", array(), "any", false)) {
|
||||
echo " ";
|
||||
}
|
||||
// line 57
|
||||
echo "\t";
|
||||
++$context['loop']['index0'];
|
||||
++$context['loop']['index'];
|
||||
$context['loop']['first'] = false;
|
||||
if (isset($context['loop']['length'])) {
|
||||
--$context['loop']['revindex0'];
|
||||
--$context['loop']['revindex'];
|
||||
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
|
||||
$context = array_merge($_parent, array_intersect_key($context, $_parent));
|
||||
echo " ";
|
||||
echo $this->getAttribute($this->getContext($context, 'btn'), "next", array(), "any", false);
|
||||
echo "</div>
|
||||
\t";
|
||||
// line 58
|
||||
echo $this->getAttribute($this->getContext($context, 'boardlist'), "bottom", array(), "any", false);
|
||||
echo "
|
||||
\t<p class=\"unimportant\" style=\"margin-top:20px;text-align:center;\">Powered by <a href=\"http://tinyboard.org/\">Tinyboard</a> ";
|
||||
// line 59
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "version", array(), "any", false);
|
||||
echo " | <a href=\"http://tinyboard.org/\">Tinyboard</a> Copyright © 2010-2011 Tinyboard Development Group</p>
|
||||
\t<p class=\"unimportant\" style=\"text-align:center;\">All trademarks, copyrights, comments, and images on this page are owned by or are the responsibility of their respective parties.</p>
|
||||
\t\t
|
||||
</body>
|
||||
</html>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "index.html";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@ -1,231 +0,0 @@
|
||||
<?php
|
||||
|
||||
/* thread.html */
|
||||
class __TwigTemplate_2ff3d8c5835c9a421f76b4dec5f4cb41 extends Twig_Template
|
||||
{
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$context = array_merge($this->env->getGlobals(), $context);
|
||||
|
||||
// line 1
|
||||
echo "<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
\t<link rel=\"stylesheet\" media=\"screen\" href=\"";
|
||||
// line 4
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_stylesheet", array(), "any", false);
|
||||
echo "\" />
|
||||
\t";
|
||||
// line 5
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "url_favicon", array(), "any", false)) {
|
||||
echo "<link rel=\"shortcut icon\" href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_favicon", array(), "any", false);
|
||||
echo "\" />";
|
||||
}
|
||||
// line 6
|
||||
echo "\t<title>";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "url", array(), "any", false);
|
||||
echo " - ";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "name", array(), "any", false);
|
||||
echo "</title>
|
||||
\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
|
||||
\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" />
|
||||
\t";
|
||||
// line 9
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "meta_keywords", array(), "any", false)) {
|
||||
echo "<meta name=\"keywords\" content=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "meta_keywords", array(), "any", false);
|
||||
echo "\" />";
|
||||
}
|
||||
// line 10
|
||||
echo "\t<link rel=\"stylesheet\" type=\"text/css\" id=\"stylesheet\" href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "uri_stylesheets", array(), "any", false);
|
||||
echo $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "default_stylesheet", array(), "any", false), 1, array(), "any", false);
|
||||
echo "\" />
|
||||
\t";
|
||||
// line 11
|
||||
if ((!$this->getContext($context, 'nojavascript'))) {
|
||||
echo "<script type=\"text/javascript\" src=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_javascript", array(), "any", false);
|
||||
echo "\"></script>";
|
||||
}
|
||||
// line 12
|
||||
echo "\t";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "recaptcha", array(), "any", false)) {
|
||||
echo "<style type=\"text/css\">";
|
||||
echo "
|
||||
\t\t.recaptcha_image_cell {
|
||||
\t\t\tbackground: none !important;
|
||||
\t\t}
|
||||
\t\ttable.recaptchatable {
|
||||
\t\t\tborder: none !important;
|
||||
\t\t}
|
||||
\t\t#recaptcha_logo, #recaptcha_tagline {
|
||||
\t\t\tdisplay: none;
|
||||
\t\t\tfloat: right;
|
||||
\t\t}
|
||||
\t\t.recaptchatable a {
|
||||
\t\t\tdisplay: block;
|
||||
\t\t}
|
||||
\t";
|
||||
// line 26
|
||||
echo "</style>";
|
||||
}
|
||||
// line 27
|
||||
echo "</head>
|
||||
<body>
|
||||
\t";
|
||||
// line 29
|
||||
echo $this->getAttribute($this->getContext($context, 'boardlist'), "top", array(), "any", false);
|
||||
echo "
|
||||
\t";
|
||||
// line 30
|
||||
if ($this->getContext($context, 'pm')) {
|
||||
echo "<div class=\"top_notice\">You have <a href=\"?/PM/";
|
||||
echo $this->getAttribute($this->getContext($context, 'pm'), "id", array(), "any", false);
|
||||
echo "\">an unread PM</a>";
|
||||
if (($this->getAttribute($this->getContext($context, 'pm'), "waiting", array(), "any", false) > 0)) {
|
||||
echo ", plus ";
|
||||
echo $this->getAttribute($this->getContext($context, 'pm'), "waiting", array(), "any", false);
|
||||
echo " more waiting";
|
||||
}
|
||||
echo ".</div><hr />";
|
||||
}
|
||||
// line 31
|
||||
echo "\t";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "url_banner", array(), "any", false)) {
|
||||
echo "<img class=\"banner\" src=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_banner", array(), "any", false);
|
||||
echo "\" ";
|
||||
if (($this->getAttribute($this->getContext($context, 'config'), "banner_width", array(), "any", false) || $this->getAttribute($this->getContext($context, 'config'), "banner_height", array(), "any", false))) {
|
||||
echo "style=\"";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "banner_width", array(), "any", false)) {
|
||||
echo "width:";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "banner_width", array(), "any", false);
|
||||
echo "px";
|
||||
}
|
||||
echo ";";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "banner_width", array(), "any", false)) {
|
||||
echo "height:";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "banner_height", array(), "any", false);
|
||||
echo "px";
|
||||
}
|
||||
echo "\" ";
|
||||
}
|
||||
echo "alt=\"\" />";
|
||||
}
|
||||
// line 32
|
||||
echo "\t<h1>";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "url", array(), "any", false);
|
||||
echo " - ";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "name", array(), "any", false);
|
||||
echo "</h1>
|
||||
\t<div class=\"title\">";
|
||||
// line 33
|
||||
if ($this->getAttribute($this->getContext($context, 'board'), "title", array(), "any", false)) {
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "title", array(), "any", false);
|
||||
}
|
||||
echo "<p>";
|
||||
if ($this->getContext($context, 'mod')) {
|
||||
echo "<a href=\"?/\">";
|
||||
echo gettext("Return to dashboard"); echo "</a>";
|
||||
}
|
||||
echo "</p></div>
|
||||
\t
|
||||
\t<div class=\"banner\">";
|
||||
// line 35
|
||||
echo gettext("Posting mode: Reply"); echo " <a rel=\"directory\" class=\"unimportant\" href=\"";
|
||||
echo $this->getContext($context, 'return');
|
||||
echo "\">[";
|
||||
echo gettext("Return"); echo "]</a></div>
|
||||
\t
|
||||
\t";
|
||||
// line 37
|
||||
$this->env->loadTemplate("post_form.html")->display($context);
|
||||
// line 38
|
||||
echo "\t
|
||||
\t";
|
||||
// line 39
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "blotter", array(), "any", false)) {
|
||||
echo "<hr /><div class=\"blotter\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "blotter", array(), "any", false);
|
||||
echo "</div>";
|
||||
}
|
||||
// line 40
|
||||
echo "\t<hr />
|
||||
\t<form name=\"postcontrols\" action=\"";
|
||||
// line 41
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "post_url", array(), "any", false);
|
||||
echo "\" method=\"post\">
|
||||
\t<input type=\"hidden\" name=\"board\" value=\"";
|
||||
// line 42
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false);
|
||||
echo "\" />
|
||||
\t";
|
||||
// line 43
|
||||
if ($this->getContext($context, 'mod')) {
|
||||
echo "<input type=\"hidden\" name=\"mod\" value=\"1\" />";
|
||||
}
|
||||
// line 44
|
||||
echo "\t";
|
||||
echo $this->getContext($context, 'body');
|
||||
echo "
|
||||
\t<div class=\"delete\">
|
||||
\t\t";
|
||||
// line 46
|
||||
echo gettext("Delete Post"); echo " [<input title=\"Delete file only\" type=\"checkbox\" name=\"file\" id=\"delete_file\" />
|
||||
\t\t <label for=\"delete_file\">";
|
||||
// line 47
|
||||
echo gettext("File"); echo "</label>] <label for=\"password\">";
|
||||
echo gettext("Password"); echo "</label>
|
||||
\t\t\t<input id=\"password\" type=\"password\" name=\"password\" size=\"12\" maxlength=\"18\" />
|
||||
\t\t\t<input type=\"submit\" name=\"delete\" value=\"";
|
||||
// line 49
|
||||
echo gettext("Delete"); echo "\" />
|
||||
\t</div>
|
||||
\t<div class=\"delete\" style=\"clear:both\">
|
||||
\t\t<label for=\"reason\">";
|
||||
// line 52
|
||||
echo gettext("Reason"); echo "</label>
|
||||
\t\t\t<input id=\"reason\" type=\"text\" name=\"reason\" size=\"20\" maxlength=\"30\" />
|
||||
\t\t\t<input type=\"submit\" name=\"report\" value=\"";
|
||||
// line 54
|
||||
echo gettext("Report"); echo "\" />
|
||||
\t</div>
|
||||
\t</form>
|
||||
\t<a rel=\"directory\" href=\"";
|
||||
// line 57
|
||||
echo $this->getContext($context, 'return');
|
||||
echo "\">[";
|
||||
echo gettext("Return"); echo "]</a>
|
||||
|
||||
\t";
|
||||
// line 59
|
||||
echo $this->getAttribute($this->getContext($context, 'boardlist'), "bottom", array(), "any", false);
|
||||
echo "
|
||||
\t<p class=\"unimportant\" style=\"margin-top:20px;text-align:center;\">Powered by <a href=\"http://tinyboard.org/\">Tinyboard</a> ";
|
||||
// line 60
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "version", array(), "any", false);
|
||||
echo " | <a href=\"http://tinyboard.org/\">Tinyboard</a> Copyright © 2010-2011 Tinyboard Development Group</p>
|
||||
\t<p class=\"unimportant\" style=\"text-align:center;\">All trademarks, copyrights, comments, and images on this page are owned by or are the responsibility of their respective parties.</p>
|
||||
\t\t
|
||||
</body>
|
||||
</html>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "thread.html";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@ -1,517 +0,0 @@
|
||||
<?php
|
||||
|
||||
/* post_thread.html */
|
||||
class __TwigTemplate_7aa76e93140dd14e656757e295334806 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->blocks = array(
|
||||
'__internal_7aa76e93140dd14e656757e295334806_1' => array($this, 'block___internal_7aa76e93140dd14e656757e295334806_1'),
|
||||
'__internal_7aa76e93140dd14e656757e295334806_2' => array($this, 'block___internal_7aa76e93140dd14e656757e295334806_2'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$context = array_merge($this->env->getGlobals(), $context);
|
||||
|
||||
// line 1
|
||||
echo twig_remove_whitespace_filter((string) $this->renderBlock("__internal_7aa76e93140dd14e656757e295334806_1", $context, $blocks));
|
||||
// line 108
|
||||
if ($this->getContext($context, 'index')) {
|
||||
echo truncate($this->getAttribute($this->getContext($context, 'post'), "body", array(), "any", false), $this->getAttribute($this->getContext($context, 'post'), "link", array(), "any", false));
|
||||
} else {
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "body", array(), "any", false);
|
||||
}
|
||||
echo twig_remove_whitespace_filter((string) $this->renderBlock("__internal_7aa76e93140dd14e656757e295334806_2", $context, $blocks));
|
||||
// line 136
|
||||
$context['hr'] = $this->getAttribute($this->getContext($context, 'post'), "hr", array(), "any", false);
|
||||
// line 137
|
||||
$context['_parent'] = (array) $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'post'), "posts", array(), "any", false));
|
||||
$context['loop'] = array(
|
||||
'parent' => $context['_parent'],
|
||||
'index0' => 0,
|
||||
'index' => 1,
|
||||
'first' => true,
|
||||
);
|
||||
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
|
||||
$length = count($context['_seq']);
|
||||
$context['loop']['revindex0'] = $length - 1;
|
||||
$context['loop']['revindex'] = $length;
|
||||
$context['loop']['length'] = $length;
|
||||
$context['loop']['last'] = 1 === $length;
|
||||
}
|
||||
foreach ($context['_seq'] as $context['_key'] => $context['post']) {
|
||||
// line 138
|
||||
echo "\t";
|
||||
$this->env->loadTemplate("post_reply.html")->display($context);
|
||||
++$context['loop']['index0'];
|
||||
++$context['loop']['index'];
|
||||
$context['loop']['first'] = false;
|
||||
if (isset($context['loop']['length'])) {
|
||||
--$context['loop']['revindex0'];
|
||||
--$context['loop']['revindex'];
|
||||
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
|
||||
$context = array_merge($_parent, array_intersect_key($context, $_parent));
|
||||
// line 140
|
||||
echo "<br class=\"clear\"/>";
|
||||
if ($this->getContext($context, 'hr')) {
|
||||
echo "<hr/>";
|
||||
}
|
||||
// line 141
|
||||
if ($this->getContext($context, 'index')) {
|
||||
// line 142
|
||||
echo "\t</div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 1
|
||||
public function block___internal_7aa76e93140dd14e656757e295334806_1($context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
echo "
|
||||
";
|
||||
// line 4
|
||||
if ($this->getContext($context, 'index')) {
|
||||
// line 5
|
||||
echo "\t<div id=\"thread_";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\" itemscope itemid=\"/";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false);
|
||||
echo "/";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\" itemtype=\"http://schema.org/CreativeWork\">
|
||||
";
|
||||
}
|
||||
// line 7
|
||||
echo "
|
||||
";
|
||||
// line 8
|
||||
if ($this->getAttribute($this->getContext($context, 'post'), "embed", array(), "any", false)) {
|
||||
// line 9
|
||||
echo "\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "embed", array(), "any", false);
|
||||
echo "
|
||||
";
|
||||
} elseif (($this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false) == "deleted")) {
|
||||
// line 11
|
||||
echo "\t<img itemprop=\"image\" src=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "image_deleted", array(), "any", false);
|
||||
echo "\" alt=\"\" />
|
||||
";
|
||||
} elseif (($this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false) && $this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false))) {
|
||||
// line 13
|
||||
echo "\t<p class=\"fileinfo\">File: <a href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "uri_img", array(), "any", false);
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false);
|
||||
echo "\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false);
|
||||
echo "</a> <span class=\"unimportant\">
|
||||
\t(
|
||||
\t\t";
|
||||
// line 15
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "thumb", array(), "any", false) == "spoiler")) {
|
||||
// line 16
|
||||
echo "\t\t\tSpoiler Image,
|
||||
\t\t";
|
||||
}
|
||||
// line 18
|
||||
echo "\t\t";
|
||||
echo format_bytes($this->getAttribute($this->getContext($context, 'post'), "filesize", array(), "any", false));
|
||||
echo "
|
||||
\t\t";
|
||||
// line 19
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "filex", array(), "any", false) && $this->getAttribute($this->getContext($context, 'post'), "filey", array(), "any", false))) {
|
||||
// line 20
|
||||
echo "\t\t\t, ";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "filex", array(), "any", false);
|
||||
echo "x";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "filey", array(), "any", false);
|
||||
echo "
|
||||
\t\t\t";
|
||||
// line 21
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "show_ratio", array(), "any", false)) {
|
||||
// line 22
|
||||
echo "\t\t\t\t, ";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "ratio", array(), "any", false);
|
||||
echo "
|
||||
\t\t\t";
|
||||
}
|
||||
// line 24
|
||||
echo "\t\t";
|
||||
}
|
||||
// line 25
|
||||
echo "\t\t";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "show_filename", array(), "any", false)) {
|
||||
// line 26
|
||||
echo "\t\t\t,
|
||||
\t\t\t";
|
||||
// line 27
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false)) > $this->getAttribute($this->getContext($context, 'config'), "max_filename_display", array(), "any", false))) {
|
||||
// line 28
|
||||
echo "\t\t\t\t<span title=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false);
|
||||
echo "\">";
|
||||
echo twig_truncate_filter($this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false), $this->getAttribute($this->getContext($context, 'config'), "max_filename_display", array(), "any", false));
|
||||
echo "</span>
|
||||
\t\t\t";
|
||||
} else {
|
||||
// line 30
|
||||
echo "\t\t\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false);
|
||||
echo "
|
||||
\t\t\t";
|
||||
}
|
||||
// line 32
|
||||
echo "\t\t";
|
||||
}
|
||||
// line 33
|
||||
echo "\t)
|
||||
\t</span></p>
|
||||
<a href=\"";
|
||||
// line 35
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "uri_img", array(), "any", false);
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "file", array(), "any", false);
|
||||
echo "\" target=\"_blank\"";
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "thumb", array(), "any", false) == "file")) {
|
||||
echo " class=\"file\"";
|
||||
}
|
||||
echo ">
|
||||
<img src=\"
|
||||
\t";
|
||||
// line 37
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "thumb", array(), "any", false) == "file")) {
|
||||
// line 38
|
||||
echo "\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "root", array(), "any", false);
|
||||
echo "
|
||||
\t\t";
|
||||
// line 39
|
||||
if ($this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "file_icons", array(), "any", false), twig_extension_filter($this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false)), array(), "array", false)) {
|
||||
// line 40
|
||||
echo "\t\t\t";
|
||||
echo sprintf($this->getAttribute($this->getContext($context, 'config'), "file_thumb", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "file_icons", array(), "any", false), twig_extension_filter($this->getAttribute($this->getContext($context, 'post'), "filename", array(), "any", false)), array(), "array", false));
|
||||
echo "
|
||||
\t\t";
|
||||
} else {
|
||||
// line 42
|
||||
echo "\t\t\t";
|
||||
echo sprintf($this->getAttribute($this->getContext($context, 'config'), "file_thumb", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "file_icons", array(), "any", false), "default", array(), "any", false));
|
||||
echo "
|
||||
\t\t";
|
||||
}
|
||||
// line 44
|
||||
echo "\t";
|
||||
} elseif (($this->getAttribute($this->getContext($context, 'post'), "thumb", array(), "any", false) == "spoiler")) {
|
||||
// line 45
|
||||
echo "\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "root", array(), "any", false);
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "spoiler_image", array(), "any", false);
|
||||
echo "
|
||||
\t";
|
||||
} else {
|
||||
// line 47
|
||||
echo "\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "uri_thumb", array(), "any", false);
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "thumb", array(), "any", false);
|
||||
echo "
|
||||
\t";
|
||||
}
|
||||
// line 48
|
||||
echo "\" style=\"width:";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "thumbx", array(), "any", false);
|
||||
echo "px;height:";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "thumby", array(), "any", false);
|
||||
echo "px\" alt=\"\" /></a>
|
||||
";
|
||||
}
|
||||
// line 50
|
||||
echo "<div class=\"post op\"";
|
||||
if ((!$this->getContext($context, 'index'))) {
|
||||
echo " itemscope itemid=\"/";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false);
|
||||
echo "/";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\" itemtype=\"http://schema.org/Article\"";
|
||||
}
|
||||
echo "><p class=\"intro\"";
|
||||
if ((!$this->getContext($context, 'index'))) {
|
||||
echo " id=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\"";
|
||||
}
|
||||
echo ">
|
||||
\t<input type=\"checkbox\" class=\"delete\" name=\"delete_";
|
||||
// line 51
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\" id=\"delete_";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\" />
|
||||
\t<label for=\"delete_";
|
||||
// line 52
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "\">
|
||||
\t\t";
|
||||
// line 53
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "subject", array(), "any", false)) > 0)) {
|
||||
// line 54
|
||||
echo "\t\t\t";
|
||||
// line 55
|
||||
echo "\t\t\t<span itemprop=\"headline\" class=\"subject\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "subject", array(), "any", false);
|
||||
echo "</span>
|
||||
\t\t";
|
||||
}
|
||||
// line 57
|
||||
echo "\t\t";
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "email", array(), "any", false)) > 0)) {
|
||||
// line 58
|
||||
echo "\t\t\t";
|
||||
// line 59
|
||||
echo "\t\t\t<a class=\"email\" href=\"mailto:";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "email", array(), "any", false);
|
||||
echo "\">
|
||||
\t\t";
|
||||
}
|
||||
// line 61
|
||||
echo "\t\t<span class=\"name\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "name", array(), "any", false);
|
||||
echo "</span>
|
||||
\t\t";
|
||||
// line 62
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "trip", array(), "any", false)) > 0)) {
|
||||
// line 63
|
||||
echo "\t\t\t<span class=\"trip\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "trip", array(), "any", false);
|
||||
echo "</span>
|
||||
\t\t";
|
||||
}
|
||||
// line 65
|
||||
echo "\t\t";
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "email", array(), "any", false)) > 0)) {
|
||||
// line 66
|
||||
echo "\t\t\t";
|
||||
// line 67
|
||||
echo "\t\t\t</a>
|
||||
\t\t";
|
||||
}
|
||||
// line 69
|
||||
echo "\t\t";
|
||||
if ((twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'post'), "capcode", array(), "any", false)) > 0)) {
|
||||
// line 70
|
||||
echo "\t\t\t";
|
||||
// line 71
|
||||
echo "\t\t\t";
|
||||
echo capcode($this->getAttribute($this->getContext($context, 'post'), "capcode", array(), "any", false));
|
||||
echo "
|
||||
\t\t";
|
||||
}
|
||||
// line 73
|
||||
echo "\t\t";
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "mod", array(), "any", false) && twig_hasPermission_filter($this->getAttribute($this->getContext($context, 'post'), "mod", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "mod", array(), "any", false), "show_ip", array(), "any", false), $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false)))) {
|
||||
// line 74
|
||||
echo "\t\t\t [<a style=\"margin:0;\" href=\"?/IP/";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "ip", array(), "any", false);
|
||||
echo "\">";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "ip", array(), "any", false);
|
||||
echo "</a>]
|
||||
\t\t";
|
||||
}
|
||||
// line 76
|
||||
echo "\t\t <time itemprop=\"dateCreated\" datetime=\"";
|
||||
echo twig_date_filter($this->getAttribute($this->getContext($context, 'post'), "time", array(), "any", false), "%Y-%m-%dT%H:%M:%S%z");
|
||||
echo "\">";
|
||||
echo twig_date_filter($this->getAttribute($this->getContext($context, 'post'), "time", array(), "any", false), $this->getAttribute($this->getContext($context, 'config'), "post_date", array(), "any", false));
|
||||
echo "</time>
|
||||
\t</label>
|
||||
\t";
|
||||
// line 78
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "poster_ids", array(), "any", false)) {
|
||||
// line 79
|
||||
echo "\t\t ID: ";
|
||||
echo poster_id($this->getAttribute($this->getContext($context, 'post'), "ip", array(), "any", false), $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false));
|
||||
echo "
|
||||
\t";
|
||||
}
|
||||
// line 81
|
||||
echo "\t <a itemprop=\"url\" class=\"post_no\" href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "link", array(), "any", false);
|
||||
echo "\">No.</a>
|
||||
\t<a class=\"post_no\"
|
||||
\t\t";
|
||||
// line 83
|
||||
if ((!$this->getContext($context, 'index'))) {
|
||||
// line 84
|
||||
echo "\t\t\t onclick=\"citeReply(";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo ");\"
|
||||
\t\t";
|
||||
}
|
||||
// line 86
|
||||
echo "\t\t href=\"";
|
||||
if ($this->getContext($context, 'index')) {
|
||||
// line 87
|
||||
echo "\t\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "link", array("q", ), "method", false);
|
||||
echo "
|
||||
\t\t";
|
||||
} else {
|
||||
// line 89
|
||||
echo "\t\t\tjavascript:void(0);
|
||||
\t\t";
|
||||
}
|
||||
// line 90
|
||||
echo "\">
|
||||
\t\t";
|
||||
// line 91
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false);
|
||||
echo "
|
||||
\t</a>
|
||||
\t";
|
||||
// line 93
|
||||
if ($this->getAttribute($this->getContext($context, 'post'), "sticky", array(), "any", false)) {
|
||||
// line 94
|
||||
echo "\t\t<img class=\"icon\" title=\"Sticky\" src=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "image_sticky", array(), "any", false);
|
||||
echo "\" alt=\"Sticky\" />
|
||||
\t";
|
||||
}
|
||||
// line 96
|
||||
echo "\t";
|
||||
if ($this->getAttribute($this->getContext($context, 'post'), "locked", array(), "any", false)) {
|
||||
// line 97
|
||||
echo "\t\t<img class=\"icon\" title=\"Locked\" src=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "image_locked", array(), "any", false);
|
||||
echo "\" alt=\"Locked\" />
|
||||
\t";
|
||||
}
|
||||
// line 99
|
||||
echo "\t";
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "bumplocked", array(), "any", false) && (($this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "mod", array(), "any", false), "view_bumplock", array(), "any", false) < 0) || ($this->getAttribute($this->getContext($context, 'post'), "mod", array(), "any", false) && twig_hasPermission_filter($this->getAttribute($this->getContext($context, 'post'), "mod", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "mod", array(), "any", false), "view_bumplock", array(), "any", false), $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false)))))) {
|
||||
// line 100
|
||||
echo "\t\t<img class=\"icon\" title=\"Bumplocked\" src=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "image_bumplocked", array(), "any", false);
|
||||
echo "\" alt=\"Locked\" />
|
||||
\t";
|
||||
}
|
||||
// line 102
|
||||
echo "\t";
|
||||
if ($this->getContext($context, 'index')) {
|
||||
// line 103
|
||||
echo "\t\t<a itemprop=\"discussionUrl\" href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "root", array(), "any", false);
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "dir", array(), "any", false);
|
||||
echo $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "dir", array(), "any", false), "res", array(), "any", false);
|
||||
echo sprintf($this->getAttribute($this->getContext($context, 'config'), "file_page", array(), "any", false), $this->getAttribute($this->getContext($context, 'post'), "id", array(), "any", false));
|
||||
echo "\">[";
|
||||
echo gettext("Reply"); echo "]</a>
|
||||
\t";
|
||||
}
|
||||
// line 105
|
||||
echo "\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "postControls", array(), "any", false);
|
||||
echo "
|
||||
\t</p>
|
||||
\t<p itemprop=\"description\" class=\"body\">
|
||||
\t\t";
|
||||
}
|
||||
|
||||
// line 108
|
||||
public function block___internal_7aa76e93140dd14e656757e295334806_2($context, array $blocks = array())
|
||||
{
|
||||
// line 109
|
||||
echo "\t</p>
|
||||
\t";
|
||||
// line 110
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "omitted", array(), "any", false) || $this->getAttribute($this->getContext($context, 'post'), "omitted_images", array(), "any", false))) {
|
||||
// line 111
|
||||
echo "\t\t<span class=\"omitted\">
|
||||
\t\t\t";
|
||||
// line 112
|
||||
if ($this->getAttribute($this->getContext($context, 'post'), "omitted", array(), "any", false)) {
|
||||
// line 113
|
||||
echo "\t\t\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "omitted", array(), "any", false);
|
||||
echo " post
|
||||
\t\t\t\t";
|
||||
// line 114
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "omitted", array(), "any", false) != 1)) {
|
||||
// line 115
|
||||
echo "\t\t\t\t\ts
|
||||
\t\t\t\t";
|
||||
}
|
||||
// line 117
|
||||
echo "\t\t\t\t";
|
||||
if ($this->getAttribute($this->getContext($context, 'post'), "omitted_images", array(), "any", false)) {
|
||||
// line 118
|
||||
echo "\t\t\t\t\t and
|
||||
\t\t\t\t";
|
||||
}
|
||||
// line 120
|
||||
echo "\t\t\t";
|
||||
}
|
||||
// line 121
|
||||
echo "\t\t\t";
|
||||
if ($this->getAttribute($this->getContext($context, 'post'), "omitted_images", array(), "any", false)) {
|
||||
// line 122
|
||||
echo "\t\t\t\t";
|
||||
echo $this->getAttribute($this->getContext($context, 'post'), "omitted_images", array(), "any", false);
|
||||
echo " image repl
|
||||
\t\t\t\t";
|
||||
// line 123
|
||||
if (($this->getAttribute($this->getContext($context, 'post'), "omitted_images", array(), "any", false) == 1)) {
|
||||
// line 124
|
||||
echo "\t\t\t\t\ty
|
||||
\t\t\t\t";
|
||||
} else {
|
||||
// line 126
|
||||
echo "\t\t\t\t\ties
|
||||
\t\t\t\t";
|
||||
}
|
||||
// line 128
|
||||
echo "\t\t\t";
|
||||
}
|
||||
echo " omitted. Click reply to view.
|
||||
\t\t</span>
|
||||
\t";
|
||||
}
|
||||
// line 131
|
||||
echo "<meta itemprop=\"genre\" content=\"/";
|
||||
echo $this->getAttribute($this->getContext($context, 'board'), "uri", array(), "any", false);
|
||||
echo "/\" />
|
||||
";
|
||||
// line 132
|
||||
if ((!$this->getContext($context, 'index'))) {
|
||||
// line 133
|
||||
echo "<meta itemprop=\"interactionCount\" content=\"UserComments:";
|
||||
echo count($this->getAttribute($this->getContext($context, 'post'), "posts", array(), "any", false));
|
||||
echo "\" />
|
||||
";
|
||||
}
|
||||
// line 135
|
||||
echo "</div>";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "post_thread.html";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@ -1,102 +0,0 @@
|
||||
<?php
|
||||
|
||||
/* page.html */
|
||||
class __TwigTemplate_8bb16dea6df49df571827b55c09e4e19 extends Twig_Template
|
||||
{
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$context = array_merge($this->env->getGlobals(), $context);
|
||||
|
||||
// line 1
|
||||
echo "<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
\t<link rel=\"stylesheet\" media=\"screen\" href=\"";
|
||||
// line 4
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_stylesheet", array(), "any", false);
|
||||
echo "\" />
|
||||
\t";
|
||||
// line 5
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "url_favicon", array(), "any", false)) {
|
||||
echo "<link rel=\"shortcut icon\" href=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_favicon", array(), "any", false);
|
||||
echo "\" />";
|
||||
}
|
||||
// line 6
|
||||
echo "\t<title>";
|
||||
echo $this->getContext($context, 'title');
|
||||
echo "</title>
|
||||
\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
|
||||
\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" />
|
||||
\t<link rel=\"stylesheet\" type=\"text/css\" id=\"stylesheet\" href=\"";
|
||||
// line 9
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "uri_stylesheets", array(), "any", false);
|
||||
echo $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "default_stylesheet", array(), "any", false), 1, array(), "any", false);
|
||||
echo "\" />
|
||||
\t";
|
||||
// line 10
|
||||
if ((!$this->getContext($context, 'nojavascript'))) {
|
||||
echo "<script type=\"text/javascript\" src=\"";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "url_javascript", array(), "any", false);
|
||||
echo "\"></script>";
|
||||
}
|
||||
// line 11
|
||||
echo "</head>
|
||||
<body>
|
||||
\t";
|
||||
// line 13
|
||||
if ($this->getContext($context, 'pm')) {
|
||||
echo "<div class=\"top_notice\">You have <a href=\"?/PM/";
|
||||
echo $this->getAttribute($this->getContext($context, 'pm'), "id", array(), "any", false);
|
||||
echo "\">an unread PM</a>";
|
||||
if (($this->getAttribute($this->getContext($context, 'pm'), "waiting", array(), "any", false) > 0)) {
|
||||
echo ", plus ";
|
||||
echo $this->getAttribute($this->getContext($context, 'pm'), "waiting", array(), "any", false);
|
||||
echo " more waiting";
|
||||
}
|
||||
echo ".</div><hr />";
|
||||
}
|
||||
// line 14
|
||||
echo "\t<h1>";
|
||||
echo $this->getContext($context, 'title');
|
||||
echo "</h1>
|
||||
\t<div class=\"title\">";
|
||||
// line 15
|
||||
if ($this->getContext($context, 'subtitle')) {
|
||||
echo $this->getContext($context, 'subtitle');
|
||||
}
|
||||
echo "<p>";
|
||||
if ($this->getContext($context, 'mod')) {
|
||||
echo "<a href=\"?/\">";
|
||||
echo gettext("Return to dashboard"); echo "</a>";
|
||||
}
|
||||
echo "</p></div>
|
||||
\t";
|
||||
// line 16
|
||||
echo $this->getContext($context, 'body');
|
||||
echo "
|
||||
\t<hr />
|
||||
\t<p class=\"unimportant\" style=\"margin-top:20px;text-align:center;\">Powered by <a href=\"http://tinyboard.org/\">Tinyboard</a> ";
|
||||
// line 18
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "version", array(), "any", false);
|
||||
echo " | <a href=\"http://tinyboard.org/\">Tinyboard</a> Copyright © 2010-2011 Tinyboard Development Group</p>
|
||||
</body>
|
||||
</html>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "page.html";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@ -1,301 +0,0 @@
|
||||
<?php
|
||||
|
||||
/* main.js */
|
||||
class __TwigTemplate_a2b1d87edb1668da86fbefbbc4febe18 extends Twig_Template
|
||||
{
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$context = array_merge($this->env->getGlobals(), $context);
|
||||
|
||||
// line 1
|
||||
echo "function get_cookie(cookie_name)
|
||||
{
|
||||
\tvar results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|\$)');
|
||||
\tif(results)
|
||||
\t\treturn (unescape(results[2]));
|
||||
\telse
|
||||
\t\treturn null;
|
||||
}
|
||||
|
||||
function highlightReply(id)
|
||||
{
|
||||
\tif(window.event !== undefined && event.which == 2) {
|
||||
\t\t// don't highlight on middle click
|
||||
\t\treturn true;
|
||||
\t}
|
||||
\t
|
||||
\tvar divs = document.getElementsByTagName('div');
|
||||
\tfor (var i = 0; i < divs.length; i++)
|
||||
\t{
|
||||
\t\tif (divs[i].className.indexOf('post') != -1)
|
||||
\t\t\tdivs[i].className = divs[i].className.replace(/highlighted/, '');
|
||||
\t}
|
||||
\tif (id) {
|
||||
\t\tpost = document.getElementById('reply_'+id);
|
||||
\t\tif(post)
|
||||
\t\t\tpost.className += ' highlighted';
|
||||
\t}
|
||||
}
|
||||
function focusId(id)
|
||||
{
|
||||
\tdocument.getElementById(id).focus();
|
||||
\tinit();
|
||||
}
|
||||
|
||||
function generatePassword() {
|
||||
\tpass = '';
|
||||
\tchars = '";
|
||||
// line 37
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "genpassword_chars", array(), "any", false);
|
||||
echo "';
|
||||
\tfor(i=0;i<8;i++) {
|
||||
\t\trnd = Math.floor(Math.random() * chars.length);
|
||||
\t\tpass += chars.substring(rnd,rnd + 1);
|
||||
\t}
|
||||
\treturn pass;
|
||||
}
|
||||
|
||||
function dopost(form) {
|
||||
\tlocalStorage.name = form.name.value.replace(/ ##.+\$/, '');
|
||||
\tif(form.email.value != 'sage')
|
||||
\t\tlocalStorage.email = form.email.value;
|
||||
\t
|
||||
\tsaved[document.location] = form.body.value;
|
||||
\tsessionStorage.body = JSON.stringify(saved);
|
||||
\t
|
||||
\treturn form.body.value != \"\" || form.file.value != \"\";
|
||||
}
|
||||
function citeReply(id) {
|
||||
\tbody = document.getElementById('body');
|
||||
\t
|
||||
\tif (document.selection) {
|
||||
\t\t// IE
|
||||
\t\tbody.focus();
|
||||
\t\tsel = document.selection.createRange();
|
||||
\t\tsel.text = '>>' + id + '\\n';
|
||||
\t} else if (body.selectionStart || body.selectionStart == '0') {
|
||||
\t\t// Mozilla
|
||||
\t\tstart = body.selectionStart;
|
||||
\t\tend = body.selectionEnd;
|
||||
\t\tbody.value = body.value.substring(0, start) + '>>' + id + '\\n' + body.value.substring(end, body.value.length);
|
||||
\t} else {
|
||||
\t\t// ???
|
||||
\t\tbody.value += '>>' + id + '\\n';
|
||||
\t}
|
||||
}
|
||||
|
||||
var selectedstyle = '";
|
||||
// line 74
|
||||
echo $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "default_stylesheet", array(), "any", false), 0, array(), "any", false);
|
||||
echo "';
|
||||
var styles = [
|
||||
\t";
|
||||
// line 76
|
||||
$context['_parent'] = (array) $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getContext($context, 'stylesheets'));
|
||||
$context['loop'] = array(
|
||||
'parent' => $context['_parent'],
|
||||
'index0' => 0,
|
||||
'index' => 1,
|
||||
'first' => true,
|
||||
);
|
||||
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
|
||||
$length = count($context['_seq']);
|
||||
$context['loop']['revindex0'] = $length - 1;
|
||||
$context['loop']['revindex'] = $length;
|
||||
$context['loop']['length'] = $length;
|
||||
$context['loop']['last'] = 1 === $length;
|
||||
}
|
||||
foreach ($context['_seq'] as $context['_key'] => $context['stylesheet']) {
|
||||
echo "['";
|
||||
echo $this->getAttribute($this->getContext($context, 'stylesheet'), "name", array(), "any", false);
|
||||
echo "', '";
|
||||
echo $this->getAttribute($this->getContext($context, 'stylesheet'), "uri", array(), "any", false);
|
||||
echo "']";
|
||||
if ((!$this->getAttribute($this->getContext($context, 'loop'), "last", array(), "any", false))) {
|
||||
echo ",
|
||||
\t";
|
||||
}
|
||||
++$context['loop']['index0'];
|
||||
++$context['loop']['index'];
|
||||
$context['loop']['first'] = false;
|
||||
if (isset($context['loop']['length'])) {
|
||||
--$context['loop']['revindex0'];
|
||||
--$context['loop']['revindex'];
|
||||
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stylesheet'], $context['_parent'], $context['loop']);
|
||||
$context = array_merge($_parent, array_intersect_key($context, $_parent));
|
||||
// line 77
|
||||
echo "
|
||||
];
|
||||
var saved = {};
|
||||
|
||||
function changeStyle(x) {
|
||||
\tlocalStorage.stylesheet = styles[x][1];
|
||||
\tdocument.getElementById('stylesheet').href = styles[x][1];
|
||||
\tselectedstyle = styles[x][0];
|
||||
}
|
||||
|
||||
if(localStorage.stylesheet) {
|
||||
\tfor(x=0;x<styles.length;x++) {
|
||||
\t\tif(styles[x][1] == localStorage.stylesheet) {
|
||||
\t\t\tchangeStyle(x);
|
||||
\t\t\tbreak;
|
||||
\t\t}
|
||||
\t}
|
||||
}
|
||||
|
||||
function rememberStuff() {
|
||||
\tif(document.forms.post) {
|
||||
\t\tif(!localStorage.password)
|
||||
\t\t\tlocalStorage.password = generatePassword();
|
||||
\t\tdocument.forms.post.password.value = localStorage.password;
|
||||
\t\t
|
||||
\t\tif(localStorage.name)
|
||||
\t\t\tdocument.forms.post.name.value = localStorage.name;
|
||||
\t\tif(localStorage.email)
|
||||
\t\t\tdocument.forms.post.email.value = localStorage.email;
|
||||
\t\t
|
||||
\t\tif (window.location.hash.indexOf('q') == 1)
|
||||
\t\t\tciteReply(window.location.hash.substring(2));
|
||||
\t\t
|
||||
\t\tif(sessionStorage.body) {
|
||||
\t\t\tsaved = JSON.parse(sessionStorage.body);
|
||||
\t\t\tif(get_cookie('";
|
||||
// line 112
|
||||
echo $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "cookies", array(), "any", false), "js", array(), "any", false);
|
||||
echo "')) {
|
||||
\t\t\t\t// Remove successful posts
|
||||
\t\t\t\tsuccessful = JSON.parse(get_cookie('";
|
||||
// line 114
|
||||
echo $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "cookies", array(), "any", false), "js", array(), "any", false);
|
||||
echo "'));
|
||||
\t\t\t\tfor (var url in successful) {
|
||||
\t\t\t\t\tsaved[url] = null;
|
||||
\t\t\t\t}
|
||||
\t\t\t\tsessionStorage.body = JSON.stringify(saved);
|
||||
\t\t\t\t
|
||||
\t\t\t\tdocument.cookie = '";
|
||||
// line 120
|
||||
echo $this->getAttribute($this->getAttribute($this->getContext($context, 'config'), "cookies", array(), "any", false), "js", array(), "any", false);
|
||||
echo "={};expires=0;path=/;';
|
||||
\t\t\t}
|
||||
\t\t\tif(saved[document.location]) {
|
||||
\t\t\t\tdocument.forms.post.body.value = saved[document.location];
|
||||
\t\t\t}
|
||||
\t\t}
|
||||
\t\t
|
||||
\t\tif(localStorage.body) {
|
||||
\t\t\tdocument.forms.post.body.value = localStorage.body;
|
||||
\t\t\tlocalStorage.body = '';
|
||||
\t\t}
|
||||
\t}
|
||||
}
|
||||
|
||||
function init_expanding() {
|
||||
\tlink = document.getElementsByTagName('a');
|
||||
\tfor ( i in link ) {
|
||||
\t\tif(typeof link[i] == \"object\" && link[i].childNodes[0].src && link[i].className != 'file') {
|
||||
\t\t\tlink[i].onclick = function(e) {
|
||||
\t\t\t\tif(e.which == 2) {
|
||||
\t\t\t\t\treturn true;
|
||||
\t\t\t\t}
|
||||
\t\t\t\tif(!this.tag) {
|
||||
\t\t\t\t\tthis.tag = this.childNodes[0].src;
|
||||
\t\t\t\t\tthis.childNodes[0].src = this.href;
|
||||
\t\t\t\t\tthis.childNodes[0].style.width = 'auto';
|
||||
\t\t\t\t\tthis.childNodes[0].style.height = 'auto';
|
||||
\t\t\t\t\tthis.childNodes[0].style.opacity = '0.4';
|
||||
\t\t\t\t\tthis.childNodes[0].style.filter = 'alpha(opacity=40)';
|
||||
\t\t\t\t\tthis.childNodes[0].onload = function() {
|
||||
\t\t\t\t\t\tthis.style.opacity = '1';
|
||||
\t\t\t\t\t\tthis.style.filter = '';
|
||||
\t\t\t\t\t}
|
||||
\t\t\t\t} else {
|
||||
\t\t\t\t\tthis.childNodes[0].src = this.tag;
|
||||
\t\t\t\t\tthis.childNodes[0].style.width = 'auto';
|
||||
\t\t\t\t\tthis.childNodes[0].style.height = 'auto';
|
||||
\t\t\t\t\tthis.tag = '';
|
||||
\t\t\t\t}
|
||||
\t\t\t\treturn false;
|
||||
\t\t\t}
|
||||
\t\t\t
|
||||
\t\t}
|
||||
\t}
|
||||
}
|
||||
|
||||
function init()
|
||||
{
|
||||
\tnewElement = document.createElement('div');
|
||||
\tnewElement.className = 'styles';
|
||||
\t
|
||||
\tfor(x=0;x<styles.length;x++) {
|
||||
\t\tstyle = document.createElement('a');
|
||||
\t\tstyle.innerHTML = '[' + styles[x][0] + ']';
|
||||
\t\tstyle.href = 'javascript:changeStyle(' + x + ');';
|
||||
\t\tif(selectedstyle == styles[x][0])
|
||||
\t\t\tstyle.className = 'selected';
|
||||
\t\tnewElement.appendChild(style);
|
||||
\t}\t
|
||||
\t
|
||||
\tdocument.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild.nextSibling)
|
||||
\t
|
||||
\tif(document.forms.postcontrols) {
|
||||
\t\tdocument.forms.postcontrols.password.value = localStorage.password;
|
||||
\t}
|
||||
\t
|
||||
\tif(window.location.hash.indexOf('q') != 1 && window.location.hash.substring(1))
|
||||
\t\thighlightReply(window.location.hash.substring(1));
|
||||
\t
|
||||
\t";
|
||||
// line 189
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "inline_expanding", array(), "any", false)) {
|
||||
echo "init_expanding();";
|
||||
}
|
||||
echo "
|
||||
}
|
||||
|
||||
var RecaptchaOptions = {
|
||||
\ttheme : 'clean'
|
||||
};
|
||||
|
||||
window.onload = init;
|
||||
";
|
||||
// line 197
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "google_analytics", array(), "any", false)) {
|
||||
echo "
|
||||
|
||||
var _gaq = _gaq || [];_gaq.push(['_setAccount', '";
|
||||
// line 199
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "google_analytics", array(), "any", false);
|
||||
echo "']);";
|
||||
if ($this->getAttribute($this->getContext($context, 'config'), "google_analytics_domain", array(), "any", false)) {
|
||||
echo "_gaq.push(['_setDomainName', '";
|
||||
echo $this->getAttribute($this->getContext($context, 'config'), "google_analytics_domain", array(), "any", false);
|
||||
echo "'])";
|
||||
}
|
||||
if ((!$this->getAttribute($this->getContext($context, 'config'), "google_analytics_domain", array(), "any", false))) {
|
||||
echo "_gaq.push(['_setDomainName', 'none'])";
|
||||
}
|
||||
echo ";_gaq.push(['_trackPageview']);(function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);})();";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "main.js";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@ -1,76 +0,0 @@
|
||||
<?php
|
||||
|
||||
/* login.html */
|
||||
class __TwigTemplate_bcb357b53ee83d351b20be234a5b0972 extends Twig_Template
|
||||
{
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$context = array_merge($this->env->getGlobals(), $context);
|
||||
|
||||
// line 1
|
||||
if ($this->getContext($context, 'error')) {
|
||||
echo "<h2 style=\"text-align:center\">";
|
||||
echo $this->getContext($context, 'error');
|
||||
echo "</h2>";
|
||||
}
|
||||
// line 2
|
||||
echo "<form action=\"\" method=\"post\">
|
||||
";
|
||||
// line 3
|
||||
if ($this->getContext($context, 'redirect')) {
|
||||
echo "<input type=\"hidden\" name=\"redirect\" value=\"";
|
||||
echo $this->getContext($context, 'redirect');
|
||||
echo "\" />";
|
||||
}
|
||||
// line 4
|
||||
echo "<table style=\"margin-top:25px;\">
|
||||
\t<tr>
|
||||
\t\t<th>
|
||||
\t\t\t";
|
||||
// line 7
|
||||
echo gettext("Username"); // line 8
|
||||
echo "\t\t</th>
|
||||
\t\t<td>
|
||||
\t\t\t<input type=\"text\" name=\"username\" size=\"20\" maxlength=\"30\" value=\"";
|
||||
// line 10
|
||||
echo $this->getContext($context, 'username');
|
||||
echo "\">
|
||||
\t\t</td>
|
||||
\t</tr>
|
||||
\t<tr>
|
||||
\t\t<th>
|
||||
\t\t\t";
|
||||
// line 15
|
||||
echo gettext("Password"); // line 16
|
||||
echo "\t\t</th>
|
||||
\t\t<td>
|
||||
\t\t\t<input type=\"password\" name=\"password\" size=\"20\" maxlength=\"30\" value=\"\">
|
||||
\t\t</td>
|
||||
\t</tr>
|
||||
\t<tr>
|
||||
\t\t<td></td>
|
||||
\t\t<td>
|
||||
\t\t\t<input type=\"submit\" name=\"login\" value=\"";
|
||||
// line 24
|
||||
echo gettext("Continue"); echo "\" />
|
||||
\t\t</td>
|
||||
</table>
|
||||
</form>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "login.html";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user