summaryrefslogtreecommitdiff
path: root/app/layout/header.phtml
blob: 4131f868798a1879242c2f7dec19bc21d821b918 (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
<?php if (login_is_conf ($this->conf)) { ?>
<ul class="nav nav-head">
	<?php if (!is_logged ()) { ?>
	<li class="item"><i class="icon i_login"></i> <a id="signin" href="#"><?php echo Translate::t ('login'); ?></a></li>
	<?php } else { ?>
	<li class="item"><i class="icon i_logout"></i> <a id="signout" href="#"><?php echo Translate::t ('logout'); ?></a></li>
	<?php } ?>
</ul>
<?php } ?>

<div class="header">
	<div class="item title">
		<h1><a href="<?php echo _url ('index', 'index'); ?>"><?php echo Configuration::title (); ?></a></h1>
		<img class="logo" src="<?php echo Url::display ('/logo.png'); ?>" alt="" />
	</div>

	<div class="item search">
		<form action="<?php echo _url ('index', 'index'); ?>" method="get">
			<div class="stick">
				<?php $search = Request::param ('search', ''); ?>
				<input type="text" name="search" id="search" value="<?php echo $search; ?>" placeholder="<?php echo Translate::t ('search'); ?>" />

				<?php $get = Request::param ('get', ''); ?>
				<?php if($get != '') { ?>
				<input type="hidden" name="get" value="<?php echo $get; ?>" />
				<?php } ?>

				<?php $order = Request::param ('order', ''); ?>
				<?php if($order != '') { ?>
				<input type="hidden" name="order" value="<?php echo $order; ?>" />
				<?php } ?>

				<?php $state = Request::param ('state', ''); ?>
				<?php if($state != '') { ?>
				<input type="hidden" name="state" value="<?php echo $state; ?>" />
				<?php } ?>

				<button class="btn" type="submit"><i class="icon i_search"></i></button>
			</div>
		</form>
	</div>

	<?php if (!login_is_conf ($this->conf) || is_logged ()) { ?>
	<div class="item configure">
		<div class="dropdown">
			<div id="dropdown-configure" class="dropdown-target"></div>

			<a class="btn dropdown-toggle" href="#dropdown-configure"><i class="icon i_configure"></i></a>
			<ul class="dropdown-menu">
				<li class="dropdown-close"><a href="#close"><i class="icon i_close"></i></a></li>
				<li class="dropdown-header"><?php echo Translate::t ('configuration'); ?></li>
				<li class="item"><a href="<?php echo _url ('configure', 'display'); ?>"><?php echo Translate::t ('general_and_reading'); ?></a></li>
				<li class="item"><a href="<?php echo _url ('configure', 'categorize'); ?>"><?php echo Translate::t ('categories'); ?></a></li>
				<li class="item"><a href="<?php echo _url ('configure', 'shortcut'); ?>"><?php echo Translate::t ('shortcuts'); ?></a></li>
				<li class="separator"></li>
				<li class="item"><a href="<?php echo _url ('index', 'about'); ?>"><?php echo Translate::t ('about'); ?></a></li>
				<li class="item"><a href="<?php echo _url ('index', 'logs'); ?>"><?php echo Translate::t ('logs'); ?></a></li>
			</ul>
		</div>
	</div>
	<?php } ?>
</div>