web/wp-content/plugins/nice-titles/nt.php
author hurons@caf4f556-3d62-0410-8435-a86758001935
Mon, 01 Feb 2010 09:51:57 +0000
branchwordpress
changeset 123 561aa6d282f6
permissions -rw-r--r--
pre production version : ****************************** Template evolution : - css ( so much things) - js ( new navigation tools ...) - lib for php ZIp - function.php (for download LDT and other litle function) - page (header, home, footer, single, search, searchform, post ...) ****************************** New plug in : - wp touch - wp explorer - TextCutter - ultimate-google-analytics - nice titles ****************************** Plug in customization : - related-posts-by-category - posts-of-current-category - order-categories - event-calendar - translation wp explorer - exec-php ****************************** Road map for next version : - cleaning php code put template function to new plugin - cleaning Css code - re organize Js code - all new correction ask

<?php
/*
Plugin Name: Nice Titles
Plugin URI: http://showfom.com/nice-titles-wordpress-plugin/
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>.
Version: 1.0
Author: Showfom
Author URI: http://showfom.com/

**********************************************************************
Copyright (c) 2009 Showfom
Released under the terms of the GNU GPL: http://www.gnu.org/licenses/gpl.txt

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
**********************************************************************

Installation: Upload the folder "nice-titles" with its contents to "wp-content/plugins/"  and activate the plugin in your admin panel.
*/

function NiceTitles() {
  /*  Path for snow */
	$ntPath = get_option('siteurl').'/wp-content/plugins/nice-titles/';
	$ntJS .= '<!-- Generated by Nice Titles 1.0 -->'."\n";
	$ntJS .= '<script type="text/javascript" src="'.$ntPath.'nicetitle.js"></script>'."\n";
	$ntJS .= '<link rel="stylesheet" href="'.$ntPath.'nicetitle.css" />'."\n";
	print($ntJS);
}
add_action('wp_head', 'NiceTitles');
?>