Изменения документа FontAwesome

Редактировал(а) Андрей Ганьков 2026/01/23 10:50

От версии 8.1
отредактировано Андрей Ганьков
на 2026/01/23 10:50
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-icon-fontawesome/17.10.2]
К версии 1.1
отредактировано Андрей Ганьков
на 2020/03/30 19:01
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-icon-fontawesome/12.1]

Сводка

Подробности

Свойства страницы
Содержимое
... ... @@ -1,8 +1,9 @@
1 1  ## General settings
2 2  xwiki.iconset.type = font
3 -xwiki.iconset.css = $services.webjars.url('org.webjars:font-awesome', 'css/font-awesome.min.css')
4 -xwiki.iconset.render.wiki = {{html clean="false"}}<span class="fa fa-$icon" aria-hidden="true"></span>{{/html}}
5 -xwiki.iconset.render.html = <span class="fa fa-$icon" aria-hidden="true"></span>
3 +xwiki.iconset.ssx = IconThemes.FontAwesome
4 +xwiki.iconset.jsx = IconThemes.FontAwesome
5 +xwiki.iconset.render.wiki = {{html clean="false"}}<span class="fa fa-$icon"></span>{{/html}}
6 +xwiki.iconset.render.html = <span class="fa fa-$icon"></span>
6 6  xwiki.iconset.icon.cssClass = fa fa-$icon
7 7  
8 8  ## XWiki Icon Set (see: http://design.xwiki.org/xwiki/bin/view/Proposal/XWiki+Icon+Set).
... ... @@ -91,7 +91,6 @@
91 91  user = user
92 92  group = group
93 93  heart = heart
94 -heart_empty = heart-o
95 95  question = question-circle
96 96  image = image
97 97  key = key
... ... @@ -156,19 +156,7 @@
156 156  log-in=sign-in
157 157  log-out=sign-out
158 158  th=th
159 -translate=language
160 -minus-square = minus-square
161 -plus-square = plus-square
162 -filter = filter
163 -table_sort = sort
164 -fast-backward = fast-backward
165 -arrow_in = window-minimize
166 -reposition = arrows
167 167  
168 -## Since 17.10.0RC1
169 -sort-ascending = sort-amount-asc
170 -sort-descending = sort-amount-desc
171 -
172 172  ## Silk icons for backward compatibility (see: http://design.xwiki.org/xwiki/bin/view/Proposal/Silk+Mapping).
173 173  accept = check
174 174  anchor = anchor
... ... @@ -300,6 +300,7 @@
300 300  newspaper=newspaper-o
301 301  note=sticky-note-o
302 302  paintbrush=paint-brush
291 +page = file
303 303  page_white = file-o
304 304  page_white_acrobat = file-pdf-o
305 305  page_white_code = file-code-o
... ... @@ -359,7 +359,6 @@
359 359  user_add=user-plus
360 360  user_delete=user-times
361 361  vcard = vcard-o
362 -wand = magic
363 363  weather_clouds = cloud
364 364  weather_sun = sun-o
365 365  weather_snow=snowflake-o
XWiki.JavaScriptExtension[0]
Политика кеширования
... ... @@ -1,0 +1,1 @@
1 +long
Код
... ... @@ -1,0 +1,13 @@
1 +// Sometimes IE8 loads the font *after* the rendering of the page so it does not display the icon correctly.
2 +// To fix this, we reload the stylesheet when we receive the 'document ready' event so that the browser recomputes
3 +// the display. Although, it does not solve everything (see https://jira.xwiki.org/browse/XWIKI-10813).
4 +require(['jquery'], function($) {
5 + // This hack concerns IE8 only
6 + if (navigator.userAgent.indexOf('MSIE 8.0') > -1) {
7 + $(function() {
8 + var link = $("link[href*='IconThemes/FontAwesome']");
9 + link[0].href = link[0].href;
10 + });
11 + }
12 +});
13 +
Название
... ... @@ -1,0 +1,1 @@
1 +IE8 fix
Разбор содержимого
... ... @@ -1,0 +1,1 @@
1 +Нет
Использовать это расширение
... ... @@ -1,0 +1,1 @@
1 +onDemand
XWiki.StyleSheetExtension[0]
Политика кеширования
... ... @@ -1,0 +1,1 @@
1 +long
Код
... ... @@ -1,0 +1,1 @@
1 +@import "$services.webjars.url('org.webjars:font-awesome', 'css/font-awesome.min.css')"
Название
... ... @@ -1,0 +1,1 @@
1 +Font-Awesome CSS
Разбор содержимого
... ... @@ -1,0 +1,1 @@
1 +Да
Использовать это расширение
... ... @@ -1,0 +1,1 @@
1 +onDemand