PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.0
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.0
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 4.2.0 All 139 releases
learnpress / assets / js / dist / blocks / instructor-student.min.js

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

1 lines 2.5 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,n=window.wp.blockEditor,r=window.wp.components,s=s=>{const l=(0,n.useBlockProps)();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(r.PanelBody,{title:(0,t.__)("Settings","learnpress")},(0,e.createElement)(r.SelectControl,{label:(0,t.__)("Display Modes","learnpress"),value:s.attributes.hidden,options:[{label:"Icon + Number + Text",value:""},{label:"Icon + Number",value:"text"},{label:"Number + Text",value:"icon"}],onChange:e=>s.setAttributes({hidden:e||""})}))),(0,e.createElement)("div",{...l},(0,e.createElement)("div",{className:"wrapper-instructor-total-students"},s.attributes.hidden&&"icon"===s.attributes.hidden?"":(0,e.createElement)("span",{className:"lp-ico lp-icon-students"}),(0,e.createElement)("span",{className:"instructor-total-students"},"99"),s.attributes.hidden&&"text"===s.attributes.hidden?"":(0,e.createElement)("span",null," Students"))))},l=e=>null,a=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"learnpress/instructor-student","title":"Instructor Count Student","category":"learnpress-course-elements","icon":"admin-users","description":"Renders template instructor count student PHP templates.","textdomain":"learnpress","keywords":["instructor student single","learnpress"],"ancestor":["learnpress/single-instructor"],"usesContext":[],"attributes":{"hidden":{"type":"string","default":""}},"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,"gradients":false,"__experimentalDefaultControls":{"text":true}}}}'),o=window.wp.blocks,i=window.wp.data;let u=null;const c=[Number(lpDataAdmin?.single_instructor_id)];var d,p,m;d=c,p=a,m=e=>{(0,o.registerBlockType)(e.name,{...e,edit:s,save:l})},(0,i.subscribe)(()=>{const e={...p},t=(0,i.select)("core/editor")||null;if(!t||"function"!=typeof t.getCurrentPostId||!t.getCurrentPostId())return;const n=t.getCurrentPostId();null!==n&&u!==n&&(u=n,(0,o.getBlockType)(e.name)&&((0,o.unregisterBlockType)(e.name),d.includes(n)?(e.ancestor=null,m(e)):(e.ancestor||(e.ancestor=[]),m(e))))}),(0,o.registerBlockType)(a.name,{...a,edit:s,save:l})})();