-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsidebar.php
executable file
·85 lines (74 loc) · 3.18 KB
/
sidebar.php
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
82
83
84
85
<?php
/*
Copyright (C) 2009 Fabio Mattei
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
?>
<div id="sidebar">
<ul id="sidebarwidgeted">
<li id="Search">
<h5>Search</h5>
<form id="searchform" method="post" action="<?= URIMaker::result() ?>">
<input type="text" name="s" id="s" size="30" value="search this site..."/>
<input type="submit" value="Search" name="Search" />
</form>
</li>
<li id="Rssfeed">
<a href="<?= URIMaker::rssFeed()?>"><img src="<?= URIMaker::fromBasePath('contents/templates/skeleton/images/rss-icon.png') ?>"> RSS Feed</a>
</li>
<li id="Number">
<h5><?= $this->number->getTitle() ?></h5>
<h6><?= $this->number->getSubtitle() ?></h6>
<div id="numberDescription">
<? if ($this->number->imageExists()) : ?>
<div id="image">
<img src="<?= URIMaker::fromBasePath($this->number->imagePath()) ?>" width="200" alt="<?= $this->number->getImgAlt()?>">
<? if ($this->number->getImgCaption() != ''): ?>
<div id="caption">
<?= $this->number->getImgCaption() ?>
</div>
<? endif; ?>
</div>
<? endif; ?>
<?= $this->number->getSummary() ?>
</div>
<? if ($this->number->epubExists()) : ?>
<div id="epub">
<a href="<?= URIMaker::fromBasePath($this->number->epubPath()) ?>">Download Epub</a>
</div>
<? endif; ?>
</li>
<li id="Numbers">
<h5>Last Numbers</h5>
<ul>
<? foreach ($this->numbers as $num) : ?>
<li><a href="<?= URIMaker::number($num) ?>"><?= $num->getTitle() ?></a></li>
<? endforeach; ?>
</ul>
</li>
<li id="Categories">
<h5>Categories</h5>
<ul>
<? foreach ($this->categories as $cat) : ?>
<li><a href="<?= URIMaker::category($cat) ?>"><?= $cat->getName() ?></a></li>
<? endforeach; ?>
</ul>
</li>
<li id="Admin">
<h5>Admin</h5>
<ul>
<li><a href="<?= URIMaker::loginPage() ?>">Login</a></li>
<li><a href="http://www.easymagazine.org/">Easy Magazine</a></li>
</ul>
</li>
</ul>
</div>