Changeset 1880291
- Timestamp:
- 05/23/2018 06:54:53 PM (8 years ago)
- Location:
- embedpress/trunk
- Files:
-
- 2 added
- 11 deleted
- 6 edited
-
CONTRIBUTING.md (added)
-
EmbedPress/Providers/Twitch.php (modified) (2 diffs)
-
PROVIDERS.md (added)
-
composer.json (deleted)
-
composer.lock (deleted)
-
embedpress.php (modified) (1 diff)
-
includes.php (modified) (1 diff)
-
providers.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.json (modified) (1 diff)
-
vendor/ostraining/embera/.gitignore (deleted)
-
vendor/pimple/pimple/.gitignore (deleted)
-
vendor/pimple/pimple/ext/pimple/.gitignore (deleted)
-
vendor/psr/container/.gitignore (deleted)
-
vendor/publishpress/edd-license-handler/.git (deleted)
-
vendor/publishpress/edd-license-handler/.gitignore (deleted)
-
vendor/publishpress/wordpress-edd-license-integration/.gitignore (deleted)
-
vendor/publishpress/wordpress-edd-license-integration/tests/codeception/_output/.gitignore (deleted)
-
vendor/publishpress/wordpress-edd-license-integration/tests/codeception/_support/_generated/.gitignore (deleted)
Legend:
- Unmodified
- Added
- Removed
-
embedpress/trunk/EmbedPress/Providers/Twitch.php
r1817633 r1880291 26 26 * @var string 27 27 */ 28 private $urlRegexPattern = ' ~http[s]?:\/\/(?:www\.)twitch\.tv\/([a-zA-Z\-\_]+)\/?(chat\/?$)?~';28 private $urlRegexPattern = '/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$)?/'; 29 29 30 30 /** … … 54 54 $channelName = $matches[1]; 55 55 $renderChatInsteadOfStream = (count($matches) > 2 && strtolower($matches[2]) === "chat"); 56 $isClip = stristr($url, 'clips.twitch.tv'); 56 57 57 $html = '<iframe src="https://www.twitch.tv/'. $channelName .'/'. ($renderChatInsteadOfStream ? 'chat' : 'embed' ) .'" height="{height}" width="{width}" scrolling="no" frameborder="0" title="" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'; 58 if ($isClip !== False) { 59 $providerUrl = 'https://clips.twitch.tv'; 60 $html = '<iframe src="https://clips.twitch.tv/embed?clip=' . $channelName . '&autoplay=false" height="{height}" width="{width}" scrolling="no" frameborder="0" allowfullscreen="true"></iframe>'; 61 } else { 62 $providerUrl = 'https://www.twitch.tv'; 63 $html = '<iframe src="https://www.twitch.tv/' . $channelName . '/' . ($renderChatInsteadOfStream ? 'chat' : 'embed') . '" height="{height}" width="{width}" scrolling="no" frameborder="0" allowfullscreen="true"></iframe>'; 64 } 58 65 59 66 $response = array( 60 67 'type' => ($renderChatInsteadOfStream ? 'rich' : 'video'), 61 68 'provider_name' => 'Twitch', 62 'provider_url' => 'https://www.twitch.tv',69 'provider_url' => $providerUrl, 63 70 'url' => $url, 64 71 'html' => $html -
embedpress/trunk/embedpress.php
r1860750 r1880291 6 6 * Author: EmbedPress 7 7 * Author URI: http://embedpress.com 8 * Version: 2.1. 18 * Version: 2.1.2 9 9 * Text Domain: embedpress 10 10 * Domain Path: /languages -
embedpress/trunk/includes.php
r1860750 r1880291 22 22 23 23 if (!defined('EMBEDPRESS_PLG_VERSION')) { 24 define('EMBEDPRESS_PLG_VERSION', "2.1. 1");24 define('EMBEDPRESS_PLG_VERSION', "2.1.2"); 25 25 } 26 26 -
embedpress/trunk/providers.php
r1817633 r1880291 18 18 'GoogleMaps' => array("google.com", "google.com.*", "maps.google.com", "goo.gl", "google.co.*"), 19 19 'GoogleDocs' => array("docs.google.com"), 20 'Twitch' => array("twitch.tv" ),20 'Twitch' => array("twitch.tv", "clips.twitch.tv"), 21 21 'Giphy' => array("giphy.com", "i.giphy.com") 22 22 ); -
embedpress/trunk/readme.txt
r1860750 r1880291 6 6 Requires at least: 4.6 7 7 Tested up to: 4.9.4 8 Stable tag: 2.1. 18 Stable tag: 2.1.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 185 185 and this project adheres to [Semantic Versioning](http://semver.org/). 186 186 187 = [2.1.2] - 2018-05-23 = 188 189 *Fixed:* 190 191 * Fixed Twitch embeds with numbers; 192 193 *Added:* 194 195 * Added support to Twitch clips; 196 187 197 = [2.1.1] - 2018-04-18 = 188 198 -
embedpress/trunk/vendor/composer/installed.json
r1860750 r1880291 217 217 { 218 218 "name": "publishpress/wordpress-plugin-builder", 219 "version": "2.1. 4",220 "version_normalized": "2.1. 4.0",219 "version": "2.1.5", 220 "version_normalized": "2.1.5.0", 221 221 "source": { 222 222 "type": "git", 223 223 "url": "https://github.com/OSTraining/WordPress-Plugin-Builder", 224 "reference": " 6658ad5e35ec32877ee941e3680702bfb86986e5"225 }, 226 "time": "2018-0 3-01T22:09:46+00:00",224 "reference": "08aaa403dccdca27b298552a73cb4b8e427b0e47" 225 }, 226 "time": "2018-05-03T10:09:29+00:00", 227 227 "type": "library", 228 228 "installation-source": "source",
Note: See TracChangeset
for help on using the changeset viewer.