Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Oct 30, 2021. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmobile.php
More file actions
Latest commit
120 lines (106 loc) · 4.6 KB
/
Copy pathmobile.php
File metadata and controls
120 lines (106 loc) · 4.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?phpdefined('_JEXEC') or die;
/**
* @package Template Framework for Joomla!+
* @author Cristina Solana http://nightshiftcreative.com
* @author Matt Thomas http://construct-framework.com | http://betweenbrain.com
* @copyright Copyright (C) 2009 - 2013 Matt Thomas. All rights reserved.
* @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
*/
// To get an application object
$app = JFactory::getApplication();
// Check for Mobile Extended Template Layout Override and load it if it exists
$mobileResults = $mobileLayoutOverride->getIncludeFile();
if ($mobileResults) {
$alternateIndexFile = $mobileResults;
include_once$alternateIndexFile;
} else {
?>
<!DOCTYPE html>
<html class="no-js">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?phpecho$this->baseurl . '/templates/' . $this->template?>/css/mobile.css" type="text/css" media="screen" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<?php//Load Mobile Extended Template Style Overrides
$mobileCssFile = $mobileStyleOverride->getIncludeFile();
if ($mobileCssFile) : ?>
<link rel="stylesheet" href="<?phpecho$this->baseurl . $mobileCssFile?>" type="text/css" media="screen" />
<?phpendif?>
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script>(function ($) {
$(document).bind("mobileinit", function () {
$.mobile.ajaxEnabled = false;
});
})(jQuery);</script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<script>(function ($) {
$(document).ready(function () {
$('html').removeClass("no-js");
});
})(jQuery);</script>
</head>
<body>
<div data-role="page" data-theme="<?phpecho$mPageDataTheme?>">
<header id="header" data-role="header" data-theme="<?phpecho$mHeaderDataTheme?>">
<h1>
<a href="<?phpecho$baseUrl?>/" title="<?phpechohtmlspecialchars($app->getCfg('sitename')) ?>"><?phpechohtmlspecialchars($app->getCfg('sitename')) ?></a>
</h1>
<?phpif ($showDiagnostics) : ?>
<ul id="diagnostics">
<li>column layout <?phpecho$columnLayout?></li>
<li>component <?phpecho$currentComponent?></li>
<?phpif ($view) echo'<li>' . $view . ' view</li>'?>
<?phpif ($articleId) echo'<li>article ' . $articleId . '</li>'?>
<?phpif ($itemId) echo'<li>menu item ' . $itemId . '</li>'?>
<?phpif ($catId) echo'<li>category ' . $catId . '</li>'?>
<?phpif ($catId && ($inheritStyle || $inheritLayout)) {
if ($parentCategory) {
echo'<li>parent category ' . $parentCategory . '</li>';
}
$results = getAncestorCategories($catId);
if ($results) {
echo'<li>ancestor categories';
if (count($results) > 0) {
foreach ($resultsas$item) {
echo'' . $item->id . '';
}
}
echo'</li>';
}
} ?>
</ul>
<?phpendif?>
<?phpif (!$mNavPosition && ($this->countModules('nav'))) : ?>
<a href="<?phpechoJURI::current() ?>#nav" data-ajax="false">Menu</a>
<?phpendif?>
</header>
<?phpif ($mNavPosition && ($this->countModules('nav'))) : ?>
<nav id="nav">
<jdoc:include type="modules" name="nav" style="raw" />
</nav>
<?phpendif?>
<section id="content-container" data-role="content" data-theme="<?phpecho$mContentDataTheme?>">
<?phpif (!empty($messageQueue)) : ?>
<jdoc:include type="message" />
<?phpendif?>
<jdoc:include type="component" />
</section>
<?phpif (!$mNavPosition && ($this->countModules('nav'))) : ?>
<nav id="nav">
<jdoc:include type="modules" name="nav" style="raw" />
</nav>
<?phpendif?>
<footer id="footer" data-role="footer" data-theme="<?phpecho$mFooterDataTheme?>">
<a class="view-desktop" href="<?phpechoJURI::current() ?>?desktop=true">View Desktop Version</a>
<?phpif ($this->countModules('footer')) : ?>
<jdoc:include type="modules" name="footer" style="xhtml" />
<?phpendif?>
</footer>
</div>
<?phpif ($this->countModules('analytics')) : ?>
<jdoc:include type="modules" name="analytics" />
<?phpendif?>
</body>
</html>
<?php }