META-INF.resources.ddm_template.edit_small_image.jsp Maven / Gradle / Ivy
<%--
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
--%>
<%@ include file="/init.jsp" %>
<%
JournalEditDDMTemplateDisplayContext journalEditDDMTemplateDisplayContext = (JournalEditDDMTemplateDisplayContext)request.getAttribute(JournalEditDDMTemplateDisplayContext.class.getName());
DDMTemplate ddmTemplate = journalEditDDMTemplateDisplayContext.getDDMTemplate();
String smallImageSource = journalEditDDMTemplateDisplayContext.getSmallImageSource();
%>
<%= HtmlUtil.escape(StringUtil.merge(journalEditDDMTemplateDisplayContext.imageExtensions(), StringPool.COMMA)) %>.
" id=" smallImageURLContainer">
" key="preview" />" class="aspect-ratio-item-fluid" src="<%= HtmlUtil.escapeAttribute(ddmTemplate.getTemplateImageURL(themeDisplay)) %>" />
" id=" smallImageFileContainer">
<%
ThemeDisplay finalThemeDisplay = themeDisplay;
%>
Liferay.Util.toggleSelectBox(
' smallImageSource',
'url',
' smallImageURLContainer'
);
Liferay.Util.toggleSelectBox(
' smallImageSource',
'file',
' smallImageFileContainer'
);
© 2015 - 2024 Weber Informatics LLC | Privacy Policy