1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 23:36:29 +02:00

Closes #4969, Fixes #5008, Fixes #4498 - FontAwesome6 support.

This commit is contained in:
camer0n
2023-11-17 11:18:23 -08:00
parent bf3ba04430
commit 34ba78023c
13 changed files with 216 additions and 61 deletions

View File

@@ -2140,6 +2140,13 @@ EXPECTED;
$expected = "<i class='fab fa-mailchimp' ></i> ";
$this->assertEquals($expected, $result);
$this->tp->setFontAwesome(6);
$result = $this->tp->toGlyph('fa-wine-glass-empty');
$expected = "<i class='fas fa-wine-glass-empty' ></i> ";
$this->assertSame($expected, $result);
$result = $this->tp->toGlyph('fa-virus-covid');
$this->assertSame("<i class='fas fa-virus-covid' ></i> ", $result);
$this->tp->setFontAwesome(4);
@@ -2249,6 +2256,19 @@ EXPECTED;
$this->tp->setFontAwesome(5);
$result = $this->tp->toGlyph('fa-paypal.glyph');
$this->assertSame("<i class='fab fa-paypal' ></i> ", $result);
$this->tp->setFontAwesome(6);
$result = $this->tp->toGlyph('fa-paypal.glyph');
$this->assertSame("<i class='fab fa-paypal' ></i> ", $result);
$result = $this->tp->toGlyph('fa-clock.glyph');
$this->assertSame("<i class='fas fa-clock' ></i> ", $result);
$result = $this->tp->toGlyph('clock.glyph');
$this->assertSame("<i class='fas fa-clock' ></i> ", $result);
$this->tp->setFontAwesome(5);
}
/*