Browse Source

drop php shorttags

pull/111/head
Aaron Parecki 5 years ago
parent
commit
873cc81ee7
No known key found for this signature in database GPG Key ID: 276C2817346D6056
  1. 4
      views/editor.php
  2. 20
      views/index.php
  3. 4
      views/new-code.php
  4. 4
      views/new-favorite.php

4
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">

20
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>

4
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>

4
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();
});

Loading…
Cancel
Save