Browse Source

vorbis audio/video link buttons

tags/2.2
Friendika 9 years ago
parent
commit
334353e502
11 changed files with 93 additions and 6 deletions
  1. BIN
      images/audio.gif
  2. BIN
      images/video.gif
  3. +2
    -0
      mod/network.php
  4. +2
    -0
      mod/profile.php
  5. +14
    -0
      view/de/jot-header.tpl
  6. +15
    -0
      view/en/jot-header.tpl
  7. +14
    -0
      view/fr/jot-header.tpl
  8. +14
    -0
      view/it/jot-header.tpl
  9. +7
    -1
      view/jot.tpl
  10. +12
    -2
      view/theme/duepuntozero/style.css
  11. +13
    -3
      view/theme/loozah/style.css

BIN
images/audio.gif View File

Before After
Width: 16  |  Height: 16  |  Size: 559 B

BIN
images/video.gif View File

Before After
Width: 16  |  Height: 16  |  Size: 257 B

+ 2
- 0
mod/network.php View 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'),


+ 2
- 0
mod/profile.php View 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'),


+ 14
- 0
view/de/jot-header.tpl View 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) {


+ 15
- 0
view/en/jot-header.tpl View 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) {


+ 14
- 0
view/fr/jot-header.tpl View 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) {


+ 14
- 0
view/it/jot-header.tpl View 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) {


+ 7
- 1
view/jot.tpl View File

@@ -26,7 +26,13 @@
<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();" />


+ 12
- 2
view/theme/duepuntozero/style.css View 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;
}


+ 13
- 3
view/theme/loozah/style.css View 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;
}


Loading…
Cancel
Save