2015-08-03 11:35:01 +02:00
|
|
|
<form name="post" class="block">
|
|
|
|
<input type="hidden" name="to" value="{$to}">
|
|
|
|
<input type="hidden" name="node" value="{$node}">
|
2015-11-13 13:37:39 +01:00
|
|
|
<input type="hidden" name="id" value="{if="$item != false"}{$item->nodeid}{/if}">
|
|
|
|
|
2015-08-03 11:35:01 +02:00
|
|
|
<div>
|
2015-11-13 13:37:39 +01:00
|
|
|
<input type="text" name="title" placeholder="{$c->__('post.title')}" {if="$item != false"}value="{$item->title}"{/if}>
|
2015-08-03 11:35:01 +02:00
|
|
|
<label for="title">{$c->__('post.title')}</label>
|
|
|
|
</div>
|
2015-09-10 15:41:45 +02:00
|
|
|
|
2015-11-13 13:37:39 +01:00
|
|
|
<div id="content_link">
|
|
|
|
{if="$item != false"}
|
|
|
|
{$attachement = $item->getAttachement()}
|
|
|
|
{/if}
|
2015-08-03 11:35:01 +02:00
|
|
|
<input
|
|
|
|
type="url"
|
|
|
|
name="embed"
|
|
|
|
placeholder="http://myawesomewebsite.com/ or http://mynicepictureurl.com/"
|
2015-11-13 13:37:39 +01:00
|
|
|
onpaste="var e=this; setTimeout(function(){Publish_ajaxEmbedTest(e.value);}, 4);"
|
|
|
|
{if="$attachement != false"}value="{$attachement.href}"{/if}
|
2015-08-03 11:35:01 +02:00
|
|
|
>
|
|
|
|
<label for="embed">{$c->__('post.link')}</label>
|
|
|
|
|
|
|
|
<article>
|
|
|
|
<section>
|
|
|
|
<content id="preview"></content>
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
<div id="gallery"></div>
|
|
|
|
</div>
|
2015-09-10 15:41:45 +02:00
|
|
|
|
|
|
|
<div id="enable_content" onclick="Publish.enableContent();">
|
|
|
|
<input type="text" value="{$c->__('publish.add_text')}"/>
|
|
|
|
<label>{$c->__('publish.add_text_label')}</label>
|
|
|
|
</div>
|
|
|
|
<div id="content_field">
|
2015-11-13 13:37:39 +01:00
|
|
|
<textarea name="content" placeholder="{$c->__('post.content_text')}" oninput="movim_textarea_autoheight(this);">{if="$item != false"}{$item->contentraw}{/if}</textarea>
|
2015-09-10 15:41:45 +02:00
|
|
|
<label for="content">{$c->__('post.content_label')}</label>
|
|
|
|
</div>
|
2015-08-03 11:35:01 +02:00
|
|
|
|
|
|
|
<ul class="middle flex active">
|
2015-08-19 11:28:28 +02:00
|
|
|
{if="$c->supported('upload')"}
|
|
|
|
<li class="block large" onclick="Upload_ajaxRequest()">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="zmdi zmdi-attachment-alt"></i>
|
|
|
|
</span>
|
|
|
|
<span>{$c->__('publish.attach')}</span>
|
|
|
|
</li>
|
|
|
|
{/if}
|
2015-08-03 11:35:01 +02:00
|
|
|
</ul>
|
|
|
|
</form>
|