diff options
author | Theo Chatzimichos <tampakrap@gentoo.org> | 2011-02-09 13:18:42 +0200 |
---|---|---|
committer | Theo Chatzimichos <tampakrap@gentoo.org> | 2011-02-09 13:18:42 +0200 |
commit | 0b8a5c47c3eb22bc9d8aacbae016ae2b7c643131 (patch) | |
tree | 2f9b8a178c1c968948175cb5fa025cc9812720d7 /plugins/wp-syntax/wp-syntax.php | |
parent | Update akismet to 2.5.1 and smart-youtube to 3.8.3 (diff) | |
download | blogs-gentoo-0b8a5c47c3eb22bc9d8aacbae016ae2b7c643131.tar.gz blogs-gentoo-0b8a5c47c3eb22bc9d8aacbae016ae2b7c643131.tar.bz2 blogs-gentoo-0b8a5c47c3eb22bc9d8aacbae016ae2b7c643131.zip |
Updates:
akismet to version 2.5.3
limit-login-attempts to 1.6.0
wp-stats to 1.8.1
wp-syntax to 0.9.9
Diffstat (limited to 'plugins/wp-syntax/wp-syntax.php')
-rw-r--r-- | plugins/wp-syntax/wp-syntax.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/plugins/wp-syntax/wp-syntax.php b/plugins/wp-syntax/wp-syntax.php index dc98528c..c2f3792f 100644 --- a/plugins/wp-syntax/wp-syntax.php +++ b/plugins/wp-syntax/wp-syntax.php @@ -3,13 +3,13 @@ Plugin Name: WP-Syntax Plugin URI: http://wordpress.org/extend/plugins/wp-syntax/ Description: Syntax highlighting using <a href="http://qbnz.com/highlighter/">GeSHi</a> supporting a wide range of popular languages. Wrap code blocks with <code><pre lang="LANGUAGE" line="1"></code> and <code></pre></code> where <code>LANGUAGE</code> is a geshi supported language syntax. The <code>line</code> attribute is optional. -Author: Ryan McGeary -Version: 0.9.8 -Author URI: http://ryan.mcgeary.org/ +Author: Ryan McGeary, Steven A. Zahm +Version: 0.9.9 +Author URI: http://connections-pro.com */ # -# Copyright (c) 2007-2009 Ryan McGeary +# Copyright (c) 2007-2009 Ryan McGeary 2010 Steven A. Zahm # # This file is part of WP-Syntax. # @@ -53,11 +53,18 @@ if (!defined("WP_PLUGIN_URL")) define("WP_PLUGIN_URL", WP_CONTENT_URL . function wp_syntax_head() { - $css_url = WP_PLUGIN_URL . "/wp-syntax/wp-syntax.css"; + /*$css_url = WP_PLUGIN_URL . "/wp-syntax/wp-syntax.css"; if (file_exists(TEMPLATEPATH . "/wp-syntax.css")) { $css_url = get_bloginfo("template_url") . "/wp-syntax.css"; } + echo "\n".'<link rel="stylesheet" href="' . $css_url . '" type="text/css" media="screen" />'."\n";*/ + + $css_url = WP_PLUGIN_URL . "/wp-syntax/wp-syntax.css"; + if (file_exists(STYLESHEETPATH . "/wp-syntax.css")) + { + $css_url = get_bloginfo("stylesheet_directory") . "/wp-syntax.css"; + } echo "\n".'<link rel="stylesheet" href="' . $css_url . '" type="text/css" media="screen" />'."\n"; } |