Version 5.0.14
This commit is contained in:
1 parent
5efe744c5f
commit
dbd774b30c
364 files changed
+7048
-1377
No files matched your search
@@ -71,6 +71,11 @@ class Codemirror extends Widget
|
||||
{
|
||||
$form = parent::configuration( $form );
|
||||
|
||||
if( !Dispatcher::i()->checkAcpPermission( 'theme_sets_manage', 'core', Module::get( 'core', 'customization', 'admin' ), true ) )
|
||||
{
|
||||
return $form;
|
||||
}
|
||||
|
||||
$form->add(
|
||||
new Form\TextArea(
|
||||
'content',
|
||||
@@ -111,6 +116,11 @@ class Codemirror extends Widget
|
||||
*/
|
||||
public function preConfig( array $values=array() ) : array
|
||||
{
|
||||
if( !array_key_exists( 'content', $values ) )
|
||||
{
|
||||
$values['content'] = $this->configuration['content'];
|
||||
}
|
||||
|
||||
$functionName = 'content_widget_' . $this->uniqueKey;
|
||||
if ( isset( Store::i()->$functionName ) )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user