commit 96fbbc60383501e04bacdcb935df4d584aeec56d Author: Perttu Ahola Date: Tue Nov 26 00:50:32 2013 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0433824 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +## Generic ignorable patterns and files +*~ +.*.swp +*bak* +tags +*.vim +*.orig +*.rej + +## Project-specific files + diff --git a/_admin.css b/_admin.css new file mode 100644 index 0000000..f34d8ab --- /dev/null +++ b/_admin.css @@ -0,0 +1,43 @@ + +.dokuwiki ul.admin_tasks { + font-size: 115%; + float: left; + width: 40%; + list-style-type: none; +} + +.dokuwiki ul.admin_tasks li { + line-height: 22px; + padding-left: 35px; + margin: 1em 0; + background: transparent none no-repeat scroll 0 0; + text-align: left; +} + +.dokuwiki ul.admin_tasks li div.li { + font-weight: bold; +} + +.dokuwiki ul.admin_tasks li.admin_acl { + background-image: url(../../images/admin/acl.png); +} + +.dokuwiki ul.admin_tasks li.admin_usermanager { + background-image: url(../../images/admin/usermanager.png); +} + +.dokuwiki ul.admin_tasks li.admin_plugin { + background-image: url(../../images/admin/plugin.png); +} + +.dokuwiki ul.admin_tasks li.admin_config { + background-image: url(../../images/admin/config.png); +} + +.dokuwiki ul.admin_tasks li.admin_revert { + background-image: url(../../images/admin/revert.png); +} + +.dokuwiki ul.admin_tasks li.admin_popularity { + background-image: url(../../images/admin/popularity.png); +} diff --git a/_linkwiz.css b/_linkwiz.css new file mode 100644 index 0000000..0607073 --- /dev/null +++ b/_linkwiz.css @@ -0,0 +1,68 @@ +#link__wiz { + position: absolute; + display: block; + z-index: 99; + width: 300px; + height: 250px; + padding: 0; + margin: 0; + overflow: hidden; + border: 1px solid __border__; + background-color: __background_neu__; + text-align: center; +} + +#link__wiz_header { + background-color: __background_alt__; + height: 16px; + margin-bottom: 5px; +} + +#link__wiz_close { + cursor: pointer; + margin: 0; +} + +#link__wiz_result { + background-color: __background__; + width: 293px; + height: 193px; + overflow: auto; + border: 1px solid __border__; + margin: 3px auto; + text-align: left; +} + +#link__wiz_result div.type_u { + padding: 3px 3px 3px 22px; + background: transparent url(../../images/up.png) 3px 3px no-repeat; +} + +#link__wiz_result div.type_f { + padding: 3px 3px 3px 22px; + background: transparent url(../../images/page.png) 3px 3px no-repeat; +} + +#link__wiz_result div.type_d { + padding: 3px 3px 3px 22px; + background: transparent url(../../images/ns.png) 3px 3px no-repeat; +} + +#link__wiz_result div.even { + background-color: __background_neu__; +} + +#link__wiz_result div.selected { + background-color: __background_alt__; +} + +#link__wiz_result span { + display: block; + color: __text_neu__; +} + +/*FIXME maybe move to a more general style sheet*/ +.ondrag { + cursor: move; + opacity: 0.8; +} diff --git a/conf/default.php b/conf/default.php new file mode 100755 index 0000000..b10d8cc --- /dev/null +++ b/conf/default.php @@ -0,0 +1,7 @@ +,
. */ +blockquote:before, blockquote:after, q:before, q:after { content: ""; } +blockquote, q { quotes: "" ""; } + +/* Remove annoying border on linked images. */ +a img { border: none; } + +hr { border-top:1px solid black; } diff --git a/css/h6e-typography.css b/css/h6e-typography.css new file mode 100644 index 0000000..bfd118e --- /dev/null +++ b/css/h6e-typography.css @@ -0,0 +1,93 @@ +/* -------------------------------------------------------------- + + typography.css + * Sets up some sensible default typography. + * 90% of this code is from the BluePrint CSS framework + +-------------------------------------------------------------- */ + +/* Default font settings. + The font-size percentage is of 16px. */ +body { + font-size: 75%; + color: #222; + background: #fff; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; +} + + +/* Headings +-------------------------------------------------------------- */ + +h1,h2,h3,h4,h5,h6 { font-weight: normal; } + +h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; } +h2 { font-size: 2em; margin-bottom: 0.75em; } +h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; } +h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; } +h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; } +h6 { font-size: 1em; font-weight: bold; } + +h1 img, h2 img, h3 img, +h4 img, h5 img, h6 img { + margin: 0; +} + + +/* Text elements +-------------------------------------------------------------- */ + +p { margin: 1em 0; } +p img.left { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; } +p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; } + +a:focus, +a:hover { color: #000; } +a { color: #009; text-decoration: underline; } +a:visited { color: purple; } + +blockquote { margin: 1.5em; color: #666; font-style: italic; } +strong { font-weight: bold; } +em,dfn { font-style: italic; } +dfn { font-weight: bold; } +sup, sub { line-height: 0; } + +abbr, +acronym { border-bottom: 1px dotted #666; } +address { margin: 0 0 1.5em; font-style: italic; } +del { color:#666; } + +pre { margin: 1.5em 0; white-space: pre; } +pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; } + + +/* Lists +-------------------------------------------------------------- */ + +li ul, +li ol { margin:0.25em 1.5em; } +ul, ol { margin:1em 1.5em; } + +ul { list-style-type: disc; } +ol { list-style-type: decimal; } + +dl { margin: 0 0 1.5em 0; } +dl dt { font-weight: bold; } +dd { margin-left: 1.5em;} + + +/* Tables +-------------------------------------------------------------- */ + +table { margin-bottom: 1.4em; width:100%; } +th { font-weight: bold; } +thead th { background: #c3d9ff; } +th,td,caption { padding: 4px 10px 4px 5px; } +tr.even td { background: #e5ecf9; } +tfoot { font-style: italic; } +caption { background: #eee; } + +/* Extra +-------------------------------------------------------------- */ + +hr { border-color:#CCCCCC; padding-top:1em; margin-top:2em; } diff --git a/css/img/background-ds.gif b/css/img/background-ds.gif new file mode 100644 index 0000000..24f443e Binary files /dev/null and b/css/img/background-ds.gif differ diff --git a/css/img/cross-blue.gif b/css/img/cross-blue.gif new file mode 100644 index 0000000..3facbd2 Binary files /dev/null and b/css/img/cross-blue.gif differ diff --git a/css/img/h-spacer.gif b/css/img/h-spacer.gif new file mode 100644 index 0000000..809ee1f Binary files /dev/null and b/css/img/h-spacer.gif differ diff --git a/css/img/post-info.gif b/css/img/post-info.gif new file mode 100644 index 0000000..ea5b77e Binary files /dev/null and b/css/img/post-info.gif differ diff --git a/css/img/puce-mini-footer.gif b/css/img/puce-mini-footer.gif new file mode 100644 index 0000000..46ccea5 Binary files /dev/null and b/css/img/puce-mini-footer.gif differ diff --git a/css/img/puce-verte.gif b/css/img/puce-verte.gif new file mode 100644 index 0000000..3804f17 Binary files /dev/null and b/css/img/puce-verte.gif differ diff --git a/css/img/tag.gif b/css/img/tag.gif new file mode 100644 index 0000000..7c4e8ab Binary files /dev/null and b/css/img/tag.gif differ diff --git a/css/img/v-spacer.gif b/css/img/v-spacer.gif new file mode 100644 index 0000000..6a26d1d Binary files /dev/null and b/css/img/v-spacer.gif differ diff --git a/detail.php b/detail.php new file mode 100755 index 0000000..9ef7500 --- /dev/null +++ b/detail.php @@ -0,0 +1,104 @@ + + + + + + <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG)) ?> - <?php echo strip_tags($conf['title']) ?> + + + + + + + + + + + +
+ + + +
+ + + +

+ +
+ +
+ +
+

+ +

+ +

+ +
+ '.$lang['img_date'].':
'.strftime($conf['dformat'],$t).'
'; + + $t = tpl_img_getTag('File.Name'); + if($t) print '
'.$lang['img_fname'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit')); + if($t) print '
'.$lang['img_artist'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')); + if($t) print '
'.$lang['img_copyr'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag('File.Format'); + if($t) print '
'.$lang['img_format'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag('File.NiceSize'); + if($t) print '
'.$lang['img_fsize'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag('Simple.Camera'); + if($t) print '
'.$lang['img_camera'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category')); + if($t) print '
'.$lang['img_keywords'].':
'.hsc($t).'
'; + + ?> +
+ +
+ + +
+
+ + + diff --git a/h6e.css b/h6e.css new file mode 100755 index 0000000..7d245fd --- /dev/null +++ b/h6e.css @@ -0,0 +1,219 @@ +/* Main */ + +pre, code, tt { + font-family:monospace; +} + +a.wikilink2, a.wikilink2:visited { + color:#CC7286; + border-bottom:1px dashed #CC7286; + text-decoration:none; +} + +.h6e-entry-title a { text-decoration:none; } +.h6e-entry-title a:hover { text-decoration:underline; } + +/* make the entry-content bigger */ +.h6e-post-content { + font-size:1.1em; + line-height:1.2em; +} + +.h6e-page-title { + margin-bottom:1em; +} + +.user-info { + text-align:right; + font-size:1.2em; + padding:0.5em 1em; + position:absolute; + top:0; + right:0; +} + +.user-info a { + padding-left:0.25em; +} + +.actions .a { + float:right; +} + +.pageinfo { + color:#999; + padding-top:2em; + clear:both; +} + +input[type="text"], input[type="password"], input.text, input.button, textarea { + font-size:12px; +} + +thead th { + background-color:transparent; +} + +.do-page .h6e-entry-title, .do-page .breadcrumbs, +.do-page .pageinfo, .do-page .actions-page { display:none; } + +legend { display:none; } + +div.info, div.error, div.success, div.notify { + padding:1em 3em; + background-position:0.5% 50% ; + font-size:1.1em; +} + +div.notify { border-color:#FFD324; } + +/* DokuWiki */ + +div.dokuwiki form, div.no { + display:inline; + margin:0; + padding:0; +} + +.breadcrumbs { + margin-bottom:2em; +} + +.footnotes { + margin-top:2em; +} + +.fn { + font-size:0.9em; +} + +#toc__header { + margin-bottom:1em; +} + +#wikipage { + min-height:10em; +} + +.secedit { + margin-bottom:2em; +} + +.secedit input.button { + font-size:0.65em; + float:right; +} + +button.toolbutton { + border:1px solid #4E5368; + background:white; + margin-left:0; + margin-right:2px; +} + +#wikipage h1 a, +#wikipage h2 a, +#wikipage h3 a, +#wikipage h4 a, +#wikipage h5 a, +#wikipage h6 a { + background-color:inherit; + color:inherit; + text-decoration:none; +} + +#wikipage h1 { font-size:1.6em; margin-bottom:1em; margin-top:1em; } +#wikipage h2 { font-size:1.6em; margin-bottom:1em; margin-top:1em; } + +#wiki__text { + width:98%; + font-size:1.1em; + font-family:Monospace; +} + +#qsearch__in { + margin-right:0.5em; +} + +#config__manager fieldset { + color:#4E5368; + font-size:0.9em; + border:1px solid #4E5368; + background-color:#F8F9FC; + margin:1em 0 2em; +} + +#config__manager tr.default .input, +#config__manager tr.default input, +#config__manager tr.default textarea, +#config__manager tr.default select, +#config__manager .selectiondefault { + background:transparent; +} + +#plugin__manager .plugins fieldset.protected { + background:transparent; +} + +#plugin__manager .plugins .button { + font-size:12px; +} + +#user__manager .edit { + width:100px; +} + +#user__manager tr.disabled { + background:none; +} + +#user__manager input[type="image"] { + background:none; +} + +/* Medias */ + +div.dokuwiki div.img_big { + float:left; + margin-right:2em; +} + +#media__manager #media__opts label { + padding-left:2px; + padding-top:2px; +} + +#media__manager h2 { + padding:0.5em; + margin:0; +} + +#media__manager #media__content div.upload { + font-size:inherit; + padding:0; + margin-bottom:0.5em; +} + +/* Link */ + +.h6e-main-content #link__wiz { + border-color:#4E5368; +} + +.h6e-main-content #link__wiz_header { + background:none; +} + +.h6e-main-content #link__wiz_result { + border-color:#BBBBBB; +} + +/* Admin */ + +.dokuwiki .h6e-main-content ul.admin_tasks li div.li { + font-weight:normal; +} + +.dokuwiki .h6e-main-content ul.admin_tasks { + margin-left:0; +} diff --git a/images/minetest-icon-60.png b/images/minetest-icon-60.png new file mode 100644 index 0000000..6f9378f Binary files /dev/null and b/images/minetest-icon-60.png differ diff --git a/images/minetest-icon-90.png b/images/minetest-icon-90.png new file mode 100644 index 0000000..cd2aa8e Binary files /dev/null and b/images/minetest-icon-90.png differ diff --git a/main.php b/main.php new file mode 100755 index 0000000..90fc8aa --- /dev/null +++ b/main.php @@ -0,0 +1,152 @@ + + + + + + <?php echo $htmltitle; ?> + + + + + + + + + + + +
+ + + +
+ + +

+ + +

+ +

+ + +

+ + + +

+ +

+ + + + + + + + + + +
+ +
+ + +
+ +
+ +
+ + + + +
+ + + + +
+ +
+ +
+ + + diff --git a/media.css b/media.css new file mode 100644 index 0000000..2831c98 --- /dev/null +++ b/media.css @@ -0,0 +1,205 @@ +/** + * The CSS in here cotrols the appearance of the media manager + */ + +#media__manager { + height: 100%; + overflow: hidden; +} + +#media__left { + width: 30%; + border-right: solid 1px __border__; + + height: 100%; + overflow: auto; + position: absolute; + left: 0; +} + +#media__right { + width: 69.7%; + + height: 100%; + overflow: auto; + position: absolute; + right: 0; +} + +#media__manager h1 { + margin: 0; + padding: 0; + margin-bottom: 0.5em; +} + +/* --- Tree formatting --- */ + +#media__tree img { + float: left; + padding: 0.5em 0.3em 0 0; +} + +#media__tree ul { + list-style-type: none; + list-style-image: none; + margin-left: 1.5em; +} + +#media__tree li { + clear: left; + list-style-type: none; + list-style-image: none; +} +*+html #media__tree li, +* html #media__tree li { + border: 1px solid __background__; +}/* I don't understand this, but this fixes a style bug in IE; +it's dirty, so any "real" fixes are welcome */ + +/* --- options --- */ + +#media__opts { + padding-left: 1em; + margin-bottom: 0.5em; +} + +#media__opts input { + float: left; + display: block; + margin-top: 4px; + position: absolute; +} +*+html #media__opts input, +* html #media__opts input { + position: static; +} + +#media__opts label { + display: block; + float: left; + margin-left: 20px; + margin-bottom: 4px; +} +*+html #media__opts label, +* html #media__opts label { + margin-left: 10px; +} + +#media__opts br { + clear: left; +} + +/* --- file list --- */ + +#media__content img.load { + margin: 1em auto; +} + +#media__content #scroll__here { + border: 1px dashed __border__; +} + +#media__content .odd { + background-color: __background_other__; + padding: 0.4em; +} + +#media__content .even { + padding: 0.4em; +} + +#media__content a.mediafile { + margin-right: 1.5em; + font-weight: bold; +} + +#media__content div.detail { + padding: 0.3em 0 0.3em 2em; +} + +#media__content div.detail div.thumb { + float: left; + width: 130px; + text-align: center; + margin-right: 0.4em; +} + + +#media__content img.btn { + vertical-align: text-bottom; +} + +#media__content div.example { + color: __text_neu__; + margin-left: 1em; +} + +/* --- upload form --- */ + +#media__content div.upload { + font-size: 90%; + padding: 0 0.5em 0.5em 0.5em; +} + +#media__content form#dw__upload, +#media__content div#dw__flashupload { + display: block; + border-bottom: solid 1px __border__; + padding: 0 0.5em 1em 0.5em; +} +#media__content form#dw__upload fieldset { + padding: 0; + margin: 0; + border: none; + width: auto; +} +#media__content form#dw__upload p { + text-align: left; + padding: 0.25em 0; + margin: 0; + line-height: 1.0em; +} +#media__content form#dw__upload label.check { + float: none; + width: auto; + margin-left: 11.5em; +} + +/* --- meta edit form --- */ + +#media__content form.meta { + display: block; + padding: 0 0 1em 0; +} + +#media__content form.meta label { + display: block; + width: 25%; + float: left; + font-weight: bold; + margin-left: 1em; + clear: left; +} + +#media__content form.meta .edit { + font: 100% "Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif; + float: left; + width: 70%; + padding-right: 0; + padding-left: 0.2em; + margin: 2px; +} + +#media__content form.meta textarea.edit { + height: 8em; +} + +#media__content form.meta div.metafield { + clear: left; +} + +#media__content form.meta div.buttons { + clear: left; + margin-left: 20%; + padding-left: 1em; +} diff --git a/mediamanager.php b/mediamanager.php new file mode 100755 index 0000000..183805b --- /dev/null +++ b/mediamanager.php @@ -0,0 +1,59 @@ + + + + + <?php echo hsc($lang['mediaselect']) ?> - <?php echo strip_tags($conf['title']) ?> + + + + + + + + + +
+ +
+ + + +

+ + +
+ + + +
+ +
+ +
+ +
+ + diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..35dc65d Binary files /dev/null and b/screenshot.png differ diff --git a/style.ini b/style.ini new file mode 100755 index 0000000..66fc7dd --- /dev/null +++ b/style.ini @@ -0,0 +1,49 @@ +; Please see http://www.php.net/manual/en/function.parse-ini-file.php +; for limitations of the ini format used here + +; Define the stylesheets your template uses here. The second value +; defines for which output media the style should be loaded. Currently +; print, screen and rtl are supported. rtl styles are loaded additionally +; to screen styles if a right-to-left language is selected (eg. hebrew) +[stylesheets] +h6e.css = screen + +media.css = screen + +_admin.css = screen +_linkwiz.css = screen + +;rtl.css = rtl +;print.css = print + +; This section is used to configure some placeholder values used in +; the stylesheets. Changing this file is the simplest method to +; give your wiki a new look. +[replacements] + +;-------------------------------------------------------------------------- +;------ guaranteed dokuwiki color placeholders that every plugin can use +; main text and background colors +__text__ = "#000" +__background__ = "#fff" +; alternative text and background colors +__text_alt__ = "#638c9c" +__background_alt__ = "#dee7ec" +; neutral text and background colors +__text_neu__ = "#666" +__background_neu__ = "#f5f5f5" +; border color +__border__ = "#8cacbb" +;-------------------------------------------------------------------------- + +; other text and background colors +__text_other__ = "#ccc" +__background_other__ = "#f7f9fa" + +; these are used for links +__extern__ = "#436976" +__existing__ = "#090" +__missing__ = "#f30" + +; highlighting search snippets +__highlight__ = "#ff9" diff --git a/top.php b/top.php new file mode 100644 index 0000000..a0aec87 --- /dev/null +++ b/top.php @@ -0,0 +1,35 @@ + + + + + + 'default', 'controller' => 'auth', 'action' => 'login', + )); + if (empty($loginUrl)) { + $loginUrl = wl($ID,'do=login&sectok='.getSecurityToken()); + } + if (empty($logoutUrl)) { + $logoutUrl = wl($ID,'do=logout&sectok='.getSecurityToken()); + } + ?> + $loginUrl, 'logoutUrl' => $logoutUrl)); ?> + + +