From de5f76253c04c4d69f6afff83e45bf543cdbeb92 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 30 Mar 2006 15:09:11 +0000 Subject: [PATCH] =?UTF-8?q?d=E9but=20ajout=20possibilit=E9=20de=20d=E9term?= =?UTF-8?q?iner=20si=20le=20contenu=20d'une=20cat=E9gorie=20sera=20visible?= =?UTF-8?q?=20ou=20=20non=20dans=20la=20liste=20des=20produits/services,?= =?UTF-8?q?=20ceci=20afin=20de=20pouvoir=20cacher=20les=20sous-produits=20?= =?UTF-8?q?=20par=20exemple.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/categories/index.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index 20beb61372a..e519f801bd4 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -100,7 +100,7 @@ $cats = $c->get_main_categories (); if ($cats != -1) { print ''; - print ''; + print ''; foreach ($cats as $cat) { @@ -108,6 +108,16 @@ if ($cats != -1) print "\t\n"; print "\t\t\n"; print "\t\t\n"; + + if ($cat->visible == 1) + { + print "\t\t\n"; + } + else + { + print "\t\t\n"; + } + print "\t\n"; } print "
'.$langs->trans("MainCats").'
'.$langs->trans("MainCats").'
".$cat->label."".$cat->description."".$langs->trans("ContentsVisibleByAllShort")."".$langs->trans("ContentsNoVisibleByAllShort")."
";