Changes for page FontAwesome

Last modified by Martin Výlet on 19.10.2024 11:14

From version 3.1
edited by superadmin
on 06.01.2023 12:57
Change comment: Install extension [org.xwiki.platform:xwiki-platform-icon-fontawesome/14.10.2]
To version 2.1
edited by Administrator
on 15.08.2017 12:57
Change comment: Install extension [org.xwiki.platform:xwiki-platform-icon-fontawesome/9.6]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.superadmin
1 +XWiki.xwikiadm
Content
... ... @@ -1,9 +1,9 @@
1 1  ## General settings
2 2  xwiki.iconset.type = font
3 3  xwiki.iconset.ssx = IconThemes.FontAwesome
4 +xwiki.iconset.jsx = IconThemes.FontAwesome
4 4  xwiki.iconset.render.wiki = {{html clean="false"}}<span class="fa fa-$icon"></span>{{/html}}
5 5  xwiki.iconset.render.html = <span class="fa fa-$icon"></span>
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).
9 9  home = home
... ... @@ -155,13 +155,6 @@
155 155  log-in=sign-in
156 156  log-out=sign-out
157 157  th=th
158 -translate=language
159 -minus-square = minus-square
160 -plus-square = plus-square
161 -filter = filter
162 -table_sort = sort
163 -fast-backward = fast-backward
164 -arrow_in = window-minimize
165 165  
166 166  ## Silk icons for backward compatibility (see: http://design.xwiki.org/xwiki/bin/view/Proposal/Silk+Mapping).
167 167  accept = check
... ... @@ -205,7 +205,6 @@
205 205  building = building
206 206  bullet_arrow_down = caret-down
207 207  bullet_arrow_up = caret-up
208 -bullet_black = circle
209 209  bullet_go = caret-right
210 210  cake=birthday-cake
211 211  calculator = calculator
... ... @@ -294,6 +294,7 @@
294 294  newspaper=newspaper-o
295 295  note=sticky-note-o
296 296  paintbrush=paint-brush
289 +page = file
297 297  page_white = file-o
298 298  page_white_acrobat = file-pdf-o
299 299  page_white_code = file-code-o
... ... @@ -314,7 +314,6 @@
314 314  rosette = certificate
315 315  rss = rss
316 316  shape_group=object-group
317 -shape_square=square-o
318 318  shape_ungroup=object-ungroup
319 319  shield = shield
320 320  sitemap=sitemap
... ... @@ -334,7 +334,6 @@
334 334  text_align_right = align-right
335 335  text_bold = bold
336 336  text_columns = columns
337 -text_heading_1 = header
338 338  text_indent = indent
339 339  text_indent_remove = outdent
340 340  text_italic = italic
XWiki.JavaScriptExtension[0]
Caching policy
... ... @@ -1,0 +1,1 @@
1 +long
Code
... ... @@ -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 +
Name
... ... @@ -1,0 +1,1 @@
1 +IE8 fix
Parse content
... ... @@ -1,0 +1,1 @@
1 +No
Use this extension
... ... @@ -1,0 +1,1 @@
1 +onDemand