1 | <?php
|
---|
2 | /**
|
---|
3 | * Copyright 2006, 2007, 2008, 2009 Eric D. Hough (http://ehough.com)
|
---|
4 | *
|
---|
5 | * This file is part of TubePress (http://tubepress.org)
|
---|
6 | *
|
---|
7 | * TubePress is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * TubePress is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with TubePress. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | *
|
---|
20 | */
|
---|
21 |
|
---|
22 | if (version_compare(PHP_VERSION, '5.0.0', '>=')
|
---|
23 | && !function_exists("tubepress_content_filter")) {
|
---|
24 |
|
---|
25 | /* set the tubepress_base_url global */
|
---|
26 | $tubepress_base_url = get_settings('siteurl') . "/wp-content/plugins/tubepress";
|
---|
27 |
|
---|
28 | /* register the plugin's message bundles */
|
---|
29 | load_plugin_textdomain('tubepress', 'wp-content/plugins/tubepress/i18n');
|
---|
30 |
|
---|
31 | /* load up the rest of the WordPress specific code */
|
---|
32 | include dirname(__FILE__) . '/../functions/main.php';
|
---|
33 |
|
---|
34 | /* add a filter for all post/page content */
|
---|
35 | add_filter('the_content', 'tubepress_content_filter');
|
---|
36 |
|
---|
37 | /* add a filter so we can add our CSS/JS to the head */
|
---|
38 | add_action('wp_head', 'tubepress_head_filter');
|
---|
39 |
|
---|
40 | add_action('init', 'tubepress_load_jquery');
|
---|
41 | }
|
---|
42 |
|
---|
43 | ?> |
---|