Ajout d'une extension

This commit is contained in:
Gauvain Boiché
2020-04-04 18:27:27 +02:00
parent c3ed8cc1c1
commit 3a964fe237
387 changed files with 58921 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
{% block width %}s12 m6{% endblock %}
{% block content %}
{% if available|length %}
<div class="aps-collection">
{% for item in available %}
<div class="aps-collection-item aps-avatar">
{% if item.BACKGROUND_SRC %}
<img class="avatar" src="{{ item.BACKGROUND_SRC }}" alt="{{ item.TITLE }}" />
{% else %}
<i class="avatar fa {{ item.ICON ?: aps_config('ass_no_image_icon') }} fa-3x icon-gray" aria-hidden="true"></i>
{% endif %}
<span class="title">{{ item.TITLE }}</span><br />
<em>
<i class="icon calender-times-o fa-fw" aria-hidden="true"></i>
{{ user.format_date(item.AVAILABLE_UNTIL_UNIX) }}
</em>
<a class="aps-secondary-content" href="{{ item.U_VIEW }}">
<i class="icon fa-external-link fa-fw"></i>
</a>
</div>
{% endfor %}
</div>
{% else %}
<div class="error aps-center">{{ lang('ASS_ITEMS_NONE') }}</div>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% block width %}s12 m4{% endblock %}
{% block content %}
<div class="aps-collection">
{% for user in buyers %}
<div class="aps-collection-item aps-avatar">
{{ user.AVATAR ? user.AVATAR }}
<span class="title">{{ user.NAME }}</span>
<p>{{ user.COUNT }}</p>
</div>
{% endfor %}
</div>
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% block width %}s12 m6 aps-js{% endblock %}
{% block content %}
<canvas data-aps-chart="pie"
data-aps-time="{{ aps_config('aps_display_graph_time') }}"
data-aps-empty="{{ lang('APS_POINTS_DATA_EMPTY', aps_name()) }}"
aria-label="{{ lang('APS_POINTS_PER_FORUM', aps_name()) }}"
role="img">
<p>{{ lang('APS_POINTS_PER_FORUM', aps_name()) }}</p>
</canvas>
<div class="hidden">
{% for forum in aps_forums %}
<div data-aps-labels="{{ forum.NAME|e }}"
data-aps-value="{{ aps_format(forum.POINTS) }}">
</div>
{% endfor %}
</div>
{% endblock %}

View File

@@ -0,0 +1,27 @@
{% block width %}s12 m6{% endblock %}
{% block content %}
{% if featured|length %}
<div class="aps-collection">
{% for item in featured %}
<div class="aps-collection-item aps-avatar">
{% if item.BACKGROUND_SRC %}
<img class="avatar" src="{{ item.BACKGROUND_SRC }}" alt="{{ item.TITLE }}" />
{% else %}
<i class="avatar fa {{ item.ICON ?: aps_config('ass_no_image_icon') }} fa-3x icon-gray" aria-hidden="true"></i>
{% endif %}
<span class="title">{{ item.TITLE }}</span><br />
<em>
<i class="icon {{ aps_config('ass_panel_featured_icon') ?: 'calender-times-o' }} fa-fw" aria-hidden="true"></i>
{{ user.format_date(item.FEATURED_UNTIL_UNIX) }}
</em>
<a class="aps-secondary-content" href="{{ item.U_VIEW }}">
<i class="icon fa-external-link fa-fw"></i>
</a>
</div>
{% endfor %}
</div>
{% else %}
<div class="error aps-center">{{ lang('ASS_ITEMS_NONE') }}</div>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% block width %}s12 m4{% endblock %}
{% block content %}
<div class="aps-collection">
{% for user in gifters %}
<div class="aps-collection-item aps-avatar">
{{ user.AVATAR ? user.AVATAR }}
<span class="title">{{ user.NAME }}</span>
<p>{{ user.COUNT }}</p>
</div>
{% endfor %}
</div>
{% endblock %}

View File

