💄 Añade icono para enlazar a Mastodon

This commit is contained in:
Manuel Cillero 2022-11-23 20:15:33 +01:00
parent b61354a7e2
commit 5820b34f31

View file

@ -111,19 +111,21 @@ function avia_change_tag_page_layout( $layout, $context ) {
}
/*
* Register new icons as a theme icons fot GitHub and GitLab.
* Register new icons as a theme icons fot GitHub, GitLab and Mastodon.
* See https://kriesi.at/documentation/enfold/custom-social-icons/
*/
add_filter( 'avf_default_icons', 'avia_add_custom_icon', 10, 1 );
function avia_add_custom_icon( $icons ) {
$icons['github'] = array( 'font' =>'fontello', 'icon' => 'uf09b' );
$icons['gitlab'] = array( 'font' =>'fontello', 'icon' => 'uf296' );
$icons['mastodon'] = array( 'font' =>'fontello', 'icon' => 'ue804' );
return $icons;
}
add_filter( 'avf_social_icons_options', 'avia_add_custom_social_icon', 10, 1 );
function avia_add_custom_social_icon( $icons ) {
$icons['GitHub'] = 'github';
$icons['GitLab'] = 'gitlab';
$icons['Mastodon'] = 'mastodon';
return $icons;
}