Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/Embed/Adapters/Line.php
Строк: 29
<?php

namespace EmbedAdapters;

use 
EmbedUtils;
use 
EmbedHttpResponse;

/**
 * Adapter to get the embed code from line.do.
 */
class Line extends Webpage
{
    
/**
     * {@inheritdoc}
     */
    
public static function check(Response $response)
    {
        return 
$response->isValid() && $response->getUrl()->match([
            
'line.do/*',
        ]);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getCode()
    {
        
$url $this->getResponse()->getUrl();
        
$id $url->getDirectoryPosition(2);

        return 
Utils::iframe($url->withPath("embed/{$id}/vertical"), $this->width$this->height'border:1px solid #e7e7e7;');
    }

    
/**
     * {@inheritdoc}
     */
    
public function getWidth()
    {
        return 
640;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getHeight()
    {
        return 
640;
    }
}
Онлайн: 0
Реклама