Skip to content

Commit

Permalink
feat: add banner to footer on settings
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardovillao committed Jan 4, 2025
1 parent 1e1240f commit ef35389
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/css/admin/admin-style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/css/admin/admin-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,16 @@ p.omw-description {
font-size: 13px !important;
color: #7d7d7d !important;
}

.owm-offer-banner__image {
width: 100%;
height: auto;
max-width: 900px;
object-fit: contain;
border-radius: 16px;
}

.owm-offer-banner__link {
display: block;
margin-block-start: 20px;
}
7 changes: 7 additions & 0 deletions templates/admin/tab-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
exit;
}
?>
<a class="owm-offer-banner__link" href="https://codecanyon.net/item/order-on-whatsapp-for-woocommerce/25824812" target="_blank">
<picture>
<source srcset="https://eduardovillao.me/wp-content/uploads/2025/01/own-offer-banner.webp" type="image/webp">
<img src="https://eduardovillao.me/wp-content/uploads/2025/01/own-offer-banner.png" alt="<?php esc_html_e( 'Order on WhatsApp for WooCommerce', 'woo-order-on-whatsapp' );?>" class="owm-offer-banner__image" decoding="async">
</picture>
</a>

<p class="submit">
<button type="submit" name="submit_dados_update" id="submit_evwapp" class="button button-primary"><?php esc_html_e( 'Save settings', 'woo-order-on-whatsapp' );?></button>
</p>
Expand Down

0 comments on commit ef35389

Please sign in to comment.