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
806bda37
Commit
806bda37
authored
11 years ago
by
Christopher Smith
Browse files
Options
Downloads
Plain Diff
Merge pull request #194 from splitbrain/loggedin-class
added loggedIn class to main tpl container
parents
5dba76ff
39f00629
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
inc/template.php
+18
-0
18 additions, 0 deletions
inc/template.php
lib/tpl/dokuwiki/detail.php
+2
-2
2 additions, 2 deletions
lib/tpl/dokuwiki/detail.php
lib/tpl/dokuwiki/main.php
+2
-3
2 additions, 3 deletions
lib/tpl/dokuwiki/main.php
with
22 additions
and
5 deletions
inc/template.php
+
18
−
0
View file @
806bda37
...
...
@@ -1746,5 +1746,23 @@ function tpl_media() {
echo
'</div>'
.
NL
;
}
/**
* Return useful layout classes
*
* @author Anika Henke <anika@selfthinker.org>
*/
function
tpl_classes
()
{
global
$ACT
,
$conf
,
$ID
,
$INFO
;
$classes
=
array
(
'dokuwiki'
,
'mode_'
.
$ACT
,
'tpl_'
.
$conf
[
'template'
],
$_SERVER
[
'REMOTE_USER'
]
?
'loggedIn'
:
''
,
$INFO
[
'exists'
]
?
''
:
'notFound'
,
(
$ID
==
$conf
[
'start'
])
?
'home'
:
''
,
);
return
join
(
' '
,
$classes
);
}
//Setup VIM: ex: et ts=4 :
This diff is collapsed.
Click to expand it.
lib/tpl/dokuwiki/detail.php
+
2
−
2
View file @
806bda37
...
...
@@ -28,8 +28,8 @@ header('X-UA-Compatible: IE=edge,chrome=1');
<body>
<!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
<div
id=
"dokuwiki__site"
><div
id=
"dokuwiki__top"
class=
"dokuwiki site mode_
<?php
echo
$ACT
?>
"
>
<div
id=
"dokuwiki__site"
><div
id=
"dokuwiki__top"
class=
"site
<?php
echo
tpl_classes
();
?>
<?php
echo
(
$showSidebar
)
?
'showSidebar'
:
''
;
?>
<?php
echo
(
$hasSidebar
)
?
'hasSidebar'
:
''
;
?>
"
>
<?php
include
(
'tpl_header.php'
)
?>
...
...
This diff is collapsed.
Click to expand it.
lib/tpl/dokuwiki/main.php
+
2
−
3
View file @
806bda37
...
...
@@ -27,9 +27,8 @@ $showSidebar = $hasSidebar && ($ACT=='show');
<body>
<!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
<div
id=
"dokuwiki__site"
><div
id=
"dokuwiki__top"
class=
"dokuwiki site mode_
<?php
echo
$ACT
?>
<?php
echo
(
$showSidebar
)
?
'showSidebar'
:
''
;
?>
<?php
echo
(
$hasSidebar
)
?
'hasSidebar'
:
''
;
?>
"
>
<div
id=
"dokuwiki__site"
><div
id=
"dokuwiki__top"
class=
"site
<?php
echo
tpl_classes
();
?>
<?php
echo
(
$showSidebar
)
?
'showSidebar'
:
''
;
?>
<?php
echo
(
$hasSidebar
)
?
'hasSidebar'
:
''
;
?>
"
>
<?php
include
(
'tpl_header.php'
)
?>
...
...
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