* Added mobile device detection PHP library * Call PHP library to decide which theme to use * Added theme as a configuration option into global config * Selectable Desktop theme (default: mmcFE) * Selectable Mobile theme (default: mobile) * Disable mobile theme support entirely **NOTE**: This requires updates to the `global.inc.php` so please check the dist file and update your config before filing a new issue! Addresses #25
32 lines
1.1 KiB
Smarty
32 lines
1.1 KiB
Smarty
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Page Title</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" />
|
|
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
|
|
<script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
|
|
{if is_array($smarty.session.POPUP|default)}<script>{literal}$('#status').popup();{/literal}</script>{/if}
|
|
</head>
|
|
<body>
|
|
<div data-role="page">
|
|
<div data-role="header">
|
|
{include file="global/header.tpl"}
|
|
{include file="global/navigation.tpl"}
|
|
</div><!-- /header -->
|
|
{if is_array($smarty.session.POPUP|default)}
|
|
<a href="#status" data-rel="popup"></a>
|
|
<div data-role="popup" id="status" data-transition="pop">
|
|
<p>Test</p>
|
|
</div>
|
|
{/if}
|
|
<div data-role="content">
|
|
{include file="$PAGE/$ACTION/$CONTENT"}
|
|
</div><!-- /content -->
|
|
<div data-role="footer" data-position="fixed">
|
|
{include file="global/footer.tpl"}
|
|
</div><!-- /footer -->
|
|
</div><!-- /page -->
|
|
</body>
|
|
</html>
|