Starter Templates by Kadence WP - Version 1.1.4

Version Description

  • Add: New Elementor Template.
  • Add: New Gutenberg Template.
  • Fix: Issue with some missing images.
Download this release

Release Info

Developer britner
Plugin Icon 128x128 Starter Templates by Kadence WP
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

assets/css/starter-templates.css CHANGED
@@ -1 +1 @@
1
- .appearance_page_kadence-starter-templates #wpcontent{padding:0}.kadence_theme_dash_back{height:100%}.appearance_page_kadence-starter-templates .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:70px}.kadence_theme_dash_back .components-button.kt-import-back{border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0;height:100%;width:40px;color:#4a5568;border-radius:0}.kst-import-options-title{line-height:20px;padding-top:5px;font-size:12px;text-transform:uppercase;text-align:center;margin:0;color:#4a5568}.appearance_page_kadence-starter-templates .expanded .wp-full-overlay-footer{height:70px}.kadence_theme_dash_back .components-button.kt-import-back:hover{border-left:1px solid #cbd5e0;border-right:1px solid #cbd5e0;background:#f6f9fd}.kadence_theme_dash_back .components-button.kt-import-back svg{width:30px;height:30px;margin:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-button svg.kst-chev{width:16px}.components-modal__frame.kst-import-modal{min-width:460px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12),.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11){padding-top:20px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12) .kst-palette-bg:before,.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11) .kst-palette-bg:before{content:"dark";color:#111}.kst-import-selection-options{padding-bottom:90px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12) .kst-palette-bg,.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11) .kst-palette-bg{position:absolute;left:2px;top:-1px;right:2px;display:block;bottom:auto;opacity:.2;height:1px;border-radius:0}.components-modal__frame.kst-import-modal .components-button.is-primary{padding-left:30px;padding-top:16px;padding-right:30px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto}.kst-selected-font-pair{display:flex;align-items:center;margin-bottom:20px}.kst-selected-font-pair img{max-width:50px}h3.kst-selected-font-pair-title{margin-bottom:0}.kadence-starter-templates-preview .install-theme-info p.desc-small,.kadence-starter-templates-preview .kadence-starter-required-plugins p.desc-small{color:#4a5568;font-style:italic}.kadence-starter-templates-preview .install-theme-info .theme-screenshot{width:60px;margin:15px 15px 15px 0}.kadence-starter-templates-preview .theme-info-wrap{display:flex;align-items:center}.kadence-starter-templates-preview .install-theme-info{padding-bottom:0}.kst-choose-builder-wrap{min-height:calc( 100vh - 180px );max-width:400px;margin:0 auto;display:flex;align-items:center}.kadence_starter_builder_type .components-dropdown__content .components-button.components-menu-item__button{box-shadow:none !important}.kadence_starter_builder_type .components-dropdown__content .components-button.components-menu-item__button.active-item{border:1px solid #a0aec0}.kst-choose-builder-center{width:100%;background:#fff;padding:30px;border-radius:4px;box-shadow:0px 25px 35px -10px rgba(0,0,0,.05);position:relative}.kst-choose-builder-center .kst-overlay-saving{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.6);border-radius:4px}.kst-choose-builder-inner{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px}.kst-choose-builder-center h2.kst-choose-builder-title{margin-top:0;text-align:center;text-transform:uppercase;font-weight:300;margin-bottom:30px;font-size:20px;color:#718096}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type{font-size:20px;text-align:center;height:auto;padding:20px;display:flex;border:1px solid #cbd5e0;border-radius:4px;flex-direction:column;font-weight:500;text-transform:uppercase;color:#4a5568}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type svg{width:100px;height:100px;margin-bottom:10px;margin-right:0}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type:hover{color:#2d3748;border-color:#007cba}.components-button-group.kst-font-group{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:1em}.components-button-group.kst-font-group .components-button.kst-font-btn{display:block;height:auto;padding:5px 5px 0;border:1px solid #eee;border-radius:0;background:#fff;outline:0;box-shadow:none}.components-button-group.kst-font-group .components-button.kst-font-btn img.font-pairing{max-width:100%}.font-title-wrap,.palette-title-wrap{display:flex;align-items:center;justify-content:space-between}.font-title-wrap h2,.palette-title-wrap h2{font-size:16px;font-weight:600;color:#4a5568}.kadence-starter-required-plugins{padding:10px 20px 10px}.font-title-wrap,.kadence-starter-required-plugins{border-top:1px solid #e2e8f0;padding-top:6px;margin-top:18px}.kadence-starter-required-plugins h2.kst-required-title{font-size:16px;font-weight:600;color:#4a5568}.components-button-group.kst-font-group .components-button.kst-font-btn.active{border-color:#333}.components-button-group.kst-font-group .components-button.kst-font-btn:hover{border-color:#999}.kadence_theme_starter_dash_inner{margin:90px 20px 0}.kadence_theme_dash_head .st2{fill:#191717}.kadence_theme_dash_head{background:#fff;padding:0px 20px;height:60px;border-bottom:1px solid #ebebeb;box-shadow:0 0 6px -2px rgba(0,0,0,.1);position:fixed;top:32px;left:160px;z-index:100;right:0}.kadence_theme_dash_head h1{color:#2d3748;line-height:50px;padding:0;height:50px;margin:0;display:flex;align-items:center}.kadence_theme_dash_head .subtext{font-size:16px;color:#718096;display:inline-block;padding-left:10px}.kadence_theme_dash_head .kadence_theme_dash_head_container{margin:0 auto;display:flex;height:100%;align-items:center}.kadence_theme_dash_head .kadence_theme_dash_logo{width:50px;height:50px;padding-right:10px}.kadence_theme_dash_head .kadence_theme_dash_logo img{width:50px}.kadence_theme_dash_head .kadence_starter_builder_type{flex-grow:1;text-align:right}.kadence_theme_dash_head .kadence_theme_dash_version span{padding:5px;background:#4a5568;color:#fff}.folded .kadence_theme_dash_head{left:36px}@media only screen and (max-width: 960px){.auto-fold .kadence_theme_dash_head{left:36px}}@media screen and (max-width: 782px){.auto-fold .kadence_theme_dash_head{left:0px}}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar{border-color:#888}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar button.components-button{padding:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar button.components-button svg{width:40px;height:40px}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar .components-dropdown__content button.components-button svg{width:24px;height:24px;margin-left:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown__content{text-align:left}.wrap.kadence_theme_starter_dash{margin:0}.kadence_theme_dashboard{margin:0 auto}.templates-grid{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);grid-gap:2em}.kst-template-item .components-button.kst-import-btn{height:100%;width:100%;padding:0;display:block;border:0;background:transparent;position:absolute;overflow:hidden;box-shadow:0 0px 0px 0 rgba(0,0,0,0)}.kst-template-item .components-button.kst-import-btn img{max-width:100%;height:auto}.kst-grid-single-item{max-width:800px}.kst-grid-single-item .kst-template-item{overflow:hidden}.kst-grid-single-item .kst-import-btn{height:100%;width:100%;padding:0;display:block;border:0;background:transparent;position:absolute;box-shadow:0 0px 0px 0 rgba(0,0,0,0)}.kst-grid-single-item .kst-import-btn img{max-width:100%;height:auto}.components-modal__frame.kst-import-modal{max-width:600px}.components-modal__frame.kst-import-modal .components-button.is-primary{margin-top:20px}.kadence_starter_templates_notice{background:transparent;margin-bottom:20px;border:1px solid #cbd5e0;padding:10px;color:#4a5568;font-weight:normal}.kst-import-modal ul.kadence-required-wrap{margin-bottom:20px}.components-modal__frame.kst-import-modal{-webkit-animation:none !important;animation:none !important}.kst-import-modal h3{font-size:16px}.kadence_starter_templates_response{background:#fffaf0;margin-bottom:20px;border:1px solid #ed8936;padding:20px;color:#c05621;font-weight:bold}.kst-import-selection-title .components-button.kt-import-back{border:1px solid;margin-right:10px}.kst-import-selection-title{display:flex;align-items:center;margin-bottom:10px}.kst-grid-single-item-single-page .kst-template-item{padding-bottom:90%}.kadence_starter_templates_response h2{margin-bottom:10px;margin-top:0}.kst-template-item{position:relative;height:0;box-shadow:0 1px 2px rgba(0,0,0,.15);padding-bottom:65%}.kst-template-item::after{content:"";position:absolute;z-index:-1;width:100%;height:100%;opacity:0;border-radius:5px;box-shadow:0 15px 15px -10px rgba(0,0,0,.1);transition:opacity .3s ease-in-out}.kst-template-item:hover::after{opacity:1}.sidebar-section .components-panel__body.is-opened{padding:20px}.sidebar-section h2:first-child,.tab-section h2:first-child{margin-top:0}.side-panel .components-panel+.components-panel{margin-top:1rem}.tab-section .components-panel__body.is-opened{padding:25px}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button{border:1px solid transparent;background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-left:0;font-weight:500}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button:hover{box-shadow:none !important}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button:not(.active-tab):hover{color:#007cba !important;background:transparent !important}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button.active-tab{background:#fff;border:1px solid #e2e4e7;border-bottom-color:transparent}.kadence-dashboard-tab-panel .components-tab-panel__tabs{margin-bottom:-1px}.two-col-grid{display:grid;grid-gap:1rem;grid-template-columns:1fr 1fr 1fr}h3.section-sub-head{background:#edf2f7;padding:10px;color:#4a5568;font-size:14px;text-transform:uppercase;margin-bottom:1rem;margin-top:2rem}.link-item{border:1px solid #e2e8f0;padding:20px;border-radius:4px;display:flex;flex-flow:column nowrap}.link-item h4{margin:0}.dashboard-pro-settings{margin-top:2rem}.link-item .link-item-foot{margin-top:auto;display:flex;align-items:center}.link-item .link-item-foot .components-spinner{margin-top:0}.link-item .link-item-foot .components-toggle-control .components-base-control__field{margin-bottom:0}.link-item .link-item-foot .components-toggle-control .components-base-control__field .components-form-toggle{margin-right:0}.link-item .link-item-foot>*:first-child{flex-grow:2}.link-item a{display:block;background:transparent;color:#4a5568}.link-item a:hover{color:#007cba}span.kt-license-status{padding:4px;margin-left:10px;font-size:14px;text-transform:uppercase}span.kt-license-status.k-inactive{color:#c05621 !important;background:#fffaf0 !important}span.kt-license-status.k-active{color:#2b6cb0 !important;background:#ebf8ff !important}.license-section h2{display:flex;margin-top:0;align-items:center;justify-content:space-between}.license-section table.form-table{display:block}.license-section table.form-table tbody{display:block}.license-section table.form-table td,.license-section table.form-table tr{display:block;padding:0;width:100%}.license-section .form-table th{padding:0;width:100%;margin-bottom:4px;display:block;color:#4a5568}.license-section p.submit{padding:0;margin-top:10px}.license-section table.form-table input[type=text]{width:100%}.kadence-starter-templates-preview .install-theme-info .theme-name{font-size:20px}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions .button{width:100%;line-height:1;min-height:35px;padding:0}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions{padding:5px}.kadence-starter-templates-preview button.components-button.kst-palette-btn{border-radius:4px !important;padding:5px 5px 5px 7px;height:auto;display:inline-flex;align-items:flex-end;justify-content:center;border:1px solid transparent;position:relative;box-shadow:none !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn .kst-palette-bg{display:none}.kst-template-item .components-button.kst-import-btn:hover,.kst-template-item .components-button.kst-import-btn:focus{box-shadow:0 7px 15px 0 rgba(0,0,0,.15) !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn:hover,.kadence-starter-templates-preview button.components-button.kst-palette-btn:focus{border:1px solid #999;box-shadow:none !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary,.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary:hover,.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary:focus{background:#fff;border:1px solid #333;box-shadow:none}.demo-title{height:30px;margin:0;padding:10px 0;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);background:#fff;position:absolute;bottom:0;left:0;width:100%}.demo-title h4{margin:0;font-size:14px;text-align:left;line-height:30px;padding:0 20px;color:#1e1e1e}.kadence-starter-templates-preview .components-button-group.kst-palette-group{display:grid;grid-template-columns:1fr 1fr;grid-gap:5px}@media(max-width: 1860px){.kadence-starter-templates-preview .kadence-swatche-item-wrap{width:22px !important;height:22px !important}h2.palette-title{font-size:15px}}@media(max-width: 1059px){.templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}p.install-third-party-notice{max-width:540px;background:#fffaf0;padding:1em;color:#c05621;border:1px solid #c05621;font-weight:600}.plugin-install-required{display:block;font-style:oblique;font-weight:400;color:#c05621}.kadence-required-wrap{font-weight:bold;list-style:disc;padding-left:1.4em}span.plugin-status{text-transform:uppercase;color:#718096}.kst-palette-btn.kst-selected-color-palette{display:flex;margin-bottom:20px}.finshed-notice-success .button-primary.button.kadence-starter-templates-finish-button{padding:10px 16px;font-size:18px}.kst-grid-single-site{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);grid-gap:4em}.kst-import-selection{height:100%;max-height:calc(100vh - 140px);overflow-y:scroll}.kst-import-grid-title h2{font-size:14px;line-height:20px;margin:10px 0;color:#4a5568}.kst-import-selection-title h2{font-size:16px;line-height:26px;margin:0 0 10px 0;color:#2d3748}.kst-import-single-selection-options-wrap{background:#fff;padding:35px 35px 35px;max-width:700px;width:100%;box-sizing:border-box}.appearance_page_kadence-starter-templates #wpbody-content{padding-bottom:25px}.desc-small.note-about-colors{font-size:14px;color:#718096;margin:1.5em 0}.kst-import-selection-options .kst-template-item{padding-bottom:126%}.kst-import-selection img{max-width:100%}.kst-import-selection-title h2 span{font-weight:bold;color:#000}.appearance_page_kadence-starter-templates .update-nag.notice,.appearance_page_kadence-starter-templates #wpfooter{display:none}.kadence_theme_starter_dashboard>.notice{display:none}.demo-title h4 span{position:absolute;bottom:100%;right:0;padding:5px 15px;background:rgba(0,0,0,.7);color:#fff;font-size:14px;font-weight:400;opacity:0}.kst-import-btn:hover .demo-title h4 span{opacity:1}.kst-import-selection-options .kst-template-item .components-button.kst-import-btn .LazyLoad{overflow-y:hidden;position:absolute;top:0;left:0;right:0;bottom:40px}.kst-import-single-selection-options-wrap .components-button.is-primary{padding-left:30px;padding-top:16px;padding-right:30px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto;margin-top:20px}.kst-import-selection-footer{position:fixed;padding:10px 20px;bottom:0;background:#fff;right:0;left:0;margin-left:160px;z-index:100;display:flex;justify-content:space-between;align-items:center}button.components-button.kt-import-fullsite.is-primary{padding-left:30px;padding-top:16px;padding-right:30px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto}.folded .kst-import-selection-footer{margin-left:36px}@media(max-width: 1059px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1060px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1660px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 2360px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}.kst-import-single-selection-options-wrap .components-base-control.components-toggle-control{margin-bottom:15px;border-top:1px solid #e2e8f0;padding-top:15px}.components-modal__frame.ksp-confirm-modal{max-width:500px}.ksp-override-model-buttons{text-align:right}.ksp-override-model-buttons .components-button{margin-left:10px}.main-panel{margin:0 auto;max-width:1260px}.main-panel .kst-grid-single-site{grid-template-columns:minmax(0, 2fr) minmax(0, 1fr);grid-gap:3em}.kst-import-selection-bottom{text-align:center;margin-top:40px}.kadence_theme_dash_head .kadence_theme_dash_head_container{margin:0 auto;max-width:1260px}.kst-template-item{padding-bottom:126%}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions{display:flex}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions .button:not(.button-primary){margin-right:10px}@media(max-width: 1059px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1060px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1660px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}
1
+ .appearance_page_kadence-starter-templates #wpcontent{padding:0}.kadence_theme_dash_back{height:100%}.appearance_page_kadence-starter-templates .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:70px}.kadence_theme_dash_back .components-button.kt-import-back{border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0;height:100%;width:40px;color:#4a5568;border-radius:0}.kst-import-options-title{line-height:20px;padding-top:5px;font-size:12px;text-transform:uppercase;text-align:center;margin:0;color:#4a5568}.appearance_page_kadence-starter-templates .expanded .wp-full-overlay-footer{height:70px}.kadence_theme_dash_back .components-button.kt-import-back:hover{border-left:1px solid #cbd5e0;border-right:1px solid #cbd5e0;background:#f6f9fd}.kadence_theme_dash_back .components-button.kt-import-back svg{width:30px;height:30px;margin:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-button svg.kst-chev{width:16px}.components-modal__frame.kst-import-modal{min-width:460px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12),.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11){padding-top:20px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12) .kst-palette-bg:before,.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11) .kst-palette-bg:before{content:"dark";color:#111}.kst-import-selection-options{padding-bottom:90px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12) .kst-palette-bg,.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11) .kst-palette-bg{position:absolute;left:2px;top:-1px;right:2px;display:block;bottom:auto;opacity:.2;height:1px;border-radius:0}.components-modal__frame.kst-import-modal .components-button.is-primary{padding-left:30px;padding-top:16px;padding-right:30px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto}.kst-selected-font-pair{display:flex;align-items:center;margin-bottom:20px}.kst-selected-font-pair img{max-width:50px}h3.kst-selected-font-pair-title{margin-bottom:0}.kadence-starter-templates-preview .install-theme-info p.desc-small,.kadence-starter-templates-preview .kadence-starter-required-plugins p.desc-small{color:#4a5568;font-style:italic}.kadence-starter-templates-preview .install-theme-info .theme-screenshot{width:60px;margin:15px 15px 15px 0}.kadence-starter-templates-preview .theme-info-wrap{display:flex;align-items:center}.kadence-starter-templates-preview .install-theme-info{padding-bottom:0}.kst-choose-builder-wrap{min-height:calc( 100vh - 180px );max-width:400px;margin:0 auto;display:flex;align-items:center}.kadence_starter_builder_type .components-dropdown__content .components-button.components-menu-item__button{box-shadow:none !important}.kadence_starter_builder_type .components-dropdown__content .components-button.components-menu-item__button.active-item{border:1px solid #a0aec0}.kst-choose-builder-center{width:100%;background:#fff;padding:30px;border-radius:4px;box-shadow:0px 25px 35px -10px rgba(0,0,0,.05);position:relative}.kst-choose-builder-center .kst-overlay-saving{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.6);border-radius:4px}.kst-choose-builder-inner{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px}.kst-choose-builder-center h2.kst-choose-builder-title{margin-top:0;text-align:center;text-transform:uppercase;font-weight:300;margin-bottom:30px;font-size:20px;color:#718096}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type{font-size:20px;text-align:center;height:auto;padding:20px;display:flex;border:1px solid #cbd5e0;border-radius:4px;flex-direction:column;font-weight:500;text-transform:uppercase;color:#4a5568}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type svg{width:100px;height:100px;margin-bottom:10px;margin-right:0}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type:hover{color:#2d3748;border-color:#007cba}.components-button-group.kst-font-group{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:1em}.components-button-group.kst-font-group .components-button.kst-font-btn{display:block;height:auto;padding:5px 5px 0;border:1px solid #eee;border-radius:0;background:#fff;outline:0;box-shadow:none}.components-button-group.kst-font-group .components-button.kst-font-btn img.font-pairing{max-width:100%}.font-title-wrap,.palette-title-wrap{display:flex;align-items:center;justify-content:space-between}.font-title-wrap h2,.palette-title-wrap h2{font-size:16px;font-weight:600;color:#4a5568}.kadence-starter-required-plugins{padding:10px 20px 10px}.font-title-wrap,.kadence-starter-required-plugins{border-top:1px solid #e2e8f0;padding-top:6px;margin-top:18px}.kadence-starter-required-plugins h2.kst-required-title{font-size:16px;font-weight:600;color:#4a5568}.components-button-group.kst-font-group .components-button.kst-font-btn.active{border-color:#333}.components-button-group.kst-font-group .components-button.kst-font-btn:hover{border-color:#999}.kadence_theme_starter_dash_inner{margin:90px 20px 0}.kadence_theme_dash_head .st2{fill:#191717}.install-theme-info .components-button.has-icon .dashicons-image-rotate{width:10px;height:10px;font-size:10px}.kadence_theme_dash_head{background:#fff;padding:0px 20px;height:60px;border-bottom:1px solid #ebebeb;box-shadow:0 0 6px -2px rgba(0,0,0,.1);position:fixed;top:32px;left:160px;z-index:100;right:0}.kadence_theme_dash_head h1{color:#2d3748;line-height:50px;padding:0;height:50px;margin:0;display:flex;align-items:center}.kadence_theme_dash_head .subtext{font-size:16px;color:#718096;display:inline-block;padding-left:10px}.kadence_theme_dash_head .kadence_theme_dash_head_container{margin:0 auto;display:flex;height:100%;align-items:center}.kadence_theme_dash_head .kadence_theme_dash_logo{width:50px;height:50px;padding-right:10px}.kadence_theme_dash_head .kadence_theme_dash_logo img{width:50px}.kadence_theme_dash_head .kadence_starter_builder_type{flex-grow:1;text-align:right}.kadence_theme_dash_head .kadence_theme_dash_version span{padding:5px;background:#4a5568;color:#fff}.folded .kadence_theme_dash_head{left:36px}@media only screen and (max-width: 960px){.auto-fold .kadence_theme_dash_head{left:36px}}@media screen and (max-width: 782px){.auto-fold .kadence_theme_dash_head{left:0px}}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar{border-color:#888}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar button.components-button{padding:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar button.components-button svg{width:40px;height:40px}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar .components-dropdown__content button.components-button svg{width:24px;height:24px;margin-left:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown__content{text-align:left}.wrap.kadence_theme_starter_dash{margin:0}.kadence_theme_dashboard{margin:0 auto}.templates-grid{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);grid-gap:2em}.kst-template-item .components-button.kst-import-btn{height:100%;width:100%;padding:0;display:block;border:0;background:transparent;position:absolute;overflow:hidden;box-shadow:0 0px 0px 0 rgba(0,0,0,0)}.kst-template-item .components-button.kst-import-btn img{max-width:100%;height:auto}.kst-grid-single-item{max-width:800px}.kst-grid-single-item .kst-template-item{overflow:hidden}.kst-grid-single-item .kst-import-btn{height:100%;width:100%;padding:0;display:block;border:0;background:transparent;position:absolute;box-shadow:0 0px 0px 0 rgba(0,0,0,0)}.kst-grid-single-item .kst-import-btn img{max-width:100%;height:auto}.components-modal__frame.kst-import-modal{max-width:600px}.components-modal__frame.kst-import-modal .components-button.is-primary{margin-top:20px}.kadence_starter_templates_notice{background:transparent;margin-bottom:20px;border:1px solid #cbd5e0;padding:10px;color:#4a5568;font-weight:normal}.kst-import-modal ul.kadence-required-wrap{margin-bottom:20px}.components-modal__frame.kst-import-modal{-webkit-animation:none !important;animation:none !important}.kst-import-modal h3{font-size:16px}.kadence_starter_templates_response{background:#fffaf0;margin-bottom:20px;border:1px solid #ed8936;padding:20px;color:#c05621;font-weight:bold}.kst-import-selection-title .components-button.kt-import-back{border:1px solid;margin-right:10px}.kst-import-selection-title{display:flex;align-items:center;margin-bottom:10px}.kst-grid-single-item-single-page .kst-template-item{padding-bottom:90%}.kadence_starter_templates_response h2{margin-bottom:10px;margin-top:0}.kst-template-item{position:relative;height:0;box-shadow:0 1px 2px rgba(0,0,0,.15);padding-bottom:65%}.kst-template-item::after{content:"";position:absolute;z-index:-1;width:100%;height:100%;opacity:0;border-radius:5px;box-shadow:0 15px 15px -10px rgba(0,0,0,.1);transition:opacity .3s ease-in-out}.kst-template-item:hover::after{opacity:1}.sidebar-section .components-panel__body.is-opened{padding:20px}.sidebar-section h2:first-child,.tab-section h2:first-child{margin-top:0}.side-panel .components-panel+.components-panel{margin-top:1rem}.tab-section .components-panel__body.is-opened{padding:25px}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button{border:1px solid transparent;background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-left:0;font-weight:500}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button:hover{box-shadow:none !important}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button:not(.active-tab):hover{color:#007cba !important;background:transparent !important}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button.active-tab{background:#fff;border:1px solid #e2e4e7;border-bottom-color:transparent}.kadence-dashboard-tab-panel .components-tab-panel__tabs{margin-bottom:-1px}.two-col-grid{display:grid;grid-gap:1rem;grid-template-columns:1fr 1fr 1fr}h3.section-sub-head{background:#edf2f7;padding:10px;color:#4a5568;font-size:14px;text-transform:uppercase;margin-bottom:1rem;margin-top:2rem}.link-item{border:1px solid #e2e8f0;padding:20px;border-radius:4px;display:flex;flex-flow:column nowrap}.link-item h4{margin:0}.dashboard-pro-settings{margin-top:2rem}.link-item .link-item-foot{margin-top:auto;display:flex;align-items:center}.link-item .link-item-foot .components-spinner{margin-top:0}.link-item .link-item-foot .components-toggle-control .components-base-control__field{margin-bottom:0}.link-item .link-item-foot .components-toggle-control .components-base-control__field .components-form-toggle{margin-right:0}.link-item .link-item-foot>*:first-child{flex-grow:2}.link-item a{display:block;background:transparent;color:#4a5568}.link-item a:hover{color:#007cba}span.kt-license-status{padding:4px;margin-left:10px;font-size:14px;text-transform:uppercase}span.kt-license-status.k-inactive{color:#c05621 !important;background:#fffaf0 !important}span.kt-license-status.k-active{color:#2b6cb0 !important;background:#ebf8ff !important}.license-section h2{display:flex;margin-top:0;align-items:center;justify-content:space-between}.license-section table.form-table{display:block}.license-section table.form-table tbody{display:block}.license-section table.form-table td,.license-section table.form-table tr{display:block;padding:0;width:100%}.license-section .form-table th{padding:0;width:100%;margin-bottom:4px;display:block;color:#4a5568}.license-section p.submit{padding:0;margin-top:10px}.license-section table.form-table input[type=text]{width:100%}.kadence-starter-templates-preview .install-theme-info .theme-name{font-size:20px}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions .button{width:100%;line-height:1;min-height:35px;padding:0}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions{padding:5px}.kadence-starter-templates-preview button.components-button.kst-palette-btn{border-radius:4px !important;padding:5px 5px 5px 7px;height:auto;display:inline-flex;align-items:flex-end;justify-content:center;border:1px solid transparent;position:relative;box-shadow:none !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn .kst-palette-bg{display:none}.kst-template-item .components-button.kst-import-btn:hover,.kst-template-item .components-button.kst-import-btn:focus{box-shadow:0 7px 15px 0 rgba(0,0,0,.15) !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn:hover,.kadence-starter-templates-preview button.components-button.kst-palette-btn:focus{border:1px solid #999;box-shadow:none !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary,.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary:hover,.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary:focus{background:#fff;border:1px solid #333;box-shadow:none}.demo-title{height:30px;margin:0;padding:10px 0;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);background:#fff;position:absolute;bottom:0;left:0;width:100%}.demo-title h4{margin:0;font-size:14px;text-align:left;line-height:30px;padding:0 20px;color:#1e1e1e}.kadence-starter-templates-preview .components-button-group.kst-palette-group{display:grid;grid-template-columns:1fr 1fr;grid-gap:5px}@media(max-width: 1860px){.kadence-starter-templates-preview .kadence-swatche-item-wrap{width:22px !important;height:22px !important}h2.palette-title{font-size:15px}}@media(max-width: 1059px){.templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}p.install-third-party-notice{max-width:540px;background:#fffaf0;padding:1em;color:#c05621;border:1px solid #c05621;font-weight:600}.plugin-install-required{display:block;font-style:oblique;font-weight:400;color:#c05621}.kadence-required-wrap{font-weight:bold;list-style:disc;padding-left:1.4em}span.plugin-status{text-transform:uppercase;color:#718096}.kst-palette-btn.kst-selected-color-palette{display:flex;margin-bottom:20px}.finshed-notice-success .button-primary.button.kadence-starter-templates-finish-button{padding:10px 16px;font-size:18px}.kst-grid-single-site{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);grid-gap:4em}.kst-import-selection{height:100%;max-height:calc(100vh - 140px);overflow-y:scroll}.kst-import-grid-title h2{font-size:14px;line-height:20px;margin:10px 0;color:#4a5568}.kst-import-selection-title h2{font-size:16px;line-height:26px;margin:0 0 10px 0;color:#2d3748}.kst-import-single-selection-options-wrap{background:#fff;padding:35px 35px 35px;max-width:700px;width:100%;box-sizing:border-box}.appearance_page_kadence-starter-templates #wpbody-content{padding-bottom:25px}.desc-small.note-about-colors{font-size:14px;color:#718096;margin:1.5em 0}.kst-import-selection-options .kst-template-item{padding-bottom:126%}.kst-import-selection img{max-width:100%}.kst-import-selection-title h2 span{font-weight:bold;color:#000}.appearance_page_kadence-starter-templates .update-nag.notice,.appearance_page_kadence-starter-templates #wpfooter{display:none}.kadence_theme_starter_dashboard>.notice{display:none}.demo-title h4 span{position:absolute;bottom:100%;right:0;padding:5px 15px;background:rgba(0,0,0,.7);color:#fff;font-size:14px;font-weight:400;opacity:0}.kst-import-btn:hover .demo-title h4 span{opacity:1}.kst-import-selection-options .kst-template-item .components-button.kst-import-btn .LazyLoad{overflow-y:hidden;position:absolute;top:0;left:0;right:0;bottom:40px}.kst-import-single-selection-options-wrap .components-button.is-primary{padding-left:30px;padding-top:16px;padding-right:30px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto;margin-top:20px}.kst-import-selection-footer{position:fixed;padding:10px 20px;bottom:0;background:#fff;right:0;left:0;margin-left:160px;z-index:100;display:flex;justify-content:space-between;align-items:center}button.components-button.kt-import-fullsite.is-primary{padding-left:30px;padding-top:16px;padding-right:30px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto}.folded .kst-import-selection-footer{margin-left:36px}@media(max-width: 1059px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1060px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1660px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 2360px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}.kst-import-single-selection-options-wrap .components-base-control.components-toggle-control{margin-bottom:15px;border-top:1px solid #e2e8f0;padding-top:15px}.components-modal__frame.ksp-confirm-modal{max-width:500px}.ksp-override-model-buttons{text-align:right}.ksp-override-model-buttons .components-button{margin-left:10px}.main-panel{margin:0 auto;max-width:1260px}.main-panel .kst-grid-single-site{grid-template-columns:minmax(0, 2fr) minmax(0, 1fr);grid-gap:3em}.kst-import-selection-bottom{text-align:center;margin-top:40px}.kadence_theme_dash_head .kadence_theme_dash_head_container{margin:0 auto;max-width:1260px}.kst-template-item{padding-bottom:126%}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions{display:flex}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions .button:not(.button-primary){margin-right:10px}@media(max-width: 1059px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1060px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1660px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}
class-kadence-starter-templates.php CHANGED
@@ -424,6 +424,27 @@ class Starter_Templates {
424
  update_option( 'page_for_posts', $blogpage->ID ); // Blog Page.
425
  }
