Updated shortcodes for unsubscribe/manage/browser links
- fixed all issues in #387 except the custom mailpoet pages
This commit is contained in:
@@ -112,4 +112,17 @@ abstract class Base {
|
||||
&& strlen(trim($block['params']['value'])) > 0)
|
||||
? esc_attr(trim($block['params']['value'])) : '';
|
||||
}
|
||||
|
||||
protected static function getInputModifiers($block = array()) {
|
||||
$modifiers = array();
|
||||
|
||||
if(isset($block['params']['readonly'])) {
|
||||
$modifiers[] = 'readonly';
|
||||
}
|
||||
|
||||
if(isset($block['params']['disabled'])) {
|
||||
$modifiers[] = 'disabled';
|
||||
}
|
||||
return join(' ', $modifiers);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user