You are here

function jst_clock_show in Javascript Timer 8

Same name and namespace in other branches
  1. 6 widgets/jst_clock.module \jst_clock_show()
  2. 7 widgets/jst_clock.module \jst_clock_show()
1 string reference to 'jst_clock_show'
jst_clock_jstwidget in widgets/jst_clock.module
Implementation of hook_jstwidget().

File

widgets/jst_clock.module, line 317
Embeddable clock widget (optional).

Code

function jst_clock_show($widget_args) {
  $output = '<span class="jst_clock">';
  $valid_atts = array(
    'clock_type',
    'size',
  );
  foreach ($valid_atts as $att) {
    if (isset($widget_args[$att])) {
      $output .= '<span style="display:none" class="' . $att . '">' . $widget_args[$att] . '</span>';
    }
  }
  $output .= '</span>';
  return $output;
}