{************************************* * SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. * SPDX-License-Identifier: AGPL-3.0-only ************************************} {* crmv@94525 crmv@94125 *} {* Use this variable to choose what to include in the html header *} {if $head_include eq 'all'} {assign var=INCLUDES value="all"} {else} {assign var=INCLUDES value=","|explode:$head_include} {/if} {* if the called file is not in the VTE root, you should set this variable to correctly include the resources *} {if $RELPATH eq ""} {if $PATH} {assign var="RELPATH" value=$PATH} {else} {assign var="RELPATH" value=""} {/if} {/if} {assign var=HTML_CLASS value="vte-app-root"} {assign var=HTML_EXTRA_CLASS value=$HTML_EXTRA_CLASS|default:''} {if !empty($HTML_EXTRA_CLASS)} {assign var=HTML_CLASS value=$HTML_CLASS|cat:" `$HTML_EXTRA_CLASS`"} {/if} {* Meta tags *} {if $APP.LBL_CHARSET} {/if} {* crmv@25620 - Browser Title *} {if $BROWSER_TITLE eq ''} {if $MODULE_NAME}{$MODULE_NAME|getTranslatedString:$MODULE_NAME} - {/if}{$APP.LBL_BROWSER_TITLE} {else} {$BROWSER_TITLE} {/if} {* crmv@25620e *} {* Base/compatibility scripts *} {* jQuery *} {if $INCLUDES == 'all' || in_array('jquery', $INCLUDES)} {* jQuery plugins *} {if $INCLUDES == 'all' || in_array('jquery_plugins', $INCLUDES)} {* crmv@157124 *} {/if} {* Fancybox *} {if $INCLUDES == 'all' || in_array('fancybox', $INCLUDES)} {/if} {* jQuery UI *} {if $INCLUDES == 'all' || in_array('jquery_ui', $INCLUDES)} {* jquery ui theme is added later in the theme *} {* crmv@198024 *} {/if} {* crmv@140887 *} {* Slim Scroll *} {* crmv@140887e *} {/if} {* Prototype and scriptaculous *} {if $INCLUDES == 'all' || in_array('prototype', $INCLUDES)} {* Prototype removed. If you need it, restore the link here *} {* *} {* This is a small polyfill for most used use cases of prototype, it will be removed in the future *} {* crmv@192033 *} {* crmv@168103 - removed scriptaculous *} {/if} {* Theme *} {include file="Theme.tpl" THEME_MODE="head"} {* Language *} {if $CURRENT_LANGUAGE} {else} {* crmv@181170 *} {/if} {* VTE scripts *} {* crmv@171581 *} {* crmv@91082 *} {* crmv@208475 *} {* crmv@43864 *} {* crmv@98866 *} {* crmv@140887 *} {* crmv@167019 *} {* Charts *} {if $INCLUDES == 'all' || in_array('charts', $INCLUDES)} {* crmv@82770 *} {* crmv@82770 *} {* crmv@82770 *} {* crmv@82770 *} {/if} {* JSCalendar - Obsolete! *} {if $INCLUDES == 'all' || in_array('jscalendar', $INCLUDES)} {if $APP.LBL_JSCALENDAR_LANG} {/if} {/if} {* crmv@82419e *} {* File uploads *} {if $INCLUDES == 'all' || in_array('file_upload', $INCLUDES)} {* crmv@24568 *} {* crmv@181170 *} {/if} {* crmv@168103 *} {* crmv@42024 populate global JS variables *} {* crmv@70731 *} {* crmv@42024e *} {* crmv@171581 - csrf protection *} {* crmv@171581e *} {* Asterisk Integration *} {* crmv@169305 *} {if $USE_ASTERISK eq 'true'} {/if} {if $USE_ASTERISK_INCOMING eq 'true'} {/if} {* crmv@169305e *} {if $INCLUDES == 'all' || in_array('sdk_headers', $INCLUDES)} {* Inclusion of custom CSS *} {if $HEADERCSS} {foreach item=HDRCSS from=$HEADERCSS} {/foreach} {/if} {* Inclusion of custom javascript *} {if $HEADERSCRIPTS} {foreach item=HEADERSCRIPT from=$HEADERSCRIPTS} {/foreach} {/if} {/if} {* crmv@181170 *} {if $FAST_MODE} {/if} {* crmv@181170e *}