Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert non-output short-tags to full tags #49

Merged
merged 1 commit into from
Nov 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>