mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 04:41:53 +02:00
FontAwesome 5 added to admin area and bootstrap3 theme. $tp->toIcon() supports SVG sizing 2x, 3x etc.
This commit is contained in:
@@ -1950,6 +1950,7 @@ while($row = $sql->fetch())
|
||||
|
||||
public function testToGlyph()
|
||||
{
|
||||
$this->tp->setFontAwesome(4);
|
||||
|
||||
$result = $this->tp->toGlyph('fa-envelope.glyph');
|
||||
$expected = "<i class='fa fa-envelope' ><!-- --></i> ";
|
||||
@@ -1962,6 +1963,24 @@ while($row = $sql->fetch())
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
|
||||
$this->tp->setFontAwesome(4);
|
||||
|
||||
$result = $this->tp->toGlyph('fab-mailchimp'); // spefific call
|
||||
$expected = "<i class='fab fa-mailchimp' ><!-- --></i> ";
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
$result = $this->tp->toGlyph('fas-camera'); // spefific call
|
||||
$this->assertSame( "<i class='fas fa-camera' ><!-- --></i> ", $result);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function testToGlyphFallback()
|
||||
{
|
||||
$this->tp->setFontAwesome(5);
|
||||
$result = $this->tp->toGlyph('fa-paypal.glyph');
|
||||
$this->assertSame("<i class='fab fa-paypal' ><!-- --></i> ", $result);
|
||||
}
|
||||
/*
|
||||
public function testToBadge()
|
||||
|
Reference in New Issue
Block a user