spaceace wrote: Mon Feb 27, 2017 6:51 pm
HiFiKabin wrote: Mon Feb 27, 2017 6:31 pmI should have something by tomorrow. Its all coming together nicely on my test forum
you could wrap the <i> for font awesome in an IF statement and have the variable where someone just adds the
fa-anchor
in the ACP for example would add it into the HTML. like this...
<!-- IF header-link-fa-icon --><i class="fa {VARIABLE-GOES-HERE}" aria-hidden="true"></i><!-- ENDIF -->
just a quick thought
What I have at the moment is:-
Code: Select all
<!-- IF (HEADERLINK_ACTIVE_1 eq '1' and not S_USER_LOGGED_IN) or (HEADERLINK_ACTIVE_1 eq '2' and S_USER_LOGGED_IN) or HEADERLINK_ACTIVE_1 eq '3'-->
<li class="nav-button" style="background-color:{HEADERLINK_COLOUR_1}">
<a href="{HEADERLINK_URL_1}" title="{HEADERLINK_HOVER_1}" target="{HEADERLINK_TARGET_1}">
<i class="{HEADERLINK_ICON_1} fa-fw"></i><span>{HEADERLINK_NAME_1}</span>
</a>
</li>
<!-- ENDIF -->
which works either with or without any content in
{HEADERLINK_ICON_1}
This way the admin can add whichever FA code they would like (or not) eg
icon fa-credit-card
Its been 'fun'