<?php

/** ------------------------------
		ENABLE SVG
------------------------------*/

/* <?xml version="1.0" encoding="utf-8"?> */

function cc_mime_types($mimes)
{
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');


// #############################
// AJOUT D'UN ESPACE LOGO CUSTOM
// #############################

// function add_logo_customizer_settings($wp_customize)
// {
// $wp_customize->add_setting('logo_semlex_dark');

// // Add a control to upload the hover logo
// $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'logo_semlex_dark', array(
// 'label' => 'Logo Semlex Sombre',
// 'section' => 'title_tagline', //this is the section where the custom-logo from WordPress is
// 'settings' => 'logo_semlex_dark',
// 'priority' => 8 // show it just below the custom-logo
// )));
// }

// add_action('customize_register', 'add_logo_customizer_settings');