public function block_content($context, array $blocks = array()) { // line 8 echo "<div id=\"wrap\">\n <div class=\"container\">\n <h1 class=\"title\">"; // line 10 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "judul"), "html", null, true); echo "</h1>\n "; // line 11 if (!array_key_exists("error", $context)) { // line 12 echo " <ul class=\"unstyled inline ul-top\">\n <li><b>"; // line 13 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "mapel"), "nama"), "html", null, true); echo "</b>,</li>\n "; // line 14 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "materi_kelas")); foreach ($context['_seq'] as $context["_key"] => $context["mk"]) { // line 15 echo " <li>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "nama"), "html", null, true); echo ",</li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mk'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 17 echo " <li>Diposting oleh <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "pembuat"), "link_profil"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "pembuat"), "nama"), "html", null, true); echo "</a></li>\n <li>"; // line 18 echo twig_escape_filter($this->env, tgl_jam_indo($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "tgl_posting")), "html", null, true); echo ",</li>\n <li>"; // line 19 echo (isset($context["type"]) ? $context["type"] : null) == "tertulis" ? "Dibaca" : "Diunduh"; echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "views"), "html", null, true); echo " Kali</li>\n <li>"; // line 20 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "jml_komentar"), "html", null, true); echo " Komentar</li>\n </ul>\n "; } // line 23 echo "\n <hr class=\"hr-top\">\n <div class=\"wrap-content\">\n <div class=\"content\">\n "; // line 27 if (!array_key_exists("error", $context)) { // line 28 echo " "; if ((isset($context["type"]) ? $context["type"] : null) == "tertulis") { // line 29 echo " "; echo call_user_func_array($this->env->getFilter('raw_youtube')->getCallable(), array($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "konten"))); echo "\n "; } elseif ((isset($context["type"]) ? $context["type"] : null) == "file") { // line 31 echo " <dl class=\"dl-horizontal\">\n <dt>Name</dt>\n <dd>"; // line 33 echo twig_escape_filter($this->env, twig_test_empty($this->getAttribute($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "file_info"), "name")) ? "noname" : $this->getAttribute($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "file_info"), "name"), "html", null, true); echo "</dd>\n <dt>Size</dt>\n <dd>"; // line 35 echo twig_escape_filter($this->env, byte_format($this->getAttribute($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "file_info"), "size")), "html", null, true); echo "</dd>\n <dt>Modified</dt>\n <dd>"; // line 37 echo twig_escape_filter($this->env, tgl_jam_indo(mdate("%Y-%m-%d %H:%i:%s", $this->getAttribute(isset($context["materifile_info"]) ? $context["materifile_info"] : null, "date"))), "html", null, true); echo "</dd>\n <dt>Mime</dt>\n <dd>"; // line 39 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "file_info"), "mime"), "html", null, true); echo "</dd>\n <dt></dt>\n <dd><br><a href=\""; // line 41 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "download_link"), "html", null, true); echo "\" class=\"btn btn-warning\"><i class=\"icon-download\"></i> Download File</a></dd>\n </dl>\n "; } // line 44 echo "\n <br>\n <div class=\"row-fluid\">\n <div class=\"span8\">\n <h4>\n <i class=\"fa fa-pencil\"></i> Tulis komentar\n <div class=\"pull-right\" style=\"font-size: 14px;\">"; // line 50 echo form_error("komentar"); echo "</div>\n </h4>\n <div class=\"bg-form-komentar\" id=\"form-komentar\">\n <form method=\"post\" action=\""; // line 53 echo twig_escape_filter($this->env, site_url("materi/detail/" . $this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "id")), "html", null, true); echo "\">\n <p><textarea class=\"span12\" id=\"komentar\" name=\"komentar\">"; // line 54 echo set_value("komentar"); echo "</textarea></p>\n <p>\n <button class=\"btn btn-primary pull-right\">Post komentar</button>\n <img src=\""; // line 57 echo twig_escape_filter($this->env, get_url_image_session(get_sess_data("user", "foto"), "medium", get_sess_data("user", "jenis_kelamin")), "html", null, true); echo "\" style=\"height:30px;width:30px; margin-right:5px;\" class=\"img-circle img-polaroid\">\n "; // line 58 echo twig_escape_filter($this->env, get_sess_data("user", "nama"), "html", null, true); echo "\n </p>\n <div class=\"clear\"></div>\n </form>\n </div>\n <br>\n\n "; // line 65 if ($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "jml_komentar") > 0) { // line 66 echo " <h4><i class=\"fa fa-comments\"></i> "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "jml_komentar"), "html", null, true); echo " Komentar</h4>\n\n "; // line 68 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "komentar")); foreach ($context['_seq'] as $context["_key"] => $context["k"]) { // line 69 echo " <div class=\"komentar\" id=\"komentar-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), "html", null, true); echo "\">\n <img src=\""; // line 70 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["k"]) ? $context["k"] : null, "login"), "link_image"), "html", null, true); echo "\" style=\"height:25px;width:25px; margin-left:5px;\" class=\"img-circle img-polaroid pull-right\">\n <p><a href=\""; // line 71 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["k"]) ? $context["k"] : null, "login"), "link_profil"), "html", null, true); echo "\"><b>"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["k"]) ? $context["k"] : null, "login"), "nama"), "html", null, true); echo "</b></a>, <small>"; echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "tgl_posting"), "d F Y"), "html", null, true); echo "</small>, <small><a href=\""; echo twig_escape_filter($this->env, site_url("materi/detail/" . $this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "id") . "/laporkan/" . $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id")), "html", null, true); echo "\" class=\"text-muted iframe-laporkan\"><i class=\"fa fa-bug\"></i> laporkan</a></small></p>\n "; // line 72 echo call_user_func_array($this->env->getFilter('raw_youtube')->getCallable(), array($this->getAttribute(isset($context["k"]) ? $context["k"] : null, "konten"))); echo "\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 75 echo "\n <div style=\"font-size:12px;\">\n "; // line 77 echo $this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "komentar_pagination"); echo "\n </div>\n "; } // line 80 echo " </div>\n <div class=\"span4\">\n <h4><i class=\"fa fa-file\"></i> Materi lainnya</h4>\n <ul class=\"unstyled ul-materi\">\n "; // line 84 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["terkait"]) ? $context["terkait"] : null); foreach ($context['_seq'] as $context["_key"] => $context["t"]) { // line 85 echo " <li>\n <div class=\"materi\">\n <a href=\""; // line 87 echo twig_escape_filter($this->env, site_url("materi/detail/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id")), "html", null, true); echo "\"><i class=\"fa "; echo twig_test_empty($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "file")) ? "fa-file-text" : "fa-file"; echo " img-circle img-polaroid "; echo strlen($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "judul")) > 33 ? "pull-left" : ""; echo "\" style=\"padding:10px; margin-right:10px;\"></i>"; echo $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "judul"); echo "</a>\n </div>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 91 echo "\n "; // line 92 if (twig_test_empty(isset($context["terkait"]) ? $context["terkait"] : null)) { // line 93 echo " <div class=\"alert alert-info\">Tidak ada materi terkait</div>\n "; } // line 95 echo " </ul>\n </div>\n </div>\n\n "; } else { // line 100 echo " <div class=\"alert alert-danger\">\n <h3>"; // line 101 echo twig_escape_filter($this->env, isset($context["error"]) ? $context["error"] : null, "html", null, true); echo "</h3>\n </div>\n "; } // line 104 echo " </div>\n </div>\n </div>\n</div>\n"; }
public function block_content($context, array $blocks = array()) { // line 55 echo "<div id=\"wrap\">\n <div class=\"container\">\n <div class=\"row-fluid\">\n <div class=\"span9\">\n <h1 class=\"title\">"; // line 59 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "judul"), "html", null, true); echo "</h1>\n </div>\n <div class=\"span3\">\n <ul class=\"unstyled inline pull-right user-info\">\n <li><b>"; // line 63 echo twig_escape_filter($this->env, nama_panggilan(get_sess_data("user", "nama")), "html", null, true); echo "</b></li>\n <li><img src=\""; // line 64 echo twig_escape_filter($this->env, get_url_image_session(get_sess_data("user", "foto"), "medium", get_sess_data("user", "jenis_kelamin")), "html", null, true); echo "\" class=\"nav-avatar img-polaroid img-circle\" /></li>\n </ul>\n </div>\n </div>\n <hr class=\"hr-top\">\n <div class=\"wrap-content\">\n <div class=\"content\">\n <div class=\"row-fluid\">\n "; // line 72 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") != 1) { // line 73 echo " <div class=\"span8\">\n <b>Informasi : </b><br>\n "; // line 75 echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "info"); echo "\n </div>\n <div class=\"span4\">\n <div class=\"box-clock\" data-spy=\"affix\" data-offset-top=\"60\" data-offset-bottom=\"200\">\n <b>Siswa waktu : </b><br>\n <div id=\"clock\"></div>\n </div>\n </div>\n "; } else { // line 84 echo " <div class=\"span6\">\n <b>Informasi : </b><br>\n "; // line 86 echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "info"); echo "\n <br>\n <small>\n <b>Ekstensi file :</b><br>\n doc, zip, rar, txt, docx, xls, xlsx, pdf, tar, gz, jpg, jpeg, JPG, JPEG, png, ppt, pptx\n </small>\n </div>\n <div class=\"span6\">\n <p><b>Upload file tugas anda : </b></p>\n <div class=\"well well-sm\">\n "; // line 96 echo form_open_multipart("tugas/submit_upload/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id")); echo "\n <input type=\"file\" name=\"userfile\">\n <hr class=\"hr1\">\n <div class=\"row-fluid\">\n <div class=\"span3\">\n <button type=\"submit\" class=\"btn btn-primary\">Upload</button>\n </div>\n <div class=\"span9\">\n "; // line 104 echo get_flashdata("upload"); echo "\n </div>\n </div>\n "; // line 107 echo form_close(); echo "\n </div>\n </div>\n "; } // line 111 echo " </div>\n\n "; // line 113 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3) { // line 114 echo " <table class=\"table\">\n <thead>\n <tr>\n <th width=\"5%\">No</th>\n <th>Pertanyaan "; // line 118 echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3 ? " dan Pilihan" : ""; echo "</th>\n </tr>\n </thead>\n <tbody>\n "; // line 122 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "pertanyaan")); $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["p"]) { // line 123 echo " <tr id=\"pertanyaan-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\">\n <td><b>"; // line 124 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index"), "html", null, true); echo ".</b></td>\n <td>\n <div class=\"pertanyaan\">\n "; // line 127 echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan")); echo "\n </div>\n\n <div id=\"pilihan-"; // line 130 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\">\n <table class=\"table table-condensed table-striped\">\n <tbody>\n "; // line 133 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan")); foreach ($context['_seq'] as $context["_key"] => $context["pil"]) { // line 134 echo " <tr>\n <td width=\"5%\"><label class=\"label-radio\"><input "; // line 135 echo is_pilih($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id")) ? "checked" : ""; echo " type=\"radio\" name=\"pilihan-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\" value=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan"), "html", null, true); echo "\" onclick=\"update_ganda("; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id"), "html", null, true); echo ", "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo ", "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id"), "html", null, true); echo ")\" class=\"radio\"> "; echo twig_escape_filter($this->env, get_abjad($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan")), "html", null, true); echo "</label></td>\n <td>\n "; // line 137 echo html_entity_decode($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "konten")); echo "\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pil'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 141 echo " </tbody>\n </table>\n </div>\n\n </td>\n </tr>\n\n "; ++$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['p'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 149 echo " </tbody>\n </table>\n\n <div class=\"well well-sm\">\n <a class=\"btn btn-large btn-primary pull-right\" href=\""; // line 153 echo twig_escape_filter($this->env, site_url("tugas/finish/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id")), "html", null, true); echo "\" onclick=\"return confirm('Anda yakin ingin mengahiri pengerjaan tugas ini?')\">Selesai</a>\n <p class=\"p-info\">Mohon periksa kembali jawaban anda sebelum menekan tombol <b>selesai</b>.</p>\n <br>\n </div>\n\n "; } // line 159 echo "\n\n "; // line 161 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 2) { // line 162 echo " "; echo form_open("tugas/submit_essay/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id")); echo "\n <input type=\"hidden\" id=\"str_id\" value=\""; // line 163 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "str_id"), "html", null, true); echo "\">\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"5%\">No</th>\n <th>Pertanyaan "; // line 168 echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3 ? " dan Pilihan" : ""; echo "</th>\n </tr>\n </thead>\n <tbody>\n "; // line 172 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "pertanyaan")); $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["p"]) { // line 173 echo " <tr id=\"pertanyaan-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\">\n <td><b>"; // line 174 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index"), "html", null, true); echo ".</b></td>\n <td>\n <div class=\"pertanyaan\">\n "; // line 177 echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan")); echo "\n </div>\n\n <textarea name=\"jawaban["; // line 180 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "]\" id=\"jawaban-"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true); echo "\" style=\"width:100%; height:300px;\">"; echo get_jawaban($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")); echo "</textarea>\n\n </td>\n </tr>\n\n "; ++$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['p'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 186 echo " </tbody>\n </table>\n\n <div class=\"well well-sm\">\n <button type=\"submit\" class=\"btn btn-large btn-primary pull-right\" onclick=\"return confirm('Anda yakin ingin mengahiri pengerjaan tugas ini?')\">Selesai</button>\n <p class=\"p-info\">Mohon periksa kembali jawaban anda sebelum menekan tombol <b>selesai</b>.</p>\n <br>\n </div>\n "; // line 194 echo form_close(); echo "\n\n "; } // line 197 echo "\n </div>\n </div>\n </div>\n</div>\n"; // line 202 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") != 1) { // line 203 echo "<input type=\"hidden\" id=\"tugas_id\" value=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id"), "html", null, true); echo "\">\n<input type=\"hidden\" id=\"final_date\" value=\""; // line 204 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "selesai"), "html", null, true); echo "\">\n<input type=\"hidden\" id=\"finish_url\" value=\""; // line 205 echo twig_escape_filter($this->env, site_url("tugas/finish/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id")), "html", null, true); echo "\">\n"; } }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>"; // line 6 $this->displayBlock('title', $context, $blocks); echo "</title>\n <link type=\"text/css\" href=\""; // line 7 echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true); echo "bootstrap/css/bootstrap.min.css\" rel=\"stylesheet\">\n <link type=\"text/css\" href=\""; // line 8 echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true); echo "bootstrap/css/bootstrap-responsive.min.css\" rel=\"stylesheet\">\n <link type=\"text/css\" href=\""; // line 9 echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true); echo "css/theme.css\" rel=\"stylesheet\">\n <link type=\"text/css\" href=\""; // line 10 echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true); echo "images/icons/css/font-awesome.css\" rel=\"stylesheet\">\n <link type=\"text/css\" href=\""; // line 11 echo twig_escape_filter($this->env, base_url("assets/comp/pace/flash.css"), "html", null, true); echo "\" rel=\"stylesheet\">\n <link type=\"text/css\" href=\""; // line 12 echo twig_escape_filter($this->env, base_url("assets/comp/offline/offline-theme-chrome.css"), "html", null, true); echo "\" rel=\"stylesheet\">\n <script type=\"text/javascript\" src=\"//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML\"></script>\n "; // line 14 $this->displayBlock('css', $context, $blocks); // line 15 echo " "; echo isset($context["comp_css"]) ? $context["comp_css"] : null; echo "\n <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\""; // line 16 echo twig_escape_filter($this->env, isset($context["favicon_url"]) ? $context["favicon_url"] : null, "html", null, true); echo "\">\n </head>\n <body style=\"display: none;\">\n <div class=\"navbar navbar-fixed-top\">\n <div class=\"navbar-inner\">\n <div class=\"container\">\n <a class=\"btn btn-navbar\" data-toggle=\"collapse\" data-target=\".navbar-inverse-collapse\">\n <i class=\"icon-reorder shaded\"></i>\n </a>\n <a class=\"brand\" href=\""; // line 25 echo twig_escape_filter($this->env, isset($context["site_url"]) ? $context["site_url"] : null, "html", null, true); echo "\">\n <img src=\""; // line 26 echo twig_escape_filter($this->env, isset($context["logo_url_medium"]) ? $context["logo_url_medium"] : null, "html", null, true); echo "\"> "; echo twig_escape_filter($this->env, isset($context["site_name"]) ? $context["site_name"] : null, "html", null, true); echo "\n </a>\n <div class=\"nav-collapse collapse navbar-inverse-collapse\">\n <form class=\"navbar-search pull-left input-append\" method=\"get\" action=\""; // line 29 echo twig_escape_filter($this->env, site_url("welcome/search"), "html", null, true); echo "\">\n <input type=\"text\" class=\"span3\" name=\"q\">\n <button class=\"btn\" type=\"submit\">\n <i class=\"icon-search\"></i>\n </button>\n </form>\n <ul class=\"nav pull-right\">\n "; // line 36 if (is_admin()) { // line 37 echo " <li><a href=\""; echo twig_escape_filter($this->env, site_url("welcome/donation"), "html", null, true); echo "\">DONASI</a></li>\n "; } // line 39 echo " <li class=\"nav-user dropdown\"><a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n "; // line 40 echo twig_escape_filter($this->env, nama_panggilan(get_sess_data("user", "nama")), "html", null, true); echo "\n\n <span class=\"pull-right\">\n <img src=\""; // line 43 echo twig_escape_filter($this->env, get_url_image_session(get_sess_data("user", "foto"), "medium", get_sess_data("user", "jenis_kelamin")), "html", null, true); echo "\" class=\"nav-avatar img-polaroid\" />\n <b class=\"caret\"></b></a>\n </span>\n <ul class=\"dropdown-menu\">\n "; // line 47 if (is_admin()) { // line 48 echo " <li>"; echo anchor("pengajar/detail/" . get_sess_data("user", "status_id") . "/" . get_sess_data("user", "id"), "Detail Profil", array("title" => "Detail Profil")); echo "</li>\n "; } // line 50 echo "\n "; // line 51 if (is_pengajar()) { // line 52 echo " <li>"; echo anchor("login/pp", "Profil & Akun Login"); echo "</li>\n "; } // line 54 echo "\n "; // line 55 if (is_siswa()) { // line 56 echo " <li>"; echo anchor("login/pp", "Profil & Akun Login"); echo "</li>\n "; } // line 58 echo "\n <li><a href=\""; // line 59 echo twig_escape_filter($this->env, site_url("login/logout"), "html", null, true); echo "\">Logout</a></li>\n </ul>\n </li>\n </ul>\n </div>\n <!-- /.nav-collapse -->\n </div>\n </div>\n <!-- /navbar-inner -->\n </div>\n\n <!-- /navbar -->\n <div class=\"wrapper\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"span3\">\n <div class=\"sidebar\">\n "; // line 76 if (is_admin()) { // line 77 echo " <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 78 echo twig_escape_filter($this->env, site_url(), "html", null, true); echo "\"><i class=\"menu-icon icon-home\"></i>Beranda</a></li>\n <li><a href=\""; // line 79 echo twig_escape_filter($this->env, site_url("pengumuman"), "html", null, true); echo "\"><i class=\"menu-icon icon-bullhorn\"></i>Pengumuman</a></li>\n <li><a href=\""; // line 80 echo twig_escape_filter($this->env, site_url("message"), "html", null, true); echo "\"><i class=\"menu-icon icon-comments\"></i>Pesan <span id=\"count-new-msg\"></span></a></li>\n </ul>\n\n <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 84 echo twig_escape_filter($this->env, site_url("siswa"), "html", null, true); echo "\"><i class=\"menu-icon icon-group\"></i>Siswa </a></li>\n <li><a href=\""; // line 85 echo twig_escape_filter($this->env, site_url("pengajar"), "html", null, true); echo "\"><i class=\"menu-icon icon-user\"></i>Pengajar </a></li>\n </ul>\n\n <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 89 echo twig_escape_filter($this->env, site_url("tugas?clear_filter=true"), "html", null, true); echo "\"><i class=\"menu-icon icon-tasks\"></i>Tugas </a></li>\n <li><a href=\""; // line 90 echo twig_escape_filter($this->env, site_url("materi?clear_filter=true"), "html", null, true); echo "\"><i class=\"menu-icon icon-book\"></i>Materi </a></li>\n <li><a href=\""; // line 91 echo twig_escape_filter($this->env, site_url("materi/komentar"), "html", null, true); echo "\"><i class=\"menu-icon icon-comments\"></i>Komentar Materi </a></li>\n </ul>\n\n <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 95 echo twig_escape_filter($this->env, site_url("kelas/mapel_kelas"), "html", null, true); echo "\"><i class=\"menu-icon icon-paste\"></i>Matapelajaran Kelas </a></li>\n <li><a href=\""; // line 96 echo twig_escape_filter($this->env, site_url("kelas"), "html", null, true); echo "\"><i class=\"menu-icon icon-tasks\"></i>Manajemen Kelas </a></li>\n <li><a href=\""; // line 97 echo twig_escape_filter($this->env, site_url("mapel"), "html", null, true); echo "\"><i class=\"menu-icon icon-book\"></i>Manajemen Matapelajaran </a></li>\n </ul>\n\n <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 101 echo twig_escape_filter($this->env, site_url("welcome/pengaturan"), "html", null, true); echo "\"><i class=\"menu-icon icon-wrench\"></i>Pengaturan</a></li>\n <li><a href=\""; // line 102 echo twig_escape_filter($this->env, site_url("email"), "html", null, true); echo "\"><i class=\"menu-icon icon-envelope\"></i>Email Template</a></li>\n </ul>\n "; } // line 105 echo "\n "; // line 106 if (is_pengajar()) { // line 107 echo " <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 108 echo twig_escape_filter($this->env, site_url(), "html", null, true); echo "\"><i class=\"menu-icon icon-home\"></i>Beranda</a></li>\n <li><a href=\""; // line 109 echo twig_escape_filter($this->env, site_url("pengumuman"), "html", null, true); echo "\"><i class=\"menu-icon icon-bullhorn\"></i>Pengumuman</a></li>\n <li><a href=\""; // line 110 echo twig_escape_filter($this->env, site_url("message"), "html", null, true); echo "\"><i class=\"menu-icon icon-comments\"></i>Pesan <span id=\"count-new-msg\"></span></a></li>\n <li><a href=\""; // line 111 echo twig_escape_filter($this->env, site_url("login/pp"), "html", null, true); echo "\"><i class=\"menu-icon icon-user\"></i>Profilku</a></li>\n <li><a href=\""; // line 112 echo twig_escape_filter($this->env, site_url("pengajar/jadwal"), "html", null, true); echo "\"><i class=\"menu-icon icon-tasks\"></i>Jadwal Mengajar </a></li>\n </ul>\n\n <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 116 echo twig_escape_filter($this->env, site_url("tugas?clear_filter=true"), "html", null, true); echo "\"><i class=\"menu-icon icon-tasks\"></i>Tugas </a></li>\n <li><a href=\""; // line 117 echo twig_escape_filter($this->env, site_url("materi?clear_filter=true"), "html", null, true); echo "\"><i class=\"menu-icon icon-book\"></i>Materi </a></li>\n <li><a href=\""; // line 118 echo twig_escape_filter($this->env, site_url("materi/komentar"), "html", null, true); echo "\"><i class=\"menu-icon icon-comments\"></i>Komentar Materi </a></li>\n </ul>\n\n <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 122 echo twig_escape_filter($this->env, site_url("pengajar/filter"), "html", null, true); echo "\"><i class=\"menu-icon icon-search\"></i>Filter Pengajar </a></li>\n <li><a href=\""; // line 123 echo twig_escape_filter($this->env, site_url("siswa/filter"), "html", null, true); echo "\"><i class=\"menu-icon icon-search\"></i>Filter Siswa </a></li>\n </ul>\n "; } // line 126 echo "\n "; // line 127 if (is_siswa()) { // line 128 echo " <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 129 echo twig_escape_filter($this->env, site_url(), "html", null, true); echo "\"><i class=\"menu-icon icon-home\"></i>Beranda</a></li>\n <li><a href=\""; // line 130 echo twig_escape_filter($this->env, site_url("message"), "html", null, true); echo "\"><i class=\"menu-icon icon-comments\"></i>Pesan <span id=\"count-new-msg\"></span></a></li>\n <li><a href=\""; // line 131 echo twig_escape_filter($this->env, site_url("login/pp"), "html", null, true); echo "\"><i class=\"menu-icon icon-user\"></i>Profilku</a></li>\n <li><a href=\""; // line 132 echo twig_escape_filter($this->env, site_url("siswa/jadwal_mapel"), "html", null, true); echo "\"><i class=\"menu-icon icon-tasks\"></i>Jadwal Matapelajaran</a></li>\n </ul>\n\n <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 136 echo twig_escape_filter($this->env, site_url("tugas?clear_filter=true"), "html", null, true); echo "\"><i class=\"menu-icon icon-tasks\"></i>Tugas </a></li>\n <li><a href=\""; // line 137 echo twig_escape_filter($this->env, site_url("materi?clear_filter=true"), "html", null, true); echo "\"><i class=\"menu-icon icon-book\"></i>Materi </a></li>\n <li><a href=\""; // line 138 echo twig_escape_filter($this->env, site_url("materi/komentar"), "html", null, true); echo "\"><i class=\"menu-icon icon-comments\"></i>Komentar Materi </a></li>\n </ul>\n\n <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 142 echo twig_escape_filter($this->env, site_url("pengajar/filter"), "html", null, true); echo "\"><i class=\"menu-icon icon-search\"></i>Filter Pengajar </a></li>\n <li><a href=\""; // line 143 echo twig_escape_filter($this->env, site_url("siswa/filter"), "html", null, true); echo "\"><i class=\"menu-icon icon-search\"></i>Filter Siswa </a></li>\n </ul>\n "; } // line 146 echo "\n <!--/.widget-nav-->\n <ul class=\"widget widget-menu unstyled\">\n <li><a href=\""; // line 149 echo twig_escape_filter($this->env, site_url("login/logout"), "html", null, true); echo "\"><i class=\"menu-icon icon-signout\"></i>Logout </a></li>\n </ul>\n </div>\n <!--/.sidebar-->\n </div>\n <!--/.span3-->\n <div class=\"span9\">\n <div class=\"content\">\n "; // line 157 $this->displayBlock('content', $context, $blocks); // line 158 echo " </div>\n </div>\n <!--/.span9-->\n </div>\n </div>\n <!--/.container-->\n </div>\n <!--/.wrapper-->\n <div class=\"footer\">\n <div class=\"container\">\n <center>\n <b class=\"copyright\">"; // line 169 echo isset($context["copyright"]) ? $context["copyright"] : null; echo " </b> All rights reserved.<br>\n "; // line 170 echo isset($context["version"]) ? $context["version"] : null; echo " | Page loaded in "; echo twig_escape_filter($this->env, isset($context["elapsed_time"]) ? $context["elapsed_time"] : null, "html", null, true); echo " seconds.\n </center>\n </div>\n </div>\n <script type=\"text/javascript\">\n var site_url = \""; // line 175 echo twig_escape_filter($this->env, site_url(), "html", null, true); echo "\";\n var base_url = \""; // line 176 echo twig_escape_filter($this->env, base_url(), "html", null, true); echo "\";\n </script>\n <script data-pace-options='{ \"ajax\": false }' src=\""; // line 178 echo twig_escape_filter($this->env, base_url("assets/comp/pace/pace.min.js"), "html", null, true); echo "\" type=\"text/javascript\"></script>\n <script src=\""; // line 179 echo twig_escape_filter($this->env, base_url("assets/comp/offline/offline.min.js"), "html", null, true); echo "\" type=\"text/javascript\"></script>\n <script src=\""; // line 180 echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true); echo "scripts/jquery-1.9.1.min.js\" type=\"text/javascript\"></script>\n <script src=\""; // line 181 echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true); echo "scripts/jquery-ui-1.10.1.custom.min.js\" type=\"text/javascript\"></script>\n <script src=\""; // line 182 echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true); echo "bootstrap/js/bootstrap.min.js\" type=\"text/javascript\"></script>\n "; // line 183 echo isset($context["comp_js"]) ? $context["comp_js"] : null; echo "\n <script src=\""; // line 184 echo twig_escape_filter($this->env, isset($context["base_url_theme"]) ? $context["base_url_theme"] : null, "html", null, true); echo "scripts/script.js\" type=\"text/javascript\"></script>\n "; // line 185 $this->displayBlock('js', $context, $blocks); // line 186 echo " <script type=\"text/javascript\">\n \$( document ).ready(function() {\n \$(\"body\").show();\n });\n </script>\n </body>\n</html>\n"; }