$access_token = "Токен"
switch($data->type) {
case 'video_new':
$video_id = $data->object->id;
$video_owner_id = $data->object->owner_id;
$videos = $video_owner_id . '_'.$video_id;
$videoInfo = file_get_contents("https://api.vk.com/method/video.get?videos={$videos}&count=1&extended=1&v=5.95&access_token={$access_token}");
$iframe = "<iframe src=\"{$videoInfo['response'][items][0]['player']}\" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>";
if (isset($data->object->live)) { $video_live = $data->object->live; }
if ($video_live == 1) {
file_put_contents('./frame.txt', $iframe);
}
break;
}
"packages": [
{
"count": 1,
"dimensions": {
"weight": 1000,
"length": 500,
"height": 500,
"width": 500
},
"price": 1000,
"estimatedPrice": 1000
}
]
"packages"=>[
"count"=> 1,
"dimensions"=> [
"weight"=> 1000,
"length"=> 500,
"width"=> 500,
"height"=> 500,
],
"price"=> 1000,
"estimatedPrice"=> 1000
],
"packages"=>[[
"count"=> 1,
"dimensions"=> [
"weight"=> 1000,
"length"=> 500,
"width"=> 500,
"height"=> 500,
],
"price"=> 1000,
"estimatedPrice"=> 1000]
],
<menu img="class:comment">
COM_FOOS
<params>
<dashboard>foos</dashboard>
</params>
</menu>
<submenu>
<menu link="option=com_foos">
COM_FOOS
<params>
<menu-quicktask-title>COM_FOOS</menu-quicktask-title>
<menu-quicktask>index.php?option=com_foos&view=foo&layout=edit</menu-quicktask>
</params>
</menu>
<menu link="option=com_categories&extension=com_foos">
JCATEGORY
<params>
<menu-quicktask-title>JCATEGORY</menu-quicktask-title>
<menu-quicktask>index.php?option=com_categories&view=category&layout=edit&extension=com_foos</menu-quicktask>
</params>
</menu>
<menu link="option=com_fields&context=com_foos.foo">JGLOBAL_FIELDS</menu>
<menu link="option=com_fields&view=groups&context=com_foos.foo">JGLOBAL_FIELD_GROUPS</menu>
</submenu>
подключался через DBeaver, MYSQL Workbench, telnet
'db.myhost.com:3307'
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('form.validate')
PHP, HTML и CSS