Файл: sngine-v2.8/Script/includes/libs/Embed/Adapters/Slides.php
Строк: 25
<?php
namespace EmbedAdapters;
use EmbedUtils;
use EmbedHttpResponse;
/**
* Adapter to get the embed code from slides.com.
*/
class Slides extends Webpage
{
/**
* {@inheritdoc}
*/
public static function check(Response $response)
{
return $response->isValid() && $response->getUrl()->match([
'slides.com/*',
]);
}
/**
* {@inheritdoc}
*/
public function getCode()
{
return Utils::iframe($this->getResponse()->getUrl()->withAddedPath('embed'), $this->width, $this->height);
}
/**
* {@inheritdoc}
*/
public function getWidth()
{
return 576;
}
/**
* {@inheritdoc}
*/
public function getHeight()
{
return 420;
}
}