So my plugin uses a wecss file to add a style to an element. since it just extends a base class[1], I could have easily applied the class to the element in the markup. But I had to go the long route[2] and use the awesome parser.
Here's part of what tripped me. add_plugin_css_file('file', true); adds a stylesheet to the head. But, as I found out, it would get rid of the style, probably because the base class wasn't found and left the style empty so it got deleted.So it seems inheritance works within the same file, not all of them.
In the end I actually made some hackish code to do what I want.It doesn't seem to be very efficient, though. :/
Code: [Select]
Here's part of what tripped me. add_plugin_css_file('file', true); adds a stylesheet to the head. But, as I found out, it would get rid of the style, probably because the base class wasn't found and left the style empty so it got deleted.So it seems inheritance works within the same file, not all of them.
In the end I actually made some hackish code to do what I want.It doesn't seem to be very efficient, though. :/
$context['css_main_files'][] = 'file';
$context['skin_folders'][] = array($context['plugins_dir']['plugin_id'] . '/', 'plugin_id_');
$settings['plugin_id_url'] = $context['plugins_dir']['plugin_id'];
1. | base: .foldable, and that's it, really. The file literally only defines that one style. :o |
2. | Which ended up taking up half the day, plus my mouse scroll wheel started acting up last night, which makes browsing through code files a PITA. :^^;: |