Re : Cliquer sur lien ---> changer fond site
J'ai lu la question mais pas de parametres de couleur dans la template.
J'ai lu la question mais pas de parametres de couleur dans la template.
body.4-si-tic { background: #CCCAAA; }
body.4-si-tic { background: #CCCAAA; }
<?php $itemid = JRequest::getVar('Itemid'); $menu = &JSite::getMenu(); $active = $menu->getItem($itemid); $params = $menu->getParams( $active->id ); $pageclass = $params->get( 'pageclass_sfx' ); ?> <link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/<?php echo htmlspecialchars($pageclass) ?>.css" type="text/css"/>
#dd-main {background:#CCCAAA}
<link rel="stylesheet" href="templates/[B]dd_schoolsfun_48[/B]/css/[B]bleu[/B].css" type="text/css"/>
#dd-main {background:#CCCAAA !important}
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/<?php echo htmlspecialchars($pageclass) ?>.css" type="text/css"/>
<body class="<?php echo htmlspecialchars($pageclass) ?>">
.bleu #dd-main {background:#CCCAAA}
<?php $itemid = JRequest::getVar('Itemid'); $menu = &JSite::getMenu(); $active = $menu->getItem($itemid); $params = $menu->getParams( $active->id ); $pageclass = $params->get( 'pageclass_sfx' ); ?> <link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/<?php echo htmlspecialchars($pageclass) ?>.css" type="text/css"/>
#dd-main {background:#CCCAAA}
<link rel="stylesheet" href="templates/[B]dd_schoolsfun_48[/B]/css/[B]bleu[/B].css" type="text/css"/>
Commentaire