PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.4
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.4
4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 All 140 releases
learnpress / assets / js / dist / blocks / course-instructor-info.min.js

course-instructor-info.min.js in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.4, at assets/js/dist/blocks/course-instructor-info.min.js

1 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{"use strict";const e=window.React,t=window.wp.i18n,r=window.wp.blockEditor,s=s=>{const n=(0,r.useBlockProps)();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{...n},(0,e.createElement)("div",{className:"lp-section-instructor"},(0,e.createElement)("h3",{className:"section-title"},"Instructor"),(0,e.createElement)("div",{className:"lp-instructor-info"},(0,e.createElement)("div",{className:"instructor-avatar"},(0,e.createElement)("img",{src:"/wp-content/plugins/learnpress/assets/images/no-image.png",alt:"Instructor avatar placeholder",height:160,width:160,style:{aspectRatio:"1 / 1",objectFit:"cover"}})),(0,e.createElement)("div",{className:"lp-section-instructor"},(0,e.createElement)("span",{className:"instructor-display-name"},(0,t.__)("Instructor Name","learnpress")),(0,e.createElement)("div",{className:"lp-instructor-meta"},(0,e.createElement)("div",{className:"instructor-item-meta"},(0,e.createElement)("span",{className:"instructor-total-students"},"2 Students")),(0,e.createElement)("div",{className:"instructor-item-meta"},(0,e.createElement)("span",{className:"instructor-total-courses"},"12 Courses"))),(0,e.createElement)("div",{className:"instructor-description"},(0,e.createElement)("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua")))))))},n=e=>null,a=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"learnpress/course-instructor-info","title":"Course Instructor Info","category":"learnpress-course-elements","icon":"index-card","description":"Renders template Instructor Section PHP templates.","textdomain":"learnpress","keywords":["instructor info single course","learnpress"],"ancestor":["learnpress/single-course"],"usesContext":[],"supports":{"multiple":false,"align":["wide","full"],"html":false,"typography":{"fontSize":true,"lineHeight":false,"fontWeight":true,"__experimentalFontFamily":false,"__experimentalTextDecoration":false,"__experimentalFontStyle":false,"__experimentalFontWeight":true,"__experimentalLetterSpacing":false,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}},"color":{"background":false,"text":true,"link":false,"heading":true,"gradients":false,"__experimentalDefaultControls":{"text":true,"h3":true}},"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"margin":false,"padding":false}}}}'),l=window.wp.blocks,i=window.wp.data;let o=null;var c,u,m;c=["learnpress/learnpress//single-lp_course","learnpress/learnpress//single-lp_course-offline"],u=a,m=e=>{(0,l.registerBlockType)(e.name,{...e,edit:s,save:n})},(0,i.subscribe)(()=>{const e={...u},t=(0,i.select)("core/editor")||null;if(!t||"function"!=typeof t.getCurrentPostId||!t.getCurrentPostId())return;const r=t.getCurrentPostId();null!==r&&o!==r&&(o=r,(0,l.getBlockType)(e.name)&&((0,l.unregisterBlockType)(e.name),c.includes(r)?(e.ancestor=null,m(e)):(e.ancestor||(e.ancestor=[]),m(e))))}),(0,l.registerBlockType)(a.name,{...a,edit:s,save:n})})();