Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/static/js/options/options/ct-title.js
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
import { Fragment, createElement, Component } from '@wordpress/element'
2
+
3
+
const Title = ({
4
+
option: { label = '', desc = '', attr = {}, variation = 'simple' },
5
+
labelEnd = null,
6
+
}) => (
7
+
<Fragment>
8
+
<div
9
+
className="ct-title"
10
+
{...{
11
+
'data-type': variation,
12
+
...(attr || {}),
13
+
}}>
14
+
<h3>
15
+
{label}
16
+
{labelEnd}
17
+
</h3>
18
+
{desc && (
19
+
<div
20
+
className="ct-option-description"
21
+
dangerouslySetInnerHTML={{
22
+
__html: desc,
23
+
}}
24
+
/>
25
+
)}
26
+
</div>
27
+
</Fragment>
28
+
)
29
+
30
+
Title.renderingConfig = { design: 'none' }
31
+
32
+
export default Title
33
+