equal
deleted
inserted
replaced
|
1 <?php |
|
2 /* |
|
3 Plugin Name: Nice Titles |
|
4 Plugin URI: http://showfom.com/nice-titles-wordpress-plugin/ |
|
5 Description: Nice Titles on your Wordpress Blog based on the Nice Titles script by <a href="http://www.kryogenix.org/code/browser/nicetitle/" title="Nice Titles">kryogenix.org</a>. |
|
6 Version: 1.0 |
|
7 Author: Showfom |
|
8 Author URI: http://showfom.com/ |
|
9 |
|
10 ********************************************************************** |
|
11 Copyright (c) 2009 Showfom |
|
12 Released under the terms of the GNU GPL: http://www.gnu.org/licenses/gpl.txt |
|
13 |
|
14 This program is distributed in the hope that it will be useful, but |
|
15 WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
17 ********************************************************************** |
|
18 |
|
19 Installation: Upload the folder "nice-titles" with its contents to "wp-content/plugins/" and activate the plugin in your admin panel. |
|
20 */ |
|
21 |
|
22 function NiceTitles() { |
|
23 /* Path for snow */ |
|
24 $ntPath = get_option('siteurl').'/wp-content/plugins/nice-titles/'; |
|
25 $ntJS .= '<!-- Generated by Nice Titles 1.0 -->'."\n"; |
|
26 $ntJS .= '<script type="text/javascript" src="'.$ntPath.'nicetitle.js"></script>'."\n"; |
|
27 $ntJS .= '<link rel="stylesheet" href="'.$ntPath.'nicetitle.css" />'."\n"; |
|
28 print($ntJS); |
|
29 } |
|
30 add_action('wp_head', 'NiceTitles'); |
|
31 ?> |