dolibarr 22.0.5
header_login.tpl.php
1<!-- file header_login.tpl.php -->
2<?php
3// Protection to avoid direct call of template
4if (empty($context) || !is_object($context)) {
5 print "Error, template page can't be called as URL";
6 exit(1);
7}
8
9global $langs;
10?>
11<!DOCTYPE html>
12<?php print '<html lang="'.substr($langs->defaultlang, 0, 2) . '">'."\n"; ?>
13<head>
14 <meta charset="UTF-8">
15 <meta name="viewport" content="width=device-width, initial-scale=1.0">
16 <meta http-equiv="X-UA-Compatible" content="ie=edge">
17 <title>
18 <?php
19 if (!empty($context->title)) {
20 print $context->title;
21 } else {
22 print 'WebPortal';
23 }
24 ?>
25 </title>
26 <link rel="stylesheet" href="<?php print $context->rootUrl.'css/global.css.php'; ?>">
27 <link rel="stylesheet" href="<?php print $context->rootUrl.'css/themes/custom.css.php'; ?>">
28
29 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css">
30 <?php
31 //$jNotifyCSSUrl = $context->rootUrl.'includes/jquery/plugins/jnotify/jquery.jnotify.css';
32 $jNotifyCSSUrl = dol_buildpath('/includes/jquery/plugins/jnotify/jquery.jnotify.min.css', 2);
33 print '<link rel="stylesheet" href="'.$jNotifyCSSUrl.' ">'."\n";
34
35 // JQuery
36 //$jQueryJSUrl = $context->rootUrl.'includes/jquery/js/jquery.js';
37 $jQueryJSUrl = dol_buildpath('/includes/jquery/js/jquery.js', 2);
38 print '<script src="'.$jQueryJSUrl.'"></script>'."\n";
39
40 // JNotify
41 //$jNotifyJSUrl = $context->rootUrl.'includes/jquery/plugins/jnotify/jquery.jnotify.js';
42 $jNotifyJSUrl = dol_buildpath('/includes/jquery/plugins/jnotify/jquery.jnotify.min.js', 2);
43 print '<script src="'.$jNotifyJSUrl.'"></script>'."\n";
44 ?>
45</head>
46<body class="login-page">
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
$context
@method int call_trigger(string $triggerName, User $user)
Definition logout.php:42
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:161