Lines Matching refs:data

408  * $data is an array of different header tags. Each tag can have multiple
410 * encoded automatically so they should be provided as is in the $data array.
412 * For tags having a body attribute specify the body data in the special
417 * @param array $data
421 function _tpl_metaheaders_action($data)
424 foreach ($data as $tag => $inst) {
541 * @return bool|string html, or false if no data, true if printed
550 $data = tpl_get_action($type);
551 if ($data === false) {
553 } elseif (!is_array($data)) {
554 $out = sprintf($data, 'button');
562 extract($data);
582 * @return bool|string html or false if no data, true if printed
592 $data = tpl_get_action($type);
593 if ($data === false) {
595 } elseif (!is_array($data)) {
596 $out = sprintf($data, 'link');
606 extract($data);
638 * Check the actions and get data for buttons and links
660 $data = $item->getLegacyData();
667 $data = [
679 $evt = new Event('TPL_ACTION_GET', $data);
683 $data = '[unknown %s type]';
689 return $data;
1075 * @param string $alt alternative output if no data was found
1228 $data = ['url' => ($link ? $url : null), 'params' => $p];
1229 return Event::createAndTrigger('TPL_IMG_DISPLAY', $data, '_tpl_img_action', true);
1235 * @param array $data
1238 function _tpl_img_action($data)
1241 $p = buildAttributes($data['params']);
1243 if ($data['url']) echo '<a href="' . hsc($data['url']) . '" title="' . $lang['mediaview'] . '">';
1245 if ($data['url']) echo '</a>';
1437 $data = ['do' => $do];
1438 $evt = new Event('MEDIAMANAGER_CONTENT_OUTPUT', $data);
1440 $do = $data['do'];
1754 // fetch image data if requested
1924 $data = ['view' => $view, 'items' => $items];
1927 $evt = new Event($hook, $data);
1929 foreach ($evt->data['items'] as $html) echo $html;