Commit 718e66fd authored by Bert Leunis's avatar Bert Leunis

ESSENTIALS-1033 change markup of video plugin templates so the result is...

ESSENTIALS-1033 change markup of video plugin templates so the result is always a single dom element
parent 740b40ba
......@@ -6,5 +6,7 @@
<iframe width="${cparam.width}" height="${cparam.height}" src="${document.link?html}?autoplay=1" frameborder="0" allowfullscreen></iframe>
<#-- @ftlvariable name="editMode" type="java.lang.Boolean"-->
<#elseif editMode>
<img src="<@hst.link path="/images/essentials/catalog-component-icons/video.png" />"> Click to edit Video
<div>
<img src="<@hst.link path="/images/essentials/catalog-component-icons/video.png" />"> Click to edit Video
</div>
</#if>
......@@ -6,5 +6,7 @@
<iframe width="${cparam.width}" height="${cparam.height}" src="${document.link?html}" frameborder="0" allowfullscreen></iframe>
<#-- @ftlvariable name="editMode" type="java.lang.Boolean"-->
<#elseif editMode>
<img src="<@hst.link path="/images/essentials/catalog-component-icons/video.png" />"> Click to edit Video
<div>
<img src="<@hst.link path="/images/essentials/catalog-component-icons/video.png" />"> Click to edit Video
</div>
</#if>
......@@ -3,10 +3,14 @@
<#-- @ftlvariable name="document" type="{{beansPackage}}.Video" -->
<#-- @ftlvariable name="cparam" type="org.onehippo.cms7.essentials.components.info.EssentialsVideoComponentInfo"--%> -->
<#if document??>
<h3>${document.title?html}</h3>
<iframe width="${cparam.width}" height="${cparam.height}" src="${document.link?html}" frameborder="0" allowfullscreen></iframe>
<p>${document.description?html}</p>
<div>
<h3>${document.title?html}</h3>
<iframe width="${cparam.width}" height="${cparam.height}" src="${document.link?html}" frameborder="0" allowfullscreen></iframe>
<p>${document.description?html}</p>
</div>
<#-- @ftlvariable name="editMode" type="java.lang.Boolean"-->
<#elseif editMode>
<img src="<@hst.link path="/images/essentials/catalog-component-icons/video.png" />"> Click to edit Video
<div>
<img src="<@hst.link path="/images/essentials/catalog-component-icons/video.png" />"> Click to edit Video
</div>
</#if>
......@@ -3,11 +3,15 @@
<%--@elvariable id="document" type="{{beansPackage}}.Video"--%>
<%--@elvariable id="cparam" type="org.onehippo.cms7.essentials.components.info.EssentialsVideoComponentInfo"--%>
<c:if test="${not empty requestScope.document}">
<h3><c:out value="${requestScope.document.title}"/></h3>
<iframe width="${requestScope.cparam.width}" height="${requestScope.cparam.height}" src="${fn:escapeXml(requestScope.document.link)}" frameborder="0" allowfullscreen></iframe>
<p><c:out value="${requestScope.document.description}"/></p>
<div>
<h3><c:out value="${requestScope.document.title}"/></h3>
<iframe width="${requestScope.cparam.width}" height="${requestScope.cparam.height}" src="${fn:escapeXml(requestScope.document.link)}" frameborder="0" allowfullscreen></iframe>
<p><c:out value="${requestScope.document.description}"/></p>
</div>
</c:if>
<c:if test="${requestScope.editMode && empty requestScope.document}">
<img src="<hst:link path='/images/essentials/catalog-component-icons/video.png'/>"> Click to edit Video
<div>
<img src="<hst:link path='/images/essentials/catalog-component-icons/video.png'/>"> Click to edit Video
</div>
</c:if>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment