PluginProbe
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More / 2.4.1
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More v2.4.1
2.4.1 2.4.0 2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.2 2.2.1 2.2.0 2.1.2 2.1.1 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 All 68 releases
← All changes | includes/Admin/ReactAdmin.php +10 -30 2.3.2 → 2.4.1 View file →
@@ -233,37 +233,8 @@
233 233 .auto-fold .better-payment-admin {
234 234 margin-left: -2px;
235 235 }
236 236 }
237 -
238 - @media print {
239 - body {
240 - transform: scale(1);
241 - background: white !important;
242 - }
243 -
244 - body, body *, .wpcontent {
245 - visibility: hidden !important;
246 - }
247 -
248 - .bp-invoice-body,
249 - .bp-invoice-body * {
250 - visibility: visible !important;
251 - }
252 -
253 - /* Make modal fill the full page */
254 - .bp-invoice-body {
255 - position: absolute !important;
256 - left: 0;
257 - top: 100;
258 - width: 100% !important;
259 - height: auto !important;
260 - }
261 -
262 - .bp-button-wrapper {
263 - display: none !important;
264 - }
265 - }
266 237 </style>
267 238 <?php
268 239 }
269 240
@@ -294,10 +265,16 @@
294 265 ],
295 266 'currencies' => $this->get_currency_list(),
296 267 'userRoles' => $this->get_user_roles_list(),
297 268 'currencySymbol' => $this->get_currency_symbol( $settings['better_payment_settings_general_general_currency'] ),
298 - 'campaignTemplates' => array_values( TemplateManager::get_all() ),
269 + // Picker-facing, so retired designs stay out of it. The renderer
270 + // still needs get_all(); see TemplateManager::get_for_picker().
271 + 'campaignTemplates' => array_values( TemplateManager::get_for_picker() ),
299 272 'adminBaseUrl' => admin_url(),
273 + // How `payment_date` (UTC) is shown: the site's timezone, an IANA name or a
274 + // fixed offset such as `+06:00` (never '' — the `timezone_string` option is
275 + // empty on a site set to a manual UTC offset).
276 + 'siteTimezone' => wp_timezone_string(),
300 277 ];
301 278 }
302 279
303 280 /**
@@ -424,8 +401,11 @@
424 401 $admin_css_file,
425 402 [],
426 403 $this->file_version
427 404 );
405 +
406 + // Styles for the screens only Pro renders (receipt modal, Analytics, refund card,
407 + // licence page) ship with Better Payment Pro, which depends on this handle.
428 408
429 409 // Campaign-list CSS contains the template-select modal styles needed on this page too.
430 410 $campaign_list_css = BETTER_PAYMENT_ASSETS . '/admin/campaign-list/campaign-list.min.css';
431 411 if ( file_exists( BETTER_PAYMENT_PATH . '/assets/admin/campaign-list/campaign-list.min.css' ) ) {