first commit
This commit is contained in:
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/blueprint/blueprint.html.twig */
|
||||
class __TwigTemplate_ffa96abaeca1223df3ad290847d9c6b31357ba50c2cd255819a85c9da0765923 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<input
|
||||
data-grav-field=\"hidden\"
|
||||
data-grav-disabled=\"false\"
|
||||
type=\"hidden\"
|
||||
class=\"input\"
|
||||
";
|
||||
// line 6
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 7
|
||||
echo " name=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))), "html", null, true);
|
||||
echo "\"
|
||||
value=\"";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["blueprints"] ?? null), "name", array()), "html", null, true);
|
||||
echo "\" />
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/blueprint/blueprint.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 35 => 8, 30 => 7, 26 => 6, 19 => 1,);
|
||||
}
|
||||
|
||||
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
|
||||
public function getSource()
|
||||
{
|
||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
|
||||
|
||||
return $this->getSourceContext()->getCode();
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Twig_Source("<input
|
||||
data-grav-field=\"hidden\"
|
||||
data-grav-disabled=\"false\"
|
||||
type=\"hidden\"
|
||||
class=\"input\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
value=\"{{ blueprints.name }}\" />
|
||||
", "forms/fields/blueprint/blueprint.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/blueprint/blueprint.html.twig");
|
||||
}
|
||||
}
|
||||
+171
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
|
||||
/* partials/langswitcher.html.twig */
|
||||
class __TwigTemplate_105e06089d11bf0c86e4fc38effccc162146e8ad80c0e13b5d8b7d514dcfbc3f extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<ul class=\"langswitcher\">
|
||||
";
|
||||
// line 2
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["langswitcher"] ?? null), "languages", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
|
||||
// line 3
|
||||
echo "
|
||||
";
|
||||
// line 4
|
||||
$context["show_language"] = true;
|
||||
// line 5
|
||||
echo " ";
|
||||
if (($context["language"] == $this->getAttribute(($context["langswitcher"] ?? null), "current", array()))) {
|
||||
// line 6
|
||||
echo " ";
|
||||
$context["lang_url"] = $this->getAttribute(($context["page"] ?? null), "url", array());
|
||||
// line 7
|
||||
echo " ";
|
||||
$context["active_class"] = " active";
|
||||
// line 8
|
||||
echo " ";
|
||||
} else {
|
||||
// line 9
|
||||
echo " ";
|
||||
$context["base_lang_url"] = (($context["base_url_simple"] ?? null) . $this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getLanguageURLPrefix", array(0 => $context["language"]), "method"));
|
||||
// line 10
|
||||
echo " ";
|
||||
$context["lang_url"] = ((($context["base_lang_url"] ?? null) . $this->getAttribute(($context["langswitcher"] ?? null), "page_route", array())) . $this->getAttribute(($context["page"] ?? null), "urlExtension", array()));
|
||||
// line 11
|
||||
echo " ";
|
||||
$context["untranslated_pages_behavior"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "config", array()), "plugins", array()), "langswitcher", array()), "untranslated_pages_behavior", array());
|
||||
// line 12
|
||||
echo " ";
|
||||
if ((($context["untranslated_pages_behavior"] ?? null) != "none")) {
|
||||
// line 13
|
||||
echo " ";
|
||||
$context["translated_page"] = $this->getAttribute($this->getAttribute(($context["langswitcher"] ?? null), "translated_pages", array()), $context["language"], array(), "array");
|
||||
// line 14
|
||||
echo " ";
|
||||
if (( !($context["translated_page"] ?? null) || !$this->getAttribute(($context["translated_page"] ?? null), "published", array()))) {
|
||||
// line 15
|
||||
echo " ";
|
||||
if ((($context["untranslated_pages_behavior"] ?? null) == "redirect")) {
|
||||
// line 16
|
||||
echo " ";
|
||||
$context["lang_url"] = (($context["base_lang_url"] ?? null) . "/");
|
||||
// line 17
|
||||
echo " ";
|
||||
} elseif ((($context["untranslated_pages_behavior"] ?? null) == "hide")) {
|
||||
// line 18
|
||||
echo " ";
|
||||
$context["show_language"] = false;
|
||||
// line 19
|
||||
echo " ";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
}
|
||||
// line 22
|
||||
echo " ";
|
||||
$context["active_class"] = "";
|
||||
// line 23
|
||||
echo " ";
|
||||
}
|
||||
// line 24
|
||||
echo "
|
||||
";
|
||||
// line 25
|
||||
if (($context["show_language"] ?? null)) {
|
||||
// line 26
|
||||
echo " <li><a href=\"";
|
||||
echo (($context["lang_url"] ?? null) . $this->getAttribute(($context["uri"] ?? null), "params", array()));
|
||||
echo "\" class=\"external";
|
||||
echo ($context["active_class"] ?? null);
|
||||
echo "\">";
|
||||
echo twig_capitalize_string_filter($this->env, call_user_func_array($this->env->getFunction('native_name')->getCallable(), array($context["language"])));
|
||||
echo "</a></li>
|
||||
";
|
||||
}
|
||||
// line 28
|
||||
echo "
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 30
|
||||
echo "</ul>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/langswitcher.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 110 => 30, 103 => 28, 93 => 26, 91 => 25, 88 => 24, 85 => 23, 82 => 22, 79 => 21, 76 => 20, 73 => 19, 70 => 18, 67 => 17, 64 => 16, 61 => 15, 58 => 14, 55 => 13, 52 => 12, 49 => 11, 46 => 10, 43 => 9, 40 => 8, 37 => 7, 34 => 6, 31 => 5, 29 => 4, 26 => 3, 22 => 2, 19 => 1,);
|
||||
}
|
||||
|
||||
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
|
||||
public function getSource()
|
||||
{
|
||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
|
||||
|
||||
return $this->getSourceContext()->getCode();
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Twig_Source("<ul class=\"langswitcher\">
|
||||
{% for language in langswitcher.languages %}
|
||||
|
||||
{% set show_language = true %}
|
||||
{% if language == langswitcher.current %}
|
||||
{% set lang_url = page.url %}
|
||||
{% set active_class = ' active' %}
|
||||
{% else %}
|
||||
{% set base_lang_url = base_url_simple ~ grav.language.getLanguageURLPrefix(language) %}
|
||||
{% set lang_url = base_lang_url ~ langswitcher.page_route ~ page.urlExtension %}
|
||||
{% set untranslated_pages_behavior = grav.config.plugins.langswitcher.untranslated_pages_behavior %}
|
||||
{% if untranslated_pages_behavior != 'none' %}
|
||||
{% set translated_page = langswitcher.translated_pages[language] %}
|
||||
{% if (not translated_page) or (not translated_page.published) %}
|
||||
{% if untranslated_pages_behavior == 'redirect' %}
|
||||
{% set lang_url = base_lang_url ~ '/' %}
|
||||
{% elseif untranslated_pages_behavior == 'hide' %}
|
||||
{% set show_language = false %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% set active_class = '' %}
|
||||
{% endif %}
|
||||
|
||||
{% if show_language %}
|
||||
<li><a href=\"{{ lang_url ~ uri.params }}\" class=\"external{{ active_class }}\">{{ native_name(language)|capitalize }}</a></li>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
", "partials/langswitcher.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/langswitcher/templates/partials/langswitcher.html.twig");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user