From 5dc45298f6b7651f0812bf88f3fd8030f797e205 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 22 Feb 2019 14:56:47 -0800 Subject: [PATCH] Issue #3559, Fixes #3589, Issue #2982, Issue #2927 Replace all glyphicons with FontAwesome. --- e107_admin/prefs.php | 4 ++-- e107_admin/users.php | 2 +- .../shortcodes/batch/news_shortcodes.php | 2 +- .../shortcodes/batch/user_shortcodes.php | 22 +++++++++---------- e107_handlers/e107_class.php | 4 ++-- e107_handlers/emailprint_class.php | 2 +- e107_handlers/rate_class.php | 4 ++-- e107_handlers/userclass_class.php | 2 +- e107_languages/English/admin/help/menus.php | 2 +- e107_plugins/download/download_shortcodes.php | 8 +++---- e107_plugins/forum/forum_viewforum.php | 8 +++---- .../shortcodes/batch/view_shortcodes.php | 20 ++++++++--------- .../newforumposts_main/admin_config.php | 2 +- e107_plugins/rss_menu/rss.php | 4 ++-- e107_plugins/search_menu/search_menu.php | 2 +- search.php | 2 +- 16 files changed, 45 insertions(+), 45 deletions(-) diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php index 0de862676..f94e5447a 100644 --- a/e107_admin/prefs.php +++ b/e107_admin/prefs.php @@ -2209,12 +2209,12 @@ function libraryGetStatus($details) if($details['installed'] == true) { - $icon = $tp->toGlyph('glyphicon-ok'); + $icon = $tp->toGlyph('fa-check'); $text = LAN_OK; return '' . $icon . ''; } - $icon = $tp->toGlyph('glyphicon-remove'); + $icon = $tp->toGlyph('fa-remove'); $text = $details['error']; return '' . $icon . ''; } diff --git a/e107_admin/users.php b/e107_admin/users.php index 320304ec0..9f21bbf8a 100644 --- a/e107_admin/users.php +++ b/e107_admin/users.php @@ -2758,7 +2758,7 @@ class users_admin_form_ui extends e_admin_form_ui $btn = '
[br] -".e107::getParser()->toGlyph('search')." indicates that the menu's visibility has been modified. +".e107::getParser()->toGlyph('fa-search')." indicates that the menu's visibility has been modified. [/html] "; diff --git a/e107_plugins/download/download_shortcodes.php b/e107_plugins/download/download_shortcodes.php index c1e3353a5..6e3c83d66 100644 --- a/e107_plugins/download/download_shortcodes.php +++ b/e107_plugins/download/download_shortcodes.php @@ -415,7 +415,7 @@ class download_shortcodes extends e_shortcode if(deftrue('BOOTSTRAP')) { - $img = e107::getParser()->toGlyph('icon-download.glyph',false); + $img = e107::getParser()->toGlyph('fa-download',false); // $img = ''; } @@ -704,7 +704,7 @@ class download_shortcodes extends e_shortcode if(deftrue('BOOTSTRAP')) { - $img = e107::getParser()->toGlyph('download',$parm); // ''; + $img = e107::getParser()->toGlyph('fa-download',$parm); // ''; } if ($pref['agree_flag'] == 1) @@ -955,7 +955,7 @@ class download_shortcodes extends e_shortcode $url = e107::url('download', 'item', $dlrowrow); - $icon = (deftrue('BOOTSTRAP')) ? $tp->toGlyph('chevron-left') : '<<'; + $icon = (deftrue('BOOTSTRAP')) ? $tp->toGlyph('fa-chevron-left') : '<<'; return "".$icon." ".LAN_PREVIOUS."\n"; @@ -982,7 +982,7 @@ class download_shortcodes extends e_shortcode extract($dlrowrow); $url = $url = e107::url('download', 'item', $dlrowrow); - $icon = (deftrue('BOOTSTRAP')) ? $tp->toGlyph('chevron-right') : '>>'; + $icon = (deftrue('BOOTSTRAP')) ? $tp->toGlyph('fa-chevron-right') : '>>'; return "".LAN_NEXT." ".$icon."\n"; diff --git a/e107_plugins/forum/forum_viewforum.php b/e107_plugins/forum/forum_viewforum.php index 620948413..007ff39e7 100644 --- a/e107_plugins/forum/forum_viewforum.php +++ b/e107_plugins/forum/forum_viewforum.php @@ -1003,10 +1003,10 @@ function fadminoptions($thread_info) $lan = array('stick'=>LAN_FORUM_8007,'unstick'=>LAN_FORUM_8008,'lock'=>LAN_FORUM_8009, 'unlock'=>LAN_FORUM_8010); $icon = array( - 'unstick' => $tp->toGlyph('chevron-down'), - 'stick' => $tp->toGlyph('chevron-up'), - 'lock' => $tp->toGlyph('lock'), - 'unlock' => $tp->toGlyph('unlock'), + 'unstick' => $tp->toGlyph('fa-chevron-down'), + 'stick' => $tp->toGlyph('fa-chevron-up'), + 'lock' => $tp->toGlyph('fa-lock'), + 'unlock' => $tp->toGlyph('fa-unlock'), ); diff --git a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php index 9fdf80805..0ce3b3a9d 100644 --- a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php @@ -838,14 +838,14 @@