-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New handling of /user files (-> *.dist files for easier updates)
I provided two separate archives until now: One for installation, one for update. The only difference between them was that the update archive did not contain the /user sub-directory to keep use-defined changes. However, this was too complicated for many users as only my templates were delivered with as two separate archives. So I changed my mind and use /user/*.dist files to provide examples and templates. These files are dummies and may be overwritten. However, the user can take and just remove the ".dist" extension to use them as starting point for own modifications.
- Loading branch information
1 parent
e76c447
commit 4b676a6
Showing
10 changed files
with
115 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
Place for user defined CSS rules (print media) - this file can safely be | ||
preserved when updating. See README for details. | ||
|
||
Note: All example files are delivered with the ".dist" extensions to make | ||
sure your changes do not get overwritten when updating the template. | ||
Just remove the ".dist" extension to use them. | ||
*/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
Place for user defined CSS rules (screen media) - this file can safely be | ||
preserved when updating. See README for details. | ||
|
||
Note: All example files are delivered with the ".dist" extensions to make | ||
sure your changes do not get overwritten when updating the template. | ||
Just remove the ".dist" extension to use them. | ||
*/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
/** | ||
* Place for user defined web analytics software codes/tags | ||
* | ||
* Tools like Piwik and Google Analytics normally provide a small HTML code | ||
* snippet ("tag") which you have to include at your website to make everything | ||
* work. This template tries to make this easier for you. | ||
* | ||
* You don't have to deliberate where you have to copy and paste the code | ||
* simply create a "/user/tracker.php" file. The template recognizes and loads | ||
* the provided tracker data automatically. You may want to rename this file | ||
* from "tracker.php.dist" to "tracker.php" to get a good starting point. Just | ||
* copy and paste the needed HTML code/tag AFTER the closing "?>" | ||
* | ||
* Note: All example files are delivered with the ".dist" extensions to make | ||
* sure your changes do not get overwritten when updating the template. | ||
* Just remove the ".dist" extension to use them. | ||
* | ||
* | ||
* LICENSE: This file is open source software (OSS) and may be copied under | ||
* certain conditions. See COPYING file for details or try to contact | ||
* the author(s) of this file in doubt. | ||
* | ||
* @license GPLv2 (http://www.gnu.org/licenses/gpl2.html) | ||
* @author ARSAVA <dokuwiki@dev.arsava.com> | ||
* @link http://piwik.org/ | ||
* @link http://www.google.com/analytics/ | ||
* @link https://www.dokuwiki.org/template:prsnl10 | ||
* @link https://www.dokuwiki.org/devel:configuration | ||
*/ | ||
|
||
|
||
//check if we are running within the DokuWiki environment | ||
if (!defined("DOKU_INC")){ | ||
die(); | ||
} | ||
|
||
//place the needed HTML source codes BELOW this line ?> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
Place for user defined JavaScript - this file can safely be preserved | ||
when updating. See README for details. | ||
|
||
Note: All example files are delivered with the ".dist" extensions to make | ||
sure your changes do not get overwritten when updating the template. | ||
Just remove the ".dist" extension to use them. | ||
|
||
To use own JavaScript: | ||
|
||
1. Create a /user/user.js file. You may just want to rename this file from | ||
"user.js.dist" to "user.js" | ||
|
||
2. Do not forget to activate the template option | ||
"prsnl10_loaduserjs" (->"Load 'prsnl10/user/user.js'?") in the | ||
DokuWiki Config Manager! Otherwise, any changes to this file | ||
won't have any effect! | ||
*/ |