'page_end' - called after HTML content functions have completed
$b is (string) HTML of content div
-
+'jot_plugin' - add tools to jot toolbar
+ $b is (string) HTML for tool icon
*** = subject to change
$celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false);
+ $jotplugins = "";
+ call_hooks('jot_tool', $jotplugins);
+
$o .= replace_macros($tpl,array(
'$return_path' => $a->cmd,
'$baseurl' => $a->get_baseurl(),
'$lockstate' => $lockstate,
'$acl' => populate_acl((($group) ? $group_acl : $a->user), $celeb),
'$bang' => (($group) ? '!' : ''),
- '$profile_uid' => $_SESSION['uid']
+ '$profile_uid' => $_SESSION['uid'],
+ '$jotplugins' => $jotplugins
));
$lockstate = 'lock';
else
$lockstate = 'unlock';
+
+ $jotplugins = "";
+ call_hooks('jot_tool', $jotplugins);
+
$o .= replace_macros($tpl,array(
'$baseurl' => $a->get_baseurl(),
'$defloc' => (($is_owner) ? $a->user['default-location'] : ''),
'$lockstate' => $lockstate,
'$bang' => '',
'$acl' => (($is_owner) ? populate_acl($a->user, $celeb) : ''),
- '$profile_uid' => $a->profile['profile_uid']
+ '$profile_uid' => $a->profile['profile_uid'],
+ '$jotplugins' => $jotplugins
));
}
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" ></textarea>
+<div id="profile-jot-plugin-wrapper" >
+ $jotplugins
+</div>
+<div id="profile-jot-plugin-end"></div>
+
<div id="profile-jot-submit-wrapper" >
<input type="submit" id="profile-jot-submit" name="submit" value="Share" />
<div id="profile-upload-wrapper" style="display: $visitor;" >
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" ></textarea>
+<div id="profile-jot-plugin-wrapper" >
+ $jotplugins
+</div>
+<div id="profile-jot-plugin-end"></div>
+
+
<div id="profile-jot-submit-wrapper" >
<input type="submit" id="profile-jot-submit" name="submit" value="Share" />
<div id="profile-upload-wrapper" style="display: $visitor;" >
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" ></textarea>
+<div id="profile-jot-plugin-wrapper" >
+ $jotplugins
+</div>
+<div id="profile-jot-plugin-end"></div>
+
<div id="profile-jot-submit-wrapper" >
<input type="submit" id="profile-jot-submit" name="submit" value="Condividi" />
<div id="profile-upload-wrapper" style="display: $visitor;" >
<div id="profile-jot-acl-wrapper" style="display: none;" >$acl</div>
</div>
+
+
<div id="profile-jot-end"></div>
</form>
</div>
margin-left: 110px;
margin-top: 10px;
}
-
+#profile-jot-plugin-wrapper,
#profile-jot-submit-wrapper {
margin-top: 15px;
}
#profile-jot-perms-end {
clear: both;
}
-
+#profile-jot-plugin-end {
+ clear:both;
+}
#profile-jot-end {
clear: both;
margin-bottom: 30px;
margin-bottom: 15px;
}
+.tool-wrapper {
+ float: left;
+ margin-left: 5px;
+}
+.tool-link {
+ cursor: pointer;
+}
margin: 10px 0px 10px 110px;
}
+#profile-jot-plugin-wrapper,
#profile-jot-submit-wrapper {
margin-top: 15px;
}
height: 30px;
}
+#profile-jot-plugin-end{
+ clear: both;
+}
#profile-jot-end {
/*clear: both;*/
margin-bottom: 30px;
margin-bottom: 15px;
}
+
+.tool-wrapper {
+ float: left;
+ margin-left: 5px;
+}
+.tool-link {
+ cursor: pointer;
+}