-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.tpl.php
executable file
·125 lines (108 loc) · 4.37 KB
/
page.tpl.php
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
121
122
123
124
125
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>">
<head>
<meta name="apple-mobile-web-app-capable" content="yes" />
<title><?php print $head_title ?></title>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;" />
<?php print $head ?>
<?php print $styles ?>
<?php print $scripts ?>
</head>
<body>
<div id="topbar">
<div id="leftnav"><?php if (!$is_front): ?><a href="<?php print base_path(); ?>"><img alt="home" src="<?php print base_path() . path_to_theme() ?>/images/home.png" /></a><?php endif; ?>
</div>
<div id="title"><?php print $site_name; ?></div>
<div id="rightnav"><a class="noeffect" onclick="iWebkit.popup('nav')"><img alt="nav" src="<?php print base_path().path_to_theme() ?>/images/nav.png" /></a>
</div>
</div>
<?php
if(theme_get_setting('iwebkit_menu_type') == 'popup') {
if(!empty($primary_links)) {
$out = '<div id="nav" class="popup">';
$out .= '<div id="frame" class="confirm_screen">';
$out .= '<span>Navigation</span>';
foreach($primary_links as $link_name => $link) {
$out .= '<a href="/' . $link['href'] . '">';
$out .= '<span class="gray">' . $link['title'] . '</span>';
$out .= '</a>';
}
$out .= '<a class="noeffect" onclick="iWebkit.closepopup(event)">';
$out .= '<span class="black">Cancel</span>';
$out .= '</a>';
$out .= '</div>';
$out .= '</div>';
echo $out;
}
} elseif(theme_get_setting('iwebkit_menu_type') == 'normal-every') {
// Display the primary links
if(!empty($primary_links)) {
$out = '<ul class="pageitem" title="' . ($title ? $title : $site_name) . '" selected="true">
<li class="textbox"><p>'.t('Primary links').'
</li>';
foreach($primary_links as $link_name => $link) {
$out .= '<li class="menu"><a href="' . $link['href'] . '"><img alt="list" src="'.base_path().path_to_theme('iphone').'/thumbs/contacts.png" /><span class="name">' . $link['title'] . '</span><span class="comment">'.$link['attributes']['title'].'</span><span class="arrow"></span></a></li>';
}
$out .= '</ul>';
echo $out;
}
} elseif(theme_get_setting('iwebkit_menu_type') == 'normal-front' && $is_front) {
// Display the primary links
if(!empty($primary_links)) {
$out = '<ul class="pageitem" title="' . ($title ? $title : $site_name) . '" selected="true">
<li class="textbox"><p>'.t('Primary links').'
</li>';
foreach($primary_links as $link_name => $link) {
$out .= '<li class="menu"><a href="' . $link['href'] . '"><img alt="list" src="'.base_path().path_to_theme('iphone').'/thumbs/contacts.png" /><span class="name">' . $link['title'] . '</span><span class="comment">'.$link['attributes']['title'].'</span><span class="arrow"></span></a></li>';
}
$out .= '</ul>';
echo $out;
}
}
?>
<div id="content">
<div id="block-top">
<?php if ($block_top): ?>
<?php print $block_top; ?>
<?php endif; ?>
</div><!-- /block-top -->
<div id="block-middle">
<?php if ($block_middle): ?>
<?php print $block_middle; ?>
<?php endif; ?>
</div><!-- /block-middle -->
<div id="block-lower">
<?php if ($block_lower): ?>
<?php print $block_lower; ?>
<?php endif; ?>
</div><!-- /block-lower -->
<span class="graytitle">
<?php if($title): ?>
<?php print $title ?>
<?php endif; ?>
</span>
<?php if($content): ?>
<?php print $content; ?>
<?php endif; ?><!--End of content -->
<div id="footer-top">
<?php if ($footer_top): ?>
<?php print $footer_top; ?>
<?php endif; ?>
</div><!-- /footer-top -->
<div id="footer-middle">
<?php if ($footer_middle): ?>
<?php print $footer_middle; ?>
<?php endif; ?>
</div><!-- /footer-middle -->
<div id="footer-bottom">
<?php if ($footer_bottom): ?>
<?php print $footer_bottom; ?>
<?php endif; ?>
</div><!-- /footer-bottom -->
</div>
<div id="footer">
<?php print $footer_message; ?>
</div>
</body>
</html>