Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
almazary committed Aug 26, 2015
1 parent 6d7a28e commit b394c5e
Show file tree
Hide file tree
Showing 7 changed files with 530 additions and 6 deletions.
@@ -0,0 +1,164 @@
<?php

/* list-inbox.html */
class __TwigTemplate_0e76ab62e07afcd72ffe171409b0a6dbbb650bf91e8a072a4e9ac9dcbf44706d extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);

$this->parent = $this->env->loadTemplate("layout-private.html");

$this->blocks = array(
'title' => array($this, 'block_title'),
'content' => array($this, 'block_content'),
);
}

protected function doGetParent(array $context)
{
return "layout-private.html";
}

protected function doDisplay(array $context, array $blocks = array())
{
$this->parent->display($context, array_merge($this->blocks, $blocks));
}

// line 3
public function block_title($context, array $blocks = array())
{
// line 4
echo "Manajemen Kelas - ";
$this->displayParentBlock("title", $context, $blocks);
echo "
";
}

// line 7
public function block_content($context, array $blocks = array())
{
// line 8
echo "<div class=\"module message\">
<div class=\"module-head\">
<h3>Pesan</h3>
</div>
<div class=\"module-body\">
<div class=\"module-option clearfix\">
";
// line 14
echo get_flashdata("msg");
echo "
<div class=\"pull-left\">
<div class=\"btn-group\">
<button class=\"btn\">
Inbox</button>
<button class=\"btn dropdown-toggle\" data-toggle=\"dropdown\">
<span class=\"caret\"></span>
</button>
<ul class=\"dropdown-menu\">
<li><a href=\"#\">Inbox (";
// line 24
echo twig_escape_filter($this->env, (isset($context["count_unread"]) ? $context["count_unread"] : null), "html", null, true);
echo ")</a></li>
<li><a href=\"#\">Outbox </a></li>
</ul>
</div>
</div>
<div class=\"pull-right\">
<a href=\"";
// line 30
echo twig_escape_filter($this->env, site_url("message/create/"), "html", null, true);
echo "\" class=\"btn btn-primary\"><i class=\"icon-pencil\"></i> Tulis pesan</a>
</div>
</div>
<div class=\"module-body table\">
<table class=\"table table-message\">
<tbody>
<tr class=\"heading\">
<td class=\"cell-check\">
<input type=\"checkbox\" class=\"inbox-checkbox\">
</td>
<td class=\"cell-author hidden-phone hidden-tablet\">
Pengirim
</td>
<td class=\"cell-title\">
Pesan
</td>
<td class=\"cell-time align-right\">
Tanggal
</td>
</tr>
";
// line 50
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable((isset($context["inbox"]) ? $context["inbox"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["d"]) {
// line 51
echo " <tr class=\"";
echo ((($this->getAttribute((isset($context["d"]) ? $context["d"] : null), "opened") == 0)) ? ("unread") : (""));
echo " clickable-row\" data-href=\"";
echo twig_escape_filter($this->env, site_url(((("message/detail/" . $this->getAttribute((isset($context["d"]) ? $context["d"] : null), "id")) . "#msg-") . $this->getAttribute((isset($context["d"]) ? $context["d"] : null), "id"))), "html", null, true);
echo "\">
<td class=\"cell-check\">
<input type=\"checkbox\" class=\"inbox-checkbox\">
</td>
<td class=\"cell-author hidden-phone hidden-tablet\">
<a href=\"";
// line 56
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["d"]) ? $context["d"] : null), "sender"), "profil"), "link_profil"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["d"]) ? $context["d"] : null), "sender"), "profil"), "nama"), "html", null, true);
echo "</a>
</td>
<td class=\"cell-title\">
";
// line 59
echo twig_escape_filter($this->env, ellipsize($this->getAttribute((isset($context["d"]) ? $context["d"] : null), "content"), "32", ".5"), "html", null, true);
echo "
</td>
<td class=\"cell-time align-right\">
";
// line 62
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["d"]) ? $context["d"] : null), "date"), "html", null, true);
echo "
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['d'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 66
echo "
</tbody>
</table>
</div>
<div class=\"module-foot\">
";
// line 71
echo (isset($context["pagination"]) ? $context["pagination"] : null);
echo "
</div>
</div>
</div>
";
}

