From 066bdca30dde91fd94c58707f638536ec0ba9002 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 29 Mar 2011 18:57:26 -0700 Subject: [PATCH] optionally set article title --- mod/network.php | 4 +++- mod/profile.php | 4 +++- view/jot-header.tpl | 7 +++++++ view/jot.tpl | 5 +++++ view/theme/duepuntozero/style.css | 27 ++++++++++++++++----------- view/theme/loozah/style.css | 28 +++++++++++++++++----------- 6 files changed, 51 insertions(+), 24 deletions(-) diff --git a/mod/network.php b/mod/network.php index 2ff15a29b..39679b48a 100644 --- a/mod/network.php +++ b/mod/network.php @@ -70,7 +70,8 @@ function network_content(&$a, $update = 0) { '$utubeurl' => t('Please enter a YouTube link:'), '$vidurl' => t("Please enter a video\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'), '$setloc' => t('Set your location'), '$noloc' => t('Clear browser location'), + '$title' => t('Set title'), '$wait' => t('Please wait'), '$permset' => t('Permission settings'), '$content' => '', diff --git a/mod/profile.php b/mod/profile.php index 1101c6998..17f6a2d45 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -138,7 +138,8 @@ function profile_content(&$a, $update = 0) { '$utubeurl' => t('Please enter a YouTube link:'), '$vidurl' => t("Please enter a video\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'); @@ -169,6 +170,7 @@ function profile_content(&$a, $update = 0) { '$audio' => t('Insert Vorbis [.ogg] audio'), '$setloc' => t('Set your location'), '$noloc' => t('Clear browser location'), + '$title' => t('Set title'), '$wait' => t('Please wait'), '$permset' => t('Permission settings'), '$content' => '', diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 774b37c86..eebaf803a 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -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) { $('#like-rotator-' + id).show(); $.get('share/' + id, function(data) { diff --git a/view/jot.tpl b/view/jot.tpl index fd85b9267..f5010301f 100644 --- a/view/jot.tpl +++ b/view/jot.tpl @@ -12,6 +12,7 @@ + @@ -40,6 +41,10 @@ +
+ $title +
+
$jotplugins
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index 0d89fa3b1..042cc380f 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -215,7 +215,8 @@ div.wall-item-content-wrapper.shiny { #profile-youtube, #profile-video, #profile-audio, -#profile-link, +#profile-link, +#profile-title, #wall-image-upload, #profile-upload-wrapper, #wall-image-upload-div, @@ -1056,41 +1057,45 @@ input#dfrn-url { } #profile-upload-wrapper { float: left; - margin-left: 50px; + margin-left: 30px; } #profile-rotator { float: left; - margin-left: 50px; + margin-left: 30px; } #profile-link-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } #profile-youtube-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } #profile-video-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } #profile-audio-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } #profile-location-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } #profile-nolocation-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; +} +#profile-title-wrapper { + float: left; + margin-left: 15px; } #profile-jot-perms { float: left; - margin-left: 150px; + margin-left: 100px; font-weight: bold; font-size: 1.2em; } @@ -2099,7 +2104,7 @@ a.mail-list-link { .tool-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } .tool-link { diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css index 4d2ca6d63..a61838157 100644 --- a/view/theme/loozah/style.css +++ b/view/theme/loozah/style.css @@ -111,7 +111,8 @@ blockquote:before { #profile-youtube, #profile-video, #profile-audio, -#profile-link, +#profile-link, +#profile-title, #wall-image-upload, #profile-upload-wrapper, #wall-image-upload-div, @@ -1119,41 +1120,46 @@ padding: 5px 10px 0px; } #profile-upload-wrapper { float: left; - margin-left: 50px; + margin-left: 30px; } #profile-rotator { float: left; - margin-left: 50px; + margin-left: 30px; } #profile-link-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } #profile-youtube-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } #profile-video-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } #profile-audio-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } #profile-location-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } #profile-nolocation-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; +} + +#profile-title-wrapper { + float: left; + margin-left: 15px; } #profile-jot-perms { float: left; - margin-left: 150px; + margin-left: 100px; font-weight: bold; font-size: 1.2em; } @@ -2115,7 +2121,7 @@ a.mail-list-link { .tool-wrapper { float: left; - margin-left: 20px; + margin-left: 15px; } .tool-link { cursor: pointer;