REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.12 KB
Close
/home/certprox/test.certproxywizard.com/wp-content/plugins/elementskit-lite/modules/widget-builder/widget-file.php
Text
Base64
<?php namespace ElementsKit_Lite\Modules\Widget_Builder; use ElementsKit_Lite\Modules\Widget_Builder\Controls\Widget_Writer; defined( 'ABSPATH' ) || exit; class Widget_File { private static $instance; public function get_file_path() { $uploads = wp_upload_dir(); $upload_dir = $uploads['basedir']; $upload_dir = $upload_dir . '/elementskit/custom_widgets'; if ( ! is_dir( $upload_dir ) ) { wp_mkdir_p( $upload_dir ); } return $upload_dir; } public static function load_filesystem() { require_once ABSPATH . 'wp-admin/includes/file.php'; WP_Filesystem(); } public function create( $wObj, $id ) { self::load_filesystem(); global $wp_filesystem; $writer = new Widget_Writer( $wObj, $id, 'elementskit-lite' ); $writer->start_backing( $wp_filesystem ); $writer->finish_backing( $wp_filesystem ); return true; } public static function get_wp_filesystem_pointer() { self::load_filesystem(); global $wp_filesystem; return $wp_filesystem; } public static function instance() { if ( self::$instance == null ) { self::$instance = new self(); } return self::$instance; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 5 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
api
DIR
-
drwxr-xr-x
2026-03-10 10:30:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
assets
DIR
-
drwxr-xr-x
2026-03-10 10:30:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
controls
DIR
-
drwxr-xr-x
2026-03-10 10:31:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fonts
DIR
-
drwxr-xr-x
2026-03-10 10:31:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
views
DIR
-
drwxr-xr-x
2026-03-10 10:31:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cpt.php
2.04 KB
lrw-r--r--
2026-03-10 10:31:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
init.php
4.56 KB
lrw-r--r--
2026-03-10 10:31:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
live-action.php
1.28 KB
lrw-r--r--
2026-03-10 10:31:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
widget-file.php
1.12 KB
lrw-r--r--
2026-03-10 10:31:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).