Can someone help me; I am trying to open a url on click calling from a data file:
Current part of code calling data shows:



'primary' => $name,
'secondary' => $data['description'],
'image' => $data['image'],
'onclick' => 'alert(\'You clicked on the '.$name.' fruit!\');',
'fill_text' => strtolower($name)



I want to make the ‘onclick’ call the url data which is added in the data file as follows:



'Apple' => array('image' => 'assets/images/fruits/apple.jpg', 'description' => 'One of America\'s favorite fruits.', 'url' => 'http://google.co.uk/'),



Help greatly appreciated