Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
db19b205
Verified
Commit
db19b205
authored
4 months ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
Feat(smarty) - small adjustment for plugins inclusion
Plugins inclusion in smarty 4
parent
de03c079
core-php8
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ihtml/themes/breezy/headers.tpl
+25
-23
ihtml/themes/breezy/headers.tpl
include/php_setup.inc
+5
-2
include/php_setup.inc
with
30 additions
and
25 deletions
+30
-25
ihtml/themes/breezy/headers.tpl
+
25
−
23
View file @
db19b205
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
{
if
$lang
}
lang=
"
{
$lang
}
"
xml:lang=
"
{
$lang
}
"
{/
if
}
{
if
$rtl
}
dir=
"rtl"
class=
"rtl"
{
else
}
class=
"ltr"
{/
if
}
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
{
if
$lang
}
lang=
"
{
$lang
}
"
xml:lang=
"
{
$lang
}
"
{/
if
}
{
if
$rtl
}
dir=
"rtl"
class=
"rtl"
{
else
}
class=
"ltr"
{/
if
}
>
<head>
<title>
FusionDirectory
{
if
isset
(
$title
)
}
-
{
$title
|
escape
}{
elseif
isset
(
$headline
)
}
-
{
$headline
|
escape
}{/
if
}
</title>
<title>
FusionDirectory
{
if
isset
(
$title
)
}
-
{
$title
|
escape
}{
elseif
isset
(
$headline
)
}
-
{
$headline
|
escape
}{/
if
}
</title>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<meta
name=
"description"
content=
"FusionDirectory - Your Infrastructure Manager"
/>
<meta
name=
"author"
lang=
"en"
content=
"FusionDirectory Project"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
<meta
name=
"description"
content=
"FusionDirectory - Your Infrastructure Manager"
/>
<meta
name=
"author"
lang=
"en"
content=
"FusionDirectory Project"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
{
include
file
=
{
filePath
file
=
"css.tpl"
}}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
filePath
file
=
"printer.css"
}
"
media=
"print"
/>
{
include
file
=
{
filePath
file
=
"css.tpl"
}}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
filePath
file
=
"printer.css"
}
"
media=
"print"
/>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
/>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
/>
<script
src=
"include/prototype.js"
></script>
<script
src=
"include/fusiondirectory.js"
></script>
{
if
$usePrototype
==
'true'
}
<script
src=
"include/scriptaculous.js"
></script>
<script
src=
"include/builder.js"
></script>
<script
src=
"include/effects.js"
></script>
<script
src=
"include/dragdrop.js"
></script>
<script
src=
"include/controls.js"
></script>
<script
src=
"include/pulldown.js"
></script>
{/
if
}
<script
src=
"include/tsorter.js"
></script>
{
foreach
from
=
$js_files
item
=
file
}
<script
src=
"
{
$file
}
"
></script>
{/
foreach
}
<script
src=
"include/prototype.js"
></script>
<script
src=
"include/fusiondirectory.js"
></script>
{
if
$usePrototype
==
'true'
}
<script
src=
"include/scriptaculous.js"
></script>
<script
src=
"include/builder.js"
></script>
<script
src=
"include/effects.js"
></script>
<script
src=
"include/dragdrop.js"
></script>
<script
src=
"include/controls.js"
></script>
<script
src=
"include/pulldown.js"
></script>
{/
if
}
<script
src=
"include/tsorter.js"
></script>
{
foreach
from
=
$js_files
item
=
file
}
<script
src=
"
{
$file
}
"
></script>
{/
foreach
}
</head>
This diff is collapsed.
Click to expand it.
include/php_setup.inc
+
5
−
2
View file @
db19b205
...
...
@@ -329,11 +329,14 @@ $smarty->caching = Smarty::CACHING_OFF;
$smarty
->
assign
(
'css_files'
,
[]);
$smarty
->
assign
(
'js_files'
,
[]);
# This require registration as it is a base function of php.
$smarty
->
registerPlugin
(
'modifier'
,
'base64_encode'
,
'base64_encode'
);
# It should not require registration as it is put in the plugins folder of smarty
#$smarty->registerPlugin('function', 'filePath', 'smarty_function_filePath');
# Deactivate php process within smarty template
$smarty
->
allow_php
=
false
;
# Remove with above in smarty 4
# $smarty->php_handling = Smarty::PHP_REMOVE;
/* Check for SSL connection */
$ssl
=
''
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets