View file header.php

File size: 890B
<?php
/*
Project Name: Next Auto Index
Project URI: http://wapindex.mirazmac.info
Project Version: 1.0
Licence: GPL v3
*/
## This is a modified version of Master Autoindex. So all source rights goes to ionutvmi ##

$plugins->run_hook("header_top");

if(!$title)
	$title = strip_tags(end($links));


$title = $title." - ". $set->name;
$logo = empty($set->logo) ? $set->name : "<img src='$set->logo' alt='logo'>";

// $links should be defined in inc/init.php as an array
if(is_array($links))
	foreach($links as $link)
		$_links .= $link." ";
		if(empty($link)){$hide_links='<style>.links{display:none}</style>';}

$tpl->grab('header.tpl','header');
$tpl->assign('title',$title);
$tpl->assign('hide_links',$hide_links);
$tpl->assign('logo',$logo);
$tpl->assign('url',$set->url);
$tpl->assign('links',$_links);
$tpl->display();

$plugins->run_hook("header_end");