/* Chargement de la feuille du style du theme parent */ add_action( 'wp_enqueue_scripts', 'wpchild_enqueue_styles' ); function wpchild_enqueue_styles(){ //wp_enqueue_style( 'aniki-default-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '-aniki/assets/css/bootstrap-grid.min.css' ); } /* Bloquer accès aux non-admins */ function wpc_block_dashboard() { $file = basename($_SERVER['PHP_SELF']); if (is_user_logged_in() && is_admin() && !current_user_can('publish_posts') && $file != 'admin-ajax.php') { wp_redirect( home_url() ); exit(); } } add_action('init', 'wpc_block_dashboard'); add_action('wp_logout','auto_redirect_after_logout'); function auto_redirect_after_logout(){ wp_redirect( home_url() ); exit(); } function wpse_setup_theme() { add_theme_support( 'post-thumbnails' ); add_image_size( 'a-demain', 298, 421, true ); add_image_size( 'partenaire', 300, 300, true ); } add_action( 'after_setup_theme', 'wpse_setup_theme' ); function prefix_category_title( $title ) { if ( is_category() ) { $title = single_cat_title( '', false ); } return $title; } add_filter( 'get_the_archive_title', 'prefix_category_title' ); // Create Shortcode a-demain // Shortcode: [a-demain] function create_ademain_shortcode($atts) { $atts = shortcode_atts( array( 'type' => 'a-demain', ), $atts, 'a-demain' ); ob_start(); get_template_part('template-parts/a-demain'); return ob_get_clean(); } add_shortcode( 'a-demain', 'create_ademain_shortcode' ); // Create Shortcode postshome // Shortcode: [postshome] function create_postshome_shortcode($atts) { $atts = shortcode_atts( array( ), $atts, 'postshome' ); ob_start(); get_template_part('template-parts/postshome'); return ob_get_clean(); } add_shortcode( 'postshome', 'create_postshome_shortcode' ); // Create Shortcode partenaires // Shortcode: [partenaires] function create_partenaires_shortcode($atts) { $atts = shortcode_atts( array( ), $atts, 'partenaires' ); ob_start(); get_template_part('template-parts/partenaires'); return ob_get_clean(); } add_shortcode( 'partenaires', 'create_partenaires_shortcode' ); include_once ( get_template_directory() . '-aniki/core/custom-post-type.php' ); Tag - ONU - On’
On’

Tag - ONU

Logo On'

Instagram On’ Media

Instagram has returned empty data. Please authorize your Instagram account in the plugin settings .