PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.5.4
JetFormBuilder — Dynamic Blocks Form Builder v3.5.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 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / modules / form-record / admin / pages / print-page.php
jetformbuilder / modules / form-record / admin / pages Last commit date
traits 2 years ago export-page.php 1 year ago form-records.php 2 years ago print-page.php 1 year ago single-form-record-page.php 2 years ago single-form-record-print-page.php 2 years ago
print-page.php
52 lines
1 <?php
2
3
4 namespace JFB_Modules\Form_Record\Admin\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 Jet_Form_Builder\Admin\Tabs_Handlers\Tab_Handler_Manager;
12 use JFB_Modules\Form_Record\Admin\View_Columns\Form_Link_Column;
13 use JFB_Modules\Form_Record\Admin\View_Columns\Referrer_Link_Column;
14 use Jet_Form_Builder\Exceptions\Repository_Exception;
15 use JFB_Components\Admin\Page\Interfaces\Action_Page_It;
16 use JFB_Components\Admin\Page\Traits\Action_Page_Trait;
17 use JFB_Components\Admin\Print_Page\Footer;
18 use JFB_Components\Admin\Print_Page\Header;
19 use JFB_Modules\Form_Record\Admin\Meta_Boxes\Form_Record_Fields_Box;
20 use JFB_Modules\Form_Record\Admin\Meta_Boxes\Form_Record_Values_Box;
21 use JFB_Modules\Framework\Module;
22
23 // If this file is called directly, abort.
24 if ( ! defined( 'WPINC' ) ) {
25 die;
26 }
27
28 class Print_Page implements Action_Page_It {
29
30 use Action_Page_Trait;
31
32 /**
33 * @inheritDoc
34 */
35 public function slug(): string {
36 return 'record-print';
37 }
38
39 public function check_permission(): bool {
40 $capability = Tab_Handler_Manager::get_form_records_access_capability();
41 return current_user_can( 'manage_options' ) || current_user_can( $capability );
42 }
43
44 public function render_page() {
45 $page = new Single_Form_Record_Print_Page();
46
47 Pages_Manager::instance()->set_current_page_raw( $page );
48 Pages_Manager::instance()->single()->render_standalone();
49 }
50
51 }
52