This repository has been archived by the owner on Mar 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
/
sidebar.php
52 lines (50 loc) · 1.81 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
</div><!-- #container -->
<?php wp_reset_query() ?>
<div id="primary" class="aside main-aside sidebar">
<?php arras_above_sidebar() ?>
<ul class="xoxo">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Primary Sidebar') ) : ?>
<li class="widgetcontainer clearfix">
<h5 class="widgettitle"><?php _e('Welcome to Arras!', 'arras') ?></h5>
<div class="widgetcontent">
<div class="textwidget">
<p><?php _e('Arras is a WordPress theme designed for news or review sites with lots of customisable features.', 'arras') ?></p>
</div>
</div>
</li>
<li class="widgetcontainer clearfix">
<h5 class="widgettitle"><?php _e('Recent Posts', 'arras') ?></h5>
<div class="widgetcontent">
<?php
$r = new WP_Query(array('showposts' => 10, 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1));
if ($r->have_posts()) :
?>
<ul>
<?php while ($r->have_posts()) : $r->the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></li>
<?php endwhile ?>
</ul>
<?php
wp_reset_query();
endif;
?>
</div>
</li>
<li class="widgetcontainer clearfix">
<h5 class="widgettitle"><?php _e('Tag Cloud', 'arras') ?></h5>
<div class="tags widgetcontent">
<?php wp_tag_cloud(); ?>
</div>
</li>
<?php endif; ?>
</ul>
</div><!-- #primary -->
<div id="secondary" class="aside main-aside sidebar">
<ul class="xoxo">
<!-- Widgetized sidebar, if you have the plugin installed. -->
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Secondary Sidebar #1') ) : ?>
<li></li>
<?php endif; ?>
</ul>
<?php arras_below_sidebar() ?>
</div><!-- #secondary -->