uawdijnntqw1x1x1
IP : 3.133.109.20
Hostname : c17w.hoster.ru
Kernel : Linux c17w.hoster.ru 3.10.0 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
Disable Function : dl,shell_exec,exec,system,passthru,popen,proc_open,proc_nice,proc_get_status,proc_close,proc_terminate,posix_mkfifo,chown,chgrp,show_source,opcache_reset,opcache_get_configuration,opcache_get_status
OS : Linux
PATH:
/
home
/
srv221441
/
kso-don.ru
/
wp-content
/
plugins
/
presto-player
/
inc
/
Support
/
.
/
..
/
.
/
Models
/
.
/
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; } }
/home/srv221441/kso-don.ru/wp-content/plugins/presto-player/inc/Support/./.././Models/./Player.php