1 |
jonen |
1.1 |
<?php |
2 |
|
|
|
3 |
|
|
/** |
4 |
|
|
* This file holds some global defines used by several |
5 |
|
|
* classes of phpHtmlLib. |
6 |
|
|
* |
7 |
jonen |
1.3 |
* $Id: defines.inc,v 1.6 2003/07/23 21:05:37 hemna Exp $ |
8 |
jonen |
1.1 |
* |
9 |
|
|
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
10 |
|
|
* @package phpHtmlLib |
11 |
|
|
* |
12 |
|
|
*/ |
13 |
|
|
|
14 |
|
|
/** |
15 |
|
|
* Some global defines, used by the classes and widgets |
16 |
|
|
* to specify what type of output document format to use. |
17 |
|
|
* |
18 |
|
|
*/ |
19 |
|
|
define("XHTML_TRANSITIONAL", "xhtml_transitional"); |
20 |
|
|
define("XHTML", "xhtml_transitional"); |
21 |
|
|
define("XHTML_STRICT", "xhtml_strict"); |
22 |
|
|
define("XHTML_FRAMESET", "xhtml_frameset"); |
23 |
|
|
define("HTML", "html"); |
24 |
|
|
|
25 |
jonen |
1.3 |
/** |
26 |
|
|
* set the default render type for |
27 |
|
|
* html tags |
28 |
|
|
*/ |
29 |
|
|
$GLOBALS["HTML_RENDER_TYPE"] = HTML; |
30 |
|
|
|
31 |
jonen |
1.1 |
/** |
32 |
|
|
* Some defines to tell the class what style of |
33 |
|
|
* indenting of the output the user wants. |
34 |
|
|
*/ |
35 |
|
|
define("INDENT_NICE", 0); |
36 |
|
|
define("INDENT_LEFT_JUSTIFY", -1); |
37 |
jonen |
1.2 |
|
38 |
|
|
|
39 |
|
|
/** |
40 |
|
|
* some nice globals |
41 |
|
|
*/ |
42 |
|
|
define( "_HTML_SPACE", " "); |
43 |
jonen |
1.3 |
define( "_HTML_MDASH", "—"); |
44 |
jonen |
1.2 |
|
45 |
|
|
/** |
46 |
|
|
* Some global defines for the tag classes |
47 |
|
|
*/ |
48 |
|
|
define( "_INDENT_STR", " "); |
49 |
|
|
|
50 |
|
|
define( "_NEWLINEAFTERCONTENT", 1); |
51 |
|
|
define( "_NEWLINEAFTEROPENTAG", 2); |
52 |
|
|
define( "_NEWLINEAFTERCLOSETAG", 4); |
53 |
|
|
define( "_CONTENTREQUIRED", 8); |
54 |
|
|
define( "_CLOSETAGREQUIRED", 16); |
55 |
|
|
define( "_DEPRICATED", 32); |
56 |
|
|
define( "_INDENT", 64); |
57 |
|
|
define( "_COLLAPSE", 128); |
58 |
|
|
define( "_ALWAYS_UPPERCASE", 256); |
59 |
|
|
define( "_ALWAYS_LOWERCASE", 512); |
60 |
|
|
define( "_NOFINISHSLASHXHTML", 1024); |
61 |
|
|
define( "_CDATACONTENTWRAP", 2048); |
62 |
|
|
define( "_XHTMLCOMPLIANT", 4096); |
63 |
|
|
|
64 |
|
|
define( "_TAG_PREFIX", "<"); |
65 |
|
|
define( "_TAG_SUFFIX", ">"); |
66 |
jonen |
1.1 |
?> |