| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Calendar |
| 4 |
Plugin URI: http://www.kieranoshea.com/programming |
| 5 |
Description: This plugin allows you to display a calendar of all your events an\d appointments as a page on your site. |
| 6 |
Author: Kieran O'Shea |
| 7 |
Version: 1.1.2 |
| 8 |
Author URI: http://www.kieranoshea.com |
| 9 |
*/ |
| 10 |
|
| 11 |
// Require the standard WordPress header |
| 12 |
require(dirname(__FILE__).'/wp-blog-header.php'); |
| 13 |
|
| 14 |
// Begin content of page |
| 15 |
|
| 16 |
get_header(); |
| 17 |
?> |
| 18 |
|
| 19 |
<style type="text/css"> |
| 20 |
span.calnk a { |
| 21 |
text-decoration:none; |
| 22 |
color:#000000; |
| 23 |
border-bottom:1px dotted #000000; |
| 24 |
} |
| 25 |
span.calnk a:hover { |
| 26 |
text-decoration:none; |
| 27 |
color:#000000; |
| 28 |
border-bottom:1px dotted #000000; |
| 29 |
} |
| 30 |
span.calnk { |
| 31 |
position:relative; |
| 32 |
} |
| 33 |
span.calnk a span { |
| 34 |
display:none; |
| 35 |
} |
| 36 |
span.calnk a:hover span { |
| 37 |
color:#333333; |
| 38 |
background:#F6F79B; |
| 39 |
display:block; |
| 40 |
position:absolute; |
| 41 |
margin-top:1px; |
| 42 |
padding:5px; |
| 43 |
width:150px; |
| 44 |
z-index:100; |
| 45 |
} |
| 46 |
</style> |
| 47 |
|
| 48 |
<h2>Calendar</h2> |
| 49 |
|
| 50 |
<?php echo calendar(); ?> |
| 51 |
|
| 52 |
<?php get_sidebar(); ?> |
| 53 |
<?php get_footer(); ?> |
| 54 |
|