]> git.mxchange.org Git - friendica.git/commitdiff
vorbis audio/video link buttons
authorFriendika <info@friendika.com>
Thu, 17 Mar 2011 04:14:22 +0000 (21:14 -0700)
committerFriendika <info@friendika.com>
Thu, 17 Mar 2011 04:14:22 +0000 (21:14 -0700)
images/audio.gif [new file with mode: 0644]
images/video.gif [new file with mode: 0644]
mod/network.php
mod/profile.php
view/de/jot-header.tpl
view/en/jot-header.tpl
view/fr/jot-header.tpl
view/it/jot-header.tpl
view/jot.tpl
view/theme/duepuntozero/style.css
view/theme/loozah/style.css

diff --git a/images/audio.gif b/images/audio.gif
new file mode 100644 (file)
index 0000000..4be9771
Binary files /dev/null and b/images/audio.gif differ
diff --git a/images/video.gif b/images/video.gif
new file mode 100644 (file)
index 0000000..e4d5e8c
Binary files /dev/null and b/images/video.gif differ
index 1f92145d102dd0dbe52ce86005c3fc578a65965a..ad028df1f1aa0f68d81648afa3976e439c0a7e0b 100644 (file)
@@ -92,6 +92,8 @@ function network_content(&$a, $update = 0) {
                        '$upload' => t('Upload photo'),
                        '$weblink' => t('Insert web link'),
                        '$youtube' => t('Insert YouTube video'),
+                       '$video' => t('Insert Vorbis [.ogg] video'),
+                       '$audio' => t('Insert Vorbis [.ogg] audio'),
                        '$setloc' => t('Set your location'),
                        '$noloc' => t('Clear browser location'),
                        '$wait' => t('Please wait'),
index 3354bc9a33cb2a3bff83ab25a908b3cb7f80e846..a464b7c06da15a145b922bd335a995526f745437 100644 (file)
@@ -157,6 +157,8 @@ function profile_content(&$a, $update = 0) {
                                '$upload' => t('Upload photo'),
                                '$weblink' => t('Insert web link'),
                                '$youtube' => t('Insert YouTube video'),
+                               '$video' => t('Insert Vorbis [.ogg] video'),
+                               '$audio' => t('Insert Vorbis [.ogg] audio'),
                                '$setloc' => t('Set your location'),
                                '$noloc' => t('Clear browser location'),
                                '$wait' => t('Please wait'),
index 25d28c3a7be2d223ce61312ed65eb5afe3795ca5..62fbe84e481fc6c79bd6e12d43c3422e3530c7ee 100644 (file)
@@ -104,6 +104,20 @@ tinyMCE.init({
                }
        }
 
+       function jotVideoURL() {
+               reply = prompt("Please enter a video(.ogg) link/URL:");
+               if(reply && reply.length) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,'[video]' + reply + '[/video]');
+               }
+       }
+
+       function jotAudioURL() {
+               reply = prompt("Please enter an audio(.ogg) link/URL:");
+               if(reply && reply.length) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,'[audio]' + reply + '[/audio]');
+               }
+       }
+
        function jotGetLocation() {
                reply = prompt("Wo bist du im Moment?", $('#jot-location').val());
                if(reply && reply.length) {
index 20f84b851e81cf59ae673179a0e69f7725d859fe..d73fe7d629186060d22b22e2c4a0891cf6a0e938 100644 (file)
@@ -104,6 +104,21 @@ tinyMCE.init({
                }
        }
 
+       function jotVideoURL() {
+               reply = prompt("Please enter a video(.ogg) link/URL:");
+               if(reply && reply.length) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,'[video]' + reply + '[/video]');
+               }
+       }
+
+       function jotAudioURL() {
+               reply = prompt("Please enter an audio(.ogg) link/URL:");
+               if(reply && reply.length) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,'[audio]' + reply + '[/audio]');
+               }
+       }
+
+
        function jotGetLocation() {
                reply = prompt("Where are you right now?", $('#jot-location').val());
                if(reply && reply.length) {
index a4c5f42a43731a8d4bd1b04b538ce14fb8eda327..b1b6dacf0171441a430073f442b4a9cdee0d3169 100644 (file)
@@ -103,6 +103,20 @@ tinyMCE.init({
                }
        }
 
+       function jotVideoURL() {
+               reply = prompt("Please enter a video(.ogg) link/URL:");
+               if(reply && reply.length) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,'[video]' + reply + '[/video]');
+               }
+       }
+
+       function jotAudioURL() {
+               reply = prompt("Please enter an audio(.ogg) link/URL:");
+               if(reply && reply.length) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,'[audio]' + reply + '[/audio]');
+               }
+       }
+
        function jotGetLocation() {
                reply = prompt("Where are you right now?", $('#jot-location').val());
                if(reply && reply.length) {
index ff28def6191213a49c71a278a1ab72b001f2a55e..8ca5a07174181641fb1bf21be0df2a092e1b3c9e 100644 (file)
@@ -104,6 +104,20 @@ tinyMCE.init({
                }
        }
 
+       function jotVideoURL() {
+               reply = prompt("Please enter a video(.ogg) link/URL:");
+               if(reply && reply.length) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,'[video]' + reply + '[/video]');
+               }
+       }
+
+       function jotAudioURL() {
+               reply = prompt("Please enter an audio(.ogg) link/URL:");
+               if(reply && reply.length) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,'[audio]' + reply + '[/audio]');
+               }
+       }
+
        function jotGetLocation() {
                reply = prompt("Dove ti trovi ora?", $('#jot-location').val());
                if(reply && reply.length) {
index 68139ddc01f9f1bb4cf21b32c2a137eb146db7ed..fd85b9267ed9461e441fa8578d3081ebbf4fea04 100644 (file)
                <img id="profile-link" src="images/link-icon.gif" alt="$weblink" title="$weblink" ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink();" />
        </div> 
        <div id="profile-youtube-wrapper" style="display: $visitor;" >
-               <img id="profile-video" src="images/youtube_icon.gif" alt="$youtube" title="$youtube" onclick="jotGetVideo();" />
+               <img id="profile-youtube" src="images/youtube_icon.gif" alt="$youtube" title="$youtube" onclick="jotGetVideo();" />
+       </div> 
+       <div id="profile-video-wrapper" style="display: $visitor;" >
+               <img id="profile-video" src="images/video.gif" alt="$video" title="$video" onclick="jotVideoURL();" />
+       </div> 
+       <div id="profile-audio-wrapper" style="display: $visitor;" >
+               <img id="profile-audio" src="images/audio.gif" alt="$audio" title="$audio" onclick="jotAudioURL();" />
        </div> 
        <div id="profile-location-wrapper" style="display: $visitor;" >
                <img id="profile-location" src="images/globe.gif" alt="$setloc" title="$setloc" onclick="jotGetLocation();" />
index ad2aac9be15e4f1b34664efb39892442e1601315..ce75655fb9dd38e0721bcfba37fdb48f1c9f6748 100644 (file)
@@ -206,8 +206,10 @@ div.wall-item-content-wrapper.shiny {
 /* from default */
 #jot-perms-icon, 
 #profile-location,
-#profile-nolocation, 
+#profile-nolocation,
+#profile-youtube, 
 #profile-video, 
+#profile-audio,
 #profile-link, 
 #wall-image-upload,
 #profile-upload-wrapper,
@@ -1056,6 +1058,14 @@ input#dfrn-url {
        float: left;
        margin-left: 20px;
 }
+#profile-video-wrapper {
+       float: left;
+       margin-left: 20px;
+}
+#profile-audio-wrapper {
+       float: left;
+       margin-left: 20px;
+}
 #profile-location-wrapper {
        float: left;
        margin-left: 20px;
