Permalink
Browse files

initial commit

  • Loading branch information...
Andreas Haerter
Andreas Haerter committed Aug 11, 2010
0 parents commit fa5fcaca4ebbd24e6c8814f25b15de04818f6f42
Showing with 9,205 additions and 0 deletions.
  1. +14 −0 .htaccess
  2. +340 −0 COPYING
  3. +23 −0 CREDITS
  4. +68 −0 ChangeLog
  5. +253 −0 README
  6. +133 −0 README-de
  7. +1 −0 VERSION
  8. +150 −0 bug49642.php
  9. +7 −0 conf/.htaccess
  10. +202 −0 conf/boxes.php
  11. +91 −0 conf/buttons.php
  12. +86 −0 conf/default.php
  13. +9 −0 conf/index.html
  14. +82 −0 conf/metadata.php
  15. +167 −0 conf/tabs.php
  16. +32 −0 detail.php
  17. +181 −0 inc_cite.php
  18. +80 −0 inc_detail.php
  19. +46 −0 inc_mediamanager.php
  20. +9 −0 index.html
  21. +7 −0 lang/.htaccess
  22. +7 −0 lang/de-informal/.htaccess
  23. +9 −0 lang/de-informal/index.html
  24. +105 −0 lang/de-informal/lang.php
  25. +80 −0 lang/de-informal/settings.php
  26. 0 lang/de-informal/style.css
  27. +7 −0 lang/de/.htaccess
  28. +9 −0 lang/de/index.html
  29. +105 −0 lang/de/lang.php
  30. +80 −0 lang/de/settings.php
  31. 0 lang/de/style.css
  32. +7 −0 lang/en/.htaccess
  33. +9 −0 lang/en/index.html
  34. +105 −0 lang/en/lang.php
  35. +80 −0 lang/en/settings.php
  36. 0 lang/en/style.css
  37. +9 −0 lang/index.html
  38. +7 −0 lang/it/.htaccess
  39. +9 −0 lang/it/index.html
  40. +103 −0 lang/it/lang.php
  41. +83 −0 lang/it/settings.php
  42. 0 lang/it/style.css
  43. +7 −0 lang/nl/.htaccess
  44. +9 −0 lang/nl/index.html
  45. +106 −0 lang/nl/lang.php
  46. +75 −0 lang/nl/settings.php
  47. 0 lang/nl/style.css
  48. +7 −0 lang/pt-br/.htaccess
  49. +9 −0 lang/pt-br/index.html
  50. +104 −0 lang/pt-br/lang.php
  51. +74 −0 lang/pt-br/settings.php
  52. 0 lang/pt-br/style.css
  53. +790 −0 main.php
  54. +31 −0 mediamanager.php
  55. +43 −0 static/3rd/dokuwiki/_admin.css
  56. +68 −0 static/3rd/dokuwiki/_linkwiz.css
  57. BIN static/3rd/dokuwiki/buttonshadow.png
  58. BIN static/3rd/dokuwiki/closed.gif
  59. +840 −0 static/3rd/dokuwiki/design.css
  60. BIN static/3rd/dokuwiki/favicon.ico
  61. +9 −0 static/3rd/dokuwiki/index.html
  62. +79 −0 static/3rd/dokuwiki/layout.css
  63. BIN static/3rd/dokuwiki/link_icon.gif
  64. BIN static/3rd/dokuwiki/logo.png
  65. +6 −0 static/3rd/dokuwiki/logo.png-readme.txt
  66. BIN static/3rd/dokuwiki/mail_icon.gif
  67. +205 −0 static/3rd/dokuwiki/media.css
  68. BIN static/3rd/dokuwiki/open.gif
  69. +238 −0 static/3rd/dokuwiki/print.css
  70. +119 −0 static/3rd/dokuwiki/rtl.css
  71. BIN static/3rd/dokuwiki/tocdot2.gif
  72. BIN static/3rd/dokuwiki/windows.gif
  73. +9 −0 static/3rd/index.html
  74. BIN static/3rd/vector/arrow-down-icon.png
  75. BIN static/3rd/vector/audio-icon.png
  76. BIN static/3rd/vector/border.png
  77. BIN static/3rd/vector/bullet-icon.png
  78. +262 −0 static/3rd/vector/csshover.htc
  79. BIN static/3rd/vector/document-icon.png
  80. BIN static/3rd/vector/edit-icon.png
  81. BIN static/3rd/vector/external-link-ltr-icon.png
  82. BIN static/3rd/vector/external-link-rtl-icon.png
  83. BIN static/3rd/vector/file-icon.png
  84. +9 −0 static/3rd/vector/index.html
  85. BIN static/3rd/vector/link-icon.png
  86. BIN static/3rd/vector/lock-icon.png
  87. BIN static/3rd/vector/magnify-clip.png
  88. BIN static/3rd/vector/mail-icon.png
  89. +1,136 −0 static/3rd/vector/main-ltr.css
  90. +1,136 −0 static/3rd/vector/main-rtl.css
  91. BIN static/3rd/vector/news-icon.png
  92. BIN static/3rd/vector/page-base.png
  93. BIN static/3rd/vector/page-fade.png
  94. BIN static/3rd/vector/portal-break-ltr.png
  95. BIN static/3rd/vector/portal-break-rtl.png
  96. BIN static/3rd/vector/portal-break.png
  97. BIN static/3rd/vector/preferences-base.png
  98. BIN static/3rd/vector/preferences-break.png
  99. BIN static/3rd/vector/preferences-edge.png
  100. BIN static/3rd/vector/preferences-fade.png
  101. BIN static/3rd/vector/search-fade.png
  102. BIN static/3rd/vector/search-ltr.png
  103. BIN static/3rd/vector/search-rtl.png
  104. BIN static/3rd/vector/tab-break.png
  105. BIN static/3rd/vector/tab-current-fade.png
  106. BIN static/3rd/vector/tab-normal-fade.png
  107. BIN static/3rd/vector/talk-icon.png
  108. BIN static/3rd/vector/user-icon.png
  109. BIN static/3rd/vector/video-icon.png
  110. BIN static/3rd/vector/watch-icon-loading.gif
  111. BIN static/3rd/vector/watch-icons.png
  112. +9 −0 static/css/index.html
  113. +66 −0 static/css/print.css
  114. +15 −0 static/css/rtl.css
  115. +425 −0 static/css/screen.css
  116. BIN static/img/button-donate.gif
  117. BIN static/img/button-dw.png
  118. BIN static/img/button-rss.png
  119. BIN static/img/button-vector.png
  120. +9 −0 static/img/index.html
  121. +9 −0 static/index.html
  122. +9 −0 static/js/index.html
  123. +134 −0 style.ini
  124. +10 −0 user/.htaccess
  125. +83 −0 user/boxes.php
  126. BIN user/button-css.png
  127. BIN user/button-xhtml.png
  128. +77 −0 user/buttons.php
  129. +9 −0 user/index.html
  130. +7 −0 user/print.css
  131. +7 −0 user/rtl.css
  132. +7 −0 user/screen.css
  133. +148 −0 user/tabs.php
  134. +15 −0 user/user.js
