genTotalMenu(); $guide = new GestionFranchise(); $nouvelles = new GestionNews(); unset ($id); unset ($order); //($_SESSION['lang'] == 'en' ) ? $titre = 'Quebec Franchise :: Entrepreneurship for everyone' : $titre = 'Quebec Franchise :: L\'entrepreneurship pour tous '; $titre = '- Archives des nouvelles'; $menuTop = $guide->genMenuTop(); $pied = $guide->genPied(); $langIcon = $lang->genMenuLang(); $menuTop = str_replace("{lang}", $langIcon, $menuTop); ($_SESSION['lang'] == 'en' ) ? $logolink = 'Quebec Franchise :: Return to homepage' : $logolink = 'Quebec Franchise :: Retour à la page d\'accueil '; ($_SESSION['lang'] == 'en' ) ? $location = ' Homepage' : $location = ' Page d\'accueil '; $currentMag = $guide->currentMag(); $pubLarge = $guide->pubLarge(); // genere la grande publicite $pubSmall = $guide->pubSmall(); // genere les petites publicites $id = ''; if (isset($_GET['id']) && is_numeric($_GET['id'])) { $content = $nouvelles->showNouvelles($_GET['id']) . /*$guide->genQuestionBox() .*/ $guide->genShareBox() . '
'; $titre = '- ' . $titre; } elseif(isset($_GET['title'])) { $content = $nouvelles->showNouvelles($_GET['title']) . /*$guide->genQuestionBox() .*/ $guide->genShareBox() . '
'; $titre = '- ' . $titre; } else { $content = $nouvelles->listNouvelles('','qc-fr'); } // affichage $coquille = file_get_contents('modeles/default.html',true); $page = str_replace('{title}', $titre,$coquille); $page = str_replace('{content}', $content, $page); $page = str_replace('{pubLarge}',$pubLarge,$page); $page = str_replace('{logolink}',$logolink,$page); $page = str_replace('{location}',$location,$page); $page = str_replace('{currentMag}',$currentMag,$page); $page = str_replace('{pubSmall}',$pubSmall,$page); $page = str_replace('{menuTop}',$menuTop,$page); $page = str_replace('{navibar}',$navBar,$page); $page = str_replace('{className}','',$page); $page = str_replace('{pied}',$pied,$page); $page = str_replace('{date}',date('Y'),$page); $page = str_replace('{bigBox}', GestionFranchise::getRandomBigBox(), $page); $page = str_replace('{leaderBanner}', GestionFranchise::getRandomLeaderBanner(), $page); $page = str_replace('{leaderBanner2}', GestionFranchise::getRandomLeaderBanner2(), $page); echo $page;