$paths = array();
$paths[] = JPATH_ROOT . '/templates/' . JFactory::getApplication()->getTemplate() . '/html/mod_sclogin/themes/';
$paths[] = JPATH_ROOT . '/media/sourcecoast/themes/sclogin/';
$theme = $params->get('theme', 'default.css');
$file = JPath::find($paths, $theme);
$file = str_replace(JPATH_SITE, '', $file);
$file = str_replace('\\', "/", $file); //Windows support for file separators
$document->addStyleSheet(JURI::base(true) . $file);
$paths = array();
$physicalPath = '/home/username/subdomains/master/public_html/';
$paths[] = $physicalPath . '/templates/' . JFactory::getApplication()->getTemplate() . '/html/mod_sclogin/themes/';
$paths[] = $physicalPath . '/media/sourcecoast/themes/sclogin/';
$theme = $params->get('theme', 'default.css');
$file = JPath::find($paths, $theme);
$file = str_replace($physicalPath, '', $file);
$file = str_replace('\\', "/", $file); //Windows support for file separators
$document->addStyleSheet(JURI::base(true) . $file);
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.