This repository has been archived by the owner on May 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Codeinwp/development
!!! Leave us a review + new documentation link + upgrade to pro butto…
- Loading branch information
Showing
6 changed files
with
107 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.oblique-upgrade-to-pro-button { | ||
padding: 3px 6px !important; | ||
line-height: 1.5 !important; | ||
font-size: 9px !important; | ||
color: #ffffff !important; | ||
background-color: #EA6F60; | ||
letter-spacing: 1px; | ||
text-transform: uppercase; | ||
} | ||
.customizer-review-link { | ||
padding-top: 10px; | ||
text-align: center; | ||
} | ||
|
||
.customizer-review-link p { | ||
font-size: 12px; | ||
margin-bottom: 0; | ||
} | ||
|
||
.customizer-review-link span { | ||
font-size: 12px; | ||
width: 12px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
jQuery(document).ready(function($) { | ||
|
||
var load_ask_for_reviews = function(){ | ||
$.ajax({ | ||
type : "POST", | ||
data : {action: 'oblique_dismiss_asking_for_reviews'}, | ||
dataType : "html", | ||
url : obliqueAskingForReviewsObject.ajaxurl, | ||
success : function(data){ | ||
if( obliqueAskingForReviewsObject.ask == 'no') { | ||
jQuery('.customizer-review-link').remove(); | ||
} else { | ||
jQuery('#customize-theme-controls').append('<div class="customizer-review-link"><p>Star this theme on <a href="https://wordpress.org/support/view/theme-reviews/oblique" target="_blank">WordPress.org</a>!</p><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span></div>'); | ||
} | ||
}, | ||
error : function(jqXHR, textStatus, errorThrown) { | ||
console.log(jqXHR + " :: " + textStatus + " :: " + errorThrown); | ||
} | ||
}); | ||
} | ||
|
||
var dismiss_ask_for_reviews = function(){ | ||
$.ajax({ | ||
type : "POST", | ||
data : {action: 'oblique_dismiss_asking_for_reviews', ask: 'no'}, | ||
dataType : "html", | ||
url : obliqueAskingForReviewsObject.ajaxurl, | ||
success : function(data){ | ||
jQuery('.customizer-review-link').remove(); | ||
}, | ||
error : function(jqXHR, textStatus, errorThrown) { | ||
console.log(jqXHR + " :: " + textStatus + " :: " + errorThrown); | ||
} | ||
}); | ||
} | ||
|
||
$('.customizer-review-link a').die("click").live("click",function() { | ||
dismiss_ask_for_reviews(); | ||
}); | ||
load_ask_for_reviews(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters