Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
die_coolen_jungs
our_own_cloud_project
Commits
05f39107
Commit
05f39107
authored
13 years ago
by
Jan-Christoph Borchardt
Browse files
Options
Downloads
Patches
Plain Diff
moved search box directly to template
parent
fa102cd2
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
core/templates/layout.user.php
+3
-1
3 additions, 1 deletion
core/templates/layout.user.php
core/templates/part.searchbox.php
+0
-3
0 additions, 3 deletions
core/templates/part.searchbox.php
lib/template.php
+1
-3
1 addition, 3 deletions
lib/template.php
with
4 additions
and
7 deletions
core/templates/layout.user.php
+
3
−
1
View file @
05f39107
...
...
@@ -30,7 +30,9 @@
<body
id=
"
<?php
echo
$_
[
'bodyid'
];
?>
"
>
<header><div
id=
"header"
>
<a
href=
"
<?php
echo
link_to
(
''
,
'index.php'
);
?>
"
title=
""
id=
"owncloud"
><img
src=
"
<?php
echo
image_path
(
''
,
'owncloud-logo-small-white.png'
);
?>
"
alt=
"ownCloud"
/></a>
<?php
echo
$_
[
'searchbox'
]
?>
<form
class=
"searchbox"
action=
"#"
method=
"post"
>
<input
id=
'searchbox'
type=
"search"
name=
"query"
value=
"
<?php
if
(
isset
(
$_POST
[
'query'
])){
echo
$_POST
[
'query'
];};
?>
"
class=
"prettybutton"
autocomplete=
"off"
/>
</form>
<ul
id=
"metanav"
>
<li><a
href=
"
<?php
echo
link_to
(
''
,
'index.php'
);
?>
?logout=true"
title=
"
<?php
echo
$l
->
t
(
'Log out'
);
?>
"
><img
class=
'svg'
src=
"
<?php
echo
image_path
(
''
,
'actions/logout.svg'
);
?>
"
/></a></li>
</ul>
...
...
This diff is collapsed.
Click to expand it.
core/templates/part.searchbox.php
deleted
100644 → 0
+
0
−
3
View file @
fa102cd2
<form
class=
"searchbox"
action=
"#"
method=
"post"
>
<input
id=
'searchbox'
type=
"search"
name=
"query"
value=
"
<?php
if
(
isset
(
$_POST
[
'query'
])){
echo
$_POST
[
'query'
];};
?>
"
class=
"prettybutton"
autocomplete=
"off"
/>
</form>
This diff is collapsed.
Click to expand it.
lib/template.php
+
1
−
3
View file @
05f39107
...
...
@@ -230,9 +230,7 @@ class OC_Template{
// Decide which page we show
if
(
$this
->
renderas
==
"user"
){
$page
=
new
OC_Template
(
"core"
,
"layout.user"
);
$search
=
new
OC_Template
(
'core'
,
'part.searchbox'
);
$search
->
assign
(
'searchurl'
,
OC_Helper
::
linkTo
(
'search'
,
'index.php'
));
$page
->
assign
(
'searchbox'
,
$search
->
fetchPage
());
$page
->
assign
(
'searchurl'
,
OC_Helper
::
linkTo
(
'search'
,
'index.php'
));
if
(
array_search
(
OC_APP
::
getCurrentApp
(),
array
(
'settings'
,
'admin'
,
'help'
))
!==
false
){
$page
->
assign
(
'bodyid'
,
'body-settings'
);
}
else
{
...
...
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