Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PlanetRed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jeff Sturek
PlanetRed
Commits
871eb78d
Commit
871eb78d
authored
16 years ago
by
Brett Bieber
Browse files
Options
Downloads
Patches
Plain Diff
Add header file, improvements to page shell.
parent
7ce8cab0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
unl_theme/views/default/page_elements/header.php
+48
-0
48 additions, 0 deletions
unl_theme/views/default/page_elements/header.php
unl_theme/views/default/pageshells/pageshell.php
+8
-1
8 additions, 1 deletion
unl_theme/views/default/pageshells/pageshell.php
with
56 additions
and
1 deletion
unl_theme/views/default/page_elements/header.php
0 → 100644
+
48
−
0
View file @
871eb78d
<?php
global
$autofeed
;
if
(
isset
(
$autofeed
)
&&
$autofeed
==
true
)
{
$url
=
$url2
=
full_url
();
if
(
substr_count
(
$url
,
'?'
))
{
$url
.
=
"&view=rss"
;
}
else
{
$url
.
=
"?view=rss"
;
}
if
(
substr_count
(
$url2
,
'?'
))
{
$url2
.
=
"&view=odd"
;
}
else
{
$url2
.
=
"?view=opendd"
;
}
$feedref
=
<<<END
<link rel="alternate" type="application/rss+xml" title="RSS" href="{$url}" />
<link rel="alternate" type="application/odd+xml" title="OpenDD" href="{$url2}" />
END;
}
else
{
$feedref
=
""
;
}
$version
=
get_version
();
$release
=
get_version
(
true
);
?>
<meta
name=
"ElggRelease"
content=
"
<?php
echo
$release
;
?>
"
/>
<meta
name=
"ElggVersion"
content=
"
<?php
echo
$version
;
?>
"
/>
<script
type=
"text/javascript"
src=
"
<?php
echo
$vars
[
'url'
];
?>
vendors/jquery/jquery-1.2.6.pack.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
$vars
[
'url'
];
?>
vendors/jquery/jquery-ui-personalized-1.5.3.packed.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
$vars
[
'url'
];
?>
_css/js.php?lastcache=
<?php
echo
$vars
[
'config'
]
->
lastcache
;
?>
&js=initialise_elgg&viewtype=
<?php
echo
$vars
[
'view'
];
?>
"
></script>
<?php
global
$pickerinuse
;
if
(
isset
(
$pickerinuse
)
&&
$pickerinuse
==
true
)
{
?>
<!-- only needed on pages where we have friends collections and/or the friends picker -->
<script
type=
"text/javascript"
src=
"
<?php
echo
$vars
[
'url'
];
?>
vendors/jquery/jquery.easing.1.3.packed.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
$vars
[
'url'
];
?>
_css/js.php?lastcache=
<?php
echo
$vars
[
'config'
]
->
lastcache
;
?>
&js=friendsPickerv1&viewtype=
<?php
echo
$vars
[
'view'
];
?>
"
></script>
<?php
}
?>
<!-- include the default css file -->
<!-- <link rel="stylesheet" href="
<?php
echo
$vars
[
'url'
];
?>
_css/css.css?lastcache=
<?php
echo
$vars
[
'config'
]
->
lastcache
;
?>
&viewtype=
<?php
echo
$vars
[
'view'
];
?>
" type="text/css" /> -->
<?php
echo
$feedref
;
echo
elgg_view
(
'metatags'
,
$vars
);
?>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
unl_theme/views/default/pageshells/pageshell.php
+
8
−
1
View file @
871eb78d
...
...
@@ -16,8 +16,15 @@ if (empty($vars['title'])) {
$title
=
$vars
[
'config'
]
->
sitename
.
": "
.
$vars
[
'title'
];
}
$page
->
maincontentarea
.
=
elgg_view
(
'messages/list'
,
array
(
'object'
=>
$vars
[
'sysmessages'
]));
$page
->
doctitle
=
'<title>'
.
$title
.
'</title>'
;
$page
->
head
.
=
elgg_view
(
'page_elements/header'
,
$vars
);
$page
->
maincontentarea
.
=
elgg_view
(
'page_elements/elgg_topbar'
,
$vars
);
// Commented out for now because this has unclosed divs.
//$page->maincontentarea .= elgg_view('page_elements/header_contents', $vars);
$page
->
maincontentarea
.
=
elgg_view
(
'messages/list'
,
array
(
'object'
=>
$vars
[
'sysmessages'
]));
$page
->
maincontentarea
.
=
$vars
[
'body'
];
...
...
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