public function block_body_class($context, array $blocks = array()) { $__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4 = $this->env->getExtension("native_profiler"); $__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4->enter($__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body_class")); echo twig_escape_filter($this->env, "new new-" . twig_lower_filter($this->env, $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array())), "html", null, true); $__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4->leave($__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<script>\n var \$table = \$('#table');\n var extendColData = [];\n var initResponse;\n\n \$(document).ready(function () {\n \$(\"#tableDiv\").show();\n iniFillTableData();\n });\n\n function sortMyUsername(initResponse) {\n var jsonString = JSON.parse(initResponse);\n var filterUsers = [];\n \n var name = '"; // line 15 echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true); echo "';\n for (var i = 0; i < jsonString.users.length; i++) {\n var tempUser = jsonString.users[i];\n if (name.toLowerCase() === tempUser.username.toLowerCase()) {\n filterUsers.push(tempUser);\n }\n }\n for (var i = 0; i < jsonString.users.length; i++) {\n var tempUser = jsonString.users[i];\n if (name.toLowerCase() !== tempUser.username.toLowerCase()) {\n filterUsers.push(tempUser);\n }\n }\n var filterOpportunitiesArray = {'users': filterUsers};\n var jsonStr = JSON.stringify(filterOpportunitiesArray);\n return jsonStr;\n }\n\n function iniFillTableData() {\n \$table.bootstrapTable('showLoading');\n var data = '"; // line 35 echo twig_escape_filter($this->env, isset($context["userArray"]) ? $context["userArray"] : $this->getContext($context, "userArray"), "html", null, true); echo "';\n var newString = data.replace(/"/g, '\"');\n initResponse = newString;\n //var newString = JSON.parse(data);\n \$table.bootstrapTable('hideLoading');\n \$table.bootstrapTable('append', convertData(sortMyUsername(newString)));\n }\n\n function refreshTable() {\n \$table.bootstrapTable('removeAll');\n fillTableData();\n }\n\n function fillTableData() {\n \$table.bootstrapTable('showLoading');\n \$.post('"; // line 50 echo $this->env->getExtension('routing')->getPath("login_login_userTableData"); echo "', null,\n function (response) {\n if (response) {\n \$table.bootstrapTable('hideLoading');\n \$table.bootstrapTable('append', convertData(sortMyUsername(response)));\n } else {\n\n }\n }\n );\n }\n \n function storePageSize(size) {\n \$.post('"; // line 63 echo $this->env->getExtension('routing')->getPath("login_login_saveconfig"); echo "',\n {name: 'userview', value: size},\n function (response) {\n if (response !== \"false\") {\n\n } else {\n console.log(\"error occured in getting the manage view number in contacts\", response);\n }\n });\n }\n\n function checkAndSetValue(value, blankValue, scale, pre) {\n if (value === '' || value === null) {\n return blankValue;\n } else {\n if (pre === true) {\n return scale + '' + value;\n } else {\n return value + '' + scale;\n }\n }\n }\n\n function detailFormatter(index, row) {\n\n var title = checkAndSetValue(row.title, '-', '', true);\n var company = checkAndSetValue(row.company, '-', '', true);\n var email = checkAndSetValue(row.email, '-', '', true);\n var telephone = checkAndSetValue(row.telephone, '-', '', true);\n var cellphone = checkAndSetValue(row.cellphone, '-', '', true);\n\n var originator = checkAndSetValue(row.originator, '-', '%', false);\n var nonOriginator = checkAndSetValue(row.nonOriginator, '-', '%', false);\n var earningGoals = checkAndSetValue(row.earningGoals, '-', '\$', true);\n var drawAgainstCommission = checkAndSetValue(row.drawAgainstCommission, '-', '\$', true);\n var dob = checkAndSetValue(row.dob, '-', '', true);\n\n if (dob !== '-') {\n var mdate = new Date(dob);\n var month = 1;\n if ((mdate.getMonth() + 1) < 10) {\n month = '0' + (mdate.getMonth() + 1);\n } else {\n month = mdate.getMonth() + 1;\n }\n var day = 1;\n if ((mdate.getDate()) < 10) {\n day = '0' + (mdate.getDate());\n } else {\n day = mdate.getDate();\n }\n var dob = month + '/' + day + '/' + mdate.getFullYear();\n }\n\n var html = [];\n html.push('<div class\"row\">' +\n '<div class=\"col-xs-4\">' +\n '<table class=\"table\" style=\"margin-left:42px; border: none !important;line-height: 5px;background-color: #fbfbfb;\">' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;line-height: 5px;width:30%\"><small>Title</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + title + '</small></td>' +\n '</tr>' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>Company</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + company + '</small></td>' +\n '</tr>' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>Email</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + email + '</small></td>' +\n '</tr>' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>Telephone</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + telephone + '</small></td>' +\n '</tr>' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>Cell Phone</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + cellphone + '</small></td>' +\n '</tr>' +\n '</table>' +\n '</div>' +\n '<div class=\"col-xs-4\">' +\n '<table class=\"table\" style=\"margin-left:22px; border: none !important;line-height: 5px;background-color: #fbfbfb;\">' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;line-height: 5px;width:60%\"><small>Commissions Originator</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + originator + '</small></td>' +\n '</tr>' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>Commissions Non-Originator</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + nonOriginator + '</small></td>' +\n '</tr>' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>Earning Goals</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + earningGoals + '</small></td>' +\n '</tr>' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>Draw Against Commissions</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + drawAgainstCommission + '</small></td>' +\n '</tr>' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>DOB</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + dob + '</small></td>' +\n '</tr>' +\n '</table>' +\n '</div>' +\n '</div>');\n //html.push('<div class\"row\">' + index + '</div>');\n \$.each(row, function (key, value) {\n //html.push('<p><b>' + key + ':</b> ' + value + '</p>');\n });\n return html.join('');\n }\n\n function convertData(response) {\n var jsonString = JSON.parse(response);\n extendColData = [];\n\n var startId = 1,\n rows = [];\n\n "; // line 184 echo " for (var i = 0; i < jsonString.users.length; i++) {\n var tempUser = jsonString.users[i];\n\n extendColData.push({\n });\n \n var editPath = '"; // line 190 echo $this->env->getExtension('routing')->getPath("login_login_edituserpage", array("id" => 0)); echo "';\n editPath = editPath.substring(0, editPath.length - 1);\n\n var openDealPath = '"; // line 193 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("opportunity_opportunitycontactfilterV2", array("id" => 0, "filter" => 0)), "html", null, true); echo "';\n openDealPath = openDealPath.substring(0, openDealPath.length - 3);\n \n var taskPath = '"; // line 196 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("task_manage_task", array("type" => "user", "id" => 0)), "html", null, true); echo "';\n taskPath = taskPath.substring(0, taskPath.length - 1);\n \n var openDeal = tempUser.openDeals;\n if(tempUser.openDeals > 0){\n openDeal = '<a href=\"' + openDealPath + tempUser.id + '/OpenUser' + '\">' + tempUser.openDeals + '</a>';\n }\n \n var wonDeal = tempUser.wonDeals;\n if(tempUser.wonDeals !== '0'){\n wonDeal = '<a href=\"' + openDealPath + tempUser.id + '/WonUser' + '\">\$' + tempUser.wonDeals + '</a>';\n }\n \n var lostDeal = tempUser.lossDeals;\n if(tempUser.lossDeals !== '0'){\n lostDeal = '<a href=\"' + openDealPath + tempUser.id + '/LostUser' + '\">\$' + tempUser.lossDeals + '</a>';\n }\n \n var action = '';\n var name = '"; // line 215 echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true); echo "';\n if (name.toLowerCase() === tempUser.username.toLowerCase()) {\n action = '<div class=\"pull-right\">' +\n '<div class=\"keep-open btn-group\">' +\n '<button class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\">' +\n '<i class=\"glyphicon glyphicon-chevron-down\"></i>' +\n '</button>' +\n '<ul class=\"dropdown-menu\" role=\"menu\" style=\"min-width: 0px !important;\">' +\n '<li><a href=\"' + editPath + tempUser.id + '\"><i class=\"fa fa-pencil-square-o\"></i> Edit</a></li>' +\n '<li><a href=\"#\" onclick=\"notespopup(' + tempUser.id + ')\"><i class=\"fa fa-file-o\"></i> Notes</a></li>' +\n '<li><a href=\"'+taskPath + tempUser.id +'\"><i class=\"fa fa-list\"></i> Tasks</a></li>' +\n '</ul>' +\n '</div>' +\n '</div>'\n }\n \n rows.push({\n first_name: tempUser.firstname,\n last_name: tempUser.lastname,\n username: tempUser.username,\n open_deal: openDeal,\n projected_revenue: '\$' + tempUser.projectedRevenue,\n weighted_forecast: '\$' + tempUser.individualForecast,\n won_deals: wonDeal,\n lost_deals: lostDeal,\n user_status: tempUser.status,\n user_level: tempUser.role,\n action: action,\n title: tempUser.title,\n company: tempUser.company,\n email: tempUser.email,\n telephone: tempUser.telephone,\n cellphone: tempUser.cellphone,\n originator: tempUser.originator,\n nonOriginator: tempUser.nonOriginator,\n earningGoals: tempUser.earningGoals,\n drawAgainstCommission: tempUser.drawAgainstCommission,\n dob: tempUser.dob\n\n });\n }\n return rows;\n }\n\n function priceSorter(a, b) {\n a = +a.substring(1); // remove \$\n b = +b.substring(1);\n if (a > b)\n return 1;\n if (a < b)\n return -1;\n return 0;\n }\n\n function rowStyle(row, index) {\n var classes = ['active'];\n\n if (index % 2 === 0) {\n return {\n classes: classes[0]\n };\n }\n return {};\n }\n \n function exportTableDataToCSV() {\n var data = JSON.parse(initResponse);\n \n exportToCSV(data.users, \"users.csv\", [\"firstname\", \"lastname\", \"username\", \"openDeals\", \"projectedRevenue\", \n \"individualForecast\", \"wonDeals\", \"lossDeals\"]);\n }\n \n function exportTableDataToPDF() {\n var data = JSON.parse(initResponse);\n \n var userTablePDF = new exportPDF(data.users, \"users.pdf\", [\"firstname\", \"lastname\", \"username\", \"openDeals\", \"projectedRevenue\", \n \"individualForecast\", \"wonDeals\", \"lossDeals\"], \"Manage Users\");\n }\n</script>"; }
public function block_body_class($context, array $blocks = array()) { $__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2 = $this->env->getExtension("native_profiler"); $__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2->enter($__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body_class")); echo twig_escape_filter($this->env, "edit edit-" . twig_lower_filter($this->env, $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array())), "html", null, true); $__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2->leave($__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<ul class=\"archives\">\n\n"; // line 3 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["archives_data"]) ? $context["archives_data"] : null); foreach ($context['_seq'] as $context["month"] => $context["items"]) { // line 4 echo " <li>\n \t<a href=\""; // line 5 echo isset($context["base_url"]) ? $context["base_url"] : null; echo "/archives_month"; echo $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array()); echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_date_format_filter($this->env, $context["month"], "M_Y")), "url"); echo "\">\n <span class=\"archive_date\">"; // line 6 echo $context["month"]; echo "</span>\n </a>"; // line 7 if (isset($context["archives_show_count"]) ? $context["archives_show_count"] : null) { echo "<span class=\"label\"> ( "; echo twig_length_filter($this->env, $context["items"]); echo " )</span>\n "; } // line 9 echo " </li>\n"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['month'], $context['items'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 11 echo "</ul>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<script>\n var \$opportunitySourceTable = \$('#opportunitytable');\n var extendColData = [];\n var initOpportunitySourceResponse;\n\n \$(document).ready(function () {\n \$(\"#opportunityTableDiv\").show();\n iniFillOppotunitySourceTableData();\n });\n\n function iniFillOppotunitySourceTableData() {\n \$opportunitySourceTable.bootstrapTable('showLoading');\n var data = '"; // line 13 echo twig_escape_filter($this->env, isset($context["opportunitySourceArray"]) ? $context["opportunitySourceArray"] : $this->getContext($context, "opportunitySourceArray"), "html", null, true); echo "';\n var newString = data.replace(/"/g, '\"');\n initOpportunitySourceResponse = newString;\n //var newString = JSON.parse(data);\n \$opportunitySourceTable.bootstrapTable('hideLoading');\n \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(newString));\n }\n\n function refreshOpportunitySourceTable() {\n \$opportunitySourceTable.bootstrapTable('removeAll');\n fillOpportunitySourceTableData();\n }\n\n function fillOpportunitySourceTableData() {\n \$opportunitySourceTable.bootstrapTable('showLoading');\n \$.post('"; // line 28 echo $this->env->getExtension('routing')->getPath("settings_opportunity_source_table_data"); echo "', null,\n function (response) {\n if (response) {\n \$opportunitySourceTable.bootstrapTable('hideLoading');\n initOpportunitySourceResponse = response;\n \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(response));\n } else {\n\n }\n }\n );\n }\n\n function fillTableDataWithUsername(username) {\n \$opportunitySourceTable.bootstrapTable('removeAll');\n \$opportunitySourceTable.bootstrapTable('showLoading');\n var path = '"; // line 44 echo $this->env->getExtension('routing')->getPath("contacts_contacts_table_data_username_filter", array("username" => "0")); echo "';\n path = path.substring(0, path.length - 1);\n\n \$.post(path + username, null,\n function (response) {\n if (response) {\n \$opportunitySourceTable.bootstrapTable('hideLoading');\n \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(response));\n } else {\n\n }\n }\n );\n }\n\n function checkAndSetValue(value, blankValue, scale, pre) {\n if (value === '' || value === null) {\n return blankValue;\n } else {\n if (pre === true) {\n return scale + '' + value;\n } else {\n return value + '' + scale;\n }\n }\n }\n\n function detailFormatter(index, row) {\n\n var note = checkAndSetValue(extendColData[index].note, '-', '', true);\n\n var html = [];\n html.push('<div class\"row\">' +\n '<div class=\"col-xs-4\">' +\n '<table class=\"table\" style=\"margin-left:42px; border: none !important;line-height: 5px;\">' +\n '<tr style=\"padding:0px;margin:0px;border-bottom: 1px solid #DCDCDC;\">' +\n '<td style=\"border: none !important;line-height: 5px;width:30%\"><small>Notes</small></td>' +\n '<td style=\"border: none !important;line-height: 5px;\"><small>' + note + '</small></td>' +\n '</tr>' +\n '</table>' +\n '</div>' +\n '</div>');\n //html.push('<div class\"row\">' + index + '</div>');\n \$.each(row, function (key, value) {\n //html.push('<p><b>' + key + ':</b> ' + value + '</p>');\n });\n return html.join('');\n }\n\n function convertOpportunitySourceData(response) {\n var jsonString = JSON.parse(response);\n extendColData = [];\n\n var startId = 1,\n rows = [];\n\n for (var i = 0; i < jsonString.opportunitySources.length; i++) {\n var tempType = jsonString.opportunitySources[i];\n\n extendColData.push({\n note: tempType.notes\n });\n\n var name = '"; // line 107 echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true); echo "';\n var action = '';\n var role = '"; // line 109 echo twig_escape_filter($this->env, isset($context["role"]) ? $context["role"] : $this->getContext($context, "role"), "html", null, true); echo "';\n if (role === \"Admin\") {\n action = '<div class=\"pull-right\">' +\n '<div class=\"keep-open btn-group\">' +\n '<button class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\">' +\n '<i class=\"glyphicon glyphicon-chevron-down\"></i>' +\n '</button>' +\n '<ul class=\"dropdown-menu\" role=\"menu\" style=\"min-width: 0px !important;\">' +\n '<li><a href=\"javascript:opeEditOpportunitySourceModal(' + tempType.id + ')\"><i class=\"fa fa-pencil-square-o\"></i> Edit</a></li>';\n\n if (tempType.status === \"Inactive\") {\n action += '<li><a href=\"javascript:activateOpportunitySource(' + tempType.id + ')\"><i class=\"fa fa-check\"></i> Activate</a></li>';\n } else if (tempType.status === \"Active\") {\n action += '<li><a href=\"javascript:deleteOpportunitySource(' + tempType.id + ')\"><i class=\"fa fa-times\"></i> Delete</a></li>';\n }\n\n action += '</ul>' +\n '</div>' +\n '</div>';\n }else{\n \$opportunitySourceTable.bootstrapTable('hideColumn', 'Action');\n }\n\n rows.push({\n opportunitySource: tempType.opportunitySource,\n notes: tempType.notes,\n status: tempType.status,\n action: action\n });\n }\n return rows;\n }\n\n function deactivateOpportunitySourceId(id) {\n \$opportunitySourceTable.bootstrapTable('removeAll');\n \$opportunitySourceTable.bootstrapTable('showLoading');\n\n var jsonString = JSON.parse(initOpportunitySourceResponse);\n var filterContact = [];\n\n for (var i = 0; i < jsonString.opportunitySources.length; i++) {\n var tempStage = jsonString.opportunitySources[i];\n\n if (id === tempStage.id) {\n tempStage.status = \"Inactive\";\n }\n filterContact.push(tempStage);\n\n }\n var filterOpportunitiesArray = {'opportunitySources': filterContact};\n var jsonStr = JSON.stringify(filterOpportunitiesArray);\n initOpportunitySourceResponse = jsonStr;\n \$opportunitySourceTable.bootstrapTable('hideLoading');\n \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(jsonStr));\n }\n\n function deleteOpportunitySource(id) {\n //\$opportunitySourceTable.bootstrapTable('showLoading');\n var path = '"; // line 167 echo $this->env->getExtension('routing')->getPath("settings_deleteopportunitysource", array("id" => 0)); echo "';\n path = path.substring(0, path.length - 1);\n\n \$.post(path + id, null,\n function (response) {\n if (response) {\n //\$opportunitySourceTable.bootstrapTable('showLoading');\n deactivateOpportunitySourceId(id);\n } else {\n \$opportunitySourceTable.bootstrapTable('hideLoading');\n }\n }\n );\n }\n\n function activateOpportunitySourceId(id) {\n \$opportunitySourceTable.bootstrapTable('removeAll');\n \$opportunitySourceTable.bootstrapTable('showLoading');\n\n var jsonString = JSON.parse(initOpportunitySourceResponse);\n var filterContact = [];\n\n for (var i = 0; i < jsonString.opportunitySources.length; i++) {\n var tempStage = jsonString.opportunitySources[i];\n\n if (id === tempStage.id) {\n tempStage.status = \"Active\";\n }\n filterContact.push(tempStage);\n\n }\n var filterOpportunitiesArray = {'opportunitySources': filterContact};\n var jsonStr = JSON.stringify(filterOpportunitiesArray);\n initOpportunitySourceResponse = jsonStr;\n \$opportunitySourceTable.bootstrapTable('hideLoading');\n \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(jsonStr));\n }\n\n function activateOpportunitySource(id) {\n //\$opportunitySourceTable.bootstrapTable('showLoading');\n var path = '"; // line 207 echo $this->env->getExtension('routing')->getPath("settings_activateopportunitysource", array("id" => 0)); echo "';\n path = path.substring(0, path.length - 1);\n\n \$.post(path + id, null,\n function (response) {\n if (response) {\n activateOpportunitySourceId(id);\n } else {\n \$opportunitySourceTable.bootstrapTable('hideLoading');\n }\n }\n );\n }\n\n function priceSorter(a, b) {\n a = +a.substring(1); // remove \$\n b = +b.substring(1);\n if (a > b)\n return 1;\n if (a < b)\n return -1;\n return 0;\n }\n\n function rowStyle(row, index) {\n var classes = ['active'];\n\n if (index % 2 === 0) {\n return {\n classes: classes[0]\n };\n }\n return {};\n }\n \n function exportOpportunitySourceTableDataToPDF() {\n var data = JSON.parse(initOpportunitySourceResponse);\n \n var userTablePDF = new exportPDF(data.opportunitySources, \"opportunitySources.pdf\", [\"opportunitySource\", \"notes\", \"status\"], \"Manage Products\");\n }\n \n function exportOpportunitySourceTableDataToCSV() {\n var data = JSON.parse(initOpportunitySourceResponse);\n \n exportToCSV(data.opportunitySources, \"opportunitySources.csv\", [\"opportunitySource\", \"notes\", \"status\"]);\n }\n</script>"; }
public function block_body_class($context, array $blocks = array()) { $__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6 = $this->env->getExtension("native_profiler"); $__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6->enter($__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body_class")); echo twig_escape_filter($this->env, "edit edit-" . twig_lower_filter($this->env, $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array())), "html", null, true); $__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6->leave($__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6_prof); }
public function block_linkElement($context, array $blocks = array()) { // line 23 echo " "; $context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:_htabs.html.twig", 23); // line 24 echo " "; $context["itemLink"] = $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "uri", array()); // line 25 echo " "; if ($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "hasChildren", array()) && $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "displayChildren", array())) { // line 26 echo " "; $context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("data-toggle" => "tab")); // line 27 echo " "; $context["itemLink"] = "#" . trim(twig_lower_filter($this->env, twig_replace_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "name", array()), array(" " => "_", "#" => "_")))); // line 28 echo " "; } else { // line 29 echo " "; $context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("class" => $context["oro_menu"]->getadd_attribute_values(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, "class", array(0 => "empty")))); // line 32 echo " "; } // line 33 echo " <a href=\""; echo twig_escape_filter($this->env, isset($context["itemLink"]) ? $context["itemLink"] : null, "html", null, true); echo "\""; echo $context["oro_menu"]->getattributes(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null); echo ">"; $this->displayBlock("label", $context, $blocks); echo "</a>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<script>\n var \$table = \$('#table');\n var extendColData = [];\n var initResponse;\n var isShowInactiveContact = false;\n \n \$(document).ready(function () {\n \$(\"#tableDiv\").show();\n iniFillTableData();\n \$table.bootstrapTable('hideColumn', 'tags');\n });\n\n\n function showHideInactiveContacts(){\n \$table.bootstrapTable('removeAll');\n \n var showHide = \$( \"#showHide\" ).children();\n \n if (isShowInactiveContact == false){\n isShowInactiveContact = true;\n \$(\"#showHideInactiveContact\").html(\"<i class='fa fa-eye-slash'></i> Hide Inactive Contacts\");\n if(showHide.hasClass(\"fa-eye\")){\n \$table.bootstrapTable('append', convertData(initResponse));\n }else{\n var username = '******';\n usernameFilter(username);\n\n }\n }else{\n isShowInactiveContact = false;\n \$(\"#showHideInactiveContact\").html(\"<i class='fa fa-eye'></i> Show Inactive Contacts\");\n if(showHide.hasClass(\"fa-eye\")){\n \$table.bootstrapTable('append', convertData(initResponse));\n }else{\n var username = '******';\n usernameFilter(username);\n\n }\n }\n \n \n \n }\n \n function iniFillTableData() {\n \$table.bootstrapTable('showLoading');\n var data = '"; // line 47 echo twig_escape_filter($this->env, isset($context["contactArray"]) ? $context["contactArray"] : $this->getContext($context, "contactArray"), "html", null, true); echo "';\n var newString = data.replace(/"/g, '\"');\n initResponse = newString;\n \$table.bootstrapTable('hideLoading');\n //\$table.bootstrapTable('append', convertData(newString));\n var username = '******';\n usernameFilter(username);\n }\n\n function refreshTable() {\n \$table.bootstrapTable('removeAll');\n fillTableData();\n }\n \n function showHideContacts() {\n \$table.bootstrapTable('removeAll');\n \n var showHide = \$( \"#showHide\" ).children();\n \n if(showHide.hasClass(\"fa-eye\")){\n showHide.removeClass( \"fa-eye\" );\n showHide.addClass( \"fa-eye-slash\" );\n showHide.attr(\"title\",\"Show Other Contacts\");\n var username = '******';\n usernameFilter(username);\n }else{\n showHide.addClass( \"fa-eye\" );\n showHide.removeClass( \"fa-eye-slash\" );\n showHide.attr(\"title\",\"Hide Other Contacts\");\n \$table.bootstrapTable('append', convertData(initResponse));\n \n }\n }\n\n function fillTableData() {\n \$table.bootstrapTable('showLoading');\n \$.post('"; // line 83 echo $this->env->getExtension('routing')->getPath("contacts_contacts_table_data"); echo "', null,\n function (response) {\n if (response) {\n \$table.bootstrapTable('hideLoading');\n initResponse = response;\n //\$table.bootstrapTable('append', convertData(response));\n var username = '******';\n usernameFilter(username);\n } else {\n\n }\n }\n );\n }\n\n function usernameFilter(username) {\n \$table.bootstrapTable('removeAll');\n \$table.bootstrapTable('showLoading');\n\n var jsonString = JSON.parse(initResponse);\n var filterContact = [];\n\n for (var i = 0; i < jsonString.contacts.length; i++) {\n var tempContact = jsonString.contacts[i];\n\n if (username.toLowerCase() === tempContact.username.toLowerCase()) {\n filterContact.push(tempContact);\n }\n\n }\n var filterOpportunitiesArray = {'contacts': filterContact};\n var jsonStr = JSON.stringify(filterOpportunitiesArray);\n\n \$table.bootstrapTable('hideLoading');\n \$table.bootstrapTable('append', convertData(jsonStr));\n }\n\n function fillTableDataWithUsername(username) {\n \$table.bootstrapTable('removeAll');\n \$table.bootstrapTable('showLoading');\n var path = '"; // line 123 echo $this->env->getExtension('routing')->getPath("contacts_contacts_table_data_username_filter", array("username" => "0")); echo "';\n path = path.substring(0, path.length - 1);\n\n \$.post(path + username, null,\n function (response) {\n if (response) {\n \$table.bootstrapTable('hideLoading');\n \$table.bootstrapTable('append', convertData(response));\n } else {\n\n }\n }\n );\n }\n\n function deleteContact(id){\n \$.post('"; // line 139 echo $this->env->getExtension('routing')->getPath("contacts_delete_contact"); echo "', { id: id },\n function (response) {\n if (response) {\n changeStatus(id, \"Inactive\");\n } else {\n\n }\n }\n );\n }\n \n function activateContact(id){\n \$.post('"; // line 151 echo $this->env->getExtension('routing')->getPath("contacts_activate_contact"); echo "', { id: id },\n function (response) {\n if (response) {\n changeStatus(id, \"Active\");\n } else {\n\n }\n }\n );\n }\n \n function changeStatus(id, status) {\n \$table.bootstrapTable('removeAll');\n \$table.bootstrapTable('showLoading');\n\n var jsonString = JSON.parse(initResponse);\n var filterUsers = [];\n\n for (var i = 0; i < jsonString.contacts.length; i++) {\n var tempContact = jsonString.contacts[i];\n\n if (tempContact.id == id) {\n tempContact.status = status;\n }\n \n filterUsers.push(tempContact);\n }\n var filterOpportunitiesArray = {'contacts': filterUsers};\n var jsonStr = JSON.stringify(filterOpportunitiesArray);\n initResponse = jsonStr;\n //\$table.bootstrapTable('hideLoading');\n //\$table.bootstrapTable('append', convertData(jsonStr));\n var username = '******';\n usernameFilter(username);\n }\n \n function storePageSize(size) {\n \$.post('"; // line 188 echo $this->env->getExtension('routing')->getPath("login_login_saveconfig"); echo "',\n {name: 'contactview', value: size},\n function (response) {\n if (response !== \"false\") {\n\n } else {\n console.log(\"error occured in getting the manage view number in contacts\", response);\n }\n });\n }\n\n function checkAndSetValue(value, blankValue, scale, pre) {\n if (value === '' || value === null) {\n return blankValue;\n } else {\n if (pre === true) {\n return scale + '' + value;\n } else {\n return value + '' + scale;\n }\n }\n }\n\n function detailFormatter(index, row) {\n\n var tags = checkAndSetValue(row.tags, '-', '', true);\n var email = checkAndSetValue(row.email, '-', '', true);\n var telephone = checkAndSetValue(row.telephone, '-', '', true);\n \n var emailData = email.split(\":\");\n var telephoneData = telephone.split(\":\");\n \n email = emailData[0] + ' : <a href=\"mailto:' + emailData[1] + '\" target=\"_top\">' + emailData[1] + '</a>';\n telephone = telephoneData[0] + \" : \" + telephoneData[1];\n\n var html = [];\n html.push('<div class\"row\">' +\n '<div class=\"col-xs-4\">' +\n '<table class=\"table\" style=\"margin-left:42px; border: none !important;background-color: #fbfbfb;\">' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;width:30%;important;line-height: 10px;\"><small>Email</small></td>' +\n '<td style=\"border: none !important;important;line-height: 10px;\"><small>' + email + '</small></td>' +\n '</tr>' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;important;line-height: 10px;\"><small>Telephone</small></td>' +\n '<td style=\"border: none !important;important;line-height: 10px;\"><small>' + telephone + '</small></td>' +\n '</tr>' +\n '<tr style=\"padding:0px;margin:0px;\">' +\n '<td style=\"border: none !important;important;line-height: 10px;\"><small>Tags</small></td>' +\n '<td style=\"border: none !important;important;line-height: 10px;\"><small>' + tags + '</small></td>' +\n '</tr>' +\n '</table>' +\n '</div>' +\n '</div>');\n //html.push('<div class\"row\">' + index + '</div>');\n \$.each(row, function (key, value) {\n //html.push('<p><b>' + key + ':</b> ' + value + '</p>');\n });\n return html.join('');\n }\n\n function convertData(response) {\n var jsonString = JSON.parse(response);\n extendColData = [];\n\n var startId = 1,\n rows = [];\n\n "; // line 258 echo " for (var i = 0; i < jsonString.contacts.length; i++) {\n var tempContact = jsonString.contacts[i];\n\n extendColData.push({\n email: tempContact.email,\n telephone: tempContact.telephone,\n tags: tempContact.tags\n });\n\n var editPath = '"; // line 267 echo $this->env->getExtension('routing')->getPath("contacts_contacts_editcontactpageV2", array("id" => 0)); echo "';\n editPath = editPath.substring(0, editPath.length - 1);\n \n var newDealPath = '"; // line 270 echo $this->env->getExtension('routing')->getPath("opportunity_addcontactopportunityV2", array("id" => 0)); echo "';\n newDealPath = newDealPath.substring(0, newDealPath.length - 1);\n\n var openDealPath = '"; // line 273 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("opportunity_opportunitycontactfilterV2", array("id" => 0, "filter" => 0)), "html", null, true); echo "';\n openDealPath = openDealPath.substring(0, openDealPath.length - 3);\n \n var taskPath = '"; // line 276 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("task_manage_task", array("type" => "contact", "id" => 0)), "html", null, true); echo "';\n taskPath = taskPath.substring(0, taskPath.length - 1);\n\n var name = '"; // line 279 echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true); echo "';\n var action = '';\n if (name.toLowerCase() === tempContact.username.toLowerCase()) {\n if(tempContact.status == \"Active\"){\n action = '<div class=\"pull-right\">' +\n '<div class=\"keep-open btn-group\">' +\n '<button class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\">' +\n '<i class=\"glyphicon glyphicon-chevron-down\"></i>' +\n '</button>' +\n '<ul class=\"dropdown-menu\" role=\"menu\" style=\"min-width: 0px !important;\">' +\n '<li><a href=\"' + newDealPath + tempContact.id + '\"><i class=\"fa fa-usd\"></i> New Deal</a></li>' +\n '<li><a href=\"' + editPath + tempContact.id + '\"><i class=\"fa fa-pencil-square-o\"></i> Edit</a></li>' +\n '<li><a href=\"javascript:notespopup('+ tempContact.id +')\"><i class=\"fa fa-file-o\"></i> Notes</a></li>' +\n '<li><a href=\"'+taskPath + tempContact.id +'\"><i class=\"fa fa-list\"></i> Tasks</a></li>' +\n '<li><a href=\"javascript:deleteContact(' + tempContact.id +')\"><i class=\"fa fa-times\"></i> Delete</a></li>' +\n '</ul>' +\n '</div>' +\n '</div>';\n }else{\n action = '<div class=\"pull-right\">' +\n '<div class=\"keep-open btn-group\">' +\n '<button class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\">' +\n '<i class=\"glyphicon glyphicon-chevron-down\"></i>' +\n '</button>' +\n '<ul class=\"dropdown-menu\" role=\"menu\" style=\"min-width: 0px !important;\">' +\n '<li><a href=\"' + newDealPath + tempContact.id + '\"><i class=\"fa fa-usd\"></i> New Deal</a></li>' +\n '<li><a href=\"' + editPath + tempContact.id + '\"><i class=\"fa fa-pencil-square-o\"></i> Edit</a></li>' +\n '<li><a href=\"javascript:notespopup('+ tempContact.id +')\"><i class=\"fa fa-file-o\"></i> Notes</a></li>' +\n '<li><a href=\"'+taskPath + tempContact.id +'\"><i class=\"fa fa-list\"></i> Tasks</a></li>' +\n '<li><a href=\"javascript:activateContact(' + tempContact.id +')\"><i class=\"fa fa-check\"></i> Activate</a></li>' +\n '</ul>' +\n '</div>' +\n '</div>';\n }\n \n }\n \n var openDeal = tempContact.open_deal;\n if(tempContact.open_deal > 0){\n openDeal = '<a href=\"' + openDealPath + tempContact.id + '/Open' + '\">' + tempContact.open_deal + '</a>';\n }\n \n var wonDeal = tempContact.won_deals;\n if(tempContact.won_deals !== '0'){\n wonDeal = '<a href=\"' + openDealPath + tempContact.id + '/Won' + '\">\$' + tempContact.won_deals + '</a>';\n }\n \n var lostDeal = tempContact.lost_deals;\n if(tempContact.lost_deals !== '0'){\n lostDeal = '<a href=\"' + openDealPath + tempContact.id + '/Lost' + '\">\$' + tempContact.lost_deals + '</a>';\n }\n \n if(isShowInactiveContact == false){\n if(tempContact.status == \"Active\"){\n rows.push({\n name: tempContact.name,\n company: tempContact.company,\n open_deal: openDeal,\n projected_revenue: '\$' + tempContact.projected_revenue,\n weighted_forecast: '\$' + tempContact.weighted_forecast,\n won_deals: wonDeal,\n lost_deals: lostDeal,\n status: tempContact.status,\n owner: '<a href=\"javascript:usernameFilter(' + \"'\" + tempContact.username + \"'\" + ')\">' + tempContact.owner + '</a>',\n action: action,\n email: tempContact.email,\n telephone: tempContact.telephone,\n tags: tempContact.tags\n\n });\n }\n }else{\n rows.push({\n name: tempContact.name,\n company: tempContact.company,\n open_deal: openDeal,\n projected_revenue: '\$' + tempContact.projected_revenue,\n weighted_forecast: '\$' + tempContact.weighted_forecast,\n won_deals: wonDeal,\n lost_deals: lostDeal,\n status: tempContact.status,\n owner: '<a href=\"javascript:usernameFilter(' + \"'\" + tempContact.username + \"'\" + ')\">' + tempContact.owner + '</a>',\n action: action,\n email: tempContact.email,\n telephone: tempContact.telephone,\n tags: tempContact.tags\n\n });\n }\n \n }\n return rows;\n }\n\n function priceSorter(a, b) {\n a = +a.substring(1); // remove \$\n b = +b.substring(1);\n if (a > b)\n return 1;\n if (a < b)\n return -1;\n return 0;\n }\n\n function rowStyle(row, index) {\n var classes = ['active'];\n\n if (index % 2 === 0) {\n return {\n classes: classes[0]\n };\n }\n return {};\n }\n \n function exportTableDataToCSV() {\n var data = JSON.parse(initResponse);\n \n exportToCSV(data.contacts, \"contacts.csv\", [\"name\", \"company\", \"open_deal\", \"projected_revenue\", \"weighted_forecast\", \n \"won_deals\", \"lost_deals\", \"owner\", \"status\"]);\n }\n \n function exportTableDataToPDF() {\n var data = JSON.parse(initResponse);\n \n var userTablePDF = new exportPDF(data.contacts, \"contacts.pdf\", [\"name\", \"company\", \"open_deal\", \"projected_revenue\", \"weighted_forecast\", \n \"won_deals\", \"lost_deals\", \"owner\", \"status\"], \"Manage Contacts\");\n }\n</script>"; }
public function block_form_start($context, array $blocks = array()) { // line 2 ob_start(); // line 3 echo " "; $context["method"] = twig_upper_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")); // line 4 echo " "; if (twig_in_filter(isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), array(0 => "GET", 1 => "POST"))) { // line 5 echo " "; $context["form_method"] = isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"); // line 6 echo " "; } else { // line 7 echo " "; $context["form_method"] = "POST"; // line 8 echo " "; } // line 9 echo " <form name=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "vars", array()), "name", array()), "html", null, true); echo "\" method=\""; echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")), "html", null, true); echo "\" action=\""; echo twig_escape_filter($this->env, isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), "html", null, true); echo "\""; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")); foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) { echo " "; echo twig_escape_filter($this->env, $context["attrname"], "html", null, true); echo "=\""; echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true); echo "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; if (isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart")) { echo " enctype=\"multipart/form-data\""; } echo " novalidate=\"true\">\n "; // line 10 if ((isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")) != (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))) { // line 11 echo " <input type=\"hidden\" name=\"_method\" value=\""; echo twig_escape_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), "html", null, true); echo "\" />\n "; } echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); }
public function block_input($context, array $blocks = array()) { // line 10 echo " "; $context["field"] = twig_array_merge(isset($context["field"]) ? $context["field"] : null, array("style" => "background-color: " . (isset($context["value"]) ? $context["value"] : null), "pattern" => "^#([a-fA-F0-9]{6})|(rgba\\(\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*((0.[0-9]+)|[01])\\s*\\))\$")); // line 11 echo " <div class=\"colorpicker "; echo $this->getAttribute($this, "contrast", array(0 => $this->env->getExtension('GantryTwig')->colorContrastFunc(twig_lower_filter($this->env, isset($context["value"]) ? $context["value"] : null))), "method"); echo "\">\n <input\n "; // line 14 echo " type=\"text\"\n name=\""; // line 15 echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null))); echo "\"\n value=\""; // line 16 echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", "))); echo "\"\n "; // line 18 echo " "; $this->displayBlock("global_attributes", $context, $blocks); echo "\n "; // line 20 echo " "; if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), array(0 => "on", 1 => "off"))) { echo "autocomplete=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array())); echo "\""; } // line 21 echo " "; if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "autofocus=\"autofocus\""; } // line 22 echo " "; if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array(), "any", true, true)) { echo "pattern=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array())); echo "\""; } // line 23 echo " "; if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "disabled=\"disabled\""; } // line 24 echo " "; if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array(), "any", true, true)) { echo "list=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array())); echo "\""; } // line 25 echo " />\n <i class=\"fa fa-tint\"></i>\n </div>\n"; }
public function block_root($context, array $blocks = array()) { // line 4 echo " "; $context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:_dots_tabs-content.html.twig", 4); // line 5 echo "\n <div class=\"tab-content\">\n "; // line 7 $context["items"] = isset($context["item"]) ? $context["item"] : null; // line 8 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["items"]) ? $context["items"] : null); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 9 echo " "; $context["showNonAuthorized"] = $this->getAttribute($this->getAttribute($context["item"], "extras", array(), "any", false, true), "showNonAuthorized", array(), "any", true, true) && $this->getAttribute($this->getAttribute($context["item"], "extras", array()), "showNonAuthorized", array()); // line 10 echo " "; $context["displayable"] = $this->getAttribute($this->getAttribute($context["item"], "extras", array()), "isAllowed", array()) || (isset($context["showNonAuthorized"]) ? $context["showNonAuthorized"] : null); // line 11 echo " "; if (isset($context["displayable"]) ? $context["displayable"] : null) { // line 12 echo " <div class=\"tab-pane\"\n id=\""; // line 13 echo twig_escape_filter($this->env, trim(twig_lower_filter($this->env, twig_replace_filter($this->getAttribute($context["item"], "name", array()), array(" " => "_", "#" => "_")))), "html", null, true); echo "-content\">\n "; // line 14 $context["options"] = array("tabTitle" => $this->getAttribute($context["item"], "label", array())); // line 15 echo " "; $context["options"] = array("defaultUrl" => $this->env->getExtension('routing')->getPath("oro_default")); // line 16 echo " "; $context["options"] = twig_array_merge(isset($context["options"]) ? $context["options"] : null, $this->getAttribute($context["item"], "extras", array())); // line 17 echo " "; echo $this->env->getExtension('oro_menu')->render($this->getAttribute($context["item"], "name", array()), isset($context["options"]) ? $context["options"] : null); echo "\n </div>\n "; } // line 20 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 21 echo " "; $context["item"] = isset($context["items"]) ? $context["items"] : null; // line 22 echo " </div>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_835030d3a3194b400a592ed316b98b85a7a2a4c65ece066f1ebbec2bc191740b = $this->env->getExtension("native_profiler"); $__internal_835030d3a3194b400a592ed316b98b85a7a2a4c65ece066f1ebbec2bc191740b->enter($__internal_835030d3a3194b400a592ed316b98b85a7a2a4c65ece066f1ebbec2bc191740b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "::card.html.twig")); // line 1 echo "<h1>"; echo twig_escape_filter($this->env, twig_upper_filter($this->env, isset($context["firstname"]) ? $context["firstname"] : $this->getContext($context, "firstname")), "html", null, true); echo " "; echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["lastname"]) ? $context["lastname"] : $this->getContext($context, "lastname")), "html", null, true); echo "</h1>"; $__internal_835030d3a3194b400a592ed316b98b85a7a2a4c65ece066f1ebbec2bc191740b->leave($__internal_835030d3a3194b400a592ed316b98b85a7a2a4c65ece066f1ebbec2bc191740b_prof); }
public function getpageLinkName($__text__ = null, ...$__varargs__) { $context = $this->env->mergeGlobals(array("text" => $__text__, "varargs" => $__varargs__)); $blocks = array(); ob_start(); try { echo twig_replace_filter(twig_lower_filter($this->env, isset($context["text"]) ? $context["text"] : null), array(" " => "_")); } catch (Exception $e) { ob_end_clean(); throw $e; } return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<div id=\"topLeftBar\">\n "; // line 2 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, "topMenu")); foreach ($context['_seq'] as $context["label"] => $context["menu"]) { // line 3 echo " "; if ($this->getAttribute($this->getContext($context, "menu", true), "_html", array(), "any", true, true)) { // line 4 echo " "; echo $this->getAttribute($this->getContext($context, "menu"), "_html"); echo "\n "; } elseif ($this->getAttribute($this->getAttribute($this->getContext($context, "menu"), "_url"), "module") == $this->getContext($context, "currentModule") && (twig_test_empty($this->getAttribute($this->getAttribute($this->getContext($context, "menu"), "_url"), "action")) || $this->getAttribute($this->getAttribute($this->getContext($context, "menu"), "_url"), "action") == $this->getContext($context, "currentAction"))) { // line 6 echo " <span class=\"topBarElem topBarElemActive\"><strong>"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array($this->getContext($context, "label"))), "html", null, true); echo "</strong></span> |\n "; } else { // line 8 echo " <span class=\"topBarElem\" "; if ($this->getAttribute($this->getContext($context, "menu", true), "_tooltip", array(), "any", true, true)) { echo "title=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "menu"), "_tooltip"), "html", null, true); echo "\""; } echo ">\n <a id=\"topmenu-"; // line 9 echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "menu"), "_url"), "module")), "html", null, true); echo "\" href=\"index.php"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('urlRewriteWithParameters')->getCallable(), array($this->getAttribute($this->getContext($context, "menu"), "_url"))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array($this->getContext($context, "label"))), "html", null, true); echo "</a>\n </span> |\n "; } // line 12 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['label'], $context['menu'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 13 echo "</div>"; }
public function block_content($context, array $blocks = array()) { // line 2 echo " <h4>"; if (isset($context["_request"])) { $__request_ = $context["_request"]; } else { $__request_ = null; } if (twig_lower_filter($this->env, $this->getAttribute($__request_, "param", array(0 => "type"), "method")) == "1" && twig_lower_filter($this->env, $this->getAttribute($__request_, "controller")) == "specprojects") { echo " Спец. проект: \"Устная история\" "; } // line 3 echo " "; if (isset($context["_request"])) { $__request_ = $context["_request"]; } else { $__request_ = null; } if (twig_lower_filter($this->env, $this->getAttribute($__request_, "param", array(0 => "type"), "method")) == "2" && twig_lower_filter($this->env, $this->getAttribute($__request_, "controller")) == "specprojects") { echo " Спец. проект: \"Краеведение\" "; } // line 4 echo " "; if (isset($context["_request"])) { $__request_ = $context["_request"]; } else { $__request_ = null; } if (twig_lower_filter($this->env, $this->getAttribute($__request_, "param", array(0 => "type"), "method")) == "3" && twig_lower_filter($this->env, $this->getAttribute($__request_, "controller")) == "specprojects") { echo " Спец. проект: \"Орнаменты\" "; } // line 5 echo " "; if (isset($context["_request"])) { $__request_ = $context["_request"]; } else { $__request_ = null; } if (twig_lower_filter($this->env, $this->getAttribute($__request_, "param", array(0 => "type"), "method")) == "4" && twig_lower_filter($this->env, $this->getAttribute($__request_, "controller")) == "specprojects") { echo " Спец. проект: \"Шежире\" "; } // line 6 echo " </h4>\n"; }
public function block_main($context, array $blocks = array()) { $__internal_dc4ed691fdb13ce88e2ce36f8943ab07b377a427847d38d6094e0fb293d0097b = $this->env->getExtension("native_profiler"); $__internal_dc4ed691fdb13ce88e2ce36f8943ab07b377a427847d38d6094e0fb293d0097b->enter($__internal_dc4ed691fdb13ce88e2ce36f8943ab07b377a427847d38d6094e0fb293d0097b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "main")); // line 16 echo " <div class=\"form-horizontal\">\n "; // line 17 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["fields"]) ? $context["fields"] : $this->getContext($context, "fields")); foreach ($context['_seq'] as $context["field"] => $context["metadata"]) { // line 18 echo " <div class=\"form-group field-"; echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($context["metadata"], "type", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["metadata"], "type", array()), "default") : "default"), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute($context["metadata"], "css_class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["metadata"], "css_class", array()), "") : "", "html", null, true); echo "\">\n <label class=\"col-sm-2 control-label\">\n "; // line 20 echo twig_escape_filter($this->env, $this->getAttribute($context["metadata"], "label", array()) ? $this->env->getExtension('translator')->trans($this->getAttribute($context["metadata"], "label", array()), isset($context["_trans_parameters"]) ? $context["_trans_parameters"] : $this->getContext($context, "_trans_parameters")) : $this->env->getExtension('form')->humanize($context["field"]), "html", null, true); echo "\n </label>\n <div class=\"col-sm-10\">\n <div class=\"form-control\">\n "; // line 24 echo $this->env->getExtension('easyadmin_extension')->renderEntityField($this->env, "show", $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array()), isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), $context["metadata"]); echo "\n </div>\n\n "; // line 27 if (($this->getAttribute($context["metadata"], "help", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["metadata"], "help", array()), "") : "") != "") { // line 28 echo " <span class=\"help-block\"><i class=\"fa fa-info-circle\"></i> "; echo $this->env->getExtension('translator')->trans($this->getAttribute($context["metadata"], "help", array())); echo "</span>\n "; } // line 30 echo " </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['field'], $context['metadata'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 33 echo "\n <div class=\"form-group form-actions\">\n <div class=\"col-sm-10 col-sm-offset-2\">\n "; // line 36 $this->displayBlock('item_actions', $context, $blocks); // line 68 echo " </div>\n </div>\n </div>\n\n "; // line 72 $this->displayBlock('delete_form', $context, $blocks); $__internal_dc4ed691fdb13ce88e2ce36f8943ab07b377a427847d38d6094e0fb293d0097b->leave($__internal_dc4ed691fdb13ce88e2ce36f8943ab07b377a427847d38d6094e0fb293d0097b_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["forms"] = $this->env->loadTemplate("_includes/forms"); // line 2 echo "\n"; // line 3 if ($this->getContext($context, "sources")) { // line 4 echo "\t"; if ($this->getContext($context, "allowMultipleSources")) { // line 5 echo "\t\t"; echo $context["forms"]->getcheckboxSelectField(array("label" => \Craft\Craft::t("Sources"), "instructions" => \Craft\Craft::t("Which sources do you want to select {type} from?", array("type" => twig_lower_filter($this->env, $this->getContext($context, "type")))), "id" => "sources", "name" => "sources", "options" => $this->getContext($context, "sources"), "values" => $this->getAttribute($this->getContext($context, "settings"), "sources"))); // line 12 echo "\n\t"; } else { // line 14 echo "\t\t"; echo $context["forms"]->getselectField(array("label" => \Craft\Craft::t("Source"), "instructions" => \Craft\Craft::t("Which source do you want to select {type} from?", array("type" => twig_lower_filter($this->env, $this->getContext($context, "type")))), "id" => "source", "name" => "source", "options" => $this->getContext($context, "sources"), "value" => $this->getAttribute($this->getContext($context, "settings"), "source"))); // line 21 echo "\n\t"; } } else { // line 24 echo "\t"; echo $context["forms"]->getfield(array("label" => $this->getContext($context, "allowMultipleSources") ? \Craft\Craft::t("Sources") : \Craft\Craft::t("Source")), "<p class=\"error\">" . \Craft\Craft::t("No sources exist yet.") . "</p>"); // line 26 echo "\n"; } // line 28 echo "\n"; // line 29 echo twig_escape_filter($this->env, $this->getContext($context, "targetLocaleField"), "html", null, true); echo "\n\n"; // line 31 if ($this->getContext($context, "allowLimit")) { // line 32 echo "\t"; echo $context["forms"]->gettextField(array("label" => \Craft\Craft::t("Limit"), "instructions" => \Craft\Craft::t("Limit the number of selectable {type}.", array("type" => twig_lower_filter($this->env, $this->getContext($context, "type")))), "id" => "limit", "name" => "limit", "value" => $this->getAttribute($this->getContext($context, "settings"), "limit"), "size" => 2, "errors" => $this->getAttribute($this->getContext($context, "settings"), "getErrors", array(0 => "limit"), "method"))); // line 40 echo "\n"; } }
public function block_linkElement($context, array $blocks = array()) { // line 26 echo " "; $context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:_dots_tabs.html.twig", 26); // line 27 echo " "; $context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("data-toggle" => "tab")); // line 28 echo " "; $context["itemLink"] = "#" . trim(twig_lower_filter($this->env, twig_replace_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "name", array()), array(" " => "_", "#" => "_")))) . "-content"; // line 29 echo " <a href=\""; echo twig_escape_filter($this->env, isset($context["itemLink"]) ? $context["itemLink"] : null, "html", null, true); echo "\""; echo $context["oro_menu"]->getattributes(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null); echo ">"; $this->displayBlock("label", $context, $blocks); echo "</a>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["backup"] = $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "lastBackup", array(), "method"); // line 2 echo "\n"; // line 3 if ($this->env->getExtension('GravTwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super"))) { // line 4 echo " <div id=\"updates\" class=\"dashboard-item dashboard-left\">\n <div class=\"tertiary-accent default-box-shadow\">\n <h1>"; // line 6 echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MAINTENANCE"); echo "</h1>\n <div class=\"admin-update-charts\">\n <div class=\"updates-chart\">\n <div class=\"chart-wrapper\">\n <div class=\"ct-chart\"></div>\n <span class=\"numeric hidden\"><span>-</span><em>"; // line 11 echo twig_lower_filter($this->env, $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.UPDATED")); echo "</em></span>\n </div>\n <p class=\"js__updates-available-description\"> </p>\n </div>\n <div class=\"backups-chart\">\n <div class=\"chart-wrapper\">\n <div class=\"ct-chart\"></div>\n <script>\n var data = {\n series: ["; // line 20 echo $this->getAttribute(isset($context["backup"]) ? $context["backup"] : null, "chart_fill", array()); echo ", "; echo $this->getAttribute(isset($context["backup"]) ? $context["backup"] : null, "chart_empty", array()); echo "]\n };\n var options = {\n donut: true,\n donutWidth: 10,\n startAngle: 0,\n total: 100,\n showLabel: false,\n height: 150,\n chartPadding: !isFirefox ? 5 : 10\n };\n Chartist.Pie('.backups-chart .ct-chart', data, options);\n </script>\n <span class=\"numeric\">"; // line 33 echo $this->getAttribute(isset($context["backup"]) ? $context["backup"] : null, "days", array()); echo "<em>"; echo twig_lower_filter($this->env, $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DAYS")); echo "</em></span>\n </div>\n <p>"; // line 35 echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LAST_BACKUP"); echo "</p>\n </div>\n </div>\n <div class=\"flush-bottom button-bar\">\n <button data-maintenance-update=\""; // line 39 echo $this->getAttribute(isset($context["uri"]) ? $context["uri"] : null, "addNonce", array(0 => (isset($context["base_url_relative"]) ? $context["base_url_relative"] : null) . "/update.json/task" . $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array()) . "update", 1 => "admin-form", 2 => "admin-nonce"), "method"); echo "\" class=\"button\" style=\"display: none\"><i class=\"fa fa-cloud-download\"></i> "; echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.UPDATE"); echo "</button>\n <button data-ajax=\""; // line 40 echo $this->getAttribute(isset($context["uri"]) ? $context["uri"] : null, "addNonce", array(0 => (isset($context["base_url_relative"]) ? $context["base_url_relative"] : null) . "/backup.json/task" . $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array()) . "backup", 1 => "admin-form", 2 => "admin-nonce"), "method"); echo "\" class=\"button\"><i class=\"fa fa-database\"></i> "; echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACKUP"); echo "</button>\n </div>\n </div>\n </div>\n"; } }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<span class=\"flag-language\">\n <i class=\"flag flag-"; // line 2 echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["region"]) ? $context["region"] : null), "html", null, true); echo "\"></i>\n "; // line 3 if (isset($context["short"]) ? $context["short"] : null) { // line 4 echo " <span class=\"language\">"; echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["language"]) ? $context["language"] : null), "html", null, true); echo "</span>\n "; } else { // line 6 echo " "; echo twig_escape_filter($this->env, isset($context["label"]) ? $context["label"] : null, "html", null, true); echo "\n "; } // line 8 echo "</span>\n"; }
public function getuserMenuItem($__label__ = null, $__menu__ = null, $__currentModule__ = null, $__currentAction__ = null) { $context = $this->env->mergeGlobals(array("label" => $__label__, "menu" => $__menu__, "currentModule" => $__currentModule__, "currentAction" => $__currentAction__)); $blocks = array(); ob_start(); try { // line 16 echo "\n <a class=\"item "; // line 17 if ($this->getAttribute($this->getAttribute(isset($context["menu"]) ? $context["menu"] : $this->getContext($context, "menu"), "_url", array()), "module", array()) == (isset($context["currentModule"]) ? $context["currentModule"] : $this->getContext($context, "currentModule")) && (twig_test_empty($this->getAttribute($this->getAttribute(isset($context["menu"]) ? $context["menu"] : $this->getContext($context, "menu"), "_url", array()), "action", array())) || $this->getAttribute($this->getAttribute(isset($context["menu"]) ? $context["menu"] : $this->getContext($context, "menu"), "_url", array()), "action", array()) == (isset($context["currentAction"]) ? $context["currentAction"] : $this->getContext($context, "currentAction")))) { echo "active"; } echo "\"\n href=\"index.php"; // line 18 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('urlRewriteWithParameters')->getCallable(), array($this->getAttribute(isset($context["menu"]) ? $context["menu"] : $this->getContext($context, "menu"), "_url", array()))), "html", null, true); echo "\"\n id=\"usermenu-"; // line 19 echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["menu"]) ? $context["menu"] : $this->getContext($context, "menu"), "_url", array()), "module", array())), "html", null, true); echo "-"; echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["menu"]) ? $context["menu"] : null, "_url", array(), "any", false, true), "action", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["menu"]) ? $context["menu"] : null, "_url", array(), "any", false, true), "action", array()), "index") : "index"), "html", null, true); echo "\"\n "; // line 20 if ($this->getAttribute(isset($context["menu"]) ? $context["menu"] : null, "_tooltip", array(), "any", true, true)) { echo "title=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["menu"]) ? $context["menu"] : $this->getContext($context, "menu"), "_tooltip", array()), "html", null, true); echo "\""; } // line 21 echo " >"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array(isset($context["label"]) ? $context["label"] : $this->getContext($context, "label"))), "html", null, true); echo "</a>\n\n "; } catch (Exception $e) { ob_end_clean(); throw $e; } return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); }
public function block_form_start($context, array $blocks = array()) { $__internal_5e1fcba209e01f910412728efb63a6213c11ea43ef9ea23bbc96f47dba1e10d5 = $this->env->getExtension("native_profiler"); $__internal_5e1fcba209e01f910412728efb63a6213c11ea43ef9ea23bbc96f47dba1e10d5->enter($__internal_5e1fcba209e01f910412728efb63a6213c11ea43ef9ea23bbc96f47dba1e10d5_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "form_start")); // line 271 $context["method"] = twig_upper_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")); // line 272 if (twig_in_filter(isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), array(0 => "GET", 1 => "POST"))) { // line 273 $context["form_method"] = isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"); } else { // line 275 $context["form_method"] = "POST"; } // line 277 echo "<form name=\""; echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true); echo "\" method=\""; echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")), "html", null, true); echo "\""; if ((isset($context["action"]) ? $context["action"] : $this->getContext($context, "action")) != "") { echo " action=\""; echo twig_escape_filter($this->env, isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), "html", null, true); echo "\""; } $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")); foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) { echo " "; echo twig_escape_filter($this->env, $context["attrname"], "html", null, true); echo "=\""; echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true); echo "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; if (isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart")) { echo " enctype=\"multipart/form-data\""; } echo ">"; // line 278 if ((isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")) != (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))) { // line 279 echo "<input type=\"hidden\" name=\"_method\" value=\""; echo twig_escape_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), "html", null, true); echo "\" />"; } $__internal_5e1fcba209e01f910412728efb63a6213c11ea43ef9ea23bbc96f47dba1e10d5->leave($__internal_5e1fcba209e01f910412728efb63a6213c11ea43ef9ea23bbc96f47dba1e10d5_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 3 echo "<div class=\"zone-layout-"; echo twig_escape_filter($this->env, twig_lower_filter($this->env, (isset($context["zone_layout"]) ? $context["zone_layout"] : $this->getContext($context, "zone_layout"))), "html", null, true); echo " row\"> <div class=\"span4\"> <aside> <section class=\"content-view-block content-view-aside\"> "; // line 8 echo " "; // line 9 echo " "; if ($this->getAttribute($this->getAttribute((isset($context["zones"]) ? $context["zones"] : $this->getContext($context, "zones")), 0, array(), "array"), "blocks", array())) { // line 10 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute((isset($context["zones"]) ? $context["zones"] : $this->getContext($context, "zones")), 0, array(), "array"), "blocks", array())); $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["block"]) { // line 11 echo " "; echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("ez_page:viewBlock", array("block" => $context["block"]))); // line 18 echo " "; // line 19 if ((!$this->getAttribute($context["loop"], "last", array()))) { // line 20 echo " <div class=\"block-separator\"></div> "; } // line 22 echo " "; ++$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['block'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 23 echo " "; } // line 24 echo " </section> </aside> </div> <div class=\"span8\"> <section class=\"content-view-block\"> "; // line 30 echo " "; if ($this->getAttribute($this->getAttribute((isset($context["zones"]) ? $context["zones"] : $this->getContext($context, "zones")), 1, array(), "array"), "blocks", array())) { // line 31 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute((isset($context["zones"]) ? $context["zones"] : $this->getContext($context, "zones")), 1, array(), "array"), "blocks", array())); $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["block"]) { // line 32 echo " "; echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("ez_page:viewBlock", array("block" => $context["block"]))); echo " "; // line 33 if ((!$this->getAttribute($context["loop"], "last", array()))) { // line 34 echo " <div class=\"block-separator\"></div> "; } // line 36 echo " "; ++$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['block'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 37 echo " "; } // line 38 echo " </section> </div> </div> "; }
public function block_main($context, array $blocks = array()) { // line 15 echo " <div class=\"form-horizontal\">\n "; // line 16 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, "fields")); foreach ($context['_seq'] as $context["field"] => $context["metadata"]) { // line 17 echo " <div class=\"form-group\">\n <label class=\"col-sm-2 control-label\">\n "; // line 19 if ($this->getAttribute($context["metadata"], "label", array())) { // line 20 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["metadata"], "label", array()), array(), "EasyAdminBundle"), "html", null, true); echo "\n "; } elseif ("id" == $this->getAttribute($context["metadata"], "property", array())) { // line 22 echo " ID\n "; } else { // line 24 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('form')->humanize($context["field"]), "html", null, true); echo "\n "; } // line 26 echo " </label>\n <div class=\"col-sm-10\">\n <div class=\"form-control "; // line 28 echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($context["metadata"], "type", array())), "html", null, true); echo "\">\n "; // line 29 if (twig_in_filter($this->getAttribute($context["metadata"], "type", array()), array(0 => "text"))) { // line 30 echo " "; echo nl2br(twig_escape_filter($this->env, $this->env->getExtension('easyadmin_extension')->renderEntityField("show", $this->getContext($context, "item"), $context["metadata"]), "html", null, true)); echo "\n "; } else { // line 32 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('easyadmin_extension')->renderEntityField("show", $this->getContext($context, "item"), $context["metadata"]), "html", null, true); echo "\n "; } // line 34 echo " </div>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['field'], $context['metadata'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 38 echo "\n <div class=\"form-group form-actions\">\n <div class=\"col-sm-10 col-sm-offset-2\">\n "; // line 41 $context["_show_actions"] = $this->env->getExtension('easyadmin_extension')->getActionsForItem("show", $this->getAttribute($this->getContext($context, "_entity"), "name", array())); // line 42 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, "_show_actions")); foreach ($context['_seq'] as $context["_key"] => $context["_action"]) { // line 43 echo " "; if ("method" == $this->getAttribute($context["_action"], "type", array())) { // line 44 echo " "; $context["_action_href"] = $this->env->getExtension('routing')->getPath("admin", array("action" => $this->getAttribute($context["_action"], "name", array()), "view" => "edit", "entity" => $this->getAttribute($this->getContext($context, "_entity"), "name", array()), "id" => $this->getAttribute($this->getContext($context, "item"), $this->getAttribute($this->getContext($context, "_entity"), "primary_key_field_name", array())))); // line 45 echo " "; } elseif ("route" == $this->getAttribute($context["_action"], "type", array())) { // line 46 echo " "; $context["_action_href"] = $this->env->getExtension('routing')->getPath($this->getAttribute($context["_action"], "name", array()), array("entity" => $this->getAttribute($this->getContext($context, "_entity"), "name", array()), "id" => $this->getAttribute($this->getContext($context, "item"), $this->getAttribute($this->getContext($context, "_entity"), "primary_key_field_name", array())))); // line 47 echo " "; } // line 48 echo "\n <a class=\"btn "; // line 49 echo twig_escape_filter($this->env, $this->getAttribute($context["_action"], "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["_action"], "class", array()), "") : "", "html", null, true); echo "\" href=\""; echo twig_escape_filter($this->env, $this->getContext($context, "_action_href"), "html", null, true); echo "\">\n "; // line 50 if ($this->getAttribute($context["_action"], "icon", array())) { echo "<i class=\"fa fa-"; echo twig_escape_filter($this->env, $this->getAttribute($context["_action"], "icon", array()), "html", null, true); echo "\"></i>"; } // line 51 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["_action"], "label", array()), $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "\n </a>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['_action'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 54 echo "\n "; // line 55 if ($this->env->getExtension('easyadmin_extension')->isActionEnabled("show", "delete", $this->getAttribute($this->getContext($context, "_entity"), "name", array()))) { // line 56 echo " "; $context["_action"] = $this->env->getExtension('easyadmin_extension')->getActionConfiguration("show", "delete", $this->getAttribute($this->getContext($context, "_entity"), "name", array())); // line 57 echo " <button type=\"button\" id=\"button-delete\" class=\"btn "; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "_action", true), "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "_action", true), "class", array()), "btn-danger") : "btn-danger", "html", null, true); echo "\">\n "; // line 58 if ($this->getAttribute($this->getContext($context, "_action"), "icon", array())) { echo "<i class=\"fa fa-"; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "_action"), "icon", array()), "html", null, true); echo "\"></i>"; } // line 59 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($this->getContext($context, "_action", true), "label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "_action", true), "label", array()), "action.delete") : "action.delete", $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "\n </button>\n "; } // line 62 echo "\n "; // line 64 echo " "; if ($this->env->getExtension('easyadmin_extension')->isActionEnabled("show", "list", $this->getAttribute($this->getContext($context, "_entity"), "name", array()))) { // line 65 echo " "; $context["_action"] = $this->env->getExtension('easyadmin_extension')->getActionConfiguration("show", "list", $this->getAttribute($this->getContext($context, "_entity"), "name", array())); // line 66 echo " <a class=\"btn btn-list btn-secondary\" href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("admin", array("entity" => $this->getAttribute($this->getContext($context, "_entity"), "name", array()), "action" => $this->getAttribute($this->getContext($context, "_action"), "name", array()), "view" => "show")), "html", null, true); echo "\">"; ob_start(); // line 67 echo " "; if ($this->getAttribute($this->getContext($context, "_action"), "icon", array())) { echo "<i class=\"fa fa-"; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "_action"), "icon", array()), "html", null, true); echo "\"></i>"; } // line 68 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($this->getContext($context, "_action", true), "label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "_action", true), "label", array()), "action.list") : "action.list", $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "\n "; echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); // line 69 echo "</a>\n "; } // line 71 echo " </div>\n </div>\n </div>\n\n "; // line 75 echo $this->env->getExtension('form')->renderer->renderBlock($this->getContext($context, "delete_form"), 'form', array("attr" => array("id" => "delete-form", "style" => "display: none"))); echo "\n\n <div id=\"modal-delete\" class=\"modal fade\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <h4>"; // line 81 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("delete_modal.title", $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "</h4>\n <p>"; // line 82 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("delete_modal.content", $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "</p>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" data-dismiss=\"modal\" class=\"btn\">\n "; // line 86 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("action.cancel", $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "\n </button>\n\n "; // line 89 if ($this->env->getExtension('easyadmin_extension')->isActionEnabled("show", "delete", $this->getAttribute($this->getContext($context, "_entity"), "name", array()))) { // line 90 echo " "; $context["_action"] = $this->env->getExtension('easyadmin_extension')->getActionConfiguration("show", "delete", $this->getAttribute($this->getContext($context, "_entity"), "name", array())); // line 91 echo " <button type=\"button\" data-dismiss=\"modal\" class=\"btn btn-danger\" id=\"modal-delete-button\">\n "; // line 92 if ($this->getAttribute($this->getContext($context, "_action"), "icon", array())) { echo "<i class=\"fa fa-"; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "_action"), "icon", array()), "html", null, true); echo "\"></i>"; } // line 93 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($this->getContext($context, "_action", true), "label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "_action", true), "label", array()), "action.delete") : "action.delete", $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "\n </button>\n "; } // line 96 echo " </div>\n </div>\n </div>\n </div>\n"; }
public function block_form_start($context, array $blocks = array()) { // line 266 $context["method"] = twig_upper_filter($this->env, isset($context["method"]) ? $context["method"] : null); // line 267 if (twig_in_filter(isset($context["method"]) ? $context["method"] : null, array(0 => "GET", 1 => "POST"))) { // line 268 $context["form_method"] = isset($context["method"]) ? $context["method"] : null; } else { // line 270 $context["form_method"] = "POST"; } // line 272 echo "<form name=\""; echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : null, "html", null, true); echo "\" method=\""; echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["form_method"]) ? $context["form_method"] : null), "html", null, true); echo "\" action=\""; echo twig_escape_filter($this->env, isset($context["action"]) ? $context["action"] : null, "html", null, true); echo "\""; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : null); foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) { echo " "; echo twig_escape_filter($this->env, $context["attrname"], "html", null, true); echo "=\""; echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true); echo "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; if (isset($context["multipart"]) ? $context["multipart"] : null) { echo " enctype=\"multipart/form-data\""; } echo ">"; // line 273 if ((isset($context["form_method"]) ? $context["form_method"] : null) != (isset($context["method"]) ? $context["method"] : null)) { // line 274 echo "<input type=\"hidden\" name=\"_method\" value=\""; echo twig_escape_filter($this->env, isset($context["method"]) ? $context["method"] : null, "html", null, true); echo "\" />"; } }
public function block_content($context, array $blocks = array()) { // line 24 if ("search" == $this->getAttribute($this->getAttribute($this->getContext($context, "app"), "request", array()), "get", array(0 => "view"), "method")) { // line 25 echo " "; $context["request_attributes"] = array("view" => "list", "action" => "search", "entity" => $this->getAttribute($this->getContext($context, "_entity"), "name", array()), "query" => $this->getAttribute($this->getAttribute($this->getContext($context, "app", true), "request", array(), "any", false, true), "get", array(0 => "query"), "method", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getContext($context, "app", true), "request", array(), "any", false, true), "get", array(0 => "query"), "method"), "") : ""); } else { // line 27 echo " "; $context["request_attributes"] = array("view" => "list", "action" => "list", "entity" => $this->getAttribute($this->getContext($context, "_entity"), "name", array()), "sortDirection" => $this->getAttribute($this->getAttribute($this->getContext($context, "app"), "request", array()), "get", array(0 => "sortDirection", 1 => "DESC"), "method")); } // line 29 echo "\n<div class=\"row\">\n <div id=\"content-header\" class=\"col-sm-12\">\n <div class=\"row\">\n\n \n <div class=\"col-xs-12 col-sm-7\">\n "; // line 36 if ($this->env->getExtension('easyadmin_extension')->isActionEnabled("list", "new", $this->getAttribute($this->getContext($context, "_entity"), "name", array()))) { // line 37 echo " "; $context["_action"] = $this->env->getExtension('easyadmin_extension')->getActionConfiguration("list", "new", $this->getAttribute($this->getContext($context, "_entity"), "name", array())); // line 38 echo " <div id=\"content-actions\" >\n <a class=\"btn btn-primary pull-left "; // line 39 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "_action", true), "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "_action", true), "class", array()), "") : "", "html", null, true); echo "\" href=\""; echo $this->env->getExtension('routing')->getPath("fos_user_registration_register"); echo "\">\n "; // line 40 if ($this->getAttribute($this->getContext($context, "_action"), "icon", array())) { echo "<i class=\"fa fa-"; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "_action"), "icon", array()), "html", null, true); echo "\"></i>"; } // line 41 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($this->getContext($context, "_action", true), "label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "_action", true), "label", array()), "action.new") : "action.new", $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "\n </a>\n "; } // line 44 echo " "; if ($this->env->getExtension('easyadmin_extension')->isActionEnabled("list", "search", $this->getAttribute($this->getContext($context, "_entity"), "name", array()))) { // line 45 echo " "; $context["_action"] = $this->env->getExtension('easyadmin_extension')->getActionConfiguration("list", "search", $this->getAttribute($this->getContext($context, "_entity"), "name", array())); // line 46 echo " <form id=\"content-search\" class=\"col-xs-6 col-sm-8\" method=\"get\" action=\""; echo $this->env->getExtension('routing')->getPath("admin"); echo "\">\n <div class=\"input-group\">\n <input type=\"hidden\" name=\"action\" value=\"search\">\n <input type=\"hidden\" name=\"view\" value=\"list\">\n <input type=\"hidden\" name=\"entity\" value=\""; // line 50 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "_entity"), "name", array()), "html", null, true); echo "\">\n <input class=\"form-control\" id=\"content-search-query\" type=\"search\" name=\"query\" placeholder=\""; // line 51 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($this->getContext($context, "_action", true), "label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getContext($context, "_action", true), "label", array()), "action.search") : "action.search", $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "\" value=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "app", true), "request", array(), "any", false, true), "get", array(0 => "query"), "method", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getContext($context, "app", true), "request", array(), "any", false, true), "get", array(0 => "query"), "method"), "") : "", "html", null, true); echo "\">\n </div>\n </form>\n </div>\n "; } // line 56 echo " </div>\n </div>\n </div>\n\n <div id=\"main\" class=\"col-sm-12\">\n <div>\n "; // line 62 $context["_list_item_actions"] = $this->env->getExtension('easyadmin_extension')->getActionsForItem("list", $this->getAttribute($this->getContext($context, "_entity"), "name", array())); // line 63 echo "\n <table class=\"table table-hover table-striped \" >\n <thead>\n <tr>\n "; // line 67 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, "fields")); foreach ($context['_seq'] as $context["field"] => $context["metadata"]) { // line 68 echo " "; $context["isSortingField"] = $this->getAttribute($context["metadata"], "property", array()) == $this->getAttribute($this->getAttribute($this->getContext($context, "app"), "request", array()), "get", array(0 => "sortField"), "method"); // line 69 echo "\n <th data-property-name=\""; // line 70 echo twig_escape_filter($this->env, $this->getAttribute($context["metadata"], "property", array()), "html", null, true); echo "\" class=\""; echo $this->getContext($context, "isSortingField") ? "sorted" : ""; echo " "; echo $this->getAttribute($context["metadata"], "virtual", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["metadata"], "virtual", array()), false) : false ? "virtual" : ""; echo " "; echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($context["metadata"], "dataType", array())), "html", null, true); echo "\">\n "; // line 71 if ($this->getContext($context, "isSortingField")) { // line 72 echo " "; $context["sortDirection"] = "DESC" == $this->getAttribute($this->getAttribute($this->getContext($context, "app"), "request", array()), "get", array(0 => "sortDirection"), "method") ? "ASC" : "DESC"; // line 73 echo " "; $context["request_attributes"] = twig_array_merge($this->getContext($context, "request_attributes"), array("sortField" => $this->getAttribute($context["metadata"], "property", array()))); // line 74 echo " "; } // line 75 echo "\n "; // line 76 if ($this->getAttribute($context["metadata"], "sortable", array())) { // line 77 echo " <a href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("admin", twig_array_merge($this->getContext($context, "request_attributes"), array("sortField" => $this->getAttribute($context["metadata"], "property", array()), "sortDirection" => array_key_exists("sortDirection", $context) ? _twig_default_filter($this->getContext($context, "sortDirection"), "DESC") : "DESC"))), "html", null, true); echo "\">\n "; // line 78 if ($this->getContext($context, "isSortingField") && $this->getContext($context, "sortDirection") == "DESC") { // line 79 echo " <i class=\"fa fa-caret-up\"></i>\n "; } elseif ($this->getContext($context, "isSortingField") && $this->getContext($context, "sortDirection") == "ASC") { // line 81 echo " <i class=\"fa fa-caret-down\"></i>\n "; } else { // line 83 echo " <i class=\"fa fa-sort\"></i>\n "; } // line 85 echo "\n "; // line 86 if ($this->getAttribute($context["metadata"], "label", array())) { // line 87 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["metadata"], "label", array()), $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "\n "; } elseif ("id" == $this->getAttribute($context["metadata"], "property", array())) { // line 89 echo " ID\n "; } else { // line 91 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('form')->humanize($context["field"]), "html", null, true); echo "\n "; } // line 93 echo " </a>\n "; } else { // line 95 echo " "; if ($this->getAttribute($context["metadata"], "label", array())) { // line 96 echo " <span>"; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["metadata"], "label", array()), array(), "EasyAdminBundle"), "html", null, true); echo "</span>\n "; } else { // line 98 echo " <span>"; echo twig_escape_filter($this->env, $this->env->getExtension('form')->humanize($context["field"]), "html", null, true); echo "</span>\n "; } // line 100 echo " "; } // line 101 echo " </th>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['field'], $context['metadata'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 103 echo " "; if (twig_length_filter($this->env, $this->getContext($context, "_list_item_actions")) > 0) { // line 104 echo " <th>\n <span>"; // line 105 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("list.row_actions", $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "</span>\n </th>\n "; } // line 108 echo " </tr>\n </thead>\n\n <tbody>\n "; // line 112 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "paginator"), "currentPageResults", array())); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 113 echo " "; $context["_item_id"] = $this->getAttribute($context["item"], $this->getAttribute($this->getContext($context, "_entity"), "primary_key_field_name", array())); // line 114 echo " <tr data-id=\""; echo twig_escape_filter($this->env, $this->getContext($context, "_item_id"), "html", null, true); echo "\">\n "; // line 115 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, "fields")); foreach ($context['_seq'] as $context["field"] => $context["metadata"]) { // line 116 echo " "; $context["isSortingField"] = $this->getAttribute($context["metadata"], "property", array()) == $this->getAttribute($this->getAttribute($this->getContext($context, "app"), "request", array()), "get", array(0 => "sortField"), "method"); // line 117 echo "\n <td class=\""; // line 118 echo $this->getContext($context, "isSortingField") ? "sorted" : ""; echo " "; echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($context["metadata"], "dataType", array())), "html", null, true); echo "\">\n "; // line 119 if (twig_in_filter($this->getAttribute($context["metadata"], "type", array()), array(0 => "array", 1 => "json_array", 2 => "simple_array", 3 => "text"))) { // line 120 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('easyadmin_extension')->truncateText($this->env, $this->env->getExtension('easyadmin_extension')->renderEntityField("list", $context["item"], $context["metadata"])), "html", null, true); echo "\n "; } else { // line 122 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('easyadmin_extension')->renderEntityField("list", $context["item"], $context["metadata"]), "html", null, true); echo "\n "; } // line 124 echo " </td>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['field'], $context['metadata'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 126 echo " "; if (twig_length_filter($this->env, $this->getContext($context, "_list_item_actions")) > 0) { // line 127 echo " <td class=\"actions\">\n "; // line 128 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, "_list_item_actions")); foreach ($context['_seq'] as $context["_key"] => $context["_action"]) { // line 129 echo " "; if ("method" == $this->getAttribute($context["_action"], "type", array())) { // line 130 echo " "; $context["_action_href"] = $this->env->getExtension('routing')->getPath("admin", array("action" => $this->getAttribute($context["_action"], "name", array()), "view" => "list", "entity" => $this->getAttribute($this->getContext($context, "_entity"), "name", array()), "id" => $this->getContext($context, "_item_id"))); // line 131 echo " "; } elseif ("route" == $this->getAttribute($context["_action"], "type", array())) { // line 132 echo " "; $context["_action_href"] = $this->env->getExtension('routing')->getPath($this->getAttribute($context["_action"], "name", array()), array("entity" => $this->getAttribute($this->getContext($context, "_entity"), "name", array()), "id" => $this->getContext($context, "_item_id"))); // line 133 echo " "; } // line 134 echo "\n <a class=\""; // line 135 echo twig_escape_filter($this->env, $this->getAttribute($context["_action"], "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["_action"], "class", array()), "") : "", "html", null, true); echo "\" href=\""; echo twig_escape_filter($this->env, $this->getContext($context, "_action_href"), "html", null, true); echo "\">"; ob_start(); // line 136 echo " "; if ($this->getAttribute($context["_action"], "icon", array())) { echo "<i class=\"fa fa-"; echo twig_escape_filter($this->env, $this->getAttribute($context["_action"], "icon", array()), "html", null, true); echo "\"></i>"; } // line 137 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["_action"], "label", array()), array("%entity_name%" => $this->env->getExtension('translator')->trans($this->getAttribute($this->getContext($context, "_entity"), "label", array()), array(), "EasyAdminBundle"), "%entity_id%" => $this->getContext($context, "_item_id")), "EasyAdminBundle"), "html", null, true); echo "\n "; echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); // line 138 echo "</a>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['_action'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 140 echo " </td>\n "; } // line 142 echo " </tr>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 144 echo " <tr>\n <td colspan=\""; // line 145 echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getContext($context, "_list_item_actions")) > 0 ? twig_length_filter($this->env, $this->getContext($context, "fields")) + 1 : twig_length_filter($this->env, $this->getContext($context, "fields")), "html", null, true); echo "\">\n "; // line 146 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("search.no_results", $this->getContext($context, "_trans_parameters"), "EasyAdminBundle"), "html", null, true); echo "\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 150 echo " </tbody>\n </table>\n\n "; // line 153 echo twig_include($this->env, $context, "@EasyAdmin/_list_paginator.html.twig"); echo "\n </div>\n </div>\n</div>\n"; }
public function block_form_start($context, array $blocks = array()) { $__internal_ddb60d7e4ddd0d52229474bcbc3bea7754f6dfce07b5e1b2d693c56932c4a470 = $this->env->getExtension("native_profiler"); $__internal_ddb60d7e4ddd0d52229474bcbc3bea7754f6dfce07b5e1b2d693c56932c4a470->enter($__internal_ddb60d7e4ddd0d52229474bcbc3bea7754f6dfce07b5e1b2d693c56932c4a470_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "form_start")); // line 266 $context["method"] = twig_upper_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")); // line 267 if (twig_in_filter(isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), array(0 => "GET", 1 => "POST"))) { // line 268 $context["form_method"] = isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"); } else { // line 270 $context["form_method"] = "POST"; } // line 272 echo "<form name=\""; echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true); echo "\" method=\""; echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")), "html", null, true); echo "\" action=\""; echo twig_escape_filter($this->env, isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), "html", null, true); echo "\""; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")); foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) { echo " "; echo twig_escape_filter($this->env, $context["attrname"], "html", null, true); echo "=\""; echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true); echo "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; if (isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart")) { echo " enctype=\"multipart/form-data\""; } echo ">"; // line 273 if ((isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")) != (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))) { // line 274 echo "<input type=\"hidden\" name=\"_method\" value=\""; echo twig_escape_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), "html", null, true); echo "\" />"; } $__internal_ddb60d7e4ddd0d52229474bcbc3bea7754f6dfce07b5e1b2d693c56932c4a470->leave($__internal_ddb60d7e4ddd0d52229474bcbc3bea7754f6dfce07b5e1b2d693c56932c4a470_prof); }
public function block_form_start($context, array $blocks = array()) { $__internal_22ea8b50650abcfc162aa0b010597e35ea2f6c8f869724f26b2984577c9cd585 = $this->env->getExtension("native_profiler"); $__internal_22ea8b50650abcfc162aa0b010597e35ea2f6c8f869724f26b2984577c9cd585->enter($__internal_22ea8b50650abcfc162aa0b010597e35ea2f6c8f869724f26b2984577c9cd585_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "form_start")); // line 266 $context["method"] = twig_upper_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")); // line 267 if (twig_in_filter(isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), array(0 => "GET", 1 => "POST"))) { // line 268 $context["form_method"] = isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"); } else { // line 270 $context["form_method"] = "POST"; } // line 272 echo "<form name=\""; echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "html", null, true); echo "\" method=\""; echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")), "html", null, true); echo "\" action=\""; echo twig_escape_filter($this->env, isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), "html", null, true); echo "\""; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr")); foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) { echo " "; echo twig_escape_filter($this->env, $context["attrname"], "html", null, true); echo "=\""; echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true); echo "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; if (isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart")) { echo " enctype=\"multipart/form-data\""; } echo ">"; // line 273 if ((isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")) != (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))) { // line 274 echo "<input type=\"hidden\" name=\"_method\" value=\""; echo twig_escape_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), "html", null, true); echo "\" />"; } $__internal_22ea8b50650abcfc162aa0b010597e35ea2f6c8f869724f26b2984577c9cd585->leave($__internal_22ea8b50650abcfc162aa0b010597e35ea2f6c8f869724f26b2984577c9cd585_prof); }
public function block_content($context, array $blocks = array()) { // line 3 echo "\n\t\t\t"; // line 5 echo "\t\t\t"; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "audio", array())) { // line 6 echo "\t\t\t\t<audio autoplay src=\""; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "audio", array()) == "shot") { echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/" . $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "audio", array()) . "-" . twig_lower_filter($this->env, twig_first($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "slug", array(), "method"))) . ".mp3"); } else { echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/" . $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "audio", array()) . ".mp3"); } echo "\"></audio>\n\t\t\t"; } // line 8 echo "\n "; // line 10 echo " <a href=\""; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "a", array())) { echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "a", array()); } else { echo "#"; } echo "\" "; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "a", array())) { } else { echo "onclick=\"play('shot-a')\""; } echo ">\n <div id=\"soldier_a\"></div>\n </a>\n <audio id=\"shot-a\" src=\""; // line 13 echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-a.mp3"); echo "\" ></audio>\n\n "; // line 16 echo " <a href=\""; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "b", array())) { echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "b", array()); } else { echo "#"; } echo "\" "; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "b", array())) { } else { echo "onclick=\"play('shot-b')\""; } echo ">\n <div id=\"soldier_b\"></div>\n </a>\n <audio id=\"shot-b\" src=\""; // line 19 echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-b.mp3"); echo "\" ></audio>\n\n "; // line 22 echo " <a href=\""; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "c", array())) { echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "c", array()); } else { echo "#"; } echo "\" "; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "c", array())) { } else { echo "onclick=\"play('shot-c')\""; } echo ">\n <div id=\"soldier_c\"></div>\n </a>\n <audio id=\"shot-c\" src=\""; // line 25 echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-c.mp3"); echo "\" ></audio>\n\n "; // line 28 echo " <a href=\""; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "d", array())) { echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "d", array()); } else { echo "#"; } echo "\" "; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "d", array())) { } else { echo "onclick=\"play('shot-d')\""; } echo ">\n <div id=\"soldier_d\"></div>\n </a>\n <audio id=\"shot-d\" src=\""; // line 31 echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-d.mp3"); echo "\" ></audio>\n\n "; // line 34 echo " <a href=\""; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "e", array())) { echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "e", array()); } else { echo "#"; } echo "\" "; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "e", array())) { } else { echo "onclick=\"play('shot-5')\""; } echo ">\n <div id=\"soldier_e\"></div>\n </a>\n <audio id=\"shot-5\" src=\""; // line 37 echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-e.mp3"); echo "\" ></audio>\n\n "; // line 40 echo " <a href=\""; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "f", array())) { echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "f", array()); } else { echo "#"; } echo "\" "; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "f", array())) { } else { echo "onclick=\"play('shot-6')\""; } echo ">\n <div id=\"soldier_f\"></div>\n </a>\n <audio id=\"shot-6\" src=\""; // line 43 echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-f.mp3"); echo "\" ></audio>\n\n "; // line 46 echo " <a href=\""; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "g", array())) { echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "g", array()); } else { echo "#"; } echo "\" "; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "g", array())) { } else { echo "onclick=\"play('shot-7')\""; } echo ">\n <div id=\"soldier_g\"></div>\n </a>\n <audio id=\"shot-7\" src=\""; // line 49 echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-g.mp3"); echo "\" ></audio>\n\n\t\t\t"; // line 52 echo "\t\t\t"; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "type", array()) == "balloon") { // line 53 echo "\t\t\t\t<blockquote id=\"balloon-"; echo twig_lower_filter($this->env, twig_first($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "slug", array(), "method"))); echo "\">\n\t\t\t\t\t"; // line 54 echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array()); echo "\n\t\t\t\t</blockquote>\n\n\t\t\t"; // line 58 echo "\t\t\t"; } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "type", array()) == "thought") { // line 59 echo "\t\t\t\t<div id=\"thought-"; echo twig_lower_filter($this->env, twig_first($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "slug", array(), "method"))); echo "\" "; if (null === $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "no_dialog_fade", array())) { echo "class=\"dialog-fade-in\""; } echo ">\n\t\t\t\t\t<a href=\""; // line 60 echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array()); echo "\">"; echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array()); echo "</a>\n\t\t\t\t</div>\n\n\t\t\t"; // line 64 echo "\t\t\t"; } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "type", array()) == "thought-chest") { // line 65 echo "\t\t\t\t\t<div id=\"thought-"; echo twig_lower_filter($this->env, twig_first($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "slug", array(), "method"))); echo "\">\n\t\t\t\t\t\t<a href=\""; // line 66 echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array()); echo "\" onmouseover=\"play('latch-open')\">\n\t\t\t\t\t\t\t<div id=\"small-chest\">\n\t\t\t\t\t\t\t\t<audio id=\"latch-open\" src=\""; // line 68 echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/latch-open.mp3"); echo "\"></audio>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\n\t\t\t"; // line 74 echo "\t\t\t"; } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "type", array()) == "chest-closed" || "chest-open") { // line 75 echo "\t\t\t\t<a href=\""; echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array()); echo "\"><div id=\""; echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "type", array()); echo "\"></div></a>\n\t\t\t"; } else { // line 77 echo "\t\t\t\t"; echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array()); echo "\n\t\t\t"; } // line 79 echo "\n\t\t\t"; // line 81 echo "\t\t\t"; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "hint", array())) { // line 82 echo "\t\t\t\t<div id=\"hint-"; echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "hint", array()); echo "\">\n\t\t\t\t\t"; // line 83 if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_a", array()) && $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_b", array()) && $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_c", array())) { // line 84 echo "\t\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off\"></div>\n\t\t\t\t\t\t<a href=\""; // line 85 echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_a", array()); echo "\"><div class=\"keyhole keyhole-left mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off\"></div>\n\t\t\t\t\t\t<a href=\""; // line 87 echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_b", array()); echo "\"><div class=\"keyhole keyhole-center mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off\"></div>\n\t\t\t\t\t\t<a href=\""; // line 89 echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_c", array()); echo "\"><div class=\"keyhole keyhole-right mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t"; } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keyholes", array()) == "on") { // line 91 echo "\t\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off\"></div>\n\t\t\t\t\t\t<a href=\""; // line 92 echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array()); echo "\"><div class=\"keyhole keyhole-left mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off\"></div>\n\t\t\t\t <a href=\""; // line 94 echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array()); echo "\"><div class=\"keyhole keyhole-center mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off\"></div>\n\t\t\t\t <a href=\""; // line 96 echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array()); echo "\"><div class=\"keyhole keyhole-right mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t"; } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keyholes", array()) == "a") { // line 98 echo "\t\t\t\t\t\t<div class=\"keyhole keyhole-left keyhole-out\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off keyhole-fade-in\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off\"></div>\n\t\t\t\t\t"; } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keyholes", array()) == "b") { // line 103 echo "\t\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center keyhole-out\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off keyhole-fade-in\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off\"></div>\n\t\t\t\t\t"; } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keyholes", array()) == "c") { // line 108 echo "\t\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right keyhole-out\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off keyhole-fade-in\"></div>\n\t\t\t\t\t"; } else { // line 113 echo "\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off\"></div>\n\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off\"></div>\n\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off\"></div>\n\t\t\t\t\t"; } // line 117 echo "\t\t\t\t</div>\n\t\t\t"; } // line 119 echo "\n\t\t\t"; // line 121 echo "\t\t\t"; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keys", array())) { // line 122 echo "\t\t\t\t"; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(range(1, $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keys", array()))); foreach ($context['_seq'] as $context["_key"] => $context["name"]) { // line 123 echo "\t\t\t\t\t<div class=\"key\"></div>\n\t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['name'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 125 echo "\t\t\t"; } // line 126 echo "\n\t\t\t"; // line 128 echo "\t\t\t"; if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "effect", array()) == "final-fade") { // line 129 echo "\t\t\t\t<div id=\"white-screen\"></div>\n\t\t\t"; } // line 131 echo "\n "; // line 133 echo " <div id=\"return\">\n <a href=\""; // line 134 echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "return_link", array()); echo "\">Return</a>\n </div>\n\t"; }
public function block_page($context, array $blocks = array()) { // line 71 echo " <div class=\"remodal-bg\">\n\n "; // line 73 $this->displayBlock('navigation', $context, $blocks); // line 76 echo "\n <section id=\"admin-main\" >\n <div id=\"titlebar\" class=\"titlebar secondary-accent\">\n "; // line 79 $this->displayBlock('titlebar', $context, $blocks); // line 80 echo " </div>\n\n <div class=\"grav-update\" data-gpm-grav>\n </div>\n\n <div class=\"content-padding\">\n <div>\n "; // line 87 $this->displayBlock('messages', $context, $blocks); // line 90 echo " "; $this->displayBlock('content_top', $context, $blocks); // line 91 echo " <div class=\"admin-block default-box-shadow\">\n "; // line 92 $this->displayBlock('content', $context, $blocks); // line 93 echo " </div>\n "; // line 94 if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "plugins", array()), "admin", array()), "show_github_msg", array())) { // line 95 echo " <div class=\"notice alert\"><i class=\"fa fa-github\"></i> <a href=\"https://github.com/getgrav/grav-plugin-admin/issues\" target=\"_blank\">"; echo $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADMIN_REPORT_ISSUE"); echo "</a></div>\n "; } // line 97 echo " "; $this->displayBlock('content_bottom', $context, $blocks); // line 98 echo " </div>\n <footer id=\"footer\">\n <a href=\"http://getgrav.org\">Grav</a> "; // line 100 echo twig_lower_filter($this->env, $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.VERSION")); echo " <span class=\"grav-version\">"; echo twig_constant("GRAV_VERSION"); echo "</span> "; echo twig_lower_filter($this->env, $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.WAS_MADE_WITH")); echo " <i class=\"fa fa-heart\"></i> "; echo twig_lower_filter($this->env, $this->env->getExtension('AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BY")); echo " <a href=\"http://www.rockettheme.com\">RocketTheme</a>.\n </footer>\n </div>\n\n </section>\n <div id='overlay'></div>\n </div>\n "; }