1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Fix theme shortcode login menu icons

This commit is contained in:
Cameron
2021-02-10 02:57:43 -08:00
parent 1f3e70d40a
commit 0cd5381435
2 changed files with 12 additions and 4 deletions

View File

@@ -1613,6 +1613,14 @@ class e_parse_shortcodeTest extends \Codeception\Test\Unit
}
public function testGlyphShortcode()
{
$tp = e107::getParser();
$result = $tp->parseTemplate('{GLYPH=fa-user}');
$this->assertSame("<i class='fas fa-user' ><!-- --></i>", $result);
}
public function testAddonShortcodes()
{

View File

@@ -264,11 +264,11 @@ class theme_shortcodes extends e_shortcode
if(ADMIN)
{
$text .= '<li><a href="'.e_ADMIN_ABS.'"><span class="fa fa-cogs"></span> '.LAN_LOGINMENU_11.'</a></li>';
$text .= '<li><a href="'.e_ADMIN_ABS.'">{GLYPH=fa-cogs} '.LAN_LOGINMENU_11.'</a></li>';
}
$text .= '
<li><a href="'.e_HTTP.'index.php?logout">{GLYPH=fa-off}'.LAN_LOGOUT.'</a></li>
<li><a href="'.e_HTTP.'index.php?logout">{GLYPH=fa-power-off} '.LAN_LOGOUT.'</a></li>
</ul>
</li>
</ul>