--- sections/novosti.inc 2001/06/29 14:12:07 1.2 +++ sections/novosti.inc 2001/11/07 12:09:58 1.6 @@ -2,7 +2,7 @@ include("news_sif.inc"); -$sql_where="where visible is true"; +$sql_where="where $visible_is_true"; if (file_exists(find_html_file("more",$more))) { @@ -23,6 +23,10 @@ $title.=" : Dogotki"; } elseif (strlen($type) == 3) { $sql_where .= " and type='$type'"; + if ($type=="mp_") { + $title.=" : PLIVA Magazin"; + $smarty->assign("mtext","PLIVA Magazin"); + } } } @@ -90,10 +94,16 @@ warning=>$warning )); - $main=$smarty->fetch("novosti.tpl"); if (isset($id) && find_html_file("more",$data[0][more])) { $main=join('',file(find_html_file("more",$data[0][more]))); + } else { + if (! isset($p)) $p="novosti"; + $logo="p/${p}_".$data[0][type].".jpg"; + if (file_exists($logo)) { + $smarty->assign("logo",$logo); + } + $main=$smarty->fetch("$p.tpl"); } @@ -101,4 +111,5 @@ $smarty->assign( array(back_url=>$back_url) ); + ?>