Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function VS_embed($atts){
- extract(shortcode_atts( array(
- 'id' => 'tt0063350',
- 'apikey' => 'XXXXXXXXXXX',
- 'apisecret' => 'XXXXXXXXXXXX',
- 'width' => 'auto',
- 'height' => 'auto',
- 'scrolling' => 'no',
- 'class' => 'vs-iframe',
- 'frameborder' => '0'
- ), $atts ));
- return "<!-- VS.in Auto Embed Plugin -->\n<iframe src=\"https://vsrequest.video/request.php?key={$apikey}&secret_key={$apisecret}&video_id={$id}&tmdb=0&ip=" . $_SERVER['REMOTE_ADDR'] . "\" class=\"{$class}\" width=\"{$width}\" height=\"{$height}\" frameborder=\"{$frameborder}\" scrolling=\"{$scrolling}\" allowfullscreen=\"allowfullscreen\"><p>Your browser appears to not support iframes.</p></iframe>";
- }
- add_shortcode('IMDB', 'VS_embed');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement