CMP – Coming Soon & Maintenance Plugin by NiteoThemes - Version 2.2.4

Version Description

Download this release

Release Info

Developer niteo
Plugin Icon 128x128 CMP – Coming Soon & Maintenance Plugin by NiteoThemes
Version 2.2.4
Comparing to
See all releases

Code changes from version 2.2.3 to 2.2.4

css/cmp-settings-style.css CHANGED
@@ -178,7 +178,7 @@ input[type="text"], textarea {width:100%;}
178
 
179
  .table-wrapper table{
180
  padding:1em;
181
- height: 100%;
182
  }
183
 
184
  .table-wrapper table {
178
 
179
  .table-wrapper table{
180
  padding:1em;
181
+ height: auto;
182
  }
183
 
184
  .table-wrapper table {
css/cmp-settings-style.min.css CHANGED
@@ -1 +1 @@
1
- #wpwrap{overflow-x:hidden}.no-margin{margin:0}.cmp-settings-wrapper{position:relative;margin-top:1em}.wrapper-disabled{opacity:.4}.comingsoon-error,.comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.comingsoon-success{border-left:4px solid #00d221}.padding-bottom{padding-bottom:10px}.select2-container--default .select2-selection--single,input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.03);box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.select2-container .select2-selection--single{height:35px}.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:5px;border-radius:5px;margin:10px auto 0;outline:0}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}​input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}input[type=text],textarea{width:100%}#niteoCS_countdown_redirect,#niteoCS_countdown_text,.table-wrapper.content,.table-wrapper.custom_css,.table-wrapper.install,.table-wrapper.seo,.table-wrapper.theme-setup{display:none}.wp-upload-form.cmp{padding:4em;display:block}.cmp-status legend{width:95%;padding:10px;cursor:pointer}.cmp-status .active{background-color:#ddd}.redirect{margin-bottom:0}.help-settings,.subscribers-settings,.table-wrapper,.translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.table-wrapper.closed table,.translate-settings tfoot{display:none}.help-settings,.subscribers-settings,.translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}#unsplash-media,.background-media td fieldset{padding-top:1em}.table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#niteoCS-text-logo,.theme-title,th label{font-weight:600}.table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.table-wrapper h4{margin:0}.table-wrapper table{padding:1em;height:100%;width:90%}.table-wrapper .theme-selector{width:100%}.table-wrapper select{margin-bottom:10px;width:100%}.table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}#unsplash_img,.table-wrapper td.theme-selector{max-width:100%}.table-wrapper th{vertical-align:top;width:180px;text-align:left}#delete-banner,#delete-favicon,#delete-logo,#delete-video-thumb{display:none}.social-media{margin-top:0;margin-bottom:3em}.social-inputs{position:relative}.social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}#niteoCS-text-logo{border:none;-webkit-box-shadow:none;box-shadow:none;font-size:3em}.social-description{margin-top:0}.social-inputs .label:nth-of-type(2){left:62px}.social-inputs .label:nth-of-type(3){left:148px}.social-media li{display:inline-block;padding-right:.8em;padding-bottom:1em}.social-media i{font-size:1.65em;cursor:pointer}.social-media i.active{color:#d54e21}.social-inputs li{display:none;width:100%}.social-inputs li.active{display:inline-block}#custom_content_font,#custom_headings_font,.unsplash-feed{display:none}.social-inputs p{position:relative;padding-left:50px;height:50px}.social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.theme-details,.toggle{cursor:pointer}.social-inputs label{padding-left:100px}.social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}#unsplash_img{display:none}.color-preview,.gradient-preview,.pattern-wrapper{background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.theme-overlay .screenshot,.thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.video-wrapper{position:relative;width:100%;margin-top:1em}.video-wrapper video{margin-top:-35px}#add-pattern{margin-bottom:1em}.info{font-size:12px}.nav-tab i{padding-right:3px}.banner-wrapper,.favicon-wrapper,.logo-wrapper{margin:1em 0}.favicon-wrapper img,.logo-wrapper img{background-color:#efefef;padding:1em}.favicon-wrapper img{max-width:32px}.background-media img,.logo-wrapper img{max-width:100%;width:100%}.logo-wrapper img{max-height:150px;width:auto}#font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}#heading-example{border-bottom:none;line-height:1.5;padding:0}.font-selector td:first-of-type{padding-bottom:2em}.font-selector fieldset{padding:.5em 0}.theme-wrapper{display:inline-block;padding:.5em;margin:2em 2em 2em 0;width:calc(25% - 3em - 5px);text-align:center;border:1px solid #efefef;border-radius:6px}.theme-wrapper.premium{width:calc(33.33% - 3em - 5px)}.theme-wrapper.active{background-color:#ddd}.thumbnail-holder{width:100%;margin-bottom:2em;border-top-left-radius:5px;border-top-right-radius:5px}.thumbnail-holder::before{content:'';display:block;padding-top:56.25%}.toggle,.toggle-wrapper{display:inline-block}.theme-title{float:left;text-transform:uppercase}.theme-version{float:right}.theme-wrapper .hide:not(.selected){opacity:0;-webkit-transition:opacity .3s,background-color .5s;transition:opacity .3s,background-color .5s}.theme-wrapper .hide.activated,.theme-wrapper:hover .hide{opacity:1;-webkit-transition:opacity .3s,background-color .5s;transition:opacity .3s,background-color .5s}.theme-inputs{clear:both;border-top:1px solid #efefef;padding-top:.5em}.cmp-button,.cmp-preview,.theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-webkit-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none}.cmp-button.submit,.theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-webkit-transition:background-color .5s;transition:background-color .5s}.cmp-button.submit:focus,.cmp-button.submit:hover,.theme-actions .activate:focus,.theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.theme-wrapper .button:hover{border:none;color:#fff!important}.theme-wrapper .theme-select{float:left;background-color:#95a5a6}.theme-wrapper .theme-select:focus,.theme-wrapper .theme-select:hover{background-color:#b5b5b5}.theme-wrapper .theme-select.activated{background-color:#27ae60}.theme-wrapper .theme-select.activated:focus,.theme-wrapper .theme-select.activated:hover{background-color:#2ecc71}.theme-wrapper .theme-details.button{float:right;background-color:#2980b9}.theme-wrapper .theme-details.button:focus,.theme-wrapper .theme-details.button:hover{background-color:#3498db}.theme-wrapper .theme-update{float:left;margin:0 5px;background-color:#d35400}.theme-wrapper .theme-update:focus,.theme-wrapper .theme-update:hover{background-color:#e67e22}.theme-wrapper .theme-purchase{float:left;background-color:#2c3e50}.theme-wrapper .theme-purchase.button:focus,.theme-wrapper .theme-purchase.button:hover{background-color:#4f7090}.cmp-preview{background-color:#2485bf!important}.cmp-preview:active,.cmp-preview:hover{background-color:#32b2ff!important}.theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.theme-info .theme-purchase:focus,.theme-info .theme-purchase:hover,.theme-wrapper .theme-purchase:focus,.theme-wrapper .theme-purchase:hover{background-color:#34495e}.button i{margin-right:5px}.theme-purchase a,.theme-purchase a:hover,.theme-purchase a:visited{color:#fff;text-decoration:none}p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.theme-overlay .screenshot{-webkit-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-webkit-transition:opacity .5s;transition:opacity .5s}.fifty-layout input:checked+img,.theme-overlay .screenshots-nav div:hover{opacity:1}.toggle,.toggle:after,.toggle:before{-webkit-transition:all .2s ease-in-out}.theme-overlay .screenshots-nav .left{float:left}.theme-overlay .screenshots-nav .right{float:right}.theme-description ul{list-style:none;padding-left:2em}.theme-description h4,.theme-description li{font-size:13px}.theme-description .supported i{color:green}.theme-description .not-supported i{color:red}.wp-list-table .column-id{width:5%}.cmp-status{margin-bottom:3em}.toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.toggle:after,.toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}input[type=checkbox].toggle-checkbox{display:none}.toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.toggle-wrapper:hover .toggle_handler{background:#e74c3c}.toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.toggle:before{content:"Disabled";left:22px;color:#fff}.toggle-checkbox:checked+.toggle:before,.toggle:after{color:#23282d}.toggle:after{content:"Enabled";right:26px}.toggle-checkbox:checked+.toggle:after{color:#fff}.fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.fifty-layout input{visibility:hidden;position:absolute;margin:0}.fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px;background:#3ab53a}.cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.widget.donate img{max-width:50px}.widget.donate img.niteo-logo{max-width:120px}.cmp-rate-us .button,.cmp-rate-us a{display:block;text-align:center}.cmp-rate-us a{padding:1em 0}.cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-rate-us form{text-align:center}.subscribers .column-id{width:5%}@media screen and (max-width:1450px){.cmp-inputs-wrapper{min-width:70%}.cmp-sidebar-wrapper{width:calc(30% - 2em + 7px)}.theme-wrapper,.theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1270px){.cmp-inputs-wrapper{min-width:100%}}@media screen and (max-width:1110px){.theme-wrapper,.theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.table-wrapper th{display:block}.cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.table-wrapper table{width:100%}.table-wrapper th{width:140px}}@media screen and (max-width:782px){.social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-inputs-wrapper,.cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.theme-wrapper .hide:not(.selected),.theme-wrapper.hide{opacity:1}.theme-overlay .theme-info,.theme-overlay .theme-screenshots{width:100%;float:none}input[type=text],textarea{font-size:13px}}@media screen and (max-width:560px){.social-inputs .label:nth-of-type(2){left:50px}.social-inputs .label:nth-of-type(3){left:105px}.social-inputs p i{top:22px}.social-inputs input[type=checkbox]{top:28px;left:53px}.social-inputs label{padding-left:55px}.social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
1
+ #wpwrap{overflow-x:hidden}.no-margin{margin:0}.cmp-settings-wrapper{position:relative;margin-top:1em}.wrapper-disabled{opacity:.4}.comingsoon-error,.comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.comingsoon-success{border-left:4px solid #00d221}.padding-bottom{padding-bottom:10px}.select2-container--default .select2-selection--single,input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.03);box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.select2-container .select2-selection--single{height:35px}.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:5px;border-radius:5px;margin:10px auto 0;outline:0}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}​input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}input[type=text],textarea{width:100%}#niteoCS_countdown_redirect,#niteoCS_countdown_text,.table-wrapper.content,.table-wrapper.custom_css,.table-wrapper.install,.table-wrapper.seo,.table-wrapper.theme-setup{display:none}.wp-upload-form.cmp{padding:4em;display:block}.cmp-status legend{width:95%;padding:10px;cursor:pointer}.cmp-status .active{background-color:#ddd}.redirect{margin-bottom:0}.help-settings,.subscribers-settings,.table-wrapper,.translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.table-wrapper.closed table,.translate-settings tfoot{display:none}.help-settings,.subscribers-settings,.translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}#unsplash-media,.background-media td fieldset{padding-top:1em}.table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#niteoCS-text-logo,.theme-title,th label{font-weight:600}.table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.table-wrapper h4{margin:0}.table-wrapper table{padding:1em;height:auto;width:90%}.table-wrapper .theme-selector{width:100%}.table-wrapper select{margin-bottom:10px;width:100%}.table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}#unsplash_img,.table-wrapper td.theme-selector{max-width:100%}.table-wrapper th{vertical-align:top;width:180px;text-align:left}#delete-banner,#delete-favicon,#delete-logo,#delete-video-thumb{display:none}.social-media{margin-top:0;margin-bottom:3em}.social-inputs{position:relative}.social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}#niteoCS-text-logo{border:none;-webkit-box-shadow:none;box-shadow:none;font-size:3em}.social-description{margin-top:0}.social-inputs .label:nth-of-type(2){left:62px}.social-inputs .label:nth-of-type(3){left:148px}.social-media li{display:inline-block;padding-right:.8em;padding-bottom:1em}.social-media i{font-size:1.65em;cursor:pointer}.social-media i.active{color:#d54e21}.social-inputs li{display:none;width:100%}.social-inputs li.active{display:inline-block}#custom_content_font,#custom_headings_font,.unsplash-feed{display:none}.social-inputs p{position:relative;padding-left:50px;height:50px}.social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.theme-details,.toggle{cursor:pointer}.social-inputs label{padding-left:100px}.social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}#unsplash_img{display:none}.color-preview,.gradient-preview,.pattern-wrapper{background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.theme-overlay .screenshot,.thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.video-wrapper{position:relative;width:100%;margin-top:1em}.video-wrapper video{margin-top:-35px}#add-pattern{margin-bottom:1em}.info{font-size:12px}.nav-tab i{padding-right:3px}.banner-wrapper,.favicon-wrapper,.logo-wrapper{margin:1em 0}.favicon-wrapper img,.logo-wrapper img{background-color:#efefef;padding:1em}.favicon-wrapper img{max-width:32px}.background-media img,.logo-wrapper img{max-width:100%;width:100%}.logo-wrapper img{max-height:150px;width:auto}#font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}#heading-example{border-bottom:none;line-height:1.5;padding:0}.font-selector td:first-of-type{padding-bottom:2em}.font-selector fieldset{padding:.5em 0}.theme-wrapper{display:inline-block;padding:.5em;margin:2em 2em 2em 0;width:calc(25% - 3em - 5px);text-align:center;border:1px solid #efefef;border-radius:6px}.theme-wrapper.premium{width:calc(33.33% - 3em - 5px)}.theme-wrapper.active{background-color:#ddd}.thumbnail-holder{width:100%;margin-bottom:2em;border-top-left-radius:5px;border-top-right-radius:5px}.thumbnail-holder::before{content:'';display:block;padding-top:56.25%}.toggle,.toggle-wrapper{display:inline-block}.theme-title{float:left;text-transform:uppercase}.theme-version{float:right}.theme-wrapper .hide:not(.selected){opacity:0;-webkit-transition:opacity .3s,background-color .5s;transition:opacity .3s,background-color .5s}.theme-wrapper .hide.activated,.theme-wrapper:hover .hide{opacity:1;-webkit-transition:opacity .3s,background-color .5s;transition:opacity .3s,background-color .5s}.theme-inputs{clear:both;border-top:1px solid #efefef;padding-top:.5em}.cmp-button,.cmp-preview,.theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-webkit-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none}.cmp-button.submit,.theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-webkit-transition:background-color .5s;transition:background-color .5s}.cmp-button.submit:focus,.cmp-button.submit:hover,.theme-actions .activate:focus,.theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.theme-wrapper .button:hover{border:none;color:#fff!important}.theme-wrapper .theme-select{float:left;background-color:#95a5a6}.theme-wrapper .theme-select:focus,.theme-wrapper .theme-select:hover{background-color:#b5b5b5}.theme-wrapper .theme-select.activated{background-color:#27ae60}.theme-wrapper .theme-select.activated:focus,.theme-wrapper .theme-select.activated:hover{background-color:#2ecc71}.theme-wrapper .theme-details.button{float:right;background-color:#2980b9}.theme-wrapper .theme-details.button:focus,.theme-wrapper .theme-details.button:hover{background-color:#3498db}.theme-wrapper .theme-update{float:left;margin:0 5px;background-color:#d35400}.theme-wrapper .theme-update:focus,.theme-wrapper .theme-update:hover{background-color:#e67e22}.theme-wrapper .theme-purchase{float:left;background-color:#2c3e50}.theme-wrapper .theme-purchase.button:focus,.theme-wrapper .theme-purchase.button:hover{background-color:#4f7090}.cmp-preview{background-color:#2485bf!important}.cmp-preview:active,.cmp-preview:hover{background-color:#32b2ff!important}.theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.theme-info .theme-purchase:focus,.theme-info .theme-purchase:hover,.theme-wrapper .theme-purchase:focus,.theme-wrapper .theme-purchase:hover{background-color:#34495e}.button i{margin-right:5px}.theme-purchase a,.theme-purchase a:hover,.theme-purchase a:visited{color:#fff;text-decoration:none}p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.theme-overlay .screenshot{-webkit-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-webkit-transition:opacity .5s;transition:opacity .5s}.fifty-layout input:checked+img,.theme-overlay .screenshots-nav div:hover{opacity:1}.toggle,.toggle:after,.toggle:before{-webkit-transition:all .2s ease-in-out}.theme-overlay .screenshots-nav .left{float:left}.theme-overlay .screenshots-nav .right{float:right}.theme-description ul{list-style:none;padding-left:2em}.theme-description h4,.theme-description li{font-size:13px}.theme-description .supported i{color:green}.theme-description .not-supported i{color:red}.wp-list-table .column-id{width:5%}.cmp-status{margin-bottom:3em}.toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.toggle:after,.toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}input[type=checkbox].toggle-checkbox{display:none}.toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.toggle-wrapper:hover .toggle_handler{background:#e74c3c}.toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.toggle:before{content:"Disabled";left:22px;color:#fff}.toggle-checkbox:checked+.toggle:before,.toggle:after{color:#23282d}.toggle:after{content:"Enabled";right:26px}.toggle-checkbox:checked+.toggle:after{color:#fff}.fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.fifty-layout input{visibility:hidden;position:absolute;margin:0}.fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px;background:#3ab53a}.cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.widget.donate img{max-width:50px}.widget.donate img.niteo-logo{max-width:120px}.cmp-rate-us .button,.cmp-rate-us a{display:block;text-align:center}.cmp-rate-us a{padding:1em 0}.cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-rate-us form{text-align:center}.subscribers .column-id{width:5%}@media screen and (max-width:1450px){.cmp-inputs-wrapper{min-width:70%}.cmp-sidebar-wrapper{width:calc(30% - 2em + 7px)}.theme-wrapper,.theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1270px){.cmp-inputs-wrapper{min-width:100%}}@media screen and (max-width:1110px){.theme-wrapper,.theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.table-wrapper th{display:block}.cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.table-wrapper table{width:100%}.table-wrapper th{width:140px}}@media screen and (max-width:782px){.social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-inputs-wrapper,.cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.theme-wrapper .hide:not(.selected),.theme-wrapper.hide{opacity:1}.theme-overlay .theme-info,.theme-overlay .theme-screenshots{width:100%;float:none}input[type=text],textarea{font-size:13px}}@media screen and (max-width:560px){.social-inputs .label:nth-of-type(2){left:50px}.social-inputs .label:nth-of-type(3){left:105px}.social-inputs p i{top:22px}.social-inputs input[type=checkbox]{top:28px;left:53px}.social-inputs label{padding-left:55px}.social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
inc/class-cmp-render_html.php CHANGED
@@ -177,7 +177,7 @@ class cmp_render_html extends niteo_cmp {
177
  // change to background if preview background is set
178
  if ( isset($_GET['background']) && is_numeric($_GET['background']) ) {
179
  if ( $_GET['background'] != 1 ) {
180
- $this->cmp_background($_GET['background'], $themeslug);
181
  return;
182
  }
183
  }
@@ -192,7 +192,6 @@ class cmp_render_html extends niteo_cmp {
192
  <div id="slider">
193
  <?php
194
 
195
-
196
  switch ( $niteoCS_banner ) {
197
 
198
  // custom media
177
  // change to background if preview background is set
178
  if ( isset($_GET['background']) && is_numeric($_GET['background']) ) {
179
  if ( $_GET['background'] != 1 ) {
180
+ echo '<div id="background-wrapper">'.$this->cmp_background($_GET['background'], $themeslug).'</div>';
181
  return;
182
  }
183
  }
192
  <div id="slider">
193
  <?php
194
 
 
195
  switch ( $niteoCS_banner ) {
196
 
197
  // custom media
niteo-cmp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
- Version: 2.2.3
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -17,7 +17,7 @@ class niteo_cmp {
17
  public function __construct() {
18
  $this->author = 'NiteoThemes';
19
  $this->author_homepage = 'https://niteothemes.com';
20
- $this->version = '2.2.3';
21
  $this->dev = false;
22
  $this->plugins_dir_path = plugin_dir_path( __DIR__ );
23
  if ( $this->plugins_dir_path == './') {
@@ -300,8 +300,8 @@ class niteo_cmp {
300
  public function cmp_status() {
301
 
302
  if ( !get_option('niteoCS_status') ||
303
- get_option('niteoCS_status') == '' ||
304
- get_option('niteoCS_status') == false ) {
305
  return '0';
306
 
307
  } else {
@@ -1329,7 +1329,6 @@ class niteo_cmp {
1329
  $page_id = '-1';
1330
  }
1331
 
1332
-
1333
  switch ( get_option('niteoCS_page_filter', '0') ) {
1334
  // disabled return true
1335
  case '0':
@@ -1339,17 +1338,27 @@ class niteo_cmp {
1339
  // whitelist
1340
  case '1':
1341
  $page_list = json_decode( get_option('niteoCS_page_whitelist', '[]'), true );
 
1342
  if ( empty( $page_list ) || in_array( $page_id, $page_list ) ){
1343
  return true;
 
 
 
1344
  }
1345
  break;
1346
 
1347
  // blacklist
1348
  case '2':
1349
  $page_list = json_decode( get_option('niteoCS_page_blacklist', '[]'), true );
1350
- if ( empty( $page_list ) || !in_array( $page_id, $page_list ) ){
 
 
 
 
 
1351
  return true;
1352
  }
 
1353
  break;
1354
 
1355
  default:
@@ -1414,9 +1423,17 @@ class niteo_cmp {
1414
  }// endif update plugin and plugins not empty.
1415
  }// endif; $hook_extra
1416
  }// updatePlugin
1417
- }
1418
 
1419
 
 
 
 
 
 
 
 
 
 
1420
  $cmpPlugin = new niteo_cmp();
1421
 
1422
  add_action( 'admin_notices', array($cmpPlugin, 'cmp_admin_notice'));
@@ -1454,5 +1471,7 @@ add_action('upgrader_process_complete', array($cmpPlugin, 'cmp_plugin_update'),
1454
  add_filter( 'style_loader_src', array($cmpPlugin,'sdt_remove_ver_css_js'), 9999, 2 );
1455
  add_filter( 'script_loader_src', array($cmpPlugin,'sdt_remove_ver_css_js'), 9999, 2 );
1456
 
 
 
1457
 
1458
 
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
+ Version: 2.2.4
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
17
  public function __construct() {
18
  $this->author = 'NiteoThemes';
19
  $this->author_homepage = 'https://niteothemes.com';
20
+ $this->version = '2.2.4';
21
  $this->dev = false;
22
  $this->plugins_dir_path = plugin_dir_path( __DIR__ );
23
  if ( $this->plugins_dir_path == './') {
300
  public function cmp_status() {
301
 
302
  if ( !get_option('niteoCS_status') ||
303
+ get_option('niteoCS_status') == '' ||
304
+ get_option('niteoCS_status') == false ) {
305
  return '0';
306
 
307
  } else {
1329
  $page_id = '-1';
1330
  }
1331
 
 
1332
  switch ( get_option('niteoCS_page_filter', '0') ) {
1333
  // disabled return true
1334
  case '0':
1338
  // whitelist
1339
  case '1':
1340
  $page_list = json_decode( get_option('niteoCS_page_whitelist', '[]'), true );
1341
+
1342
  if ( empty( $page_list ) || in_array( $page_id, $page_list ) ){
1343
  return true;
1344
+
1345
+ } else {
1346
+ return false;
1347
  }
1348
  break;
1349
 
1350
  // blacklist
1351
  case '2':
1352
  $page_list = json_decode( get_option('niteoCS_page_blacklist', '[]'), true );
1353
+
1354
+
1355
+ if ( empty( $page_list ) || in_array( $page_id, $page_list ) ){
1356
+ return false;
1357
+
1358
+ } else {
1359
  return true;
1360
  }
1361
+
1362
  break;
1363
 
1364
  default:
1423
  }// endif update plugin and plugins not empty.
1424
  }// endif; $hook_extra
1425
  }// updatePlugin
 
1426
 
1427
 
1428
+ function add_action_links ( $links ) {
1429
+ $mylinks = array(
1430
+ '<a href="' . admin_url( 'admin.php?page=cmp-settings' ) . '">CMP Settings</a>',
1431
+ );
1432
+ return array_merge( $links, $mylinks );
1433
+ }
1434
+
1435
+ }
1436
+
1437
  $cmpPlugin = new niteo_cmp();
1438
 
1439
  add_action( 'admin_notices', array($cmpPlugin, 'cmp_admin_notice'));
1471
  add_filter( 'style_loader_src', array($cmpPlugin,'sdt_remove_ver_css_js'), 9999, 2 );
1472
  add_filter( 'script_loader_src', array($cmpPlugin,'sdt_remove_ver_css_js'), 9999, 2 );
1473
 
1474
+ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array($cmpPlugin,'add_action_links') );
1475
+
1476
 
1477
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
4
  Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
- Stable tag: 2.2.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -111,6 +111,14 @@ CMP brings premium features for free, no PRO versions! It is very user friendly
111
 
112
 
113
  == Changelog ==
 
 
 
 
 
 
 
 
114
 
115
  <h4>CMP 2.2.3 - maintenance update</h4>
116
  <ul>
4
  Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
+ Stable tag: 2.2.4
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
111
 
112
 
113
  == Changelog ==
114
+ <h4>CMP 2.2.4 - maintenance update</h4>
115
+ <ul>
116
+ <li>Resolved issue with not working Blacklist / Whitelist.</li>
117
+ <li>Resolved issue when set font-weight and font-style did not properly display in CMP Themes.</li>
118
+ <li>Added CMP Settings link to WordPress Plugin page after activation.</li>
119
+ </ul>
120
+
121
+
122
 
123
  <h4>CMP 2.2.3 - maintenance update</h4>
124
  <ul>
themes/construct/construct-theme.php CHANGED
@@ -28,6 +28,10 @@
28
  $content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
29
  $content_variant = ($content_variant =='regular') ? '400' : $content_variant;
30
  $heading_variant = ($heading_variant =='regular') ? '400' : $heading_variant;
 
 
 
 
31
 
32
  $logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
33
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '2');
@@ -65,7 +69,7 @@
65
 
66
  <link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.'/style.css?ver='.$this->version;?>" type="text/css" media="all">
67
 
68
- <link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:400,400i,700" rel="stylesheet">
69
 
70
  <style>
71
  body,input {font-family:'<?php echo esc_attr($content_font);?>', 'sans-serif';color:<?php echo esc_attr( $font_color ); ?>;}
@@ -78,8 +82,9 @@
78
  .social-list a:hover{background:<?php echo esc_attr( $active_color ); ?>;}
79
 
80
  body {font-size:<?php echo esc_attr($content_size);?>px;}
81
- .section-body p {line-height: <?php echo esc_attr($content_lineheight);?>; letter-spacing: <?php echo esc_attr($content_spacing);?>px;font-weight:<?php echo esc_attr($content_variant);?>;}
82
- h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:<?php echo esc_attr($headings_size / $content_size);?>em;letter-spacing: <?php echo esc_attr($headings_spacing);?>px; font-weight:<?php echo esc_attr($heading_variant);?>; }
 
83
  </style>
84
 
85
  <?php
@@ -102,7 +107,9 @@
102
  // echo pattern copyright
103
  if ( $niteoCS_banner == 3 ) {
104
  echo '<!-- Background pattern from Subtle Patterns --!>';
105
- } ?>
 
 
106
 
107
  </head>
108
 
28
  $content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
29
  $content_variant = ($content_variant =='regular') ? '400' : $content_variant;
30
  $heading_variant = ($heading_variant =='regular') ? '400' : $heading_variant;
31
+ $content_variant = ($content_variant =='italic') ? '400' : $content_variant;
32
+ $heading_variant = ($heading_variant =='italic') ? '400' : $heading_variant;
33
+ $content_font_style = preg_split('/(?<=[0-9])(?=[a-z]+)/i',$content_variant);
34
+ $heading_font_style = preg_split('/(?<=[0-9])(?=[a-z]+)/i',$heading_variant);
35
 
36
  $logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
37
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '2');
69
 
70
  <link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.'/style.css?ver='.$this->version;?>" type="text/css" media="all">
71
 
72
+ <link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>:<?php echo str_replace('italic', 'i', $heading_variant );?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:<?php echo str_replace('italic', 'i', $content_variant );?>" rel="stylesheet">
73
 
74
  <style>
75
  body,input {font-family:'<?php echo esc_attr($content_font);?>', 'sans-serif';color:<?php echo esc_attr( $font_color ); ?>;}
82
  .social-list a:hover{background:<?php echo esc_attr( $active_color ); ?>;}
83
 
84
  body {font-size:<?php echo esc_attr($content_size);?>px;}
85
+ .section-body p {line-height: <?php echo esc_attr($content_lineheight);?>; letter-spacing: <?php echo esc_attr($content_spacing);?>px;font-weight:<?php echo esc_attr($content_font_style['0']);?>;<?php echo isset($content_font_style['1']) ? 'font-style: italic;' : '';?>; }
86
+ h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:<?php echo esc_attr($headings_size / $content_size);?>em;letter-spacing: <?php echo esc_attr($headings_spacing);?>px; font-weight:<?php echo esc_attr($heading_font_style['0']);?>;<?php echo isset($heading_font_style['1']) ? 'font-style: italic;' : '';?>; }
87
+ h1 {font-weight:<?php echo esc_attr($heading_font_style['0']);?>;<?php echo isset($heading_font_style['1']) ? 'font-style: italic;' : '';?>;}
88
  </style>
89
 
90
  <?php
107
  // echo pattern copyright
108
  if ( $niteoCS_banner == 3 ) {
109
  echo '<!-- Background pattern from Subtle Patterns --!>';
110
+ }
111
+
112
+ ?>
113
 
114
  </head>
115
 
themes/countdown/countdown-theme.php CHANGED
@@ -31,6 +31,10 @@
31
  $content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
32
  $content_variant = ($content_variant =='regular') ? '400' : $content_variant;
33
  $heading_variant = ($heading_variant =='regular') ? '400' : $heading_variant;
 
 
 
 
34
 
35
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
36
 
@@ -68,7 +72,7 @@
68
 
69
  <link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.'/style.css?v='.$this->version;?>" type="text/css" media="all">
70
 
71
- <link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:400,400i,700" rel="stylesheet">
72
 
73
  <style>
74
  body,input {font-family:'<?php echo esc_attr($content_font);?>', 'sans-serif';color:<?php echo esc_attr( $niteoCS_font_color ); ?>;}
@@ -89,9 +93,9 @@
89
  .social-list.footer a:hover {color: <?php echo esc_attr( $niteoCS_active_color ); ?>;}
90
  .social-list.footer li:not(:last-of-type)::after {background-color: <?php echo esc_attr( $niteoCS_font_color_light ); ?>;}
91
 
92
- .inner-content p {line-height: <?php echo esc_attr($content_lineheight);?>; letter-spacing: <?php echo esc_attr($content_spacing);?>px;font-weight:<?php echo esc_attr($content_variant);?>;}
93
- h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:<?php echo esc_attr($headings_size / $content_size);?>em;letter-spacing: <?php echo esc_attr($headings_spacing);?>px; font-weight:<?php echo esc_attr($heading_variant);?>; }
94
-
95
  </style>
96
 
97
  <?php
31
  $content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
32
  $content_variant = ($content_variant =='regular') ? '400' : $content_variant;
33
  $heading_variant = ($heading_variant =='regular') ? '400' : $heading_variant;
34
+ $content_variant = ($content_variant =='italic') ? '400' : $content_variant;
35
+ $heading_variant = ($heading_variant =='italic') ? '400' : $heading_variant;
36
+ $content_font_style = preg_split('/(?<=[0-9])(?=[a-z]+)/i',$content_variant);
37
+ $heading_font_style = preg_split('/(?<=[0-9])(?=[a-z]+)/i',$heading_variant);
38
 
39
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
40
 
72
 
73
  <link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.'/style.css?v='.$this->version;?>" type="text/css" media="all">
74
 
75
+ <link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>:<?php echo str_replace('italic', 'i', $heading_variant );?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:<?php echo str_replace('italic', 'i', $content_variant );?>" rel="stylesheet">
76
 
77
  <style>
78
  body,input {font-family:'<?php echo esc_attr($content_font);?>', 'sans-serif';color:<?php echo esc_attr( $niteoCS_font_color ); ?>;}
93
  .social-list.footer a:hover {color: <?php echo esc_attr( $niteoCS_active_color ); ?>;}
94
  .social-list.footer li:not(:last-of-type)::after {background-color: <?php echo esc_attr( $niteoCS_font_color_light ); ?>;}
95
 
96
+ .inner-content p {line-height: <?php echo esc_attr($content_lineheight);?>; letter-spacing: <?php echo esc_attr($content_spacing);?>px;font-weight:<?php echo esc_attr($content_font_style['0']);?>;<?php echo isset($content_font_style['1']) ? 'font-style: italic;' : '';?>; }
97
+ h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:<?php echo esc_attr($headings_size / $content_size);?>em;letter-spacing: <?php echo esc_attr($headings_spacing);?>px; font-weight:<?php echo esc_attr($heading_font_style['0']);?>;<?php echo isset($heading_font_style['1']) ? 'font-style: italic;' : '';?>; }
98
+ h1 {font-weight:<?php echo esc_attr($heading_font_style['0']);?>;<?php echo isset($heading_font_style['1']) ? 'font-style: italic;' : '';?>;}
99
  </style>
100
 
101
  <?php
themes/hardwork/hardwork-theme.php CHANGED
@@ -27,6 +27,10 @@
27
  $content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
28
  $content_variant = ($content_variant =='regular') ? '400' : $content_variant;
29
  $heading_variant = ($heading_variant =='regular') ? '400' : $heading_variant;
 
 
 
 
30
 
31
  $niteoCS_background = get_option('niteoCS_banner['.$themeslug.']', '4');
32
  $unplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '0');
@@ -69,7 +73,7 @@
69
 
70
  <link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.'/style.css?ver='.$this->version ;?>" type="text/css" media="all">
71
 
72
- <link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>:<?php echo esc_attr($heading_variant);?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:400,400i,700,<?php echo esc_attr($content_variant);?>" rel="stylesheet">
73
 
74
  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
75
 
@@ -83,10 +87,10 @@
83
  } ?>
84
  a{color:<?php echo esc_attr( $font_color ); ?>;}
85
  h1,h2,h3,h4,h5,h6 {font-family:'<?php echo esc_attr($heading_font);?>', 'sans-serif';}
86
- body {font-size:<?php echo esc_attr($content_size);?>px;letter-spacing: <?php echo esc_attr($content_spacing);?>px;font-weight:<?php echo esc_attr($content_variant);?>;}
87
- h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:<?php echo esc_attr($headings_size / $content_size);?>em;letter-spacing: <?php echo esc_attr($headings_spacing);?>px; font-weight:<?php echo esc_attr($heading_variant);?>;}
 
88
  </style>
89
-
90
  <?php
91
  // custom CSS
92
  if ( get_option('niteoCS_custom_css', '') !== '' ) { ?>
27
  $content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
28
  $content_variant = ($content_variant =='regular') ? '400' : $content_variant;
29
  $heading_variant = ($heading_variant =='regular') ? '400' : $heading_variant;
30
+ $content_variant = ($content_variant =='italic') ? '400' : $content_variant;
31
+ $heading_variant = ($heading_variant =='italic') ? '400' : $heading_variant;
32
+ $content_font_style = preg_split('/(?<=[0-9])(?=[a-z]+)/i',$content_variant);
33
+ $heading_font_style = preg_split('/(?<=[0-9])(?=[a-z]+)/i',$heading_variant);
34
 
35
  $niteoCS_background = get_option('niteoCS_banner['.$themeslug.']', '4');
36
  $unplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '0');
73
 
74
  <link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.'/style.css?ver='.$this->version ;?>" type="text/css" media="all">
75
 
76
+ <link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>:<?php echo str_replace('italic', 'i', $heading_variant );?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:<?php echo str_replace('italic', 'i', $content_variant );?>" rel="stylesheet">
77
 
78
  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
79
 
87
  } ?>
88
  a{color:<?php echo esc_attr( $font_color ); ?>;}
89
  h1,h2,h3,h4,h5,h6 {font-family:'<?php echo esc_attr($heading_font);?>', 'sans-serif';}
90
+ body {font-size:<?php echo esc_attr($content_size);?>px; letter-spacing: <?php echo esc_attr($content_spacing);?>px; font-weight:<?php echo esc_attr($content_font_style['0']);?>;<?php echo isset($content_font_style['1']) ? 'font-style: italic;' : '';?>; }
91
+ h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:<?php echo esc_attr($headings_size / $content_size);?>em;letter-spacing: <?php echo esc_attr($headings_spacing);?>px; font-weight:<?php echo esc_attr($heading_font_style['0']);?>;<?php echo isset($heading_font_style['1']) ? 'font-style: italic;' : 'font-style: normal;';?>; }
92
+ h1 {font-weight:<?php echo esc_attr($heading_font_style['0']);?>;<?php echo isset($heading_font_style['1']) ? 'font-style: italic;' : 'font-style: normal;';?>;}
93
  </style>
 
94
  <?php
95
  // custom CSS
96
  if ( get_option('niteoCS_custom_css', '') !== '' ) { ?>
themes/postery.zip CHANGED
Binary file