%PDF- %PDF-
Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/ |
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/p-theme.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); include_once("inc/session.php"); if(!isset($_GET['lang'])){ $_GET['lang']="fr"; } $search=true; $subheader=false; $thetheme=$theme->getWithLang($_GET['theme'],$lang->id()); if($thetheme['id_parent']==0){ $cat_theme=$thetheme; } else{ $cat_theme=$theme->getWithLang($thetheme['id_parent'],$lang->id()); } //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>".$thetheme['libelle']." - ".$info_titresite."</title>\n"; //affichage du header include("theme/header.php"); ?> <? //colonne de droite include("theme/droite.php"); ?> <div class="theme"> <div class="theme_header<?=(($thetheme['id_parent']==0)?"_main":"")?>" style="background-image:url('uploads/<?=$cat_theme['photo']?>')"> <h1><?=$thetheme['libelle']?></h1> <div class="large_search_form"> <form type="get" action="<?php echo $lang->getlang(); ?>/search.html"> <input type="hidden" name="cat" value="<?=$cat_theme['id_theme']?>"/> <select name="choix_sous_cat"> <option value="0"><?=$trad->t("Choose the topic",'front',$lang->id())?></option> <?=$theme->getSubThemesSelect($cat_theme['id_theme'],$lang->id())?> </select> <?if($cat_theme['id_theme']==6 || $cat_theme['id_theme']==7):?> <select name="choix_pays"> <option value="0"><?=$trad->t("Choose the country",'front',$lang->id())?></option> <?=$country->getCountry($lang->id())?> </select> <? endif; ?> <input name="keyword_large" type="text" value="" placeholder="<?=$trad->t("Type some keywords...","front",$lang->id())?>" /> <button type="submit" class="btn btn-success"> <i class="fa fa-search" aria-hidden="true"></i> </button> </form> </div> </div> <div id="filariane"> <a style="color:#<?=$cat_theme['couleur']?>" href="<?=$url_site.$lang->getlang()?>/" class="link_home"><i class="fa fa-home" aria-hidden="true"></i></a> <i class="fa fa-caret-right" aria-hidden="true"></i> <?=(($thetheme['id_parent']!=0)?'<a style="color:#'.$cat_theme['couleur'].'" class="link" href="'.$lang->getlang().'/theme/'.$cat_theme['id_theme']."-".cleanUrl($cat_theme['libelle']).'.html">'.$cat_theme['libelle'].'</a> <i class="fa fa-caret-right" aria-hidden="true"></i> ':"")?> <div style="color:#<?=$cat_theme['couleur']?>" class="link"><?=$thetheme['libelle']?></div> </div> <? if($thetheme['description']!=""):?> <div class="description"> <div class="texte"> <?=html_entity_decode(strip_tags($thetheme['description']))?> </div> <? if($cat_theme['photo2']!=""):?> <div class="image_droite"> <img src="uploads/<?=$thetheme['photo2']?>" alt="<?=$thetheme['libelle']?>"/> </div> <? endif;?> </div> <? endif;?> <? if($thetheme['id_parent']==0): ?> <div class="bas"> <div class="theme_header" style="background-image:url('uploads/<?=$cat_theme['photo']?>')"> <h2><?=$trad->t("Main topics","front",$lang->id()); ?></h2> </div> <div class="sub_theme"> <? $sub_themes=$theme->getSubThemes($lang->id(),$thetheme['id_theme']); foreach($sub_themes as $unsoustheme):?> <div class="un_sub_theme" style="border-color:#<?=$cat_theme['couleur']?>"> <a href="<?=$lang->getlang()?>/theme/<?=$unsoustheme['id_theme']."-".cleanUrl($unsoustheme['libelle']).".html"?>"><i style="color:#<?=$cat_theme['couleur']?>" class="fa fa-chevron-right" aria-hidden="true"></i><?=$unsoustheme['libelle']?></a> </div> <? endforeach; ?> </div> </div> <? else: ?> <div class="liste_initiative"> <? $initiatives=$initiative->getListInitiatives($lang->id(),$thetheme['id_theme']); foreach($initiatives as $uneinitiative):?> <div class="une_ini" style="border-color:#<?=$cat_theme['couleur']?>"> <h3><a style="color:#<?=$cat_theme['couleur']?>" href="<?=$lang->getlang()?>/initiative/<?=$uneinitiative['id_initiative']."-".cleanUrl($uneinitiative['titre']).".html"?>"><?=$uneinitiative['titre']?></a></h3> <?=substrwords(strip_tags(html_entity_decode($uneinitiative['description'])),150,'... <a style="color:#'.$cat_theme['couleur'].'" href="'.$lang->getlang().'/initiative/'.$uneinitiative['id_initiative'].'-'.cleanUrl($uneinitiative['titre']).'.html">['.$trad->t("Read more","front",$lang->id()).']</a>');?> </div> <? endforeach; ?> </div> <? endif; ?> </div> <? //affichage du footer include("theme/footer.php"); ?>