mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix #1218 & 1219 Enhance sharing window
This commit is contained in:
@@ -10,68 +10,49 @@
|
|||||||
{% set pageurl = preview.get_permalink().get_page() %}
|
{% set pageurl = preview.get_permalink().get_page() %}
|
||||||
|
|
||||||
{% if url is not empty %}
|
{% if url is not empty %}
|
||||||
<div id="tabs">
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a href="#share">{% trans 'reponses:: partager' %}</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div id="share">
|
<div id="share">
|
||||||
<div id="tweet">
|
<div id="tweet" class="well-large">
|
||||||
<div style="margin-left:20px;padding:10px 0 5px;"><a href="http://www.twitter.com/home/?status={{ pageurl }}" target="_blank"><img src="/skins/icons/twitter.ico" title="share this on twitter" style="vertical-align:middle;padding:0 5px;"/> Send to Twitter</a></div>
|
<div>
|
||||||
<div style="margin-left:20px;padding:5px 0 10px;"><a href="http://www.facebook.com/sharer.php?u={{ pageurl }}" target="_blank"><img src="/skins/icons/facebook.ico" title="share on facebook" style="vertical-align:middle;padding:0 5px;"/> Send to Facebook</a></div>
|
<a href="http://www.twitter.com/home/?status={{ pageurl }}" target="_blank">
|
||||||
|
<img src="/skins/icons/twitter.ico" title="share this on twitter" style="vertical-align:middle;padding:0 5px;"/>
|
||||||
|
{% trans %}Send to Twitter{% endtrans %}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="embed" style="text-align:center;padding:10px 0;">
|
<div>
|
||||||
<div style="text-align:left;margin-left:20px;padding:10px 0;">URL : </div>
|
<a href="http://www.facebook.com/sharer.php?u={{ pageurl }}" target="_blank">
|
||||||
|
<img src="/skins/icons/facebook.ico" title="share on facebook" style="vertical-align:middle;padding:0 5px;"/>
|
||||||
<input style="width:90%;" readonly="true" type="text" value="{{ pageurl }}" onfocus="this.focus();this.select();" onclick="this.focus();this.select();" />
|
{% trans %}Send to Facebook{% endtrans %}
|
||||||
<div style="text-align:left;margin-left:20px;padding:10px 0;">Embed :</div>
|
</a>
|
||||||
<textarea onfocus="this.focus();this.select();" onclick="this.focus();this.select();" style="width:90%;height:50px;" readonly="true" >
|
</div>
|
||||||
{% if type == 'video' %}
|
</div>
|
||||||
<object width="100%" height="100%" type="application/x-shockwave-flash" data="{{ app['phraseanet.registry'].get('GV_ServerName')}}include/jslibs/flowplayer/flowplayer-3.2.12.swf">
|
<div id="embed" class="well-large">
|
||||||
<param value="true" name="allowfullscreen">
|
<form action="#">
|
||||||
<param value="always" name="allowscriptaccess">
|
<label>{% trans %}Resource URL{% endtrans %}</label>
|
||||||
<param value="high" name="quality">
|
<input class="input-block-level" readonly="readonly" type="text" value="{{ url }}" />
|
||||||
<param value="false" name="cachebusting">
|
<label>{% trans %}Detailed view URL{% endtrans %}</label>
|
||||||
<param value="#000000" name="bgcolor">
|
<input class="input-block-level" readonly="readonly" type="text" value="{{ pageurl }}" />
|
||||||
<param value="config={"clip":{"url":"{{ url|url_encode }}"},"playlist":[{"url":"{{ url|url_encode }}"}]}" name="flashvars">
|
{% if type == 'image' %}
|
||||||
</object>
|
<label>{% trans %}Embed code{% endtrans %}</label>
|
||||||
{% elseif type == 'document' %}
|
{% spaceless %}
|
||||||
<object width="600" height="500" type="application/x-shockwave-flash" data="{{app['phraseanet.registry'].get('GV_ServerName')}}include/FlexPaper_flash/FlexPaperViewer.swf" style="visibility: visible; width: 600px; height: 500px; top: 0px;">
|
<textarea class="input-block-level" rows="4" readonly="true">
|
||||||
<param name="menu" value="false">
|
|
||||||
<param name="flashvars" value="SwfFile={{ url|url_encode }}&Scale=0.6&ZoomTransition=easeOut&ZoomTime=0.5&ZoomInterval=0.1&FitPageOnLoad=true&FitWidthOnLoad=true&PrintEnabled=false&FullScreenAsMaxWindow=false&localeChain={{ app['locale'] }}">
|
|
||||||
<param name="allowFullScreen" value="true">
|
|
||||||
<param name="wmode" value="transparent">
|
|
||||||
</object>
|
|
||||||
{% elseif type == 'audio' %}
|
|
||||||
<object width="290" height="24" data="{{ app['phraseanet.registry'].get('GV_ServerName') }}include/jslibs/audio-player/player.swf" type="application/x-shockwave-flash">
|
|
||||||
<param value="{{ app['phraseanet.registry'].get('GV_ServerName') }}include/jslibs/audio-player/player.swf" name="movie"/>
|
|
||||||
<param value="playerID=1&autostart=yes&soundFile={{ url|url_encode }}" name="FlashVars"/>
|
|
||||||
<param value="high" name="quality"/>
|
|
||||||
<param value="false" name="menu"/>
|
|
||||||
</object>
|
|
||||||
{% else %}
|
|
||||||
<a href="{{ pageurl }}"><img src="{{ url|url_encode }}" title="" /></a>
|
<a href="{{ pageurl }}"><img src="{{ url|url_encode }}" title="" /></a>
|
||||||
{% endif %}
|
|
||||||
</textarea>
|
</textarea>
|
||||||
</div>
|
{% endspaceless %}
|
||||||
<div style="text-align:center;padding:20px 0;">
|
{% endif %}
|
||||||
<input class="input-button" type="button" value="{% trans 'boutton::fermer' %}" />
|
</form>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#tabs').tabs();
|
|
||||||
$('input.ui-state-default').hover(
|
$('input.ui-state-default').hover(
|
||||||
function(){$(this).addClass('ui-state-hover')},
|
function(){$(this).addClass('ui-state-hover');},
|
||||||
function(){$(this).removeClass('ui-state-hover')}
|
function(){$(this).removeClass('ui-state-hover');}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div><{% trans 'Aucune URL disponible' %}</div>
|
<div><{% trans 'No URL available' %}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@@ -161,11 +161,11 @@
|
|||||||
<table style='position:relative; top:5px; table-layout:fixed; width:240px'>
|
<table style='position:relative; top:5px; table-layout:fixed; width:240px'>
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:30px; text-align:right'>
|
<td style='width:30px; text-align:right'>
|
||||||
<input type='button' value='◄' class='input-button' onclick="edit_chgFld(event, -1);return(false);" />
|
<input type='button' value='◄' class='btn btn-inverse' onclick="edit_chgFld(event, -1);return(false);" />
|
||||||
</td>
|
</td>
|
||||||
<td id="idFieldNameEdit"></td>
|
<td id="idFieldNameEdit"></td>
|
||||||
<td style='width:30px; text-align:left'>
|
<td style='width:30px; text-align:left'>
|
||||||
<input type='button' value='►' class='input-button' onclick="edit_chgFld(event, 1);return(false);" />
|
<input type='button' value='►' class='btn btn-inverse' onclick="edit_chgFld(event, 1);return(false);" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -223,9 +223,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="idDivButtons" class="PNB">
|
<div id="idDivButtons" class="PNB">
|
||||||
<input id="ok" type="button" value="{% trans 'boutton::remplacer' %}" class="input-button" onclick="edit_validField(event, 'ok');return(false);">
|
<input id="ok" type="button" value="{% trans 'boutton::remplacer' %}" class="btn btn-inverse" onclick="edit_validField(event, 'ok');return(false);">
|
||||||
<input id="fusion" type="button" value="{% trans 'boutton::ajouter' %}" class="input-button" onclick="edit_validField(event, 'fusion');return(false);">
|
<input id="fusion" type="button" value="{% trans 'boutton::ajouter' %}" class="btn btn-inverse" onclick="edit_validField(event, 'fusion');return(false);">
|
||||||
<input id="cancel" type="button" value="{% trans 'boutton::annuler' %}" class="input-button" onclick="edit_validField(event, 'cancel');return(false);">
|
<input id="cancel" type="button" value="{% trans 'boutton::annuler' %}" class="btn btn-inverse" onclick="edit_validField(event, 'cancel');return(false);">
|
||||||
</div>
|
</div>
|
||||||
<div id="idExplain" class="PNB"></div>
|
<div id="idExplain" class="PNB"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -360,7 +360,7 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<input type="hidden" name="edit-lst" id="edit_lst" value="{{ recordsRequest.serializedList() }}" />
|
<input type="hidden" name="edit-lst" id="edit_lst" value="{{ recordsRequest.serializedList() }}" />
|
||||||
<input type='button' class='input-button'
|
<input type='button' class='btn btn-inverse'
|
||||||
value="{% trans 'boutton::fermer' %}"
|
value="{% trans 'boutton::fermer' %}"
|
||||||
onClick="$('#EDITWINDOW').fadeOut();hideOverlay(2);return(false);" />
|
onClick="$('#EDITWINDOW').fadeOut();hideOverlay(2);return(false);" />
|
||||||
</center>
|
</center>
|
||||||
|
@@ -1436,21 +1436,6 @@ form.phrasea_query input.query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/******* INPUTS ***************************************************************/
|
/******* INPUTS ***************************************************************/
|
||||||
|
|
||||||
input.input-button {
|
|
||||||
background-image: url('../../icons/input_back.png');
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
height: 18px;
|
|
||||||
border: 1px solid #b1b1b1;
|
|
||||||
font-size: 0.8em;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #bfbfbf;
|
|
||||||
-webkit-border-radius: 4px;
|
|
||||||
-moz-border-radius: 4px;
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
input.input-button.hover {
|
input.input-button.hover {
|
||||||
color: #FEFEFE;
|
color: #FEFEFE;
|
||||||
}
|
}
|
||||||
|
@@ -1487,24 +1487,6 @@ form.phrasea_query input.query {
|
|||||||
|
|
||||||
/******* INPUTS ***************************************************************/
|
/******* INPUTS ***************************************************************/
|
||||||
|
|
||||||
input.input-button {
|
|
||||||
background-image: url('../../icons/input_back.png');
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
height: 18px;
|
|
||||||
border: 1px solid #b1b1b1;
|
|
||||||
font-size: 0.8em;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #bfbfbf;
|
|
||||||
-webkit-border-radius: 4px;
|
|
||||||
-moz-border-radius: 4px;
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
input.input-button.hover {
|
|
||||||
color: #FEFEFE;
|
|
||||||
}
|
|
||||||
|
|
||||||
input.search {
|
input.search {
|
||||||
padding-left: 25px;
|
padding-left: 25px;
|
||||||
background-image: url('/skins/icons/search.png');
|
background-image: url('/skins/icons/search.png');
|
||||||
|
@@ -2102,15 +2102,6 @@ function startThisEditing(sbas_id,what,regbasprid,ssel)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('input.input-button').hover(
|
|
||||||
function(){
|
|
||||||
$(this).addClass('hover');
|
|
||||||
},
|
|
||||||
function(){
|
|
||||||
$(this).removeClass('hover');
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
ETHSeeker = new EditThesaurusSeeker(p4.edit.sbas_id);
|
ETHSeeker = new EditThesaurusSeeker(p4.edit.sbas_id);
|
||||||
|
|
||||||
hsplit1();
|
hsplit1();
|
||||||
|
@@ -2345,9 +2345,7 @@ function checkDeleteThis(type, el)
|
|||||||
var buttons = {};
|
var buttons = {};
|
||||||
buttons[language.valider]= function(e)
|
buttons[language.valider]= function(e)
|
||||||
{
|
{
|
||||||
|
|
||||||
deleteBasket(el);
|
deleteBasket(el);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$('#DIALOG').empty().append(language.confirmDel).attr('title','Attention !').dialog({
|
$('#DIALOG').empty().append(language.confirmDel).attr('title','Attention !').dialog({
|
||||||
@@ -2366,9 +2364,13 @@ function checkDeleteThis(type, el)
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function shareThis(bas,rec)
|
function shareThis(bas,rec)
|
||||||
{
|
{
|
||||||
var dialog = p4.Dialog.Create({title: language['share'], size:'Small'});
|
var dialog = p4.Dialog.Create({
|
||||||
|
title: language['share']
|
||||||
|
});
|
||||||
|
|
||||||
dialog.load("/prod/share/record/"+bas+"/"+rec+ "/","GET");
|
dialog.load("/prod/share/record/"+bas+"/"+rec+ "/","GET");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user