PluginProbe
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents / 4.4.11
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents v4.4.11
4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 All 189 releases
embedpress / vendor / wpdevelopers / embera / src / Embera / Provider / LocalVoicesNetwork.php
LocalVoicesNetwork.php
48 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * LocalVoicesNetwork.php
4 *
5 * @package Embera
6 * @author Michael Pratt <yo@michael-pratt.com>
7 * @link http://www.michael-pratt.com/
8 *
9 * For the full copyright and license information, please view the LICENSE
10 * file that was distributed with this source code.
11 */
12
13 namespace Embera\Provider;
14
15 use Embera\Url;
16
17 /**
18 * LocalVoicesNetwork Provider
19 *
20 * @link https://lvn.org
21 * @see https://embed.dev.lvn.org/oembed/
22 */
23 class LocalVoicesNetwork extends ProviderAdapter implements ProviderInterface
24 {
25 /** inline {@inheritdoc} */
26 protected $endpoint = 'https://embed.lvn.org/oembed/?format=json';
27
28 /** inline {@inheritdoc} */
29 protected static $hosts = [
30 '*.lvn.org'
31 ];
32
33 /** inline {@inheritdoc} */
34 protected $allowedParams = [ 'maxwidth', 'maxheight' ];
35
36 /** inline {@inheritdoc} */
37 protected $httpsSupport = true;
38
39 /** inline {@inheritdoc} */
40 protected $responsiveSupport = false;
41
42 /** inline {@inheritdoc} */
43 public function validateUrl(Url $url)
44 {
45 return (bool) (preg_match('~hid=([a-z0-9]+)~i', (string) $url));
46 }
47 }
48