File tree Expand file tree Collapse file tree 2 files changed +19
-15
lines changed
portal-web/docroot/html/common/themes Expand file tree Collapse file tree 2 files changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -208,17 +208,27 @@ if (layout != null) {
208
208
UnicodeProperties layoutSetSettingsUnicodeProperties = layoutSet.getSettingsProperties();
209
209
210
210
UnicodeProperties layoutTypeSettingsUnicodeProperties = layout.getTypeSettingsProperties();
211
+
212
+ String snippet = GetterUtil.getString(layoutSetSettingsUnicodeProperties.getProperty("javascript"));
213
+ %>
214
+
215
+ <c:if test="<%= Validator.isNotNull(snippet) %>">
216
+ <%@ include file="/html/common/themes/bottom_js_script.jspf" %>
217
+ </c:if>
218
+
219
+ <%
220
+ snippet = GetterUtil.getString(masterLayoutTypeSettingsUnicodeProperties.getProperty("javascript"));
211
221
%>
212
222
213
- <liferay-util:include page="/html/common/themes/bottom_js_script.jsp ">
214
- <liferay-util:param name="snippet" value='<%= GetterUtil.getString(layoutSetSettingsUnicodeProperties.getProperty("javascript")) %>' / >
215
- </liferay-util:include >
223
+ <c:if test="<%= Validator.isNotNull(snippet) %> ">
224
+ <%@ include file="/html/common/themes/bottom_js_script.jspf" % >
225
+ </c:if >
216
226
217
- <liferay-util:include page="/html/common/themes/bottom_js_script.jsp">
218
- <liferay-util:param name=" snippet" value='<%= GetterUtil.getString(masterLayoutTypeSettingsUnicodeProperties .getProperty("javascript")) %>' />
219
- </liferay-util:include >
227
+ <%
228
+ snippet = GetterUtil.getString(layoutTypeSettingsUnicodeProperties .getProperty("javascript"));
229
+ % >
220
230
221
- <liferay-util:include page="/html/common/themes/bottom_js_script.jsp ">
222
- <liferay-util:param name="snippet" value='<%= GetterUtil.getString(layoutTypeSettingsUnicodeProperties.getProperty("javascript")) %>' / >
223
- </liferay-util:include >
231
+ <c:if test="<%= Validator.isNotNull(snippet) %> ">
232
+ <%@ include file="/html/common/themes/bottom_js_script.jspf" % >
233
+ </c:if >
224
234
</c:if>
Original file line number Diff line number Diff line change 5
5
*/
6
6
--%>
7
7
8
- <%@ include file =" /html/common/init.jsp" %>
9
-
10
- <%
11
- String snippet = ParamUtil . getString(request, " snippet" );
12
- % >
13
-
14
8
<c:if test="<%= Validator.isNotNull(snippet) %>">
15
9
<aui:script type="text/javascript">
16
10
// <![CDATA[
You can’t perform that action at this time.
0 commit comments