0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
lib
/
wiki-plugins
/
[
Home
]
File: wikiplugin_bliptv.php
<?php // (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: wikiplugin_bliptv.php 34492 2011-05-18 21:32:43Z marclaporte $ require_once('lib/wiki-plugins/wikiplugin_flash.php'); function wikiplugin_bliptv_info() { return array( 'name' => tra('Bliptv'), 'documentation' => 'PluginBlipTV', 'description' => tra('Display a Blip.tv video'), 'prefs' => array( 'wikiplugin_bliptv' ), 'icon' => 'pics/icons/bliptv.png', 'params' => array( 'url' => array( 'required' => true, 'name' => tra('URL'), 'description' => tra('Blip.tv embed URL. Example: http://blip.tv/play/AYGd_GAC'), 'filter' => 'url', 'default' => '', ), 'width' => array( 'required' => false, 'name' => tra('Width'), 'description' => tra('Width in pixels (default is 425'), 'filter' => 'digits', 'default' => 425, ), 'height' => array( 'required' => false, 'name' => tra('Height'), 'description' => tra('Height in pixels (default is 350)'), 'filter' => 'digits', 'default' => 350, ), ), ); } function wikiplugin_bliptv($data, $params) { if (isset($params['url'])) { $params['bliptv'] = $params['url']; unset($params['movie']); } return wikiplugin_flash($data, $params); }