Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | #
|
---|
4 | /*
|
---|
5 | Plugin Name: WebTV Vlogger Plugin
|
---|
6 | Plugin URI: http://www.webstratega.com/plugins/webtv-plugin-wordpress/
|
---|
7 | Version: 0.6
|
---|
8 | Author: Edgar de León - edeleon
|
---|
9 | Author URI: http://www.webstratega.com/about/
|
---|
10 | Description: 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
|
---|
11 | License: GPL (http://www.fsf.org/licensing/licenses/info/GPLv2.html)
|
---|
12 | */
|
---|
13 |
|
---|
14 | require_once (dirname (__FILE__).'/webtv_Admin.php');
|
---|
15 | require_once (dirname (__FILE__).'/webtv_Actions.php');
|
---|
16 | foreach (glob(dirname (__FILE__).'/Drivers/*.php') as $file) {
|
---|
17 | include_once $file;
|
---|
18 | }
|
---|
19 |
|
---|
20 | if(class_exists('Webtv_Admin')) {
|
---|
21 | $WebtvAdminClass = new Webtv_Admin;
|
---|
22 | }
|
---|
23 | else {
|
---|
24 | die('not registered!');
|
---|
25 | }
|
---|
26 |
|
---|
27 |
|
---|
28 | if(isset($WebtvAdminClass)) {
|
---|
29 | add_action('admin_menu', array(&$WebtvAdminClass,'add_config_page'));
|
---|
30 | add_action('wp_print_scripts', array(&$WebtvAdminClass,'orderlist_js'));
|
---|
31 | }
|
---|
32 |
|
---|
33 | add_action('submitpost_box', 'webtv_status_box');
|
---|
34 | add_action('save_post','webtv_save_and_schedule');
|
---|
35 | add_action('webtv_upload','webtv_upload_video');
|
---|
36 | add_action('webtv_getembed','webtv_getembed_video');
|
---|
37 |
|
---|
38 |
|
---|
39 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.