1
0
mirror of https://github.com/kremalicious/Badged.git synced 2024-12-29 08:07:44 +01:00

don't hardcode the plugin folder name; cleaning up

This commit is contained in:
Matthias Kretschmann 2011-12-14 20:10:59 +01:00
parent 35c848f684
commit 77ae6e50ad
4 changed files with 4 additions and 4 deletions

View File

@ -17,19 +17,19 @@ if (function_exists('load_plugin_textdomain')) {
function bubbles_init() { function bubbles_init() {
bubbles_register_settings(); bubbles_register_settings();
if ( get_option('menu') == 'yes') { if ( get_option('menu') == 'yes') {
wp_register_style('bubbles-menu-css', plugins_url('/bubbles/bubbles-menu.css'), false, '9001'); wp_register_style('bubbles-menu-css', plugins_url('css/bubbles-menu.css', __FILE__), false, '9001');
wp_enqueue_style('bubbles-menu-css'); wp_enqueue_style('bubbles-menu-css');
} }
if ( get_option('bar') == 'yes') { if ( get_option('bar') == 'yes') {
wp_register_style('bubbles-bar-css', plugins_url('/bubbles/bubbles-bar.css'), false, '9001'); wp_register_style('bubbles-bar-css', plugins_url('css/bubbles-bar.css', __FILE__), false, '9001');
wp_enqueue_style('bubbles-bar-css'); wp_enqueue_style('bubbles-bar-css');
} }
} }
function bubbles_bar_only_init() { function bubbles_bar_only_init() {
if ( get_option('bar') == 'yes') { if ( get_option('bar') == 'yes') {
wp_register_style('bubbles-bar-css', plugins_url('/bubbles/bubbles-bar.css'), false, '9001'); wp_register_style('bubbles-bar-css', plugins_url('css/bubbles-bar.css', __FILE__), false, '9001');
wp_enqueue_style('bubbles-bar-css'); wp_enqueue_style('bubbles-bar-css');
} }
} }

View File

@ -110,6 +110,6 @@
} }
#bubblesoptions .icon32 { #bubblesoptions .icon32 {
background-image: url(icon-bubbles-32.png); background-image: url(../img/icon-bubbles-32.png);
background-repeat: no-repeat; background-repeat: no-repeat;
} }

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB