-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
executable file
·72 lines (59 loc) · 2.24 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
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<div id="sidebar_wrapper">
<div id="sidebar" class="grid_3">
<?php
require('php/gcal/gcalweb.class.php');
$cal = 'a2f';
$gcal = new gCalWeb($cal, array(
'debug' => 0,
'shows' => 'normal',
'numdays' => 14
));
echo $gcal->widgetDisplay_steel();
?>
<h3>Recent Posts</h3>
<?php
//The Query
query_posts('posts_per_page=6&cat=-6&offset=1&ignore_sticky_posts=1'); //cat=-6 to exclude announcements, offset=1 to exclude most recent post, ignore_sticky_post=1 to not show sticky posts
//The Loop
if ( have_posts() ) : while ( have_posts() ) : the_post();
?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>" class="recent-post">
<h4><?php the_title(); ?></h4>
<?php
$thumbnail = getcustom('thumbnail');
if ($thumbnail) {
//echo linktoimage(resizeimage($thumbnail), get_permalink());
echo image(resizeimage($thumbnail));
}
?>
<!-- <div class="cats-comments-bar clearfix">
<ul class="categories">
<?php
// foreach((get_the_category()) as $category) {
// echo '<li class=\'' . $category->cat_name . '\'><a href=\'' . get_category_link($category->cat_ID) . '\' title=\'' . $category->cat_name . '\'> </a></li>';
// }
?>
</ul>
</div> -->
<span href="<?php comments_link(); ?>" class="comments"><span> </span><?php comments_number('0', '1', '%'); ?></span>
</a>
<?php
endwhile; else:
endif;
//Reset Query
wp_reset_query();
?>
<ul id="right-sidebar-widgets">
<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('right_sidebar_widget') ) : ?>
<?php endif; ?>
</ul>
</div><!-- end #sidebar -->
</div><!-- end #sidebar_wrapper -->
<div class="clear"> </div>