PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.6
YayMail – WooCommerce Email Customizer v4.4.6
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
yaymail / vendor-prefixed / views / woocommerce-required-page.php

woocommerce-required-page.php in YayMail – WooCommerce Email Customizer 4.4.6, at vendor-prefixed/views/woocommerce-required-page.php

86 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace YayMailScoped;
4
5 /**
6 * "WooCommerce required" full-screen gate.
7 *
8 * Rendered in place of a plugin's settings page when the plugin depends on
9 * WooCommerce and WooCommerce is inactive (see PluginSubmenu + the adapter's
10 * optional needs_woocommerce_screen() method). Without this, WooCommerce-only
11 * settings apps mount into an empty container and spin forever.
12 *
13 * Expects $copy (array) supplied by WooCommerceRequiredPage::render():
14 * icon, title, text, button, hint.
15 *
16 * @package YayCommerce\AdminShell\Views
17 * @var array $copy
18 */
19 \defined('ABSPATH') || exit;
20 $yaycommerce_install_wc_url = \esc_url(\admin_url('plugin-install.php?s=woocommerce&tab=search&type=term'));
21 ?>
22 <style>
23 #wpcontent #wpbody .notice,
24 .error, .updated { display: none; }
25 #wpfooter { display: none; }
26 .yaycommerce-requirement-screen {
27 display: flex;
28 align-items: center;
29 justify-content: center;
30 min-height: calc(100vh - 160px);
31 padding: 24px;
32 box-sizing: border-box;
33 }
34 .yaycommerce-requirement-card {
35 max-width: 460px;
36 width: 100%;
37 text-align: center;
38 background: #ffffff;
39 border: 1px solid #e4e4e7;
40 border-radius: 12px;
41 padding: 40px 32px;
42 box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.06 );
43 }
44 .yaycommerce-requirement-card__icon { font-size: 44px; line-height: 1; margin-bottom: 16px; }
45 .yaycommerce-requirement-card__title { font-size: 22px; font-weight: 600; color: #1e1e1e; margin: 0 0 12px; }
46 .yaycommerce-requirement-card__text { font-size: 14px; line-height: 1.6; color: #50575e; margin: 0 0 24px; }
47 .yaycommerce-requirement-card__button {
48 display: inline-block;
49 background: #873eff;
50 color: #ffffff;
51 font-size: 14px;
52 font-weight: 600;
53 text-decoration: none;
54 padding: 10px 24px;
55 border-radius: 6px;
56 transition: background 0.15s ease;
57 }
58 .yaycommerce-requirement-card__button:hover,
59 .yaycommerce-requirement-card__button:focus { background: #6f2fe0; color: #ffffff; }
60 .yaycommerce-requirement-card__hint { font-size: 12px; color: #787c82; margin: 20px 0 0; }
61 </style>
62 <div class="yaycommerce-requirement-screen">
63 <div class="yaycommerce-requirement-card">
64 <div class="yaycommerce-requirement-card__icon" aria-hidden="true"><?php
65 echo \esc_html($copy['icon']);
66 ?></div>
67 <h1 class="yaycommerce-requirement-card__title"><?php
68 echo \esc_html($copy['title']);
69 ?></h1>
70 <p class="yaycommerce-requirement-card__text"><?php
71 echo \esc_html($copy['text']);
72 ?></p>
73 <a class="yaycommerce-requirement-card__button" href="<?php
74 echo \esc_url($yaycommerce_install_wc_url);
75 ?>">
76 <?php
77 echo \esc_html($copy['button']);
78 ?>
79 </a>
80 <p class="yaycommerce-requirement-card__hint"><?php
81 echo \esc_html($copy['hint']);
82 ?></p>
83 </div>
84 </div>
85 <?php
86