Código PHP:
if ( !defined( 'in_web' ) ) exit( 'Stop here !!!!!' );
unset($module);
$module["page"] = $In->get("page",0,"home");
$module["text"] = menu_top();
function menu_top()
{
global $conf,$skn,$Url,$module;
$skn->set_file("menu_top","menu/menu_top.html");
$skn->set_block("menu_top","block_row","block_row");
//$arr = array("home"=>"TRANG CHỦ");
$arr = array("home"=>"Principal");
$html = null;
foreach ($arr as $key=>$value)
{
$skn->set_var("item_link",$Url->build_page(array("page"=>$key)));
//$skn->set_var("item_link","index.php?page=home");
$skn->set_var("item_key",$key);
if ($key == $module['page'])
$skn->set_var("item_name","<strong>$value</strong>");
else
$skn->set_var("item_name",$value);
$skn->set_var("singer_link",$Url->build(array("page"=>"music","do"=>"singer")));
$skn->set_var("album_link",$Url->build(array("page"=>"music","do"=>"album")));
$skn->set_var("new_song_link",$Url->build(array("page"=>"music","do"=>"new")));
$skn->set_var("hot_song_link",$Url->build(array("page"=>"music","do"=>"hot")));
$html.= $skn->output("menu_top");
}
$skn->set_var("block_row",$html);
$html = $skn->output("menu_top");
$skn->vreset();
return $html;
}
$Out->PrintModule($module["text"]);
?>
Código PHP:
//$arr = array("home"=>"TRANG CHỦ");
$arr = array("home"=>"Principal");
Código PHP:
<a href="estrenos-online.net/foro/index.php ">Foro</a>