Je cherche à afficher un sous titre (unique sous forme de texte) s'il n'y a pas de catégorie ni de type à afficher.
Je pensais à mettre un "else" après "echo $pst;" mais la syntaxe et moi. :?
Code:
<?php $pst=get_cat_path_links_full_wrap($catid, "index.php?option=com_classifieds&Itemid=".$Itemid."&searchadv=".$searchadv."&type=".$type."&catid="," > ");
// Affiche la catégorie et le type
$pst2=get_cat_path_links_full_wrap2($catid, "");
echo $lists['typename'];
if ($type && $catid);
echo $pst;
//Affiche le titre
$tmp_title = _OGL_COMPONENT_TITLE;
if ($pst2) $tmp_title .= $pst2;
if ($searchadv!="" && $searchadv!=_SEARCH_BOX) {
$searchadv = str_replace("<!--","",$searchadv) ;
$searchadv = str_replace("+ADw-","",$searchadv) ;
$searchadv = str_replace("+AD4-","",$searchadv) ;
$tmp_title .= " - "._PROMPT_KEYWORD." : ".$searchadv;
}
$canSetTitle = array($mainframe, 'SetPageTitle');
if (is_callable($canSetTitle)) $mainframe->SetPageTitle($tmp_title);
?>
Je pensais à mettre un "else" après "echo $pst;" mais la syntaxe et moi. :?