58 lines
2.3 KiB
Smarty
58 lines
2.3 KiB
Smarty
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{$GLOBAL.config.website.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 $smarty.session.AUTHENTICATED|default:"0" == 1}
|
|
<script>
|
|
{literal}
|
|
$( document ).on( "pageinit", "#mmcfe-ng-page", function() {
|
|
$( document ).on( "swipeleft swiperight", "#mmcfe-ng-page", function( e ) {
|
|
// We check if there is no open panel on the page because otherwise
|
|
// a swipe to close the left panel would also open the right panel (and v.v.).
|
|
// We do this by checking the data that the framework stores on the page element (panel: open).
|
|
if ( $.mobile.activePage.jqmData( "panel" ) !== "open" ) {
|
|
if ( e.type === "swipeleft" ) {
|
|
$( "#right-sidebar" ).panel( "open" );
|
|
} else if ( e.type === "swiperight" ) {
|
|
$( "#left-sidebar" ).panel( "open" );
|
|
}
|
|
}
|
|
});
|
|
});
|
|
{/literal}
|
|
</script>
|
|
{/if}
|
|
</head>
|
|
<body>
|
|
<div data-role="page" id="mmcfe-ng-page" data-url="mmcfe-ng-page">
|
|
{if $smarty.session.AUTHENTICATED|default:"0" == 1}
|
|
{assign var=payout_system value=$GLOBAL.config.payout_system}
|
|
<div data-role="panel" id="left-sidebar" data-theme="a">
|
|
{include file="global/sidebar_$payout_system.tpl"}
|
|
<a href="#" data-rel="close" data-role="button" data-mini="true" data-inline="true" data-icon="delete" data-iconpos="right">Close</a>
|
|
</div><!-- /panel -->
|
|
{/if}
|
|
<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>
|