Changeset 45339
- Timestamp:
- 05/12/08 05:25:38 (2 months ago)
- Files:
-
- wp-codebox/trunk/main.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-codebox/trunk/main.php
r36152 r45339 21 21 function codebox_header() { 22 22 global $cb_path; 23 $cb_path = get_ settings('home')."/wp-content/plugins/wp-codebox"; //URL to the plugin directory23 $cb_path = get_bloginfo('wpurl')."/wp-content/plugins/wp-codebox"; //URL to the plugin directory 24 24 $hHead = "\n"."<!-- Start Of Script Generated By CodeBox -->"."\n"; 25 25 $hHead .= " <link rel=\"stylesheet\" href=\"{$cb_path}/css/codebox.css\" type=\"text/css\" media=\"screen\" />\n"; … … 32 32 function codebox_adminHeader() { 33 33 global $cb_path; 34 $cb_path = get_ settings('home')."/wp-content/plugins/wp-codebox"; //URL to the plugin directory34 $cb_path = get_bloginfo('wpurl')."/wp-content/plugins/wp-codebox"; //URL to the plugin directory 35 35 $hHead .= " <link rel=\"stylesheet\" href=\"{$cb_path}/css/admin.css\" type=\"text/css\" media=\"screen\" />\n"; 36 36 $hHead .= " <script language=\"javascript\" type=\"text/javascript\" src=\"{$cb_path}/js/admin.js\" ></script>\n"; … … 115 115 116 116 if ($file) {$output .= "<div class=\"codebox_left2\">".' Download<a href="' 117 . get_ settings('home')117 . get_bloginfo('wpurl') 118 118 . '/wp-content/plugins/wp-codebox/wp-codebox.php?p=' . $post->ID 119 119 . '&download=' . htmlspecialchars($file)
