Changeset 3307280
- Timestamp:
- 06/05/2025 11:20:58 PM (10 months ago)
- Location:
- kadence-starter-templates/trunk
- Files:
-
- 1 added
- 7 edited
-
assets/images/tasks/display-name.jpg (added)
-
dist/starter-templates-rtl.css (modified) (2 diffs)
-
dist/starter-templates.asset.php (modified) (1 diff)
-
dist/starter-templates.css (modified) (2 diffs)
-
inc/class-starter-import-processes.php (modified) (5 diffs)
-
inc/launch-guide/class-site-assist-dash.php (modified) (6 diffs)
-
kadence-starter-templates.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kadence-starter-templates/trunk/dist/starter-templates-rtl.css
r3269744 r3307280 1 1 .tcw-button{border-radius:4px;font-size:14px;padding:6px 12px}.tcw-button.components-external-link{padding:9px 12px;text-decoration:none}.tcw-button.is-primary:not(:disabled){background:#0073e6}.tcw-button.is-primary:not(:disabled):hover{background:#005ab3}.tcw-button.is-secondary{background:#000}.tcw-button.is-secondary:hover{background:#2a222f}.tcw-button.is-primary,.tcw-button.is-primary:hover,.tcw-button.is-secondary,.tcw-button.is-secondary:hover{box-shadow:none;color:#fff}.tcw-button.is-primary:disabled,.tcw-button.is-secondary:disabled{background:#757575;color:#fff}.tcw-button.is-tertiary{background:transparent;box-shadow:inset 0 0 0 1px #0073e6;color:#0073e6}.tcw-button.is-tertiary:hover{background:#005ab3;box-shadow:inset 0 0 0 1px #005ab3;color:#fff}.tcw-button.is-tertiary:disabled{box-shadow:inset 0 0 0 1px #757575;color:#757575}.tcw-button.is-link,.tcw-button.is-link:hover{color:#000}.tcw-next-page_wrapper{margin-top:auto}.tcw-next-page_wrapper .tcw-main_forward-button.is-primary{justify-content:center;text-align:center;width:100%} 2 2 .tcw-nav-button{color:#757575;display:flex;font-weight:500;gap:8px}.tcw-nav-button:disabled:hover{color:#757575;cursor:not-allowed}.tcw-nav-button:disabled{opacity:1}.tcw-nav-button .tcw-stepper-icon{align-items:center;background-color:#fff;border:1px solid #757575;border-radius:40px;color:#757575;display:flex;height:20px;justify-content:center;width:20px}.tcw-nav-button.is-complete{color:#757575}.tcw-nav-button.is-complete .tcw-stepper-icon{background-color:#757575;border-color:#757575;color:#fff}.tcw-nav-button.is-complete:hover{cursor:pointer}.tcw-nav-button.is-current{color:#0073e6}.tcw-nav-button.is-current .tcw-stepper-icon{background-color:#fff;border-color:#0073e6;color:#0073e6}.tcw-nav-button:not(:disabled):hover{color:#0073e6}.tcw-nav-button:not(:disabled):hover .tcw-stepper-icon{background-color:#fff;border-color:#0073e6;color:#0073e6}.tcw-nav-button.is-visited:hover{cursor:pointer} 3 .tcw-root{display:grid;grid-template-columns:minmax(340px,20%) 1fr;height:100%;max-height:100%;position:relative}.tcw-root *{box-sizing:border-box}.tcw-root .tcw-sidebar{background-color:#f5f5f5;display:flex;flex-flow:column nowrap;gap:3vh;height:100%;overflow-y:auto;padding:40px}.tcw-root .tcw-sidebar svg.kadence-icon{height:auto;min-height:36px;width:36px}.tcw-root .tcw-sidebar .tcw-sidebar_content{margin-top:5vh}.tcw-root .tcw-sidebar .tcw-sidebar_content>h3{font-size:24px;font-weight:500;letter-spacing:-.03em;line-height:28px;margin-bottom:.5em}.tcw-root .tcw-sidebar .tcw-sidebar_content>p{margin-bottom:0}.tcw-root .tcw-main{display:flex;flex-flow:column nowrap;height:100%;max-height:100vh;overflow-y:scroll;padding:0 40px 40px;position:relative}.tcw-root .tcw-main .tcw-main_nav-container{align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:hsla(0,0%,100%,.7);display:flex;flex-flow:row nowrap;justify-content:space-between;padding-bottom:20px;padding-top:40px;position:sticky;top:0;width:100%;z-index:100}.tcw-root .tcw-main .tcw-main_nav-container.is-hidden{display:none!important}.tcw-root .tcw-main .tcw-main_nav-container .tcw-nav_back-button{font-weight:500;gap:8px;padding:2px}.tcw-root .tcw-main .tcw-main_nav-container .tcw-main_nav-list{align-items:center;display:flex;flex-flow:row nowrap;gap:1.75vw;justify-content:center;right:50%;margin-bottom:0;position:absolute;transform:translate(50%)}.tcw-root .tcw-main .tcw-main_nav-container .tcw-main_nav-list li{margin-bottom:0}.tcw-root .tcw-main .tcw-main_page-wrapper{display:flex;flex:1;flex-flow:column nowrap;padding-top:70px}.tcw-root .tcw-main .tcw-main_page-wrapper .tcw-main_page-message{margin:0 40px40px}.tcw-root .tcw-main .tcw-main_page-wrapper .tcw-page{flex:1;width:100%}.tcw-root.tcw-root_one-column{grid-template-columns:0 1fr}.tcw-root.tcw-root_one-column .tcw-sidebar{margin:0;padding:0}.tcw-root.tcw-root_one-column .tcw-sidebar svg{right:40px;position:absolute;top:40px}3 .tcw-root{display:grid;grid-template-columns:minmax(340px,20%) 1fr;height:100%;max-height:100%;position:relative}.tcw-root *{box-sizing:border-box}.tcw-root .tcw-sidebar{background-color:#f5f5f5;display:flex;flex-flow:column nowrap;gap:3vh;height:100%;overflow-y:auto;padding:40px}.tcw-root .tcw-sidebar svg.kadence-icon{height:auto;min-height:36px;width:36px}.tcw-root .tcw-sidebar .tcw-sidebar_content{margin-top:5vh}.tcw-root .tcw-sidebar .tcw-sidebar_content>h3{font-size:24px;font-weight:500;letter-spacing:-.03em;line-height:28px;margin-bottom:.5em}.tcw-root .tcw-sidebar .tcw-sidebar_content>p{margin-bottom:0}.tcw-root .tcw-main{display:flex;flex-flow:column nowrap;height:100%;max-height:100vh;overflow-y:scroll;padding:0 36px 40px;position:relative}.tcw-root .tcw-main .tcw-main_nav-container{align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:hsla(0,0%,100%,.7);display:flex;flex-flow:row nowrap;justify-content:space-between;padding-bottom:20px;padding-top:40px;position:sticky;top:0;width:100%;z-index:100}.tcw-root .tcw-main .tcw-main_nav-container.is-hidden{display:none!important}.tcw-root .tcw-main .tcw-main_nav-container .tcw-nav_back-button{font-weight:500;gap:8px;padding:2px}.tcw-root .tcw-main .tcw-main_nav-container .tcw-main_nav-list{align-items:center;display:flex;flex-flow:row nowrap;gap:1.75vw;justify-content:center;right:50%;margin-bottom:0;position:absolute;transform:translate(50%)}.tcw-root .tcw-main .tcw-main_nav-container .tcw-main_nav-list li{margin-bottom:0}.tcw-root .tcw-main .tcw-main_page-wrapper{display:flex;flex:1;flex-flow:column nowrap;padding-top:70px}.tcw-root .tcw-main .tcw-main_page-wrapper .tcw-main_page-message{margin:0 0 40px}.tcw-root .tcw-main .tcw-main_page-wrapper .tcw-page{flex:1;width:100%}.tcw-root.tcw-root_one-column{grid-template-columns:0 1fr}.tcw-root.tcw-root_one-column .tcw-sidebar{margin:0;padding:0}.tcw-root.tcw-root_one-column .tcw-sidebar svg{right:40px;position:absolute;top:40px} 4 4 @keyframes pulse{0%{background-position:100% 0}to{background-position:235% 0}}.template-embed-root{display:flex;height:100%;position:relative;width:100%}.template-embed-root .template-embed_loader{animation:pulse 2.5s ease-in-out infinite;background:linear-gradient(90deg,#efefef,#fcfcfc 50%,#efefef);background-size:300% 300%;height:100%;right:0;position:absolute;top:0;transition:all .3s ease-in-out;width:100%}.template-embed-root .template-embed_iframe{border:1px solid #dfdfdf;border-radius:2px;box-shadow:0 0 80px 0 rgba(0,0,0,.102);height:100%;margin-right:auto;margin-left:auto;transition:all .2s ease-in-out} 5 5 .tcw-color-font_wrapper .components-tab-panel__tabs{width:100%}.tcw-color-font_wrapper .components-tab-panel__tabs .components-tab-panel__tabs-item{border-bottom:2px solid;border-color:#dfdfdf;flex:1;justify-content:center}.tcw-color-font_wrapper .components-tab-panel__tabs .components-tab-panel__tabs-item.active-tab{border-color:#0073e6}.tcw-color-font_wrapper .tcw-color-font_reset-button{color:#757575;margin-top:16px} … … 16 16 .tcw-page-list .tcw-button-list_wrapper{display:grid;gap:8px;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item{align-items:stretch;border:1px solid #dfdfdf;border-radius:8px;box-shadow:none;display:flex;flex-flow:column nowrap;height:auto;justify-content:flex-start;min-height:57px;overflow:hidden;padding:0;transition:all .1s ease-out;width:100%}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item .tcw-button-list_item-title{color:#000;font-size:14px;font-weight:500}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item .dashicon{background:#000;border-radius:40px;color:#fff;visibility:hidden}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item .tcw-button-list_item-content{align-items:center;display:flex;gap:8px;justify-content:space-between;padding:20px}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item .block-editor-block-preview__container{border:1px solid #eee;border-bottom:0;margin:0 -1px;max-height:424px}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item .tcw-button-list_item-preview{background:#f3f3f3;overflow:hidden;padding:20px 20px 0}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item.is-selected{border-color:#000}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item.is-selected .dashicon{visibility:visible}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item:hover{box-shadow:0 1px 8px rgba(0,0,0,.2)}.tcw-page.tcw-page-selection.tcw-style-selection{align-items:flex-start;gap:0} 17 17 .tcw-page.tcw-completed-screen{gap:40px;justify-content:center;margin-right:auto;margin-left:auto;max-width:500px;padding-bottom:120px}.tcw-page.tcw-completed-screen,.tcw-page.tcw-completed-screen .tcw-completed-screen_title{align-items:center;display:flex;flex-flow:column nowrap}.tcw-page.tcw-completed-screen .tcw-completed-screen_title svg{color:#0073e6;height:38px;margin-bottom:20px;width:auto}.tcw-page.tcw-completed-screen .tcw-completed-screen_title .tcw-completed-screen_heading{font-size:32px;font-weight:500;letter-spacing:-.02em;line-height:40px;margin-bottom:0}.tcw-page.tcw-completed-screen .tcw-completed-screen_description{font-size:14px;font-weight:400;letter-spacing:0;line-height:21px;margin-bottom:0;text-align:right;text-align:center}.tcw-page.tcw-completed-screen .tcw-completed-screen_actions{align-items:center;display:flex;flex-flow:column nowrap;gap:16px}.tcw-page.tcw-completed-screen .tcw-completed-screen_actions .components-button.is-primary{padding:1.6em 2em}.tcw-page.tcw-completed-screen .tcw-completed-screen_actions a>svg{margin-right:6px}.tcw-page.tcw-completed-screen .tcw-completed_site-preview{position:fixed;top:60%;transform:scale(.2)}.tcw-page.tcw-completed-screen .tcw-completed_template-preview{border:1px solid #dfdfdf;box-shadow:0 0 80px 0 rgba(0,0,0,.102);position:fixed;top:75%}.tcw-page.tcw-completed-screen .tcw-completed_template-preview img{height:auto;max-width:100%;-o-object-fit:contain;object-fit:contain;width:600px} 18 .tcw-page.tcw-page-selection{padding:0 40px;width:100%}.tcw-page.tcw-page-selection .tcw-page-selection_heading{font-size:14px;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:17px;text-align:right}.tcw-page.tcw-page-selection .tcw-message~.tcw-page-selection_heading,.tcw-page.tcw-page-selection .tcw-page-selection_overwrite{margin-top:20px}.tcw-page.tcw-page-selection .tcw-page-selection_overwrite>p{margin-bottom:16px} .tcw-sidebar .tcw-message{flex-direction:column;gap:20px;margin-bottom:24px;padding:20px}.tcw-sidebar .components-base-control:not(:last-child){margin-bottom:24px}.components-button-group.tcw-radio-buttons{margin:20px 0}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button{background:#fff;box-shadow:inset 0 0 0 1px #dfdfdf;color:#1e1e1e;font-size:.9em;padding:6px}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button:first-child{border-radius:0 6px 6px 0}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button:last-child{border-radius:6px 0 0 6px}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button.is-pressed{background:#0073e6;box-shadow:inset 0 0 0 1px #0073e6;color:#fff}18 .tcw-page.tcw-page-selection{padding:0 40px;width:100%}.tcw-page.tcw-page-selection .tcw-page-selection_heading{font-size:14px;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:17px;text-align:right}.tcw-page.tcw-page-selection .tcw-message~.tcw-page-selection_heading,.tcw-page.tcw-page-selection .tcw-page-selection_overwrite{margin-top:20px}.tcw-page.tcw-page-selection .tcw-page-selection_overwrite>p{margin-bottom:16px}@media(max-width:1860px){.tcw-page.tcw-page-selection{padding:0}}.tcw-sidebar .tcw-message{flex-direction:column;gap:20px;margin-bottom:24px;padding:20px}.tcw-sidebar .components-base-control:not(:last-child){margin-bottom:24px}.components-button-group.tcw-radio-buttons{margin:20px 0}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button{background:#fff;box-shadow:inset 0 0 0 1px #dfdfdf;color:#1e1e1e;font-size:.9em;padding:6px}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button:first-child{border-radius:0 6px 6px 0}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button:last-child{border-radius:6px 0 0 6px}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button.is-pressed{background:#0073e6;box-shadow:inset 0 0 0 1px #0073e6;color:#fff} 19 19 .tcw-page.tcw-plugin-selection{padding:0 40px;width:100%}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button{position:relative;text-align:right}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button .tcw-pill{background:transparent;color:#757575;font-size:11px;right:0;line-height:20px;padding:0 20px;position:absolute;left:0;text-align:right;top:5px}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button .tcw-pill.is-primary{right:auto;left:0}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button.is-required{background-color:#f5f5f5}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button .tcw-button-list_item-content{padding:25px 20px 20px}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button .tcw-button-list_item-description{padding:0 20px 25px}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button .tcw-button-list_item-content .tcw-button-list_item-title{font-size:16px;font-weight:500}.tcw-page.tcw-plugin-selection .tcw-plugin-selection_heading{font-size:14px;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:17px;text-align:right} 20 20 .tcw-page.tcw-processing-screen{gap:40px;justify-content:center;margin-right:auto;margin-left:auto;max-width:500px;padding-bottom:120px}.tcw-page.tcw-processing-screen,.tcw-page.tcw-processing-screen .tcw-processing-screen_title{align-items:center;display:flex;flex-flow:column nowrap}.tcw-page.tcw-processing-screen .tcw-processing-screen_title svg{color:#0073e6;height:38px;margin-bottom:20px;width:auto;fill:currentColor}.tcw-page.tcw-processing-screen .tcw-processing-screen_title .tcw-processing-screen_heading{font-size:32px;font-weight:500;letter-spacing:-.02em;line-height:40px;margin-bottom:0}.tcw-page.tcw-processing-screen .tcw-processing-screen_description{font-size:14px;font-weight:400;letter-spacing:0;line-height:21px;text-align:right;text-align:center}.tcw-page.tcw-processing-screen.tcw-processing-failed svg{background:#fff5f5;border-radius:100%;color:#c53030;height:80px;padding:1em} 21 .tcw-page.tcw-style-selection{align-items:center;display:flex;flex-flow:column nowrap;gap:40px}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection{align-items:flex-end;display:flex;gap:20px}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item{color:#757575}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item.is-active{color:#000}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item svg{cursor:pointer}.tcw-page.tcw-style-selection .tcw-style-selection_message{margin:0 40px}.tcw-page.tcw-style-selection .tcw-style-selection_template-wrapper{box-sizing:border-box;display:flex;flex:1;padding:0 40px;width:100%} 21 .tcw-page.tcw-style-selection{align-items:center;display:flex;flex-flow:column nowrap;gap:40px}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection{align-items:flex-end;display:flex;gap:20px}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item{color:#757575}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item.is-active{color:#000}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item svg{cursor:pointer}.tcw-page.tcw-style-selection .tcw-style-selection_message{margin:0 40px}.tcw-page.tcw-style-selection .tcw-style-selection_template-wrapper{box-sizing:border-box;display:flex;flex:1;padding:0 40px;width:100%}@media(max-width:1760px){.tcw-page.tcw-style-selection .tcw-style-selection_template-wrapper{padding:0}} 22 22 h1,h2,h3,h4,h5,h6,ol,p,ul{margin-bottom:24px;margin-top:0}p{font-size:14px;font-weight:400;letter-spacing:0;line-height:21px}svg.two-tone-icon{fill:#fff!important}.template-customization-modal{background:#fff;height:100vh;right:0;position:fixed;top:0;width:100vw;z-index:100000}.template-customization-modal h1{font-size:45px} 23 23 .tcw-style-selection_template-wrapper img{display:block;margin:0 auto;max-width:100%;width:auto} -
kadence-starter-templates/trunk/dist/starter-templates.asset.php
r3284211 r3307280 1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => ' bdb41466a6288ec043bd');1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '93c45330eb547f10925c'); -
kadence-starter-templates/trunk/dist/starter-templates.css
r3269744 r3307280 1 1 .tcw-button{border-radius:4px;font-size:14px;padding:6px 12px}.tcw-button.components-external-link{padding:9px 12px;text-decoration:none}.tcw-button.is-primary:not(:disabled){background:#0073e6}.tcw-button.is-primary:not(:disabled):hover{background:#005ab3}.tcw-button.is-secondary{background:#000}.tcw-button.is-secondary:hover{background:#2a222f}.tcw-button.is-primary,.tcw-button.is-primary:hover,.tcw-button.is-secondary,.tcw-button.is-secondary:hover{box-shadow:none;color:#fff}.tcw-button.is-primary:disabled,.tcw-button.is-secondary:disabled{background:#757575;color:#fff}.tcw-button.is-tertiary{background:transparent;box-shadow:inset 0 0 0 1px #0073e6;color:#0073e6}.tcw-button.is-tertiary:hover{background:#005ab3;box-shadow:inset 0 0 0 1px #005ab3;color:#fff}.tcw-button.is-tertiary:disabled{box-shadow:inset 0 0 0 1px #757575;color:#757575}.tcw-button.is-link,.tcw-button.is-link:hover{color:#000}.tcw-next-page_wrapper{margin-top:auto}.tcw-next-page_wrapper .tcw-main_forward-button.is-primary{justify-content:center;text-align:center;width:100%} 2 2 .tcw-nav-button{color:#757575;display:flex;font-weight:500;gap:8px}.tcw-nav-button:disabled:hover{color:#757575;cursor:not-allowed}.tcw-nav-button:disabled{opacity:1}.tcw-nav-button .tcw-stepper-icon{align-items:center;background-color:#fff;border:1px solid #757575;border-radius:40px;color:#757575;display:flex;height:20px;justify-content:center;width:20px}.tcw-nav-button.is-complete{color:#757575}.tcw-nav-button.is-complete .tcw-stepper-icon{background-color:#757575;border-color:#757575;color:#fff}.tcw-nav-button.is-complete:hover{cursor:pointer}.tcw-nav-button.is-current{color:#0073e6}.tcw-nav-button.is-current .tcw-stepper-icon{background-color:#fff;border-color:#0073e6;color:#0073e6}.tcw-nav-button:not(:disabled):hover{color:#0073e6}.tcw-nav-button:not(:disabled):hover .tcw-stepper-icon{background-color:#fff;border-color:#0073e6;color:#0073e6}.tcw-nav-button.is-visited:hover{cursor:pointer} 3 .tcw-root{display:grid;grid-template-columns:minmax(340px,20%) 1fr;height:100%;max-height:100%;position:relative}.tcw-root *{box-sizing:border-box}.tcw-root .tcw-sidebar{background-color:#f5f5f5;display:flex;flex-flow:column nowrap;gap:3vh;height:100%;overflow-y:auto;padding:40px}.tcw-root .tcw-sidebar svg.kadence-icon{height:auto;min-height:36px;width:36px}.tcw-root .tcw-sidebar .tcw-sidebar_content{margin-top:5vh}.tcw-root .tcw-sidebar .tcw-sidebar_content>h3{font-size:24px;font-weight:500;letter-spacing:-.03em;line-height:28px;margin-bottom:.5em}.tcw-root .tcw-sidebar .tcw-sidebar_content>p{margin-bottom:0}.tcw-root .tcw-main{display:flex;flex-flow:column nowrap;height:100%;max-height:100vh;overflow-y:scroll;padding:0 40px 40px;position:relative}.tcw-root .tcw-main .tcw-main_nav-container{align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:hsla(0,0%,100%,.7);display:flex;flex-flow:row nowrap;justify-content:space-between;padding-bottom:20px;padding-top:40px;position:sticky;top:0;width:100%;z-index:100}.tcw-root .tcw-main .tcw-main_nav-container.is-hidden{display:none!important}.tcw-root .tcw-main .tcw-main_nav-container .tcw-nav_back-button{font-weight:500;gap:8px;padding:2px}.tcw-root .tcw-main .tcw-main_nav-container .tcw-main_nav-list{align-items:center;display:flex;flex-flow:row nowrap;gap:1.75vw;justify-content:center;left:50%;margin-bottom:0;position:absolute;transform:translate(-50%)}.tcw-root .tcw-main .tcw-main_nav-container .tcw-main_nav-list li{margin-bottom:0}.tcw-root .tcw-main .tcw-main_page-wrapper{display:flex;flex:1;flex-flow:column nowrap;padding-top:70px}.tcw-root .tcw-main .tcw-main_page-wrapper .tcw-main_page-message{margin:0 40px40px}.tcw-root .tcw-main .tcw-main_page-wrapper .tcw-page{flex:1;width:100%}.tcw-root.tcw-root_one-column{grid-template-columns:0 1fr}.tcw-root.tcw-root_one-column .tcw-sidebar{margin:0;padding:0}.tcw-root.tcw-root_one-column .tcw-sidebar svg{left:40px;position:absolute;top:40px}3 .tcw-root{display:grid;grid-template-columns:minmax(340px,20%) 1fr;height:100%;max-height:100%;position:relative}.tcw-root *{box-sizing:border-box}.tcw-root .tcw-sidebar{background-color:#f5f5f5;display:flex;flex-flow:column nowrap;gap:3vh;height:100%;overflow-y:auto;padding:40px}.tcw-root .tcw-sidebar svg.kadence-icon{height:auto;min-height:36px;width:36px}.tcw-root .tcw-sidebar .tcw-sidebar_content{margin-top:5vh}.tcw-root .tcw-sidebar .tcw-sidebar_content>h3{font-size:24px;font-weight:500;letter-spacing:-.03em;line-height:28px;margin-bottom:.5em}.tcw-root .tcw-sidebar .tcw-sidebar_content>p{margin-bottom:0}.tcw-root .tcw-main{display:flex;flex-flow:column nowrap;height:100%;max-height:100vh;overflow-y:scroll;padding:0 36px 40px;position:relative}.tcw-root .tcw-main .tcw-main_nav-container{align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:hsla(0,0%,100%,.7);display:flex;flex-flow:row nowrap;justify-content:space-between;padding-bottom:20px;padding-top:40px;position:sticky;top:0;width:100%;z-index:100}.tcw-root .tcw-main .tcw-main_nav-container.is-hidden{display:none!important}.tcw-root .tcw-main .tcw-main_nav-container .tcw-nav_back-button{font-weight:500;gap:8px;padding:2px}.tcw-root .tcw-main .tcw-main_nav-container .tcw-main_nav-list{align-items:center;display:flex;flex-flow:row nowrap;gap:1.75vw;justify-content:center;left:50%;margin-bottom:0;position:absolute;transform:translate(-50%)}.tcw-root .tcw-main .tcw-main_nav-container .tcw-main_nav-list li{margin-bottom:0}.tcw-root .tcw-main .tcw-main_page-wrapper{display:flex;flex:1;flex-flow:column nowrap;padding-top:70px}.tcw-root .tcw-main .tcw-main_page-wrapper .tcw-main_page-message{margin:0 0 40px}.tcw-root .tcw-main .tcw-main_page-wrapper .tcw-page{flex:1;width:100%}.tcw-root.tcw-root_one-column{grid-template-columns:0 1fr}.tcw-root.tcw-root_one-column .tcw-sidebar{margin:0;padding:0}.tcw-root.tcw-root_one-column .tcw-sidebar svg{left:40px;position:absolute;top:40px} 4 4 @keyframes pulse{0%{background-position:0 0}to{background-position:-135% 0}}.template-embed-root{display:flex;height:100%;position:relative;width:100%}.template-embed-root .template-embed_loader{animation:pulse 2.5s ease-in-out infinite;background:linear-gradient(-90deg,#efefef,#fcfcfc 50%,#efefef);background-size:300% 300%;height:100%;left:0;position:absolute;top:0;transition:all .3s ease-in-out;width:100%}.template-embed-root .template-embed_iframe{border:1px solid #dfdfdf;border-radius:2px;box-shadow:0 0 80px 0 rgba(0,0,0,.102);height:100%;margin-left:auto;margin-right:auto;transition:all .2s ease-in-out} 5 5 .tcw-color-font_wrapper .components-tab-panel__tabs{width:100%}.tcw-color-font_wrapper .components-tab-panel__tabs .components-tab-panel__tabs-item{border-bottom:2px solid;border-color:#dfdfdf;flex:1;justify-content:center}.tcw-color-font_wrapper .components-tab-panel__tabs .components-tab-panel__tabs-item.active-tab{border-color:#0073e6}.tcw-color-font_wrapper .tcw-color-font_reset-button{color:#757575;margin-top:16px} … … 16 16 .tcw-page-list .tcw-button-list_wrapper{display:grid;gap:8px;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item{align-items:stretch;border:1px solid #dfdfdf;border-radius:8px;box-shadow:none;display:flex;flex-flow:column nowrap;height:auto;justify-content:flex-start;min-height:57px;overflow:hidden;padding:0;transition:all .1s ease-out;width:100%}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item .tcw-button-list_item-title{color:#000;font-size:14px;font-weight:500}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item .dashicon{background:#000;border-radius:40px;color:#fff;visibility:hidden}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item .tcw-button-list_item-content{align-items:center;display:flex;gap:8px;justify-content:space-between;padding:20px}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item .block-editor-block-preview__container{border:1px solid #eee;border-bottom:0;margin:0 -1px;max-height:424px}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item .tcw-button-list_item-preview{background:#f3f3f3;overflow:hidden;padding:20px 20px 0}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item.is-selected{border-color:#000}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item.is-selected .dashicon{visibility:visible}.tcw-page-list .tcw-button-list_wrapper .tcw-button-list_item:hover{box-shadow:0 1px 8px rgba(0,0,0,.2)}.tcw-page.tcw-page-selection.tcw-style-selection{align-items:flex-start;gap:0} 17 17 .tcw-page.tcw-completed-screen{gap:40px;justify-content:center;margin-left:auto;margin-right:auto;max-width:500px;padding-bottom:120px}.tcw-page.tcw-completed-screen,.tcw-page.tcw-completed-screen .tcw-completed-screen_title{align-items:center;display:flex;flex-flow:column nowrap}.tcw-page.tcw-completed-screen .tcw-completed-screen_title svg{color:#0073e6;height:38px;margin-bottom:20px;width:auto}.tcw-page.tcw-completed-screen .tcw-completed-screen_title .tcw-completed-screen_heading{font-size:32px;font-weight:500;letter-spacing:-.02em;line-height:40px;margin-bottom:0}.tcw-page.tcw-completed-screen .tcw-completed-screen_description{font-size:14px;font-weight:400;letter-spacing:0;line-height:21px;margin-bottom:0;text-align:left;text-align:center}.tcw-page.tcw-completed-screen .tcw-completed-screen_actions{align-items:center;display:flex;flex-flow:column nowrap;gap:16px}.tcw-page.tcw-completed-screen .tcw-completed-screen_actions .components-button.is-primary{padding:1.6em 2em}.tcw-page.tcw-completed-screen .tcw-completed-screen_actions a>svg{margin-left:6px}.tcw-page.tcw-completed-screen .tcw-completed_site-preview{position:fixed;top:60%;transform:scale(.2)}.tcw-page.tcw-completed-screen .tcw-completed_template-preview{border:1px solid #dfdfdf;box-shadow:0 0 80px 0 rgba(0,0,0,.102);position:fixed;top:75%}.tcw-page.tcw-completed-screen .tcw-completed_template-preview img{height:auto;max-width:100%;-o-object-fit:contain;object-fit:contain;width:600px} 18 .tcw-page.tcw-page-selection{padding:0 40px;width:100%}.tcw-page.tcw-page-selection .tcw-page-selection_heading{font-size:14px;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:17px;text-align:left}.tcw-page.tcw-page-selection .tcw-message~.tcw-page-selection_heading,.tcw-page.tcw-page-selection .tcw-page-selection_overwrite{margin-top:20px}.tcw-page.tcw-page-selection .tcw-page-selection_overwrite>p{margin-bottom:16px} .tcw-sidebar .tcw-message{flex-direction:column;gap:20px;margin-bottom:24px;padding:20px}.tcw-sidebar .components-base-control:not(:last-child){margin-bottom:24px}.components-button-group.tcw-radio-buttons{margin:20px 0}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button{background:#fff;box-shadow:inset 0 0 0 1px #dfdfdf;color:#1e1e1e;font-size:.9em;padding:6px}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button:first-child{border-radius:6px 0 0 6px}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button:last-child{border-radius:0 6px 6px 0}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button.is-pressed{background:#0073e6;box-shadow:inset 0 0 0 1px #0073e6;color:#fff}18 .tcw-page.tcw-page-selection{padding:0 40px;width:100%}.tcw-page.tcw-page-selection .tcw-page-selection_heading{font-size:14px;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:17px;text-align:left}.tcw-page.tcw-page-selection .tcw-message~.tcw-page-selection_heading,.tcw-page.tcw-page-selection .tcw-page-selection_overwrite{margin-top:20px}.tcw-page.tcw-page-selection .tcw-page-selection_overwrite>p{margin-bottom:16px}@media(max-width:1860px){.tcw-page.tcw-page-selection{padding:0}}.tcw-sidebar .tcw-message{flex-direction:column;gap:20px;margin-bottom:24px;padding:20px}.tcw-sidebar .components-base-control:not(:last-child){margin-bottom:24px}.components-button-group.tcw-radio-buttons{margin:20px 0}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button{background:#fff;box-shadow:inset 0 0 0 1px #dfdfdf;color:#1e1e1e;font-size:.9em;padding:6px}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button:first-child{border-radius:6px 0 0 6px}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button:last-child{border-radius:0 6px 6px 0}.components-button-group.tcw-radio-buttons .components-button.tcw-content-button.is-pressed{background:#0073e6;box-shadow:inset 0 0 0 1px #0073e6;color:#fff} 19 19 .tcw-page.tcw-plugin-selection{padding:0 40px;width:100%}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button{position:relative;text-align:left}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button .tcw-pill{background:transparent;color:#757575;font-size:11px;left:0;line-height:20px;padding:0 20px;position:absolute;right:0;text-align:left;top:5px}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button .tcw-pill.is-primary{left:auto;right:0}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button.is-required{background-color:#f5f5f5}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button .tcw-button-list_item-content{padding:25px 20px 20px}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button .tcw-button-list_item-description{padding:0 20px 25px}.tcw-page.tcw-plugin-selection .tcw-button-list .tcw-button-list_wrapper .tcw-button-list_item.components-button .tcw-button-list_item-content .tcw-button-list_item-title{font-size:16px;font-weight:500}.tcw-page.tcw-plugin-selection .tcw-plugin-selection_heading{font-size:14px;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:17px;text-align:left} 20 20 .tcw-page.tcw-processing-screen{gap:40px;justify-content:center;margin-left:auto;margin-right:auto;max-width:500px;padding-bottom:120px}.tcw-page.tcw-processing-screen,.tcw-page.tcw-processing-screen .tcw-processing-screen_title{align-items:center;display:flex;flex-flow:column nowrap}.tcw-page.tcw-processing-screen .tcw-processing-screen_title svg{color:#0073e6;height:38px;margin-bottom:20px;width:auto;fill:currentColor}.tcw-page.tcw-processing-screen .tcw-processing-screen_title .tcw-processing-screen_heading{font-size:32px;font-weight:500;letter-spacing:-.02em;line-height:40px;margin-bottom:0}.tcw-page.tcw-processing-screen .tcw-processing-screen_description{font-size:14px;font-weight:400;letter-spacing:0;line-height:21px;text-align:left;text-align:center}.tcw-page.tcw-processing-screen.tcw-processing-failed svg{background:#fff5f5;border-radius:100%;color:#c53030;height:80px;padding:1em} 21 .tcw-page.tcw-style-selection{align-items:center;display:flex;flex-flow:column nowrap;gap:40px}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection{align-items:flex-end;display:flex;gap:20px}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item{color:#757575}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item.is-active{color:#000}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item svg{cursor:pointer}.tcw-page.tcw-style-selection .tcw-style-selection_message{margin:0 40px}.tcw-page.tcw-style-selection .tcw-style-selection_template-wrapper{box-sizing:border-box;display:flex;flex:1;padding:0 40px;width:100%} 21 .tcw-page.tcw-style-selection{align-items:center;display:flex;flex-flow:column nowrap;gap:40px}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection{align-items:flex-end;display:flex;gap:20px}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item{color:#757575}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item.is-active{color:#000}.tcw-page.tcw-style-selection .tcw-style-selection_device-selection .tcw-style-selection_device-item svg{cursor:pointer}.tcw-page.tcw-style-selection .tcw-style-selection_message{margin:0 40px}.tcw-page.tcw-style-selection .tcw-style-selection_template-wrapper{box-sizing:border-box;display:flex;flex:1;padding:0 40px;width:100%}@media(max-width:1760px){.tcw-page.tcw-style-selection .tcw-style-selection_template-wrapper{padding:0}} 22 22 h1,h2,h3,h4,h5,h6,ol,p,ul{margin-bottom:24px;margin-top:0}p{font-size:14px;font-weight:400;letter-spacing:0;line-height:21px}svg.two-tone-icon{fill:#fff!important}.template-customization-modal{background:#fff;height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:100000}.template-customization-modal h1{font-size:45px} 23 23 .tcw-style-selection_template-wrapper img{display:block;margin:0 auto;max-width:100%;width:auto} -
kadence-starter-templates/trunk/inc/class-starter-import-processes.php
r3284211 r3307280 3487 3487 public function install_single_cpt( $cpt_data, $id_map = [], $style = 'light' ) { 3488 3488 // Check if the post already exists. 3489 $title = ! empty( $style ) && 'light' !== $style ? $cpt_data['post_title'] . ' ' . ucfirst( $style ) : $cpt_data['post_title']; 3489 3490 $post_exists = get_posts( [ 3490 3491 'post_type' => $cpt_data['post_type'], 3491 'title' => $ cpt_data['post_title'],3492 'title' => $title, 3492 3493 ] ); 3493 3494 if ( $post_exists ) { … … 3495 3496 } 3496 3497 $temp_content = $cpt_data['post_content']; 3497 //unset($cpt_data['ID']);3498 $title = ! empty( $style ) && 'light' !== $style ? $cpt_data['post_title'] . ' ' . $style : $cpt_data['post_title'];3499 3498 $new_post_id = wp_insert_post([ 3500 3499 'post_type' => $cpt_data['post_type'], … … 3508 3507 foreach ($cpt_data['meta'] as $meta_key => $meta_values) { 3509 3508 foreach ($meta_values as $meta_value) { 3509 if ( ! empty( $style ) && 'light' !== $style ) { 3510 $meta_value = $this->cpt_switch_meta_color( $meta_value, $meta_key, $style ); 3511 } 3510 3512 add_post_meta($new_post_id, $meta_key, $meta_value); 3511 3513 } … … 3514 3516 if ( ! empty( $id_map ) ) { 3515 3517 $temp_content = $this->update_block_ids($temp_content, $id_map); 3518 } 3519 if ( ! empty( $style ) && 'light' !== $style ) { 3520 $temp_content = $this->cpt_switch_color( $temp_content, $style ); 3516 3521 } 3517 3522 wp_update_post(array( … … 3523 3528 } 3524 3529 return false; 3530 } 3531 /** 3532 * Retrieves a collection of objects. 3533 * 3534 * @param string $content The content to search. 3535 * @param string $style The style to search for. 3536 * @return string The content with the style replaced. 3537 */ 3538 public function cpt_switch_meta_color( $meta_value, $meta_key, $style ) { 3539 $temp_meta_value = wp_json_encode( $meta_value ); 3540 if ( $style === 'highlight' ) { 3541 $temp_meta_value = str_replace( 'palette1', 'placeholder-kb-pal9', $temp_meta_value ); 3542 $temp_meta_value = str_replace( 'palette2', 'placeholder-kb-pal8', $temp_meta_value ); 3543 $temp_meta_value = str_replace( 'palette3', 'placeholder-kb-pal9', $temp_meta_value ); 3544 $temp_meta_value = str_replace( 'palette4', 'placeholder-kb-pal9', $temp_meta_value ); 3545 $temp_meta_value = str_replace( 'palette5', 'placeholder-kb-pal8', $temp_meta_value ); 3546 $temp_meta_value = str_replace( 'palette6', 'placeholder-kb-pal7', $temp_meta_value ); 3547 $temp_meta_value = str_replace( 'palette7', 'placeholder-kb-pal2', $temp_meta_value ); 3548 $temp_meta_value = str_replace( 'palette8', 'placeholder-kb-pal2', $temp_meta_value ); 3549 $temp_meta_value = str_replace( 'palette9', 'placeholder-kb-pal1', $temp_meta_value ); 3550 } else { 3551 $temp_meta_value = str_replace( 'palette3', 'placeholder-kb-pal9', $temp_meta_value ); 3552 $temp_meta_value = str_replace( 'palette4', 'placeholder-kb-pal8', $temp_meta_value ); 3553 $temp_meta_value = str_replace( 'palette5', 'placeholder-kb-pal7', $temp_meta_value ); 3554 $temp_meta_value = str_replace( 'palette6', 'placeholder-kb-pal7', $temp_meta_value ); 3555 $temp_meta_value = str_replace( 'palette7', 'placeholder-kb-pal3', $temp_meta_value ); 3556 $temp_meta_value = str_replace( 'palette8', 'placeholder-kb-pal3', $temp_meta_value ); 3557 $temp_meta_value = str_replace( 'palette9', 'placeholder-kb-pal4', $temp_meta_value ); 3558 } 3559 $temp_meta_value = str_replace( 'placeholder-kb-pal1', 'palette1', $temp_meta_value ); 3560 $temp_meta_value = str_replace( 'placeholder-kb-pal2', 'palette2', $temp_meta_value ); 3561 $temp_meta_value = str_replace( 'placeholder-kb-pal3', 'palette3', $temp_meta_value ); 3562 $temp_meta_value = str_replace( 'placeholder-kb-pal4', 'palette4', $temp_meta_value ); 3563 $temp_meta_value = str_replace( 'placeholder-kb-pal5', 'palette5', $temp_meta_value ); 3564 $temp_meta_value = str_replace( 'placeholder-kb-pal6', 'palette6', $temp_meta_value ); 3565 $temp_meta_value = str_replace( 'placeholder-kb-pal7', 'palette7', $temp_meta_value ); 3566 $temp_meta_value = str_replace( 'placeholder-kb-pal8', 'palette8', $temp_meta_value ); 3567 $temp_meta_value = str_replace( 'placeholder-kb-pal9', 'palette9', $temp_meta_value ); 3568 3569 return json_decode( $temp_meta_value, true ); 3570 } 3571 /** 3572 * Retrieves a collection of objects. 3573 */ 3574 public function cpt_switch_color( $content, $style ) { 3575 $content = str_replace( 'Logo-ploaceholder.png', 'Logo-ploaceholder-white.png', $content ); 3576 $content = str_replace( 'Logo-ploaceholder-1.png', 'Logo-ploaceholder-1-white.png', $content ); 3577 $content = str_replace( 'Logo-ploaceholder-2.png', 'Logo-ploaceholder-2-white.png', $content ); 3578 $content = str_replace( 'Logo-ploaceholder-3.png', 'Logo-ploaceholder-3-white.png', $content ); 3579 $content = str_replace( 'Logo-ploaceholder-4.png', 'Logo-ploaceholder-4-white.png', $content ); 3580 $content = str_replace( 'Logo-ploaceholder-5.png', 'Logo-ploaceholder-5-white.png', $content ); 3581 $content = str_replace( 'Logo-ploaceholder-6.png', 'Logo-ploaceholder-6-white.png', $content ); 3582 $content = str_replace( 'Logo-ploaceholder-7.png', 'Logo-ploaceholder-7-white.png', $content ); 3583 $content = str_replace( 'Logo-ploaceholder-8.png', 'Logo-ploaceholder-8-white.png', $content ); 3584 3585 $content = str_replace( 'logo-placeholder.png', 'logo-placeholder-white.png', $content ); 3586 $content = str_replace( 'logo-placeholder-1.png', 'logo-placeholder-1-white.png', $content ); 3587 $content = str_replace( 'logo-placeholder-2.png', 'logo-placeholder-2-white.png', $content ); 3588 $content = str_replace( 'logo-placeholder-3.png', 'logo-placeholder-3-white.png', $content ); 3589 $content = str_replace( 'logo-placeholder-4.png', 'logo-placeholder-4-white.png', $content ); 3590 $content = str_replace( 'logo-placeholder-5.png', 'logo-placeholder-5-white.png', $content ); 3591 $content = str_replace( 'logo-placeholder-6.png', 'logo-placeholder-6-white.png', $content ); 3592 $content = str_replace( 'logo-placeholder-7.png', 'logo-placeholder-7-white.png', $content ); 3593 $content = str_replace( 'logo-placeholder-8.png', 'logo-placeholder-8-white.png', $content ); 3594 $content = str_replace( 'logo-placeholder-9.png', 'logo-placeholder-9-white.png', $content ); 3595 $content = str_replace( 'logo-placeholder-10.png', 'logo-placeholder-10-white.png', $content ); 3596 3597 if ( $style === 'highlight' ) { 3598 $form_content = $this->get_string_inbetween( $content, '"submit":[{', ']}', 'wp:kadence/form' ); 3599 if ( $form_content ) { 3600 $form_content_org = $form_content; 3601 $form_content = str_replace( '"color":""', '"color":"placeholder-kb-pal9"', $form_content ); 3602 $form_content = str_replace( '"background":""', '"background":"placeholder-kb-pal3"', $form_content ); 3603 $form_content = str_replace( '"colorHover":""', '"colorHover":"placeholder-kb-pal9"', $form_content ); 3604 $form_content = str_replace( '"backgroundHover":""', '"backgroundHover":"placeholder-kb-pal4"', $form_content ); 3605 $content = str_replace( $form_content_org, $form_content, $content ); 3606 } 3607 $content = str_replace( '"inheritStyles":"inherit"', '"color":"placeholder-kb-pal9","background":"placeholder-kb-pal3","colorHover":"placeholder-kb-pal9","backgroundHover":"placeholder-kb-pal4","inheritStyles":"inherit"', $content ); 3608 3609 $content = str_replace( 'has-theme-palette-1', 'placeholder-kb-class9', $content ); 3610 $content = str_replace( 'has-theme-palette-2', 'placeholder-kb-class8', $content ); 3611 $content = str_replace( 'has-theme-palette-3', 'placeholder-kb-class9', $content ); 3612 $content = str_replace( 'has-theme-palette-4', 'placeholder-kb-class9', $content ); 3613 $content = str_replace( 'has-theme-palette-5', 'placeholder-kb-class8', $content ); 3614 $content = str_replace( 'has-theme-palette-6', 'placeholder-kb-class7', $content ); 3615 $content = str_replace( 'has-theme-palette-7', 'placeholder-kb-class2', $content ); 3616 $content = str_replace( 'has-theme-palette-8', 'placeholder-kb-class2', $content ); 3617 $content = str_replace( 'has-theme-palette-9', 'placeholder-kb-class1', $content ); 3618 3619 $content = str_replace( 'theme-palette1', 'placeholder-class-pal9', $content ); 3620 $content = str_replace( 'theme-palette2', 'placeholder-class-pal8', $content ); 3621 $content = str_replace( 'theme-palette3', 'placeholder-class-pal9', $content ); 3622 $content = str_replace( 'theme-palette4', 'placeholder-class-pal9', $content ); 3623 $content = str_replace( 'theme-palette5', 'placeholder-class-pal8', $content ); 3624 $content = str_replace( 'theme-palette6', 'placeholder-class-pal7', $content ); 3625 $content = str_replace( 'theme-palette7', 'placeholder-class-pal2', $content ); 3626 $content = str_replace( 'theme-palette8', 'placeholder-class-pal2', $content ); 3627 $content = str_replace( 'theme-palette9', 'placeholder-class-pal1', $content ); 3628 3629 $content = str_replace( 'palette1', 'placeholder-kb-pal9', $content ); 3630 $content = str_replace( 'palette2', 'placeholder-kb-pal8', $content ); 3631 $content = str_replace( 'palette3', 'placeholder-kb-pal9', $content ); 3632 $content = str_replace( 'palette4', 'placeholder-kb-pal9', $content ); 3633 $content = str_replace( 'palette5', 'placeholder-kb-pal8', $content ); 3634 $content = str_replace( 'palette6', 'placeholder-kb-pal7', $content ); 3635 $content = str_replace( 'palette7', 'placeholder-kb-pal2', $content ); 3636 $content = str_replace( 'palette8', 'placeholder-kb-pal2', $content ); 3637 $content = str_replace( 'palette9', 'placeholder-kb-pal1', $content ); 3638 3639 } else { 3640 $white_text_content = $this->get_string_inbetween_when( $content, '<!-- wp:kadence/column', 'kt-inside-inner-col', 'kb-pattern-light-color', 0 ); 3641 if ( $white_text_content ) { 3642 $white_text_content_org = $white_text_content; 3643 $white_text_content = str_replace( '"textColor":"palette9"', '"textColor":"placeholder-kb-pal9"', $white_text_content ); 3644 $white_text_content = str_replace( '"linkColor":"palette9"', '"linkColor":"placeholder-kb-pal9"', $white_text_content ); 3645 $white_text_content = str_replace( '"linkHoverColor":"palette9"', '"linkHoverColor":"placeholder-kb-pal9"', $white_text_content ); 3646 $content = str_replace( $white_text_content_org, $white_text_content, $content ); 3647 } 3648 $content = str_replace( 'has-theme-palette-3', 'placeholder-kb-class9', $content ); 3649 $content = str_replace( 'has-theme-palette-4', 'placeholder-kb-class8', $content ); 3650 $content = str_replace( 'has-theme-palette-5', 'placeholder-kb-class7', $content ); 3651 $content = str_replace( 'has-theme-palette-6', 'placeholder-kb-class7', $content ); 3652 $content = str_replace( 'has-theme-palette-7', 'placeholder-kb-class3', $content ); 3653 $content = str_replace( 'has-theme-palette-8', 'placeholder-kb-class3', $content ); 3654 $content = str_replace( 'has-theme-palette-9', 'placeholder-kb-class4', $content ); 3655 3656 $content = str_replace( 'theme-palette3', 'placeholder-class-pal9', $content ); 3657 $content = str_replace( 'theme-palette4', 'placeholder-class-pal8', $content ); 3658 $content = str_replace( 'theme-palette5', 'placeholder-class-pal7', $content ); 3659 $content = str_replace( 'theme-palette6', 'placeholder-class-pal7', $content ); 3660 $content = str_replace( 'theme-palette7', 'placeholder-class-pal3', $content ); 3661 $content = str_replace( 'theme-palette8', 'placeholder-class-pal3', $content ); 3662 $content = str_replace( 'theme-palette9', 'placeholder-class-pal4', $content ); 3663 3664 $content = str_replace( 'palette3', 'placeholder-kb-pal9', $content ); 3665 $content = str_replace( 'palette4', 'placeholder-kb-pal8', $content ); 3666 $content = str_replace( 'palette5', 'placeholder-kb-pal7', $content ); 3667 $content = str_replace( 'palette6', 'placeholder-kb-pal7', $content ); 3668 $content = str_replace( 'palette7', 'placeholder-kb-pal3', $content ); 3669 $content = str_replace( 'palette8', 'placeholder-kb-pal3', $content ); 3670 $content = str_replace( 'palette9', 'placeholder-kb-pal4', $content ); 3671 } 3672 $content = str_replace( 'placeholder-kb-class1', 'has-theme-palette-1', $content ); 3673 $content = str_replace( 'placeholder-kb-class2', 'has-theme-palette-2', $content ); 3674 $content = str_replace( 'placeholder-kb-class3', 'has-theme-palette-3', $content ); 3675 $content = str_replace( 'placeholder-kb-class4', 'has-theme-palette-4', $content ); 3676 $content = str_replace( 'placeholder-kb-class5', 'has-theme-palette-5', $content ); 3677 $content = str_replace( 'placeholder-kb-class6', 'has-theme-palette-6', $content ); 3678 $content = str_replace( 'placeholder-kb-class7', 'has-theme-palette-7', $content ); 3679 $content = str_replace( 'placeholder-kb-class8', 'has-theme-palette-8', $content ); 3680 $content = str_replace( 'placeholder-kb-class9', 'has-theme-palette-9', $content ); 3681 3682 $content = str_replace( 'placeholder-class-pal1', 'theme-palette1', $content ); 3683 $content = str_replace( 'placeholder-class-pal2', 'theme-palette2', $content ); 3684 $content = str_replace( 'placeholder-class-pal3', 'theme-palette3', $content ); 3685 $content = str_replace( 'placeholder-class-pal4', 'theme-palette4', $content ); 3686 $content = str_replace( 'placeholder-class-pal5', 'theme-palette5', $content ); 3687 $content = str_replace( 'placeholder-class-pal6', 'theme-palette6', $content ); 3688 $content = str_replace( 'placeholder-class-pal7', 'theme-palette7', $content ); 3689 $content = str_replace( 'placeholder-class-pal8', 'theme-palette8', $content ); 3690 $content = str_replace( 'placeholder-class-pal9', 'theme-palette9', $content ); 3691 3692 $content = str_replace( 'placeholder-kb-pal1', 'palette1', $content ); 3693 $content = str_replace( 'placeholder-kb-pal2', 'palette2', $content ); 3694 $content = str_replace( 'placeholder-kb-pal3', 'palette3', $content ); 3695 $content = str_replace( 'placeholder-kb-pal4', 'palette4', $content ); 3696 $content = str_replace( 'placeholder-kb-pal5', 'palette5', $content ); 3697 $content = str_replace( 'placeholder-kb-pal6', 'palette6', $content ); 3698 $content = str_replace( 'placeholder-kb-pal7', 'palette7', $content ); 3699 $content = str_replace( 'placeholder-kb-pal8', 'palette8', $content ); 3700 $content = str_replace( 'placeholder-kb-pal9', 'palette9', $content ); 3701 return $content; 3702 } 3703 /** 3704 * Retrieves a collection of objects. 3705 * 3706 * @param string $string The string to search. 3707 * @param string $start The start of the string. 3708 * @param string $end The end of the string. 3709 * @param string $verify The string to verify. 3710 * @return string The string in between the start and end. 3711 */ 3712 public function get_string_inbetween( $string, $start, $end, $verify ) { 3713 if ( strpos( $string, $verify ) == 0 ) { 3714 return ''; 3715 } 3716 $ini = strpos( $string, $start ); 3717 if ( $ini == 0 ) { 3718 return ''; 3719 } 3720 $ini += strlen( $start ); 3721 $len = strpos( $string, $end, $ini ) - $ini; 3722 return substr( $string, $ini, $len ); 3723 } 3724 /** 3725 * Retrieves a collection of objects. 3726 * 3727 * @param string $string The string to search. 3728 * @param string $start The start of the string. 3729 * @param string $end The end of the string. 3730 * @param string $verify The string to verify. 3731 * @param int $from The position to start searching from. 3732 * @return string The string in between the start and end. 3733 */ 3734 public function get_string_inbetween_when( $string, $start, $end, $verify, $from ) { 3735 $ini = strpos( $string, $start, $from ); 3736 if ( $ini == 0 ) { 3737 return ''; 3738 } 3739 $ini += strlen( $start ); 3740 $len = strpos( $string, $end, $ini ) - $ini; 3741 $sub_string = substr( $string, $ini, $len ); 3742 if ( strpos( $sub_string, $verify ) == 0 ) { 3743 return $this->get_string_inbetween_when( $string, $start, $end, $verify, $ini ); 3744 } 3745 return $sub_string; 3525 3746 } 3526 3747 /** -
kadence-starter-templates/trunk/inc/launch-guide/class-site-assist-dash.php
r3276175 r3307280 11 11 use ITSEC_Modules; 12 12 use ITSEC_Core; 13 use LearnDash_Setup_Wizard; 14 use LearnDash_Settings_Section; 13 15 use function KadenceWP\KadenceStarterTemplates\StellarWP\Uplink\get_original_domain; 14 16 use function KadenceWP\KadenceStarterTemplates\StellarWP\Uplink\get_license_key; … … 441 443 } 442 444 /** 445 * Get LearnDash Data 446 */ 447 public function get_learndash_data() { 448 $data = [ 449 'plugin_setup' => false, 450 'payment_connected' => false, 451 'course_created' => false, 452 'live_mode' => false, 453 ]; 454 $is_completed = get_option('learndash_setup_wizard_status') === LearnDash_Setup_Wizard::STATUS_COMPLETED; 455 if ( $is_completed ) { 456 $data['plugin_setup'] = true; 457 } 458 $stripe_connect_activated = LearnDash_Settings_Section::get_section_setting('LearnDash_Settings_Section_Stripe_Connect', 'enabled') === 'yes'; 459 if ( $stripe_connect_activated ) { 460 $data['payment_connected'] = true; 461 } 462 $courses = get_posts( [ 'post_type' => 'sfwd-courses', 'post_status' => 'publish', 'posts_per_page' => 1 ] ); 463 if ( ! empty( $courses ) ) { 464 $data['course_created'] = true; 465 } 466 $learndash_data = [ 467 'title' => __( 'LearnDash Setup', 'kadence-starter-templates' ), 468 'description' => __( 'Set up LearnDash to make sure you have a way to create and manage courses.', 'kadence-starter-templates' ), 469 'slug' => 'learndash-setup', 470 'tasks' => [ 471 [ 472 'title' => __( 'Install LearnDash', 'kadence-starter-templates' ), 473 'description' => __( 'Install and Activate the LearnDash plugin.', 'kadence-starter-templates' ), 474 'button' => __( 'Install', 'kadence-starter-templates' ), 475 'completed' => true, 476 'action' => 'install_plugin', 477 'plugin_state' => 'active', 478 ], 479 [ 480 'title' => __( 'Configure LearnDash', 'kadence-starter-templates' ), 481 'description' => __( 'Configure the LearnDash plugin.', 'kadence-starter-templates' ), 482 'button' => __( 'Configure', 'kadence-starter-templates' ), 483 'link' => admin_url( 'admin.php?page=learndash-setup-wizard' ), 484 'completed' => $data['plugin_setup'] ? true : false, 485 'sameTab' => true, 486 ], 487 [ 488 'title' => __( 'Configure Payments', 'kadence-starter-templates' ), 489 'description' => __( 'Configure the LearnDash payments.', 'kadence-starter-templates' ), 490 'button' => __( 'Configure', 'kadence-starter-templates' ), 491 'link' => admin_url( 'admin.php?page=learndash-setup' ), 492 'completed' => $data['payment_connected'] ? true : false, 493 'requires' => $data['plugin_setup'] ? false : true, 494 'sameTab' => true, 495 ], 496 [ 497 'title' => __( 'Create a Course', 'kadence-starter-templates' ), 498 'description' => __( 'Create a course to make sure you have a way to create and manage courses.', 'kadence-starter-templates' ), 499 'button' => __( 'Create', 'kadence-starter-templates' ), 500 'link' => admin_url( 'edit.php?post_type=sfwd-courses' ), 501 'completed' => $data['course_created'] ? true : false, 502 'requires' => $data['plugin_setup'] ? false : true, 503 'sameTab' => true, 504 ], 505 ], 506 ]; 507 return $learndash_data; 508 } 509 /** 443 510 * Get Security Data 444 511 */ … … 780 847 $donation_data = $this->get_donation_data(); 781 848 } 849 $learndash_data = []; 850 if ( class_exists( 'LearnDash_Settings_Section' ) ) { 851 $learndash_data = $this->get_learndash_data(); 852 } 782 853 $security_data = $this->get_security_data(); 783 854 $email_data = $this->get_email_data( $site_assist_data ); … … 841 912 } 842 913 } 914 // Get the current user display name. 915 $current_user = wp_get_current_user(); 916 $display_name = $current_user->display_name; 917 // Username. 918 $username = $current_user->user_login; 843 919 $return_data = [ 844 920 [ … … 935 1011 ], 936 1012 [ 1013 'title' => __( 'Set your display name', 'kadence-starter-templates' ), 1014 'subtitle' => $display_name, 1015 'image' => KADENCE_STARTER_TEMPLATES_URL . 'assets/images/tasks/display-name.jpg', 1016 'description' => __( 'Set your display name so that it appears correctly on your site for authored posts and comments.', 'kadence-starter-templates' ), 1017 'button' => __( 'Edit', 'kadence-starter-templates' ), 1018 'link' => admin_url( 'profile.php' ), 1019 'manual' => 'display_name', 1020 'completed' => $display_name !== $username ? true : false, 1021 'sameTab' => true, 1022 ], 1023 [ 937 1024 'title' => __( 'Publish Privacy Policy Page', 'kadence-starter-templates' ), 938 1025 'description' => __( 'Publish a privacy policy page.', 'kadence-starter-templates' ), … … 1026 1113 if ( !empty ( $donation_data ) ) { 1027 1114 $return_data[] = $donation_data; 1115 } 1116 if ( !empty ( $learndash_data ) ) { 1117 $return_data[] = $learndash_data; 1028 1118 } 1029 1119 if ( class_exists( '\StellarWP\StellarSites\Plugin' ) ) { -
kadence-starter-templates/trunk/kadence-starter-templates.php
r3284211 r3307280 3 3 * Plugin Name: Starter Templates by Kadence WP 4 4 * Description: Launch a beautiful website with the power of AI or using our classic pre built style. 5 * Version: 2.2. 85 * Version: 2.2.9 6 6 * Author: Kadence WP 7 7 * Author URI: https://kadencewp.com/ … … 20 20 define( 'KADENCE_STARTER_TEMPLATES_PATH', plugin_dir_path( __FILE__ ) ); 21 21 define( 'KADENCE_STARTER_TEMPLATES_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) ); 22 define( 'KADENCE_STARTER_TEMPLATES_VERSION', '2.2. 8' );22 define( 'KADENCE_STARTER_TEMPLATES_VERSION', '2.2.9' ); 23 23 24 24 require_once plugin_dir_path( __FILE__ ) . 'vendor/vendor-prefixed/autoload.php'; -
kadence-starter-templates/trunk/readme.txt
r3284211 r3307280 4 4 Requires at least: 6.2 5 5 Tested up to: 6.8 6 Stable tag: 2.2. 86 Stable tag: 2.2.9 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 125 125 126 126 == Changelog == 127 128 = 2.2.9 = 129 Release Date: 5th June 2025 130 * Add: Display name step. 131 * Add: LearnDash Steps to site assist if active. 132 * Improve: Preview size on smaller laptops. 127 133 128 134 = 2.2.8 =
Note: See TracChangeset
for help on using the changeset viewer.