summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2019-10-19 21:31:55 +0100
committerAaron Parecki <aaron@parecki.com>2019-10-19 21:31:55 +0100
commit873cc81ee7325752c43dd007f723b225758cf9ac (patch)
tree6dad56e3fc011452f6064d47655cf4d35dc50fac /views
parentecb47c9c2f6396a7627d92b8e2023f478be05a36 (diff)
drop php shorttags
Diffstat (limited to 'views')
-rw-r--r--views/editor.php6
-rw-r--r--views/index.php20
-rw-r--r--views/new-code.php4
-rw-r--r--views/new-favorite.php4
4 files changed, 17 insertions, 17 deletions
diff --git a/views/editor.php b/views/editor.php
index 5247bda..b80375f 100644
--- a/views/editor.php
+++ b/views/editor.php
@@ -49,9 +49,9 @@
<div class="toolbar">
<div class="toolbar-left">
<span class="item"><a href="/"><img src="/editor-files/quill-logo-36.png" width="36" height="31" class="logo"></a></span>
- <? if($this->user): ?>
+ <?php if($this->user): ?>
<span class="item text"><b><?= display_url($this->user->url) ?></b></span>
- <? endif; ?>
+ <?php endif; ?>
<span class="item text"><span id="draft-status">Draft</span></span>
</div>
<div class="toolbar-right">
@@ -132,4 +132,4 @@
<script src="/editor-files/editor.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/views/index.php b/views/index.php
index 4542422..b06f20d 100644
--- a/views/index.php
+++ b/views/index.php
@@ -5,20 +5,20 @@
<p class="tagline">Quill is a simple app for posting text notes to your website.</p>
- <? if(session('me')): ?>
+ <?php if(session('me')): ?>
- <? if(profile('photo')): ?>
- <img src="<?php echo profile('photo'); ?>" height="125" alt="Profile Image" style="border: 1px #bbb solid; border-radius: 12px;" />
- <? endif ?>
- <? if(profile('name')): ?>
+ <?php if(profile('photo')): ?>
+ <img src="<?= profile('photo'); ?>" height="125" alt="Profile Image" style="border: 1px #bbb solid; border-radius: 12px;" />
+ <?php endif ?>
+ <?php if(profile('name')): ?>
<p>Signed in as: <?= htmlspecialchars(profile('name')); ?></p>
- <? endif ?>
- <? if(!profile('name') && !profile('photo')): ?>
+ <?php endif ?>
+ <?php if(!profile('name') && !profile('photo')): ?>
<p>You're already signed in!</p>
- <? endif ?>
+ <?php endif ?>
<p><a href="/dashboard" class="btn btn-primary">Continue</a></p>
- <? else: ?>
+ <?php else: ?>
<p>To use Quill, sign in with your domain. Your website will need to support <a href="https://indieweb.org/micropub">Micropub</a> for creating new posts.</p>
<form action="/auth/start" method="get" class="form-inline">
@@ -27,7 +27,7 @@
<input type="hidden" name="client_id" value="<?= Config::$base_url ?>">
<input type="hidden" name="redirect_uri" value="<?= Config::$base_url ?>auth/callback">
</form>
- <? endif; ?>
+ <?php endif; ?>
<a href="" class="u-url"></a>
</div>
diff --git a/views/new-code.php b/views/new-code.php
index 4201816..0266b76 100644
--- a/views/new-code.php
+++ b/views/new-code.php
@@ -19,7 +19,7 @@
<textarea id="note_content" value="" class="form-control code-snippet" style="height: 12em;"><?= htmlspecialchars($this->edit_data['content']) ?></textarea>
</div>
- <? if(!$this->url): ?>
+ <?php if(!$this->url): ?>
<label for="note_language">Language</label>
<select class="form-control" id="note_language">
<?php
@@ -30,7 +30,7 @@
endforeach;
?>
</select>
- <? endif; ?>
+ <?php endif; ?>
<div style="float: right; margin-top: 6px;">
<button class="btn btn-success" id="btn_post"><?= $this->url ? 'Save' : 'Post' ?></button>
diff --git a/views/new-favorite.php b/views/new-favorite.php
index f457e3b..653ed58 100644
--- a/views/new-favorite.php
+++ b/views/new-favorite.php
@@ -63,10 +63,10 @@ $(function(){
return false;
});
- <? if($this->autosubmit): ?>
+ <?php if($this->autosubmit): ?>
$(".footer, #bookmarklet").hide();
$("#btn_post").click();
- <? endif ?>
+ <?php endif ?>
bind_syndication_buttons();
});