Skip to content

Commit

Permalink
Release version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
runar committed Apr 30, 2019
1 parent 57c0f44 commit e1528db
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.lvimrc
5 changes: 3 additions & 2 deletions README.md
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.
4 changes: 4 additions & 0 deletions dev/jslang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php

$lang = array(
);
5 changes: 5 additions & 0 deletions dev/lang.php
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."
);
24 changes: 24 additions & 0 deletions dev/setup/10000.php
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;
}
}
24 changes: 24 additions & 0 deletions dev/setup/install.php
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;
}
}
1 change: 1 addition & 0 deletions dev/versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"10000":"1.0.0"}
Empty file added hooks/index.html
Empty file.
43 changes: 43 additions & 0 deletions hooks/ipsTextParser.php
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 added index.html
Empty file.

0 comments on commit e1528db

Please sign in to comment.