' . esc_html__( 'Error: Forms view file not found.', '24tt-unrestricted-forms' ) . '
'; } } /** * Callback to render the Drag-and-Drop Builder page. * @since 1.0.0 * @return void */ public function render_builder_page() { if ( ! current_user_can( 'manage_tt24_forms' ) ) { wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', '24tt-unrestricted-forms' ) ); } // We securely include the view template file that will contain our HTML structure $view_file = TT24_FORMS_ADMIN_PATH . 'views/view-builder.php'; if ( file_exists( $view_file ) ) { require_once $view_file; } else { echo '' . esc_html__( 'Error: Builder view file not found.', '24tt-unrestricted-forms' ) . '
' . esc_html__( 'Error: Entries view file not found.', '24tt-unrestricted-forms' ) . '