optionally set article title
This commit is contained in:
parent
8f547283c0
commit
066bdca30d
6 changed files with 51 additions and 24 deletions
|
@ -70,7 +70,8 @@ function network_content(&$a, $update = 0) {
|
||||||
'$utubeurl' => t('Please enter a YouTube link:'),
|
'$utubeurl' => t('Please enter a YouTube link:'),
|
||||||
'$vidurl' => t("Please enter a video\x28.ogg\x29 link/URL:"),
|
'$vidurl' => t("Please enter a video\x28.ogg\x29 link/URL:"),
|
||||||
'$audurl' => t("Please enter an audio\x28.ogg\x29 link/URL:"),
|
'$audurl' => t("Please enter an audio\x28.ogg\x29 link/URL:"),
|
||||||
'$whereareu' => t('Where are you right now?')
|
'$whereareu' => t('Where are you right now?'),
|
||||||
|
'$title' => t('Enter a title for this item')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
|
@ -101,6 +102,7 @@ function network_content(&$a, $update = 0) {
|
||||||
'$audio' => t('Insert Vorbis [.ogg] audio'),
|
'$audio' => t('Insert Vorbis [.ogg] audio'),
|
||||||
'$setloc' => t('Set your location'),
|
'$setloc' => t('Set your location'),
|
||||||
'$noloc' => t('Clear browser location'),
|
'$noloc' => t('Clear browser location'),
|
||||||
|
'$title' => t('Set title'),
|
||||||
'$wait' => t('Please wait'),
|
'$wait' => t('Please wait'),
|
||||||
'$permset' => t('Permission settings'),
|
'$permset' => t('Permission settings'),
|
||||||
'$content' => '',
|
'$content' => '',
|
||||||
|
|
|
@ -138,7 +138,8 @@ function profile_content(&$a, $update = 0) {
|
||||||
'$utubeurl' => t('Please enter a YouTube link:'),
|
'$utubeurl' => t('Please enter a YouTube link:'),
|
||||||
'$vidurl' => t("Please enter a video\x28.ogg\x29 link/URL:"),
|
'$vidurl' => t("Please enter a video\x28.ogg\x29 link/URL:"),
|
||||||
'$audurl' => t("Please enter an audio\x28.ogg\x29 link/URL:"),
|
'$audurl' => t("Please enter an audio\x28.ogg\x29 link/URL:"),
|
||||||
'$whereareu' => t('Where are you right now?')
|
'$whereareu' => t('Where are you right now?'),
|
||||||
|
'$title' => t('Enter a title for this item')
|
||||||
));
|
));
|
||||||
|
|
||||||
require_once('include/acl_selectors.php');
|
require_once('include/acl_selectors.php');
|
||||||
|
@ -169,6 +170,7 @@ function profile_content(&$a, $update = 0) {
|
||||||
'$audio' => t('Insert Vorbis [.ogg] audio'),
|
'$audio' => t('Insert Vorbis [.ogg] audio'),
|
||||||
'$setloc' => t('Set your location'),
|
'$setloc' => t('Set your location'),
|
||||||
'$noloc' => t('Clear browser location'),
|
'$noloc' => t('Clear browser location'),
|
||||||
|
'$title' => t('Set title'),
|
||||||
'$wait' => t('Please wait'),
|
'$wait' => t('Please wait'),
|
||||||
'$permset' => t('Permission settings'),
|
'$permset' => t('Permission settings'),
|
||||||
'$content' => '',
|
'$content' => '',
|
||||||
|
|
|
@ -126,6 +126,13 @@ tinyMCE.init({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function jotTitle() {
|
||||||
|
reply = prompt("$title", $('#jot-title').val());
|
||||||
|
if(reply && reply.length) {
|
||||||
|
$('#jot-title').val(reply);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function jotShare(id) {
|
function jotShare(id) {
|
||||||
$('#like-rotator-' + id).show();
|
$('#like-rotator-' + id).show();
|
||||||
$.get('share/' + id, function(data) {
|
$.get('share/' + id, function(data) {
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
<input type="hidden" name="return" value="$return_path" />
|
<input type="hidden" name="return" value="$return_path" />
|
||||||
<input type="hidden" name="location" id="jot-location" value="$defloc" />
|
<input type="hidden" name="location" id="jot-location" value="$defloc" />
|
||||||
<input type="hidden" name="coord" id="jot-coord" value="" />
|
<input type="hidden" name="coord" id="jot-coord" value="" />
|
||||||
|
<input type="hidden" name="title" id="jot-title" value="" />
|
||||||
<input type="hidden" name="post_id" value="$post_id" />
|
<input type="hidden" name="post_id" value="$post_id" />
|
||||||
|
|
||||||
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >$content</textarea>
|
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >$content</textarea>
|
||||||
|
@ -40,6 +41,10 @@
|
||||||
<div id="profile-nolocation-wrapper" style="display: none;" >
|
<div id="profile-nolocation-wrapper" style="display: none;" >
|
||||||
<img id="profile-nolocation" src="images/noglobe.gif" alt="$noloc" title="$noloc" onclick="jotClearLocation();" />
|
<img id="profile-nolocation" src="images/noglobe.gif" alt="$noloc" title="$noloc" onclick="jotClearLocation();" />
|
||||||
</div>
|
</div>
|
||||||
|
<div id="profile-title-wrapper" style="display: $visitor;" >
|
||||||
|
<img id="profile-title" src="images/article.gif" alt="$title" title="$title" onclick="jotTitle();" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="profile-jot-plugin-wrapper">
|
<div id="profile-jot-plugin-wrapper">
|
||||||
$jotplugins
|
$jotplugins
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -216,6 +216,7 @@ div.wall-item-content-wrapper.shiny {
|
||||||
#profile-video,
|
#profile-video,
|
||||||
#profile-audio,
|
#profile-audio,
|
||||||
#profile-link,
|
#profile-link,
|
||||||
|
#profile-title,
|
||||||
#wall-image-upload,
|
#wall-image-upload,
|
||||||
#profile-upload-wrapper,
|
#profile-upload-wrapper,
|
||||||
#wall-image-upload-div,
|
#wall-image-upload-div,
|
||||||
|
@ -1056,41 +1057,45 @@ input#dfrn-url {
|
||||||
}
|
}
|
||||||
#profile-upload-wrapper {
|
#profile-upload-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 50px;
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile-rotator {
|
#profile-rotator {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 50px;
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
#profile-link-wrapper {
|
#profile-link-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-youtube-wrapper {
|
#profile-youtube-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-video-wrapper {
|
#profile-video-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-audio-wrapper {
|
#profile-audio-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-location-wrapper {
|
#profile-location-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-nolocation-wrapper {
|
#profile-nolocation-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
#profile-title-wrapper {
|
||||||
|
float: left;
|
||||||
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile-jot-perms {
|
#profile-jot-perms {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 150px;
|
margin-left: 100px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
@ -2099,7 +2104,7 @@ a.mail-list-link {
|
||||||
|
|
||||||
.tool-wrapper {
|
.tool-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tool-link {
|
.tool-link {
|
||||||
|
|
|
@ -112,6 +112,7 @@ blockquote:before {
|
||||||
#profile-video,
|
#profile-video,
|
||||||
#profile-audio,
|
#profile-audio,
|
||||||
#profile-link,
|
#profile-link,
|
||||||
|
#profile-title,
|
||||||
#wall-image-upload,
|
#wall-image-upload,
|
||||||
#profile-upload-wrapper,
|
#profile-upload-wrapper,
|
||||||
#wall-image-upload-div,
|
#wall-image-upload-div,
|
||||||
|
@ -1119,41 +1120,46 @@ padding: 5px 10px 0px;
|
||||||
}
|
}
|
||||||
#profile-upload-wrapper {
|
#profile-upload-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 50px;
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile-rotator {
|
#profile-rotator {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 50px;
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
#profile-link-wrapper {
|
#profile-link-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-youtube-wrapper {
|
#profile-youtube-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-video-wrapper {
|
#profile-video-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-audio-wrapper {
|
#profile-audio-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-location-wrapper {
|
#profile-location-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-nolocation-wrapper {
|
#profile-nolocation-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#profile-title-wrapper {
|
||||||
|
float: left;
|
||||||
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile-jot-perms {
|
#profile-jot-perms {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 150px;
|
margin-left: 100px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
@ -2115,7 +2121,7 @@ a.mail-list-link {
|
||||||
|
|
||||||
.tool-wrapper {
|
.tool-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
.tool-link {
|
.tool-link {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
Loading…
Reference in a new issue