update fontawesome integration and add kit support

This commit is contained in:
2026-02-10 15:22:19 +00:00
parent d892714026
commit 449ebe65bb
10 changed files with 621 additions and 13886 deletions

View File

@@ -7,6 +7,7 @@ class Integrations
public function __construct()
{
add_action( 'wp_head', [$this, 'FathomAnalytics']);
add_action( 'wp_footer', [$this, 'FontAwesomeKit'], 100);
}
public function FathomAnalytics()
@@ -21,4 +22,17 @@ class Integrations
<?php endif;
}
public function FontAwesomeKit()
{
$kit = get_field('badegg_integrations_fontawesome_kit', 'option');
if($kit): ?>
<!-- FontAwesome Kit -->
<script src="https://kit.fontawesome.com/<?= $kit ?>.js" crossorigin="anonymous"></script>
<!-- / FontAwesome Kit -->
<?php endif;
}
}