/
html.xml
120 lines (119 loc) · 3.93 KB
/
html.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "Admin_Guide.ent">
]>
<section id="admin.config.html">
<title>HTML</title>
<variablelist>
<varlistentry>
<term>$g_html_make_links</term>
<listitem>
<para>This flag controls whether www URLs and email addresses are
automatically converted into clickable links as well as where
the www links open when clicked. The options are:
<itemizedlist>
<listitem>
<para><emphasis>OFF</emphasis> - do not convert URLs or emails
</para>
</listitem>
<listitem>
<para><emphasis>LINKS_SAME_WINDOW</emphasis> -
convert to links that open in current tab/window.
NOTE: for backwards-compatibility, this is
equivalent to <emphasis>ON</emphasis>.
</para>
</listitem>
<listitem>
<para><emphasis>LINKS_NEW_WINDOW</emphasis> -
convert to links that open in a new tab/window
</para>
</listitem>
</itemizedlist>
Default is <emphasis>LINKS_SAME_WINDOW</emphasis>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>$g_html_valid_tags</term>
<listitem>
<para>This is the list of HTML tags that are allowed.Do NOT
include href or img tags here.Do NOT include tags that have
parameters (eg. )The HTML code is allowed to enter the database as
is. The $g_allow_href_tags does not have to be enabled to make URL
links. The package will automatically hyperlink properly formatted
URLs eg. http://blah.blah/ or
mailto://me@more.com/
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>$g_bottom_include_page</term>
<listitem>
<para>If this page exists it will be displayed at the bottom of
every page. It makes a good company branding include page.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>$g_top_include_page</term>
<listitem>
<para>If this page exists it will be displayed at the top of every
page. It makes a good company branding include page.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>$g_css_include_file</term>
<listitem>
<para>Set this to point to the CSS file of your choice.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>$g_css_rtl_include_file</term>
<listitem>
<para>Set this to point to the RTL CSS file of your choice.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>$g_meta_include_file</term>
<listitem>
<para>Set this to point to the META tag file of your
choice.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>$g_cdn_enabled</term>
<listitem>
<para>
A flag that indicates whether to use CDN (content delivery networks) for loading
javascript libraries and their associated CSS. This improves performance for
loading MantisBT pages. This can be disabled if it is desired that MantisBT
doesn't reach out outside corporate network. Default OFF.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>$g_main_menu_custom_options</term>
<listitem>
<para>This option will add custom options to the main menu. It is
an array of arrays listing the caption, access level required, and
the link to be executed. For example:
<programlisting>
$g_main_menu_custom_options = array(
array( 'My Link', MANAGER, 'my_link.php' ),
array( 'My Link2', ADMINISTRATOR, 'my_link2.php' ),
);
</programlisting>
Note that if the caption is found in the
<emphasis>Custom Strings File</emphasis>
(see <xref linkend="admin.customize.strings"/>)
it will be replaced by the corresponding translated
string. Options will only be added to the menu if
the current logged in user has the appropriate
access level.
</para>
</listitem>
</varlistentry>
</variablelist>
</section>