dolibarr 21.0.0-beta
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="https://use.fontawesome.com/releases/v5.2.0/css/all.css">
28 <?php
29 //$jNotifyCSSUrl = $context->rootUrl.'includes/jquery/plugins/jnotify/jquery.jnotify.css';
30 $jNotifyCSSUrl = dol_buildpath('/includes/jquery/plugins/jnotify/jquery.jnotify.min.css', 2);
31 print '<link rel="stylesheet" href="'.$jNotifyCSSUrl.' ">';
32
33 // JQuery
34 //$jQueryJSUrl = $context->rootUrl.'includes/jquery/js/jquery.js';
35 $jQueryJSUrl = dol_buildpath('/includes/jquery/js/jquery.js', 2);
36 print '<script src="'.$jQueryJSUrl.'"></script>';
37
38 // JNotify
39 //$jNotifyJSUrl = $context->rootUrl.'includes/jquery/plugins/jnotify/jquery.jnotify.js';
40 $jNotifyJSUrl = dol_buildpath('/includes/jquery/plugins/jnotify/jquery.jnotify.min.js', 2);
41 print '<script src="'.$jNotifyJSUrl.'"></script>';
42 ?>
43</head>
44<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:152