Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Countdown
<?php
class Plugin_Journey extends Plugin {
var $meta = array(
'name' => 'Journey',
'version' => '1.0',
'author' => 'Philip Meissner of Creative Loupe',
'author_url' => 'http://lou.pe'
);
public function countdown()
{
$start_date = $this->fetchParam('start', 0);
$now = time();
$your_date = strtotime($start_date);
$result = $your_date - $now;
return $result;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.