はじまりの大地

This commit is contained in:
miteruzo
2024-07-08 03:32:47 +09:00
commit c616a96f53
7749 changed files with 478270 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#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 "^(tabs|buttons|boxes)\.php$">
Order Deny,Allow
Deny from all
</FilesMatch>
+69
View File
@@ -0,0 +1,69 @@
<?php
/**
* User defined box configuration of the "vector" DokuWiki template
*
* Create a "/user/boxes.php" file if you want to add/remove some sidebar boxes.
* The template recognizes and loads the provided boxes data automatically.
* You may want to rename this file from "boxes.php.dist" to "boxes.php"
* to get a good starting point as it provides some examples. The comments of
* the {@link _vector_renderBoxes()} (main.php) may be useful, too.
*
* 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.
*
* Note: To change the non-box related config, use the admin webinterface of
* DokuWiki.
*
*
* 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 https://www.dokuwiki.org/template:vector
* @link https://www.dokuwiki.org/devel:configuration
*/
//check if we are running within the DokuWiki environment
if (!defined("DOKU_INC")){
die();
}
//note: The boxes will be rendered in the order they were defined. Means:
// first box will be rendered first, last box will be rendered at last.
$_vector_boxes["example1"]["headline"] = "Hello World!";
$_vector_boxes["example1"]["xhtml"] = "DokuWiki with vector... <em>rules</em>!";
//examples: remove comments to see what is happening
/*
$_vector_boxes["example2"]["headline"] = "Some links";
$_vector_boxes["example2"]["xhtml"] = "<ul>\n"
." <li><a href=\"".wl(cleanID(getId()), array("do" => "backlink"))."\" rel=\"nofollow\">".hsc($lang["vector_toolbxdef_whatlinkshere"])."</a></li>\n" //we might use tpl_actionlink("backlink", "", "", hsc($lang["vector_toolbxdef_whatlinkshere"]), true), but it would be the only toolbox link where this is possible... therefor I don't use it to be consistent
." <li><a href=\"http://www.example.com\">Example link</a></li>\n"
." <li><a href=\"".wl(cleanID(getId()), array("rev" => 0, "vecdo" => "cite"))."\" rel=\"nofollow\">Cite newest version</a></li>\n"
."</ul>";
*/
/*
$_vector_boxes["example3"]["headline"] = "Buttons";
$_vector_boxes["example3"]["xhtml"] = "<a href=\"https://donate.arsava.com/dokuwiki-template-vector/\" title=\"Donate\" target=\"_blank\" rel=\"nofollow\"><img src=\"".DOKU_TPL."static/img/button-donate.gif\" width=\"80\" height=\"15\" alt=\"Donate\" border=\"0\" /></a>";
*/
/*
//include the content of another wiki page (you have to create it first, for
//sure. In this example, the page "wiki:your_page_here" is used)
$_vector_boxes["example4"]["headline"] = "wiki:your_page_here";
$_vector_boxes["example4"]["xhtml"] = tpl_include_page("wiki:your_page_here", false);
*/
+68
View File
@@ -0,0 +1,68 @@
<?php
/**
* User defined button configuration of the "vector" DokuWiki template
*
* Create a "/user/buttons.php" file if you want to add/remove some buttons.
* The template recognizes and loads the provided button data automatically.
* You may want to rename this file from "buttons.php.dist" to "buttons.php"
* to get a good starting point as it provides some examples. The comments of
* the {@link _vector_renderButtons()} (main.php) may be useful, too.
*
* 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.
*
* Note: To change the non-button related config, use the admin webinterface of
* DokuWiki.
*
*
* 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 https://www.dokuwiki.org/template:vector
* @link https://www.dokuwiki.org/devel:configuration
*/
//check if we are running within the DokuWiki environment
if (!defined("DOKU_INC")){
die();
}
//note: The buttons will be rendered in the order they were defined. Means:
// first button will be rendered first, last button will be rendered at
// last.
//W3C CSS validator button
$_vector_btns["valid_css"]["img"] = DOKU_TPL."static/img/button-css.png";
$_vector_btns["valid_css"]["href"] = "http://jigsaw.w3.org/css-validator/check/referer";
$_vector_btns["valid_css"]["width"] = 80;
$_vector_btns["valid_css"]["height"] = 15;
$_vector_btns["valid_css"]["title"] = "Valid CSS";
$_vector_btns["valid_css"]["nofollow"] = true;
//some examples: remove comments to see what is happening
/*
//button using all attributes
$_vector_btns["example1"]["img"] = DOKU_TPL."user/img/yourButtonHere.png";
$_vector_btns["example1"]["href"] = "http://www.example.com";
$_vector_btns["example1"]["width"] = 80;
$_vector_btns["example1"]["height"] = 15;
$_vector_btns["example1"]["title"] = "Example button";
$_vector_btns["example1"]["nofollow"] = false;
*/
/*
//button using only mandatory attributes
$_vector_btns["example2"]["img"] = DOKU_TPL."user/img/yourButtonHere.png";
$_vector_btns["example2"]["href"] = "http://www.example.com";
*/
+9
View File
@@ -0,0 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title></title>
</head>
<body>
<!-- prevent directory browsing -->
</body>
</html>
+9
View File
@@ -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.
*/
+9
View File
@@ -0,0 +1,9 @@
/*
Place for user defined CSS rules (right to left languages, e.g. Hebrew) -
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.
*/
+9
View File
@@ -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.
*/
+156
View File
@@ -0,0 +1,156 @@
<?php
/**
* User defined tab configuration of the "vector" DokuWiki template
*
* Create a "/user/tabs.php" file if you want to add/remove some buttons.
* The template recognizes and loads the provided tab data automatically.
* You may want to rename this file from "tabs.php.dist" to "tabs.php"
* to get a good starting point as it provides some examples. The comments of
* the {@link _vector_renderTabs()} (main.php) may be useful, too.
*
* 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.
*
* Note: To change the non-tab related config, use the admin webinterface of
* DokuWiki.
*
*
* 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 https://www.dokuwiki.org/template:vector
* @link https://www.dokuwiki.org/devel:configuration
*/
//check if we are running within the DokuWiki environment
if (!defined("DOKU_INC")){
die();
}
/***************************** LEFT TAB NAVIGATION ****************************/
//note: The tabs will be rendered in the order they were defined. Means: first
// tab will be rendered first, last tab will be rendered at last.
//nothing here right now
/*************************** RIGHT TAB NAVIGATION *****************************/
//note: The tabs will be rendered in the order they were defined. Means: first
// tab will be rendered first, last tab will be rendered at last.
//nothing here right now
//examples: remove comments to see what is happening
//
// Replace "$_vector_tabs_right" with "$_vector_tabs_left" to add
// the tabs to the left instead the right tab navigation (and vice
// versa)
/*
//(un)subscribe namespace tab
if (!empty($conf["useacl"]) &&
!empty($conf["subscribers"]) &&
!empty($loginname)){ //$loginname was defined within main.php
if (empty($INFO["subscribedns"])){ //$INFO comes from DokuWiki core
$_vector_tabs_right["ca-watchns"]["href"] = wl(cleanID(getId()), array("do" => "subscribens"), false, "&");
$_vector_tabs_right["ca-watchns"]["text"] = $lang["btn_subscribens"]; //language comes from DokuWiki core
}else{
$_vector_tabs_right["ca-watchns"]["href"] = wl(cleanID(getId()), array("do" => "unsubscribens"), false, "&");
$_vector_tabs_right["ca-watchns"]["text"] = $lang["btn_unsubscribens"]; //language comes from DokuWiki core
}
}
*/
/*
//recent changes
if (!empty($conf["recent_days"])){
$_vector_tabs_right["ca-recent"]["text"] = $lang["btn_recent"]; //language comes from DokuWiki core
$_vector_tabs_right["ca-recent"]["href"] = wl("", array("do" => "recent"), false, "&");
$_vector_tabs_right["ca-recent"]["nofollow"] = true;
}
*/
/*
//link
$_vector_tabs_right["tab-urlexample"]["text"] = "Creator";
$_vector_tabs_right["tab-urlexample"]["href"] = "https://andreashaerter.com/";
$_vector_tabs_right["tab-urlexample"]["nofollow"] = true;
*/
/*
//link with rel="nofollow", see http://www.wikipedia.org/wiki/Nofollow for info
$_vector_tabs_right["tab-urlexample2"]["text"] = "Search the web";
$_vector_tabs_right["tab-urlexample2"]["href"] = "http://www.google.com/search?q=dokuwiki";
$_vector_tabs_right["tab-urlexample2"]["nofollow"] = true;
*/
/*
//internal wiki link
$_vector_tabs_right["tab-wikilinkexample"]["text"] = "Home";
$_vector_tabs_right["tab-wikilinkexample"]["wiki"] = ":start";
$_vector_tabs_right["tab-wikilinkexample"]["accesskey"] = "H"; //accesskey is optional
*/
/*
//ODT plugin: export tab
//see <https://www.dokuwiki.org/plugin:odt> for info
if (file_exists(DOKU_PLUGIN."odt/syntax.php") &&
!plugin_isdisabled("odt")){
$_vector_tabs_left["ca-export-odt"]["text"] = $lang["vector_exportodt"];
$_vector_tabs_left["ca-export-odt"]["href"] = wl(cleanID(getId()), array("do" => "export_odt"), false, "&");
$_vector_tabs_left["ca-export-odt"]["nofollow"] = true;
}
*/
/*
//dw2pdf or html2pdf plugin: export tab
//see <https://www.dokuwiki.org/plugin:dw2pdf> and
//<https://www.dokuwiki.org/plugin:html2pdf> for info
if ((file_exists(DOKU_PLUGIN."dw2pdf/action.php") &&
!plugin_isdisabled("dw2pdf")) ||
(file_exists(DOKU_PLUGIN."html2pdf/action.php") &&
!plugin_isdisabled("html2pdf"))){
$_vector_tabs_left["ca-export-pdf"]["text"] = $lang["vector_exportpdf"];
$_vector_tabs_left["ca-export-pdf"]["href"] = wl(cleanID(getId()), array("do" => "export_pdf"), false, "&");
$_vector_tabs_left["ca-export-pdf"]["nofollow"] = true;
}
*/
+38
View File
@@ -0,0 +1,38 @@
<?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:vector
*/
//check if we are running within the DokuWiki environment
if (!defined("DOKU_INC")){
die();
}
//place the needed HTML source codes BELOW this line ?>
+18
View File
@@ -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
"vector_loaduserjs" (->"Load 'vector/user/user.js'?") in the
DokuWiki Config Manager! Otherwise, any changes to this file
won't have any effect!
*/