jrCore_is_mobile_device() in module listener
Jamroom Developers
**UPDATE**
I am getting closer!
I have registered my listener:
jrCore_register_event_listener('jrImage', 'img_src', 'myModule_img_src_listener');
And my function is successfully listening for the event.
Now, I need to run my smarty_function instead. How can I make it run in order to produce the $_data output?
function myModule_img_src_listener($_data, $_user, $_conf, $_args, $event)
{
if(jrCore_is_mobile_device()){
$_data['src'] = '//HOW DO I RUN MY SMARTY_FUNCTION HERE?//';
}
return $_data;
}
THANKS
updated by @the-patria-company: 12/20/18 08:35:37AM