File: D:/web/matomo.circ/tmp/templates_c/95/95a7ee3228a64dbdab3373e5e6398a90.php
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @Goals/_addEditGoal.twig */
class __TwigTemplate_fbcc15a4075638f3e1ed8d24899ef4c8 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
yield "
";
// line 2
$macros["ajax"] = $this->macros["ajax"] = $this->loadTemplate("ajaxMacros.twig", "@Goals/_addEditGoal.twig", 2)->unwrap();
// line 3
yield CoreExtension::callMacro($macros["ajax"], "macro_errorDiv", [], 3, $context, $this->getSourceContext());
yield "
<script type=\"text/javascript\">
";
// line 6
if ((isset($context["userCanEditGoals"]) || array_key_exists("userCanEditGoals", $context) ? $context["userCanEditGoals"] : (function () { throw new RuntimeError('Variable "userCanEditGoals" does not exist.', 6, $this->source); })())) {
// line 7
yield " ";
if ( !array_key_exists("onlyShowAddNewGoal", $context)) {
// line 8
yield " piwik.goals = ";
yield (isset($context["goalsJSON"]) || array_key_exists("goalsJSON", $context) ? $context["goalsJSON"] : (function () { throw new RuntimeError('Variable "goalsJSON" does not exist.', 8, $this->source); })());
yield ";
";
}
// line 10
yield " ";
} else {
// line 11
yield " piwik.goals = ";
yield (isset($context["goalsJSON"]) || array_key_exists("goalsJSON", $context) ? $context["goalsJSON"] : (function () { throw new RuntimeError('Variable "goalsJSON" does not exist.', 11, $this->source); })());
yield ";
";
}
// line 13
yield "
</script>
<div
vue-entry=\"Goals.ManageGoals\"
user-can-edit-goals=\"";
// line 18
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["userCanEditGoals"]) || array_key_exists("userCanEditGoals", $context) ? $context["userCanEditGoals"] : (function () { throw new RuntimeError('Variable "userCanEditGoals" does not exist.', 18, $this->source); })())), "html", null, true);
yield "\"
only-show-add-new-goal=\"";
// line 19
yield \Piwik\piwik_escape_filter($this->env, json_encode(((array_key_exists("onlyShowAddNewGoal", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["onlyShowAddNewGoal"]) || array_key_exists("onlyShowAddNewGoal", $context) ? $context["onlyShowAddNewGoal"] : (function () { throw new RuntimeError('Variable "onlyShowAddNewGoal" does not exist.', 19, $this->source); })()), false)) : (false))), "html", null, true);
yield "\"
ecommerce-enabled=\"";
// line 20
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["ecommerceEnabled"]) || array_key_exists("ecommerceEnabled", $context) ? $context["ecommerceEnabled"] : (function () { throw new RuntimeError('Variable "ecommerceEnabled" does not exist.', 20, $this->source); })())), "html", null, true);
yield "\"
";
// line 21
if ((isset($context["userCanEditGoals"]) || array_key_exists("userCanEditGoals", $context) ? $context["userCanEditGoals"] : (function () { throw new RuntimeError('Variable "userCanEditGoals" does not exist.', 21, $this->source); })())) {
// line 22
yield " ";
if (( !array_key_exists("onlyShowAddNewGoal", $context) || !(isset($context["onlyShowAddNewGoal"]) || array_key_exists("onlyShowAddNewGoal", $context) ? $context["onlyShowAddNewGoal"] : (function () { throw new RuntimeError('Variable "onlyShowAddNewGoal" does not exist.', 22, $this->source); })()))) {
// line 23
yield " goals=\"";
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["goals"]) || array_key_exists("goals", $context) ? $context["goals"] : (function () { throw new RuntimeError('Variable "goals" does not exist.', 23, $this->source); })())), "html", null, true);
yield "\"
";
// line 24
if ((isset($context["idGoal"]) || array_key_exists("idGoal", $context) ? $context["idGoal"] : (function () { throw new RuntimeError('Variable "idGoal" does not exist.', 24, $this->source); })())) {
// line 25
yield " show-goal=\"";
yield \Piwik\piwik_escape_filter($this->env, \Piwik\piwik_escape_filter($this->env, (isset($context["idGoal"]) || array_key_exists("idGoal", $context) ? $context["idGoal"] : (function () { throw new RuntimeError('Variable "idGoal" does not exist.', 25, $this->source); })()), "js"), "html", null, true);
yield "\"
";
}
// line 27
yield " ";
} else {
// line 28
yield " show-add-goal=\"true\"
";
}
// line 30
yield " ";
} else {
// line 31
yield " goals=\"";
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["goals"]) || array_key_exists("goals", $context) ? $context["goals"] : (function () { throw new RuntimeError('Variable "goals" does not exist.', 31, $this->source); })())), "html", null, true);
yield "\"
";
}
// line 33
yield " ";
if (array_key_exists("addNewGoalIntro", $context)) {
yield "add-new-goal-intro=\"";
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["addNewGoalIntro"]) || array_key_exists("addNewGoalIntro", $context) ? $context["addNewGoalIntro"] : (function () { throw new RuntimeError('Variable "addNewGoalIntro" does not exist.', 33, $this->source); })())), "html", null, true);
yield "\"";
}
// line 34
yield " goal-trigger-type-options=\"";
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["goalTriggerTypeOptions"]) || array_key_exists("goalTriggerTypeOptions", $context) ? $context["goalTriggerTypeOptions"] : (function () { throw new RuntimeError('Variable "goalTriggerTypeOptions" does not exist.', 34, $this->source); })())), "html", null, true);
yield "\"
goal-match-attribute-options=\"";
// line 35
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["goalMatchAttributeOptions"]) || array_key_exists("goalMatchAttributeOptions", $context) ? $context["goalMatchAttributeOptions"] : (function () { throw new RuntimeError('Variable "goalMatchAttributeOptions" does not exist.', 35, $this->source); })())), "html", null, true);
yield "\"
event-type-options=\"";
// line 36
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["eventTypeOptions"]) || array_key_exists("eventTypeOptions", $context) ? $context["eventTypeOptions"] : (function () { throw new RuntimeError('Variable "eventTypeOptions" does not exist.', 36, $this->source); })())), "html", null, true);
yield "\"
pattern-type-options=\"";
// line 37
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["patternTypeOptions"]) || array_key_exists("patternTypeOptions", $context) ? $context["patternTypeOptions"] : (function () { throw new RuntimeError('Variable "patternTypeOptions" does not exist.', 37, $this->source); })())), "html", null, true);
yield "\"
numeric-comparison-type-options=\"";
// line 38
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["numericComparisonTypeOptions"]) || array_key_exists("numericComparisonTypeOptions", $context) ? $context["numericComparisonTypeOptions"] : (function () { throw new RuntimeError('Variable "numericComparisonTypeOptions" does not exist.', 38, $this->source); })())), "html", null, true);
yield "\"
allow-multiple-options=\"";
// line 39
yield \Piwik\piwik_escape_filter($this->env, json_encode((isset($context["allowMultipleOptions"]) || array_key_exists("allowMultipleOptions", $context) ? $context["allowMultipleOptions"] : (function () { throw new RuntimeError('Variable "allowMultipleOptions" does not exist.', 39, $this->source); })())), "html", null, true);
yield "\"
before-goal-list-actions-body=\"";
// line 40
yield \Piwik\piwik_escape_filter($this->env, json_encode(((array_key_exists("beforeGoalListActionsBodyEventResult", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["beforeGoalListActionsBodyEventResult"]) || array_key_exists("beforeGoalListActionsBodyEventResult", $context) ? $context["beforeGoalListActionsBodyEventResult"] : (function () { throw new RuntimeError('Variable "beforeGoalListActionsBodyEventResult" does not exist.', 40, $this->source); })()), null)) : (null))), "html", null, true);
yield "\"
end-edit-table=\"";
// line 41
yield \Piwik\piwik_escape_filter($this->env, json_encode(((array_key_exists("endEditTable", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["endEditTable"]) || array_key_exists("endEditTable", $context) ? $context["endEditTable"] : (function () { throw new RuntimeError('Variable "endEditTable" does not exist.', 41, $this->source); })()), null)) : (null))), "html", null, true);
yield "\"
before-goal-list-actions-head=\"";
// line 42
yield \Piwik\piwik_escape_filter($this->env, json_encode(((array_key_exists("beforeGoalListActionsHead", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["beforeGoalListActionsHead"]) || array_key_exists("beforeGoalListActionsHead", $context) ? $context["beforeGoalListActionsHead"] : (function () { throw new RuntimeError('Variable "beforeGoalListActionsHead" does not exist.', 42, $this->source); })()), null)) : (null))), "html", null, true);
yield "\"
>
</div>
";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@Goals/_addEditGoal.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 162 => 42, 158 => 41, 154 => 40, 150 => 39, 146 => 38, 142 => 37, 138 => 36, 134 => 35, 129 => 34, 122 => 33, 116 => 31, 113 => 30, 109 => 28, 106 => 27, 100 => 25, 98 => 24, 93 => 23, 90 => 22, 88 => 21, 84 => 20, 80 => 19, 76 => 18, 69 => 13, 63 => 11, 60 => 10, 54 => 8, 51 => 7, 49 => 6, 43 => 3, 41 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("
{% import 'ajaxMacros.twig' as ajax %}
{{ ajax.errorDiv() }}
<script type=\"text/javascript\">
{% if userCanEditGoals %}
{% if onlyShowAddNewGoal is not defined %}
piwik.goals = {{ goalsJSON|raw }};
{% endif %}
{% else %}
piwik.goals = {{ goalsJSON|raw }};
{% endif %}
</script>
<div
vue-entry=\"Goals.ManageGoals\"
user-can-edit-goals=\"{{ userCanEditGoals|json_encode }}\"
only-show-add-new-goal=\"{{ onlyShowAddNewGoal|default(false)|json_encode }}\"
ecommerce-enabled=\"{{ ecommerceEnabled|json_encode }}\"
{% if userCanEditGoals %}
{% if onlyShowAddNewGoal is not defined or not onlyShowAddNewGoal %}
goals=\"{{ goals|json_encode }}\"
{% if idGoal %}
show-goal=\"{{ idGoal|e('js') }}\"
{% endif %}
{% else %}
show-add-goal=\"true\"
{% endif %}
{% else %}
goals=\"{{ goals|json_encode }}\"
{% endif %}
{% if addNewGoalIntro is defined %}add-new-goal-intro=\"{{ addNewGoalIntro|json_encode }}\"{% endif %}
goal-trigger-type-options=\"{{ goalTriggerTypeOptions|json_encode }}\"
goal-match-attribute-options=\"{{ goalMatchAttributeOptions|json_encode }}\"
event-type-options=\"{{ eventTypeOptions|json_encode }}\"
pattern-type-options=\"{{ patternTypeOptions|json_encode }}\"
numeric-comparison-type-options=\"{{ numericComparisonTypeOptions|json_encode }}\"
allow-multiple-options=\"{{ allowMultipleOptions|json_encode }}\"
before-goal-list-actions-body=\"{{ beforeGoalListActionsBodyEventResult|default(null)|json_encode }}\"
end-edit-table=\"{{ endEditTable|default(null)|json_encode }}\"
before-goal-list-actions-head=\"{{ beforeGoalListActionsHead|default(null)|json_encode }}\"
>
</div>
", "@Goals/_addEditGoal.twig", "D:\\web\\matomo.circ\\plugins\\Goals\\templates\\_addEditGoal.twig");
}
}