mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge branch 'master' into PHRAS-3070_Prod_publication_fix_on_display
This commit is contained in:
@@ -65,15 +65,19 @@
|
|||||||
<div class="form-group clearfix">
|
<div class="form-group clearfix">
|
||||||
{#{% if type == 'image' %}#}
|
{#{% if type == 'image' %}#}
|
||||||
<label>{% trans %}Embed code{% endtrans %}</label>
|
<label>{% trans %}Embed code{% endtrans %}</label>
|
||||||
|
{% set embedUrl = subdefList[defKey].embedUrl %}
|
||||||
|
{% if subdefList[defKey].height == 0 %}
|
||||||
|
{% set defKey = 'thumbnail' %}
|
||||||
|
{% endif %}
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
<textarea class="input-block-level" rows="4" readonly="true" id="embedRecordUrl">
|
<textarea class="input-block-level" rows="4" readonly="true" id="embedRecordUrl">
|
||||||
<iframe width="{{ subdefList[defKey].width }}" height="{{ subdefList[defKey].height }}"
|
<iframe width="{{ subdefList[defKey].width != 0 ?subdefList[defKey].width : 240 }}" height="{{subdefList[defKey].height != 0 ? subdefList[defKey].height : 240 }}"
|
||||||
src="{{ subdefList[defKey].embedUrl }}" frameborder="0"
|
src="{{ embedUrl }}" frameborder="0"
|
||||||
allowfullscreen></iframe>
|
allowfullscreen></iframe>
|
||||||
</textarea>
|
</textarea>
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
<p class="pull-right">
|
<p class="pull-right">
|
||||||
<a id="embedRecordUrl-link" href="{{ subdefList[defKey].embedUrl }}"
|
<a id="embedRecordUrl-link" href="{{ embedUrl }}"
|
||||||
target="_blank">{{ 'previewLinkLabel' | trans }}</a>
|
target="_blank">{{ 'previewLinkLabel' | trans }}</a>
|
||||||
<a href="#" class="" id="embedCopy">{{ 'copyClipboardLabel' | trans }}</a>
|
<a href="#" class="" id="embedCopy">{{ 'copyClipboardLabel' | trans }}</a>
|
||||||
</p>
|
</p>
|
||||||
|
@@ -229,7 +229,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
],
|
],
|
||||||
preferences: {
|
preferences: {
|
||||||
overlapChapters: {% if overlapChapters != NULL %}{{ overlapChapters }}{% else %}0{% endif %},
|
overlapChapters: {% if overlapChapters != NULL %}{{ overlapChapters }}{% else %}1{% endif %},
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user