added location tagging
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
<feed xmlns="http://www.w3.org/2005/Atom"
|
||||
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
||||
xmlns:at="http://purl.org/atompub/tombstones/1.0"
|
||||
xmlns:dfrn="http://purl.org/macgirvin/dfrn/1.0" >
|
||||
xmlns:dfrn="http://purl.org/macgirvin/dfrn/1.0"
|
||||
xmlns:as="http://activitystrea.ms/spec/1.0/" >
|
||||
|
||||
<id>$feed_id</id>
|
||||
<title>$feed_title</title>
|
||||
|
@@ -15,5 +15,6 @@
|
||||
<published>$published</published>
|
||||
<updated>$updated</updated>
|
||||
<content>$content</content>
|
||||
<as:place>$location</as:place>
|
||||
<dfrn:comment-allow>$comment_allow</dfrn:comment-allow>
|
||||
</entry>
|
||||
|
@@ -80,6 +80,14 @@ tinyMCE.init({
|
||||
}
|
||||
}
|
||||
|
||||
function jotGetLocation() {
|
||||
reply = prompt("Where are you right now?");
|
||||
if(reply && reply.length) {
|
||||
$('#jot-location').val(reply);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function linkdropper(event) {
|
||||
var linkFound = event.dataTransfer.types.contains("text/uri-list");
|
||||
if(linkFound)
|
||||
|
@@ -9,6 +9,7 @@
|
||||
<input type="hidden" name="type" value="wall" />
|
||||
<input type="hidden" name="profile_uid" value="$profile_uid" />
|
||||
<input type="hidden" name="return" value="$return_path" />
|
||||
<input type="hidden" name="location" id="jot-location" value="" />
|
||||
|
||||
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" ></textarea>
|
||||
|
||||
@@ -24,6 +25,9 @@
|
||||
<div id="profile-youtube-wrapper" style="display: $visitor;" >
|
||||
<img id="profile-video" src="images/youtube_icon.gif" alt="Insert YouTube video" title="Insert YouTube video" onclick="jotGetVideo();" />
|
||||
</div>
|
||||
<div id="profile-location-wrapper" style="display: $visitor;" >
|
||||
<img id="profile-location" src="images/globe.gif" alt="Set your location" title="Set your lcoation" onclick="jotGetLocation();" />
|
||||
</div>
|
||||
<div id="profile-rotator-wrapper" style="display: $visitor;" >
|
||||
<img id="profile-rotator" src="images/rotator.gif" alt="Please wait" title="Please wait" style="display: none;" />
|
||||
</div>
|
||||
|
@@ -720,10 +720,14 @@ input#dfrn-url {
|
||||
float: left;
|
||||
margin-left: 20px;
|
||||
}
|
||||
#profile-location-wrapper {
|
||||
float: left;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
#profile-jot-perms {
|
||||
float: left;
|
||||
margin-left: 250px;
|
||||
margin-left: 200px;
|
||||
}
|
||||
|
||||
#profile-jot-perms-end {
|
||||
|
Reference in New Issue
Block a user