@@ -0,0 +1,14 @@
+#Note: If this file prevents running vector in your environment, simply delete
+# it. Everything should be safe even if the files blocked by the following
+# Apache rules are accessible.
+# The reason for protecting these files is to to keep searchengines/foo
+# away from indexing files containing version information, names and/or not
+# necessarily public template parts by default.
+<FilesMatch "^inc_(detail|cite|mediamanager)\.php$">
+ Order Deny,Allow
+ Deny from all
+</FilesMatch>
+<FilesMatch "^(README|README-de|COPYING|ChangeLog|CREDITS|VERSION|style\.ini|detail\.php|main\.php|mediamanager\.php)$">
+ Order Deny,Allow
+ Deny from all
+</FilesMatch>
340 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
23 CREDITS
@@ -0,0 +1,23 @@
+Title: Credits of the vector template for DokuWiki
+Creation date: 2010-06-11
+Last Update: 2010-06-27
+Author: Andreas Haerter <andreas.haerter [ät] dev.mail-node.com>
+Web: <http://andreas-haerter.com/projects/dokuwiki-template-vector>
+ <http://www.dokuwiki.org/template:vector>
+
+
+This file lists contributors and contributions to this template for DokuWiki
+
+ * Theo Klein
+ Theo Klein contributed the Dutch language files and some ideas. Thank you for
+ this!
+
+
+ * Fabio Reis
+ Fabio Reis contributed the Brazilian Portuguese language files and reported
+ a bug. Thank you for this!
+
+
+ * Luigi Micco <l.micco [ät] tiscali.it> <http://www.luigimicco.altervista.org>
+ Luigi contributed the Italian language files an reported a few bugs. Thank
+ you for this!
@@ -0,0 +1,68 @@
+Title: Development Changelog of the vector template for DokuWiki
+Creation Date: 2010-06-12
+Last Update: 2010-06-29
+Author: Andreas Haerter <andreas.haerter [ät] dev.mail-node.com>
+Web: <http://andreas-haerter.com/projects/dokuwiki-template-vector>
+ <http://www.dokuwiki.org/template:vector>
+
+
+
+PLEASE NOTE: I am NO native English speaker. If you find any errors please let
+ me know (e.g. by mail). Otherwise, my English is not getting better
+ (as desired by myself). Thank you! -- Andreas Haerter
+
+
+
+2010-06-29 Andreas Haerter <andreas.haerter [ät] dev.mail-node.com>
+ * Corrected small typos in Italian and Dutch language files
+
+
+2010-06-28 Andreas Haerter <andreas.haerter [ät] dev.mail-node.com>
+ * Template respects $conf['disableactions']
+ Links to disabled functions should be hidden now.
+
+ * Mediamanager CSS improved
+
+
+2010-06-27 Andreas Haerter <andreas.haerter [ät] dev.mail-node.com>
+ * New config option: closed wiki
+ If active, most tabs/boxes will be hidden until user is logged in.
+
+ * Added Italian language files
+ Thanks to Luigi Micco :-) (see CREDITS for details).
+
+
+2010-06-26 Andreas Haerter <andreas.haerter [ät] dev.mail-node.com>
+ * New config option: user pages
+ You can (de)activate user pages now + choose a custom namespace for them.
+
+ * Support for PNG favicons
+ I do NOT recommend PNG for favicons (cause it is not supported by
+ all browsers), but some users requested this feature. See README for
+ details.
+
+ * Fixed bug: "wrong link (double slash in front) when urlrewriteing is active"
+ I replaced all "wl(getID())" with "wl(cleanID(getID())". Additionally, all
+ "auth_quickaclcheck(trim($id, ":))" where replaced with
+ "auth_quickaclcheck(cleanID($id))". See comment on
+ <http://bugs.splitbrain.org/index.php?do=details&task_id=1983> for details.
+
+ * Fixed bug: "wrong CSS within site wide notice"
+
+ * Minor CSS improvements (screen and print layout)
+
+ * Updated Brazilian Portuguese language files
+ Thanks to Fabio Reis :-) (see CREDITS for details).
+
+
+2010-06-18 Andreas Haerter <andreas.haerter [ät] dev.mail-node.com>
+ * Added Dutch language files
+ Thanks to Theo Klein :-) (see CREDITS for details).
+
+ * Added Brazilian Portuguese language files
+ Thanks to Fabio Reis :-) (see CREDITS for details).
+
+
+2010-06-12 Andreas Haerter <andreas.haerter [ät] dev.mail-node.com>
+ * Initial release.
+
253 README
@@ -0,0 +1,253 @@
+Title: README of the vector template for DokuWiki
+Creation date: 2010-05-29
+Last Update: 2010-06-28
+Author: Andreas Haerter <andreas.haerter [ät] dev.mail-node.com>
+Web: <http://andreas-haerter.com/projects/dokuwiki-template-vector>
+ <http://www.dokuwiki.org/template:vector>
+
+
+
+PLEASE NOTE: I am NO native English speaker. If you find any errors please let
+ me know (e.g. by mail). Otherwise, my English is not getting better
+ (as desired by myself). Thank you! -- Andreas Haerter
+
+
+
+I. Using/Installing the template
+ Using "vector" is simple and works just as described at
+ <http://www.dokuwiki.org/template>: extract the downloaded archive into
+ your DokuWiki's "lib/tpl/" folder. Then select the template in the Config
+ Manager by adjusting the template option. Done. :-)
+
+ If you are updating an existing vector-installation: please have a look at
+ <http://www.dokuwiki.org/template:vector>, you should find all needed
+ information there.
+
+ NOTE: If everything will be displayed unformatted, your PHP environment is
+ probably affected by PHP bug #49692 (see bugreport at
+ <http://bugs.php.net/bug.php?id=49692> for details). You may find errors
+ like "syntax error, unexpected '/' in ../../lib/tpl/vector/style.ini
+ on line XX" in your PHP logs when this is the case. vector provides
+ a workaround for this, simply delete the vector's "style.ini" to trigger
+ the template to use it.
+
+
+
+II. Customizing the template
+ In order to make updates of your installed "vector" template easy, follow
+ these hints for customizing the template:
+
+ - Place your files in "vector/user"
+ The place for *all* userdefined, custom stuff is "vector/user".
+ Reason: this folder will not be touched on updates. Therefore you may delete
+ everything except "vector/user" and copy all new files into "vector/" to
+ update without loosing your changes. Do not forget to empty your browser's
+ cache afterwards.
+
+ - Own logo
+ If you want to replace the default logo showed in the upper left, simply
+ create a "logo.[png|gif|jpg]" in "vector/user". The template recognizes
+ the file automatically and will use it instead of the default logo.
+ Do not forget to empty your browser's cache afterwards.
+
+ - Own favicon
+ If you want to replace the default favicon, simply create a "favicon.ico" in
+ "vector/user". The template recognizes the file automatically and will use
+ it instead of the default one. Do not forget to empty your browser's cache
+ afterwards. By the way: you might find the following online tool useful:
+ <http://tools.dynamicdrive.com/favicon/>
+ Note: "favicon.png" is also possible but not recommended (cause it is not
+ supported by most MSIE versions).
+
+ - Own CSS
+ To apply additional CSS rules, edit "vector/user/screen.css" (influences
+ normal layout) and/or "vector/user/print.css" (influences print layout)
+ and/or "vector/user/rtl.css" (influences "right-to-left" languages like
+ hebrew). These files will be included automatically (as the last ones for
+ the relevant media, therefore you are able to overrule existing styles). Do
+ not forget to empty your browser's cache afterwards.
+
+ - Own JavaScript
+ To load additional JavaScript, edit "vector/user/user.js". Do not forget
+ to empty your browser's cache afterwards.
+ ATTENTION: Do not forget to activate the template option
+ "vector_loaduserjs" (->"Load 'vector/user/user.js'?") in the
+ DokuWiki Config Manager!
+
+ - Own CSS, language specific
+ To apply additional CSS rules only for a specific language, edit/create
+ "vector/lang/<your-language>/style.css". This file will be included
+ automatically if DokuWiki runs/shows a page in the language of choice (as
+ the last one, therefore you are able to overrule existing styles). Do
+ not forget to empty your browser's cache afterwards.
+
+ - Own tabs
+ To apply own tabs, have a look at "vector/user/tabs.php". Don't worry:
+ you will find some examples how to define the tabs. If you still have
+ questions after playing with the examples, search
+ <http://dokuwiki.org/template:vector> and/or the DokuWiki Forum at
+ <http://forum.dokuwiki.org> and/or ask the community if you can't get it
+ work.
+ If "vector/user/tabs.php" does not exist, simply copy it out of the
+ current actual installation archive.
+
+ - Own footer buttons
+ To apply own buttons/graphics in the footer (-> these small 80x15 pics),
+ have a look at "vector/user/buttons.php". Don't worry: you will find some
+ examples how to define the buttons. If you still have questions after
+ playing with the examples, search <http://dokuwiki.org/template:vector>
+ and/or the DokuWiki Forum at <http://forum.dokuwiki.org> and/or ask the
+ community if you can't get it work.
+ If "vector/user/buttons.php" does not exist, simply copy it out of the
+ current actual installation archive.
+
+ - Own boxes
+ To apply own boxes in the left column/sidebar, have a look at
+ "vector/user/boxes.php". Don't worry: you will find some examples how to
+ define the boxes. If you still have questions after
+ playing with the examples, search <http://dokuwiki.org/template:vector>
+ and/or the DokuWiki Forum at <http://forum.dokuwiki.org> and/or ask the
+ community if you can't get it work.
+ If "vector/user/boxes.php" does not exist, simply copy it out of the
+ current actual installation archive.
+
+
+
+III. Some notes about the dirs of this template
+
+ * "vector/conf"
+ Configuration files. See
+ <http://www.dokuwiki.org/devel:templates#directory_layout> for information.
+ * "vector/lang"
+ Language. See <http://www.dokuwiki.org/devel:templates#directory_layout> for
+ information. You may copy the English language files and translate them
+ if your language is missing (hint: looking at
+ <http://[your lang].wikipedia.org> might be helpful). Simply mail me,
+ Andreas Haerter, the translated files, I will include them in the next
+ release :-D.
+ * "vector/static"
+ Static files (images, CSS, JavaScript). The interesting stuff is located
+ in subdirs (as described below).
+ * "vector/static/3rd"
+ Static files originally taken from a third party.
+ * "vector/static/3rd/dokuwiki"
+ Static files originally taken from the DokuWiki "default" template.
+ * "vector/static/3rd/vector"
+ Static files originally taken from the MediaWiki "vector" skin.
+ * "vector/static/css"
+ Non-3rd party CSS files for vector.
+ * "vector/static/img"
+ Non-3rd party images files for vector.
+ * "vector/static/js"
+ Non-3rd party JavaScripts for vector.
+ * "vector/user"
+ Place for userdefined stuff. E.g. if you want to replace the default-logo,
+ simply copy a logo.[png|gif|jpg] in here. See "II. Customizing the template"
+ for details.
+
+
+
+IV. Other notes
+ - Even if it is not required: If you like the template, think about a small
+ donation (see <http://andreas-haerter.com/donate/vector>) and/or a link to
+ <http://andreas-haerter.com/projects/dokuwiki-template-vector>.
+ Thanks :-).
+
+ - This template follows the DokuWiki coding style (see
+ <http://www.dokuwiki.org/devel:coding_style>). If you want to submit any
+ patches, please respect its rules (even if you don't like it - I also don't
+ love it but this simply does not matter).
+
+ - Feel free to send patches or suggestions via mail (or post on
+ <http://www.dokuwiki.org/template:vector>).
+
+ - Please don't delete the "index.html" and ".htaccess" files for security
+ reasons, even if you don't know why they are there. These files should
+ prevent others from listing directory contents (a built in feature of most
+ webservers) and providing additional access protection for some files. Even
+ if everything should be secure without, I prefer some additional
+ precautions.
+
+
+
+V. About
+ "vector" is a template to offer the new MediaWiki/Wikipedia Look&Feel
+ (introduced in 2010) to DokuWiki. It is a (mostly) optical port of the
+ MediaWiki skin and maintained/developed by me, Andreas Haerter.
+
+
+
+VI. Creation transcript
+ Some developers may find this interesting. Additionally, I am very oblivious
+ :-P.
+
+ - Downloaded the nightly MediaWiki build (cause only the SVN version is
+ containing the vector skin as I'm writing this) from
+ <http://toolserver.org/~vvv/mw-nightly/>.
+
+ - Installed DokuWiki (Release "2009-12-25c", "Lemming") for testing purpose.
+
+ - Copied all "monobook for DokuWiki" sources cause it already fits some of
+ my needs regarding config options and non-layout features. Means: I used the
+ source of the "monobook for DokuWiki" template as base for
+ "vector for DokuWiki".
+
+ - replaced "monobook" through "vector" in:
+ - /conf/*
+ - /lang/*
+ - /bug49642.php
+ - /detail.php
+ - /inc_cite.php
+ - /inc_detail.php
+ - /inc_mediamanager.php
+ - /main.php
+ - /mediamanager.php
+
+ - After investigation, some 3rd-party files were copied into the provided
+ places within "/vector/static/3rd".
+ - The following files were copied from the original vector skin:
+ - /skins/vector/csshover.htc
+ - /skins/vector/main-ltr.css
+ - /skins/vector/main-rtl.css
+ - /skins/vector/images/*
+ - The following files were copied from Andreas Gohr's "default" DokuWiki
+ template:
+ * /default/*.css (see <http://j.mp/jIyE2> why I do this)
+ * /default/images/closed.gif
+ * /default/images/favicon.ico
+ * /default/images/link_icon.gif
+ * /default/images/mail_icon.gif
+ * /default/images/open.gif
+ * /default/images/tocdot2.gif
+ * /default/images/windows.gif
+
+ - Edited:
+ - "/vector/static/3rd/vector/main-ltr.css"
+ "/vector/static/3rd/vector/main-rtl.css"
+ All url() rules were edited (-> replaced "url(images/" through
+ "url(static/3rd/vector/", deleted "?1" and "?2 postfixes").
+ To make this clear, a comment was added at the top of the files:
+ /* ATTENTION: This file was edited for the "vector template for DokuWiki".
+ - All url() rules where changed.
+ See README for details. */
+
+ - "/vector/static/3rd/dokuwiki/design.css"
+ All url() rules were edited (-> replaced "url(images/" through
+ "url(static/3rd/dokuwiki/").
+ To make this clear, a comment was added at the top of the files:
+ /* ATTENTION: This file was edited for the "vector template for DokuWiki".
+ - All url() rules where changed.
+ See README for details. */
+
+ - Visited <http://en.wikipedia.org/w/index.php?title=ASCII>, copied the XHTML
+ source and let Tidy do the dirty work to get a valid clean and correctly
+ indented base markup (after core removal, for sure). This markup was then
+ compared with the current main.php and needed changes where done.
+
+ - Created new files:
+ * "vector/static/css/print.css"
+ * "vector/static/css/rtl.css"
+ * "vector/static/css/screen.css"
+ All relevant information should be found within the inline comments.
+
+ - Worked worked worked a few days.... and done! :-P
Oops, something went wrong.

0 comments on commit fa5fcac

Please sign in to comment.