2 {{* The button to open the jot - in This theme we move the button with js to the second nav bar *}}
3 <button class="btn btn-sm btn-main pull-right" id="jotOpen" onclick="jotShow(); return false;"><i class="fa fa-pencil-square-o fa-2x"></i></button>
7 <form id="profile-jot-form" action="{{$action}}" method="post">
8 <div id="profile-jot-wrapper">
10 <div id="character-counter" class="grey jothidden text-info pull-left"></div>
11 <!--<div id="profile-jot-desc" class="jothidden pull-right"> </div>-->
14 <div id="profile-jot-banner-end"></div>
16 {{* The hidden input fields which submit important values with the post *}}
17 <input type="hidden" name="type" value="{{$ptyp}}" />
18 <input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
19 <input type="hidden" name="return" value="{{$return_path}}" />
20 <input type="hidden" name="location" id="jot-location" value="{{$defloc}}" />
21 <input type="hidden" name="coord" id="jot-coord" value="" />
22 <input type="hidden" name="post_id" value="{{$post_id}}" />
23 <input type="hidden" name="preview" id="jot-preview" value="0" />
24 <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
26 <input type="hidden" name="contact_allow[]" value="<{{$notes_cid}}>" />
28 <div id="jot-title-wrap"><input name="title" id="jot-title" class="jothidden jotforms form-control" type="text" placeholder="{{$placeholdertitle}}" title="{{$placeholdertitle}}" value="{{$title}}" style="display:block;" /></div>
29 {{if $placeholdercategory}}
30 <div id="jot-category-wrap"><input name="category" id="jot-category" class="jothidden jotforms form-control" type="text" placeholder="{{$placeholdercategory}}" title="{{$placeholdercategory}}" value="{{$category}}" /></div>
33 {{* The jot text field in which the post text is inserted *}}
34 <div id="jot-text-wrap">
35 <textarea rows="2" cols="64" class="profile-jot-text form-control" id="profile-jot-text" name="body" onFocus="jotTextOpenUI(this);" onBlur="jotTextCloseUI(this);" style="min-width:100%; max-width:100%;">{{if $content}}{{$content}}{{else}}{{$share}}{{/if}}</textarea>
38 <ul id="profile-jot-submit-wrapper" class="jothidden nav nav-pills">
39 {{* uncomment the button for "wall-immage-upload" because we have integrated it directly in the jot modal
40 <li><a href="#" id="wall-image-upload" title="{{$upload}}"><i class="fa fa-picture-o"></i></a></li>
42 <li><a href="#" onclick="return false;" id="wall-file-upload" title="{{$attach}}"><i class="fa fa-paperclip"></i></a></li>
43 <li><a id="profile-link" ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink(); return false;" title="{{$weblink}}"><i class="fa fa-link"></i></a></li>
44 <li><a id="profile-video" onclick="jotVideoURL();return false;" title="{{$video}}"><i class="fa fa-film"></i></a></li>
45 <li><a id="profile-audio" onclick="jotAudioURL();return false;" title="{{$audio}}"><i class="fa fa-music"></i></a></li>
46 <li><a id="profile-location" onclick="jotGetLocation();return false;" title="{{$setloc}}"><i class="fa fa-map-marker"></i></a></li>
47 <!-- TODO: waiting for a better placement
48 <li><a id="profile-nolocation" onclick="jotClearLocation();return false;" title="{{$noloc}}">{{$shortnoloc}}</a></li>
51 <li class="pull-right"><button class="btn btn-primary" id="jot-submit" type="submit" id="profile-jot-submit" name="submit" ><i class="fa fa-slideshare fa-fw"></i> {{$share}}</button></li>
52 <div id="profile-rotator-wrapper" style="display: {{$visitor}};" >
53 <img id="profile-rotator" src="images/rotator.gif" alt="{{$wait}}" title="{{$wait}}" style="display: none;" />
55 <div id="profile-jot-plugin-wrapper">
61 <div id="profile-jot-acl-wrapper" style="display: none;">
65 <div id="jot-preview-content" style="display:none;"></div>
67 <div id="jot-fbrowser-wrapper" style="display: none"></div>
69 {{if $content}}<script>initEditor();</script>{{/if}}
75 <div id="jot-modal" class="modal fade" role="dialog">
76 <div class="modal-dialog">
77 <div class="modal-content">
79 <div class="modal-header">
80 <button type="button" class="close" data-dismiss="modal">×</button>
81 <!--<h4 class="modal-title">Modal Header</h4>-->
82 {{* The Jot navigation menu (text input, permissions, preview, filebrowser) *}}
83 <ul class="nav nav-tabs hidden-xs jot-nav" role="menubar" data-tabs="tabs">
84 {{* Mark the first list entry as active because it is the first which is active after opening
85 the modal. Changing of the activity status is done by js in jot.tpl-header *}}
86 <li class="active" role="menuitem"><a id="jot-text-lnk" onclick="jotActive(); return false;">Text</a></li>
87 {{if $acl}}<li role="menuitem"><a id="jot-perms-lnk" onclick="aclActive();return false;">Permissions</a></li>{{/if}}
88 {{if $preview}}<li role="menuitem"><a id="jot-preview-lnk" onclick="previewActive();return false;">{{$preview}}</a></li>{{/if}}
89 <li role="menuitem"><a id="jot-preview-link" onclick="fbrowserActive(); return false;"> Browser </a></li>
92 <div class="dropdown hidden-lg hidden-md hidden-sm" role="menubar" data-tabs="tabs">
93 <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown"> JOT
94 <span class="caret"></span></button>
95 <ul class="dropdown-menu nav nav-pills">
96 {{* mark the first list entry as active because it is the first which is active after opening
97 the modal. Changing of the activity status is done by js in jot.tpl-header *}}
98 <li class="active" role="menuitem"><a id="jot-text-lnk-mobile" onclick="jotActive(); return false;">Text</a></li>
99 {{if $acl}}<li role="menuitem"><a id="jot-perms-lnk-mobile" onclick="aclActive();return false;">Permissions</a></li>{{/if}}
100 {{if $preview}}<li role="menuitem"><a id="jot-preview-lnk-mobile" onclick="previewActive();return false;">{{$preview}}</a></li>{{/if}}
106 <div id="jot-modal-body" class="modal-body">
117 $('iframe').load(function() {
118 this.style.height = this.contentWindow.document.body.offsetHeight + 'px';
121 // insert new object with value to aStr
122 // function jotTextOpenUI does make use of it
123 aStr.share = "{{$share}}";