Browse Source

don't show footer on pebble settings page

pull/10/head
Aaron Parecki 6 years ago
parent
commit
c7c7ad44fa
6 changed files with 36 additions and 31 deletions
  1. +2
    -1
      controllers/pebble.php
  2. BIN
      public/images/banner.jpg
  3. BIN
      public/images/pebble-app-screenshot.png
  4. BIN
      public/images/pebble-screenshots.jpg
  5. +3
    -30
      views/layout.php
  6. +31
    -0
      views/partials/footer.php

+ 2
- 1
controllers/pebble.php View File

@ -2,7 +2,8 @@
$app->get('/pebble/settings', function() use($app) {
$html = render('pebble-settings-login', array(
'title' => 'Log In'
'title' => 'Log In',
'footer' => false
));
$app->response()->body($html);
});

BIN
public/images/banner.jpg View File

Before After
Width: 720  |  Height: 320  |  Size: 127 KiB

BIN
public/images/pebble-app-screenshot.png View File

Before After
Width: 144  |  Height: 168  |  Size: 2.0 KiB

BIN
public/images/pebble-screenshots.jpg View File

Before After
Width: 1896  |  Height: 600  |  Size: 480 KiB

+ 3
- 30
views/layout.php View File

@ -58,37 +58,10 @@
</div>
<?php endif; ?>
<div class="footer">
<div class="nav">
<ul class="nav navbar-nav">
<? if(session('me')) { ?>
<li><a href="/new">New Post</a></li>
<? } ?>
<li><a href="/docs">Docs</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<? if(session('me')) { ?>
<li><a href="/add-to-home?start">Add to Home Screen</a></li>
<li><span class="navbar-text"><?= preg_replace('/https?:\/\//','',session('me')) ?></span></li>
<li><a href="/signout">Sign Out</a></li>
<? } else if(property_exists($this, 'authorizing')) { ?>
<li class="navbar-text"><?= $this->authorizing ?></li>
<? } else { ?>
<form action="/auth/start" method="get" class="navbar-form">
<input type="text" name="me" placeholder="yourdomain.com" class="form-control" />
<button type="submit" class="btn">Sign In</button>
</form>
<? } ?>
</ul>
</div>
<?php if(!property_exists($this, 'footer') || $this->footer !== false): ?>
<?= partial('partials/footer') ?>
<?php endif; ?>
<p class="credits">&copy; <?=date('Y')?> by <a href="http://aaronparecki.com">Aaron Parecki</a>.
This code is <a href="https://github.com/aaronpk/Teacup">open source</a>.
Feel free to send a pull request, or <a href="https://github.com/aaronpk/Teacup/issues">file an issue</a>.</p>
</div>
</div>
</body>

+ 31
- 0
views/partials/footer.php View File

@ -0,0 +1,31 @@
<div class="footer">
<div class="nav">
<ul class="nav navbar-nav">
<? if(session('me')) { ?>
<li><a href="/new">New Post</a></li>
<? } ?>
<li><a href="/docs">Docs</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<? if(session('me')) { ?>
<li><a href="/add-to-home?start">Add to Home Screen</a></li>
<li><span class="navbar-text"><?= preg_replace('/https?:\/\//','',session('me')) ?></span></li>
<li><a href="/signout">Sign Out</a></li>
<? } else if(property_exists($this, 'authorizing')) { ?>
<li class="navbar-text"><?= $this->authorizing ?></li>
<? } else { ?>
<form action="/auth/start" method="get" class="navbar-form">
<input type="text" name="me" placeholder="yourdomain.com" class="form-control" />
<button type="submit" class="btn">Sign In</button>
</form>
<? } ?>
</ul>
</div>
<p class="credits">&copy; <?=date('Y')?> by <a href="http://aaronparecki.com">Aaron Parecki</a>.
This code is <a href="https://github.com/aaronpk/Teacup">open source</a>.
Feel free to send a pull request, or <a href="https://github.com/aaronpk/Teacup/issues">file an issue</a>.</p>
</div>

Loading…
Cancel
Save