426
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
  } elseif ( 'g01' === $selected_import['import_file_name'] ) {
428
  // Assign menus to their locations.
429
  $main_menu = get_term_by( 'name', 'Main Real Estate', 'nav_menu' );
@@ -468,6 +489,28 @@ class Starter_Templates {
468
  update_option( 'page_on_front', $homepage->ID ); // Front Page.
469
  }
470
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
471
  }
472
  if ( $selected_palette && ! empty( $selected_palette ) ) {
473
  $palette_presets = json_decode( '{"base":[{"color":"#2B6CB0"},{"color":"#265E9A"},{"color":"#222222"},{"color":"#3B3B3B"},{"color":"#515151"},{"color":"#626262"},{"color":"#E1E1E1"},{"color":"#F7F7F7"},{"color":"#ffffff"}],"bright":[{"color":"#255FDD"},{"color":"#00F2FF"},{"color":"#1A202C"},{"color":"#2D3748"},{"color":"#4A5568"},{"color":"#718096"},{"color":"#EDF2F7"},{"color":"#F7FAFC"},{"color":"#ffffff"}],"darkmode":[{"color":"#3296ff"},{"color":"#003174"},{"color":"#ffffff"},{"color":"#f7fafc"},{"color":"#edf2f7"},{"color":"#cbd2d9"},{"color":"#2d3748"},{"color":"#252c39"},{"color":"#1a202c"}],"orange":[{"color":"#e47b02"},{"color":"#ed8f0c"},{"color":"#1f2933"},{"color":"#3e4c59"},{"color":"#52606d"},{"color":"#7b8794"},{"color":"#f3f4f7"},{"color":"#f9f9fb"},{"color":"#ffffff"}],"pinkish":[{"color":"#E21E51"},{"color":"#4d40ff"},{"color":"#040037"},{"color":"#032075"},{"color":"#514d7c"},{"color":"#666699"},{"color":"#deddeb"},{"color":"#efeff5"},{"color":"#f8f9fa"}],"pinkishdark":[{"color":"#E21E51"},{"color":"#4d40ff"},{"color":"#f8f9fa"},{"color":"#efeff5"},{"color":"#deddeb"},{"color":"#c3c2d6"},{"color":"#514d7c"},{"color":"#221e5b"},{"color":"#040037"}],"green":[{"color":"#049f82"},{"color":"#008f72"},{"color":"#222222"},{"color":"#353535"},{"color":"#454545"},{"color":"#676767"},{"color":"#eeeeee"},{"color":"#f7f7f7"},{"color":"#ffffff"}],"fire":[{"color":"#dd6b20"},{"color":"#cf3033"},{"color":"#27241d"},{"color":"#423d33"},{"color":"#504a40"},{"color":"#625d52"},{"color":"#e8e6e1"},{"color":"#faf9f7"},{"color":"#ffffff"}],"mint":[{"color":"#2cb1bc"},{"color":"#13919b"},{"color":"#0f2a43"},{"color":"#133453"},{"color":"#587089"},{"color":"#829ab1"},{"color":"#e0fcff"},{"color":"#f5f7fa"},{"color":"#ffffff"}],"rich":[{"color":"#295CFF"},{"color":"#0E94FF"},{"color":"#1C0D5A"},{"color":"#3D3D3D"},{"color":"#57575D"},{"color":"#636363"},{"color":"#E1EBEE"},{"color":"#EFF7FB"},{"color":"#ffffff"}],"fem":[{"color":"#D86C97"},{"color":"#282828"},{"color":"#282828"},{"color":"#333333"},{"color":"#4d4d4d"},{"color":"#646464"},{"color":"#f7dede"},{"color":"#F6F2EF"},{"color":"#ffffff"}],"hot":[{"color":"#FF5698"},{"color":"#000000"},{"color":"#020202"},{"color":"#020202"},{"color":"#4E4E4E"},{"color":"#808080"},{"color":"#FDEDEC"},{"color":"#FDF6EE"},{"color":"#ffffff"}],"bold":[{"color":"#000000"},{"color":"#D1A155"},{"color":"#000000"},{"color":"#010101"},{"color":"#111111"},{"color":"#282828"},{"color":"#F6E7BC"},{"color":"#F9F7F7"},{"color":"#ffffff"}],"teal":[{"color":"#7ACFC4"},{"color":"#044355"},{"color":"#000000"},{"color":"#010101"},{"color":"#111111"},{"color":"#282828"},{"color":"#F5ECE5"},{"color":"#F9F7F7"},{"color":"#ffffff"}]}', true );
@@ -1177,6 +1220,48 @@ class Starter_Templates {
1177
  ),
1178
  ),
