It is the first time that I need to get the URL of the calling plugin from within the qa-plugin.php
I have several days of coding behind me, so could be that I know the solution but forgot it.
What I found in my notes:
How to get website path / root and path to plugin
1. in layers:
$this->output('<link rel="stylesheet" type="text/css" href="'.QA_HTML_THEME_LAYER_URLTOROOT.'styles.css">');
2. in pages with ajax calls:
$itemIcon = '<img src="'.qa_path_absolute($this->urltoroot).'comment-icon.png" />';
3. in themes:
$theme_dir = dirname( __FILE__ ) . '/';
$theme_url = qa_opt('site_url') . 'qa-theme/' . qa_get_site_theme() . '/';
4. in plugin pages:
function load_module($directory, $urltoroot)
5. in qa-plugin.php ??
And especially within a custom function within the qa-plugin.php file?
Thanks for the help.