$location_e = $location;
- $photo_menu = array(
- 'profile' => array(t("View Profile"), Profile::zrl($profile_link))
- );
+ $photo_menu = [
+ 'profile' => [t("View Profile"), Profile::zrl($profile_link)]
+ ];
- $entry = array(
+ $entry = [
'id' => $rr['id'],
'url' => $profile_link,
'itemurl' => $itemurl,
'about' => $about,
'photo_menu' => $photo_menu,
- );
+ ];
- $arr = array('contact' => $rr, 'entry' => $entry);
+ $arr = ['contact' => $rr, 'entry' => $entry];
call_hooks('directory_item', $arr);
$tpl = get_markup_template('directory_header.tpl');
- $o .= replace_macros($tpl, array(
+ $o .= replace_macros($tpl, [
'$search' => $search,
'$globaldir' => t('Global Directory'),
'$gdirpath' => $gdirpath,
'$title' => t('Site Directory'),
'$submit' => t('Find'),
'$paginate' => paginate($a),
- ));
+ ]);
}
else