@@ -0,0 +1,23 @@
{% block width %}s12 m6{% endblock %}
{% block content %}
{% if limited|length %}
<div class="aps-collection">
{% for item in limited %}
<div class="aps-collection-item aps-avatar">
{% if item.BACKGROUND_SRC %}
<img class="avatar" src="{{ item.BACKGROUND_SRC }}" alt="{{ item.TITLE }}" />
{% else %}
<i class="avatar fa {{ item.ICON ?: aps_config('ass_no_image_icon') }} fa-3x icon-gray" aria-hidden="true"></i>
{% endif %}
<span class="title">{{ item.TITLE }}</span>
<a class="aps-secondary-content" href="{{ item.U_VIEW }}">
{{ item.STOCK }}
</a>
</div>
{% endfor %}
</div>
{% else %}
<div class="error aps-center">{{ lang('ASS_ITEMS_NONE') }}</div>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,23 @@
{% block width %}s12 m6{% endblock %}
{% block content %}
{% if purchases|length %}
<div class="aps-collection">
{% for item in purchases %}
<div class="aps-collection-item aps-avatar">
{% if item.BACKGROUND_SRC %}
<img class="avatar" src="{{ item.BACKGROUND_SRC }}" alt="{{ item.TITLE }}" />
{% else %}
<i class="avatar fa {{ item.ICON ?: aps_config('ass_no_image_icon') }} fa-3x icon-gray" aria-hidden="true"></i>
{% endif %}
<span class="title">{{ item.TITLE }}</span><br />
<a class="aps-secondary-content" href="{{ item.U_VIEW }}">
{{ item.PURCHASES }}
</a>
</div>
{% endfor %}
</div>
{% else %}
<div class="error aps-center">{{ lang('ASS_ITEMS_NONE') }}</div>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% block width %}s12 m6 aps-js{% endblock %}
{% block content %}
<canvas data-aps-chart="pie"
data-aps-time="{{ aps_config('aps_display_graph_time') }}"
data-aps-empty="{{ lang('APS_POINTS_DATA_EMPTY', aps_name()) }}"
aria-label="{{ lang('ASS_PURCHASES_PER_GROUP', aps_name()) }}"
role="img">
<p>{{ lang('APS_PURCHASES_PER_GROUP', aps_name()) }}</p>
</canvas>
<div class="hidden">
{% for category in purchases_category %}
<div data-aps-labels="{{ category.NAME|e }}"
data-aps-value="{{ category.PURCHASES }}">
</div>
{% endfor %}
</div>
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% block width %}s12 m6 aps-js{% endblock %}
{% block content %}
<canvas data-aps-chart="pie"
data-aps-time="{{ aps_config('aps_display_graph_time') }}"
data-aps-empty="{{ lang('APS_POINTS_DATA_EMPTY', aps_name()) }}"
aria-label="{{ lang('ASS_PURCHASES_PER_GROUP', aps_name()) }}"
role="img">
<p>{{ lang('APS_PURCHASES_PER_GROUP', aps_name()) }}</p>
</canvas>
<div class="hidden">
{% for group in purchases_group %}
<div data-aps-labels="{{ group.NAME|e }}"
data-aps-value="{{ group.PURCHASES }}">
</div>
{% endfor %}
</div>
{% endblock %}

View File

@@ -0,0 +1,27 @@
{% block width %}s12 m6{% endblock %}
{% block content %}
{% if recent|length %}
<div class="aps-collection">
{% for item in recent %}
<div class="aps-collection-item aps-avatar">
{% if item.BACKGROUND_SRC %}
<img class="avatar" src="{{ item.BACKGROUND_SRC }}" alt="{{ item.TITLE }}" />
{% else %}
<i class="avatar fa {{ item.ICON ?: aps_config('ass_no_image_icon') }} fa-3x icon-gray" aria-hidden="true"></i>
{% endif %}
<span class="title">{{ item.TITLE }}</span><br />
<em>
<i class="icon fa-pencil-square-o fa-fw" aria-hidden="true"></i>
{{ user.format_date(item.CREATE_TIME) }}
</em>
<a class="aps-secondary-content" href="{{ item.U_VIEW }}">
<i class="icon fa-external-link fa-fw"></i>
</a>
</div>
{% endfor %}
</div>
{% else %}
<div class="error aps-center">{{ lang('ASS_ITEMS_NONE') }}</div>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,27 @@
{% block width %}s12 m6{% endblock %}
{% block content %}
{% if sale|length %}
<div class="aps-collection">
{% for item in sale %}
<div class="aps-collection-item aps-avatar">
{% if item.BACKGROUND_SRC %}
<img class="avatar" src="{{ item.BACKGROUND_SRC }}" alt="{{ item.TITLE }}" />
{% else %}
<i class="avatar fa {{ item.ICON ?: aps_config('ass_no_image_icon') }} fa-3x icon-gray" aria-hidden="true"></i>
{% endif %}
<span class="title">{{ item.TITLE }}</span><br />
<em>
<i class="icon {{ aps_config('ass_panel_sale_icon') ?: 'calender-times-o' }} fa-fw" aria-hidden="true"></i>
{{ user.format_date(item.SALE_UNTIL_UNIX) }}
</em>
<a class="aps-secondary-content" href="{{ item.U_VIEW }}">
<i class="icon fa-external-link fa-fw"></i>
</a>
</div>
{% endfor %}
</div>
{% else %}
<div class="error aps-center">{{ lang('ASS_ITEMS_NONE') }}</div>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% block width %}s12 m4{% endblock %}
{% block content %}
<div class="aps-collection">
{% for user in spenders %}
<div class="aps-collection-item aps-avatar">
{{ user.AVATAR ? user.AVATAR }}
<span class="title">{{ user.NAME }}</span>
<p>{{ aps_display(user.COUNT) }}</p>
</div>
{% endfor %}
</div>
{% endblock %}