Ajout d'une extension
This commit is contained in:
@@ -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 %}
|
||||
13
ext/phpbbstudio/ass/styles/all/template/blocks/buyers.html
Normal file
13
ext/phpbbstudio/ass/styles/all/template/blocks/buyers.html
Normal 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 %}
|
||||
18
ext/phpbbstudio/ass/styles/all/template/blocks/charts.html
Normal file
18
ext/phpbbstudio/ass/styles/all/template/blocks/charts.html
Normal 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 %}
|
||||
27
ext/phpbbstudio/ass/styles/all/template/blocks/featured.html
Normal file
27
ext/phpbbstudio/ass/styles/all/template/blocks/featured.html
Normal 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 %}
|
||||
13
ext/phpbbstudio/ass/styles/all/template/blocks/gifters.html
Normal file
13
ext/phpbbstudio/ass/styles/all/template/blocks/gifters.html
Normal 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 %}
|
||||
23
ext/phpbbstudio/ass/styles/all/template/blocks/limited.html
Normal file
23
ext/phpbbstudio/ass/styles/all/template/blocks/limited.html
Normal 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 %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
27
ext/phpbbstudio/ass/styles/all/template/blocks/recent.html
Normal file
27
ext/phpbbstudio/ass/styles/all/template/blocks/recent.html
Normal 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 %}
|
||||
27
ext/phpbbstudio/ass/styles/all/template/blocks/sale.html
Normal file
27
ext/phpbbstudio/ass/styles/all/template/blocks/sale.html
Normal 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 %}
|
||||
13
ext/phpbbstudio/ass/styles/all/template/blocks/spenders.html
Normal file
13
ext/phpbbstudio/ass/styles/all/template/blocks/spenders.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user