Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
b9577664
Commit
b9577664
authored
13 years ago
by
Anika Henke
Browse files
Options
Downloads
Patches
Plain Diff
changed tpl conf options (for sidebar and tagline) to new core conf and removed hideTools option
parent
f97b05c8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
detail.php
+2
-3
2 additions, 3 deletions
detail.php
main.php
+16
-19
16 additions, 19 deletions
main.php
tpl_header.php
+3
-3
3 additions, 3 deletions
tpl_header.php
with
21 additions
and
25 deletions
detail.php
+
2
−
3
View file @
b9577664
...
...
@@ -11,8 +11,7 @@
if
(
!
defined
(
'DOKU_INC'
))
die
();
@
require_once
(
dirname
(
__FILE__
)
.
'/tpl_functions.php'
);
/* include hook for template functions */
$showTools
=
!
tpl_getConf
(
'hideTools'
)
||
(
tpl_getConf
(
'hideTools'
)
&&
$_SERVER
[
'REMOTE_USER'
]
);
$showSidebar
=
tpl_getConf
(
'sidebarID'
)
&&
page_exists
(
tpl_getConf
(
'sidebarID'
))
&&
(
$ACT
==
'show'
);
$showSidebar
=
$conf
[
'sidebar'
]
&&
page_exists
(
$conf
[
'sidebar'
])
&&
(
$ACT
==
'show'
);
?><!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=
"
<?php
echo
$conf
[
'lang'
]
?>
"
...
...
@@ -115,7 +114,7 @@ $showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID'))
<hr
class=
"a11y"
/>
<!-- PAGE ACTIONS -->
<?php
if
(
$showTools
&&
!
$ERROR
)
:
?>
<?php
if
(
!
$ERROR
)
:
?>
<div
id=
"dokuwiki__pagetools"
>
<h3
class=
"a11y"
>
<?php
echo
$lang
[
'page_tools'
];
?>
</h3>
<div
class=
"tools"
>
...
...
This diff is collapsed.
Click to expand it.
main.php
+
16
−
19
View file @
b9577664
...
...
@@ -11,8 +11,7 @@
if
(
!
defined
(
'DOKU_INC'
))
die
();
/* must be run from within DokuWiki */
@
require_once
(
dirname
(
__FILE__
)
.
'/tpl_functions.php'
);
/* include hook for template functions */
$showTools
=
!
tpl_getConf
(
'hideTools'
)
||
(
tpl_getConf
(
'hideTools'
)
&&
$_SERVER
[
'REMOTE_USER'
]
);
$showSidebar
=
tpl_getConf
(
'sidebarID'
)
&&
page_exists
(
tpl_getConf
(
'sidebarID'
))
&&
(
$ACT
==
'show'
);
$showSidebar
=
$conf
[
'sidebar'
]
&&
page_exists
(
$conf
[
'sidebar'
])
&&
(
$ACT
==
'show'
);
?><!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=
"
<?php
echo
$conf
[
'lang'
]
?>
"
...
...
@@ -46,7 +45,7 @@ $showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID'))
<?php
if
(
$showSidebar
)
:
?>
<!-- ********** ASIDE ********** -->
<div
id=
"dokuwiki__aside"
><div
class=
"pad include group"
>
<?php
tpl_include_page
(
tpl_getC
onf
(
'sidebar
ID'
)
)
/* includes the given wiki page */
?>
<?php
tpl_include_page
(
$c
onf
[
'sidebar
'
]
)
/* includes the given wiki page */
?>
</div></div>
<!-- /aside -->
<?php
endif
;
?>
...
...
@@ -72,23 +71,21 @@ $showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID'))
<hr
class=
"a11y"
/>
<!-- PAGE ACTIONS -->
<?php
if
(
$showTools
)
:
?>
<div
id=
"dokuwiki__pagetools"
>
<h3
class=
"a11y"
>
<?php
echo
$lang
[
'page_tools'
];
?>
</h3>
<div
class=
"tools"
>
<ul>
<?php
tpl_action
(
'edit'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
tpl_action
(
'revert'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
tpl_action
(
'revisions'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
tpl_action
(
'backlink'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
tpl_action
(
'subscribe'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
tpl_action
(
'top'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
?>
</ul>
</div>
<div
id=
"dokuwiki__pagetools"
>
<h3
class=
"a11y"
>
<?php
echo
$lang
[
'page_tools'
];
?>
</h3>
<div
class=
"tools"
>
<ul>
<?php
tpl_action
(
'edit'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
tpl_action
(
'revert'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
tpl_action
(
'revisions'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
tpl_action
(
'backlink'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
tpl_action
(
'subscribe'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
tpl_action
(
'top'
,
1
,
'li'
,
0
,
'<span>'
,
'</span>'
);
?>
</ul>
</div>
<
?php
endif
;
?
>
<
/div
>
</div>
<!-- /wrapper -->
<?php
include
(
'tpl_footer.php'
)
?>
...
...
This diff is collapsed.
Click to expand it.
tpl_header.php
+
3
−
3
View file @
b9577664
...
...
@@ -14,14 +14,14 @@
'<img src="'
.
tpl_getFavicon
(
false
,
'logo.png'
)
.
'" width="64" height="64" alt="" /> <span>'
.
$conf
[
'title'
]
.
'</span>'
,
'accesskey="h" title="[H]"'
)
/* @todo: obviously don't use tpl_getFavicon, but make a new function (or use a config option?) */
?>
</h1>
<?php
if
(
tpl_getC
onf
(
'tagline'
)
)
:
?>
<p
class=
"claim"
>
<?php
echo
tpl_getC
onf
(
'tagline'
)
?>
</p>
<?php
if
(
$c
onf
[
'tagline'
]
)
:
?>
<p
class=
"claim"
>
<?php
echo
$c
onf
[
'tagline'
];
?>
</p>
<?php
endif
?>
</div>
<div
class=
"tools group"
>
<!-- USER TOOLS -->
<?php
if
(
$conf
[
'useacl'
]
&&
$showTools
)
:
?>
<?php
if
(
$conf
[
'useacl'
])
:
?>
<div
id=
"dokuwiki__usertools"
>
<h3
class=
"a11y"
>
<?php
echo
$lang
[
'user_tools'
];
?>
</h3>
<ul>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment