Swaiba,
I mentioned your name because you previously posted code similar to what I need. Someone asked how to display content on a certain day. How can I modify your answer to display content at a certain time, such as 7:00 PM?
Your answer to displaying content on a certain day:
public function Content() {
$content = $this->getField('Content');
if (date('N')==1) { //if Monday
$content = 'It is Monday you get this string instead';
}
return $content;
}
Brandon