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
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
Digital Experience Group
PlanetRed
Commits
faf2840c
Commit
faf2840c
authored
14 years ago
by
Matthew Juhl
Browse files
Options
Downloads
Patches
Plain Diff
Put Planet Red Mobile in the popup template. Needs a lot of CSS fixing.
parent
b88a5527
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/mobile_unl/views/mobile/pageshells/pageshell.php
+33
-36
33 additions, 36 deletions
plugins/mobile_unl/views/mobile/pageshells/pageshell.php
with
33 additions
and
36 deletions
plugins/mobile_unl/views/mobile/pageshells/pageshell.php
+
33
−
36
View file @
faf2840c
<?php
/**
* Elgg Mobile
* A Mobile Client For Elgg
*
* @package Elgg
* @subpackage Core
* @author Mark Harding
* @link http://maestrozone.com
*
*/
header
(
'Content-type: text/html; charset=UTF-8'
);
require_once
'UNL/Templates.php'
;
// Set the content type
header
(
"Content-type: text/html; charset=UTF-8"
);
UNL_Templates
::
$options
[
'version'
]
=
3
;
$page
=
UNL_Templates
::
factory
(
'Popup'
);
// Set title
if
(
empty
(
$vars
[
'title'
]))
{
$title
=
$vars
[
'config'
]
->
sitename
;
}
else
if
(
empty
(
$vars
[
'config'
]
->
sitename
))
{
$title
=
$vars
[
'title'
];
}
else
{
$title
=
$vars
[
'config'
]
->
sitename
.
": "
.
$vars
[
'title'
];
}
?>
$page
->
maincontentarea
=
''
;
<?php
echo
elgg_view
(
'page_elements/header'
,
$vars
);
?>
$page
->
navlinks
=
'<ul><li><a href="http://planetred.unl.edu/">Home</a></li><li><a href="http://planetred.unl.edu/account/register.php">Register</a></li></ul>'
;
$page
->
breadcrumbs
=
"<!-- WDN: see glossary item \'breadcrumbs\' --> <ul> <li class=
\"
first
\"
><a href=
\"
http://www.unl.edu/
\"
>UNL</a></li> <li>Planet Red</li> </ul>"
;
$page
->
doctitle
=
'<title>UNL | Planet Red | '
.
$vars
[
'title'
]
.
'</title>'
;
//$page->head .= "<!--begin-->".elgg_view('page_elements/header', $vars)."<!--END-->";
<?php
echo
elgg_view
(
'page_elements/header_contents'
,
$vars
);
?>
$page
->
head
.
=
'<link rel="stylesheet" href="'
.
$vars
[
'url'
]
.
'_css/css.css?lastcache='
.
$vars
[
'config'
]
->
lastcache
.
'>&viewtype=mobile&view=mobile" type="text/css" />'
;
<!-- main contents -->
<!-- display any system messages -->
$headerstuff
=
<<<END
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width = 320" />
<link rel="apple-touch-icon" href="http://www.unl.edu/ucomm/templatedependents/templatecss/images/apple-touch-icon.png" />
<link media="only screen and (max-device-width: 480px)" href="mobile.css" type="text/css" rel="stylesheet" />
<link media="screen" href="http://m.unl.edu/mobile.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://m.unl.edu/mobile.js"></script>
<style type="text/css">#footer { display: block; }</style>
END;
$page
->
head
.
=
$headerstuff
;
<!-- canvas -->
<div
id=
"layout_canvas"
>
<?php
echo
elgg_view
(
'messages/list'
,
array
(
'object'
=>
$vars
[
'sysmessages'
]));
?>
<?php
echo
$vars
[
'body'
];
?>
<div
class=
"clearfloat"
></div>
</div>
<!-- /#layout_canvas -->
<div
class=
"mobilecopy"
>
Planet Red Mobile
©
2010 University of Nebraska
–
Lincoln
</div>
<!-- /.mobile_copy -->
<!-- footer -->
<?php
echo
elgg_view
(
'page_elements/footer'
,
$vars
);
?>
\ No newline at end of file
$page
->
maincontentarea
.
=
elgg_view
(
'page_elements/unl_nav'
,
$vars
);
$page
->
titlegraphic
=
'<h1><a href="'
.
$vars
[
'config'
]
->
url
.
'" title="Planet Red Home">'
.
$vars
[
'config'
]
->
sitename
.
'</a></h1>'
;
$page
->
maincontentarea
.
=
elgg_view
(
'messages/list'
,
array
(
'object'
=>
$vars
[
'sysmessages'
]));
$page
->
maincontentarea
.
=
$vars
[
'body'
];
$page
->
contactinfo
=
'<h3>Contacting Us</h3><p><strong>University of Nebraska-Lincoln</strong><br/>1400 R Street<br/>Lincoln, NE 68588<br/>402-472-7211</p>'
;
$page
->
footercontent
=
elgg_view
(
'page_elements/footer'
,
$vars
);
echo
$page
;
?>
\ No newline at end of file
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