/** * Default PlaceHolder if Custom MetaBox have not this Method */ wps_js.placeholder = function (html = false) { return `
${wps_js.placeholder_content('picture')} ${wps_js.placeholder_content('line')}
` + (html !== false ? html : '') + `
`; }; /** * Line Placeholder */ wps_js.line_placeholder = function (number = 1) { let html = `
`; for (let i = 0; i < number; i++) { html += `
`; } html += `
`; return html; }; /** * Default Circle PlaceHolder */ wps_js.rectangle_placeholder = function (cls = '') { return `
${wps_js.placeholder_content('picture')}
`; }; /** * Type Of Place Holder Content * * @param type */ wps_js.placeholder_content = function (type = 'line') { // Create Empty Html let html = ''; switch (type) { case "picture": { html = `
`; break; } case "line": { html = `
`; break; } case "circle": { html = `
`; break; } default: { break; } } return html; };