summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2015-07-25 05:44:10 -0700
committerAaron Parecki <aaron@parecki.com>2015-07-25 05:44:10 -0700
commitc3fb722ad4bade9c4027c04de9b8dee511ab5756 (patch)
treeda4711f4ea9b4d1b79003c1c3d28acadeba9f781 /views
parent92b55f2636a82c5eafc24d1e2adc84b61258161e (diff)
add post-by-email support to quill
Diffstat (limited to 'views')
-rw-r--r--views/email.php29
-rw-r--r--views/layout.php3
2 files changed, 31 insertions, 1 deletions
diff --git a/views/email.php b/views/email.php
new file mode 100644
index 0000000..1f97905
--- /dev/null
+++ b/views/email.php
@@ -0,0 +1,29 @@
+<div class="narrow">
+ <?= partial('partials/header') ?>
+
+ <div class="jumbotron" style="margin-top: 20px;">
+ <p>
+ Send email or MMS to<br>
+ <a href="mailto:<?= $this->user->email_username . '@' . Config::$hostname ?>"><?= $this->user->email_username . '@' . Config::$hostname ?></a>
+ </p>
+ </div>
+
+ <div style="width: 80%; margin: 0 auto;">
+ <h3>Email Subject</h3>
+ <p>If you add a subject line to your email, it will be sent as the "name" property which indicates to your Micropub endpoint that this is a blog post.</p>
+
+ <h3>Email and MMS body</h3>
+ <p>The text of your email or MMS will be send as the "content" property, which is the main contents of your post. Plaintext only for now.</p>
+
+ <h3>Photo</h3>
+ <p>If you attach a photo to your email or MMS, it will be sent to your Micropub endpoint. (Only one photo is currently supported.)</p>
+ </div>
+
+ <div>
+ <?php if($this->test_response): ?>
+ <h4>Last response from your Micropub endpoint</h4>
+ <pre id="test_response" style="width: 100%; min-height: 280px;"><?= htmlspecialchars($this->test_response) ?></pre>
+ <?php endif; ?>
+ </div>
+
+</div> \ No newline at end of file
diff --git a/views/layout.php b/views/layout.php
index 7c2dab9..7bbba4a 100644
--- a/views/layout.php
+++ b/views/layout.php
@@ -63,10 +63,11 @@ if(property_exists($this, 'include_facebook')) {
<? if(session('me')) { ?>
<li><a href="/editor">Editor</a></li>
- <li><a href="/new">New Note</a></li>
+ <li><a href="/new">Note</a></li>
<li><a href="/bookmark">Bookmark</a></li>
<li><a href="/favorite">Favorite</a></li>
<li><a href="/photo">Photo</a></li>
+ <li><a href="/email">Email</a></li>
<? } ?>
<li><a href="/docs">Docs</a></li>