Here, I made one that has multiple date support.
<?php
/*
@block Show Days
@author Rhode Fey (Sayaka Maizono)
*/
/*
Usage:
fill $dates array with arrays of the following:
array('month' => integer, 'day' => integer),
Example:
array('month' => 11, 'day' => 26),
array('month' => 11, 'day' => 26),
This will show only on November 26 and November 27
*/
$dates = array(
array('month'=> 11, 'day' => 26),
array('month'=> 11, 'day' => 27),
array('month'=> 11, 'day' => 28),
);
/*
*
*/
global $user_info;
$time = time() + ($user_info['time_offset'] * 3600);
$current_date = array('month' => (int) date('m', $time), 'day' => (int) date('d', $time));
$show = false;
foreach ($dates as $k => $date)
{
if (empty($date))
continue;
if ($date['month'] == $current_date['month'] && $date['day'] == $current_date['day'])
{
$show = true;
continue;
}
}
if ($show)
{
echo '
Some html if you want to show if it is the date.';
}
else
{
echo '
Some html that you want to show if it is not the date.';
}
?>