openvk/Web/Presenters/templates/Apps/Play.xml
mrilyew 7d450c18fd
feat: ajax, audio refactor (#1164)
* Make audio player pizdatey

* Simple ajax routing (scripts are broken)

* Fix most common script problems pt1

* Add ajax player

Осталось пофиксить скрипты и создание плейлистов! Ну и ещё некоторые хуйни по аудиозаписям которые я задумал.

* Add context menu for audios

* Refactor audio upload page

* Repair playlists

* Fix main problems

* Midnight teme adaptation

* Stupid bug fix

* Save audios list in da localstorage and fix msgbox

* Fix time setting

* add beforeUnload event

* Stupid bugs fix

* update page footer on transition

* fix wall publihing

* fix 500 on non existent page
2024-12-07 17:18:29 +03:00

40 lines
1.1 KiB
XML

{extends "../@layout.xml"}
{var $canReport = $owner->getId() !== $thisUser->getId()}
{block title}
{$name}
{/block}
{block header}
{$name}
<a style="float: right;" onClick="reportApp({$id})" n:if="$canReport ?? false">{_report}</a>
{/block}
{block content}
<center>
<iframe id="appFrame" referrerpolicy="unsafe-url" frameBorder="0" src="{$url}" height="600" width="600"
sandbox="allow-scripts allow-same-origin allow-pointer-lock allow-forms allow-downloads-without-user-activation"></iframe>
</center>
<div n:if="!is_null($news)" id="news">
<h4>{$news->getName()}</h4>
<div id="app_news_container">
{$news->getText()|noescape}
</div>
</div>
<center>
<p>
{_app_dev}: <a href="{$owner->getURL()}">{$owner->getFullName()}</a>
</p>
</center>
<script>
window.appId = {$id};
window.appTitle = {$name};
window.appPerms = {$perms};
window.appOrigin = {$origin};
</script>
{script "js/al_games.js"}
{/block}