1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 21:18:04 +01:00

Support FontAwesome in NextPrev

This commit is contained in:
Tijn Kuyper 2019-04-03 11:33:24 +02:00
parent ff47a5e84b
commit 4eff3a7785
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2

View File

@ -88,10 +88,20 @@ function nextprev_shortcode($parm = '')
if(vartrue($parm['glyphs']) && (deftrue('BOOTSTRAP')))
{
$LAN_NP_FIRST = $tp->toGlyph("icon-fast-backward.glyph",false);
$LAN_NP_PREVIOUS = $tp->toGlyph("icon-backward.glyph",false);
$LAN_NP_NEXT = $tp->toGlyph("icon-forward.glyph",false);
$LAN_NP_LAST = $tp->toGlyph("icon-fast-forward",false);
if(deftrue('FONTAWESOME'))
{
$LAN_NP_FIRST = $tp->toGlyph('fa-fast-backward');
$LAN_NP_PREVIOUS = $tp->toGlyph('fa-backward');
$LAN_NP_NEXT = $tp->toGlyph('fa-forward');
$LAN_NP_LAST = $tp->toGlyph('fa-fast-forward');
}
else
{
$LAN_NP_FIRST = $tp->toGlyph("icon-fast-backward.glyph",false);
$LAN_NP_PREVIOUS = $tp->toGlyph("icon-backward.glyph",false);
$LAN_NP_NEXT = $tp->toGlyph("icon-forward.glyph",false);
$LAN_NP_LAST = $tp->toGlyph("icon-fast-forward",false);
}
}
else
{