Hi there,

When I add the php code examples from the readme to a views template file, they don't work.

I get an error : Notice: Undefined index: render element in theme() (line 824 of C:\xampp\shop\includes\theme.inc).

Where the count should display, it comes up with "Widget Array not found" .

Any ideas what's up with that?

Comments

jvandervort’s picture

Looks like the documentation is out of date.
Try using something like this:

<?php
print theme('jstimer', array(
  'widget_name' => 'jst_timer',
  'widget_args' => array(
    'datetime' => '2015-05-02T08:11:00-08:00'
  )
));
?>
jvandervort’s picture

Status: Active » Fixed

Updated docs in dev.

tripper54’s picture

nice one, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.