update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
24
www/analytics/plugins/Morpheus/templates/macros.twig
Normal file
24
www/analytics/plugins/Morpheus/templates/macros.twig
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{% macro logoHtml(metadata, alt='') %}
|
||||
{% if metadata['logo'] is defined %}
|
||||
{% if metadata['logoWidth'] is defined %}
|
||||
{% set width %}width="{{ metadata['logoWidth'] }}"{% endset %}
|
||||
{% endif %}
|
||||
{% if metadata['logoHeight'] is defined %}
|
||||
{% set height %}height="{{ metadata['logoHeight'] }}"{% endset %}
|
||||
{% endif %}
|
||||
{% if metadata['logoWidth'] is defined %}
|
||||
{% set width %}width="{{ metadata['logoWidth'] }}"{% endset %}
|
||||
{% endif %}
|
||||
{% if alt is not empty %}
|
||||
{% set alt %}title='{{ alt }}' alt='{{ alt }}'{% endset %}
|
||||
{% endif %}
|
||||
<img {{ alt }} {{ width|default('') }} {{ height|default('') }} src='{{ metadata['logo'] }}' />
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{# Deprecated: use form-group and form-help DIVs instead #}
|
||||
{% macro inlineHelp(text) %}
|
||||
<div class="ui-inline-help" >
|
||||
{{ text|raw }}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue