]> git.mxchange.org Git - friendica.git/commitdiff
optionally set article title
authorFriendika <info@friendika.com>
Wed, 30 Mar 2011 01:57:26 +0000 (18:57 -0700)
committerFriendika <info@friendika.com>
Wed, 30 Mar 2011 01:57:26 +0000 (18:57 -0700)
mod/network.php
mod/profile.php
view/jot-header.tpl
view/jot.tpl
view/theme/duepuntozero/style.css
view/theme/loozah/style.css

index 2ff15a29b780fe8fc4541b3c7cb0f0adacd52aff..39679b48a14378635b58451e89abf37e67f9ed1a 100644 (file)
@@ -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' => '',
index 1101c69981a262a4c6610021a936301d09998a7b..17f6a2d4515b72f822b6a4d4db6f7bf8c7c01dfc 100644 (file)
@@ -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' => '',
index 774b37c8603653a08712b8b35303394bd76ab108..eebaf803ac91a4cf021c4c9c87cfa57a158ebeb6 100644 (file)
@@ -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) {
index fd85b9267ed9461e441fa8578d3081ebbf4fea04..f5010301f6e8014cddb2ee137f449fc05a2d17b2 100644 (file)
@@ -12,6 +12,7 @@
                <input type="hidden" name="return" value="$return_path" />
                <input type="hidden" name="location" id="jot-location" value="$defloc" />
                <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" />
 
                <textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >$content</textarea>
        <div id="profile-nolocation-wrapper" style="display: none;" >
                <img id="profile-nolocation" src="images/noglobe.gif" alt="$noloc" title="$noloc" onclick="jotClearLocation();" />
        </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">
        $jotplugins
        </div>
index 0d89fa3b1c24c483646950147b05e7fbb07e6521..042cc380ff516cd28be0cf497634b2097b3da59b 100644 (file)
@@ -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 {
index 4d2ca6d636871ef59da49dbcdb55808f21728aa3..a618381575529145d9e8d646204743ba03485034 100644 (file)
@@ -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;