generated from bisco/codex-bootstrap
fix: balance contact section socials
This commit is contained in:
@@ -31,6 +31,7 @@ function azionelab_defaults(): array {
|
||||
'contact_whatsapp' => '+39 333 123 4567',
|
||||
'contact_instagram' => 'https://instagram.com/',
|
||||
'contact_facebook' => 'https://facebook.com/',
|
||||
'contact_youtube' => 'https://youtube.com/',
|
||||
'contact_address' => "Via dell'Epomeo 9999, Napoli",
|
||||
'footer_text' => 'Uno spazio aperto a chi desidera incontrare il teatro, insieme.',
|
||||
);
|
||||
@@ -86,6 +87,10 @@ function azionelab_social_icon( string $network ): string {
|
||||
return '<svg class="social-icon social-icon-facebook" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="2.5" y="2.5" width="19" height="19" rx="4.5" fill="#1877f2"/><path fill="#fff" d="M13.45 21.5v-7.35h2.48l.37-2.88h-2.85V9.43c0-.83.23-1.4 1.43-1.4h1.52V5.46c-.26-.04-1.17-.12-2.22-.12-2.2 0-3.7 1.34-3.7 3.8v2.13H8v2.88h2.48v7.35h2.97Z"/></svg>';
|
||||
}
|
||||
|
||||
if ( 'youtube' === $network ) {
|
||||
return '<svg class="social-icon social-icon-youtube" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="2" y="5" width="20" height="14" rx="4.2" fill="#ff0000"/><path d="m10.2 8.6 5.4 3.4-5.4 3.4V8.6Z" fill="#fff"/></svg>';
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -169,6 +174,7 @@ function azionelab_customize_register( WP_Customize_Manager $customizer ): void
|
||||
'contact_whatsapp' => array( 'azionelab_contacts', 'WhatsApp', 'text' ),
|
||||
'contact_instagram' => array( 'azionelab_contacts', 'Instagram', 'url' ),
|
||||
'contact_facebook' => array( 'azionelab_contacts', 'Facebook', 'url' ),
|
||||
'contact_youtube' => array( 'azionelab_contacts', 'YouTube', 'url' ),
|
||||
'contact_address' => array( 'azionelab_contacts', 'Indirizzo', 'text' ),
|
||||
'footer_text' => array( 'azionelab_contacts', 'Testo footer', 'text' ),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user