Skip to content

Commit

Permalink
Move non-output short-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewiscowles1986 committed Sep 13, 2019
1 parent c58f897 commit 7bf4e70
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions views/auth/email-enter-code.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<div class="container container-narrow">

<? if($error ?? false): ?>
<?php if($error ?? false): ?>
<div class="alert alert-danger"><?= $error ?></div>
<? endif ?>
<?php endif ?>

<div id="usercode-prompt">

Expand Down
10 changes: 5 additions & 5 deletions views/auth/email-error.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<? $this->layout('layout', ['title' => $title]) ?>
<?php $this->layout('layout', ['title' => $title]) ?>

<div class="container container-narrow">

<? if($error): ?>
<?php if($error): ?>
<div class="alert alert-warning"><?= $error ?></div>
<? endif ?>
<?php endif ?>

<p>Please go back to the application and try again.</p>

<? if(isset($client_id) && \p3k\url\is_url($client_id)): ?>
<?php if(isset($client_id) && \p3k\url\is_url($client_id)): ?>
<p><a href="<?= e($client_id) ?>"><?= e(\p3k\url\display_url($client_id)) ?></a></p>
<? endif ?>
<?php endif ?>

</div>
10 changes: 5 additions & 5 deletions views/auth/pgp-error.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<? $this->layout('layout', ['title' => $title]) ?>
<?php $this->layout('layout', ['title' => $title]) ?>

<div class="container container-narrow">

<? if($error): ?>
<?php if($error): ?>
<div class="alert alert-warning"><?= $error ?></div>
<? endif ?>
<?php endif ?>

<p>Please go back to the application and try again.</p>

<? if(isset($client_id) && \p3k\url\is_url($client_id)): ?>
<?php if(isset($client_id) && \p3k\url\is_url($client_id)): ?>
<p><a href="<?= e($client_id) ?>"><?= e(\p3k\url\display_url($client_id)) ?></a></p>
<? endif ?>
<?php endif ?>

</div>
22 changes: 11 additions & 11 deletions views/auth/user-error.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<? $this->layout('layout', ['title' => $title]) ?>
<?php $this->layout('layout', ['title' => $title]) ?>

<div class="container container-narrow">

<? if($error): ?>
<?php if($error): ?>
<div class="alert alert-warning"><?= $error ?></div>
<? endif ?>
<?php endif ?>

<? if(isset($opts['found'])): ?>
<?php if(isset($opts['found'])): ?>
<p>The following links were found on your website, but are not supported authentication options.</p>
<ul>
<? foreach($opts['found'] as $f): ?>
<?php foreach($opts['found'] as $f): ?>
<li><a href="<?= e($f) ?>"><?= e($f) ?></a></li>
<? endforeach ?>
<?php endforeach ?>
</ul>
<? endif ?>
<?php endif ?>

<? if(isset($opts['me'])): ?>
<?php if(isset($opts['me'])): ?>
<p>We got an error trying to connect to <code><?= e($opts['me']) ?></code></p>
<? endif ?>
<?php endif ?>

<? if(isset($opts['response'])): ?>
<?php if(isset($opts['response'])): ?>
<pre><?= e($opts['response']) ?></pre>
<? endif ?>
<?php endif ?>

<p>View the <a href="/setup">setup instructions</a> for more information.</p>

Expand Down
2 changes: 1 addition & 1 deletion views/docs/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<h2>1. Create a Web Sign-In form</h2>

<? $base = Config::$base; ?>
<?php $base = Config::$base; ?>
<pre><code><?= e(<<<EOT
<form action="${base}auth" method="get">
<label for="url">Web Address:</label>
Expand Down
4 changes: 2 additions & 2 deletions views/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<?= $this->section('content')?>

<? if(!isset($nofooter)): ?>
<?php if(!isset($nofooter)): ?>
<footer class="footer">
<div class="row">
<div class="col-md-3">
Expand All @@ -71,7 +71,7 @@
</div>
</div>
</footer>
<? endif ?>
<?php endif ?>

</body>
</html>

0 comments on commit 7bf4e70

Please sign in to comment.