Closed Jako closed 9 years ago
$theme = $modx->getOption('ncTheme', $scriptProperties, '');
instead of
$theme = $hook->formit->config['ncTheme'] ?: 'light';
Will get the properties of the specific FormIt call … This way you could use different settings for different FormIt calls.
$xxx = $modx->getOption('xxx', null, $modx->getOption('xxx', $scriptProperties, ''));
Will first try to get the options from system/context setting and if not set from Snippet parameter (in this case FormIt).
Fixed this as well
instead of
Will get the properties of the specific FormIt call … This way you could use different settings for different FormIt calls.
Will first try to get the options from system/context setting and if not set from Snippet parameter (in this case FormIt).