html.php
1007 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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' => __('基本模块', 'fl-builder'),
'partial_refresh' => true
));
}
}
/**
* 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' => '19',
'preview' => array(
'type' => 'text',
'selector' => '.fl-html'
)
)
)
)
)
)
));