refactor(icons): replace local brand SVGs with FA5 classes
Unify social/OAuth/contact icons on the global Font Awesome 5.15.4 pack, add aksrt_render_social_links for author hero, enqueue FA on admin SPA, and delete assets/img/icons.
This commit is contained in:
+11
-8
@@ -254,8 +254,12 @@ if ($_footer_conter === '') {
|
||||
$m_url = (string) ($more_item['link'] ?? '');
|
||||
$m_text = (string) ($more_item['desc'] ?? '');
|
||||
$m_icon = (string) ($more_item['icon'] ?? '');
|
||||
$m_svg = ($m_icon !== '' && function_exists('aksrt_inline_svg')) ? aksrt_inline_svg($m_icon) : '';
|
||||
$m_icon_html = $m_svg !== '' ? $m_svg : '<i class="fas fa-heart" aria-hidden="true"></i>';
|
||||
$m_icon_html = ($m_icon !== '' && function_exists('aksrt_brand_icon'))
|
||||
? aksrt_brand_icon($m_icon)
|
||||
: '';
|
||||
if ($m_icon_html === '') {
|
||||
$m_icon_html = '<i class="fas fa-heart" aria-hidden="true"></i>';
|
||||
}
|
||||
if ($m_img !== '') :
|
||||
?>
|
||||
<a class="toggle-radius hover-show nowave" href="javascript:;" title="<?php echo esc_attr($m_text); ?>">
|
||||
@@ -274,14 +278,13 @@ if ($_footer_conter === '') {
|
||||
$c_icon = $contact['icon'] ?? '';
|
||||
$c_url = $contact['url'] ?? '#';
|
||||
$c_label = $contact['title'] ?? ($contact['label'] ?? (function_exists('aksrt_icon_key_to_name') ? aksrt_icon_key_to_name($c_icon) : ''));
|
||||
$c_svg = function_exists('aksrt_inline_svg') ? aksrt_inline_svg($c_icon) : '';
|
||||
$c_icon_html = function_exists('aksrt_brand_icon') ? aksrt_brand_icon((string) $c_icon) : '';
|
||||
if ($c_icon_html === '') {
|
||||
$c_icon_html = '<i class="fas fa-globe" aria-hidden="true"></i>';
|
||||
}
|
||||
?>
|
||||
<a class="toggle-radius" href="<?php echo esc_url($c_url); ?>" target="_blank" rel="noopener noreferrer" title="<?php echo esc_attr($c_label); ?>" aria-label="<?php echo esc_attr($c_label); ?>">
|
||||
<?php if ($c_svg !== '') : ?>
|
||||
<?php echo $c_svg; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
<?php else : ?>
|
||||
<i class="fas fa-globe" aria-hidden="true"></i>
|
||||
<?php endif; ?>
|
||||
<?php echo $c_icon_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user