-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
105 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.lvimrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# embed-streamable | ||
An Invision Community plugin that adds support for embedding Streamable videos | ||
# Embed Streamable | ||
|
||
An Invision Community plugin that adds support for automatically embedding Streamable videos. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
|
||
$lang = array( | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
$lang = array( | ||
'editor_embeds_desc' => "Certain content can be automatically embedded. For example, if a user posts a link to a video on YouTube or Vimeo the video can be embedded into the post. Changing this setting won't apply to existing content.<br>Links from the following sites are supported: College Humor, Coub, Dailymotion, Facebook, Flickr, Funny Or Die, Gfycat, Google Maps, Hulu, Instagram, ReverbNation, Screencast.com, SmugMug, SoundCloud, Spotify, Streamable, TED, Twitch, Twitter, Ustream, Vimeo, Vine, Wistia, YouTube, and internal links to content within the community." | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//<?php | ||
|
||
/* To prevent PHP errors (extending class does not exist) revealing path */ | ||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) | ||
{ | ||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); | ||
exit; | ||
} | ||
|
||
/** | ||
* 1.0.0 Upgrade Code | ||
*/ | ||
class ips_plugins_setup_upg_10000 | ||
{ | ||
/** | ||
* Step 1 | ||
* | ||
* @return true | ||
*/ | ||
public function step1() | ||
{ | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//<?php | ||
|
||
/* To prevent PHP errors (extending class does not exist) revealing path */ | ||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) | ||
{ | ||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); | ||
exit; | ||
} | ||
|
||
/** | ||
* Install Code | ||
*/ | ||
class ips_plugins_setup_install | ||
{ | ||
/** | ||
* Step 1 | ||
* | ||
* @return true | ||
*/ | ||
public function step1() | ||
{ | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"10000":"1.0.0"} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
//<?php | ||
|
||
/* To prevent PHP errors (extending class does not exist) revealing path */ | ||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) | ||
{ | ||
exit; | ||
} | ||
|
||
class hook76 extends _HOOK_CLASS_ | ||
{ | ||
/** | ||
* Get URL bases (without schema) that we'll allow iframes from | ||
* | ||
* @return array | ||
*/ | ||
protected static function allowedIFrameBases() | ||
{ | ||
$return = parent::allowedIFrameBases(); | ||
|
||
$return = array_merge( $return, array( | ||
'streamable.com/' | ||
) ); | ||
|
||
return $return; | ||
} | ||
|
||
/** | ||
* Get OEmbed Services | ||
* | ||
* @see <a href="http://www.oembed.com">oEmbed</a> | ||
* @return array | ||
*/ | ||
protected static function oembedServices() | ||
{ | ||
$return = parent::oembedServices(); | ||
|
||
$return = array_merge( $return, array( | ||
'streamable.com' => array( 'https://api.streamable.com/oembed.json', static::EMBED_VIDEO ), | ||
) ); | ||
|
||
return $return; | ||
} | ||
} |
Empty file.