From 8d9d1e8d9f451f6d980edb0f18f48b925ebcfae7 Mon Sep 17 00:00:00 2001 From: Paul-Vincent Roll Date: Thu, 28 Jan 2016 11:42:43 +0100 Subject: [PATCH] Language fixes README --- modules/README.md | 8 ++++---- modules/test-module/style.css | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/README.md b/modules/README.md index 5b280f04..c9998167 100644 --- a/modules/README.md +++ b/modules/README.md @@ -7,16 +7,16 @@ Other files can be loaded from within those. ### include.php If you happen to need any other css or js file from remote host or a local file you can add it in `include.php`. -It will be loaded before the plugins main javascript, the plugins css and the plugins elements. +It will be loaded before the module's main javascript, the module's css and the module's elements. Local files starting without `http` or `https` will be loaded from the `root` of the module folder. If you have a file called `test.js` in your module just add `test.js` if you have the same file but in a folder called `js` inside your module folder add `js/test.js`. Same is valid for css files. Remote files will be loaded normally from the remote host, no need to specify anything. ### elements.html -Put your custom divs and other html elements in this file (don't include any body or header tags). Any refrence of `[module]` will be replaced with the path to the modules root. `[module]/img/test.png` becomes `modules/name_of_module/img/test.png`. +Put your custom divs and other html elements in this file (don't include any body or header tags). Any refrence of `[module]` will be replaced with the path to the module's root. `[module]/img/test.png` for example becomes `modules/name_of_module/img/test.png`. ### main.js -Your plugins JavaScript. +Your plugin's JavaScript. ### style.css -CSS for your HTML elements. \ No newline at end of file +CSS for your HTML elements. All module elements get loaded into a `div`. The `id` is the name of the module's folder, which acts as the module's name. \ No newline at end of file diff --git a/modules/test-module/style.css b/modules/test-module/style.css index e69de29b..e99a7785 100644 --- a/modules/test-module/style.css +++ b/modules/test-module/style.css @@ -0,0 +1,3 @@ +#test-module{ + +} \ No newline at end of file