/[drupal]/contributions/modules/countdown/countdown.tpl.php
ViewVC logotype

Diff of /contributions/modules/countdown/countdown.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Mon May 12 13:36:55 2008 UTC revision 1.1.2.1, Mon May 12 15:29:47 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: countdown.tpl.php,v 1.2 2008/05/12 15:28:25 deekayen Exp $
3    
4  /**  /**
5   * @file countdown.tpl.php   * @file countdown.tpl.php
# Line 36  if ($accuracy == 's') { Line 36  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', '')));  print t(($passed) ? ' since %s.' : ' until %s.', array('%s' => variable_get('countdown_event_name', '')));
39    
40    if ($accuracy != 'd') {
41      $path = drupal_get_path('module', 'countdown');
42      drupal_add_js($path .'/countdown.js');
43    
44      print <<<___EOS___
45    <script type="text/javascript"><!--
46      init_countdown('$accuracy');
47    // --></script>
48    ___EOS___;
49    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2