]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/diabook/jot.tpl
template engine rework
[friendica.git] / view / theme / diabook / jot.tpl
index a9c0a3740be797faae5ddb2f67ce7b1fed4e8c5d..2c7e5211036de3a3011470641664c0c346e4d0bd 100644 (file)
                <input type="hidden" name="coord" id="jot-coord" value="" />
                <input type="hidden" name="post_id" value="$post_id" />
                <input type="hidden" name="preview" id="jot-preview" value="0" />
-               <input type="hidden" name="post_id_random" value="$rand_num" />
                <input name="title" id="jot-title" type="text" placeholder="$placeholdertitle" value="$title" class="jothidden" style="display:none">
-               <div id="jot-category-wrap"><input name="category" id="jot-category" type="text" placeholder="$placeholdercategory" value="$category" class="jothidden" style="display:none" /></div>           
+               {{ if $placeholdercategory }}
+               <div id="jot-category-wrap"><input name="category" id="jot-category" type="text" placeholder="$placeholdercategory" value="$category" class="jothidden" style="display:none" /></div>
+               {{ endif }}
                <div id="character-counter" class="grey"></div>         
                <img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
                <textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea>