website logo
Auteur
avatar
bmag

Forum » » Anomalies core NPDS » » [RĂ©solu] - Landing_page


Posté : 17 avr. 2016 à 16:18 icone du post

yo
le code complet qui fait fonctionner le truc, c'est le code que tu m'a fait mettre dans le header du theme dinamic.
J'ai ensuite dans mon theme deux header
un header.html et un header_landing.html


global $theme; $rep=false;
settype($ContainerGlobal,'string');
if (file_exists("themes/".$theme."/html/header.html")) {$rep=$theme;}
elseif (file_exists("themes/default/html/header.html")) {$rep="default";}
else {
   echo "header.html manquant / not find !<br />";
   die();
}
if ($rep) {
   if (file_exists("modules/!include!/body_!onload!.inc") or file_exists("themes/$theme/!include!/body_!onload!.inc")) {
      $!onload!_init=" !onload!=\"init();\"";
   } else {
      $!onload!_init="";
   }
   if (!$ContainerGlobal)
      echo "<body".$!onload!_init." class=\"body\">\n";
   else {
      echo "<body".$!onload!_init.">";
      echo $ContainerGlobal;
   }
   ob_start();

 if (stristr($_SERVER['PHP_SELF'],"index.php") and file_exists("themes/".$rep."/html/header_landing.html")) {!include!("themes/".$rep."/html/header_landing.html"); } else{ !include!("themes/".$rep."/html/header.html");}



   $Xcontent=ob_get_contents();
   ob_end_clean();
   echo meta_lang(aff_langue($Xcontent));
}
?>

Bmag
On ne peut pas aider tout le monde mais chacun peu aider....

Cet article provient de Labo NPDS 2015-2024
https://labo.infocapagde.com/viewtopic.php?topic=430&forum=9