054107ebda27ae5319224c056e8fc53699d35a3a37b49dae7cbcd7c3ee52d700.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <?php
  2. /* partials/plugins-details.html.twig */
  3. class __TwigTemplate_deae902ef331c4406ec4e0eda68d175a875660c651c3f3ba158ec6f3c1de42bc 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. $context["gpm"] = $this->getAttribute(($context["admin"] ?? null), "gpm", array(), "method");
  16. // line 2
  17. $context["installed"] = $this->getAttribute(($context["gpm"] ?? null), "isPluginInstalled", array(0 => $this->getAttribute(($context["admin"] ?? null), "route", array())), "method");
  18. // line 3
  19. $context["isTestingRelease"] = $this->getAttribute(($context["gpm"] ?? null), "isTestingRelease", array(0 => $this->getAttribute(($context["plugin"] ?? null), "slug", array())), "method");
  20. // line 4
  21. $context["gumroad_loaded"] = false;
  22. // line 5
  23. echo "
  24. <div class=\"grav-update plugin\" data-gpm-plugin=\"";
  25. // line 6
  26. echo twig_escape_filter($this->env, $this->getAttribute(($context["admin"] ?? null), "route", array()), "html", null, true);
  27. echo "\">
  28. </div>
  29. <h1>
  30. ";
  31. // line 10
  32. echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "name", array()));
  33. echo "
  34. ";
  35. // line 11
  36. if ($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => ($context["plugin"] ?? null)), "method")) {
  37. // line 12
  38. echo " <small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"";
  39. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.GRAV_OFFICIAL_PLUGIN"), "html", null, true);
  40. echo "\"></i></span></small>
  41. ";
  42. }
  43. // line 14
  44. echo " ";
  45. if ($this->getAttribute(($context["admin"] ?? null), "isPremiumProduct", array(0 => ($context["plugin"] ?? null)), "method")) {
  46. // line 15
  47. echo " <small><span class=\"badge warning premium\"><i class=\"fa fa-star-o\"></i> ";
  48. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREMIUM_PRODUCT"), "html", null, true);
  49. echo "</span></small>
  50. ";
  51. }
  52. // line 17
  53. echo " ";
  54. if ($this->getAttribute(($context["plugin"] ?? null), "symlink", array())) {
  55. // line 18
  56. echo " <small class=\"hint--bottom\" data-hint=\"";
  57. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGIN_SYMBOLICALLY_LINKED"), "html", null, true);
  58. echo "\">
  59. <i class=\"fa fa-fw fa-link\"></i>
  60. </small>
  61. ";
  62. }
  63. // line 22
  64. echo " <small>";
  65. echo twig_escape_filter($this->env, (($this->getAttribute(($context["plugin"] ?? null), "version", array())) ? (("v" . twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "version", array())))) : ("")), "html", null, true);
  66. echo "</small>
  67. ";
  68. // line 23
  69. if (($context["isTestingRelease"] ?? null)) {
  70. echo "<span class=\"gpm-testing\">test release</span>";
  71. }
  72. // line 24
  73. echo "</h1>
  74. <div class=\"gpm-item-info\">
  75. <i class=\"gpm-item-icon fa fa-fw fa-";
  76. // line 26
  77. echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "icon", array()), "html", null, true);
  78. echo "\"></i>
  79. ";
  80. // line 27
  81. $this->loadTemplate("partials/plugin-data.html.twig", "partials/plugins-details.html.twig", 27)->display(array_merge($context, array("plugin" => ($context["plugin"] ?? null))));
  82. // line 28
  83. echo "</div>
  84. ";
  85. // line 30
  86. if (($context["installed"] ?? null)) {
  87. // line 31
  88. echo " ";
  89. $context["data"] = $this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("plugins/" . $this->getAttribute(($context["admin"] ?? null), "route", array()))), "method");
  90. // line 32
  91. echo " ";
  92. $this->loadTemplate("partials/blueprints.html.twig", "partials/plugins-details.html.twig", 32)->display(array_merge($context, array("data" => ($context["data"] ?? null), "blueprints" => $this->getAttribute(($context["data"] ?? null), "blueprints", array()))));
  93. // line 33
  94. echo "
  95. ";
  96. // line 34
  97. if ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "form", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden") && ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "form", array()), "fields", array()), "tabs", array()), "fields", array()), "login", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden"))) {
  98. // line 35
  99. echo " <div class=\"button-bar danger\">
  100. <span class=\"danger-zone\"></span>
  101. ";
  102. // line 37
  103. if ( !$this->getAttribute(($context["plugin"] ?? null), "symlink", array())) {
  104. // line 38
  105. echo " <a class=\"button button-reinstall-package hidden\" href=\"#\" data-remodal-target=\"reinstall-package\"><i class=\"fa fa-fw fa-repeat\"></i> ";
  106. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REINSTALL_PLUGIN"), "html", null, true);
  107. echo "</a>
  108. ";
  109. }
  110. // line 40
  111. echo " <a class=\"button\" href=\"#\" data-remodal-target=\"remove-package\"><i class=\"fa fa-fw fa-warning\"></i> ";
  112. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REMOVE_PLUGIN"), "html", null, true);
  113. echo "</a>
  114. </div>
  115. ";
  116. }
  117. // line 43
  118. echo "
  119. ";
  120. } else {
  121. // line 45
  122. echo " <div class=\"button-bar success\">
  123. ";
  124. // line 46
  125. if (($this->getAttribute(($context["plugin"] ?? null), "premium", array()) && !$this->getAttribute(($context["admin"] ?? null), "license", array(0 => $this->getAttribute(($context["plugin"] ?? null), "slug", array())), "method"))) {
  126. // line 47
  127. echo " ";
  128. if ( !($context["gumroad_loaded"] ?? null)) {
  129. // line 48
  130. echo " ";
  131. $context["gumroad_loaded"] = true;
  132. // line 49
  133. echo " <script src=\"//gumroad.com/js/gumroad.js\"></script>
  134. ";
  135. }
  136. // line 51
  137. echo " <a class=\"gumroad-button button\" href=\"https://gum.co/";
  138. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "premium", array()), "product_permalink", array()), "html", null, true);
  139. echo "\" target=\"_blank\" data-gumroad-single-product=\"true\"><i class=\"fa fa-shopping-cart\"></i> ";
  140. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("Buy Now"), "html", null, true);
  141. echo "</a>
  142. ";
  143. } else {
  144. // line 53
  145. echo " <a class=\"button\" href=\"#\" data-remodal-target=\"add-package\" data-packages-slugs=\"";
  146. echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "slug", array()), "html", null, true);
  147. echo "\" data-plugin-action=\"start-package-installation\"><i class=\"fa fa-plus\"></i> ";
  148. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALL_PLUGIN"), "html", null, true);
  149. echo "</a>
  150. ";
  151. }
  152. // line 55
  153. echo " </div>
  154. ";
  155. }
  156. // line 57
  157. echo "
  158. ";
  159. // line 58
  160. $this->loadTemplate("partials/modal-changes-detected.html.twig", "partials/plugins-details.html.twig", 58)->display($context);
  161. // line 59
  162. $this->loadTemplate("partials/modal-add-package.html.twig", "partials/plugins-details.html.twig", 59)->display(array_merge($context, array("type" => "plugin")));
  163. // line 60
  164. $this->loadTemplate("partials/modal-update-packages.html.twig", "partials/plugins-details.html.twig", 60)->display(array_merge($context, array("type" => "plugin")));
  165. // line 61
  166. $this->loadTemplate("partials/modal-remove-package.html.twig", "partials/plugins-details.html.twig", 61)->display(array_merge($context, array("type" => "plugin", "package" => ($context["plugin"] ?? null))));
  167. // line 62
  168. $this->loadTemplate("partials/modal-reinstall-package.html.twig", "partials/plugins-details.html.twig", 62)->display(array_merge($context, array("type" => "plugin", "package" => ($context["plugin"] ?? null))));
  169. }
  170. public function getTemplateName()
  171. {
  172. return "partials/plugins-details.html.twig";
  173. }
  174. public function isTraitable()
  175. {
  176. return false;
  177. }
  178. public function getDebugInfo()
  179. {
  180. return array ( 174 => 62, 172 => 61, 170 => 60, 168 => 59, 166 => 58, 163 => 57, 159 => 55, 151 => 53, 143 => 51, 139 => 49, 136 => 48, 133 => 47, 131 => 46, 128 => 45, 124 => 43, 117 => 40, 111 => 38, 109 => 37, 105 => 35, 103 => 34, 100 => 33, 97 => 32, 94 => 31, 92 => 30, 88 => 28, 86 => 27, 82 => 26, 78 => 24, 74 => 23, 69 => 22, 61 => 18, 58 => 17, 52 => 15, 49 => 14, 43 => 12, 41 => 11, 37 => 10, 30 => 6, 27 => 5, 25 => 4, 23 => 3, 21 => 2, 19 => 1,);
  181. }
  182. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  183. public function getSource()
  184. {
  185. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  186. return $this->getSourceContext()->getCode();
  187. }
  188. public function getSourceContext()
  189. {
  190. return new Twig_Source("{% set gpm = admin.gpm() %}
  191. {% set installed = gpm.isPluginInstalled(admin.route) %}
  192. {% set isTestingRelease = gpm.isTestingRelease(plugin.slug) %}
  193. {% set gumroad_loaded = false %}
  194. <div class=\"grav-update plugin\" data-gpm-plugin=\"{{ admin.route }}\">
  195. </div>
  196. <h1>
  197. {{ plugin.name|e }}
  198. {% if admin.isTeamGrav(plugin) %}
  199. <small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"{{ \"PLUGIN_ADMIN.GRAV_OFFICIAL_PLUGIN\"|tu }}\"></i></span></small>
  200. {% endif %}
  201. {% if admin.isPremiumProduct(plugin) %}
  202. <small><span class=\"badge warning premium\"><i class=\"fa fa-star-o\"></i> {{ \"PLUGIN_ADMIN.PREMIUM_PRODUCT\"|tu }}</span></small>
  203. {% endif %}
  204. {% if plugin.symlink %}
  205. <small class=\"hint--bottom\" data-hint=\"{{ \"PLUGIN_ADMIN.PLUGIN_SYMBOLICALLY_LINKED\"|tu }}\">
  206. <i class=\"fa fa-fw fa-link\"></i>
  207. </small>
  208. {% endif %}
  209. <small>{{ plugin.version ? 'v' ~ plugin.version|e }}</small>
  210. {% if isTestingRelease %}<span class=\"gpm-testing\">test release</span>{% endif %}
  211. </h1>
  212. <div class=\"gpm-item-info\">
  213. <i class=\"gpm-item-icon fa fa-fw fa-{{ plugin.icon }}\"></i>
  214. {% include 'partials/plugin-data.html.twig' with { plugin: plugin } %}
  215. </div>
  216. {% if (installed) %}
  217. {% set data = admin.data('plugins/' ~ admin.route) %}
  218. {% include 'partials/blueprints.html.twig' with { data: data, blueprints: data.blueprints } %}
  219. {% if (plugin.form.fields.enabled.type != 'hidden' and plugin.form.fields.tabs.fields.login.fields.enabled.type != 'hidden') %}
  220. <div class=\"button-bar danger\">
  221. <span class=\"danger-zone\"></span>
  222. {% if not plugin.symlink %}
  223. <a class=\"button button-reinstall-package hidden\" href=\"#\" data-remodal-target=\"reinstall-package\"><i class=\"fa fa-fw fa-repeat\"></i> {{ \"PLUGIN_ADMIN.REINSTALL_PLUGIN\"|tu }}</a>
  224. {% endif %}
  225. <a class=\"button\" href=\"#\" data-remodal-target=\"remove-package\"><i class=\"fa fa-fw fa-warning\"></i> {{ \"PLUGIN_ADMIN.REMOVE_PLUGIN\"|tu }}</a>
  226. </div>
  227. {% endif %}
  228. {% else %}
  229. <div class=\"button-bar success\">
  230. {% if (plugin.premium and not admin.license(plugin.slug)) %}
  231. {% if not gumroad_loaded %}
  232. {% set gumroad_loaded = true %}
  233. <script src=\"//gumroad.com/js/gumroad.js\"></script>
  234. {% endif %}
  235. <a class=\"gumroad-button button\" href=\"https://gum.co/{{ plugin.premium.product_permalink }}\" target=\"_blank\" data-gumroad-single-product=\"true\"><i class=\"fa fa-shopping-cart\"></i> {{ \"Buy Now\"|tu }}</a>
  236. {% else %}
  237. <a class=\"button\" href=\"#\" data-remodal-target=\"add-package\" data-packages-slugs=\"{{ plugin.slug }}\" data-plugin-action=\"start-package-installation\"><i class=\"fa fa-plus\"></i> {{ \"PLUGIN_ADMIN.INSTALL_PLUGIN\"|tu }}</a>
  238. {% endif %}
  239. </div>
  240. {% endif %}
  241. {% include 'partials/modal-changes-detected.html.twig' %}
  242. {% include 'partials/modal-add-package.html.twig' with { type: 'plugin' } %}
  243. {% include 'partials/modal-update-packages.html.twig' with { type: 'plugin' } %}
  244. {% include 'partials/modal-remove-package.html.twig' with { type: 'plugin', package: plugin } %}
  245. {% include 'partials/modal-reinstall-package.html.twig' with { type: 'plugin', package: plugin } %}
  246. ", "partials/plugins-details.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/plugins-details.html.twig");
  247. }
  248. }