FontAwesome Icons in Help Wrapper

FontAwesome Icons in Help Wrapper

Matthew Hawley

Well-known member
yolulz submitted a new resource:

[LetsPWN] FontAwesome Icons in Help Wrapper - FontAwesome!

FontAwesome Website:http://fortawesome.github.io/Font-Awesome/
List of Icons: http://fortawesome.github.io/Font-Awesome/icons/

1. Go to help_wrapper and replace everything between

Code:
<li class="section"><h4 class="heading">{xen:phrase help}</h4>
 
</li>

with:

Code:
<ul>
                    <xen:hook name="help_sidebar_links">
                    <li><a href="{xen:link help/smilies}" class="{xen:if...

Read more about this resource...
 
A little suggestion, add "Medal" for [bd]Medal :D

Sorry for the late update. I said I was working on at 9:25 am and updated the addon at 11:05 pm. I could've done it a lot quicker, but I was being lazy, going back and forth. Watching family guy and other tv shows.
 
Don't know if it matters, but my help_wrapper template didn't have
<li class="section"><h4 class="heading">{xen:phrase help}</h4>

it only had
<li class="section">
 
Matt,
I got it to work, but with 4.0.3 my code was like this:

Code:
                <ul>
                    <xen:hook name="help_sidebar_links">
                    <li><a href="{xen:link help/smilies}" class="{xen:if "{$selected} == 'smilies'", 'secondaryContent', 'primaryContent'}"><i class="fa fa-smile-o fa-lg fa-fw" style="padding-right:7px;"></i>{xen:phrase smilies}</a></li>
                    <!-- slot: pre_bb_codes -->
                    <li><a href="{xen:link help/bb-codes}" class="{xen:if "{$selected} == 'bbCodes'", 'secondaryContent', 'primaryContent'}"><i class="fa fa-indent fa-lg fa-fw" style="padding-right:7px;"></i>{xen:phrase bb_codes}</a></li>
                    <!-- slot: pre_trophies -->
                    <li><a href="{xen:link help/trophies}" class="{xen:if "{$selected} == 'trophies'", 'secondaryContent', 'primaryContent'}"><i class="fa fa-trophy fa-lg fa-fw" style="padding-right:7px;"></i>{xen:phrase trophies}</a></li>
                    <!-- slot: pre_cookies -->
                    <li><a href="{xen:link help/cookies}" class="{xen:if "{$selected} == 'cookies'", 'secondaryContent', 'primaryContent'}"><i class="fa fa-circle-o fa-lg fa-fw" style="padding-right:7px;"></i>{xen:phrase cookie_usage}</a></li>
                    <!-- slot: pre_tos_url -->
                    <xen:if is="{$tosUrl}">
                        <li><a href="{$tosUrl}" class="{xen:if "{$selected} == 'terms'", 'secondaryContent', 'primaryContent'}"><i class="fa fa-legal fa-lg fa-fw" style="padding-right:7px;"></i>{xen:phrase terms_and_rules}</a></li>
                    </xen:if>
                    </xen:hook>
                </ul>

I reverted my template before doing this, which was fine for me but may mess up others.
 
Code:
fa-large fa-fixed-width

Does nothing, does not work.

Before "updating" all your template mods, you should make sure they work. This is the 4th or 5th one with wrong information in it. Just changing the stylesheet to 4.0.3 does not mean it was updated.
 
Top Bottom