++ fix поля YouTube

This commit is contained in:
2025-11-24 12:24:10 +05:00
parent 45be34b228
commit 160102b96a
2 changed files with 4 additions and 2 deletions

View File

@@ -64,6 +64,8 @@
$field_param = explode('|', $field_value);
$url = '';
if (! empty($field_param[0]))
$url = youtube_url_parser($field_param[0], $field_param[4]);

View File

@@ -1,4 +1,4 @@
{if $param.4 == 'embed'}
{if isset($param.4) && $param.4 == 'embed'}
<object width="{$param.1}" height="{$param.2}">
<param name="movie" value="{$video_url}" />
@@ -9,6 +9,6 @@
{else}
<iframe width="{$param.1}" height="{$param.2}" src="{$video_url}" frameborder="0" {if $param.3 == 'true'}allowfullscreen{/if}></iframe>
<iframe width="{$param.1}" height="{$param.2}" src="{$video_url}" frameborder="0" {if isset($param.3) && $param.3 == 'true'}allowfullscreen{/if}></iframe>
{/if}