e35efb1146
Fix #9
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
/* functions.php
|
|
*
|
|
* All the function of Quarante-Douze
|
|
*
|
|
*/
|
|
|
|
|
|
/* 1. Sidebar support */
|
|
|
|
if ( function_exists('register_sidebar') )
|
|
register_sidebar(array(
|
|
'before_widget' => '<section id="%1$s" class="widget %2$s card card-secondary">',
|
|
'after_widget' => '</section>',
|
|
'before_title' => '<h1 class="section card-header">',
|
|
'after_title' => '</h1>',
|
|
));
|
|
|
|
/* 2. Niveau support (for featured posts) */
|
|
|
|
register_taxonomy(
|
|
'niveau',
|
|
'post',
|
|
array(
|
|
'label' => 'Niveau',
|
|
'labels' => array(
|
|
'name' => 'Niveaux',
|
|
'singular_name' => 'Niveaux',
|
|
'all_items' => 'Tous les niveaux',
|
|
'edit_item' => 'Éditer le niveau',
|
|
'view_item' => 'Voir le niveau',
|
|
'update_item' => 'Mettre à jour le niveau',
|
|
'add_new_item' => 'Ajouter un niveau',
|
|
'new_item_name' => 'Nouveau niveau',
|
|
'search_items' => 'Rechercher parmi les niveaux',
|
|
'popular_items' => 'Niveaux les plus utilisés'
|
|
),
|
|
'hierarchical' => false
|
|
)
|
|
);
|
|
|
|
register_taxonomy_for_object_type( 'niveau', 'post' );
|