Skip to content

Commit

Permalink
Update WP
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerhandley committed Oct 30, 2017
1 parent 3233fee commit 9e75074
Show file tree
Hide file tree
Showing 38 changed files with 1,872 additions and 416 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@

END OF TERMS AND CONDITIONS

Copyright 2015-2016 Patreon, Inc. and Ben Parry
Copyright 2015-2016 Patreon, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Patreon Plugin for Wordpress
Copyright 2015-2016 Patreon, Inc. and Ben Parry
Copyright 2015-2017 Patreon, Inc.

This product includes software developed at Patreon, Inc. (https://www.patreon.com/).
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
# Installation Instructions

0. Download via the "Download ZIP" link on the right side of this page
1. Register an OAuth client if you haven't already at https://www.patreon.com/platform/documentation/clients
2. Add the plugin to your wordpress
3. When you refresh your admin panel, there should now be a "Patreon settings" on the left side, near the bottom. Fill out your Client ID, Client Secret, Creator Access Token, and Creator Refresh Token and hit Save

# Usage Instructions

* You should now see on your login page a "Connect with Patreon" button (this is the image that is currently very gross... will get a better one shortly). Your patrons can use this to log in to your WordPress with their Patreon account.
* If the patron didnt have a WordPress account yet, it will make a new one and log them in
* If the patron did have a WordPress account with a matching email address to the one they used on Patreon, it will keep their existing WordPress account, and add the patronage details to that user
* Here's the rough part: if the patron did have a WP account, but under a different email address, then it will not know to connect to that different WP account (as it has no way of knowing that), and will instead make a new WP account for them. Eventually, we'll add a "connect your Patreon" button to the WP user's account page (rather than it only being on your login page), and clicking the button there will merge the patronage details even if the emails don't match. Hopefully that explanation makes some sense...
* You should also now see a "Patreon Content" link near the top of your dashboard menu. The plugin is designed to let you have only pieces of posts be hidden from non-patrons, rather than hiding the existence of the post entirely. So the flow is
* "Add New Patreon Content"
* Fill out the patron-only content
* Use the "Patreon Level" widget on the right side to choose what level of patronage to restrict visibility to
* To use this piece of content in a post, put the slug in your post, like so: `[patreon_content slug="this-content-is-for-patrons-only"]` (the thing in quotes can be found highlighted in yellow under the title field in the Add New Patreon Content page (not the full URL, just the yellow bit))
105 changes: 0 additions & 105 deletions admin/patreon-content-metabox.php

This file was deleted.

110 changes: 0 additions & 110 deletions admin/patreon-options-page.php

This file was deleted.

43 changes: 43 additions & 0 deletions assets/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.ptrn-button{display:block;margin-bottom:30px!important;border: none!important;}
.ptrn-button img {width: 272px; height:42px;}
.patreon-msg {-webkit-border-radius: 6px;-moz-border-radius: 6px;-ms-border-radius: 6px;-o-border-radius: 6px;border-radius: 6px;padding:8px;margin-bottom:20px!important;display:block;border:1px solid #E6461A;background-color:#484848;color:#ffffff;}

.ptrn-branding {color:#fff;background-color:#F96854;}

.ptrn-branded-button {
box-shadow: none!important;
color:#fff!important;
background-color:#F96854;
border: 0;
-webkit-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: none;
box-shadow: none;
color: #fff;
cursor: pointer;
font-size: 14px;
font-size: 0.875rem;
font-weight: 800;
line-height: 1;
padding: 1em 2em;
text-shadow: none;
-webkit-transition: background 0.2s;
transition: background 0.2s;
text-decoration: none!important;
margin-bottom: 1rem;
display: block;
width: 260px;
text-align: center;
text-transform: uppercase;
}
.ptrn-branded-button .logo {
width:20px;
color:#fff!important;
vertical-align: middle;
margin-right: 0.5rem;
box-shadow: none!important;
}

#login .ptrn-branded-button {
width:auto;
}
Loading

0 comments on commit 9e75074

Please sign in to comment.