getListTableData();
$goalData = $campaignsData->getGoalData($model);
if ($goalData['goal'] === 0) {
return __('No Goal Set', 'give');
}
$template = '
%3$s%4$s %5$s
';
return sprintf(
$template,
$model->id,
$goalData['percentage'],
$goalData['actualFormatted'],
sprintf(
' %s %s',
__('of', 'give'),
$goalData['goalFormatted']
),
sprintf(
'
%4$s',
apply_filters('givewp_list_table_goal_progress_achieved_opacity', $goalData['percentage'] >= 100 ? 1 : 0),
GIVE_PLUGIN_URL . 'build/assets/dist/images/list-table/star-icon.svg',
__('Goal achieved icon', 'give'),
__('Goal achieved!', 'give')
)
);
}
}