This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
qdouze2-wordpress-theme/functions.php

35 lines
1,014 B
PHP
Raw Permalink Normal View History

2022-12-17 19:46:29 +01:00
<?php
/* functions.php
*
2022-12-18 09:46:44 +01:00
* All the function of Quarante-Douze
2022-12-17 19:46:29 +01:00
*
*/
/* 0. Excerpt and thumbnail support
*
* Ces fonctions ajoutent les fonctionnalités de base du theme,
* tel que les extraits et les miniatures.
*/
2023-11-20 11:29:00 +01:00
include(TEMPLATEPATH . '/functions/posts-support.php');
include(TEMPLATEPATH . '/functions/niveaux.php');
include(TEMPLATEPATH . '/functions/flags.php');
include(TEMPLATEPATH . '/functions/breadcrumb.php');
include(TEMPLATEPATH . '/functions/reading-time.php');
include(TEMPLATEPATH . '/functions/remove-block-library.php');
2022-12-17 19:46:29 +01:00
function wpb_custom_new_menu() {
register_nav_menus(
array(
'top-navbar' => __( 'Navbar (gauche)' ),
2023-05-03 11:27:05 +02:00
'top-navbar-2' => __( 'Navbar (secondaire)' ),
2022-12-17 19:46:29 +01:00
'link-menu' => __( 'Liste des liens' ),
'footer-pages' => __( 'Pages dans le footer' ),
'social' => __( 'Reseaux sociaux' ),
'social-plus' => __( 'Reseaux sociaux supplémentaires' ),
)
);
}
add_action( 'init', 'wpb_custom_new_menu' );