mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-09-14 16:13:57 +00:00
Added [module] shortcut
[module] in elements.html get replaced by the modules path.
This commit is contained in:
@@ -31,6 +31,6 @@
|
||||
//Add the modules CSS file
|
||||
print_r('<link rel="stylesheet" type="text/css" href="'.$module.'/style.css">'."\xA");
|
||||
//Get and add HTML Elements
|
||||
print_r(file_get_contents($module.'/elements.html'));
|
||||
print_r(str_replace("[module]",$module ,file_get_contents($module.'/elements.html')));
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user