PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.2.7
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.2.7
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
merchant / admin / pages / page-patcher.php

page-patcher.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 2.2.7, at admin/pages/page-patcher.php

393 lines 16.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Patcher page.
5 *
6 */
7
8 // Exit if accessed directly.
9 if (!defined('ABSPATH')) {
10 exit;
11 }
12
13 ?>
14
15 <style>
16 .merchant-dashboard-alert {
17 background-color: #fbfbfb;
18 border: 1px solid #ebebeb;
19 border-radius: 6px;
20 padding: 20px;
21 margin: 0 0 20px;
22 box-shadow: 0px 1px 2px rgba(0, 0, 0, .15);
23 }
24
25 .merchant-dashboard-alert p {
26 margin: 0
27 }
28
29 .merchant-dashboard-alert.merchant-dashboard-alert-with-icon {
30 position: relative;
31 padding-left: 50px
32 }
33
34 .merchant-dashboard-alert.merchant-dashboard-alert-with-icon .alert-icon {
35 position: absolute;
36 top: 21px;
37 left: 20px;
38 max-width: 17px
39 }
40
41 .merchant-dashboard-alert.merchant-dashboard-alert-with-icon .alert-icon svg {
42 width: 100%;
43 height: auto
44 }
45
46 .merchant-dashboard-alert.merchant-dashboard-alert-with-upsell-link {
47 padding-right: 160px
48 }
49
50 .merchant-dashboard-alert.merchant-dashboard-alert-with-upsell-link .merchant-dashboard-external-link {
51 position: absolute;
52 top: 22px;
53 right: 20px
54 }
55
56 .merchant-dashboard-external-link {
57 display: -webkit-inline-box;
58 display: -ms-inline-flexbox;
59 display: inline-flex;
60 gap: 8px;
61 font-size: 13px;
62 line-height: 13px;
63 font-weight: 500;
64 color: #3858e9;
65 white-space: nowrap;
66 -webkit-transition: ease opacity 300ms;
67 transition: ease opacity 300ms
68 }
69
70 .merchant-dashboard-external-link svg {
71 position: relative;
72 top: 1px
73 }
74
75 .merchant-dashboard-external-link:hover,.merchant-dashboard-external-link:focus,.merchant-dashboard-external-link:active {
76 color: #3858e9;
77 opacity: .7
78 }
79
80 h2 {
81 margin-block-end: 10px;
82 }
83
84 p {
85 color: #757575;
86 }
87
88 #athemes-patcher-options-page {
89 max-width: 1280px;
90 margin: 0 auto;
91 padding: 25px 25px 25px 0px;
92 }
93
94 .athemes-patcher-info-badge {
95 display: -webkit-box;
96 display: -webkit-flex;
97 display: -ms-flexbox;
98 display: flex;
99 -webkit-align-items: center;
100 -webkit-box-align: center;
101 -ms-flex-align: center;
102 align-items: center;
103 gap: 7px;
104 color: #444;
105 background-color: #f0f2ff;
106 padding: 14px;
107 border-radius: 7px;
108 -webkit-text-decoration: none;
109 text-decoration: none;
110 }
111
112 .athemes-patcher-info-badge:hover {
113 color: #212121;
114 }
115
116 .athemes-patcher-info-badge svg {
117 width: 18px;
118 fill: #444;
119 }
120
121 .components-panel__body {
122 border: 0;
123 }
124
125 .athemes-patcher-card-title {
126 font-size: 16px;
127 font-weight: 600;
128 margin-block-start: 0;
129 margin-block-end: 10px;
130 }
131
132 .athemes-patcher-card-desc {
133 color: #757575;
134 margin-block-start: 0;
135 margin-block-end: 20px;
136 }
137
138 .athemes-patcher-card {
139 background-color: #FFF;
140 box-shadow: 0px 1px 2px rgba(0, 0, 0, .15);
141 border-radius: 7px;
142 }
143
144 .athemes-patcher-card+.athemes-patcher-card {
145 margin-block-start: 20px;
146 }
147
148 .athemes-patchers-table thead tr:first-of-type {
149 border-top: 0;
150 }
151
152 .athemes-patchers-table tr {
153 border-top: 1px solid #e3e3e3;
154 }
155
156 .athemes-patchers-table td,
157 .athemes-patchers-table th {
158 padding: 7px 0px;
159 }
160
161 .athemes-patchers-table th:first-of-type,
162 .athemes-patchers-table th:last-of-type {
163 width: 150px;
164 }
165
166 .athemes-patchers-table td {
167 color: #444;
168 }
169
170 .css-1hdyajo {
171 padding: 20px;
172 }
173
174 .css-3nngo0 {
175 margin-block-start: 0;
176 margin-block-end: 20px;
177 }
178
179 .css-1qudilh {
180 background-color: #f5f5f5;
181 padding: 20px;
182 border-radius: 7px;
183 text-align: center;
184 }
185
186 .css-1yscn4x {
187 margin-top: 20px;
188 }
189
190 .css-12dj36i {
191 border-radius: 7px;
192 }
193
194 .css-13h15nb {
195 background-color: #f5f5f5;
196 padding: 20px;
197 border-radius: 7px;
198 text-align: left;
199 }
200
201 .css-18si9r1 {
202 width: 100%;
203 border-collapse: collapse;
204 text-align: left;
205 }
206
207 .css-wpjqd {
208 display: -webkit-inline-box;
209 display: -webkit-inline-flex;
210 display: -ms-inline-flexbox;
211 display: inline-flex;
212 -webkit-align-items: center;
213 -webkit-box-align: center;
214 -ms-flex-align: center;
215 align-items: center;
216 gap: 5px;
217 background-color: transparent !important;
218 color: #3858e9 !important;
219 border-radius: 4px;
220 border: 2px solid #3858e9;
221 }
222
223 .css-wpjqd:hover {
224 background-color: #3858e9;
225 color: #FFF !important;
226 }
227
228 .css-wpjqd:disabled {
229 color: #3858e9 !important;
230 border: 2px solid #3858e9;
231 }
232
233 .css-152qpu8 {
234 width: 15px;
235 }
236
237 .css-adm54n{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:5px;background-color:#3858e9;color:#FFF!important;border-radius:4px;}
238
239 .has-lock-icon svg {
240 width: 18px;
241 }
242
243 .merchant-dashboard-pro-tooltip {
244 position: relative
245 }
246
247 .merchant-dashboard-pro-tooltip:before {
248 content: attr(data-tooltip-message);
249 position: absolute;
250 bottom: calc(100% + 11px);
251 left: 50%;
252 color: #fff;
253 font-size: 11px;
254 line-height: 16px;
255 padding: 3px 6px;
256 background-color: #1e1e1e;
257 white-space: nowrap;
258 opacity: 0;
259 visibility: hidden;
260 -webkit-transform: translate3d(-50%, 6px, 0);
261 transform: translate3d(-50%, 6px, 0);
262 -webkit-transition: ease opacity 300ms,ease transform 300ms;
263 transition: ease opacity 300ms,ease transform 300ms;
264 z-index: 2
265 }
266
267 .merchant-dashboard-pro-tooltip:after {
268 content: "";
269 position: absolute;
270 bottom: calc(100% + 3px);
271 left: 50%;
272 width: 0;
273 height: 0;
274 border-style: solid;
275 border-width: 4px 4px 4px 4px;
276 border-color: #1e1e1e rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);
277 opacity: 0;
278 visibility: hidden;
279 -webkit-transform: translate3d(-50%, 6px, 0);
280 transform: translate3d(-50%, 6px, 0);
281 -webkit-transition: ease opacity 300ms,ease transform 300ms;
282 transition: ease opacity 300ms,ease transform 300ms;
283 z-index: 2
284 }
285
286 .merchant-dashboard-pro-tooltip:hover:before,.merchant-dashboard-pro-tooltip:hover:after {
287 opacity: 1;
288 visibility: visible;
289 -webkit-transform: translate3d(-50%, 0, 0);
290 transform: translate3d(-50%, 0, 0)
291 }
292 </style>
293 <div id="athemes-patcher-options-page">
294 <?php if ( ! defined( 'MERCHANT_PRO_VERSION' ) ) : ?>
295 <div class="merchant-dashboard-alert merchant-dashboard-alert-warning merchant-dashboard-alert-with-icon merchant-dashboard-alert-with-upsell-link">
296 <div class="alert-icon">
297 <svg height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><title/><path d="M85.57,446.25H426.43a32,32,0,0,0,28.17-47.17L284.18,82.58c-12.09-22.44-44.27-22.44-56.36,0L57.4,399.08A32,32,0,0,0,85.57,446.25Z" fill="none" stroke="#000" stroke-linecap="rounded" stroke-width="32" stroke-linejoin="round" /><path d="M250.26,195.39l5.74,122,5.73-121.95a5.74,5.74,0,0,0-5.79-6h0A5.74,5.74,0,0,0,250.26,195.39Z" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" /><path d="M256,397.25a20,20,0,1,1,20-20A20,20,0,0,1,256,397.25Z"/></svg>
298 </div>
299 <p class="bt-text-color-grey"><?php echo esc_html__( 'Please note this feature is available only in Merchant Pro', 'merchant' ); ?></p>
300 <a href="https://athemes.com/merchant-upgrade?utm_source=athemes-patcher&utm_medium=link&utm_campaign=Merchant" class="merchant-dashboard-external-link" target="_blank">
301 <?php echo esc_html__( 'Upgrade Now', 'merchant' ); ?>
302
303 <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
304 <path d="M11.4375 0H8.25C7.94531 0 7.66406 0.1875 7.54688 0.492188C7.42969 0.773438 7.5 1.10156 7.71094 1.3125L8.67188 2.27344L4.14844 6.79688C3.84375 7.07812 3.84375 7.57031 4.14844 7.85156C4.28906 7.99219 4.47656 8.0625 4.6875 8.0625C4.875 8.0625 5.0625 7.99219 5.20312 7.85156L9.72656 3.32812L10.6875 4.28906C10.8281 4.42969 11.0156 4.5 11.2266 4.5C11.3203 4.5 11.4141 4.5 11.5078 4.45312C11.8125 4.33594 12 4.05469 12 3.75V0.5625C12 0.257812 11.7422 0 11.4375 0ZM9.1875 7.5C8.85938 7.5 8.625 7.75781 8.625 8.0625V10.6875C8.625 10.8047 8.53125 10.875 8.4375 10.875H1.3125C1.19531 10.875 1.125 10.8047 1.125 10.6875V3.5625C1.125 3.46875 1.19531 3.375 1.3125 3.375H3.9375C4.24219 3.375 4.5 3.14062 4.5 2.8125C4.5 2.50781 4.24219 2.25 3.9375 2.25H1.3125C0.585938 2.25 0 2.85938 0 3.5625V10.6875C0 11.4141 0.585938 12 1.3125 12H8.4375C9.14062 12 9.75 11.4141 9.75 10.6875V8.0625C9.75 7.75781 9.49219 7.5 9.1875 7.5Z" fill="#3858E9"/>
305 </svg>
306 </a>
307 </div>
308 <?php endif; ?>
309
310 <div data-wp-c16t="true" data-wp-component="Card" class="components-surface components-card athemes-patcher-card css-1hdyajo css-1otwcjs e19lxcc00">
311 <div class="css-10klw3m e19lxcc00">
312 <h2 class="css-3nngo0">aThemes Patcher</h2>
313 <p>Welcome to the aThemes Patcher settings page. The Patcher allows you to apply small fixes to your website without the need to await for new releases, keeping your website up to date.</p>
314 <a href="https://docs.athemes.com/article/pro-athemes-patcher/" class="athemes-patcher-info-badge" target="_blank">
315 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false">
316 <path d="M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"></path>
317 </svg>Learn more about the Patcher </a>
318 </div>
319 <div data-wp-c16t="true" data-wp-component="Elevation" class="components-elevation css-1w1p2h9 e19lxcc00" aria-hidden="true"></div>
320 <div data-wp-c16t="true" data-wp-component="Elevation" class="components-elevation css-1w1p2h9 e19lxcc00" aria-hidden="true"></div>
321 </div>
322 <div data-wp-c16t="true" data-wp-component="Card" class="components-surface components-card athemes-patcher-card css-1hdyajo css-1otwcjs e19lxcc00">
323 <div class="css-10klw3m e19lxcc00">
324 <h3 class="athemes-patcher-card-title">Merchant Pro</h3>
325 <p class="athemes-patcher-card-desc">The following patches are available for the version <?php echo esc_html( MERCHANT_VERSION ); ?></p>
326 <div data-wp-c16t="true" data-wp-component="CardBody" class="components-card__body components-card-body css-13h15nb css-9ii361 e19lxcc00">
327 <table class="athemes-patchers-table css-18si9r1">
328 <thead>
329 <tr>
330 <th>Patch #</th>
331 <th>Description</th>
332 <th>Action</th>
333 </tr>
334 </thead>
335 <tbody>
336 <tr>
337 <td>#467</td>
338 <td>Improved performance when loading custom assets during page transitions.</td>
339 <td>
340 <?php if ( defined( 'MERCHANT_PRO_VERSION' ) && ! defined( 'ATHEMES_PATCHER_VERSION' ) ) : ?>
341 <a class="components-button has-lock-icon css-adm54n merchant-dashboard-pro-tooltip merchant-install-plugin" href="https://athemes.com/merchant?utm_source=athemes-patcher&utm_medium=link&utm_campaign=Merchant" target="_blank" data-tooltip-message="<?php echo esc_attr__( 'This will install and activate the aThemes Patcher plugin', 'merchant' ); ?>" data-type="external" data-plugin-url="https://patcher.athemes.com/athemes-patcher.zip?nocache=<?php echo esc_attr( time() ); ?>" data-plugin-name="athemes-patcher/athemes-patcher.php" data-redirect-to="<?php echo esc_url( add_query_arg('page', 'athemes-patcher-mp', admin_url('admin.php')) ); ?>">
342 Install Patcher
343 </a>
344 <?php else : ?>
345 <a class="components-button has-lock-icon css-adm54n merchant-dashboard-pro-tooltip" href="https://athemes.com/merchant?utm_source=athemes-patcher&utm_medium=link&utm_campaign=Merchant" target="_blank" data-tooltip-message="<?php echo esc_attr__( 'This is only available on Merchant Pro', 'merchant' ); ?>">
346 Apply
347 <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="48" height="48" aria-hidden="true" focusable="false"><path d="M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"></path></svg>
348 </a>
349 <?php endif; ?>
350 </td>
351 </tr>
352 <tr>
353 <td>#465</td>
354 <td>Updated widget behavior for smoother interactions across multiple devices.</td>
355 <td>
356 <button type="button" disabled="" class="components-button css-wpjqd">Applied <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" class="css-152qpu8" aria-hidden="true" focusable="false">
357 <path d="M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"></path>
358 </svg>
359 </button>
360 </td>
361 </tr>
362 <tr>
363 <td>#463</td>
364 <td>Minor fix to improve admin panel usability. </td>
365 <td>
366 <button type="button" disabled="" class="components-button css-wpjqd">Applied <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" class="css-152qpu8" aria-hidden="true" focusable="false">
367 <path d="M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"></path>
368 </svg>
369 </button>
370 </td>
371 </tr>
372 </tbody>
373 </table>
374 </div>
375 <div class="css-1yscn4x">
376 <div class="css-12dj36i components-panel">
377 <div class="components-panel__body">
378 <h2 class="components-panel__body-title">
379 <button type="button" aria-expanded="false" class="components-button components-panel__body-toggle">
380 <span aria-hidden="true">
381 <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="components-panel__arrow" aria-hidden="true" focusable="false">
382 <path d="M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"></path>
383 </svg>
384 </span>Logs </button>
385 </h2>
386 </div>
387 </div>
388 </div>
389 </div>
390 <div data-wp-c16t="true" data-wp-component="Elevation" class="components-elevation css-1w1p2h9 e19lxcc00" aria-hidden="true"></div>
391 <div data-wp-c16t="true" data-wp-component="Elevation" class="components-elevation css-1w1p2h9 e19lxcc00" aria-hidden="true"></div>
392 </div>
393 </div>