| Current Path : /proc/self/root/home/antonen/poznajlitwe.lt/templates/it_startup/particles/ |
| Current File : //proc/self/root/home/antonen/poznajlitwe.lt/templates/it_startup/particles/logo.html.twig |
{% extends '@nucleus/partials/particle.html.twig' %}
{% block stylesheets %}
{% if particle.enabled %}
{{ parent() }}
{% if particle.image and particle.mobileimage %}
<style type="text/css">
.g-logo .g-mobile-logo {
display: none;
}
@media (max-width: {{ gantry.config.get('styles.breakpoints.desktop-container')|default('48rem') }}) {
.g-logo .g-mobile-logo {
display: inline-block;
}
.g-logo .g-normal-logo {
display: none;
}
}
</style>
{% endif %}
{% endif %}
{% endblock %}
{% block particle %}
{% set url = url(particle.url)|default(gantry.siteUrl()) %}
{% if (url == gantry.siteUrl()) %}{% set rel='rel="home"' %}{% endif %}
<a href="{{ url }}" title="{{ particle.text }}" {{ rel|default('')|raw }} class="g-logo {{ particle.class|default('')|raw }}">
{% set image = url(particle.image) %}
{% set mobileimage = url(particle.mobileimage) %}
{% if image %}
<img class="g-normal-logo" src="{{ url(particle.image) }}" alt="{{ particle.text }}" />
{% if mobileimage %}
<img class="g-mobile-logo" src="{{ url(particle.mobileimage) }}" alt="{{ particle.text }}" />
{% endif %}
{% else %}
{{ particle.text|default('Logo') }}
{% endif %}
</a>
{% endblock %}