Merge pull request #5128 from tobiasd/20180525-5067
[friendica.git/.git] / view / theme / frost-mobile / php / default.php
1 <!DOCTYPE html >
2 <html lang="<?php echo $lang; ?>">
3 <head>
4   <title><?php if(x($page,'title')) echo $page['title'] ?></title>
5   <script>var baseurl="<?php echo Friendica\Core\System::baseUrl() ?>";</script>
6   <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
7 </head>
8 <body <?php if($a->module === 'home') echo 'onLoad="setTimeout(\'homeRedirect()\', 1500)"'?>>
9         <?php if(x($page,'nav')) echo $page['nav']; ?>
10
11         <?php if( $a->module === 'home' ) { ?>
12         <center>
13         <div class="login-button">
14         <a href="login" class="login-button-link"><img class="login-button-image" src="images/friendica-1600.png" title="Click to log in"></a>
15         </div>
16         </center>
17
18         <?php } elseif ( $a->module === 'login' || $a->module === 'register' || $a->module === 'lostpass' ) {
19         ?>
20         <div class='section-wrapper'>
21         <section><?php if(x($page,'content')) echo $page['content']; ?>
22         </section>
23         </div>
24         <footer><?php if(x($page,'footer')) echo $page['footer']; ?></footer>
25
26         <?php } else { ?>
27         <div class='main-container'>
28 <!--            <div class='main-content-container'>-->
29                 <div class='section-wrapper'>
30                 <?php if( ($a->module === 'settings' || $a->module === 'message' || $a->module === 'profile') && x($page,'aside')) echo $page['aside']; ?>
31                 <section>
32                         <?php if(x($page,'content')) echo $page['content']; ?>
33                         <div id="pause"></div> <!-- The pause/resume Ajax indicator -->
34                         <div id="page-footer"></div>
35                 </section>
36                 </div>
37                 <right_aside><?php if(x($page,'right_aside')) echo $page['right_aside']; ?></right_aside>
38                 <?php if( ($a->module === 'contacts') && x($page,'aside')) echo $page['aside']; ?>
39                 <footer><?php if(x($page,'footer')) echo $page['footer']; ?></footer>
40 <!--            </div>-->
41         </div>
42         <?php } ?>
43         <?php if(x($page,'end')) echo $page['end']; ?>
44 </body>
45 </html>