new pricing
This commit is contained in:
@@ -591,6 +591,43 @@
|
||||
save: function () { return null; }
|
||||
});
|
||||
|
||||
/* 5b. CTA INLINE ──────────────────────────────────────────────────────── */
|
||||
reg('oribi/cta-inline', {
|
||||
title: 'Oribi CTA Inline',
|
||||
icon: 'minus',
|
||||
category: 'oribi',
|
||||
supports: { align: ['full'], html: false },
|
||||
attributes: {
|
||||
align: { type: 'string', default: 'full' },
|
||||
heading: { type: 'string', default: '' },
|
||||
text: { type: 'string', default: '' },
|
||||
btnText: { type: 'string', default: '' },
|
||||
btnUrl: { type: 'string', default: '' },
|
||||
},
|
||||
edit: function (props) {
|
||||
var a = props.attributes, s = props.setAttributes;
|
||||
return el(Frag, null,
|
||||
el(IC, null,
|
||||
el(PB, { title: 'Button' },
|
||||
el(TC, { label: 'URL', value: a.btnUrl, onChange: function (v) { s({ btnUrl: v }); } })
|
||||
)
|
||||
),
|
||||
el('section', { className: 'cta-inline' },
|
||||
el('div', { className: 'container' },
|
||||
el('div', { className: 'cta-inline__inner' },
|
||||
el('div', { className: 'cta-inline__body' },
|
||||
el(RT, { tagName: 'h2', className: 'cta-inline__heading', value: a.heading, onChange: function (v) { s({ heading: v }); }, placeholder: 'CTA heading...' }),
|
||||
el(RT, { tagName: 'p', className: 'cta-inline__text', value: a.text, onChange: function (v) { s({ text: v }); }, placeholder: 'Supporting text...' })
|
||||
),
|
||||
el(RT, { tagName: 'span', className: 'btn btn-primary', value: a.btnText, onChange: function (v) { s({ btnText: v }); }, placeholder: 'Button text...' })
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
},
|
||||
save: function () { return null; }
|
||||
});
|
||||
|
||||
/* 6. INTRO SECTION ────────────────────────────────────────────────────── */
|
||||
reg('oribi/intro-section', {
|
||||
title: 'Oribi Intro Section',
|
||||
|
||||
Reference in New Issue
Block a user