| 1 |
<?php |
<?php |
| 2 |
// $Id: countdown.tpl.php,v 1.2 2008/05/12 15:28:25 deekayen Exp $ |
// $Id: countdown.tpl.php,v 1.1.2.1 2008/05/12 15:29:47 deekayen Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file countdown.tpl.php |
* @file countdown.tpl.php |
| 35 |
if ($accuracy == 's') { |
if ($accuracy == 's') { |
| 36 |
print t(', %i seconds', array('%i' => $secs_left)); |
print t(', %i seconds', array('%i' => $secs_left)); |
| 37 |
} |
} |
| 38 |
print t(($passed) ? ' since %s.' : ' until %s.', array('%s' => variable_get('countdown_event_name', ''))); |
|
| 39 |
|
$event_name = variable_get('countdown_event_name', ''); |
| 40 |
|
$url = variable_get('countdown_url', ''); |
| 41 |
|
$event_name = empty($url) || $url == 'http://' ? $event_name : l($event_name, $url, array('absolute' => TRUE)); |
| 42 |
|
|
| 43 |
|
print t(($passed) ? ' since !s.' : ' until !s.', array('!s' => $event_name)); |
| 44 |
|
|
| 45 |
if ($accuracy != 'd') { |
if ($accuracy != 'd') { |
| 46 |
$path = drupal_get_path('module', 'countdown'); |
$path = drupal_get_path('module', 'countdown'); |