| |
1 |
1 |
ad_page_contract { |
| |
2 |
2 |
This is the highest level site specific master template. |
| |
3 |
3 |
|
| |
4 |
4 |
Properties allowed |
| |
5 |
5 |
doc(title) HTML title |
| |
6 |
6 |
head code to be entered into head of document |
| |
7 |
7 |
body |
| |
8 |
8 |
focus HTML id of form element to focus |
| |
9 |
9 |
skip_link href of link to skip to. Should be of format #skip_link |
| |
10 |
10 |
main_content_p if true wrap in the main content divs (if false, provide your own |
| |
11 |
11 |
page structure, for instance two or three columns of content per page) |
| |
12 |
12 |
|
| |
13 |
13 |
@author Lee Denison (lee@xarg.co.uk) |
| |
14 |
14 |
@author Don Baccus (dhogaza@pacifier.com) |
| |
15 |
15 |
|
| |
16 |
16 |
$Id$ |
| |
17 |
17 |
} |
| |
18 |
|
ns_log Notice "Huh? here I am!" |
| |
19 |
18 |
|
| |
20 |
19 |
if { ![info exists main_content_p] } { |
| |
21 |
20 |
set main_content_p 1 |
| |
22 |
21 |
} |
| |
23 |
22 |
|
| |
24 |
23 |
# |
| |
25 |
24 |
# Set some basic variables |
| |
26 |
25 |
# |
| |
27 |
26 |
set system_name [ad_system_name] |
| |
28 |
27 |
set subsite_name [lang::util::localize [subsite::get_element -element instance_name]] |
| |
29 |
28 |
|
| |
30 |
29 |
if {[ad_conn url] eq "/"} { |
| |
31 |
30 |
set system_url "" |
| |
32 |
31 |
} else { |
| |
33 |
32 |
set system_url [ad_url] |
| |
34 |
33 |
} |
| |
35 |
34 |
|
| |
36 |
35 |
if {[template::util::is_nil title]} { |
| |
37 |
36 |
# TODO: decide how best to set the lang attribute for the title |
| |
38 |
37 |
set title [ad_conn instance_name] |