%s @ %s ',
h($alignment['type']),
sprintf(
'%s',
h($alignment['organisation']['id']),
h($alignment['organisation']['name'])
),
sprintf(
"populateAndLoadModal(%s);",
sprintf(
"'/alignments/delete/%s'",
$alignment['id']
)
)
);
}
} else if ($field['scope'] === 'organisations') {
foreach ($extracted['alignments'] as $alignment) {
$alignments .= sprintf(
'',
h($alignment['type']),
sprintf(
'%s',
h($alignment['individual']['id']),
h($alignment['individual']['email'])
),
sprintf(
"populateAndLoadModal(%s);",
sprintf(
"'/alignments/delete/%s'",
$alignment['id']
)
)
);
}
}
echo sprintf(
'%s
',
$alignments,
sprintf(
"populateAndLoadModal('/alignments/add/%s/%s');",
h($field['scope']),
h($extracted['id'])
),
$field['scope'] === 'individuals' ? __('Add organisation') : __('Add individual')
);