'subscrpt_checkout_type',
'value' => 'checkout',
'options' => array(
array(
'value' => 'cart',
'label' => __( 'Add to cart', 'subscription' ),
),
array(
'value' => 'checkout',
'label' => __( 'Checkout', 'subscription' ),
),
),
'attrs' => array(
'data-subscrpt-checkout-type' => '1',
'style' => 'width:100%;',
),
)
);
?>
(string) $subscrpt_ctx['vid'],
'label' => $subscrpt_ctx['label'],
);
}
wpsubs_render_adv_select(
array(
'name' => 'subscrpt_checkout_variation',
'value' => (string) $subscrpt_default_vid,
'options' => $subscrpt_var_opts,
'attrs' => array(
'data-subscrpt-checkout-variation' => '1',
'style' => 'width:100%;',
),
)
);
?>
true ];
}
foreach ( $subscrpt_recurring as $subscrpt_p ) {
$subscrpt_plan_opts[] = $subscrpt_p;
}
$subscrpt_plan_default = isset( $subscrpt_ctx['plans'][0]['value'] ) ? $subscrpt_ctx['plans'][0]['value'] : '';
?>
>
'subscrpt_checkout_plan_' . $subscrpt_ctx['vid'],
'value' => $subscrpt_plan_default,
'options' => $subscrpt_plan_opts,
'attrs' => array(
'data-subscrpt-checkout-plan' => '1',
'style' => 'width:100%;',
),
)
);
?>