]> git.mxchange.org Git - friendica.git/blob - view/templates/jot.tpl
add character counter to themes other then frio
[friendica.git] / view / templates / jot.tpl
1 <div id="profile-jot-wrapper">
2         <div id="profile-jot-banner-wrapper">
3                 <div id="profile-jot-desc">&nbsp;</div>
4         </div>
5         <div id="profile-jot-banner-end"></div>
6
7         <form id="profile-jot-form" action="{{$action}}" method="post">
8                 <input type="hidden" name="wall" value="{{$wall}}" />
9                 <input type="hidden" name="post_type" value="{{$posttype}}" />
10                 <input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
11                 <input type="hidden" name="return" value="{{$return_path}}" />
12                 <input type="hidden" name="location" id="jot-location" value="{{$defloc}}" />
13                 <input type="hidden" name="coord" id="jot-coord" value="" />
14                 <input type="hidden" name="post_id" value="{{$post_id}}" />
15                 <input type="hidden" name="preview" id="jot-preview" value="0" />
16                 <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
17                 {{if $notes_cid}}
18                 <input type="hidden" name="contact_allow[]" value="<{{$notes_cid}}>" />
19                 {{/if}}
20                 <div id="jot-title-wrap">
21                         <input name="title" id="jot-title" type="text" placeholder="{{$placeholdertitle}}" value="{{$title}}" class="jothidden" style="display:none" dir="auto">
22                 </div>
23                 {{if $placeholdercategory}}
24                 <div id="jot-category-wrap"><input name="category" id="jot-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" class="jothidden" style="display:none" dir="auto"></div>
25                 {{/if}}
26                 <div id="jot-text-wrap">
27                 <img id="profile-jot-text-loading" src="images/rotator.gif" alt="{{$wait}}" title="{{$wait}}" style="display: none;" />
28                 <textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" placeholder="{{$share}}" dir="auto">{{if $content}}{{$content nofilter}}{{/if}}</textarea>
29                 </div>
30
31 <div id="profile-jot-submit-wrapper" class="jothidden">
32         <input type="submit" id="profile-jot-submit" name="submit" value="{{$share}}" />
33                 
34         <div id="profile-upload-wrapper" style="display: {{$visitor}};">
35                 <div id="wall-image-upload-div"><a href="#" onclick="return false;" id="wall-image-upload" class="icon camera" title="{{$upload}}"></a></div>
36         </div>
37         <div id="profile-attach-wrapper" style="display: {{$visitor}};">
38                 <div id="wall-file-upload-div"><a href="#" onclick="return false;" id="wall-file-upload" class="icon attach" title="{{$attach}}"></a></div>
39         </div>
40
41         <div id="profile-link-wrapper" style="display: {{$visitor}};" ondragenter="linkdropper(event);" ondragover="linkdropper(event);" ondrop="linkdrop(event);">
42                 <a id="profile-link" class="icon link" title="{{$weblink}}" ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink(); return false;"></a>
43         </div>
44         <div id="profile-video-wrapper" style="display: {{$visitor}};">
45                 <a id="profile-video" class="icon video" title="{{$video}}" onclick="jotVideoURL();return false;"></a>
46         </div>
47         <div id="profile-audio-wrapper" style="display: {{$visitor}};">
48                 <a id="profile-audio" class="icon audio" title="{{$audio}}" onclick="jotAudioURL();return false;"></a>
49         </div>
50         <div id="profile-location-wrapper" style="display: {{$visitor}};">
51                 <a id="profile-location" class="icon globe" title="{{$setloc}}" onclick="jotGetLocation();return false;"></a>
52         </div>
53         <div id="profile-nolocation-wrapper" style="display: none;">
54                 <a id="profile-nolocation" class="icon noglobe" title="{{$noloc}}" onclick="jotClearLocation();return false;"></a>
55         </div>
56
57         <div id="post-length">
58                 <span id="character-counter" class="grey"></span>
59         </div>
60
61         <div id="profile-jot-perms" class="profile-jot-perms" style="display: {{$pvisit}};">
62                 <a href="#profile-jot-acl-wrapper" id="jot-perms-icon" class="icon {{$lockstate}}"  title="{{$permset}}"></a>{{$bang}}
63         </div>
64
65         <!-- {{if $preview}}<span onclick="preview_post();" id="jot-preview-link" class="fakelink">{{$preview}}</span>{{/if}} -->
66         {{if $preview}}<input type="submit" onclick="preview_post(); return false;" id="jot-preview-link" value="{{$preview}}" />{{/if}}
67
68         <div id="profile-jot-perms-end"></div>
69
70
71         <div id="profile-jot-plugin-wrapper">
72         {{$jotplugins nofilter}}
73         </div>
74
75         <div id="profile-rotator-wrapper" style="display: {{$visitor}};">
76                 <img id="profile-rotator" src="images/rotator.gif" alt="{{$wait}}" title="{{$wait}}" style="display: none;" />
77         </div>
78
79         <div id="jot-preview-content" style="display:none;"></div>
80
81         <div style="display: none;">
82                 <div id="profile-jot-acl-wrapper" style="width:auto;height:auto;overflow:auto;">
83                         {{$acl nofilter}}
84                         {{if $scheduled_at}}{{$scheduled_at nofilter}}{{/if}}
85                 </div>
86         </div>
87
88
89 </div>
90
91 <div id="profile-jot-end"></div>
92 </form>
93 </div>
94                 {{if $content}}<script>initEditor();</script>{{/if}}