clipbucket/upload/includes/active.php
Arslan Hassan 280d287981 Added : Playlist System
Added : Ajax System
Added : Ajax comments
Added : New rating
Added : Ajax Add to favorites
Added : Ajax share this
Added : Ajax Flag Video
Added : new watch video page
Added : New ClipBucket V2 Template
2009-11-30 19:46:45 +00:00

32 lines
No EOL
580 B
PHP

<?php
if(defined("THIS_PAGE"))
$this_page = THIS_PAGE;
else
$this_page = "home";
if(defined("PARENT_PAGE"))
$parent_page = PARENT_PAGE;
else
$parent_page = "home";
assign("this_page",$this_page);
assign("parent_page",$parent_page);
function current_page($params)
{
global $this_page,$parent_page;
$page = $params['page'];
$class = $params['class'];
if($class =='')
$class = "selected";
if($page==$parent_page)
return ' class="'.$class.'" ';
else
return false;
}
$Smarty->register_function('current_page','current_page');
?>