var el = wp.element.createElement, registerBlockType = wp.blocks.registerBlockType, withSelect = wp.data.withSelect; /** * Block for student registration * */ registerBlockType('tutor-gutenberg/student-registration', { title: 'Student Registration', icon: 'welcome-learn-more', category: 'tutor', edit: function (props) { var dataHtml; jQuery.ajax({ url: ajaxurl, type: 'POST', async: false, data: { shortcode: 'tutor_student_registration_form', action: 'render_block_tutor' }, success: function (response) { dataHtml = response.data; }, }); return el('div', { dangerouslySetInnerHTML: { __html: dataHtml } }) }, save: function () { return null; //return el( 'div', { }, '[tutor_student_registration_form]' ); }, }); /** * Block for instructor registration * */ registerBlockType('tutor-gutenberg/instructor-registration', { title: 'Instructor Registration', icon: 'welcome-learn-more', category: 'tutor', edit: function (props) { var dataHtml; jQuery.ajax({ url: ajaxurl, type: 'POST', async: false, data: { shortcode: 'tutor_instructor_registration_form', action: 'render_block_tutor' }, success: function (response) { dataHtml = response.data; }, }); return el('div', { dangerouslySetInnerHTML: { __html: dataHtml } }) }, save: function () { return null; }, });
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
SocialShare | Folder | 0755 |
|
|
countdown | Folder | 0755 |
|
|
plyr | Folder | 0755 |
|
|
prism | Folder | 0755 |
|
|
select2 | Folder | 0755 |
|
|
slick | Folder | 0755 |
|
|
tinymce | Folder | 0755 |
|
|
Chart.bundle.min.js | File | 176.16 KB | 0644 |
|
gutenberg_blocks.js | File | 1.66 KB | 0644 |
|
mce-button.js | File | 4.4 KB | 0644 |
|