-
Notifications
You must be signed in to change notification settings - Fork 2
/
inc_sidebar.php
executable file
·130 lines (116 loc) · 4.19 KB
/
inc_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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<div class="sidebar">
<?php $x = 0; ?>
<?php if (getOption('allow_search')) { ?>
<div class="bloque<?php echo ($x % 2) + 1 ; $x = $x + 1; ?>">
<h3><?php echo gettext('Search'); ?></h3>
<?php printSearchForm('', 'search', '', gettext('Search'), "$_zp_themeroot/images/search-drop.png", NULL, NULL,"$_zp_themeroot/images/reset.gif" ); ?>
</div>
<?php } ?>
<?php if (extensionEnabled('print_album_menu')) { ?>
<div class="bloque<?php echo ($x % 2) + 1; $x = $x + 1; ?>">
<h3><?php if (getGalleryTitle() <> NULL) {echo html_encode(getGalleryTitle()); } else {echo gettext('Gallery'); }; ?></h3>
<ul><li>
<?php printCustomPageURL(gettext('Gallery Index'), 'gallery'); /* Album index */ ?>
</li></ul>
<?php printAlbumMenu('list', false, '', 'menu-active', 'submenu', 'menu-active', '', false, false); ?>
</div>
<?php } ?>
<?php if ($_zenpage_and_news_enabled && (getNumNews(true) > 0)) { ?>
<div class="bloque<?php echo ($x % 2) + 1; $x = $x + 1; ?>">
<h3><?php echo gettext('News articles'); ?></h3>
<?php printAllNewsCategories(gettext('All news'), true, 'news-cat-list', 'menu-active'); ?>
</div>
<?php } ?>
<?php if ($_zenpage_and_pages_enabled && (getNumPages(true) > 0)) { ?>
<div class="bloque<?php echo ($x % 2) + 1; $x = $x + 1; ?>">
<h3><?php echo gettext('Pages'); ?></h3>
<?php printPageMenu('list', '', 'menu-active', 'submenu', 'menu-active'); ?>
</div>
<?php } ?>
<?php if (getOption('show_random_pict')) { ?>
<div class="bloque<?php echo ($x % 2) + 1; $x = $x + 1; ?>">
<h3><?php echo gettext('Random picture...'); ?></h3>
<div class="random-pict">
<?php printRandomImages(1, NULL, 'all', '', 200, 200, false); ?>
</div>
</div>
<?php } ?>
<?php if (getOption('show_tag_cloud')) {
$tags = getAllTagsCount();
if (is_array($tags) && (array_sum($tags) != 0)) { ?>
<div class="bloque<?php echo ($x % 2) + 1; $x = $x + 1; ?>">
<h3><?php echo gettext('Tags'); ?></h3>
<div class="tags-cloud">
<?php printAllTagsAs('cloud', 'hor-list', 'abc', false, true, 2.5, 30, 2, NULL, 0.8); ?>
</div>
</div>
<?php } ?>
<?php } ?>
<?php if (getOption('show_archive')) { ?>
<div class="bloque<?php echo ($x % 2) + 1; $x = $x + 1; ?>">
<h3><?php echo gettext('Archive View'); ?></h3>
<ul>
<?php
if ($_zp_gallery_page == 'archive.php') {
if ($_zenpage_and_news_enabled) {
echo '<li class="menu-active">'.gettext('Gallery And News').'</li>';
} else {
echo '<li class="menu-active">'.gettext('Gallery').'</li>';
}
} else {
if ($_zenpage_and_news_enabled) {
echo "<li>"; printCustomPageURL(gettext('Gallery and News'), 'archive'); echo "</li>";
} else {
echo "<li>"; printCustomPageURL(gettext('Gallery'), 'archive'); echo "</li>";
}
}
?>
</ul>
</div>
<?php } ?>
<?php if (extensionEnabled('contact_form')) { ?>
<div class="bloque<?php echo ($x % 2) + 1; $x = $x + 1; ?>">
<h3><?php echo gettext('Contact'); ?></h3>
<ul>
<?php
if ($_zp_gallery_page == 'contact.php') {
echo '<li class="menu-active">'.gettext('Contact us').'</li>';
} else {
echo '<li>'; printCustomPageURL(gettext('Contact'), 'contact'); echo '</li>';
}
?>
</ul>
</div>
<?php } ?>
<?php if (extensionEnabled('user_login-out')) { ?>
<div class="bloque<?php echo ($x % 2) + 1; $x = $x + 1; ?>">
<h3><?php echo gettext('user'); ?></h3>
<?php if ($_zp_gallery_page != 'register.php') {?>
<ul>
<li><?php printUserLogin_out('', '', 2); ?></li>
</ul>
<?php } ?>
<?php if ((!zp_loggedin()) && (extensionEnabled('register_user'))) { ?>
<ul>
<li>
<?php
if ($_zp_gallery_page != 'register.php') {
printCustomPageURL(gettext('Register for this site'), 'register', '', '');
} else {
echo gettext('Register for this site');
}
?>
</li>
</ul>
<?php } ?>
<?php if ((zp_loggedin()) && (extensionEnabled('favoritesHandler'))) { ?>
<ul>
<li>
<?php printFavoritesURL(); ?>
</li>
</ul>
<?php } ?>
</div>
<?php } ?>
</div> <!-- sidebar -->
<div class="clearfix"></div>