Skip to content

Commit

Permalink
Fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
arnas committed Apr 17, 2024
1 parent 6a2856f commit e4850ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
8 changes: 1 addition & 7 deletions omnisend/includes/Internal/class-connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,13 @@ public static function resolve_wordpress_settings() {
$url = 'https://api.omnisend.com/wordpress/settings';
$response = wp_remote_get( $url );

if ( is_wp_error( $response ) ) {
// used for debugging.
error_log( $response->get_error_message() ); // phpcs:ignore

} else {
if ( ! is_wp_error( $response ) ) {
$body = wp_remote_retrieve_body( $response );

$data = json_decode( $body );
// ignore phpcs warning as it's response from API.
if ( ! empty( $data->exploreOmnisendLink ) ) { // phpcs:ignore

self::$landing_page_url = $data->exploreOmnisendLink; // phpcs:ignore

}
}
}
Expand Down
10 changes: 4 additions & 6 deletions omnisend/view/landing-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
<div class="omnisend-spacing-mb-25 omnisend-button-container">
<?php if (Omnisend_Core_Bootstrap::is_hostinger_plugin_active()): ?>
<a class="omnisend-button-green" href="<?php echo Omnisend\Internal\Connection::$landing_page_url;?>" target="_blank"> Explore Omnisend </a>
<a class="omnisend-button-green" href="<?php echo Omnisend\Internal\Connection::$Landing_page_URL;?>" target="_blank"> Explore Omnisend </a>
<a class="omnisend-button" href="admin.php?page=omnisend&action=show_connection_form"> Connect Omnisend </a>
<?php else: ?>
<a class="omnisend-button-green" href="admin.php?page=omnisend&action=show_connection_form"> Connect Omnisend </a>
Expand Down Expand Up @@ -66,15 +66,13 @@
<div class="omnisend-spacing-mb-4">
<div class="omnisend-landing-page-banner-header">Join 100,000+ brands using Omnisend</div>
</div>
<div class="omnisend-spacing-mb-8">
<div class="omnisend-landing-page-banner-text">
Quickly connect Omnisend to turn visitors into subscribers and keep them engaged with newsletters and targeted
emails.
</div>
<div class="omnisend-spacing-mb-25 omnisend-button-container">
<a class="omnisend-button-green" href="<?php echo Omnisend\Internal\Connection::$landing_page_url;?>" target="_blank"> Explore Omnisend </a>
<a class="omnisend-button-white" href="admin.php?page=omnisend&action=show_connection_form"> Connect Omnisend </a>
</div>
<div class="omnisend-spacing-mv-8 omnisend-button-container">
<a class="omnisend-button-green" href="<?php echo Omnisend\Internal\Connection::$Landing_page_URL;?>" target="_blank"> Explore Omnisend </a>
<a class="omnisend-button-white" href="admin.php?page=omnisend&action=show_connection_form"> Connect Omnisend </a>
</div>
</div>
</div>
Expand Down

0 comments on commit e4850ea

Please sign in to comment.