addons-notice.php
5 months ago
wizard-recommender-notice.php
5 months ago
wizard-woocommerce-notice.php
5 months ago
wizard-woocommerce-notice.php
89 lines
| 1 | <?php |
| 2 | |
| 3 | use SuperbAddons\Admin\Controllers\Wizard\WizardController; |
| 4 | use SuperbAddons\Data\Utils\Wizard\WizardActionParameter; |
| 5 | |
| 6 | defined('ABSPATH') || exit; |
| 7 | |
| 8 | $superb_blocks_woocommerce_url = WizardController::GetWizardURL(WizardActionParameter::WOOCOMMERCE_HEADER); |
| 9 | ?> |
| 10 | <div class="notice notice-info superb-addons-wizard-notification is-dismissible <?php echo esc_attr($notice['unique_id']); ?>"> |
| 11 | <span class="superb-addons-wizard-notification-inner"> |
| 12 | <h2 class="notice-title"><?php echo esc_html__("Add a WooCommerce Header", "superb-blocks"); ?> </h2> |
| 13 | <p><?php echo esc_html__("We've noticed that you're using WooCommerce! Improve your store by adding a WooCommerce header with a visible 'Cart' button and other helpful features for your customers.", "superb-blocks"); ?></p> |
| 14 | <div> |
| 15 | <a class='button button-large button-primary' href='<?php echo esc_url($superb_blocks_woocommerce_url); ?>'><?php echo esc_html__("Add WooCommerce Header", "superb-blocks"); ?></a> |
| 16 | </div> |
| 17 | <style> |
| 18 | .superb-addons-wizard-notification { |
| 19 | background-position: top right 20px; |
| 20 | background-repeat: no-repeat; |
| 21 | background-size: contain; |
| 22 | } |
| 23 | |
| 24 | .superb-addons-wizard-notification-inner { |
| 25 | padding: 40px 400px 40px 30px; |
| 26 | display: inline-block; |
| 27 | width: 100%; |
| 28 | -webkit-box-sizing: border-box; |
| 29 | box-sizing: border-box; |
| 30 | position: relative; |
| 31 | background-size: contain; |
| 32 | } |
| 33 | |
| 34 | .superb-addons-wizard-notification-inner .notice-title { |
| 35 | width: 100%; |
| 36 | display: inline-block; |
| 37 | font-weight: 500; |
| 38 | color: #263238; |
| 39 | font-size: 32px; |
| 40 | line-height: 130%; |
| 41 | margin: 15px 0 20px; |
| 42 | } |
| 43 | |
| 44 | .superb-addons-wizard-notification-inner p { |
| 45 | display: inline-block; |
| 46 | width: 100%; |
| 47 | color: #546e7a; |
| 48 | font-size: 18px; |
| 49 | line-height: 144%; |
| 50 | max-width: 600px; |
| 51 | } |
| 52 | |
| 53 | .superb-addons-wizard-notification-inner a.button:active, |
| 54 | .superb-addons-wizard-notification-inner a.button:hover, |
| 55 | .superb-addons-wizard-notification-inner a.button { |
| 56 | border: 1px solid #cfd8dc; |
| 57 | padding: 10px 20px !important; |
| 58 | -webkit-box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0) !important; |
| 59 | box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0) !important; |
| 60 | color: #fff !important; |
| 61 | font-weight: 500 !important; |
| 62 | font-size: 16px !important; |
| 63 | margin-right: 15px !important; |
| 64 | text-decoration: none !important; |
| 65 | background: #00BC87 !important; |
| 66 | border-radius: 6px !important; |
| 67 | border: 2px solid #00d096 !important; |
| 68 | margin: 20px 10px 0 0 !important; |
| 69 | } |
| 70 | |
| 71 | |
| 72 | @media screen and (max-width: 1200px) { |
| 73 | .superb-addons-wizard-notification-inner { |
| 74 | padding: 30px 380px 30px 30px; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | @media screen and (max-width: 1100px) { |
| 79 | .superb-addons-wizard-notification-inner { |
| 80 | padding: 20px 0px 20px 20px; |
| 81 | } |
| 82 | |
| 83 | .superb-addons-wizard-notification { |
| 84 | background-image: none !important; |
| 85 | } |
| 86 | } |
| 87 | </style> |
| 88 | </span> |
| 89 | </div> |