Skip to content

Commit

Permalink
Make minor adjustments to design
Browse files Browse the repository at this point in the history
Issue #913
  • Loading branch information
fpcorso committed Dec 15, 2020
1 parent 8caa27d commit f4ba307
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
10 changes: 8 additions & 2 deletions assets/sass/admin-extensions-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,31 @@
.upgrade-wrapper {
background-color: white;
margin: 1em 0;
padding: 2em 1em;
padding: 3em 1em;

.upgrade-wrapper-hero {
font-size: 16px;
margin: 0 0 2em;

p {
font-size: 16px;
margin: 0;
margin: 0 0 0.3em;
}

ul {
margin: 0;
padding-left: 20px;
list-style: disc;
}

a {
margin: 0.5em 0 0;
}
}

h2 {
font-size: 2em;
margin: 0 0 0.5em;
}
}

Expand Down
10 changes: 5 additions & 5 deletions classes/Admin/Extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ public static function page() {
<li>Conditions - Show popups to visitors from a certain site, from search engines, using certain browsers, who has viewed X pages, and more </li>
<li>And much more!</li>
</ul>
<a href="#" class="button button-primary">View pricing</a>
<a href="https://wppopupmaker.com/pricing/?utm_campaign=upsell&utm_medium=plugin&utm_source=plugin-extension-page&utm_content=hero-cta" class="button button-primary" target="_blank" rel="noreferrer noopener">View pricing</a>
</section>
<section class="upgrade-wrapper-features">
<h2>Our Most Popular Premuium Features</h2>
<h2>Our Most Popular Premium Features</h2>
<?php self::render_extension_list(); ?>
<a href="https://wppopupmaker.com/extensions/?utm_source=plugin-extension-page&utm_medium=text-link&utm_campaign=upsell&utm_content=browse-all-bottom" class="button-primary" title="<?php _e( 'See All Premium Features', 'popup-maker' ); ?>" target="_blank"><?php _e( 'Browse All Extensions', 'popup-maker' ); ?></a>
<a href="https://wppopupmaker.com/extensions/?utm_campaign=upsell&utm_medium=plugin&utm_source=plugin-extension-page&utm_content=browse-all-bottom" class="button-primary" title="<?php _e( 'See All Premium Features', 'popup-maker' ); ?>" target="_blank" rel="noreferrer noopener"><?php _e( 'See All Premium Features', 'popup-maker' ); ?></a>
</section>
</article>
</div>
Expand Down Expand Up @@ -108,7 +108,7 @@ public static function render_extension_list() {
foreach ( $extensions as $extension ) : ?>
<li class="available-extension-inner <?php echo esc_attr( $extension['slug'] ); ?>">
<h3>
<a target="_blank" href="<?php echo esc_url( $extension['homepage'] ); ?>?utm_source=plugin-extension-page&utm_medium=extension-title-<?php echo $i; ?>&utm_campaign=<?php echo $campaign; ?>&utm_content=<?php echo esc_attr( urlencode( str_replace( ' ', '+', $extension['name'] ) ) ); ?>">
<a target="_blank" href="<?php echo esc_url( $extension['homepage'] ); ?>?utm_source=plugin-extension-page&utm_medium=plugin&utm_campaign=upsell&utm_content=<?php echo esc_attr( urlencode( str_replace( ' ', '+', $extension['name'] ) ) ); ?>-<?php echo esc_attr( $i ); ?>">
<?php echo esc_html( $extension['name'] ) ?>
</a>
</h3>
Expand All @@ -118,7 +118,7 @@ public static function render_extension_list() {
<p><?php echo esc_html( $extension['excerpt'] ); ?></p>

<span class="action-links">
<a class="button" target="_blank" href="<?php echo esc_url( $extension['homepage'] ); ?>?utm_source=plugin-extension-page&utm_medium=extension-button-<?php echo $i; ?>&utm_campaign=<?php echo $campaign; ?>&utm_content=<?php echo esc_attr( urlencode( str_replace( ' ', '+', $extension['name'] ) ) ); ?>"><?php _e( 'Learn more', 'popup-maker' ); ?></a>
<a class="button" target="_blank" href="<?php echo esc_url( $extension['homepage'] ); ?>?utm_source=plugin-extension-page&utm_medium=plugin&utm_campaign=upsell&utm_content=<?php echo esc_attr( urlencode( str_replace( ' ', '+', $extension['name'] ) ) ); ?>-<?php echo esc_attr( $i ); ?>"><?php _e( 'Learn more', 'popup-maker' ); ?></a>
</span>

<!-- --><?php
Expand Down
2 changes: 1 addition & 1 deletion classes/Upsell.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static function display_addon_tabs() {
'url' => admin_url( 'edit.php?post_type=popup_theme' ),
),
'integrations' => array(
'name' => esc_html__( 'Extensions', 'popup-maker' ),
'name' => esc_html__( 'Upgrade', 'popup-maker' ),
'url' => admin_url( 'edit.php?post_type=popup&page=pum-extensions&view=integrations' ),
),
);
Expand Down

0 comments on commit f4ba307

Please sign in to comment.