0b8471b9f41874e16558e54a1e3d8eee9f3cc3d0bf72b44a1769678811205e38.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?php
  2. /* partials/dashboard-statistics.html.twig */
  3. class __TwigTemplate_83ad0585a58613ceed1064131aee91714fa7583bff47dbf934cd3a40fc232e20 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. );
  11. }
  12. protected function doDisplay(array $context, array $blocks = array())
  13. {
  14. // line 1
  15. if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.statistics", 1 => "admin.super"))) {
  16. // line 2
  17. echo " <div id=\"popularity\" class=\"dashboard-item dashboard-right\" data-chart-name=\"popularity\" data-chart-type=\"bar\" data-chart-data=\"";
  18. echo twig_escape_filter($this->env, twig_jsonencode_filter(array("series" => array(0 => $this->getAttribute($this->getAttribute(($context["popularity"] ?? null), "getDailyChartData", array()), "data", array(), "array")), "labels" => $this->getAttribute($this->getAttribute(($context["popularity"] ?? null), "getDailyChartData", array()), "labels", array(), "array"))), "html_attr");
  19. echo "\">
  20. <div class=\"primary-accent default-box-shadow\">
  21. <h1>";
  22. // line 4
  23. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.STATISTICS"), "html", null, true);
  24. echo "</h1>
  25. <div class=\"admin-statistics-chart\">
  26. <div class=\"ct-chart chart-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
  27. <div class=\"flush-bottom button-bar stats-bar\">
  28. <span class=\"stat\">
  29. <b>";
  30. // line 9
  31. echo twig_escape_filter($this->env, $this->getAttribute(($context["popularity"] ?? null), "getDailyTotal", array()), "html", null, true);
  32. echo "</b>
  33. <i>";
  34. // line 10
  35. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.TODAY"), "html", null, true);
  36. echo "</i>
  37. </span>
  38. <span class=\"stat\">
  39. <b>";
  40. // line 13
  41. echo twig_escape_filter($this->env, $this->getAttribute(($context["popularity"] ?? null), "getWeeklyTotal", array()), "html", null, true);
  42. echo "</b>
  43. <i>";
  44. // line 14
  45. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.WEEK"), "html", null, true);
  46. echo "</i>
  47. </span>
  48. <span class=\"stat\">
  49. <b>";
  50. // line 17
  51. echo twig_escape_filter($this->env, $this->getAttribute(($context["popularity"] ?? null), "getMonthlyTotal", array()), "html", null, true);
  52. echo "</b>
  53. <i>";
  54. // line 18
  55. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MONTH"), "html", null, true);
  56. echo "</i>
  57. </span>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. ";
  63. }
  64. }
  65. public function getTemplateName()
  66. {
  67. return "partials/dashboard-statistics.html.twig";
  68. }
  69. public function isTraitable()
  70. {
  71. return false;
  72. }
  73. public function getDebugInfo()
  74. {
  75. return array ( 59 => 18, 55 => 17, 49 => 14, 45 => 13, 39 => 10, 35 => 9, 27 => 4, 21 => 2, 19 => 1,);
  76. }
  77. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  78. public function getSource()
  79. {
  80. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  81. return $this->getSourceContext()->getCode();
  82. }
  83. public function getSourceContext()
  84. {
  85. return new Twig_Source("{% if authorize(['admin.statistics', 'admin.super']) %}
  86. <div id=\"popularity\" class=\"dashboard-item dashboard-right\" data-chart-name=\"popularity\" data-chart-type=\"bar\" data-chart-data=\"{{ {'series': [popularity.getDailyChartData['data']], 'labels': popularity.getDailyChartData['labels']}|json_encode|e('html_attr') }}\">
  87. <div class=\"primary-accent default-box-shadow\">
  88. <h1>{{ \"PLUGIN_ADMIN.STATISTICS\"|tu }}</h1>
  89. <div class=\"admin-statistics-chart\">
  90. <div class=\"ct-chart chart-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
  91. <div class=\"flush-bottom button-bar stats-bar\">
  92. <span class=\"stat\">
  93. <b>{{ popularity.getDailyTotal }}</b>
  94. <i>{{ \"PLUGIN_ADMIN.TODAY\"|tu }}</i>
  95. </span>
  96. <span class=\"stat\">
  97. <b>{{ popularity.getWeeklyTotal }}</b>
  98. <i>{{ \"PLUGIN_ADMIN.WEEK\"|tu }}</i>
  99. </span>
  100. <span class=\"stat\">
  101. <b>{{ popularity.getMonthlyTotal }}</b>
  102. <i>{{ \"PLUGIN_ADMIN.MONTH\"|tu }}</i>
  103. </span>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. {% endif %}
  109. ", "partials/dashboard-statistics.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/dashboard-statistics.html.twig");
  110. }
  111. }