22 changed files with 208 additions and 120 deletions
-
14.htaccess
-
18app/models/postn/Postn.php
-
27app/models/postn/PostnDAO.php
-
2app/views/page.tpl
-
8app/widgets/AdminDB/admindb.tpl
-
10app/widgets/AdminTest/admintest.css
-
44app/widgets/AdminTest/admintest.tpl
-
2app/widgets/AdminTest/locales.ini
-
5app/widgets/Contact/Contact.php
-
19app/widgets/Contact/_contact.tpl
-
4app/widgets/Notifs/_notifs_confirm.tpl
-
26app/widgets/Post/Post.php
-
4app/widgets/Post/_post.tpl
-
66app/widgets/Post/_post_create.tpl
-
6app/widgets/Post/_post_embed.tpl
-
8app/widgets/Post/_post_gallery.tpl
-
6app/widgets/Post/_post_header.tpl
-
1app/widgets/Post/locales.ini
-
36app/widgets/Post/post.css
-
9themes/material/css/form.css
-
6themes/material/css/grid.css
-
7themes/material/css/style.css
@ -1,34 +1,34 @@ |
|||
<ul class="simple"> |
|||
<li> |
|||
<form name="post"> |
|||
<input type="hidden" name="to" value="{$to}"> |
|||
<input type="hidden" name="node" value="urn:xmpp:microblog:0"> |
|||
<div> |
|||
<input type="text" name="title" placeholder="{$c->__('post.title')}"> |
|||
<label for="title">{$c->__('post.title')}</label> |
|||
</div> |
|||
<div> |
|||
<textarea name="content" placeholder="{$c->__('post.content')}" onkeyup="movim_textarea_autoheight(this);"></textarea> |
|||
<label for="content">{$c->__('post.content')}</label> |
|||
</div> |
|||
<div> |
|||
<input type="url" name="embed" placeholder="http://myawesomewebsite.com/" onblur="Post_ajaxEmbedTest(this.value)"> |
|||
<label for="embed">{$c->__('post.link')}</label> |
|||
</div> |
|||
<!-- |
|||
<div> |
|||
<input type="text" name="tags" placeholder="food, blog, news"> |
|||
<label for="tags">{$c->__('post.tags')}</label> |
|||
</div> |
|||
--> |
|||
</form> |
|||
</li> |
|||
<article> |
|||
<section> |
|||
<content id="preview"> |
|||
<form name="post" class="padded_right"> |
|||
<input type="hidden" name="to" value="{$to}"> |
|||
<input type="hidden" name="node" value="urn:xmpp:microblog:0"> |
|||
<div class="icon"> |
|||
<input type="text" name="title" placeholder="{$c->__('post.title')}"> |
|||
<label for="title">{$c->__('post.title')}</label> |
|||
<span class="icon gray"> |
|||
<i class="md md-subject"></i> |
|||
</span> |
|||
</div> |
|||
<div class="icon"> |
|||
<textarea name="content" placeholder="{$c->__('post.content')}" onkeyup="movim_textarea_autoheight(this);"></textarea> |
|||
<label for="content">{$c->__('post.content')}</label> |
|||
</div> |
|||
<div class="icon"> |
|||
<input |
|||
type="url" |
|||
name="embed" |
|||
placeholder="http://myawesomewebsite.com/" |
|||
onblur="Post_ajaxEmbedTest(this.value)"> |
|||
<label for="embed">{$c->__('post.link')}</label> |
|||
<span class="icon gray"> |
|||
<i class="md md-link"></i> |
|||
</span> |
|||
|
|||
|
|||
</content> |
|||
</section> |
|||
</article> |
|||
</ul> |
|||
<br /> |
|||
<article> |
|||
<section> |
|||
<content id="preview"></content> |
|||
</section> |
|||
</article> |
|||
<div id="gallery"></div> |
|||
</div> |
|||
</form> |
@ -0,0 +1,8 @@ |
|||
<ul class="thin"> |
|||
<li> |
|||
<span class="icon bubble" style="background-image: url({$embed->images|key|htmlspecialchars});"> |
|||
<i class="md md-image"></i> |
|||
</span> |
|||
<span>{$c->__('post.gallery')}</span> |
|||
</li> |
|||
</ul> |
@ -1,35 +1,3 @@ |
|||
/* |
|||
#post_widget { |
|||
width: calc(75% - 15rem); |
|||
form[name=post] article section { |
|||
padding: 0; |
|||
} |
|||
|
|||
#post_widget article { |
|||
padding-bottom: 1em; |
|||
} |
|||
|
|||
#post_widget div.picture { |
|||
padding-bottom: 25%; |
|||
background-repeat: no-repeat; |
|||
background-position: center; |
|||
background-size: cover; |
|||
} |
|||
|
|||
#post_widget article header, |
|||
#post_widget article section.content, |
|||
#post_widget article footer { |
|||
max-width: 600px; |
|||
margin: 0 auto; |
|||
background-color: white; |
|||
} |
|||
|
|||
#post_widget div.picture ~ header { |
|||
margin-top: -3em; |
|||
box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.3); |
|||
} |
|||
*/ |
|||
/* |
|||
#post_widget #preview img { |
|||
max-height: 40rem; |
|||
max-width: 100%; |
|||
} |
|||
*/ |
Write
Preview
Loading…
Cancel
Save
Reference in new issue