PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.6
JetFormBuilder — Dynamic Blocks Form Builder v3.6.6
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 134 releases
jetformbuilder / modules / gateways / pages / print-page.php

print-page.php in JetFormBuilder — Dynamic Blocks Form Builder 3.6.6, at modules/gateways/pages/print-page.php

50 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace JFB_Modules\Gateways\Pages;
5
6 use Jet_Form_Builder\Admin\Exceptions\Not_Found_Page_Exception;
7 use Jet_Form_Builder\Admin\Pages\Pages_Manager;
8 use Jet_Form_Builder\Admin\Single_Pages\Meta_Boxes\Base_List_Box;
9 use Jet_Form_Builder\Admin\Single_Pages\Meta_Boxes\Base_Table_Box;
10 use Jet_Form_Builder\Admin\Single_Pages\Meta_Containers\Base_Meta_Container;
11 use JFB_Modules\Form_Record\Admin\View_Columns\Form_Link_Column;
12 use JFB_Modules\Form_Record\Admin\View_Columns\Referrer_Link_Column;
13 use Jet_Form_Builder\Exceptions\Repository_Exception;
14 use JFB_Components\Admin\Page\Interfaces\Action_Page_It;
15 use JFB_Components\Admin\Page\Traits\Action_Page_Trait;
16 use JFB_Components\Admin\Print_Page\Footer;
17 use JFB_Components\Admin\Print_Page\Header;
18 use JFB_Modules\Form_Record\Admin\Meta_Boxes\Form_Record_Fields_Box;
19 use JFB_Modules\Form_Record\Admin\Meta_Boxes\Form_Record_Values_Box;
20 use JFB_Modules\Framework\Module;
21
22 // If this file is called directly, abort.
23 if ( ! defined( 'WPINC' ) ) {
24 die;
25 }
26
27 class Print_Page implements Action_Page_It {
28
29 use Action_Page_Trait;
30
31 /**
32 * @inheritDoc
33 */
34 public function slug(): string {
35 return 'payment-print';
36 }
37
38 public function check_permission(): bool {
39 return current_user_can( 'manage_options' );
40 }
41
42 public function render_page() {
43 $page = new Single_Payment_Print_Page();
44
45 Pages_Manager::instance()->set_current_page_raw( $page );
46 Pages_Manager::instance()->single()->render_standalone();
47 }
48
49 }
50