mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix PR
Conflicts: lib/Alchemy/Phrasea/Controller/Prod/Records.php templates/web/prod/Share/record.html.twig
This commit is contained in:
@@ -1,79 +1,76 @@
|
||||
{% set preview = record.get_preview()%}
|
||||
{% set permalink = preview.get_permalink() %}
|
||||
|
||||
{% if preview is iterable %}
|
||||
<p>{% trans 'No preview available.' %}</p>
|
||||
{% elseif permalink is none %}
|
||||
{% elseif preview.get_permalink() is none %}
|
||||
<p>{% trans 'No permalink available.' %}</p>
|
||||
{% else %}
|
||||
{% set type = record.get_type() %}
|
||||
{% set url = permalink.get_url() %}
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#share">{% trans 'reponses:: partager' %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="share">
|
||||
{% set url = preview.get_permalink().get_url() %}
|
||||
|
||||
<div class="boxCloser" onclick="parent.hideDwnl();">{% trans 'boutton::fermer' %} ?></div>
|
||||
<div id="tweet">
|
||||
<div style="margin-left:20px;padding:10px 0 5px;"><a href="http://www.twitter.com/home/?status={{ url|url_encode }}view/" 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 style="margin-left:20px;padding:5px 0 10px;"><a href="http://www.facebook.com/sharer.php?u={{ url|url_encode }}view/" target="_blank"><img src="/skins/icons/facebook.ico" title="share on facebook" style="vertical-align:middle;padding:0 5px;"/> Send to Facebook</a></div>
|
||||
</div>
|
||||
<div id="embed" style="text-align:center;padding:10px 0;">
|
||||
<div style="text-align:left;margin-left:20px;padding:10px 0;">URL : </div>
|
||||
{% if url is not empty %}
|
||||
<input style="width:90%;" readonly="true" type="text" value="{{ url|url_encode }}view/" onfocus="this.focus();this.select();" onclick="this.focus();this.select();" />
|
||||
<div style="text-align:left;margin-left:20px;padding:10px 0;">Embed :</div>
|
||||
<textarea onfocus="this.focus();this.select();" onclick="this.focus();this.select();" style="width:90%;height:50px;" readonly="true" >
|
||||
{% if type == 'video' %}
|
||||
<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">
|
||||
<param value="true" name="allowfullscreen">
|
||||
<param value="always" name="allowscriptaccess">
|
||||
<param value="high" name="quality">
|
||||
<param value="false" name="cachebusting">
|
||||
<param value="#000000" name="bgcolor">
|
||||
<param value="config={"clip":{"url":"{{ url|url_encode }}"},"playlist":[{"url":"{{ url|url_encode }}"}]}" name="flashvars">
|
||||
</object>
|
||||
{% elseif type == 'document' %}
|
||||
<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;">
|
||||
<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="{{ url|url_encode }}view/"><img src="{{ url|url_encode }}" title="" /></a>
|
||||
{% endif %}
|
||||
</textarea>
|
||||
</div>
|
||||
{% else %}
|
||||
<div><{% trans 'Aucune URL disponible' %}</div>
|
||||
{% endif %}
|
||||
{% if url is not empty %}
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#share">{% trans 'reponses:: partager' %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="share">
|
||||
<div id="tweet">
|
||||
<div style="margin-left:20px;padding:10px 0 5px;"><a href="http://www.twitter.com/home/?status={{ url|url_encode }}view/" 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 style="margin-left:20px;padding:5px 0 10px;"><a href="http://www.facebook.com/sharer.php?u={{ url|url_encode }}view/" target="_blank"><img src="/skins/icons/facebook.ico" title="share on facebook" style="vertical-align:middle;padding:0 5px;"/> Send to Facebook</a></div>
|
||||
</div>
|
||||
<div id="embed" style="text-align:center;padding:10px 0;">
|
||||
<div style="text-align:left;margin-left:20px;padding:10px 0;">URL : </div>
|
||||
|
||||
<div style="text-align:center;padding:20px 0;">
|
||||
<input class="input-button" type="button" value="{% trans 'boutton::fermer' %}" onclick="parent.hideDwnl();" />
|
||||
<input style="width:90%;" readonly="true" type="text" value="{{ url|url_encode }}view/" onfocus="this.focus();this.select();" onclick="this.focus();this.select();" />
|
||||
<div style="text-align:left;margin-left:20px;padding:10px 0;">Embed :</div>
|
||||
<textarea onfocus="this.focus();this.select();" onclick="this.focus();this.select();" style="width:90%;height:50px;" readonly="true" >
|
||||
{% if type == 'video' %}
|
||||
<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">
|
||||
<param value="true" name="allowfullscreen">
|
||||
<param value="always" name="allowscriptaccess">
|
||||
<param value="high" name="quality">
|
||||
<param value="false" name="cachebusting">
|
||||
<param value="#000000" name="bgcolor">
|
||||
<param value="config={"clip":{"url":"{{ url|url_encode }}"},"playlist":[{"url":"{{ url|url_encode }}"}]}" name="flashvars">
|
||||
</object>
|
||||
{% elseif type == 'document' %}
|
||||
<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;">
|
||||
<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="{{ url|url_encode }}view/"><img src="{{ url|url_encode }}" title="" /></a>
|
||||
{% endif %}
|
||||
</textarea>
|
||||
</div>
|
||||
<div style="text-align:center;padding:20px 0;">
|
||||
<input class="input-button" type="button" value="{% trans 'boutton::fermer' %}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script language="javascript">
|
||||
$(document).ready(function(){
|
||||
$('#tabs').tabs();
|
||||
$('input.ui-state-default').hover(
|
||||
function(){$(this).addClass('ui-state-hover')},
|
||||
function(){$(this).removeClass('ui-state-hover')}
|
||||
);
|
||||
|
||||
});
|
||||
</script>
|
||||
<script language="javascript">
|
||||
$(document).ready(function(){
|
||||
$('#tabs').tabs();
|
||||
$('input.ui-state-default').hover(
|
||||
function(){$(this).addClass('ui-state-hover')},
|
||||
function(){$(this).removeClass('ui-state-hover')}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
{% else %}
|
||||
<div><{% trans 'Aucune URL disponible' %}</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
Reference in New Issue
Block a user