summaryrefslogtreecommitdiffstats
path: root/views/layouts/default.html.php
blob: e7a26faa8d3390bf1795f5139118ff2456124e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
use \lithium\security\Auth;
?>
<!DOCTYPE html>
<html>
<head>
	<?= $this->html->charset() ?>
	<title>OtakuHub > <?= $this->title()  ?></title>
	<?= $this->html->style(array('style', 'base', 'grid')) ?>
	<?= $this->html->style(array('themes/light', 'themes/green')) ?>
	<?= $this->html->style(array('prettyPhoto')) ?>

	<script src="/js/jquery-1.6.1.min.js" type="text/javascript"></script>
	<?= $this->html->style(array('jquery.tagsinput')) ?>
	<?= $this->html->script("/js/jquery.tagsinput.min.js") ?>

	<script type="text/javascript" >
	function clearDefault(el) {
		if (el.defaultValue == el.value)
			el.value = ""
	}
	function resetValue(el) {
		el.value = "Search..."
	}
	</script>
	<?= $this->html->link('Icon', null, array('type' => 'icon')) ?>
</head>
<header>
	<?php
	$user = Auth::check('default');
	if ($user)
	{
		echo $this->_render('element', 'authnav', compact('user'));
	}
	else
	{
		echo $this->_render('element', 'normalnav', compact('user'));
	}
	?>
	<br class="cl" />
</header>
<div id="page">
  	<?= $this->content() ?>
</div>
<footer>
	<p>Copyright ©2011, <a href="http://www.melenion.org">Melenion Dev Studios</a></p>
	<br class="cl" />
</footer>

<script src="/js/jquery.tools.min.js" type="text/javascript"></script>
<script src="/js/jquery.lightbox-0.5.min.js" type="text/javascript"></script>
<script src="/js/jquery.form.js" type="text/javascript"></script>
<script src="/js/cufon-yui.js" type="text/javascript"></script>
<script src="/js/Aller.font.js" type="text/javascript"></script>
<script src="/js/jquery.tipsy.js" type="text/javascript"></script>
<script src="/js/functions.js" type="text/javascript"></script>
<?= $this->html->script("/js/jquery.anchor.js"); ?>
<?= $this->html->script("/js/jquery.prettyPhoto.js"); ?>

<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>

<?= $this->scripts(); ?>
<script type="text/javascript">
$(document).ready(function() {
	setTimeout(function() {
		$(".flash-message").fadeOut("slow", function () {
			$(".flash-message").remove();
		});
	}, 2000);
});
</script>

<!--[if lt IE 7 ]>
<script src="js/dd_belatedpng.js"></script>
<![endif]-->
</body>
</html>