| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- * @class FLHtmlModule
- */
- class FLHtmlModule extends FLBuilderModule {
- /**
- * @method __construct
- */
- public function __construct() {
- parent::__construct(array(
- 'name' => __( 'HTML', 'fl-builder' ),
- 'description' => __( 'Display raw HTML code.', 'fl-builder' ),
- 'category' => __( 'Basic', 'fl-builder' ),
- 'partial_refresh' => true,
- 'icon' => 'editor-code.svg',
- ));
- }
- }
- /**
- * Register the module and its form settings.
- */
- FLBuilder::register_module('FLHtmlModule', array(
- 'general' => array(
- 'title' => __( 'General', 'fl-builder' ),
- 'sections' => array(
- 'general' => array(
- 'title' => '',
- 'fields' => array(
- 'html' => array(
- 'type' => 'code',
- 'editor' => 'html',
- 'label' => '',
- 'rows' => '18',
- 'preview' => array(
- 'type' => 'text',
- 'selector' => '.fl-html',
- ),
- 'connections' => array( 'html', 'string', 'url' ),
- ),
- ),
- ),
- ),
- ),
- ));
|