Skip to content

Commit 0716638

Browse files
authored
Merge pull request #173 from iMattPro/fixes
Fix icon handling and compatibility
2 parents 9578325 + b56436b commit 0716638

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎skeleton/styles/prosilver/template/event/overall_header_navigation_prepend.html.twig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% else %}{# for phpBB >= 4.0.x #}
1010
<li class="in-menu">
1111
<a href="{{ '{{' }} U_{{ EXTENSION.extension_name|upper }}_PAGE }}" title="{{ '{{' }} lang('{{ EXTENSION.extension_name|upper }}_PAGE') }}" role="menuitem">
12-
{{ '{{' }} Icon('font', 'question-circle', lang('{{ EXTENSION.extension_name|upper }}_PAGE'), false) }}
12+
{{ '{{' }} Icon('font', 'circle-question', lang('{{ EXTENSION.extension_name|upper }}_PAGE'), false, 'fas') }}
1313
</a>
1414
</li>
1515
{% endif %}

‎styles/prosilver/template/skeleton_body.html‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% if constant('PHPBB_VERSION') starts with '4' %}
33
{{ include('@phpbb_skeleton/skeleton_help_icon_phpbb4.html') }}
44
{% else %}
5-
<i class="icon fa-book fa-fw" aria-hidden="true"></i>
5+
<i class="icon fa-book fa-fw" aria-hidden="true"></i><span>{{ lang('PHPBB_SKELETON_EXT_HELP') }}</span>
66
{% endif %}
77
{% endmacro %}
88

@@ -31,7 +31,6 @@ <h2>{{ lang('PHPBB_CREATE_SKELETON_EXT') }}</h2>
3131
<p class="rightside">
3232
<a href="https://area51.phpbb.com/docs/dev/3.3.x/extensions/skeleton_extension.html#extension-packaging" target="_blank">
3333
{{ _self.help_icon() }}
34-
<span>{{ lang('PHPBB_SKELETON_EXT_HELP') }}</span>
3534
</a>
3635
</p>
3736
<h2 class="solo">{{ lang('SKELETON_TITLE_EXTENSION_INFO') }}</h2>
@@ -53,7 +52,6 @@ <h2 class="solo">{{ lang('SKELETON_TITLE_EXTENSION_INFO') }}</h2>
5352
<p class="rightside">
5453
<a href="https://area51.phpbb.com/docs/dev/3.3.x/extensions/skeleton_extension.html#authors" target="_blank">
5554
{{ _self.help_icon() }}
56-
<span>{{ lang('PHPBB_SKELETON_EXT_HELP') }}</span>
5755
</a>
5856
</p>
5957
<h2 class="solo">{{ lang('SKELETON_TITLE_AUTHOR_INFO') }}</h2>
@@ -84,7 +82,6 @@ <h2 class="solo">{{ lang('SKELETON_TITLE_AUTHOR_INFO') }}</h2>
8482
<p class="rightside">
8583
<a href="https://area51.phpbb.com/docs/dev/3.3.x/extensions/skeleton_extension.html#requirements" target="_blank">
8684
{{ _self.help_icon() }}
87-
<span>{{ lang('PHPBB_SKELETON_EXT_HELP') }}</span>
8885
</a>
8986
</p>
9087
<h2 class="solo">{{ lang('SKELETON_TITLE_REQUIREMENT_INFO') }}</h2>
@@ -106,7 +103,6 @@ <h2 class="solo">{{ lang('SKELETON_TITLE_REQUIREMENT_INFO') }}</h2>
106103
<p class="rightside">
107104
<a href="https://area51.phpbb.com/docs/dev/3.3.x/extensions/skeleton_extension.html#components" target="_blank">
108105
{{ _self.help_icon() }}
109-
<span>{{ lang('PHPBB_SKELETON_EXT_HELP') }}</span>
110106
</a>
111107
</p>
112108
<h2 class="solo">{{ lang('SKELETON_TITLE_COMPONENT_INFO') }}</h2>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
{# This template will be used in phpBB 4 #}
2-
{{ Icon('font', 'book', '', true, 'fas c-button-icon') }}
2+
{{ Icon('font', 'book-open', lang('PHPBB_SKELETON_EXT_HELP'), false, 'fas') }}

0 commit comments

Comments
 (0)