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:
@@ -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()
|
||||
{
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user