Version 5.0.0 beta 9

This commit is contained in:
Neo committed 2025-12-19 17:47:00 -08:00
1 parent 214f649f1d
commit 56979f8ee8
202 files changed
+4403 -1123

No files matched your search

@@ -27,6 +27,7 @@ use IPS\Member;
use IPS\Node\Controller;
use IPS\Node\Model;
use IPS\Output;
use IPS\Platform\Bridge;
use IPS\Request;
use IPS\Session;
use IPS\Theme;
@@ -149,13 +150,20 @@ class blocks extends Controller
Dispatcher::i()->checkAcpPermission( 'block_add' );
$form = new Form( 'block_add_first_step', 'next');
$blockTypes = [
'plugin' => 'content_block_add_type_plugin',
'editor' => 'content_block_add_custom_type_wysiwyg',
'html' => 'content_block_add_custom_type_html',
];
if( Bridge::i()->featureIsEnabled( 'phpblocks' ) )
{
$blockTypes['php'] = 'content_block_add_custom_type_php';
}
$form->add( new Radio( 'content_block_add_type', 'plugin', FALSE, array(
'options' => array(
'plugin' => 'content_block_add_type_plugin',
'editor' => 'content_block_add_custom_type_wysiwyg',
'html' => 'content_block_add_custom_type_html',
),
'options' => $blockTypes,
'toggles' => array(
'plugin' => array( 'content_block_add_type_plugin' )
)