@@ -1067,7 +1077,7 @@ input#dfrn-url {
 
 #profile-jot-perms {
        float: left;
-       margin-left: 200px;
+       margin-left: 150px;
        font-weight: bold;
        font-size: 1.2em;
 }
index 13c2dda272c202a493de246a12911679fb76658b..1c378793ad77269429027c4c59a3bdee4ec8ca2c 100644 (file)
@@ -107,8 +107,10 @@ blockquote:before {
 
 #jot-perms-icon, 
 #profile-location,
-#profile-nolocation, 
-#profile-video, 
+#profile-nolocation,
+#profile-youtube, 
+#profile-video,
+#profile-audio, 
 #profile-link, 
 #wall-image-upload,
 #profile-upload-wrapper,
@@ -1125,6 +1127,14 @@ padding: 5px 10px 0px;
        float: left;
        margin-left: 20px;
 }
+#profile-video-wrapper {
+       float: left;
+       margin-left: 20px;
+}
+#profile-audio-wrapper {
+       float: left;
+       margin-left: 20px;
+}
 #profile-location-wrapper {
        float: left;
        margin-left: 20px;
@@ -1136,7 +1146,7 @@ padding: 5px 10px 0px;
 
 #profile-jot-perms {
        float: left;
-       margin-left: 200px;
+       margin-left: 150px;
        font-weight: bold;
        font-size: 1.2em;
 }