-
Notifications
You must be signed in to change notification settings - Fork 1
/
sidebar.php
83 lines (76 loc) 路 2.55 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
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
<div class="wrapper">
<div class="ui-body ui-body-f">
<div data-role="collapsible" data-theme="c">
<h3>Pages</h3>
<ul data-role="listview" data-inset="true" data-theme="d">
<?php wp_list_pages('title_li=&depth=1'); ?>
</ul>
</div>
</div>
</div>
<!--
<div class="wrapper">
<div class="ui-body ui-body-f">
<div data-role="collapsible" data-state="collapsed" data-theme="c">
<h3>Archive</h3>
<ul data-role="listview" data-inset="true" data-theme="d">
<?php wp_get_archives('type=monthly'); ?>
</ul>
</div>
</div>
</div>
-->
<!--
<div class="wrapper">
<div class="ui-body ui-body-f">
<div data-role="collapsible" data-state="collapsed" data-theme="c">
<h3>Categories</h3>
<ul data-role="listview" data-inset="true" data-theme="d">
<?php wp_list_categories('show_count=1&title_li=&depth=1'); ?>
</ul>
</div>
</div>
</div>
-->
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<div class="wrapper">
<div class="ui-body ui-body-f">
<div data-role="collapsible" data-theme="c">
<h3>Reach out</h3>
<ul data-role="listview" data-inset="true" data-theme="d">
<?php wp_list_bookmarks(array('title_li'=>'','categorize'=>0)); ?>
</ul>
</div><!-- /collapsible -->
</div><!-- /themed container -->
</div>
<!--
<div class="wrapper">
<div class="ui-body ui-body-f">
<div data-role="collapsible" data-state="collapsed" data-theme="c">
<h3>Meta</h3>
<ul data-role="listview" data-inset="true" data-theme="d">
<?php
if(is_user_logged_in()){
$register = wp_register('','',false);
if(strlen($register) > 0)
echo "<li><a href='/wp-admin/' rel='external'>Site Admin</a></li>\n";
echo "<li><a href='".wp_logout_url()."' rel='external'>Logout</a></li>\n";
}else{
$register = wp_register('','',false);
if(strlen($register) > 0)
echo "<li><a href='/wp-login.php?action=register' rel='external'>Register</a></li>\n";
echo "<li><a href='".wp_login_url()."' rel='external'>Login</a></li>\n";
}
?>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</div>
</div>
</div>
-->
<?php } ?>
<?php endif; ?>