embedpress
Last commit date
Core
1 week ago
EmbedPress
1 week ago
assets
1 week ago
languages
1 week ago
vendor
2 months ago
autoloader.php
9 months ago
embedpress.php
1 week ago
includes.php
1 week ago
index.html
9 years ago
providers.php
3 weeks ago
readme.txt
1 week ago
wpml-config.xml
4 years ago
providers.php
50 lines
| 1 | <?php |
| 2 | (defined('ABSPATH') && defined('EMBEDPRESS_IS_LOADED')) or die("No direct script access allowed."); |
| 3 | |
| 4 | /** |
| 5 | * Declare an associative array that is responsible for mapping additional service providers to its urls. |
| 6 | * The key must match the class placed in ./EmbedPress/Providers/ folder, and the values must be a string or |
| 7 | * another array listing all url patterns in which the key (a.k.a. the service provider you're adding) |
| 8 | * should be triggered. |
| 9 | * |
| 10 | * @package EmbedPress |
| 11 | * @author EmbedPress <help@embedpress.com> |
| 12 | * @copyright Copyright (C) 2023 WPDeveloper. All rights reserved. |
| 13 | * @license GPLv3 or later |
| 14 | * @since 1.0.0 |
| 15 | */ |
| 16 | |
| 17 | $host_url = parse_url(site_url()); |
| 18 | |
| 19 | |
| 20 | $additionalServiceProviders = [ |
| 21 | EMBEDPRESS_NAMESPACE . "\\Providers\\GoogleMaps" => ["google.com", "google.com.*", "maps.google.com", "goo.gl", "google.co.*"], |
| 22 | EMBEDPRESS_NAMESPACE . "\\Providers\\GoogleDrive" => ["drive.google.com"], |
| 23 | EMBEDPRESS_NAMESPACE . "\\Providers\\GooglePhotos" => ["photos.app.goo.gl", "photos.google.com"], |
| 24 | EMBEDPRESS_NAMESPACE . "\\Providers\\GoogleDocs" => ["docs.google.com"], |
| 25 | EMBEDPRESS_NAMESPACE . "\\Providers\\GoogleCalendar" => ["calendar.google.com"], |
| 26 | EMBEDPRESS_NAMESPACE . "\\Providers\\Twitch" => ["twitch.tv", "clips.twitch.tv"], |
| 27 | EMBEDPRESS_NAMESPACE . "\\Providers\\Giphy" => ["giphy.com", "i.giphy.com"], |
| 28 | EMBEDPRESS_NAMESPACE . "\\Providers\\Boomplay" => ["boomplay.com"], |
| 29 | EMBEDPRESS_NAMESPACE . "\\Providers\\Youtube" => ["youtube.com", "youtu.be", "m.youtube.com"], |
| 30 | EMBEDPRESS_NAMESPACE . "\\Providers\\OpenSea" => ["opensea.io"], |
| 31 | EMBEDPRESS_NAMESPACE . "\\Providers\\NRKRadio" => ["radio.nrk.no", "nrk.no"], |
| 32 | EMBEDPRESS_NAMESPACE . "\\Providers\\GitHub" => ["gist.github.com", "github.com"], |
| 33 | EMBEDPRESS_NAMESPACE . "\\Providers\\InstagramFeed" => ["instagram.com"], |
| 34 | EMBEDPRESS_NAMESPACE . "\\Providers\\Gumroad" => ["*.gumroad.com", "gumroad.com"], |
| 35 | EMBEDPRESS_NAMESPACE . "\\Providers\\X" => ["*.x.com", "x.com"], |
| 36 | EMBEDPRESS_NAMESPACE . "\\Providers\\Calendly" => ["*.calendly.com", "calendly.com"], |
| 37 | EMBEDPRESS_NAMESPACE . "\\Providers\\Gumroad" => ["*.gumroad.com", "gumroad.com"], |
| 38 | EMBEDPRESS_NAMESPACE . "\\Providers\\Calendly" => ["*.calendly.com", "calendly.com"], |
| 39 | EMBEDPRESS_NAMESPACE . "\\Providers\\LinkedIn" => ["*.linkedin.com", "linkedin.com"], |
| 40 | EMBEDPRESS_NAMESPACE . "\\Providers\\SelfHosted" => [$host_url['host'], "*.com", "*.net", "*.org", "*.edu", "*.gov", "*.mil", "*.int", "*.biz", "*.info", "*.jobs", "*.mobi", "*.name", "*.aero", "*.coop", "*.travel", "*.museum", "*.cat", "*.pro", "*.tel", "*.asia", "*.xxx", "*.post", "*.geo", "*.nato", "*.tl", "*.dk"], |
| 41 | EMBEDPRESS_NAMESPACE . "\\Providers\\Spreaker" => ["*.spreaker.com", "spreaker.com"], |
| 42 | EMBEDPRESS_NAMESPACE . "\\Providers\\AirTable" => ["*.airtable.com", "airtable.com"], |
| 43 | EMBEDPRESS_NAMESPACE . "\\Providers\\Canva" => ["*.canva.com", "canva.com"], |
| 44 | EMBEDPRESS_NAMESPACE . "\\Providers\\OneDrive" => ["onedrive.live.com", "1drv.ms"], |
| 45 | EMBEDPRESS_NAMESPACE . "\\Providers\\FITE" => ['fite.tv', 'triller.tv','trillertv.com'], |
| 46 | EMBEDPRESS_NAMESPACE . "\\Providers\\Meetup" => ['meetup.com'], |
| 47 | EMBEDPRESS_NAMESPACE . "\\Providers\\GettyImages" => ['gettyimages.com'], |
| 48 | EMBEDPRESS_NAMESPACE . "\\Providers\\Wistia" => ['*.wistia.com', 'wistia.com'], |
| 49 | ]; |
| 50 |