source: trunk/www.guidonia.net/wp/wp-content/plugins/webtv/webtv.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 1.3 KB
Line 
1<?php
2
3#
4/*
5Plugin Name: WebTV Vlogger Plugin
6Plugin URI: http://www.webstratega.com/plugins/webtv-plugin-wordpress/
7Version: 0.6
8Author: Edgar de Le&oacute;n - edeleon
9Author URI: http://www.webstratega.com/about/
10Description: Lets you attach a video to a post and upload to most popular video distribution sites like YouTube, Vimeo and Blip.tv, after video is uploaded and processed get and inserts the embed code from the sites into custom fields on the post. The plugin has de possibility to extend any other distribution site creating extra drivers
11License: GPL (http://www.fsf.org/licensing/licenses/info/GPLv2.html)
12*/
13
14require_once (dirname (__FILE__).'/webtv_Admin.php');
15require_once (dirname (__FILE__).'/webtv_Actions.php');
16foreach (glob(dirname (__FILE__).'/Drivers/*.php') as $file) {
17 include_once $file;
18}
19
20if(class_exists('Webtv_Admin')) {
21 $WebtvAdminClass = new Webtv_Admin;
22}
23else {
24 die('not registered!');
25}
26
27
28if(isset($WebtvAdminClass)) {
29 add_action('admin_menu', array(&$WebtvAdminClass,'add_config_page'));
30 add_action('wp_print_scripts', array(&$WebtvAdminClass,'orderlist_js'));
31}
32
33add_action('submitpost_box', 'webtv_status_box');
34add_action('save_post','webtv_save_and_schedule');
35add_action('webtv_upload','webtv_upload_video');
36add_action('webtv_getembed','webtv_getembed_video');
37
38
39?>
Note: See TracBrowser for help on using the repository browser.