From 66f68451c27912da943e3ca86d0f6c7b8ac10065 Mon Sep 17 00:00:00 2001 From: mcpeace-maw Date: Sat, 27 Jun 2015 00:51:46 +0300 Subject: [PATCH] Update forum_icons_template.php This is the support for font icons in the forum front end. I try it and works. --- .../forum/templates/forum_icons_template.php | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/e107_plugins/forum/templates/forum_icons_template.php b/e107_plugins/forum/templates/forum_icons_template.php index 240740c6b..d87017f3e 100644 --- a/e107_plugins/forum/templates/forum_icons_template.php +++ b/e107_plugins/forum/templates/forum_icons_template.php @@ -12,6 +12,29 @@ if (!defined('e107_INIT')) { exit(); } +$tp = e107::getParser(); +if(deftrue("FONTAWESOME", 4)) { + +define('IMAGE_e', 'e'); +define('IMAGE_new', $tp->toGlyph('fa-star', 'size=2x')); +define('IMAGE_nonew', $tp->toGlyph('fa-comment', 'size=2x')); +define('IMAGE_new_small', $tp->toGlyph('fa-star')); +define('IMAGE_nonew_small', $tp->toGlyph('fa-comment-o')); +define('IMAGE_new_popular', $tp->toGlyph('fa-comments', 'size=2x')); +define('IMAGE_nonew_popular', $tp->toGlyph('fa-comments-o', 'size=2x')); +define('IMAGE_new_popular_small', $tp->toGlyph('fa-comments')); +define('IMAGE_nonew_popular_small', $tp->toGlyph('fa-comments-o')); +define('IMAGE_sticky', $tp->toGlyph('fa-thumb-tack', 'size=2x')); +define('IMAGE_stickyclosed', $tp->toGlyph('fa-lock', 'size=2x')); +define('IMAGE_sticky_small', $tp->toGlyph('fa-thumb-tack')); +define('IMAGE_stickyclosed_small', $tp->toGlyph('fa-lock')); +define('IMAGE_announce', $tp->toGlyph('fa-bullhorn', 'size=2x')); +define('IMAGE_announce_small', $tp->toGlyph('fa-bullhorn')); +define('IMAGE_closed_small', $tp->toGlyph('fa-lock')); +define('IMAGE_closed', $tp->toGlyph('fa-lock', 'size=2x')); + +} else { + // Thread info define('IMAGE_e', ''); define('IMAGE_new', ''.LAN_FORUM_4001.''); @@ -31,6 +54,8 @@ define('IMAGE_announce_small', ''.LAN_FORUM_1014.''); define('IMAGE_closed', ''.LAN_FORUM_1014.''); +} + // User info define('IMAGE_website', ''.LAN_FORUM_2034.''); define('IMAGE_email', ''.LAN_FORUM_2044.''); @@ -65,4 +90,4 @@ define('IMAGE_rank_moderator_image', ''); define('IMAGE_rank_admin_image', ''); -?> \ No newline at end of file +?>