2013-10-15, 07:54:04
(2013-10-15, 07:35:23)Kolyok Wrote: Btw something like this would also solve this:
PHP Code:$site_url = $SITEURL;
$plugin_folder = basename(GSPLUGINPATH);
$plugin_url = $site_url.$plugin_folder;
then in the plugin use the $plugin_url instead:
PHP Code:$style = '<link rel="stylesheet" type="text/css" href="'.$plugin_url.'/simple_contact/css/simple_contact.css"></link>';
$script = '<script type="text/javascript" src="'.$plugin_url.'/simple_contact/js/jquery.validate.min.js"></script>';
This way plugins folder name is taken directly from GSPLUGINPATH so no need for manual rewrite if changed.
Forgive my ignorance, would this be located in the nanoslider.php file?