All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.jquery.head.ftl Maven / Gradle / Ivy

There is a newer version: 5.0.5
Show newest version
<#--
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
-->

<#if !jQueryVersion?? >
  <#assign jQueryVersion="1.8.2">

<#assign jQueryUIVersion="1.8.24">
<#assign struts2jQueryVersion="${version}">

<#if parameters.scriptPath?if_exists != "">
  <#assign javaScriptBasePath="${parameters.scriptPath?string}">
<#else>
  <#assign javaScriptBasePath="${base}/struts/">


<#assign schema="${request.requestURL.substring(0, request.requestURL.indexOf(':'))}">

<#assign googlePath="${schema}://ajax.googleapis.com/ajax/libs/jquery/${jQueryVersion}">
<#assign googleUiPath="${schema}://ajax.googleapis.com/ajax/libs/jqueryui/${jQueryUIVersion}">

<#if parameters.customBasepath?if_exists != "">
  <#assign basePath="${parameters.customBasepath?string}">
<#else>
  <#assign basePath="${javaScriptBasePath}themes">

<#if parameters.compressed?default(true)>
  <#assign jqueryFile="jquery-${jQueryVersion}.min.js">
  <#assign jqueryForm="jquery.form.min.js?s2j=${struts2jQueryVersion}">
  <#assign jqueryUIFile="jquery-ui.min.js?s2j=${struts2jQueryVersion}">
  <#assign jqueryUICoreFile="jquery.ui.core.min.js?s2j=${struts2jQueryVersion}">
  <#assign jquerySubscribeFile="jquery.subscribe.min.js">
  <#assign jqueryHistoryFile="jquery.ba-bbq.min.js">
  <#assign jqueryStrutsFile="jquery.struts2.min.js?s2j=${struts2jQueryVersion}">
  <#assign jqueryUiStrutsFile="jquery.ui.struts2.min.js">
  <#assign jqueryGoogle="${googlePath}/jquery.min.js">
  <#assign jqueryUiGoogle="${googleUiPath}/jquery-ui.min.js">
<#else>
  <#assign jqueryFile="jquery-${jQueryVersion}.js">
  <#assign jqueryForm="jquery.form.js?s2j=${struts2jQueryVersion}">
  <#assign jqueryUIFile="jquery-ui.js?s2j=${struts2jQueryVersion}">
  <#assign jqueryUICoreFile="jquery.ui.core.js?s2j=${struts2jQueryVersion}">
  <#assign jquerySubscribeFile="jquery.subscribe.js">
  <#assign jqueryHistoryFile="jquery.ba-bbq.js">
  <#assign jqueryStrutsFile="jquery.struts2.js?s2j=${struts2jQueryVersion}">
  <#assign jqueryUiStrutsFile="jquery.ui.struts2.js">
  <#assign jqueryGoogle="${googlePath}/jquery.js">
  <#assign jqueryUiGoogle="${googleUiPath}/jquery-ui.js">


<#if parameters.loadFromGoogle?default(false)>
	
	<#if parameters.jqueryui?default(true)>
	
		<#if parameters.jqueryLocale?if_exists != "" && parameters.jqueryLocale?if_exists != "en">
	
		
	
<#else>
	
	<#if parameters.jqueryui?default(true)>
 		<#if parameters.loadAtOnce?default(false)>
	
			<#if parameters.jqueryLocale?if_exists != "" && parameters.jqueryLocale?if_exists != "en">
	
			
		<#else>
	
		
	

<#if parameters.loadAtOnce?default(false) ||  parameters.loadFromGoogle?default(false)>
	

  
<#if parameters.ajaxhistory?default(false)>
  


  



<#if parameters.jqueryui?default(true)>
    <#if parameters.jquerytheme?if_exists != "">
		<#if parameters.loadFromGoogle?default(false) && basePath == "${base}/struts/themes">
        	
		<#else>
        	
		
    <#else>
        
    





© 2015 - 2024 Weber Informatics LLC | Privacy Policy