Пример #1
0
<div id="bandeau">
<div id="nom_site">
<?php
$template = new CXmlTree(PATH_RACINE.'/'.PATH_TEMPLATE.'/default/design.xml');
$template->element("couleur1");
?>
<?php echo $template->element('input_nomsite'); ?></div>
<div id="slogan">
<?php echo $template->element('input_accroche'); ?></div>
</div>
Пример #2
0
<?php
header("Content-type: text/css");

@include('../../../inc/init.php');
@include('/inc/init.php');

$template = new CXmlTree('design.xml');
echo "
body, div#header, div#menu_b {
  background-color : " . $template->element('color_couleur1') . "
}
th, #menu_g h2, #num_page li a {
  background-color : " . $template->element('color_couleur2') . "
}
a, #menu_g ul, #num_page li a:hover {
  color            : " . $template->element('color_couleur2') . "
}
#num_page li, table, th, td {
  border-color     : " . $template->element('color_couleur2') . "
}
#bandeau {
  background-image:url(" . $template->element('image_bandeau') . ")" . "
}

#nom_site, #slogan {
  color           : " . $template->element('color_couleur3') . "
}
";


?>