If admin pro defines a custom_logo_top_left image, show it instead of the default image

This commit is contained in:
Flavio Copes
2015-12-16 10:21:05 +01:00
parent 135df6720e
commit f03e357dbd

View File

@@ -1,6 +1,10 @@
<nav id="admin-sidebar">
<div id="admin-logo">
<h3><a href="{{ base_url_relative }}">{{ "PLUGIN_ADMIN.GRAV_ADMIN"|tu }}</a> <a target="_blank" href="{{ base_url_relative_frontend }}"> <i class="fa fa-fw fa-arrow-circle-right"></i></a></h3>
{% if config.plugins["admin-pro"].custom_logo_top_left %}
<a target="_blank" href="{{ base_url_relative_frontend }}"><img src="{{ base_url_relative_frontend }}/user/plugins/admin-pro/assets/{{ config.plugins["admin-pro"].custom_logo_top_left|first }}" /></a>
{% else %}
<h3><a href="{{ base_url_relative }}">{{ "PLUGIN_ADMIN.GRAV_ADMIN"|tu }}</a> <a target="_blank" href="{{ base_url_relative_frontend }}"> <i class="fa fa-fw fa-arrow-circle-right"></i></a></h3>
{% endif %}
</div>
{#{% if admin.authorize %}#}