<?php
$static = true;
$template = 'ortaalt';
$cat[] = 'analiz-audusd';
$cat[] = 'analiz-euraud';
$cat[] = 'News';
$nppage='6';
include 'haber/index.php';
?>
if($row['short']){
$str = str_replace("{shortstory}",bbcode($row['shortstory'],$usehtml),$str);
$str = str_replace("{story}","",$str);
if($row[catid]==4){
[color=red]$_SESSION['prefix'] = '/analizler/';[/color] }
if($friendly){
$str = str_replace("[readmore]","<a class=\"devam\" href=\"$_SESSION[prefix]$row[id]/" . makefriendly($row[title]) . "\">",$str);
}else{
$str = str_replace("[readmore]","<a class=\"devam\" href=\"?$linkprefix" . "id=$row[id]\">",$str);
}
<?php
if(is_array($current_cats)){
if(in_array('3', $current_cats)){ // 3 is the id of your category
//do something
}else{
//do something else
}
}
?>
<?php
if(is_array($current_cats)){
if(in_array('14', $current_cats)){
$_SESSION['prefix'] = '/analizler/';
}else{
$_SESSION['prefix'] = '/haber/';
} }
if($friendly){
$str = str_replace("[readmore]","<a class=\"devam\" href=\"$_SESSION[prefix]$row[id]/" . makefriendly($row[title]) . "\">",$str);
}else{
$str = str_replace("[readmore]","<a class=\"devam\" href=\"?$linkprefix" . "id=$row[id]\">",$str);
}
$str = str_replace("[/readmore]","</a>",$str);
?>
<?php
if(is_array($current_cats)){
if(in_array('analizler', $current_cats)){ // analizler is the name of the category
//do something
}else{
//do something else
}
}
?>