1179
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1180
  'g01' => array(
1181
  'import_file_name' => 'g01',
1182
  'categories' => array(),
@@ -1246,6 +1331,42 @@ class Starter_Templates {
1246
  ),
1247
  ),
1248
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1249
  );
1250
  return $demos;
1251
  }
@@ -1284,7 +1405,7 @@ class Starter_Templates {
1284
  define( 'KADENCE_STARTER_TEMPLATES_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
1285
  }
1286
  if ( ! defined( 'KADENCE_STARTER_TEMPLATES_VERSION' ) ) {
1287
- define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.1.3' );
1288
  }
1289
  }
1290
  /**
@@ -1575,6 +1696,55 @@ class Starter_Templates {
1575
  ),
1576
  array(
1577
  'key' => 3,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1578
  'slug' => 'ldcourse',
1579
  'name' => __( 'LearnDash Course', 'kadence-starter-templates' ),
1580
  'keywords' => array(
@@ -1611,7 +1781,7 @@ class Starter_Templates {
1611
  'image' => 'https://startertemplatecloud.com/importer-content/og02/images/preview-image.jpg',
1612
  ),
1613
  array(
1614
- 'key' => 4,
1615
  'slug' => 'food',
1616
  'name' => __( 'Recipe Blog', 'kadence-starter-templates' ),
1617
  'keywords' => array(
@@ -1648,7 +1818,7 @@ class Starter_Templates {
1648
  'image' => 'https://kadence.design/importer/kadence/recipe_blog/preview-image.jpg',
1649
  ),
1650
  array(
1651
- 'key' => 5,
1652
  'slug' => 'yoga',
1653
  'name' => __( 'Yoga Studio', 'kadence-starter-templates' ),
1654
  'keywords' => array(
@@ -1696,7 +1866,7 @@ class Starter_Templates {
1696
  'image' => 'https://startertemplatecloud.com/importer-content/og05/images/preview-image.jpg',
1697
  ),
1698
  array(
1699
- 'key' => 6,
1700
  'slug' => 'saas',
1701
  'name' => __( 'Saas', 'kadence-starter-templates' ),
1702
  'keywords' => array(
@@ -1744,7 +1914,7 @@ class Starter_Templates {
1744
  'image' => 'https://startertemplatecloud.com/importer-content/og03/images/preview-image.jpg',
1745
  ),
1746
  array(
1747
- 'key' => 7,
1748
  'slug' => 'shopping',
1749
  'name' => __( 'Shopping', 'kadence-starter-templates' ),
1750
  'keywords' => array(
@@ -1976,6 +2146,62 @@ class Starter_Templates {
1976
  ),
1977
  'image' => 'https://startertemplatecloud.com/importer-content/e06/images/preview-image.jpg',
1978
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1979
  );
1980
  $palettes = array(
1981
  array(
@@ -2163,6 +2389,7 @@ class Starter_Templates {
2163
  );
2164
  $old_data = get_option( '_kadence_starter_templates_last_import_data', array() );
2165
  $has_content = false;
 
2166
  if ( ! empty( $old_data ) ) {
2167
  $has_content = true;
2168
  $has_previous = true;
424
  update_option( 'page_for_posts', $blogpage->ID ); // Blog Page.
425
  }
426
 
427
+ } elseif ( 'e05' === $selected_import['import_file_name'] ) {
428
+ // Assign menus to their locations.
429
+ $main_menu = get_term_by( 'name', 'WebAgency Menu', 'nav_menu' );
430
+
431
+ set_theme_mod(
432
+ 'nav_menu_locations',
433
+ array(
434
+ 'primary' => $main_menu->term_id,
435
+ 'mobile' => $main_menu->term_id,
436
+ )
437
+ );
438
+
439
+ // Assign front page.
440
+ $homepage = get_page_by_title( 'Home' );
441
+ if ( isset( $homepage ) && $homepage->ID ) {
442
+ update_option( 'show_on_front', 'page' );
443
+ update_option( 'page_on_front', $homepage->ID ); // Front Page.
444
+ $blogpage = get_page_by_title( 'Blog' );
445
+ update_option( 'page_for_posts', $blogpage->ID ); // Blog Page.
446
+ }
447
+
448
  } elseif ( 'g01' === $selected_import['import_file_name'] ) {
449
  // Assign menus to their locations.
450
  $main_menu = get_term_by( 'name', 'Main Real Estate', 'nav_menu' );
489
  update_option( 'page_on_front', $homepage->ID ); // Front Page.
490
  }
491
 
492
+ } elseif ( 'g03' === $selected_import['import_file_name'] ) {
493
+
494
+ // Assign menus to their locations.
495
+ $main_menu = get_term_by( 'name', 'Course Menu', 'nav_menu' );
496
+
497
+ set_theme_mod(
498
+ 'nav_menu_locations',
499
+ array(
500
+ 'primary' => $main_menu->term_id,
501
+ 'mobile' => $main_menu->term_id,
502
+ )
503
+ );
504
+
505
+ // Assign front page.
506
+ $homepage = get_page_by_title( 'Home' );
507
+ if ( isset( $homepage ) && $homepage->ID ) {
508
+ update_option( 'show_on_front', 'page' );
509
+ update_option( 'page_on_front', $homepage->ID ); // Front Page.
510
+ $blogpage = get_page_by_title( 'Blog' );
511
+ update_option( 'page_for_posts', $blogpage->ID ); // Blog Page.
512
+ }
513
+
514
  }
515
  if ( $selected_palette && ! empty( $selected_palette ) ) {
516
  $palette_presets = json_decode( '{"base":[{"color":"#2B6CB0"},{"color":"#265E9A"},{"color":"#222222"},{"color":"#3B3B3B"},{"color":"#515151"},{"color":"#626262"},{"color":"#E1E1E1"},{"color":"#F7F7F7"},{"color":"#ffffff"}],"bright":[{"color":"#255FDD"},{"color":"#00F2FF"},{"color":"#1A202C"},{"color":"#2D3748"},{"color":"#4A5568"},{"color":"#718096"},{"color":"#EDF2F7"},{"color":"#F7FAFC"},{"color":"#ffffff"}],"darkmode":[{"color":"#3296ff"},{"color":"#003174"},{"color":"#ffffff"},{"color":"#f7fafc"},{"color":"#edf2f7"},{"color":"#cbd2d9"},{"color":"#2d3748"},{"color":"#252c39"},{"color":"#1a202c"}],"orange":[{"color":"#e47b02"},{"color":"#ed8f0c"},{"color":"#1f2933"},{"color":"#3e4c59"},{"color":"#52606d"},{"color":"#7b8794"},{"color":"#f3f4f7"},{"color":"#f9f9fb"},{"color":"#ffffff"}],"pinkish":[{"color":"#E21E51"},{"color":"#4d40ff"},{"color":"#040037"},{"color":"#032075"},{"color":"#514d7c"},{"color":"#666699"},{"color":"#deddeb"},{"color":"#efeff5"},{"color":"#f8f9fa"}],"pinkishdark":[{"color":"#E21E51"},{"color":"#4d40ff"},{"color":"#f8f9fa"},{"color":"#efeff5"},{"color":"#deddeb"},{"color":"#c3c2d6"},{"color":"#514d7c"},{"color":"#221e5b"},{"color":"#040037"}],"green":[{"color":"#049f82"},{"color":"#008f72"},{"color":"#222222"},{"color":"#353535"},{"color":"#454545"},{"color":"#676767"},{"color":"#eeeeee"},{"color":"#f7f7f7"},{"color":"#ffffff"}],"fire":[{"color":"#dd6b20"},{"color":"#cf3033"},{"color":"#27241d"},{"color":"#423d33"},{"color":"#504a40"},{"color":"#625d52"},{"color":"#e8e6e1"},{"color":"#faf9f7"},{"color":"#ffffff"}],"mint":[{"color":"#2cb1bc"},{"color":"#13919b"},{"color":"#0f2a43"},{"color":"#133453"},{"color":"#587089"},{"color":"#829ab1"},{"color":"#e0fcff"},{"color":"#f5f7fa"},{"color":"#ffffff"}],"rich":[{"color":"#295CFF"},{"color":"#0E94FF"},{"color":"#1C0D5A"},{"color":"#3D3D3D"},{"color":"#57575D"},{"color":"#636363"},{"color":"#E1EBEE"},{"color":"#EFF7FB"},{"color":"#ffffff"}],"fem":[{"color":"#D86C97"},{"color":"#282828"},{"color":"#282828"},{"color":"#333333"},{"color":"#4d4d4d"},{"color":"#646464"},{"color":"#f7dede"},{"color":"#F6F2EF"},{"color":"#ffffff"}],"hot":[{"color":"#FF5698"},{"color":"#000000"},{"color":"#020202"},{"color":"#020202"},{"color":"#4E4E4E"},{"color":"#808080"},{"color":"#FDEDEC"},{"color":"#FDF6EE"},{"color":"#ffffff"}],"bold":[{"color":"#000000"},{"color":"#D1A155"},{"color":"#000000"},{"color":"#010101"},{"color":"#111111"},{"color":"#282828"},{"color":"#F6E7BC"},{"color":"#F9F7F7"},{"color":"#ffffff"}],"teal":[{"color":"#7ACFC4"},{"color":"#044355"},{"color":"#000000"},{"color":"#010101"},{"color":"#111111"},{"color":"#282828"},{"color":"#F5ECE5"},{"color":"#F9F7F7"},{"color":"#ffffff"}]}', true );
1220
  ),
1221
  ),
1222
  ),
1223
+ 'e05' => array(
1224
+ 'import_file_name' => 'e05',
1225
+ 'categories' => array(),
1226
+ 'import_file_url' => 'https://startertemplatecloud.com/importer-content/e05/demo_content.xml',
1227
+ 'import_widget_file_url' => 'https://startertemplatecloud.com/importer-content/e05/widget_data.json',
1228
+ 'import_customizer_file_url' => 'https://startertemplatecloud.com/importer-content/e05/theme_options.json',
1229
+ 'import_forms_file_url' => 'https://startertemplatecloud.com/importer-content/e05/form_data.json',
1230
+ 'preview_url' => 'https://startertemplatecloud.com/e05/',
1231
+ 'import_preview_image_url' => 'https://startertemplatecloud.com/importer-content/e05/images/preview-image.jpg',
1232
+ 'import_notice' => '',
1233
+ 'type' => 'elementor',
1234
+ 'plugins' => array(
1235
+ $elementor,
1236
+ $fluentform,
1237
+ ),
1238
+ 'pages' => array(
1239
+ 'home' => array(
1240
+ 'content' => 'https://startertemplatecloud.com/importer-content/e05/home_content.xml',
1241
+ 'meta' => 'inherit',
1242
+ ),
1243
+ 'about' => array(
1244
+ 'content' => 'https://startertemplatecloud.com/importer-content/e05/about_content.xml',
1245
+ 'meta' => 'inherit',
1246
+ ),
1247
+ 'portfolio' => array(
1248
+ 'content' => 'https://startertemplatecloud.com/importer-content/e05/portfolio_content.xml',
1249
+ 'meta' => 'inherit',
1250
+ ),
1251
+ 'single-portfolio' => array(
1252
+ 'content' => 'https://startertemplatecloud.com/importer-content/e05/single-portfolio_content.xml',
1253
+ 'meta' => 'inherit',
1254
+ ),
1255
+ 'services' => array(
1256
+ 'content' => 'https://startertemplatecloud.com/importer-content/e05/services_content.xml',
1257
+ 'meta' => 'inherit',
1258
+ ),
1259
+ 'contact' => array(
1260
+ 'content' => 'https://startertemplatecloud.com/importer-content/e05/contact_content.xml',
1261
+ 'meta' => 'inherit',
1262
+ ),
1263
+ ),
1264
+ ),
1265
  'g01' => array(
1266
  'import_file_name' => 'g01',
1267
  'categories' => array(),
1331
  ),
1332
  ),
1333
  ),
1334
+ 'g03' => array(
1335
+ 'import_file_name' => 'g03',
1336
+ 'categories' => array(),
1337
+ 'import_file_url' => 'https://startertemplatecloud.com/importer-content/g03/demo_content.xml',
1338
+ 'import_widget_file_url' => 'https://startertemplatecloud.com/importer-content/g03/widget_data.json',
1339
+ 'import_customizer_file_url' => 'https://startertemplatecloud.com/importer-content/g03/theme_options.json',
1340
+ 'preview_url' => 'https://startertemplatecloud.com/g03/',
1341
+ 'import_preview_image_url' => 'https://startertemplatecloud.com/importer-content/g03/preview-image.jpg',
1342
+ 'import_notice' => '',
1343
+ 'type' => 'blocks',
1344
+ 'plugins' => array(
1345
+ $kadence_blocks,
1346
+ ),
1347
+ 'pages' => array(
1348
+ 'home' => array(
1349
+ 'content' => 'https://startertemplatecloud.com/importer-content/g03/home_content.xml',
1350
+ 'meta' => 'inherit',
1351
+ ),
1352
+ 'about' => array(
1353
+ 'content' => 'https://startertemplatecloud.com/importer-content/g03/about_content.xml',
1354
+ 'meta' => 'inherit',
1355
+ ),
1356
+ 'contact' => array(
1357
+ 'content' => 'https://startertemplatecloud.com/importer-content/g03/contact_content.xml',
1358
+ 'meta' => 'inherit',
1359
+ ),
1360
+ 'courses' => array(
1361
+ 'content' => 'https://startertemplatecloud.com/importer-content/g03/courses_content.xml',
1362
+ 'meta' => 'inherit',
1363
+ ),
1364
+ 'course' => array(
1365
+ 'content' => 'https://startertemplatecloud.com/importer-content/g03/course_content.xml',
1366
+ 'meta' => 'inherit',
1367
+ ),
1368
+ ),
1369
+ ),
1370
  );
1371
  return $demos;
1372
  }
1405
  define( 'KADENCE_STARTER_TEMPLATES_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
1406
  }
1407
  if ( ! defined( 'KADENCE_STARTER_TEMPLATES_VERSION' ) ) {
1408
+ define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.1.4' );
1409
  }
1410
  }
1411
  /**
1696
  ),
1697
  array(
1698
  'key' => 3,
1699
+ 'slug' => 'g03',
1700
+ 'name' => __( 'Course', 'kadence-starter-templates' ),
1701
+ 'keywords' => array(
1702
+ __( 'lms', 'kadence-starter-templates' ),
1703
+ __( 'course', 'kadence-starter-templates' ),
1704
+ __( 'business', 'kadence-starter-templates' ),
1705
+ ),
1706
+ 'url' => 'https://startertemplatecloud.com/g03/',
1707
+ 'categories' => array( 'business', 'course' ),
1708
+ 'type' => 'blocks',
1709
+ 'plugins' => array(
1710
+ $kadence_blocks,
1711
+ ),
1712
+ 'pages' => array(
1713
+ 'home' => array(
1714
+ 'id' => 'home',
1715
+ 'title' => __( 'Home', 'kadence-starter-templates' ),
1716
+ 'url' => 'https://startertemplatecloud.com/g03/',
1717
+ 'image' => 'https://startertemplatecloud.com/importer-content/g03/images/home.jpg',
1718
+ ),
1719
+ 'about' => array(
1720
+ 'id' => 'about',
1721
+ 'title' => __( 'About', 'kadence-starter-templates' ),
1722
+ 'url' => 'https://startertemplatecloud.com/g03/about/',
1723
+ 'image' => 'https://startertemplatecloud.com/importer-content/g03/images/about.jpg',
1724
+ ),
1725
+ 'courses' => array(
1726
+ 'id' => 'courses',
1727
+ 'title' => __( 'Courses', 'kadence-starter-templates' ),
1728
+ 'url' => 'https://startertemplatecloud.com/g03/courses/',
1729
+ 'image' => 'https://startertemplatecloud.com/importer-content/g03/images/courses.jpg',
1730
+ ),
1731
+ 'course' => array(
1732
+ 'id' => 'course',
1733
+ 'title' => __( 'Course', 'kadence-starter-templates' ),
1734
+ 'url' => 'https://startertemplatecloud.com/g03/course/',
1735
+ 'image' => 'https://startertemplatecloud.com/importer-content/g03/images/course.jpg',
1736
+ ),
1737
+ 'contact' => array(
1738
+ 'id' => 'contact',
1739
+ 'title' => __( 'Contact', 'kadence-starter-templates' ),
1740
+ 'url' => 'https://startertemplatecloud.com/g03/contact/',
1741
+ 'image' => 'https://startertemplatecloud.com/importer-content/g03/images/contact.jpg',
1742
+ ),
1743
+ ),
1744
+ 'image' => 'https://startertemplatecloud.com/importer-content/g03/images/preview-image.jpg',
1745
+ ),
1746
+ array(
1747
+ 'key' => 4,
1748
  'slug' => 'ldcourse',
1749
  'name' => __( 'LearnDash Course', 'kadence-starter-templates' ),
1750
  'keywords' => array(
1781
  'image' => 'https://startertemplatecloud.com/importer-content/og02/images/preview-image.jpg',
1782
  ),
1783
  array(
1784
+ 'key' => 5,
1785
  'slug' => 'food',
1786
  'name' => __( 'Recipe Blog', 'kadence-starter-templates' ),
1787
  'keywords' => array(
1818
  'image' => 'https://kadence.design/importer/kadence/recipe_blog/preview-image.jpg',
1819
  ),
1820
  array(
1821
+ 'key' => 6,
1822
  'slug' => 'yoga',
1823
  'name' => __( 'Yoga Studio', 'kadence-starter-templates' ),
1824
  'keywords' => array(
1866
  'image' => 'https://startertemplatecloud.com/importer-content/og05/images/preview-image.jpg',
1867
  ),
1868
  array(
1869
+ 'key' => 7,
1870
  'slug' => 'saas',
1871
  'name' => __( 'Saas', 'kadence-starter-templates' ),
1872
  'keywords' => array(
1914
  'image' => 'https://startertemplatecloud.com/importer-content/og03/images/preview-image.jpg',
1915
  ),
1916
  array(
1917
+ 'key' => 8,
1918
  'slug' => 'shopping',
1919
  'name' => __( 'Shopping', 'kadence-starter-templates' ),
1920
  'keywords' => array(
2146
  ),
2147
  'image' => 'https://startertemplatecloud.com/importer-content/e06/images/preview-image.jpg',
2148
  ),
2149
+ array(
2150
+ 'key' => 4,
2151
+ 'slug' => 'e05',
2152
+ 'name' => __( 'WebAgency', 'kadence-starter-templates' ),
2153
+ 'keywords' => array(
2154
+ __( 'agency', 'kadence-starter-templates' ),
2155
+ __( 'web', 'kadence-starter-templates' ),
2156
+ __( 'business', 'kadence-starter-templates' ),
2157
+ ),
2158
+ 'url' => 'https://startertemplatecloud.com/e05/',
2159
+ 'categories' => array( 'business' ),
2160
+ 'type' => 'elementor',
2161
+ 'plugins' => array(
2162
+ $elementor,
2163
+ $fluentform,
2164
+ ),
2165
+ 'pages' => array(
2166
+ 'home' => array(
2167
+ 'id' => 'home',
2168
+ 'title' => __( 'Home', 'kadence-starter-templates' ),
2169
+ 'url' => 'https://startertemplatecloud.com/e05/',
2170
+ 'image' => 'https://startertemplatecloud.com/importer-content/e05/images/home.jpg',
2171
+ ),
2172
+ 'about' => array(
2173
+ 'id' => 'about',
2174
+ 'title' => __( 'About', 'kadence-starter-templates' ),
2175
+ 'url' => 'https://startertemplatecloud.com/e05/about/',
2176
+ 'image' => 'https://startertemplatecloud.com/importer-content/e05/images/about.jpg',
2177
+ ),
2178
+ 'portfolio' => array(
2179
+ 'id' => 'portfolio',
2180
+ 'title' => __( 'Portfolio', 'kadence-starter-templates' ),
2181
+ 'url' => 'https://startertemplatecloud.com/e05/price/',
2182
+ 'image' => 'https://startertemplatecloud.com/importer-content/e05/images/portfolio.jpg',
2183
+ ),
2184
+ 'single-portfolio' => array(
2185
+ 'id' => 'single-portfolio',
2186
+ 'title' => __( 'Single Portfolio', 'kadence-starter-templates' ),
2187
+ 'url' => 'https://startertemplatecloud.com/e05/single-portfolio/',
2188
+ 'image' => 'https://startertemplatecloud.com/importer-content/e05/images/single-portfolio.jpg',
2189
+ ),
2190
+ 'services' => array(
2191
+ 'id' => 'services',
2192
+ 'title' => __( 'Services', 'kadence-starter-templates' ),
2193
+ 'url' => 'https://startertemplatecloud.com/e05/services/',
2194
+ 'image' => 'https://startertemplatecloud.com/importer-content/e05/images/services.jpg',
2195
+ ),
2196
+ 'contact' => array(
2197
+ 'id' => 'contact',
2198
+ 'title' => __( 'Contact', 'kadence-starter-templates' ),
2199
+ 'url' => 'https://startertemplatecloud.com/e05/contact/',
2200
+ 'image' => 'https://startertemplatecloud.com/importer-content/e05/images/contact.jpg',
2201
+ ),
2202
+ ),
2203
+ 'image' => 'https://startertemplatecloud.com/importer-content/e05/images/preview-image.jpg',
2204
+ ),
2205
  );
2206
  $palettes = array(
2207
  array(
2389
  );
2390
  $old_data = get_option( '_kadence_starter_templates_last_import_data', array() );
2391
  $has_content = false;
2392
+ $has_previous = false;
2393
  if ( ! empty( $old_data ) ) {
2394
  $has_content = true;
2395
  $has_previous = true;
inc/class-importer.php CHANGED
@@ -152,7 +152,7 @@ class Importer {
152
  // Disable import of authors.
153
  add_filter( 'wxr_importer.pre_process.user', '__return_false', 20 );
154
 
155
- add_filter( 'wp_import_post_data_processed', array( $this, 'pre_post_data' ), 10, 2 );
156
  // Meta Save Tracking info so we can remove later if desired.
157
  add_filter( 'wxr_importer.processed.term', array( $this, 'add_term_tracking' ), 10, 2 );
158
  add_filter( 'wxr_importer.processed.post', array( $this, 'add_post_tracking' ), 10, 5 );
152
  // Disable import of authors.
153
  add_filter( 'wxr_importer.pre_process.user', '__return_false', 20 );
154
 
155
+ //add_filter( 'wp_import_post_data_processed', array( $this, 'pre_post_data' ), 10, 2 );
156
  // Meta Save Tracking info so we can remove later if desired.
157
  add_filter( 'wxr_importer.processed.term', array( $this, 'add_term_tracking' ), 10, 2 );
158
  add_filter( 'wxr_importer.processed.post', array( $this, 'add_post_tracking' ), 10, 5 );
inc/react/src/starter-templates.scss CHANGED
@@ -233,6 +233,11 @@ h3.kst-selected-font-pair-title {
233
  .kadence_theme_dash_head .st2 {
234
  fill:#191717;
235
  }
 
 
 
 
 
236
  .kadence_theme_dash_head {
237
  background: white;
238
  padding: 0px 20px;
233
  .kadence_theme_dash_head .st2 {
234
  fill:#191717;
235
  }
236
+ .install-theme-info .components-button.has-icon .dashicons-image-rotate {
237
+ width: 10px;
238
+ height: 10px;
239
+ font-size: 10px;
240
+ }
241
  .kadence_theme_dash_head {
242
  background: white;
243
  padding: 0px 20px;
kadence-starter-templates.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Kadence Starter Templates
4
  * Description: Choose the prebuilt website and click to import.
5
- * Version: 1.1.3
6
  * Author: Kadence WP
7
  * Author URI: https://kadencewp.com/
8
  * License: GPLv2 or later
@@ -29,4 +29,4 @@ function kadence_starter_old_php_admin_error_notice() {
29
  $message = __( 'The Kadence Starter templates plugin requires at least PHP 7.0 to run properly. Please contact your hosting company and ask them to update the PHP version of your site to at least PHP 7.0. We strongly encourage you to update to 7.3+', 'kadence-starter-templates' );
30
 
31
  printf( '<div class="notice notice-error"><p>%1$s</p></div>', wp_kses_post( $message ) );
32
- }
2
  /**
3
  * Plugin Name: Kadence Starter Templates
4
  * Description: Choose the prebuilt website and click to import.
5
+ * Version: 1.1.4
6
  * Author: Kadence WP
7
  * Author URI: https://kadencewp.com/
8
  * License: GPLv2 or later
29
  $message = __( 'The Kadence Starter templates plugin requires at least PHP 7.0 to run properly. Please contact your hosting company and ask them to update the PHP version of your site to at least PHP 7.0. We strongly encourage you to update to 7.3+', 'kadence-starter-templates' );
30
 
31
  printf( '<div class="notice notice-error"><p>%1$s</p></div>', wp_kses_post( $message ) );
32
+ }
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: britner
3
  Tags: templates, gutenberg
4
  Requires at least: 5.0
5
- Tested up to: 5.5
6
- Stable tag: 1.1.3
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -108,6 +108,11 @@ Absolutely not.
108
 
109
  == Changelog ==
110
 
 
 
 
 
 
111
  = 1.1.3 =
112
  * Fix: Issue with importing full gutenberg shop starter.
113
 
2
  Contributors: britner
3
  Tags: templates, gutenberg
4
  Requires at least: 5.0
5
+ Tested up to: 5.6
6
+ Stable tag: 1.1.4
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
108
 
109
  == Changelog ==
110
 
111
+ = 1.1.4 =
112
+ * Add: New Elementor Template.
113
+ * Add: New Gutenberg Template.
114
+ * Fix: Issue with some missing images.
115
+
116
  = 1.1.3 =
117
  * Fix: Issue with importing full gutenberg shop starter.
118
 
vendor/wxr-importer/WXRImporter.php CHANGED
@@ -767,7 +767,7 @@ class WXRImporter extends \WP_Importer {
767
 
768
  $original_id = isset( $data['post_id'] ) ? (int) $data['post_id'] : 0;
769
  $parent_id = isset( $data['post_parent'] ) ? (int) $data['post_parent'] : 0;
770
-
771
  // Have we already processed this?
772
  if ( isset( $this->mapping['post'][ $original_id ] ) ) {
773
  return false;
@@ -1104,7 +1104,6 @@ class WXRImporter extends \WP_Importer {
1104
  if ( ! $info ) {
1105
  return new WP_Error( 'attachment_processing_error', __( 'Invalid file type', 'wordpress-importer' ) );
1106
  }
1107
-
1108
  $post['post_mime_type'] = $info['type'];
1109
 
1110
  // WP really likes using the GUID for display. Allow updating it.
@@ -1112,7 +1111,6 @@ class WXRImporter extends \WP_Importer {
1112
  if ( $this->options['update_attachment_guids'] ) {
1113
  $post['guid'] = $upload['url'];
1114
  }
1115
-
1116
  // as per wp-admin/includes/upload.php
1117
  $post_id = wp_insert_attachment( $post, $upload['file'] );
1118
  if ( is_wp_error( $post_id ) ) {
@@ -2419,6 +2417,11 @@ class WXRImporter extends \WP_Importer {
2419
  protected function post_exists( $data ) {
2420
  // Constant-time lookup if we prefilled
2421
  $exists_key = $data['guid'];
 
 
 
 
 
2422
 
2423
  if ( $this->options['prefill_existing_posts'] ) {
2424
  // OCDI: fix for custom post types. The guids in the prefilled section are escaped, so these ones should be as well.
767
 
768
  $original_id = isset( $data['post_id'] ) ? (int) $data['post_id'] : 0;
769
  $parent_id = isset( $data['post_parent'] ) ? (int) $data['post_parent'] : 0;
770
+
771
  // Have we already processed this?
772
  if ( isset( $this->mapping['post'][ $original_id ] ) ) {
773
  return false;
1104
  if ( ! $info ) {
1105
  return new WP_Error( 'attachment_processing_error', __( 'Invalid file type', 'wordpress-importer' ) );
1106
  }
 
1107
  $post['post_mime_type'] = $info['type'];
1108
 
1109
  // WP really likes using the GUID for display. Allow updating it.
1111
  if ( $this->options['update_attachment_guids'] ) {
1112
  $post['guid'] = $upload['url'];
1113
  }
 
1114
  // as per wp-admin/includes/upload.php
1115
  $post_id = wp_insert_attachment( $post, $upload['file'] );
1116
  if ( is_wp_error( $post_id ) ) {
2417
  protected function post_exists( $data ) {
2418
  // Constant-time lookup if we prefilled
2419
  $exists_key = $data['guid'];
2420
+ if ( empty( $exists_key ) ) {
2421
+ if ( isset( $data['attachment_url'] ) && ! empty( $data['attachment_url'] ) ) {
2422
+ $exists_key = $data['attachment_url'];
2423
+ }
2424
+ }
2425
 
2426
  if ( $this->options['prefill_existing_posts'] ) {
2427
  // OCDI: fix for custom post types. The guids in the prefilled section are escaped, so these ones should be as well.