Skip to content

Commit

Permalink
Revamp promos
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Aug 14, 2023
1 parent cc65a06 commit 74b6384
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 24 deletions.
77 changes: 59 additions & 18 deletions src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,49 @@
margin-bottom: .5rem;
}

.xposter-sales p,
aside.xposter-sales {
font-size: 1.2rem;
background: #fcb000;
color: #000;
padding: .5rem;
margin-top: 10px;
}

.wpt-connection-form label {
font-weight: 600;
display: block;
}

.xposter-highlight {
background: #fcb000;
color: #000;
font-size: 2rem;
padding: 1rem;
text-align: center;
font-weight: 700;
}

.link-highlight {
text-align: center;
margin: 1rem;
}

.link-highlight a {
padding: .5rem 1rem;
font-size: 1.2rem;
background: #333;
font-weight: 700;
text-decoration: none;
color: #fff;
box-shadow: 3px 3px 0 #fcb000;
}

.link-highlight a:hover,
.link-highlight a:focus {
box-shadow: 3px 3px 0 #000;
}

#wp-to-twitter .resources {
text-align: center;
}
Expand Down Expand Up @@ -217,14 +255,9 @@ label[for="wpt_license_key"] {
}

.inside.purchase {
max-width: 45em;
max-width: 55em;
margin: 11px auto;
font-size: 1.1em;
margin: 0 auto;
}

.inside.purchase h3 {
font-size: 1.8em;
margin: 1.33em 0 0;
}

.wpt-terms li {
Expand Down Expand Up @@ -292,13 +325,8 @@ label[for='wpt_prepend_rt'], label[for='wpt_prepend_rt2'], label[for='wpt_prepen
margin:10px auto!important;
}

.wpt-button .cta a:hover, .wpt-button .cta a:focus {
text-decoration: underline;
background: #233c7f;
}

.jcd-narrow .free .postbox, .jcd-narrow .free .postbox a, .jcd-narrow .free .postbox h3 {
background: #233c7f;
.jcd-narrow .free .postbox, .jcd-narrow .free .postbox a:not(.link-highlight a), .jcd-narrow .free .postbox h3 {
background: #000;
color: #fff;
}

Expand All @@ -310,11 +338,24 @@ label[for='wpt_prepend_rt'], label[for='wpt_prepend_rt2'], label[for='wpt_prepen
text-decoration: none;
}

.inside.resources > div {
display: grid;
grid-template-columns: repeat( 2, 1fr );
column-gap: 10px;
align-items: center;
justify-items: start;
}

.inside.resources > div p:nth-of-type(2) {
justify-self: end;
position: relative;
top: -3px;
}

.jcd-narrow .free .postbox h3 {
background: #007eb3;
color: #fff;
text-shadow: 0 0 1px #000;
font-size: 1.1em;
background: #fcb000;
color: #000;
font-size: 1.2rem;
}

.wpt-support-me p {
Expand Down
29 changes: 23 additions & 6 deletions src/wp-to-twitter-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ function wpt_update_settings() {
wpt_updated_settings();
wpt_show_last_tweet();
wpt_handle_errors();
if ( ! function_exists( 'wpt_pro_exists' ) ) {
?>
<aside class="xposter-sales"><p class="link-highlight"><?php printf( __( 'Why not try a license for Xposter Pro? <a href="%s">Buy Now</a>', 'wp-to-twitter' ), 'https://xposterpro.com/awesome/xposter-pro/' ); ?></p></aside>
<?php
}
?>
<h1><?php _e( 'XPoster Options', 'wp-to-twitter' ); ?></h1>

Expand Down Expand Up @@ -244,8 +249,16 @@ function wpt_update_settings() {
<div class="postbox">
<div class="inside purchase">
<h3><strong><?php _e( 'XPoster Pro', 'wp-to-twitter' ); ?></strong></h3>
<p class="xposter-highlight">WP to Twitter is now Xposter</p>
<p>
Are you wasting time switching between X.com and WordPress to promote your posts? Do you have to delete Tweets because you accidentally published a post? Do you want to be able to schedule your post to Tweet next week, directly from your post editor? Xposter Pro will help you out!
</p>
<h3>What will Xposter PRO do for you?</h3>
<p>
PROMO HERE
It takes the great Tweeting automation from Xposter and turns it up to eleven: publish to unique X accounts for each site author; schedule up to 3 re-posts of Tweets at an interval of your choice; and, with a delay between publishing and Tweeting, check your tweets before they’re shared with your followers.
</p>
<p class="link-highlight">
<a href="https://xposterpro.com/awesome/xposter-pro/">Upgrade to Xposter Pro</a>
</p>
</div>
</div>
Expand Down Expand Up @@ -749,15 +762,19 @@ function wpt_sidebar() {
<?php
if ( 'free' === $context ) {
?>
<h3><span><strong><?php _e( 'Buy XPosterPro', 'wp-to-twitter' ); ?></strong></span></h3>
<h3><span><strong><?php _e( 'Buy Xposter Pro', 'wp-to-twitter' ); ?></strong></span></h3>
<?php
} else {
?>
<h3><span><strong><?php _e( 'XPoster Support', 'wp-to-twitter' ); ?></strong></span></h3>
<h3><span><strong><?php _e( 'Xposter Support', 'wp-to-twitter' ); ?></strong></span></h3>
<?php
}
?>
<div class="inside resources">
<p class="link-highlight">
<a href="https://xposterpro.com/awesome/xposter-pro/">Buy Xposter Pro</a>
</p>
<div>
<p>
<a href="https://twitter.com/intent/follow?screen_name=joedolson" class="twitter-follow-button" data-size="small" data-related="joedolson">Follow @joedolson</a>
<script>!function (d, s, id) {
Expand All @@ -773,14 +790,14 @@ function wpt_sidebar() {
<?php
if ( 'premium' === $context ) {
$support_url = admin_url( 'admin.php?page=wp-tweets-pro' );
$support = '<a href="' . esc_url( add_query_arg( 'tab', 'support', $support_url ) ) . '#get-support">' . __( 'Get Support', 'wp-to-twitter' ) . '</a> &bull;';
$support = '<a href="' . esc_url( add_query_arg( 'tab', 'support', $support_url ) ) . '#get-support">' . __( 'Get Support', 'wp-to-twitter' ) . '</a> &bull; ';
} else {
$support_url = false;
$support = '';
}
echo $support;
?>
<a href="<?php echo plugins_url( 'wp-tweets-pro-2.0.0.pdf', __FILE__ ); ?>"><?php _e( 'Read the Manual', 'wp-to-twitter' ); ?></a>
<p><?php echo $support; ?><a href="<?php echo plugins_url( 'wp-tweets-pro-2.0.0.pdf', __FILE__ ); ?>"><?php _e( 'Read the Manual', 'wp-to-twitter' ); ?></a></p>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 74b6384

Please sign in to comment.