Ocean Extra - Version 1.4.27

Version Description

  • Added: Dismiss button for the theme panel rating box so you can easily remove it.
Download this release

Release Info

Developer oceanwp
Plugin Icon 128x128 Ocean Extra
Version 1.4.27
Comparing to
See all releases

Code changes from version 1.4.25 to 1.4.27

includes/panel/assets/css/notice.css CHANGED
@@ -1,7 +1,8 @@
1
  .wrap .ocean-extra-notice { position: relative; border: none; padding: 0; }
2
  .wrap .ocean-extra-notice:after { content: ''; display: block; visibility: hidden; clear: both; zoom: 1; height: 0; }
3
  .ocean-extra-notice .notice-inner { position: relative; }
4
- .ocean-extra-notice span.dashicons-heart { background-color: #13aff0; color: #fff; position: absolute; top: 0; left: 0; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -moz-align-items: center; align-items: center; font-size: 30px; width: 60px; height: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
 
5
  .ocean-extra-notice .notice-content { padding: 10px 40px 15px 74px; }
6
  .ocean-extra-notice .notice-content p { font-size: 14px; }
7
  .ocean-extra-notice .notice-content p:first-child { margin-top: 0; }
@@ -13,10 +14,22 @@
13
  .ocean-extra-notice .notice-content a.btn.button-secondary:hover { background-color: #e6e6e6; border-color: #e6e6e6; }
14
  .ocean-extra-notice a.dismiss { position: absolute; top: 10px; right: 10px; text-decoration: none; color: #13aff0; -webkit-box-shadow: none !important; box-shadow: none !important; }
15
 
 
 
 
 
 
 
 
 
 
 
 
16
  body.rtl .ocean-extra-notice span.dashicons-heart { right: 0; left: auto; }
17
  body.rtl .ocean-extra-notice .notice-content { padding-right: 74px; padding-left: 40px; }
18
  body.rtl .ocean-extra-notice .notice-content a.btn.button-secondary { margin-right: 10px; margin-left: 0; }
19
  body.rtl .ocean-extra-notice a.dismiss { left: 10px; right: auto; }
 
20
 
21
  @media screen and ( max-width: 480px ) {
22
  .ocean-extra-notice span.dashicons-heart { display: none; }
1
  .wrap .ocean-extra-notice { position: relative; border: none; padding: 0; }
2
  .wrap .ocean-extra-notice:after { content: ''; display: block; visibility: hidden; clear: both; zoom: 1; height: 0; }
3
  .ocean-extra-notice .notice-inner { position: relative; }
4
+ .ocean-extra-notice span.icon-side { color: #fff; position: absolute; top: 0; left: 0; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -moz-align-items: center; align-items: center; font-size: 30px; width: 60px; height: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
5
+ .ocean-extra-notice span.dashicons-heart { background-color: #13aff0; }
6
  .ocean-extra-notice .notice-content { padding: 10px 40px 15px 74px; }
7
  .ocean-extra-notice .notice-content p { font-size: 14px; }
8
  .ocean-extra-notice .notice-content p:first-child { margin-top: 0; }
14
  .ocean-extra-notice .notice-content a.btn.button-secondary:hover { background-color: #e6e6e6; border-color: #e6e6e6; }
15
  .ocean-extra-notice a.dismiss { position: absolute; top: 10px; right: 10px; text-decoration: none; color: #13aff0; -webkit-box-shadow: none !important; box-shadow: none !important; }
16
 
17
+ /* Rating notice */
18
+ .ocean-extra-notice.oe-rating-notice span.dashicons-star-filled { background-color: #ffb900; }
19
+ .ocean-extra-notice.oe-rating-notice .notice-content p:last-child { margin-top: 20px; }
20
+ .ocean-extra-notice.oe-rating-notice .notice-content a.btn { background-color: #ffb900; border-color: #ffb900; }
21
+ .ocean-extra-notice.oe-rating-notice .notice-content a.btn:hover { background-color: #e6a803; border-color: #e6a803; }
22
+ .ocean-extra-notice.oe-rating-notice .notice-content a.btn.button-secondary { background-color: #f2f2f2; color: #666; border-color: #dadada; }
23
+ .ocean-extra-notice.oe-rating-notice .notice-content a.btn.button-secondary:hover { background-color: #e6e6e6; border-color: #e6e6e6; }
24
+ .ocean-extra-notice.oe-rating-notice .notice-content a span { vertical-align: middle; }
25
+ .ocean-extra-notice.oe-rating-notice .notice-content a span.dashicons { font-size: 1.4em; padding-right: 5px; height: auto; }
26
+ .ocean-extra-notice.oe-rating-notice a.dismiss { color: #ffb900; }
27
+
28
  body.rtl .ocean-extra-notice span.dashicons-heart { right: 0; left: auto; }
29
  body.rtl .ocean-extra-notice .notice-content { padding-right: 74px; padding-left: 40px; }
30
  body.rtl .ocean-extra-notice .notice-content a.btn.button-secondary { margin-right: 10px; margin-left: 0; }
31
  body.rtl .ocean-extra-notice a.dismiss { left: 10px; right: auto; }
32
+ body.rtl .ocean-extra-notice.oe-rating-notice .notice-content a span.dashicons { padding-left: 5px; padding-right: 0; }
33
 
34
  @media screen and ( max-width: 480px ) {
35
  .ocean-extra-notice span.dashicons-heart { display: none; }
includes/panel/assets/css/notice.min.css CHANGED
@@ -1 +1 @@
1
- .wrap .ocean-extra-notice{position:relative;border:none;padding:0}.wrap .ocean-extra-notice:after{content:'';display:block;visibility:hidden;clear:both;zoom:1;height:0}.ocean-extra-notice .notice-inner{position:relative}.ocean-extra-notice span.dashicons-heart{background-color:#13aff0;color:#fff;position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-align-items:center;align-items:center;font-size:30px;width:60px;height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ocean-extra-notice .notice-content{padding:10px 40px 15px 74px}.ocean-extra-notice .notice-content p{font-size:14px}.ocean-extra-notice .notice-content p:first-child{margin-top:0}.ocean-extra-notice .notice-content p:last-child{margin-bottom:0}.ocean-extra-notice .notice-content a{text-decoration:none;-webkit-box-shadow:none!important;box-shadow:none!important}.ocean-extra-notice .notice-content a.btn{height:auto;font-size:12px;line-height:1;background-color:#13aff0;color:#fff;border:1px solid #13aff0;padding:10px 18px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;text-shadow:none;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-o-transition:all .3s ease;-ms-transition:all .3s ease}.ocean-extra-notice .notice-content a.btn:hover{background-color:#0b7cac;border-color:#0b7cac}.ocean-extra-notice .notice-content a.btn.button-secondary{background-color:#f2f2f2;color:#666;border-color:#dadada;margin-left:10px}.ocean-extra-notice .notice-content a.btn.button-secondary:hover{background-color:#e6e6e6;border-color:#e6e6e6}.ocean-extra-notice a.dismiss{position:absolute;top:10px;right:10px;text-decoration:none;color:#13aff0;-webkit-box-shadow:none!important;box-shadow:none!important}body.rtl .ocean-extra-notice span.dashicons-heart{right:0;left:auto}body.rtl .ocean-extra-notice .notice-content{padding-right:74px;padding-left:40px}body.rtl .ocean-extra-notice .notice-content a.btn.button-secondary{margin-right:10px;margin-left:0}body.rtl .ocean-extra-notice a.dismiss{left:10px;right:auto}@media screen and (max-width:480px){.ocean-extra-notice span.dashicons-heart{display:none}.ocean-extra-notice .notice-content{padding-left:14px}body.rtl .ocean-extra-notice .notice-content{padding-right:14px}}
1
+ .wrap .ocean-extra-notice{position:relative;border:none;padding:0}.wrap .ocean-extra-notice:after{content:'';display:block;visibility:hidden;clear:both;zoom:1;height:0}.ocean-extra-notice .notice-inner{position:relative}.ocean-extra-notice span.icon-side{color:#fff;position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-align-items:center;align-items:center;font-size:30px;width:60px;height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ocean-extra-notice span.dashicons-heart{background-color:#13aff0}.ocean-extra-notice .notice-content{padding:10px 40px 15px 74px}.ocean-extra-notice .notice-content p{font-size:14px}.ocean-extra-notice .notice-content p:first-child{margin-top:0}.ocean-extra-notice .notice-content p:last-child{margin-bottom:0}.ocean-extra-notice .notice-content a{text-decoration:none;-webkit-box-shadow:none!important;box-shadow:none!important}.ocean-extra-notice .notice-content a.btn{height:auto;font-size:12px;line-height:1;background-color:#13aff0;color:#fff;border:1px solid #13aff0;padding:10px 18px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;text-shadow:none;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-o-transition:all .3s ease;-ms-transition:all .3s ease}.ocean-extra-notice .notice-content a.btn:hover{background-color:#0b7cac;border-color:#0b7cac}.ocean-extra-notice .notice-content a.btn.button-secondary{background-color:#f2f2f2;color:#666;border-color:#dadada;margin-left:10px}.ocean-extra-notice .notice-content a.btn.button-secondary:hover{background-color:#e6e6e6;border-color:#e6e6e6}.ocean-extra-notice a.dismiss{position:absolute;top:10px;right:10px;text-decoration:none;color:#13aff0;-webkit-box-shadow:none!important;box-shadow:none!important}.ocean-extra-notice.oe-rating-notice span.dashicons-star-filled{background-color:#ffb900}.ocean-extra-notice.oe-rating-notice .notice-content p:last-child{margin-top:20px}.ocean-extra-notice.oe-rating-notice .notice-content a.btn{background-color:#ffb900;border-color:#ffb900}.ocean-extra-notice.oe-rating-notice .notice-content a.btn:hover{background-color:#e6a803;border-color:#e6a803}.ocean-extra-notice.oe-rating-notice .notice-content a.btn.button-secondary{background-color:#f2f2f2;color:#666;border-color:#dadada}.ocean-extra-notice.oe-rating-notice .notice-content a.btn.button-secondary:hover{background-color:#e6e6e6;border-color:#e6e6e6}.ocean-extra-notice.oe-rating-notice .notice-content a span{vertical-align:middle}.ocean-extra-notice.oe-rating-notice .notice-content a span.dashicons{font-size:1.4em;padding-right:5px;height:auto}.ocean-extra-notice.oe-rating-notice a.dismiss{color:#ffb900}body.rtl .ocean-extra-notice span.dashicons-heart{right:0;left:auto}body.rtl .ocean-extra-notice .notice-content{padding-right:74px;padding-left:40px}body.rtl .ocean-extra-notice .notice-content a.btn.button-secondary{margin-right:10px;margin-left:0}body.rtl .ocean-extra-notice a.dismiss{left:10px;right:auto}body.rtl .ocean-extra-notice.oe-rating-notice .notice-content a span.dashicons{padding-left:5px;padding-right:0}@media screen and (max-width:480px){.ocean-extra-notice span.dashicons-heart{display:none}.ocean-extra-notice .notice-content{padding-left:14px}body.rtl .ocean-extra-notice .notice-content{padding-right:14px}}
includes/panel/assets/css/panel.css CHANGED
@@ -45,6 +45,9 @@ body .oceanwp-bloc .button.owp-button { margin: 22px 0 10px; }
45
  .oceanwp-bloc p.bottom-text { color: #5a5a5a; font-size: 12px; font-weight: 600; font-style: italic; margin: 0; }
46
  .oceanwp-bloc i { position: absolute; bottom: -30px; right: -26px; width: auto; height: auto; font-size: 120px; opacity: .07; z-index: 1; }
47
 
 
 
 
48
  .oceanwp-bundle { background-color: #2794da; background: -moz-linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2386c5 58%); background: -webkit-linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2794da 58%); background: linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2794da 58%); color: #fff; }
49
  .oceanwp-bundle .owp-text { text-align: center; margin: 0; padding: 25px 10px; }
50
  .oceanwp-bundle a.logo-text { display: inline-block; font-size: 38px; line-height: 1; color: #fff; text-decoration: none; -webkit-transition: all .3s ease; -moz-transition: all .3s ease; -o-transition: all .3s ease; -ms-transition: all .3s ease; transition: all .3s ease; }
45
  .oceanwp-bloc p.bottom-text { color: #5a5a5a; font-size: 12px; font-weight: 600; font-style: italic; margin: 0; }
46
  .oceanwp-bloc i { position: absolute; bottom: -30px; right: -26px; width: auto; height: auto; font-size: 120px; opacity: .07; z-index: 1; }
47
 
48
+ .oceanwp-bloc.oceanwp-review h3 { position: relative; }
49
+ .oceanwp-bloc.oceanwp-review h3 a { position: absolute; top: 50%; right: 8px; margin-top: -10px; color: #fff; text-decoration: none; }
50
+
51
  .oceanwp-bundle { background-color: #2794da; background: -moz-linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2386c5 58%); background: -webkit-linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2794da 58%); background: linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2794da 58%); color: #fff; }
52
  .oceanwp-bundle .owp-text { text-align: center; margin: 0; padding: 25px 10px; }
53
  .oceanwp-bundle a.logo-text { display: inline-block; font-size: 38px; line-height: 1; color: #fff; text-decoration: none; -webkit-transition: all .3s ease; -moz-transition: all .3s ease; -o-transition: all .3s ease; -ms-transition: all .3s ease; transition: all .3s ease; }
includes/panel/assets/css/panel.min.css CHANGED
@@ -1 +1 @@
1
- .oceanwp-panels .column-name,body .button.owp-button{-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-o-transition:all .3s ease;-ms-transition:all .3s ease}.clr:after{content:'';display:block;height:0;clear:both;visibility:hidden;zoom:1}.button,.wp-core-ui .button-link:focus,.wp-core-ui .button-secondary:focus,.wp-core-ui .button.focus,.wp-core-ui .button:focus,a:focus{-webkit-box-shadow:none!important;box-shadow:none!important}body .button.owp-button{background-color:#13aff0;color:#fff;height:auto;font-size:12px;line-height:1;font-weight:600;text-transform:uppercase;margin:0;padding:14px 20px;border:0;cursor:pointer;text-align:center;letter-spacing:.1em;border-radius:3px;transition:all .3s ease}body .button.owp-button:active,body .button.owp-button:focus,body .button.owp-button:hover{background-color:#0b7cac;color:#fff}body .button.owp-button:active{-webkit-transform:none;-ms-transform:none;transform:none}.wrap.oceanwp-theme-panel{margin-right:40px}.oceanwp-settings .left{float:left;width:75%;margin-top:20px}.oceanwp-settings .right{float:right;width:23%;margin-top:30px}.oceanwp-settings .oceanwp-title{font-size:26px;line-height:1.6;margin:0 0 3px 8px}.oceanwp-settings .oceanwp-desc{margin:0 0 30px 8px;font-size:15px}.oceanwp-settings .divider{display:block;height:1px;margin:40px 0 33px;border-bottom:1px solid #ccc}.oceanwp-panels .column-wrap{float:left;position:relative;width:32.33%;margin:0 .5% 1%;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.oceanwp-panels .column-name{display:block;background-color:#fff;border:2px solid #eee;padding:25px 25px 20px;transition:all .3s ease}.oceanwp-panels .column-name:hover{border-color:#ddd}.oceanwp-panels .column-name h3.title{float:left;display:block;position:relative;font-size:18px;color:#333;margin:0;z-index:2}.oceanwp-panels .column-name .desc{display:block;position:relative;font-size:17px;line-height:1.6;font-weight:400;color:#777;z-index:2}.oceanwp-panels input[type=checkbox]{float:right;width:22px;height:22px;min-width:22px;margin:0}.oceanwp-panels input[type=checkbox]:checked:before{width:22px;font-size:27px}.oceanwp-panels p.submit{display:inline-block;width:100%;margin:10px 0 0 .5%;padding:0;clear:both}.oceanwp-options .options-inner{display:-webkit-box;display:-ms-flexbox;display:flex;flex-wrap:wrap;margin-top:30px}.oceanwp-options .column-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;background:#fff;border:1px solid #ccc;width:24%;min-height:150px;margin:0 .5% 1%;padding:25px 25px 20px;overflow:hidden;box-sizing:border-box}.oceanwp-options .column-wrap.hidden{display:none!important}.oceanwp-options .column-inner{display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:column}.oceanwp-options .title{display:block;position:relative;font-size:17px;color:#333;margin:0 0 20px;padding-bottom:20px;border-bottom:1px solid #eaeaea;text-transform:capitalize}.oceanwp-options .desc{flex:1 0 auto;display:block;margin:0 0 20px;font-size:14px;line-height:1.6;font-weight:400;color:#777}.oceanwp-options .bottom-column{padding:20px 0 0;border-top:1px solid #eaeaea;margin:0}.oceanwp-options .bottom-column .option-link{font-size:12px;font-weight:600;line-height:1.6;text-transform:uppercase;letter-spacing:.6px;text-decoration:none}.oceanwp-bloc{display:inline-block;position:relative;width:100%;background-color:#fff;margin:0 auto 15px;border-radius:3px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.oceanwp-bloc h3{display:block;font-size:14px;font-weight:600;padding:12px 10px;background-color:#13aff0;color:#fff;text-transform:uppercase;letter-spacing:.4px;margin:0 0 22px;text-align:center}.oceanwp-bloc .content-wrap{position:relative;padding:0 30px 25px;z-index:2;text-align:center}.oceanwp-bloc p.content{font-size:14px;color:#5a5a5a;margin:0}body .oceanwp-bloc .button.owp-button{margin:22px 0 10px}.oceanwp-bloc p.bottom-text{color:#5a5a5a;font-size:12px;font-weight:600;font-style:italic;margin:0}.oceanwp-bloc i{position:absolute;bottom:-30px;right:-26px;width:auto;height:auto;font-size:120px;opacity:.07;z-index:1}.oceanwp-bundle{background-color:#2794da;background:-moz-linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2386c5 58%);background:-webkit-linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2794da 58%);background:linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2794da 58%);color:#fff}.oceanwp-bundle .owp-text{text-align:center;margin:0;padding:25px 10px}.oceanwp-bundle a.logo-text{display:inline-block;font-size:38px;line-height:1;color:#fff;text-decoration:none;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-o-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.oceanwp-bundle a.logo-text:hover{opacity:.6}.oceanwp-bundle a.logo-text .circle{display:inline-block;width:5px;height:5px;background-color:#fff;border-radius:50%}.oceanwp-bundle p.content{color:#fff}.oceanwp-bundle p.content a{color:#afd8f3;text-decoration:underline}.oceanwp-bundle p.content a:hover{text-decoration:none}body .oceanwp-bundle .button.owp-button{display:block;background-color:#1d2428;color:#fff;margin-top:30px}body .oceanwp-bundle .button.owp-button:hover{background-color:#303e4c}.oceanwp-facebook{background-color:#3b5998;color:#fff}.oceanwp-facebook .owp-img{position:relative;z-index:2;padding:30px 30px 0;margin:0 0 18px;text-align:center}.oceanwp-facebook .owp-img img{max-width:200px}.oceanwp-bloc.oceanwp-facebook p.content{color:#fff}body .oceanwp-facebook .button.owp-button{background-color:#fff;color:#3b5998}body .oceanwp-facebook .button.owp-button:hover{background-color:#597dca;color:#fff}.owp-ribbon{position:absolute;top:0;left:0;width:100px;height:100px;z-index:1;overflow:hidden}.owp-ribbon>div{background-color:#3fc387;left:0;width:200%;margin-top:28px;font-size:13px;line-height:2;font-weight:800;letter-spacing:1px;text-transform:uppercase;text-align:center;-webkit-transform:translateY(-50%) translateX(-50%) translateX(35px) rotate(-45deg);-ms-transform:translateY(-50%) translateX(-50%) translateX(35px) rotate(-45deg);transform:translateY(-50%) translateX(-50%) translateX(35px) rotate(-45deg)}.oceanwp-buttons{display:inline-block;width:100%}body .oceanwp-buttons .button.owp-button{padding:14px 10px}body .oceanwp-buttons .button.owp-button.owp-yt-btn{background-color:#e62117;float:left;width:48%}body .oceanwp-buttons .button.owp-button.owp-yt-btn:hover{background-color:#b31217}body .oceanwp-buttons .button.owp-button.owp-doc-btn{background-color:#2e3243;float:right;width:48%}body .oceanwp-buttons .button.owp-button.owp-doc-btn:hover{background-color:#262939}body .oceanwp-buttons .button.owp-button.owp-support-btn{background-color:#13aff0;width:100%;margin-top:10px}body .oceanwp-buttons .button.owp-button.owp-support-btn:hover{background-color:#0b7cac}body.rtl .wrap.oceanwp-theme-panel{margin-left:40px;margin-right:0}body.rtl .oceanwp-settings .left{float:right}body.rtl .oceanwp-settings .right{float:left}body.rtl .oceanwp-settings .oceanwp-title{margin:0 8px 3px 0}body.rtl .oceanwp-settings .oceanwp-desc{margin:0 8px 30px 0}body.rtl .oceanwp-panels .column-name h3.title,body.rtl .oceanwp-panels .column-wrap{float:right}body.rtl .oceanwp-panels input[type=checkbox]{float:left}body.rtl .oceanwp-panels p.submit{margin:10px .5% 0 0}body.rtl .oceanwp-bloc i{left:-26px;right:auto}body.rtl .oceanwp-buttons .button.owp-button.owp-yt-btn{float:right}body.rtl .oceanwp-buttons .button.owp-button.owp-doc-btn{float:left}body.rtl .owp-ribbon{right:0;left:auto;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}body.rtl .owp-ribbon>div{right:0;left:auto;-webkit-transform:translateY(-50%) translateX(0) translateX(35px) rotate(-45deg);-ms-transform:translateY(-50%) translateX(0) translateX(35px) rotate(-45deg);transform:translateY(-50%) translateX(0) translateX(35px) rotate(-45deg)}@media screen and (max-width:1280px){.wrap.oceanwp-theme-panel{margin-right:20px}.oceanwp-settings .left,.oceanwp-settings .right{float:none;width:100%}.oceanwp-options .column-wrap{width:32.33%}.oceanwp-bloc,.oceanwp-buttons{width:49%}.oceanwp-facebook.has-bundle,.oceanwp-review{float:left}.oceanwp-facebook.has-bundle{clear:left}.oceanwp-bundle,.oceanwp-buttons.has-bundle,.oceanwp-facebook{float:right}.oceanwp-buttons.has-bundle,.oceanwp-facebook{clear:none}.oceanwp-buttons{float:left;clear:left}body.rtl .wrap.oceanwp-theme-panel{margin-left:20px;margin-right:0}body.rtl .oceanwp-facebook.has-bundle,body.rtl .oceanwp-review{float:right}body.rtl .oceanwp-facebook.has-bundle{clear:right}body.rtl .oceanwp-bundle,body.rtl .oceanwp-buttons.has-bundle,body.rtl .oceanwp-facebook{float:left}body.rtl .oceanwp-buttons{float:right;clear:right}}@media screen and (max-width:1100px){.oceanwp-options .column-wrap,.oceanwp-panels .column-wrap{width:49%}}@media screen and (max-width:600px){.oceanwp-options .column-wrap,.oceanwp-panels .column-wrap{width:100%}}@media screen and (max-width:480px){.oceanwp-bloc,.oceanwp-buttons{float:none!important;width:100%;min-width:100%}}
1
+ .oceanwp-panels .column-name,body .button.owp-button{-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-o-transition:all .3s ease;-ms-transition:all .3s ease}.clr:after{content:'';display:block;height:0;clear:both;visibility:hidden;zoom:1}.button,.wp-core-ui .button-link:focus,.wp-core-ui .button-secondary:focus,.wp-core-ui .button.focus,.wp-core-ui .button:focus,a:focus{-webkit-box-shadow:none!important;box-shadow:none!important}body .button.owp-button{background-color:#13aff0;color:#fff;height:auto;font-size:12px;line-height:1;font-weight:600;text-transform:uppercase;margin:0;padding:14px 20px;border:0;cursor:pointer;text-align:center;letter-spacing:.1em;border-radius:3px;transition:all .3s ease}body .button.owp-button:active,body .button.owp-button:focus,body .button.owp-button:hover{background-color:#0b7cac;color:#fff}body .button.owp-button:active{-webkit-transform:none;-ms-transform:none;transform:none}.wrap.oceanwp-theme-panel{margin-right:40px}.oceanwp-settings .left{float:left;width:75%;margin-top:20px}.oceanwp-settings .right{float:right;width:23%;margin-top:30px}.oceanwp-settings .oceanwp-title{font-size:26px;line-height:1.6;margin:0 0 3px 8px}.oceanwp-settings .oceanwp-desc{margin:0 0 30px 8px;font-size:15px}.oceanwp-settings .divider{display:block;height:1px;margin:40px 0 33px;border-bottom:1px solid #ccc}.oceanwp-panels .column-wrap{float:left;position:relative;width:32.33%;margin:0 .5% 1%;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.oceanwp-panels .column-name{display:block;background-color:#fff;border:2px solid #eee;padding:25px 25px 20px;transition:all .3s ease}.oceanwp-panels .column-name:hover{border-color:#ddd}.oceanwp-panels .column-name h3.title{float:left;display:block;position:relative;font-size:18px;color:#333;margin:0;z-index:2}.oceanwp-panels .column-name .desc{display:block;position:relative;font-size:17px;line-height:1.6;font-weight:400;color:#777;z-index:2}.oceanwp-panels input[type=checkbox]{float:right;width:22px;height:22px;min-width:22px;margin:0}.oceanwp-panels input[type=checkbox]:checked:before{width:22px;font-size:27px}.oceanwp-panels p.submit{display:inline-block;width:100%;margin:10px 0 0 .5%;padding:0;clear:both}.oceanwp-options .options-inner{display:-webkit-box;display:-ms-flexbox;display:flex;flex-wrap:wrap;margin-top:30px}.oceanwp-options .column-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;background:#fff;border:1px solid #ccc;width:24%;min-height:150px;margin:0 .5% 1%;padding:25px 25px 20px;overflow:hidden;box-sizing:border-box}.oceanwp-options .column-wrap.hidden{display:none!important}.oceanwp-options .column-inner{display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:column}.oceanwp-options .title{display:block;position:relative;font-size:17px;color:#333;margin:0 0 20px;padding-bottom:20px;border-bottom:1px solid #eaeaea;text-transform:capitalize}.oceanwp-options .desc{flex:1 0 auto;display:block;margin:0 0 20px;font-size:14px;line-height:1.6;font-weight:400;color:#777}.oceanwp-options .bottom-column{padding:20px 0 0;border-top:1px solid #eaeaea;margin:0}.oceanwp-options .bottom-column .option-link{font-size:12px;font-weight:600;line-height:1.6;text-transform:uppercase;letter-spacing:.6px;text-decoration:none}.oceanwp-bloc{display:inline-block;position:relative;width:100%;background-color:#fff;margin:0 auto 15px;border-radius:3px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.oceanwp-bloc h3{display:block;font-size:14px;font-weight:600;padding:12px 10px;background-color:#13aff0;color:#fff;text-transform:uppercase;letter-spacing:.4px;margin:0 0 22px;text-align:center}.oceanwp-bloc .content-wrap{position:relative;padding:0 30px 25px;z-index:2;text-align:center}.oceanwp-bloc p.content{font-size:14px;color:#5a5a5a;margin:0}body .oceanwp-bloc .button.owp-button{margin:22px 0 10px}.oceanwp-bloc p.bottom-text{color:#5a5a5a;font-size:12px;font-weight:600;font-style:italic;margin:0}.oceanwp-bloc i{position:absolute;bottom:-30px;right:-26px;width:auto;height:auto;font-size:120px;opacity:.07;z-index:1}.oceanwp-bloc.oceanwp-review h3{position:relative}.oceanwp-bloc.oceanwp-review h3 a{position:absolute;top:50%;right:8px;margin-top:-10px;color:#fff;text-decoration:none}.oceanwp-bundle{background-color:#2794da;background:-moz-linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2386c5 58%);background:-webkit-linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2794da 58%);background:linear-gradient(4deg,#2386c5 58%,#2386c5 58%,#2794da 58%);color:#fff}.oceanwp-bundle .owp-text{text-align:center;margin:0;padding:25px 10px}.oceanwp-bundle a.logo-text{display:inline-block;font-size:38px;line-height:1;color:#fff;text-decoration:none;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-o-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease}.oceanwp-bundle a.logo-text:hover{opacity:.6}.oceanwp-bundle a.logo-text .circle{display:inline-block;width:5px;height:5px;background-color:#fff;border-radius:50%}.oceanwp-bundle p.content{color:#fff}.oceanwp-bundle p.content a{color:#afd8f3;text-decoration:underline}.oceanwp-bundle p.content a:hover{text-decoration:none}body .oceanwp-bundle .button.owp-button{display:block;background-color:#1d2428;color:#fff;margin-top:30px}body .oceanwp-bundle .button.owp-button:hover{background-color:#303e4c}.oceanwp-facebook{background-color:#3b5998;color:#fff}.oceanwp-facebook .owp-img{position:relative;z-index:2;padding:30px 30px 0;margin:0 0 18px;text-align:center}.oceanwp-facebook .owp-img img{max-width:200px}.oceanwp-bloc.oceanwp-facebook p.content{color:#fff}body .oceanwp-facebook .button.owp-button{background-color:#fff;color:#3b5998}body .oceanwp-facebook .button.owp-button:hover{background-color:#597dca;color:#fff}.owp-ribbon{position:absolute;top:0;left:0;width:100px;height:100px;z-index:1;overflow:hidden}.owp-ribbon>div{background-color:#3fc387;left:0;width:200%;margin-top:28px;font-size:13px;line-height:2;font-weight:800;letter-spacing:1px;text-transform:uppercase;text-align:center;-webkit-transform:translateY(-50%) translateX(-50%) translateX(35px) rotate(-45deg);-ms-transform:translateY(-50%) translateX(-50%) translateX(35px) rotate(-45deg);transform:translateY(-50%) translateX(-50%) translateX(35px) rotate(-45deg)}.oceanwp-buttons{display:inline-block;width:100%}body .oceanwp-buttons .button.owp-button{padding:14px 10px}body .oceanwp-buttons .button.owp-button.owp-yt-btn{background-color:#e62117;float:left;width:48%}body .oceanwp-buttons .button.owp-button.owp-yt-btn:hover{background-color:#b31217}body .oceanwp-buttons .button.owp-button.owp-doc-btn{background-color:#2e3243;float:right;width:48%}body .oceanwp-buttons .button.owp-button.owp-doc-btn:hover{background-color:#262939}body .oceanwp-buttons .button.owp-button.owp-support-btn{background-color:#13aff0;width:100%;margin-top:10px}body .oceanwp-buttons .button.owp-button.owp-support-btn:hover{background-color:#0b7cac}body.rtl .wrap.oceanwp-theme-panel{margin-left:40px;margin-right:0}body.rtl .oceanwp-settings .left{float:right}body.rtl .oceanwp-settings .right{float:left}body.rtl .oceanwp-settings .oceanwp-title{margin:0 8px 3px 0}body.rtl .oceanwp-settings .oceanwp-desc{margin:0 8px 30px 0}body.rtl .oceanwp-panels .column-name h3.title,body.rtl .oceanwp-panels .column-wrap{float:right}body.rtl .oceanwp-panels input[type=checkbox]{float:left}body.rtl .oceanwp-panels p.submit{margin:10px .5% 0 0}body.rtl .oceanwp-bloc i{left:-26px;right:auto}body.rtl .oceanwp-buttons .button.owp-button.owp-yt-btn{float:right}body.rtl .oceanwp-buttons .button.owp-button.owp-doc-btn{float:left}body.rtl .owp-ribbon{right:0;left:auto;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}body.rtl .owp-ribbon>div{right:0;left:auto;-webkit-transform:translateY(-50%) translateX(0) translateX(35px) rotate(-45deg);-ms-transform:translateY(-50%) translateX(0) translateX(35px) rotate(-45deg);transform:translateY(-50%) translateX(0) translateX(35px) rotate(-45deg)}@media screen and (max-width:1280px){.wrap.oceanwp-theme-panel{margin-right:20px}.oceanwp-settings .left,.oceanwp-settings .right{float:none;width:100%}.oceanwp-options .column-wrap{width:32.33%}.oceanwp-bloc,.oceanwp-buttons{width:49%}.oceanwp-facebook.has-bundle,.oceanwp-review{float:left}.oceanwp-facebook.has-bundle{clear:left}.oceanwp-bundle,.oceanwp-buttons.has-bundle,.oceanwp-facebook{float:right}.oceanwp-buttons.has-bundle,.oceanwp-facebook{clear:none}.oceanwp-buttons{float:left;clear:left}body.rtl .wrap.oceanwp-theme-panel{margin-left:20px;margin-right:0}body.rtl .oceanwp-facebook.has-bundle,body.rtl .oceanwp-review{float:right}body.rtl .oceanwp-facebook.has-bundle{clear:right}body.rtl .oceanwp-bundle,body.rtl .oceanwp-buttons.has-bundle,body.rtl .oceanwp-facebook{float:left}body.rtl .oceanwp-buttons{float:right;clear:right}}@media screen and (max-width:1100px){.oceanwp-options .column-wrap,.oceanwp-panels .column-wrap{width:49%}}@media screen and (max-width:600px){.oceanwp-options .column-wrap,.oceanwp-panels .column-wrap{width:100%}}@media screen and (max-width:480px){.oceanwp-bloc,.oceanwp-buttons{float:none!important;width:100%;min-width:100%}}
includes/panel/notice.php CHANGED
@@ -24,6 +24,9 @@ if ( ! class_exists( 'Ocean_Extra_Admin_Notice' ) ) {
24
  add_action( 'admin_notices', array( $this, 'admin_notice' ) );
25
  add_action( 'admin_init', array( $this, 'dismiss_notice' ) );
26
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
 
 
 
27
  }
28
 
29
  /**
@@ -45,7 +48,7 @@ if ( ! class_exists( 'Ocean_Extra_Admin_Notice' ) ) {
45
 
46
  <div class="notice notice-success ocean-extra-notice">
47
  <div class="notice-inner">
48
- <span class="dashicons dashicons-heart"></span>
49
  <div class="notice-content">
50
  <p><?php echo sprintf(
51
  esc_html__( 'Thank you for installing OceanWP! As a gesture of our appreciation, here&rsquo;s your chance to win our best-selling %1$sCore Extension Bundle%2$s, which includes more than 14 premium extensions that&rsquo;ll enhance this website with state-of-the-art functionality. 10 winners are selected each month, so sign up today, you&rsquo;ve got nothing to lose!', 'ocean-extra' ),
@@ -84,38 +87,114 @@ if ( ! class_exists( 'Ocean_Extra_Admin_Notice' ) ) {
84
  }
85
 
86
  /**
87
- * Installed time
88
  *
89
- * @since 1.2.6
90
  */
91
- private static function get_installed_time() {
92
- $installed_time = get_option( 'ocean_extra_installed_time' );
93
- if ( ! $installed_time ) {
94
- $installed_time = time();
95
- update_option( 'ocean_extra_installed_time', $installed_time );
 
 
96
  }
97
- return $installed_time;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  }
99
 
100
  /**
101
  * Style
102
  *
103
- * @since 1.2.1
104
  */
105
- public static function admin_scripts() {
106
 
107
- if ( self::get_installed_time() > strtotime( '-24 hours' )
108
- || '1' === get_option( 'ocean_extra_dismiss_notice' )
109
  || ! current_user_can( 'manage_options' )
110
  || apply_filters( 'ocean_show_sticky_notice', false ) ) {
111
  return;
112
  }
113
 
114
  // CSS
115
- wp_enqueue_style( 'oe-admin-notice', plugins_url( '/assets/css/notice.min.css', __FILE__ ) );
116
 
117
  }
118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  }
120
 
121
  new Ocean_Extra_Admin_Notice();
24
  add_action( 'admin_notices', array( $this, 'admin_notice' ) );
25
  add_action( 'admin_init', array( $this, 'dismiss_notice' ) );
26
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
27
+ add_action( 'admin_notices', array( $this, 'rating_notice' ) );
28
+ add_action( 'admin_init', array( $this, 'dismiss_rating_notice' ) );
29
+ add_action( 'admin_enqueue_scripts', array( $this, 'rating_notice_scripts' ) );
30
  }
31
 
32
  /**
48
 
49
  <div class="notice notice-success ocean-extra-notice">
50
  <div class="notice-inner">
51
+ <span class="dashicons dashicons-heart icon-side"></span>
52
  <div class="notice-content">
53
  <p><?php echo sprintf(
54
  esc_html__( 'Thank you for installing OceanWP! As a gesture of our appreciation, here&rsquo;s your chance to win our best-selling %1$sCore Extension Bundle%2$s, which includes more than 14 premium extensions that&rsquo;ll enhance this website with state-of-the-art functionality. 10 winners are selected each month, so sign up today, you&rsquo;ve got nothing to lose!', 'ocean-extra' ),
87
  }
88
 
89
  /**
90
+ * Style
91
  *
92
+ * @since 1.2.1
93
  */
94
+ public static function admin_scripts() {
95
+
96
+ if ( self::get_installed_time() > strtotime( '-24 hours' )
97
+ || '1' === get_option( 'ocean_extra_dismiss_notice' )
98
+ || ! current_user_can( 'manage_options' )
99
+ || apply_filters( 'ocean_show_sticky_notice', false ) ) {
100
+ return;
101
  }
102
+
103
+ // CSS
104
+ wp_enqueue_style( 'oe-admin-notice', plugins_url( '/assets/css/notice.min.css', __FILE__ ) );
105
+
106
+ }
107
+
108
+ /**
109
+ * Display rating notice
110
+ *
111
+ * @since 1.4.27
112
+ */
113
+ public static function rating_notice() {
114
+ // Show notice after 240 hours from installed time.
115
+ if ( self::get_installed_time() > strtotime( '-240 hours' )
116
+ || '1' === get_option( 'ocean_extra_dismiss_rating_notice' )
117
+ || ! current_user_can( 'manage_options' )
118
+ || apply_filters( 'ocean_show_sticky_notice', false ) ) {
119
+ return;
120
+ }
121
+
122
+ $no_thanks = wp_nonce_url( add_query_arg( 'ocean_extra_rating_notice', 'no_thanks_rating_btn' ), 'no_thanks_rating_btn' );
123
+ $dismiss = wp_nonce_url( add_query_arg( 'ocean_extra_rating_notice', 'dismiss_rating_btn' ), 'dismiss_rating_btn' ); ?>
124
+
125
+ <div class="notice notice-success ocean-extra-notice oe-rating-notice">
126
+ <div class="notice-inner">
127
+ <span class="dashicons dashicons-star-filled icon-side"></span>
128
+ <div class="notice-content">
129
+ <p><?php echo sprintf(
130
+ esc_html__( 'Hello! we&rsquo;re grateful that you&rsquo;ve decided to join the OceanWP family.%1$sCould you please do us a BIG favor? If you could take 2 min of your time, we&rsquo;d really appreciate if you could give OceanWP a 5-star rating on WordPress. By spreading the love, we can create even greater free stuff in the future!', 'ocean-extra' ),
131
+ '<br/>'
132
+ ); ?></p>
133
+ <p><a href="https://wordpress.org/support/theme/oceanwp/reviews/?filter=5#new-post" class="btn button-primary" target="_blank"><span class="dashicons dashicons-external"></span><span><?php _e( 'Ok, you deserve it', 'ocean-extra' ); ?></span></a><a href="<?php echo $no_thanks; ?>" class="btn button-secondary" target="_blank"><span class="dashicons dashicons-calendar"></span><span><?php _e( 'Nope, maybe later', 'ocean-extra' ); ?></span></a><a href="<?php echo $no_thanks; ?>" class="btn button-secondary"><span class="dashicons dashicons-smiley"></span><span><?php _e( 'I already did', 'ocean-extra' ); ?></span></a></p>
134
+ </div>
135
+ <a href="<?php echo $dismiss; ?>" class="dismiss"><span class="dashicons dashicons-dismiss"></span></a>
136
+ </div>
137
+ </div>
138
+ <?php
139
+ }
140
+
141
+ /**
142
+ * Dismiss rating notice
143
+ *
144
+ * @since 1.4.27
145
+ */
146
+ public static function dismiss_rating_notice() {
147
+ if ( ! isset( $_GET['ocean_extra_rating_notice'] ) ) {
148
+ return;
149
+ }
150
+
151
+ if ( 'dismiss_rating_btn' === $_GET['ocean_extra_rating_notice'] ) {
152
+ check_admin_referer( 'dismiss_rating_btn' );
153
+ update_option( 'ocean_extra_dismiss_rating_notice', '1' );
154
+ }
155
+
156
+ if ( 'no_thanks_rating_btn' === $_GET['ocean_extra_rating_notice'] ) {
157
+ check_admin_referer( 'no_thanks_rating_btn' );
158
+ update_option( 'ocean_extra_dismiss_rating_notice', '1' );
159
+ }
160
+
161
+ wp_redirect( remove_query_arg( 'ocean_extra_rating_notice' ) );
162
+ exit;
163
  }
164
 
165
  /**
166
  * Style
167
  *
168
+ * @since 1.4.27
169
  */
170
+ public static function rating_notice_scripts() {
171
 
172
+ if ( self::get_installed_time() > strtotime( '-240 hours' )
173
+ || '1' === get_option( 'ocean_extra_dismiss_rating_notice' )
174
  || ! current_user_can( 'manage_options' )
175
  || apply_filters( 'ocean_show_sticky_notice', false ) ) {
176
  return;
177
  }
178
 
179
  // CSS
180
+ wp_enqueue_style( 'oe-rating-notice', plugins_url( '/assets/css/notice.min.css', __FILE__ ) );
181
 
182
  }
183
 
184
+ /**
185
+ * Installed time
186
+ *
187
+ * @since 1.2.6
188
+ */
189
+ private static function get_installed_time() {
190
+ $installed_time = get_option( 'ocean_extra_installed_time' );
191
+ if ( ! $installed_time ) {
192
+ $installed_time = time();
193
+ update_option( 'ocean_extra_installed_time', $installed_time );
194
+ }
195
+ return $installed_time;
196
+ }
197
+
198
  }
199
 
200
  new Ocean_Extra_Admin_Notice();
includes/panel/theme-panel.php CHANGED
@@ -31,6 +31,9 @@ class Ocean_Extra_Theme_Panel {
31
  // Add panel submenu
32
  add_action( 'admin_menu', array( 'Ocean_Extra_Theme_Panel', 'add_menu_subpage' ) );
33
 
 
 
 
34
  // Add custom CSS for the theme panel
35
  add_action( 'admin_enqueue_scripts', array( 'Ocean_Extra_Theme_Panel', 'css' ) );
36
 
@@ -352,17 +355,26 @@ class Ocean_Extra_Theme_Panel {
352
  $class = '';
353
  if ( true != apply_filters( 'oceanwp_licence_tab_enable', false ) ) {
354
  $class = ' has-bundle';
355
- } ?>
356
 
357
- <div class="oceanwp-bloc oceanwp-review">
358
- <h3><?php esc_html_e( 'Are you a helpful person?', 'ocean-extra' ); ?></h3>
359
- <div class="content-wrap">
360
- <p class="content"><?php esc_html_e( 'I&rsquo;m grateful that you&rsquo;ve decided to join the OceanWP family. If I could take 2 min of your time, I&rsquo;d really appreciate if you could leave a review. By spreading the love, we can create even greater free stuff in the future!', 'ocean-extra' ); ?></p>
361
- <a href="https://wordpress.org/support/theme/oceanwp/reviews/#new-post" class="button owp-button" target="_blank"><?php esc_html_e( 'Leave my review', 'ocean-extra' ); ?></a>
362
- <p class="bottom-text"><?php esc_html_e( 'Thank you very much!', 'ocean-extra' ); ?></p>
 
 
 
 
 
 
 
 
363
  </div>
364
- <i class="dashicons dashicons-wordpress"></i>
365
- </div>
 
366
 
367
  <?php
368
  // if no premium extensions activated
@@ -407,6 +419,25 @@ class Ocean_Extra_Theme_Panel {
407
  <?php
408
  }
409
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
410
  /**
411
  * Settings page output
412
  *
31
  // Add panel submenu
32
  add_action( 'admin_menu', array( 'Ocean_Extra_Theme_Panel', 'add_menu_subpage' ) );
33
 
34
+ // Dismiss theme panel rating box
35
+ add_action( 'admin_init', array( 'Ocean_Extra_Theme_Panel', 'dismiss_rating_box' ) );
36
+
37
  // Add custom CSS for the theme panel
38
  add_action( 'admin_enqueue_scripts', array( 'Ocean_Extra_Theme_Panel', 'css' ) );
39
 
355
  $class = '';
356
  if ( true != apply_filters( 'oceanwp_licence_tab_enable', false ) ) {
357
  $class = ' has-bundle';
358
+ }
359
 
360
+ // Dismiss
361
+ $dismiss = wp_nonce_url( add_query_arg( 'oe_panel_rating_box', 'oe_dismiss_panel_btn' ), 'oe_dismiss_panel_btn' );
362
+
363
+ // if dismiss rating box
364
+ if ( '1' != get_option( 'oe_panel_dismiss_rating_box' ) ) { ?>
365
+
366
+ <div class="oceanwp-bloc oceanwp-review">
367
+ <h3><?php esc_html_e( 'Are you a helpful person?', 'ocean-extra' ); ?><a href="<?php echo $dismiss; ?>" class="dismiss"><span class="dashicons dashicons-dismiss"></span></a></h3>
368
+ <div class="content-wrap">
369
+ <p class="content"><?php esc_html_e( 'we&rsquo;re grateful that you&rsquo;ve decided to join the OceanWP family. If you could take 2 min of your time, we&rsquo;d really appreciate if you could leave a review. By spreading the love, we can create even greater free stuff in the future!', 'ocean-extra' ); ?></p>
370
+ <a href="https://wordpress.org/support/theme/oceanwp/reviews/#new-post" class="button owp-button" target="_blank"><?php esc_html_e( 'Leave my review', 'ocean-extra' ); ?></a>
371
+ <p class="bottom-text"><?php esc_html_e( 'Thank you very much!', 'ocean-extra' ); ?></p>
372
+ </div>
373
+ <i class="dashicons dashicons-wordpress"></i>
374
  </div>
375
+
376
+ <?php
377
+ } ?>
378
 
379
  <?php
380
  // if no premium extensions activated
419
  <?php
420
  }
421
 
422
+ /**
423
+ * Dismiss rating box
424
+ *
425
+ * @since 1.4.27
426
+ */
427
+ public static function dismiss_rating_box() {
428
+ if ( ! isset( $_GET['oe_panel_rating_box'] ) ) {
429
+ return;
430
+ }
431
+
432
+ if ( 'oe_dismiss_panel_btn' === $_GET['oe_panel_rating_box'] ) {
433
+ check_admin_referer( 'oe_dismiss_panel_btn' );
434
+ update_option( 'oe_panel_dismiss_rating_box', '1' );
435
+ }
436
+
437
+ wp_redirect( remove_query_arg( 'oe_panel_rating_box' ) );
438
+ exit;
439
+ }
440
+
441
  /**
442
  * Settings page output
443
  *
ocean-extra.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Ocean Extra
4
  * Plugin URI: https://oceanwp.org/extension/ocean-extra/
5
  * Description: Add extra features like widgets, metaboxes, import/export and a panel to activate the premium extensions.
6
- * Version: 1.4.25
7
  * Author: OceanWP
8
  * Author URI: https://oceanwp.org/
9
  * Requires at least: 4.5.0
@@ -86,7 +86,7 @@ final class Ocean_Extra {
86
  $this->token = 'ocean-extra';
87
  $this->plugin_url = plugin_dir_url( __FILE__ );
88
  $this->plugin_path = plugin_dir_path( __FILE__ );
89
- $this->version = '1.4.25';
90
 
91
  define( 'OE_URL', $this->plugin_url );
92
  define( 'OE_PATH', $this->plugin_path );
3
  * Plugin Name: Ocean Extra
4
  * Plugin URI: https://oceanwp.org/extension/ocean-extra/
5
  * Description: Add extra features like widgets, metaboxes, import/export and a panel to activate the premium extensions.
6
+ * Version: 1.4.27
7
  * Author: OceanWP
8
  * Author URI: https://oceanwp.org/
9
  * Requires at least: 4.5.0
86
  $this->token = 'ocean-extra';
87
  $this->plugin_url = plugin_dir_url( __FILE__ );
88
  $this->plugin_path = plugin_dir_path( __FILE__ );
89
+ $this->version = '1.4.27';
90
 
91
  define( 'OE_URL', $this->plugin_url );
92
  define( 'OE_PATH', $this->plugin_path );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: oceanwp
3
  Tags: widgets, meta box, metaboxes, metabox, oceanwp
4
  Requires at least: 4.6
5
  Tested up to: 4.9.8
6
- Stable tag: 1.4.25
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -32,6 +32,12 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
32
 
33
  == Changelog ==
34
 
 
 
 
 
 
 
35
  = 1.4.25 =
36
  - Tweak: Contact Forms 7 replaced by WPForms for all free demos, which is a much better and flexible form plugin.
37
 
3
  Tags: widgets, meta box, metaboxes, metabox, oceanwp
4
  Requires at least: 4.6
5
  Tested up to: 4.9.8
6
+ Stable tag: 1.4.27
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
32
 
33
  == Changelog ==
34
 
35
+ = 1.4.27 =
36
+ - Added: Dismiss button for the theme panel rating box so you can easily remove it.
37
+
38
+ = 1.4.26 =
39
+ - Fixed: Missing CSS issue.
40
+
41
  = 1.4.25 =
42
  - Tweak: Contact Forms 7 replaced by WPForms for all free demos, which is a much better and flexible form plugin.
43