Skip to content

Commit e1528db

Browse files
committed
Release version 1.0.0
1 parent 57c0f44 commit e1528db

File tree

10 files changed

+105
-2
lines changed

10 files changed

+105
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.lvimrc

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# embed-streamable
2-
An Invision Community plugin that adds support for embedding Streamable videos
1+
# Embed Streamable
2+
3+
An Invision Community plugin that adds support for automatically embedding Streamable videos.

dev/jslang.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
3+
$lang = array(
4+
);

dev/lang.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
$lang = array(
4+
'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."
5+
);

dev/setup/10000.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//<?php
2+
3+
/* To prevent PHP errors (extending class does not exist) revealing path */
4+
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
5+
{
6+
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
7+
exit;
8+
}
9+
10+
/**
11+
* 1.0.0 Upgrade Code
12+
*/
13+
class ips_plugins_setup_upg_10000
14+
{
15+
/**
16+
* Step 1
17+
*
18+
* @return true
19+
*/
20+
public function step1()
21+
{
22+
return true;
23+
}
24+
}

dev/setup/install.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//<?php
2+
3+
/* To prevent PHP errors (extending class does not exist) revealing path */
4+
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
5+
{
6+
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
7+
exit;
8+
}
9+
10+
/**
11+
* Install Code
12+
*/
13+
class ips_plugins_setup_install
14+
{
15+
/**
16+
* Step 1
17+
*
18+
* @return true
19+
*/
20+
public function step1()
21+
{
22+
return true;
23+
}
24+
}

dev/versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"10000":"1.0.0"}

hooks/index.html

Whitespace-only changes.

hooks/ipsTextParser.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
//<?php
2+
3+
/* To prevent PHP errors (extending class does not exist) revealing path */
4+
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
5+
{
6+
exit;
7+
}
8+
9+
class hook76 extends _HOOK_CLASS_
10+
{
11+
/**
12+
* Get URL bases (without schema) that we'll allow iframes from
13+
*
14+
* @return array
15+
*/
16+
protected static function allowedIFrameBases()
17+
{
18+
$return = parent::allowedIFrameBases();
19+
20+
$return = array_merge( $return, array(
21+
'streamable.com/'
22+
) );
23+
24+
return $return;
25+
}
26+
27+
/**
28+
* Get OEmbed Services
29+
*
30+
* @see <a href="http://www.oembed.com">oEmbed</a>
31+
* @return array
32+
*/
33+
protected static function oembedServices()
34+
{
35+
$return = parent::oembedServices();
36+
37+
$return = array_merge( $return, array(
38+
'streamable.com' => array( 'https://api.streamable.com/oembed.json', static::EMBED_VIDEO ),
39+
) );
40+
41+
return $return;
42+
}
43+
}

index.html

Whitespace-only changes.

0 commit comments

Comments
 (0)