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.3
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.11.0">

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

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


<#assign googlePath="//ajax.googleapis.com/ajax/libs/jquery/${jQueryVersion}">
<#assign googleUiPath="//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?s2j=${struts2jQueryVersion}">
    <#assign jqueryHistoryFile="jquery.ba-bbq.min.js?s2j=${struts2jQueryVersion}">
    <#assign jqueryStrutsFile="jquery.struts2.min.js?s2j=${struts2jQueryVersion}">
    <#assign jqueryUiStrutsFile="jquery.ui.struts2.min.js?s2j=${struts2jQueryVersion}">
    <#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?s2j=${struts2jQueryVersion}">
    <#assign jqueryHistoryFile="jquery.ba-bbq.js?s2j=${struts2jQueryVersion}">
    <#assign jqueryStrutsFile="jquery.struts2.js?s2j=${struts2jQueryVersion}">
    <#assign jqueryUiStrutsFile="jquery.ui.struts2.js?s2j=${struts2jQueryVersion}">
    <#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