Changeset 45339

Show
Ignore:
Timestamp:
05/12/08 05:25:38 (2 months ago)
Author:
ericbess
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-codebox/trunk/main.php

    r36152 r45339  
    2121function codebox_header() { 
    2222      global $cb_path; 
    23       $cb_path = get_settings('home')."/wp-content/plugins/wp-codebox";     //URL to the plugin directory 
     23      $cb_path = get_bloginfo('wpurl')."/wp-content/plugins/wp-codebox";    //URL to the plugin directory 
    2424      $hHead = "\n"."<!-- Start Of Script Generated By CodeBox -->"."\n"; 
    2525      $hHead .= " <link rel=\"stylesheet\" href=\"{$cb_path}/css/codebox.css\" type=\"text/css\" media=\"screen\" />\n"; 
     
    3232function codebox_adminHeader() { 
    3333      global $cb_path; 
    34       $cb_path = get_settings('home')."/wp-content/plugins/wp-codebox";     //URL to the plugin directory 
     34      $cb_path = get_bloginfo('wpurl')."/wp-content/plugins/wp-codebox";    //URL to the plugin directory 
    3535      $hHead .= " <link rel=\"stylesheet\" href=\"{$cb_path}/css/admin.css\" type=\"text/css\" media=\"screen\" />\n"; 
    3636      $hHead .= " <script language=\"javascript\" type=\"text/javascript\" src=\"{$cb_path}/js/admin.js\" ></script>\n"; 
     
    115115     
    116116        if ($file) {$output .= "<div class=\"codebox_left2\">".'&nbsp;&nbsp;&nbsp;Download<a href="' 
    117                     . get_settings('home') 
     117                    . get_bloginfo('wpurl') 
    118118                    . '/wp-content/plugins/wp-codebox/wp-codebox.php?p=' . $post->ID 
    119119                    . '&amp;download=' . htmlspecialchars($file)