1 |
jonen |
1.1 |
<?php |
2 |
|
|
|
3 |
|
|
/** |
4 |
|
|
* This file contains some utility functions |
5 |
|
|
* for building <span> and <div> objects |
6 |
|
|
* that have specific css classes. |
7 |
|
|
* |
8 |
|
|
* $Id: font_utils.inc,v 1.3 2002/09/25 01:12:35 hemna Exp $ |
9 |
|
|
* |
10 |
|
|
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
11 |
|
|
* @package phpHtmlLib |
12 |
|
|
* |
13 |
|
|
*/ |
14 |
|
|
|
15 |
|
|
|
16 |
|
|
/** |
17 |
|
|
* |
18 |
|
|
* There are example css classes defined for all |
19 |
|
|
* of the css classes used in here in |
20 |
|
|
* css/fonts.css |
21 |
|
|
* |
22 |
|
|
*/ |
23 |
|
|
|
24 |
|
|
|
25 |
|
|
/** |
26 |
|
|
* Build a SPANtag object with |
27 |
|
|
* css class of .font8. |
28 |
|
|
* |
29 |
|
|
* @param mixed - any # of arguments to live |
30 |
|
|
* inside the tag |
31 |
|
|
* @return SPANtag object |
32 |
|
|
*/ |
33 |
|
|
function span_font8( ) { |
34 |
|
|
$span = html_span("font8"); |
35 |
|
|
$args = func_get_args(); |
36 |
|
|
call_user_func_array( array(&$span, "add"), $args); |
37 |
|
|
return $span; |
38 |
|
|
} |
39 |
|
|
|
40 |
|
|
/** |
41 |
|
|
* Build a SPANtag object with |
42 |
|
|
* css class of .font8bold. |
43 |
|
|
* |
44 |
|
|
* @param mixed - any # of arguments to live |
45 |
|
|
* inside the tag |
46 |
|
|
* @return SPANtag object |
47 |
|
|
*/ |
48 |
|
|
function span_font8bold( ) { |
49 |
|
|
$span = html_span("font8bold"); |
50 |
|
|
$args = func_get_args(); |
51 |
|
|
call_user_func_array( array(&$span, "add"), $args); |
52 |
|
|
return $span; |
53 |
|
|
} |
54 |
|
|
|
55 |
|
|
/** |
56 |
|
|
* Build a SPANtag object with |
57 |
|
|
* css class of .font10. |
58 |
|
|
* |
59 |
|
|
* @param mixed - any # of arguments to live |
60 |
|
|
* inside the tag |
61 |
|
|
* @return SPANtag object |
62 |
|
|
*/ |
63 |
|
|
function span_font10( ) { |
64 |
|
|
$span = html_span("font10"); |
65 |
|
|
$args = func_get_args(); |
66 |
|
|
call_user_func_array( array(&$span, "add"), $args); |
67 |
|
|
return $span; |
68 |
|
|
} |
69 |
|
|
|
70 |
|
|
/** |
71 |
|
|
* Build a SPANtag object with |
72 |
|
|
* css class of .font10bold. |
73 |
|
|
* |
74 |
|
|
* @param mixed - any # of arguments to live |
75 |
|
|
* inside the tag |
76 |
|
|
* @return SPANtag object |
77 |
|
|
*/ |
78 |
|
|
function span_font10bold( ) { |
79 |
|
|
$span = html_span("font10bold"); |
80 |
|
|
$args = func_get_args(); |
81 |
|
|
call_user_func_array( array(&$span, "add"), $args); |
82 |
|
|
return $span; |
83 |
|
|
} |
84 |
|
|
|
85 |
|
|
/** |
86 |
|
|
* Build a SPANtag object with |
87 |
|
|
* css class of .font12. |
88 |
|
|
* |
89 |
|
|
* @param mixed - any # of arguments to live |
90 |
|
|
* inside the tag |
91 |
|
|
* @return SPANtag object |
92 |
|
|
*/ |
93 |
|
|
function span_font12( ) { |
94 |
|
|
$span = html_span( "font12"); |
95 |
|
|
$args = func_get_args(); |
96 |
|
|
call_user_func_array( array(&$span, "add"), $args); |
97 |
|
|
return $span; |
98 |
|
|
} |
99 |
|
|
|
100 |
|
|
/** |
101 |
|
|
* Build a SPANtag object with |
102 |
|
|
* css class of .font12bold. |
103 |
|
|
* |
104 |
|
|
* @param mixed - any # of arguments to live |
105 |
|
|
* inside the tag |
106 |
|
|
* @return SPANtag object |
107 |
|
|
*/ |
108 |
|
|
function span_font12bold( ) { |
109 |
|
|
$span = html_span( "font12bold"); |
110 |
|
|
$args = func_get_args(); |
111 |
|
|
call_user_func_array( array(&$span, "add"), $args); |
112 |
|
|
return $span; |
113 |
|
|
} |
114 |
|
|
|
115 |
|
|
|
116 |
|
|
/** |
117 |
|
|
* Build a SPANtag object with |
118 |
|
|
* css class of .font14. |
119 |
|
|
* |
120 |
|
|
* @param mixed - any # of arguments to live |
121 |
|
|
* inside the tag |
122 |
|
|
* @return SPANtag object |
123 |
|
|
*/ |
124 |
|
|
function span_font14( ) { |
125 |
|
|
$span = html_span( "font14" ); |
126 |
|
|
$args = func_get_args(); |
127 |
|
|
call_user_func_array( array(&$span, "add"), $args); |
128 |
|
|
return $span; |
129 |
|
|
} |
130 |
|
|
|
131 |
|
|
/** |
132 |
|
|
* Build a SPANtag object with |
133 |
|
|
* css class of .font14bold. |
134 |
|
|
* |
135 |
|
|
* @param mixed - any # of arguments to live |
136 |
|
|
* inside the tag |
137 |
|
|
* @return SPANtag object |
138 |
|
|
*/ |
139 |
|
|
function span_font14bold( ) { |
140 |
|
|
$span = html_span( "font14bold" ); |
141 |
|
|
$args = func_get_args(); |
142 |
|
|
call_user_func_array( array(&$span, "add"), $args); |
143 |
|
|
return $span; |
144 |
|
|
} |
145 |
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
/************************************** |
149 |
|
|
* div_* functions that do the same |
150 |
|
|
* |
151 |
|
|
**************************************/ |
152 |
|
|
|
153 |
|
|
|
154 |
|
|
/** |
155 |
|
|
* Build a DIVtag object with |
156 |
|
|
* css class of .font8. |
157 |
|
|
* |
158 |
|
|
* @param mixed - any # of arguments to live |
159 |
|
|
* inside the tag |
160 |
|
|
* @return DIVtag object |
161 |
|
|
*/ |
162 |
|
|
function div_font8( ) { |
163 |
|
|
$div = html_div("font8"); |
164 |
|
|
$args = func_get_args(); |
165 |
|
|
call_user_func_array( array(&$div, "add"), $args); |
166 |
|
|
return $div; |
167 |
|
|
} |
168 |
|
|
|
169 |
|
|
/** |
170 |
|
|
* Build a DIVtag object with |
171 |
|
|
* css class of .font8bold. |
172 |
|
|
* |
173 |
|
|
* @param mixed - any # of arguments to live |
174 |
|
|
* inside the tag |
175 |
|
|
* @return DIVtag object |
176 |
|
|
*/ |
177 |
|
|
function div_font8bold( ) { |
178 |
|
|
$div = html_div("font8bold"); |
179 |
|
|
$args = func_get_args(); |
180 |
|
|
call_user_func_array( array(&$div, "add"), $args); |
181 |
|
|
return $div; |
182 |
|
|
} |
183 |
|
|
|
184 |
|
|
|
185 |
|
|
/** |
186 |
|
|
* Build a DIVtag object with |
187 |
|
|
* css class of .font10. |
188 |
|
|
* |
189 |
|
|
* @param mixed - any # of arguments to live |
190 |
|
|
* inside the tag |
191 |
|
|
* @return DIVtag object |
192 |
|
|
*/ |
193 |
|
|
function div_font10( ) { |
194 |
|
|
$div = html_div("font10"); |
195 |
|
|
$args = func_get_args(); |
196 |
|
|
call_user_func_array( array(&$div, "add"), $args); |
197 |
|
|
return $div; |
198 |
|
|
} |
199 |
|
|
|
200 |
|
|
/** |
201 |
|
|
* Build a DIVtag object with |
202 |
|
|
* css class of .font10bold. |
203 |
|
|
* |
204 |
|
|
* @param mixed - any # of arguments to live |
205 |
|
|
* inside the tag |
206 |
|
|
* @return DIVtag object |
207 |
|
|
*/ |
208 |
|
|
function div_font10bold( ) { |
209 |
|
|
$div = html_div("font10bold"); |
210 |
|
|
$args = func_get_args(); |
211 |
|
|
call_user_func_array( array(&$div, "add"), $args); |
212 |
|
|
return $div; |
213 |
|
|
} |
214 |
|
|
|
215 |
|
|
/** |
216 |
|
|
* Build a DIVtag object with |
217 |
|
|
* css class of .font12. |
218 |
|
|
* |
219 |
|
|
* @param mixed - any # of arguments to live |
220 |
|
|
* inside the tag |
221 |
|
|
* @return DIVtag object |
222 |
|
|
*/ |
223 |
|
|
function div_font12( ) { |
224 |
|
|
$div = html_div( "font12"); |
225 |
|
|
$args = func_get_args(); |
226 |
|
|
call_user_func_array( array(&$div, "add"), $args); |
227 |
|
|
return $div; |
228 |
|
|
} |
229 |
|
|
|
230 |
|
|
/** |
231 |
|
|
* Build a DIVtag object with |
232 |
|
|
* css class of .font12bold. |
233 |
|
|
* |
234 |
|
|
* @param mixed - any # of arguments to live |
235 |
|
|
* inside the tag |
236 |
|
|
* @return DIVtag object |
237 |
|
|
*/ |
238 |
|
|
function div_font12bold( ) { |
239 |
|
|
$div = html_div( "font12bold"); |
240 |
|
|
$args = func_get_args(); |
241 |
|
|
call_user_func_array( array(&$div, "add"), $args); |
242 |
|
|
return $div; |
243 |
|
|
} |
244 |
|
|
|
245 |
|
|
|
246 |
|
|
/** |
247 |
|
|
* Build a DIVtag object with |
248 |
|
|
* css class of .font14. |
249 |
|
|
* |
250 |
|
|
* @param mixed - any # of arguments to live |
251 |
|
|
* inside the tag |
252 |
|
|
* @return DIVtag object |
253 |
|
|
*/ |
254 |
|
|
function div_font14( ) { |
255 |
|
|
$div = html_div( "font14" ); |
256 |
|
|
$args = func_get_args(); |
257 |
|
|
call_user_func_array( array(&$div, "add"), $args); |
258 |
|
|
return $div; |
259 |
|
|
} |
260 |
|
|
|
261 |
|
|
/** |
262 |
|
|
* Build a DIVtag object with |
263 |
|
|
* css class of .font14bold. |
264 |
|
|
* |
265 |
|
|
* @param mixed - any # of arguments to live |
266 |
|
|
* inside the tag |
267 |
|
|
* @return DIVtag object |
268 |
|
|
*/ |
269 |
|
|
function div_font14bold( ) { |
270 |
|
|
$div = html_div( "font14bold" ); |
271 |
|
|
$args = func_get_args(); |
272 |
|
|
call_user_func_array( array(&$div, "add"), $args); |
273 |
|
|
return $div; |
274 |
|
|
} |
275 |
|
|
|
276 |
|
|
|
277 |
|
|
?> |