public function getTemplateName()
{
return "list-inbox.html";
}

public function isTraitable()
{
return false;
}

public function getDebugInfo()
{
return array ( 141 => 71, 134 => 66, 124 => 62, 118 => 59, 110 => 56, 99 => 51, 95 => 50, 72 => 30, 63 => 24, 50 => 14, 42 => 8, 39 => 7, 32 => 4, 29 => 3,);
}
}
@@ -0,0 +1,138 @@
<?php

/* tulis-pesan.html */
class __TwigTemplate_35e5a628a8ea04528ec1abe306796622093d88686157145f6e5721b5e7920beb extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);

$this->parent = $this->env->loadTemplate("layout-private.html");

$this->blocks = array(
'title' => array($this, 'block_title'),
'content' => array($this, 'block_content'),
);
}

protected function doGetParent(array $context)
{
return "layout-private.html";
}

protected function doDisplay(array $context, array $blocks = array())
{
$this->parent->display($context, array_merge($this->blocks, $blocks));
}

// line 3
public function block_title($context, array $blocks = array())
{
// line 4
echo "Tulis pesan - ";
$this->displayParentBlock("title", $context, $blocks);
echo "
";
}

// line 7
public function block_content($context, array $blocks = array())
{
// line 8
echo "<div class=\"module\">
<div class=\"module-head\">
<h3>";
// line 10
echo anchor("message", "Pesan");
echo " / Tulis</h3>
</div>
<div class=\"module-body\">
";
// line 13
echo get_flashdata("msg");
echo "
";
// line 15
echo form_open_multipart(("message/create/" . (((!twig_test_empty((isset($context["login"]) ? $context["login"] : null)))) ? ($this->getAttribute((isset($context["login"]) ? $context["login"] : null), "id")) : (""))), array("class" => "form-horizontal row-fluid"));
echo "
<div class=\"control-group\">
<label class=\"control-label\">Penerima <span class=\"text-error\">*</span></label>
<div class=\"controls\">
";
// line 19
if (twig_test_empty((isset($context["login"]) ? $context["login"] : null))) {
// line 20
echo " <input type=\"text\" name=\"penerima\" id=\"penerima\" class=\"span8\" value=\"";
echo twig_escape_filter($this->env, html_entity_decode(set_value("penerima")), "html", null, true);
echo "\">
<br>";
// line 21
echo form_error("penerima");
echo "
";
} else {
// line 23
echo " <div style=\"margin-top: 5px;\"><b>";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["login"]) ? $context["login"] : null), "profil"), "nama"), "html", null, true);
echo " </b><";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["login"]) ? $context["login"] : null), "username"), "html", null, true);
echo "></div>
<input type=\"hidden\" name=\"penerima\" value=\"";
// line 24
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["login"]) ? $context["login"] : null), "profil"), "nama"), "html", null, true);
echo " <";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["login"]) ? $context["login"] : null), "username"), "html", null, true);
echo ">\">
";
}
// line 26
echo " </div>
</div>
<div class=\"control-group\">
<label class=\"control-label\">Isi Pesan <span class=\"text-error\">*</span></label>
<div class=\"controls\">
<textarea name=\"content\" id=\"content\" style=\"height:300px;width:100%;\">";
// line 31
echo set_value("content");
echo "</textarea>
";
// line 32
echo form_error("content");
echo "
</div>
</div>
<div class=\"control-group\">
<div class=\"controls\">
<button type=\"submit\" class=\"btn btn-primary\">Kirim</button>
<a href=\"";
// line 38
echo twig_escape_filter($this->env, site_url("message"), "html", null, true);
echo "\" class=\"btn btn-default\">Batal</a>
</div>
</div>
";
// line 41
echo form_close();
echo "
</div>
</div>
";
}

public function getTemplateName()
{
return "tulis-pesan.html";
}

public function isTraitable()
{
return false;
}

public function getDebugInfo()
{
return array ( 116 => 41, 110 => 38, 101 => 32, 97 => 31, 90 => 26, 83 => 24, 76 => 23, 71 => 21, 66 => 20, 64 => 19, 57 => 15, 52 => 13, 46 => 10, 42 => 8, 39 => 7, 32 => 4, 29 => 3,);
}
}

0 comments on commit b394c5e

Please sign in to comment.