File: D:/web/matomo.circ/tmp/templates_c/9a/9a7d5030c2956094e927a1d0bac97b59.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;
/* @Ecommerce/getSparklines.twig */
class __TwigTemplate_54a8047cff1a36953eba6ca8b1b007ec 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 "<div class=\"card\"><div class=\"card-content\">
<div id='leftcolumn' style=\"clear:both;";
// line 3
if ( !(isset($context["isWidget"]) || array_key_exists("isWidget", $context) ? $context["isWidget"] : (function () { throw new RuntimeError('Variable "isWidget" does not exist.', 3, $this->source); })())) {
yield "width:33%;'";
}
yield "\">
<div class=\"sparkline\">
";
// line 5
yield $this->env->getFunction('sparkline')->getCallable()((isset($context["urlSparklineConversions"]) || array_key_exists("urlSparklineConversions", $context) ? $context["urlSparklineConversions"] : (function () { throw new RuntimeError('Variable "urlSparklineConversions" does not exist.', 5, $this->source); })()));
yield "
\t <div class=\"sparkline-metrics\">
<strong>";
// line 7
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('number')->getCallable()((isset($context["nb_conversions"]) || array_key_exists("nb_conversions", $context) ? $context["nb_conversions"] : (function () { throw new RuntimeError('Variable "nb_conversions" does not exist.', 7, $this->source); })())), "html", null, true);
yield "</strong>
";
// line 8
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_EcommerceOrders"), "html", null, true);
yield "
<img src='plugins/Morpheus/images/ecommerceOrder.png'>
(";
// line 10
yield $this->env->getFilter('translate')->getCallable()("General_NVisits", (("<strong>" . (isset($context["nb_visits_converted"]) || array_key_exists("nb_visits_converted", $context) ? $context["nb_visits_converted"] : (function () { throw new RuntimeError('Variable "nb_visits_converted" does not exist.', 10, $this->source); })())) . "</strong>"));
yield ")
</div>
";
// line 12
if (array_key_exists("nb_conversions_trend", $context)) {
// line 13
yield " <div class=\"metricEvolution\" title=\"";
yield (isset($context["nb_conversions_tooltip"]) || array_key_exists("nb_conversions_tooltip", $context) ? $context["nb_conversions_tooltip"] : (function () { throw new RuntimeError('Variable "nb_conversions_tooltip" does not exist.', 13, $this->source); })());
yield "\">
";
// line 14
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 14, $this->source); })()) == -1)) {
yield " ";
$context["trend_icon"] = "arrow_down";
yield " ";
$context["trend_class"] = "negative";
yield " ";
}
// line 15
yield " ";
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 15, $this->source); })()) == 1)) {
yield " ";
$context["trend_icon"] = "arrow_up";
yield " ";
$context["trend_class"] = "positive";
yield " ";
}
// line 16
yield " ";
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 16, $this->source); })()) == 0)) {
yield " ";
$context["trend_icon"] = "stop";
yield " ";
$context["trend_class"] = "neutral";
yield " ";
}
// line 17
yield " <img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/";
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_icon"]) || array_key_exists("trend_icon", $context) ? $context["trend_icon"] : (function () { throw new RuntimeError('Variable "trend_icon" does not exist.', 17, $this->source); })()), "html", null, true);
yield ".png\">
<strong class=\"";
// line 18
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_class"]) || array_key_exists("trend_class", $context) ? $context["trend_class"] : (function () { throw new RuntimeError('Variable "trend_class" does not exist.', 18, $this->source); })()), "html", null, true);
yield "-evolution\">";
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 18, $this->source); })()) == 1)) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Intl_NumberSymbolPlus"), "html", null, true);
}
yield (isset($context["nb_conversions_trend_percent"]) || array_key_exists("nb_conversions_trend_percent", $context) ? $context["nb_conversions_trend_percent"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend_percent" does not exist.', 18, $this->source); })());
yield "</strong>
</div>
";
}
// line 21
yield " </div>
<div class=\"sparkline\">
";
// line 24
yield $this->env->getFunction('sparkline')->getCallable()((isset($context["urlSparklineRevenue"]) || array_key_exists("urlSparklineRevenue", $context) ? $context["urlSparklineRevenue"] : (function () { throw new RuntimeError('Variable "urlSparklineRevenue" does not exist.', 24, $this->source); })()));
yield "
\t <div class=\"sparkline-metrics\">
";
// line 26
$context["revenue"] = $this->env->getFilter('money')->getCallable()((isset($context["revenue"]) || array_key_exists("revenue", $context) ? $context["revenue"] : (function () { throw new RuntimeError('Variable "revenue" does not exist.', 26, $this->source); })()), (isset($context["idSite"]) || array_key_exists("idSite", $context) ? $context["idSite"] : (function () { throw new RuntimeError('Variable "idSite" does not exist.', 26, $this->source); })()));
// line 27
yield " <strong>";
yield (isset($context["revenue"]) || array_key_exists("revenue", $context) ? $context["revenue"] : (function () { throw new RuntimeError('Variable "revenue" does not exist.', 27, $this->source); })());
yield "</strong> ";
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_TotalRevenue"), "html", null, true);
yield "
\t </div>
";
// line 29
if (array_key_exists("revenue_trend", $context)) {
// line 30
yield " <div class=\"metricEvolution\" title=\"";
yield (isset($context["revenue_tooltip"]) || array_key_exists("revenue_tooltip", $context) ? $context["revenue_tooltip"] : (function () { throw new RuntimeError('Variable "revenue_tooltip" does not exist.', 30, $this->source); })());
yield "\">
";
// line 31
if (((isset($context["revenue_trend"]) || array_key_exists("revenue_trend", $context) ? $context["revenue_trend"] : (function () { throw new RuntimeError('Variable "revenue_trend" does not exist.', 31, $this->source); })()) == -1)) {
yield " ";
$context["trend_icon"] = "arrow_down";
yield " ";
$context["trend_class"] = "negative";
yield " ";
}
// line 32
yield " ";
if (((isset($context["revenue_trend"]) || array_key_exists("revenue_trend", $context) ? $context["revenue_trend"] : (function () { throw new RuntimeError('Variable "revenue_trend" does not exist.', 32, $this->source); })()) == 1)) {
yield " ";
$context["trend_icon"] = "arrow_up";
yield " ";
$context["trend_class"] = "positive";
yield " ";
}
// line 33
yield " ";
if (((isset($context["revenue_trend"]) || array_key_exists("revenue_trend", $context) ? $context["revenue_trend"] : (function () { throw new RuntimeError('Variable "revenue_trend" does not exist.', 33, $this->source); })()) == 0)) {
yield " ";
$context["trend_icon"] = "stop";
yield " ";
$context["trend_class"] = "neutral";
yield " ";
}
// line 34
yield " <img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/";
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_icon"]) || array_key_exists("trend_icon", $context) ? $context["trend_icon"] : (function () { throw new RuntimeError('Variable "trend_icon" does not exist.', 34, $this->source); })()), "html", null, true);
yield ".png\">
<strong class=\"";
// line 35
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_class"]) || array_key_exists("trend_class", $context) ? $context["trend_class"] : (function () { throw new RuntimeError('Variable "trend_class" does not exist.', 35, $this->source); })()), "html", null, true);
yield "-evolution\">";
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 35, $this->source); })()) == 1)) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Intl_NumberSymbolPlus"), "html", null, true);
}
yield (isset($context["revenue_trend_percent"]) || array_key_exists("revenue_trend_percent", $context) ? $context["revenue_trend_percent"] : (function () { throw new RuntimeError('Variable "revenue_trend_percent" does not exist.', 35, $this->source); })());
yield "</strong>
</div>
";
}
// line 38
yield " </div>
<div class=\"sparkline\">
";
// line 41
yield $this->env->getFunction('sparkline')->getCallable()((isset($context["urlSparklineAverageOrderValue"]) || array_key_exists("urlSparklineAverageOrderValue", $context) ? $context["urlSparklineAverageOrderValue"] : (function () { throw new RuntimeError('Variable "urlSparklineAverageOrderValue" does not exist.', 41, $this->source); })()));
yield "
<div class=\"sparkline-metrics\">
<strong>";
// line 43
yield $this->env->getFilter('money')->getCallable()((isset($context["avg_order_revenue"]) || array_key_exists("avg_order_revenue", $context) ? $context["avg_order_revenue"] : (function () { throw new RuntimeError('Variable "avg_order_revenue" does not exist.', 43, $this->source); })()), (isset($context["idSite"]) || array_key_exists("idSite", $context) ? $context["idSite"] : (function () { throw new RuntimeError('Variable "idSite" does not exist.', 43, $this->source); })()));
yield "</strong>
";
// line 44
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_AverageOrderValue"), "html", null, true);
yield "
</div>
";
// line 46
if (array_key_exists("avg_order_revenue_trend", $context)) {
// line 47
yield " <div class=\"metricEvolution\" title=\"";
yield (isset($context["avg_order_revenue_tooltip"]) || array_key_exists("avg_order_revenue_tooltip", $context) ? $context["avg_order_revenue_tooltip"] : (function () { throw new RuntimeError('Variable "avg_order_revenue_tooltip" does not exist.', 47, $this->source); })());
yield "\">
";
// line 48
if (((isset($context["avg_order_revenue_trend"]) || array_key_exists("avg_order_revenue_trend", $context) ? $context["avg_order_revenue_trend"] : (function () { throw new RuntimeError('Variable "avg_order_revenue_trend" does not exist.', 48, $this->source); })()) == -1)) {
yield " ";
$context["trend_icon"] = "arrow_down";
yield " ";
$context["trend_class"] = "negative";
yield " ";
}
// line 49
yield " ";
if (((isset($context["avg_order_revenue_trend"]) || array_key_exists("avg_order_revenue_trend", $context) ? $context["avg_order_revenue_trend"] : (function () { throw new RuntimeError('Variable "avg_order_revenue_trend" does not exist.', 49, $this->source); })()) == 1)) {
yield " ";
$context["trend_icon"] = "arrow_up";
yield " ";
$context["trend_class"] = "positive";
yield " ";
}
// line 50
yield " ";
if (((isset($context["avg_order_revenue_trend"]) || array_key_exists("avg_order_revenue_trend", $context) ? $context["avg_order_revenue_trend"] : (function () { throw new RuntimeError('Variable "avg_order_revenue_trend" does not exist.', 50, $this->source); })()) == 0)) {
yield " ";
$context["trend_icon"] = "stop";
yield " ";
$context["trend_class"] = "neutral";
yield " ";
}
// line 51
yield " <img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/";
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_icon"]) || array_key_exists("trend_icon", $context) ? $context["trend_icon"] : (function () { throw new RuntimeError('Variable "trend_icon" does not exist.', 51, $this->source); })()), "html", null, true);
yield ".png\">
<strong class=\"";
// line 52
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_class"]) || array_key_exists("trend_class", $context) ? $context["trend_class"] : (function () { throw new RuntimeError('Variable "trend_class" does not exist.', 52, $this->source); })()), "html", null, true);
yield "-evolution\">";
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 52, $this->source); })()) == 1)) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Intl_NumberSymbolPlus"), "html", null, true);
}
yield (isset($context["avg_order_revenue_trend_percent"]) || array_key_exists("avg_order_revenue_trend_percent", $context) ? $context["avg_order_revenue_trend_percent"] : (function () { throw new RuntimeError('Variable "avg_order_revenue_trend_percent" does not exist.', 52, $this->source); })());
yield "</strong>
</div>
";
}
// line 55
yield " </div>
</div>
<div id='leftcolumn' ";
// line 59
if ( !(isset($context["isWidget"]) || array_key_exists("isWidget", $context) ? $context["isWidget"] : (function () { throw new RuntimeError('Variable "isWidget" does not exist.', 59, $this->source); })())) {
yield "style='width:33%;'";
}
yield ">
<div class=\"sparkline\">
";
// line 62
yield $this->env->getFunction('sparkline')->getCallable()((isset($context["urlSparklineConversionRate"]) || array_key_exists("urlSparklineConversionRate", $context) ? $context["urlSparklineConversionRate"] : (function () { throw new RuntimeError('Variable "urlSparklineConversionRate" does not exist.', 62, $this->source); })()));
yield "
<div class=\"sparkline-metrics\">
";
// line 64
$context["ecommerceOrdersText"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_EcommerceOrders"), "html", null, true);
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 65
yield " ";
yield $this->env->getFilter('translate')->getCallable()("Goals_ConversionRate", ((("<strong>" . $this->env->getFilter('percent')->getCallable()((isset($context["conversion_rate"]) || array_key_exists("conversion_rate", $context) ? $context["conversion_rate"] : (function () { throw new RuntimeError('Variable "conversion_rate" does not exist.', 65, $this->source); })()))) . "</strong> ") . (isset($context["ecommerceOrdersText"]) || array_key_exists("ecommerceOrdersText", $context) ? $context["ecommerceOrdersText"] : (function () { throw new RuntimeError('Variable "ecommerceOrdersText" does not exist.', 65, $this->source); })())));
yield "
</div>
";
// line 67
if (array_key_exists("conversion_rate_trend", $context)) {
// line 68
yield " <div class=\"metricEvolution\" title=\"";
yield (isset($context["conversion_rate_tooltip"]) || array_key_exists("conversion_rate_tooltip", $context) ? $context["conversion_rate_tooltip"] : (function () { throw new RuntimeError('Variable "conversion_rate_tooltip" does not exist.', 68, $this->source); })());
yield "\">
";
// line 69
if (((isset($context["conversion_rate_trend"]) || array_key_exists("conversion_rate_trend", $context) ? $context["conversion_rate_trend"] : (function () { throw new RuntimeError('Variable "conversion_rate_trend" does not exist.', 69, $this->source); })()) == -1)) {
yield " ";
$context["trend_icon"] = "arrow_down";
yield " ";
$context["trend_class"] = "negative";
yield " ";
}
// line 70
yield " ";
if (((isset($context["conversion_rate_trend"]) || array_key_exists("conversion_rate_trend", $context) ? $context["conversion_rate_trend"] : (function () { throw new RuntimeError('Variable "conversion_rate_trend" does not exist.', 70, $this->source); })()) == 1)) {
yield " ";
$context["trend_icon"] = "arrow_up";
yield " ";
$context["trend_class"] = "positive";
yield " ";
}
// line 71
yield " ";
if (((isset($context["conversion_rate_trend"]) || array_key_exists("conversion_rate_trend", $context) ? $context["conversion_rate_trend"] : (function () { throw new RuntimeError('Variable "conversion_rate_trend" does not exist.', 71, $this->source); })()) == 0)) {
yield " ";
$context["trend_icon"] = "stop";
yield " ";
$context["trend_class"] = "neutral";
yield " ";
}
// line 72
yield " <img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/";
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_icon"]) || array_key_exists("trend_icon", $context) ? $context["trend_icon"] : (function () { throw new RuntimeError('Variable "trend_icon" does not exist.', 72, $this->source); })()), "html", null, true);
yield ".png\">
<strong class=\"";
// line 73
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_class"]) || array_key_exists("trend_class", $context) ? $context["trend_class"] : (function () { throw new RuntimeError('Variable "trend_class" does not exist.', 73, $this->source); })()), "html", null, true);
yield "-evolution\">";
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 73, $this->source); })()) == 1)) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Intl_NumberSymbolPlus"), "html", null, true);
}
yield (isset($context["conversion_rate_trend_percent"]) || array_key_exists("conversion_rate_trend_percent", $context) ? $context["conversion_rate_trend_percent"] : (function () { throw new RuntimeError('Variable "conversion_rate_trend_percent" does not exist.', 73, $this->source); })());
yield "</strong>
</div>
";
}
// line 76
yield " </div>
<div class=\"sparkline\">
";
// line 79
yield $this->env->getFunction('sparkline')->getCallable()((isset($context["urlSparklinePurchasedProducts"]) || array_key_exists("urlSparklinePurchasedProducts", $context) ? $context["urlSparklinePurchasedProducts"] : (function () { throw new RuntimeError('Variable "urlSparklinePurchasedProducts" does not exist.', 79, $this->source); })()));
yield "
\t <div class=\"sparkline-metrics\">
<strong>";
// line 81
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('number')->getCallable()((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 81, $this->source); })())), "html", null, true);
yield "</strong> ";
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_PurchasedProducts"), "html", null, true);
yield "
</div>
";
// line 83
if (array_key_exists("items_trend", $context)) {
// line 84
yield " <div class=\"metricEvolution\" title=\"";
yield (isset($context["items_tooltip"]) || array_key_exists("items_tooltip", $context) ? $context["items_tooltip"] : (function () { throw new RuntimeError('Variable "items_tooltip" does not exist.', 84, $this->source); })());
yield "\">
";
// line 85
if (((isset($context["items_trend"]) || array_key_exists("items_trend", $context) ? $context["items_trend"] : (function () { throw new RuntimeError('Variable "items_trend" does not exist.', 85, $this->source); })()) == -1)) {
yield " ";
$context["trend_icon"] = "arrow_down";
yield " ";
$context["trend_class"] = "negative";
yield " ";
}
// line 86
yield " ";
if (((isset($context["items_trend"]) || array_key_exists("items_trend", $context) ? $context["items_trend"] : (function () { throw new RuntimeError('Variable "items_trend" does not exist.', 86, $this->source); })()) == 1)) {
yield " ";
$context["trend_icon"] = "arrow_up";
yield " ";
$context["trend_class"] = "positive";
yield " ";
}
// line 87
yield " ";
if (((isset($context["items_trend"]) || array_key_exists("items_trend", $context) ? $context["items_trend"] : (function () { throw new RuntimeError('Variable "items_trend" does not exist.', 87, $this->source); })()) == 0)) {
yield " ";
$context["trend_icon"] = "stop";
yield " ";
$context["trend_class"] = "neutral";
yield " ";
}
// line 88
yield " <img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/";
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_icon"]) || array_key_exists("trend_icon", $context) ? $context["trend_icon"] : (function () { throw new RuntimeError('Variable "trend_icon" does not exist.', 88, $this->source); })()), "html", null, true);
yield ".png\">
<strong class=\"";
// line 89
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_class"]) || array_key_exists("trend_class", $context) ? $context["trend_class"] : (function () { throw new RuntimeError('Variable "trend_class" does not exist.', 89, $this->source); })()), "html", null, true);
yield "-evolution\">";
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 89, $this->source); })()) == 1)) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Intl_NumberSymbolPlus"), "html", null, true);
}
yield (isset($context["items_trend_percent"]) || array_key_exists("items_trend_percent", $context) ? $context["items_trend_percent"] : (function () { throw new RuntimeError('Variable "items_trend_percent" does not exist.', 89, $this->source); })());
yield "</strong>
</div>
";
}
// line 92
yield " </div>
</div>
<div id='rightcolumn' ";
// line 96
if ( !(isset($context["isWidget"]) || array_key_exists("isWidget", $context) ? $context["isWidget"] : (function () { throw new RuntimeError('Variable "isWidget" does not exist.', 96, $this->source); })())) {
yield "style='width:30%;'";
}
yield ">
<div>
<img src='plugins/Morpheus/images/ecommerceAbandonedCart.png'> ";
// line 98
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_AbandonedCarts"), "html", null, true);
yield "
</div>
<div class=\"sparkline\">
";
// line 102
yield $this->env->getFunction('sparkline')->getCallable()((isset($context["cart_urlSparklineConversions"]) || array_key_exists("cart_urlSparklineConversions", $context) ? $context["cart_urlSparklineConversions"] : (function () { throw new RuntimeError('Variable "cart_urlSparklineConversions" does not exist.', 102, $this->source); })()));
yield "
\t <div class=\"sparkline-metrics\">
";
// line 104
$context["ecommerceAbandonedCartsText"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Goals_AbandonedCart"), "html", null, true);
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 105
yield " <strong>";
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('number')->getCallable()((isset($context["cart_nb_conversions"]) || array_key_exists("cart_nb_conversions", $context) ? $context["cart_nb_conversions"] : (function () { throw new RuntimeError('Variable "cart_nb_conversions" does not exist.', 105, $this->source); })())), "html", null, true);
yield "</strong> ";
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_VisitsWith", (isset($context["ecommerceAbandonedCartsText"]) || array_key_exists("ecommerceAbandonedCartsText", $context) ? $context["ecommerceAbandonedCartsText"] : (function () { throw new RuntimeError('Variable "ecommerceAbandonedCartsText" does not exist.', 105, $this->source); })())), "html", null, true);
yield "
\t </div>
";
// line 107
if (array_key_exists("cart_nb_conversions_trend", $context)) {
// line 108
yield " <div class=\"metricEvolution\" title=\"";
yield (isset($context["cart_nb_conversions_tooltip"]) || array_key_exists("cart_nb_conversions_tooltip", $context) ? $context["cart_nb_conversions_tooltip"] : (function () { throw new RuntimeError('Variable "cart_nb_conversions_tooltip" does not exist.', 108, $this->source); })());
yield "\">
";
// line 109
if (((isset($context["cart_nb_conversions_trend"]) || array_key_exists("cart_nb_conversions_trend", $context) ? $context["cart_nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "cart_nb_conversions_trend" does not exist.', 109, $this->source); })()) == -1)) {
yield " ";
$context["trend_icon"] = "arrow_down";
yield " ";
$context["trend_class"] = "negative";
yield " ";
}
// line 110
yield " ";
if (((isset($context["cart_nb_conversions_trend"]) || array_key_exists("cart_nb_conversions_trend", $context) ? $context["cart_nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "cart_nb_conversions_trend" does not exist.', 110, $this->source); })()) == 1)) {
yield " ";
$context["trend_icon"] = "arrow_up";
yield " ";
$context["trend_class"] = "positive";
yield " ";
}
// line 111
yield " ";
if (((isset($context["cart_nb_conversions_trend"]) || array_key_exists("cart_nb_conversions_trend", $context) ? $context["cart_nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "cart_nb_conversions_trend" does not exist.', 111, $this->source); })()) == 0)) {
yield " ";
$context["trend_icon"] = "stop";
yield " ";
$context["trend_class"] = "neutral";
yield " ";
}
// line 112
yield " <img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/";
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_icon"]) || array_key_exists("trend_icon", $context) ? $context["trend_icon"] : (function () { throw new RuntimeError('Variable "trend_icon" does not exist.', 112, $this->source); })()), "html", null, true);
yield ".png\">
<strong class=\"";
// line 113
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_class"]) || array_key_exists("trend_class", $context) ? $context["trend_class"] : (function () { throw new RuntimeError('Variable "trend_class" does not exist.', 113, $this->source); })()), "html", null, true);
yield "-evolution\">";
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 113, $this->source); })()) == 1)) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Intl_NumberSymbolPlus"), "html", null, true);
}
yield (isset($context["cart_nb_conversions_trend_percent"]) || array_key_exists("cart_nb_conversions_trend_percent", $context) ? $context["cart_nb_conversions_trend_percent"] : (function () { throw new RuntimeError('Variable "cart_nb_conversions_trend_percent" does not exist.', 113, $this->source); })());
yield "</strong>
</div>
";
}
// line 116
yield " </div>
<div class=\"sparkline\">
";
// line 119
yield $this->env->getFunction('sparkline')->getCallable()((isset($context["cart_urlSparklineRevenue"]) || array_key_exists("cart_urlSparklineRevenue", $context) ? $context["cart_urlSparklineRevenue"] : (function () { throw new RuntimeError('Variable "cart_urlSparklineRevenue" does not exist.', 119, $this->source); })()));
yield "
\t <div class=\"sparkline-metrics\">
";
// line 121
$context["revenue"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
yield $this->env->getFilter('money')->getCallable()((isset($context["cart_revenue"]) || array_key_exists("cart_revenue", $context) ? $context["cart_revenue"] : (function () { throw new RuntimeError('Variable "cart_revenue" does not exist.', 121, $this->source); })()), (isset($context["idSite"]) || array_key_exists("idSite", $context) ? $context["idSite"] : (function () { throw new RuntimeError('Variable "idSite" does not exist.', 121, $this->source); })()));
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 122
yield " ";
$context["revenueText"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_ColumnRevenue"), "html", null, true);
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 123
yield " <strong>";
yield \Piwik\piwik_escape_filter($this->env, (isset($context["revenue"]) || array_key_exists("revenue", $context) ? $context["revenue"] : (function () { throw new RuntimeError('Variable "revenue" does not exist.', 123, $this->source); })()), "html", null, true);
yield "</strong> ";
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Goals_LeftInCart", (isset($context["revenueText"]) || array_key_exists("revenueText", $context) ? $context["revenueText"] : (function () { throw new RuntimeError('Variable "revenueText" does not exist.', 123, $this->source); })())), "html", null, true);
yield "
\t </div>
";
// line 125
if (array_key_exists("cart_revenue_trend", $context)) {
// line 126
yield " <div class=\"metricEvolution\" title=\"";
yield (isset($context["cart_revenue_tooltip"]) || array_key_exists("cart_revenue_tooltip", $context) ? $context["cart_revenue_tooltip"] : (function () { throw new RuntimeError('Variable "cart_revenue_tooltip" does not exist.', 126, $this->source); })());
yield "\">
";
// line 127
if (((isset($context["cart_revenue_trend"]) || array_key_exists("cart_revenue_trend", $context) ? $context["cart_revenue_trend"] : (function () { throw new RuntimeError('Variable "cart_revenue_trend" does not exist.', 127, $this->source); })()) == -1)) {
yield " ";
$context["trend_icon"] = "arrow_down";
yield " ";
$context["trend_class"] = "negative";
yield " ";
}
// line 128
yield " ";
if (((isset($context["cart_revenue_trend"]) || array_key_exists("cart_revenue_trend", $context) ? $context["cart_revenue_trend"] : (function () { throw new RuntimeError('Variable "cart_revenue_trend" does not exist.', 128, $this->source); })()) == 1)) {
yield " ";
$context["trend_icon"] = "arrow_up";
yield " ";
$context["trend_class"] = "positive";
yield " ";
}
// line 129
yield " ";
if (((isset($context["cart_revenue_trend"]) || array_key_exists("cart_revenue_trend", $context) ? $context["cart_revenue_trend"] : (function () { throw new RuntimeError('Variable "cart_revenue_trend" does not exist.', 129, $this->source); })()) == 0)) {
yield " ";
$context["trend_icon"] = "stop";
yield " ";
$context["trend_class"] = "neutral";
yield " ";
}
// line 130
yield " <img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/";
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_icon"]) || array_key_exists("trend_icon", $context) ? $context["trend_icon"] : (function () { throw new RuntimeError('Variable "trend_icon" does not exist.', 130, $this->source); })()), "html", null, true);
yield ".png\">
<strong class=\"";
// line 131
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_class"]) || array_key_exists("trend_class", $context) ? $context["trend_class"] : (function () { throw new RuntimeError('Variable "trend_class" does not exist.', 131, $this->source); })()), "html", null, true);
yield "-evolution\">";
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 131, $this->source); })()) == 1)) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Intl_NumberSymbolPlus"), "html", null, true);
}
yield (isset($context["cart_revenue_trend_percent"]) || array_key_exists("cart_revenue_trend_percent", $context) ? $context["cart_revenue_trend_percent"] : (function () { throw new RuntimeError('Variable "cart_revenue_trend_percent" does not exist.', 131, $this->source); })());
yield "</strong>
</div>
";
}
// line 134
yield " </div>
<div class=\"sparkline\">
";
// line 137
yield $this->env->getFunction('sparkline')->getCallable()((isset($context["cart_urlSparklineConversionRate"]) || array_key_exists("cart_urlSparklineConversionRate", $context) ? $context["cart_urlSparklineConversionRate"] : (function () { throw new RuntimeError('Variable "cart_urlSparklineConversionRate" does not exist.', 137, $this->source); })()));
yield "
\t <div class=\"sparkline-metrics\">
<strong>";
// line 139
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('percent')->getCallable()((isset($context["cart_conversion_rate"]) || array_key_exists("cart_conversion_rate", $context) ? $context["cart_conversion_rate"] : (function () { throw new RuntimeError('Variable "cart_conversion_rate" does not exist.', 139, $this->source); })())), "html", null, true);
yield "</strong>
";
// line 140
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_VisitsWith", (isset($context["ecommerceAbandonedCartsText"]) || array_key_exists("ecommerceAbandonedCartsText", $context) ? $context["ecommerceAbandonedCartsText"] : (function () { throw new RuntimeError('Variable "ecommerceAbandonedCartsText" does not exist.', 140, $this->source); })())), "html", null, true);
yield "
\t </div>
";
// line 142
if (array_key_exists("cart_conversion_rate_trend", $context)) {
// line 143
yield " <div class=\"metricEvolution\" title=\"";
yield (isset($context["cart_conversion_rate_tooltip"]) || array_key_exists("cart_conversion_rate_tooltip", $context) ? $context["cart_conversion_rate_tooltip"] : (function () { throw new RuntimeError('Variable "cart_conversion_rate_tooltip" does not exist.', 143, $this->source); })());
yield "\">
";
// line 144
if (((isset($context["cart_conversion_rate_trend"]) || array_key_exists("cart_conversion_rate_trend", $context) ? $context["cart_conversion_rate_trend"] : (function () { throw new RuntimeError('Variable "cart_conversion_rate_trend" does not exist.', 144, $this->source); })()) == -1)) {
yield " ";
$context["trend_icon"] = "arrow_down";
yield " ";
$context["trend_class"] = "negative";
yield " ";
}
// line 145
yield " ";
if (((isset($context["cart_conversion_rate_trend"]) || array_key_exists("cart_conversion_rate_trend", $context) ? $context["cart_conversion_rate_trend"] : (function () { throw new RuntimeError('Variable "cart_conversion_rate_trend" does not exist.', 145, $this->source); })()) == 1)) {
yield " ";
$context["trend_icon"] = "arrow_up";
yield " ";
$context["trend_class"] = "positive";
yield " ";
}
// line 146
yield " ";
if (((isset($context["cart_conversion_rate_trend"]) || array_key_exists("cart_conversion_rate_trend", $context) ? $context["cart_conversion_rate_trend"] : (function () { throw new RuntimeError('Variable "cart_conversion_rate_trend" does not exist.', 146, $this->source); })()) == 0)) {
yield " ";
$context["trend_icon"] = "stop";
yield " ";
$context["trend_class"] = "neutral";
yield " ";
}
// line 147
yield " <img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/";
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_icon"]) || array_key_exists("trend_icon", $context) ? $context["trend_icon"] : (function () { throw new RuntimeError('Variable "trend_icon" does not exist.', 147, $this->source); })()), "html", null, true);
yield ".png\">
<strong class=\"";
// line 148
yield \Piwik\piwik_escape_filter($this->env, (isset($context["trend_class"]) || array_key_exists("trend_class", $context) ? $context["trend_class"] : (function () { throw new RuntimeError('Variable "trend_class" does not exist.', 148, $this->source); })()), "html", null, true);
yield "-evolution\">";
if (((isset($context["nb_conversions_trend"]) || array_key_exists("nb_conversions_trend", $context) ? $context["nb_conversions_trend"] : (function () { throw new RuntimeError('Variable "nb_conversions_trend" does not exist.', 148, $this->source); })()) == 1)) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Intl_NumberSymbolPlus"), "html", null, true);
}
yield (isset($context["cart_conversion_rate_trend_percent"]) || array_key_exists("cart_conversion_rate_trend_percent", $context) ? $context["cart_conversion_rate_trend_percent"] : (function () { throw new RuntimeError('Variable "cart_conversion_rate_trend_percent" does not exist.', 148, $this->source); })());
yield "</strong>
</div>
";
}
// line 151
yield " </div>
</div>
<div style=\"clear: left;\"></div>
";
// line 155
yield from $this->loadTemplate("_sparklineFooter.twig", "@Ecommerce/getSparklines.twig", 155)->unwrap()->yield($context);
// line 156
yield "</div>
</div>
";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@Ecommerce/getSparklines.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 640 => 156, 638 => 155, 632 => 151, 621 => 148, 616 => 147, 607 => 146, 598 => 145, 590 => 144, 585 => 143, 583 => 142, 578 => 140, 574 => 139, 569 => 137, 564 => 134, 553 => 131, 548 => 130, 539 => 129, 530 => 128, 522 => 127, 517 => 126, 515 => 125, 507 => 123, 501 => 122, 496 => 121, 491 => 119, 486 => 116, 475 => 113, 470 => 112, 461 => 111, 452 => 110, 444 => 109, 439 => 108, 437 => 107, 429 => 105, 424 => 104, 419 => 102, 412 => 98, 405 => 96, 399 => 92, 388 => 89, 383 => 88, 374 => 87, 365 => 86, 357 => 85, 352 => 84, 350 => 83, 343 => 81, 338 => 79, 333 => 76, 322 => 73, 317 => 72, 308 => 71, 299 => 70, 291 => 69, 286 => 68, 284 => 67, 278 => 65, 273 => 64, 268 => 62, 260 => 59, 254 => 55, 243 => 52, 238 => 51, 229 => 50, 220 => 49, 212 => 48, 207 => 47, 205 => 46, 200 => 44, 196 => 43, 191 => 41, 186 => 38, 175 => 35, 170 => 34, 161 => 33, 152 => 32, 144 => 31, 139 => 30, 137 => 29, 129 => 27, 127 => 26, 122 => 24, 117 => 21, 106 => 18, 101 => 17, 92 => 16, 83 => 15, 75 => 14, 70 => 13, 68 => 12, 63 => 10, 58 => 8, 54 => 7, 49 => 5, 42 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"card\"><div class=\"card-content\">
<div id='leftcolumn' style=\"clear:both;{% if not isWidget %}width:33%;'{% endif %}\">
<div class=\"sparkline\">
{{ sparkline(urlSparklineConversions) }}
\t <div class=\"sparkline-metrics\">
<strong>{{ nb_conversions|number }}</strong>
{{ 'General_EcommerceOrders'|translate }}
<img src='plugins/Morpheus/images/ecommerceOrder.png'>
({{ 'General_NVisits'|translate(\"<strong>\"~nb_visits_converted~\"</strong>\")|raw }})
</div>
{% if nb_conversions_trend is defined %}
<div class=\"metricEvolution\" title=\"{{ nb_conversions_tooltip|raw }}\">
{% if nb_conversions_trend == -1 %} {% set trend_icon='arrow_down' %} {% set trend_class='negative' %} {% endif %}
{% if nb_conversions_trend == 1 %} {% set trend_icon='arrow_up' %} {% set trend_class='positive' %} {% endif %}
{% if nb_conversions_trend == 0 %} {% set trend_icon='stop' %} {% set trend_class='neutral' %} {% endif %}
<img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/{{ trend_icon }}.png\">
<strong class=\"{{ trend_class }}-evolution\">{% if nb_conversions_trend == 1 %}{{'Intl_NumberSymbolPlus'|translate}}{% endif %}{{ nb_conversions_trend_percent|raw }}</strong>
</div>
{% endif %}
</div>
<div class=\"sparkline\">
{{ sparkline(urlSparklineRevenue) }}
\t <div class=\"sparkline-metrics\">
{% set revenue=revenue|money(idSite) %}
<strong>{{ revenue|raw }}</strong> {{ 'General_TotalRevenue'|translate }}
\t </div>
{% if revenue_trend is defined %}
<div class=\"metricEvolution\" title=\"{{ revenue_tooltip|raw }}\">
{% if revenue_trend == -1 %} {% set trend_icon='arrow_down' %} {% set trend_class='negative' %} {% endif %}
{% if revenue_trend == 1 %} {% set trend_icon='arrow_up' %} {% set trend_class='positive' %} {% endif %}
{% if revenue_trend == 0 %} {% set trend_icon='stop' %} {% set trend_class='neutral' %} {% endif %}
<img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/{{ trend_icon }}.png\">
<strong class=\"{{ trend_class }}-evolution\">{% if nb_conversions_trend == 1 %}{{'Intl_NumberSymbolPlus'|translate}}{% endif %}{{ revenue_trend_percent|raw }}</strong>
</div>
{% endif %}
</div>
<div class=\"sparkline\">
{{ sparkline(urlSparklineAverageOrderValue) }}
<div class=\"sparkline-metrics\">
<strong>{{ avg_order_revenue|money(idSite)|raw }}</strong>
{{ 'General_AverageOrderValue'|translate }}
</div>
{% if avg_order_revenue_trend is defined %}
<div class=\"metricEvolution\" title=\"{{ avg_order_revenue_tooltip|raw }}\">
{% if avg_order_revenue_trend == -1 %} {% set trend_icon='arrow_down' %} {% set trend_class='negative' %} {% endif %}
{% if avg_order_revenue_trend == 1 %} {% set trend_icon='arrow_up' %} {% set trend_class='positive' %} {% endif %}
{% if avg_order_revenue_trend == 0 %} {% set trend_icon='stop' %} {% set trend_class='neutral' %} {% endif %}
<img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/{{ trend_icon }}.png\">
<strong class=\"{{ trend_class }}-evolution\">{% if nb_conversions_trend == 1 %}{{'Intl_NumberSymbolPlus'|translate}}{% endif %}{{ avg_order_revenue_trend_percent|raw }}</strong>
</div>
{% endif %}
</div>
</div>
<div id='leftcolumn' {% if not isWidget %}style='width:33%;'{% endif %}>
<div class=\"sparkline\">
{{ sparkline(urlSparklineConversionRate) }}
<div class=\"sparkline-metrics\">
{% set ecommerceOrdersText %}{{ 'General_EcommerceOrders'|translate }}{% endset %}
{{ 'Goals_ConversionRate'|translate(\"<strong>\"~conversion_rate|percent~\"</strong> \"~ecommerceOrdersText)|raw }}
</div>
{% if conversion_rate_trend is defined %}
<div class=\"metricEvolution\" title=\"{{ conversion_rate_tooltip|raw }}\">
{% if conversion_rate_trend == -1 %} {% set trend_icon='arrow_down' %} {% set trend_class='negative' %} {% endif %}
{% if conversion_rate_trend == 1 %} {% set trend_icon='arrow_up' %} {% set trend_class='positive' %} {% endif %}
{% if conversion_rate_trend == 0 %} {% set trend_icon='stop' %} {% set trend_class='neutral' %} {% endif %}
<img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/{{ trend_icon }}.png\">
<strong class=\"{{ trend_class }}-evolution\">{% if nb_conversions_trend == 1 %}{{'Intl_NumberSymbolPlus'|translate}}{% endif %}{{ conversion_rate_trend_percent|raw }}</strong>
</div>
{% endif %}
</div>
<div class=\"sparkline\">
{{ sparkline(urlSparklinePurchasedProducts) }}
\t <div class=\"sparkline-metrics\">
<strong>{{ items|number }}</strong> {{ 'General_PurchasedProducts'|translate }}
</div>
{% if items_trend is defined %}
<div class=\"metricEvolution\" title=\"{{ items_tooltip|raw }}\">
{% if items_trend == -1 %} {% set trend_icon='arrow_down' %} {% set trend_class='negative' %} {% endif %}
{% if items_trend == 1 %} {% set trend_icon='arrow_up' %} {% set trend_class='positive' %} {% endif %}
{% if items_trend == 0 %} {% set trend_icon='stop' %} {% set trend_class='neutral' %} {% endif %}
<img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/{{ trend_icon }}.png\">
<strong class=\"{{ trend_class }}-evolution\">{% if nb_conversions_trend == 1 %}{{'Intl_NumberSymbolPlus'|translate}}{% endif %}{{ items_trend_percent|raw }}</strong>
</div>
{% endif %}
</div>
</div>
<div id='rightcolumn' {% if not isWidget %}style='width:30%;'{% endif %}>
<div>
<img src='plugins/Morpheus/images/ecommerceAbandonedCart.png'> {{ 'General_AbandonedCarts'|translate }}
</div>
<div class=\"sparkline\">
{{ sparkline(cart_urlSparklineConversions) }}
\t <div class=\"sparkline-metrics\">
{% set ecommerceAbandonedCartsText %}{{ 'Goals_AbandonedCart'|translate }}{% endset %}
<strong>{{ cart_nb_conversions|number }}</strong> {{ 'General_VisitsWith'|translate(ecommerceAbandonedCartsText) }}
\t </div>
{% if cart_nb_conversions_trend is defined %}
<div class=\"metricEvolution\" title=\"{{ cart_nb_conversions_tooltip|raw }}\">
{% if cart_nb_conversions_trend == -1 %} {% set trend_icon='arrow_down' %} {% set trend_class='negative' %} {% endif %}
{% if cart_nb_conversions_trend == 1 %} {% set trend_icon='arrow_up' %} {% set trend_class='positive' %} {% endif %}
{% if cart_nb_conversions_trend == 0 %} {% set trend_icon='stop' %} {% set trend_class='neutral' %} {% endif %}
<img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/{{ trend_icon }}.png\">
<strong class=\"{{ trend_class }}-evolution\">{% if nb_conversions_trend == 1 %}{{'Intl_NumberSymbolPlus'|translate}}{% endif %}{{ cart_nb_conversions_trend_percent|raw }}</strong>
</div>
{% endif %}
</div>
<div class=\"sparkline\">
{{ sparkline(cart_urlSparklineRevenue) }}
\t <div class=\"sparkline-metrics\">
{% set revenue %}{{ cart_revenue|money(idSite)|raw }}{% endset %}
{% set revenueText %}{{ 'General_ColumnRevenue'|translate }}{% endset %}
<strong>{{ revenue }}</strong> {{ 'Goals_LeftInCart'|translate(revenueText) }}
\t </div>
{% if cart_revenue_trend is defined %}
<div class=\"metricEvolution\" title=\"{{ cart_revenue_tooltip|raw }}\">
{% if cart_revenue_trend == -1 %} {% set trend_icon='arrow_down' %} {% set trend_class='negative' %} {% endif %}
{% if cart_revenue_trend == 1 %} {% set trend_icon='arrow_up' %} {% set trend_class='positive' %} {% endif %}
{% if cart_revenue_trend == 0 %} {% set trend_icon='stop' %} {% set trend_class='neutral' %} {% endif %}
<img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/{{ trend_icon }}.png\">
<strong class=\"{{ trend_class }}-evolution\">{% if nb_conversions_trend == 1 %}{{'Intl_NumberSymbolPlus'|translate}}{% endif %}{{ cart_revenue_trend_percent|raw }}</strong>
</div>
{% endif %}
</div>
<div class=\"sparkline\">
{{ sparkline(cart_urlSparklineConversionRate) }}
\t <div class=\"sparkline-metrics\">
<strong>{{ cart_conversion_rate|percent }}</strong>
{{ 'General_VisitsWith'|translate(ecommerceAbandonedCartsText) }}
\t </div>
{% if cart_conversion_rate_trend is defined %}
<div class=\"metricEvolution\" title=\"{{ cart_conversion_rate_tooltip|raw }}\">
{% if cart_conversion_rate_trend == -1 %} {% set trend_icon='arrow_down' %} {% set trend_class='negative' %} {% endif %}
{% if cart_conversion_rate_trend == 1 %} {% set trend_icon='arrow_up' %} {% set trend_class='positive' %} {% endif %}
{% if cart_conversion_rate_trend == 0 %} {% set trend_icon='stop' %} {% set trend_class='neutral' %} {% endif %}
<img style=\"padding-right:4px;padding-left:4px;margin-top:-2px\" src=\"plugins/MultiSites/images/{{ trend_icon }}.png\">
<strong class=\"{{ trend_class }}-evolution\">{% if nb_conversions_trend == 1 %}{{'Intl_NumberSymbolPlus'|translate}}{% endif %}{{ cart_conversion_rate_trend_percent|raw }}</strong>
</div>
{% endif %}
</div>
</div>
<div style=\"clear: left;\"></div>
{% include \"_sparklineFooter.twig\" %}
</div>
</div>
", "@Ecommerce/getSparklines.twig", "D:\\web\\matomo.circ\\plugins\\Ecommerce\\templates\\getSparklines.twig");
}
}