Пример #1
0
    exit;
}
/*******************************
 * GESTION DE LA CONFIGURATION DU THEME
 */
use Doublefou\Helper\Theme;
use Doublefou\Helper\Seo;
use Doublefou\Helper\Yoast;
use Doublefou\Core\Debug;
use Doublefou\Helper\Login;
//On cache l'admin bar sur le front sauf pour l'admin
Theme::hideAdminBar('activate_plugins');
//On clean le head
Theme::cleanHeader();
//Désactiver les EMOJI
Theme::disableEmoji();
//Gestion titre et description
Seo::initHeader();
//Supprimer le footer yoast
Yoast::removeFooter();
//Chargement des langues
//load_theme_textdomain('dfwpchild',get_stylesheet_directory().'/languages');
//Custom menus
/*	register_nav_menus( array(
		'menu-header' => 'Navigation principale',
		'menu-footer' => 'Navigation en pied de page'
	) );
	*/
//Chargement des fichiers javascript
function dfwpchild_enqueue_scripts()
{
Пример #2
0
<?php

//On récupère les languages attributes
use Doublefou\Helper\Theme;
$languagesAttributes = Theme::getLanguageAttributes();
?>
<!DOCTYPE html>
<!--[if lt IE 7]><html <?php 
echo $languagesAttributes;
?>
 class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6"><![endif]-->
<!--[if IE 7]><html <?php 
echo $languagesAttributes;
?>
 class="no-js lt-ie10 lt-ie9 lt-ie8 ie7"><![endif]-->
<!--[if IE 8]><html <?php 
echo $languagesAttributes;
?>
 class="no-js lt-ie10 lt-ie9 ie8"><![endif]-->
<!--[if IE 9]><html <?php 
echo $languagesAttributes;
?>
 class="no-js lt-ie10 ie9"><![endif]-->
<?php 
if (stripos($_SERVER['HTTP_USER_AGENT'], 'MSIE 10')) {
    ?>
	<html <?php 
    echo $languagesAttributes;
    ?>
 class="no-js ie10">
<?php