1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<?php
namespace Objectiv\Plugins\Checkout\Admin\Pages;
use Objectiv\Plugins\Checkout\Managers\PlanManager;
/** * @link checkoutwc.com * @since 5.0.0 * @package Objectiv\Plugins\Checkout\Admin\Pages * @author Clifton Griffin <[email protected]> */ class OrderPay extends PageAbstract { public function __construct() { parent::__construct( cfw__( 'Order Pay', 'checkout-wc' ), 'manage_options', 'order-pay' ); }
public function output() { $this->output_form_open(); ?> <table class="form-table"> <tbody> <?php if ( ! PlanManager::has_required_plan( PlanManager::PLUS ) ) { $notice = $this->get_upgrade_required_notice( PlanManager::get_english_list_of_required_plans_html( PlanManager::PLUS ) ); } $this->output_checkbox_row( 'enable_order_pay', cfw__( 'Order Pay Page', 'checkout-wc' ), cfw__( 'Enable support for order pay page template.', 'checkout-wc' ), cfw__( 'Use checkout template for order pay page.', 'checkout-wc' ), PlanManager::has_required_plan( PlanManager::PLUS ), $notice ?? '' ); ?> </tbody> </table> <?php $this->output_form_close(); } }
|