root / drupal7 / sites / all / themes / adaptivetheme / at_core / templates / page--full-width-wrappers.tpl.php @ fbb05e21
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | /**
|
||
3 | * @file
|
||
4 | * Adaptivetheme implementation to display a single Drupal page.
|
||
5 | *
|
||
6 | * ### Full Width Wrappers ###
|
||
7 | *
|
||
8 | * This page template that has 100% width wrappers, which effectively
|
||
9 | * divide the page up into sections to you can style with full width
|
||
10 | * backgrounds. AT Commerce uses markup similar to this to achieve
|
||
11 | * its style - its worth checking out to see how I did this.
|
||
12 | *
|
||
13 | * To use copy this to your subtheme and rename it page.tpl.php,
|
||
14 | * or enable this in theme settings under "Site Tweaks".
|
||
15 | *
|
||
16 | * Available variables:
|
||
17 | *
|
||
18 | * Adaptivetheme supplied variables:
|
||
19 | * - $site_logo: Themed logo - linked to front with alt attribute.
|
||
20 | * - $site_name: Site name linked to the homepage.
|
||
21 | * - $site_name_unlinked: Site name without any link.
|
||
22 | * - $hide_site_name: Toggles the visibility of the site name.
|
||
23 | * - $visibility: Holds the class .element-invisible or is empty.
|
||
24 | * - $primary_navigation: Themed Main menu.
|
||
25 | * - $secondary_navigation: Themed Secondary/user menu.
|
||
26 | * - $primary_local_tasks: Split local tasks - primary.
|
||
27 | * - $secondary_local_tasks: Split local tasks - secondary.
|
||
28 | * - $tag: Prints the wrapper element for the main content.
|
||
29 | 74f6bef0 | Assos Assos | * - $is_mobile: Mixed, requires the Mobile Detect or Browscap module to return
|
30 | * TRUE for mobile. Note that tablets are also considered mobile devices.
|
||
31 | * Returns NULL if the feature could not be detected.
|
||
32 | * - $is_tablet: Mixed, requires the Mobile Detect to return TRUE for tablets.
|
||
33 | * Returns NULL if the feature could not be detected.
|
||
34 | 85ad3d82 | Assos Assos | * - *_attributes: attributes for various site elements, usually holds id, class
|
35 | * or role attributes.
|
||
36 | *
|
||
37 | * General utility variables:
|
||
38 | * - $base_path: The base URL path of the Drupal installation. At the very
|
||
39 | * least, this will always default to /.
|
||
40 | * - $directory: The directory the template is located in, e.g. modules/system
|
||
41 | * or themes/bartik.
|
||
42 | * - $is_front: TRUE if the current page is the front page.
|
||
43 | * - $logged_in: TRUE if the user is registered and signed in.
|
||
44 | * - $is_admin: TRUE if the user has permission to access administration pages.
|
||
45 | *
|
||
46 | * Site identity:
|
||
47 | * - $front_page: The URL of the front page. Use this instead of $base_path,
|
||
48 | * when linking to the front page. This includes the language domain or
|
||
49 | * prefix.
|
||
50 | * - $logo: The path to the logo image, as defined in theme configuration.
|
||
51 | * - $site_slogan: The slogan of the site, empty when display has been disabled
|
||
52 | * in theme settings.
|
||
53 | *
|
||
54 | * Navigation:
|
||
55 | * - $main_menu (array): An array containing the Main menu links for the
|
||
56 | * site, if they have been configured.
|
||
57 | * - $secondary_menu (array): An array containing the Secondary menu links for
|
||
58 | * the site, if they have been configured.
|
||
59 | * - $breadcrumb: The breadcrumb trail for the current page.
|
||
60 | *
|
||
61 | * Page content (in order of occurrence in the default page.tpl.php):
|
||
62 | * - $title_prefix (array): An array containing additional output populated by
|
||
63 | * modules, intended to be displayed in front of the main title tag that
|
||
64 | * appears in the template.
|
||
65 | * - $title: The page title, for use in the actual HTML content.
|
||
66 | * - $title_suffix (array): An array containing additional output populated by
|
||
67 | * modules, intended to be displayed after the main title tag that appears in
|
||
68 | * the template.
|
||
69 | * - $messages: HTML for status and error messages. Should be displayed
|
||
70 | * prominently.
|
||
71 | * - $tabs (array): Tabs linking to any sub-pages beneath the current page
|
||
72 | * (e.g., the view and edit tabs when displaying a node).
|
||
73 | * - $action_links (array): Actions local to the page, such as 'Add menu' on the
|
||
74 | * menu administration interface.
|
||
75 | * - $feed_icons: A string of all feed icons for the current page.
|
||
76 | * - $node: The node object, if there is an automatically-loaded node
|
||
77 | * associated with the page, and the node ID is the second argument
|
||
78 | * in the page's path (e.g. node/12345 and node/12345/revisions, but not
|
||
79 | * comment/reply/12345).
|
||
80 | *
|
||
81 | * Core Regions:
|
||
82 | * - $page['help']: Dynamic help text, mostly for admin pages.
|
||
83 | * - $page['highlighted']: Items for the highlighted content region.
|
||
84 | * - $page['content']: The main content of the current page.
|
||
85 | * - $page['sidebar_first']: Items for the first sidebar.
|
||
86 | * - $page['sidebar_second']: Items for the second sidebar.
|
||
87 | * - $page['header']: Items for the header region.
|
||
88 | * - $page['footer']: Items for the footer region.
|
||
89 | *
|
||
90 | * Adaptivetheme Regions:
|
||
91 | * - $page['leaderboard']: full width at the very top of the page
|
||
92 | * - $page['menu_bar']: menu blocks placed here will be styled horizontal
|
||
93 | * - $page['secondary_content']: full width just above the main columns
|
||
94 | * - $page['content_aside']: like a main content bottom region
|
||
95 | * - $page['tertiary_content']: full width just above the footer
|
||
96 | *
|
||
97 | * @see template_preprocess()
|
||
98 | * @see template_preprocess_page()
|
||
99 | * @see template_process()
|
||
100 | * @see adaptivetheme_preprocess_page()
|
||
101 | * @see adaptivetheme_process_page()
|
||
102 | */
|
||
103 | ?>
|
||
104 | <div id="page-wrapper"> |
||
105 | <div id="page" class="<?php print $classes; ?>"> |
||
106 | |||
107 | <?php if($page['leaderboard']): ?> |
||
108 | <div id="leaderboard-wrapper"> |
||
109 | <div class="container clearfix"> |
||
110 | <?php print render($page['leaderboard']); ?> |
||
111 | </div>
|
||
112 | </div>
|
||
113 | <?php endif; ?> |
||
114 | |||
115 | <div id="header-wrapper"> |
||
116 | <div class="container clearfix"> |
||
117 | <header<?php print $header_attributes; ?>> |
||
118 | |||
119 | <?php if ($site_logo || $site_name || $site_slogan): ?> |
||
120 | <!-- start: Branding -->
|
||
121 | <div<?php print $branding_attributes; ?>> |
||
122 | |||
123 | <?php if ($site_logo): ?> |
||
124 | <div id="logo"> |
||
125 | <?php print $site_logo; ?> |
||
126 | </div>
|
||
127 | <?php endif; ?> |
||
128 | |||
129 | <?php if ($site_name || $site_slogan): ?> |
||
130 | 74f6bef0 | Assos Assos | <!-- start: Site name and Slogan -->
|
131 | <div<?php print $hgroup_attributes; ?>> |
||
132 | 85ad3d82 | Assos Assos | |
133 | <?php if ($site_name): ?> |
||
134 | <h1<?php print $site_name_attributes; ?>><?php print $site_name; ?></h1> |
||
135 | <?php endif; ?> |
||
136 | |||
137 | <?php if ($site_slogan): ?> |
||
138 | <h2<?php print $site_slogan_attributes; ?>><?php print $site_slogan; ?></h2> |
||
139 | <?php endif; ?> |
||
140 | |||
141 | 74f6bef0 | Assos Assos | </div><!-- /end #name-and-slogan --> |
142 | 85ad3d82 | Assos Assos | <?php endif; ?> |
143 | |||
144 | |||
145 | </div><!-- /end #branding --> |
||
146 | <?php endif; ?> |
||
147 | |||
148 | <?php print render($page['header']); ?> |
||
149 | |||
150 | </header>
|
||
151 | </div>
|
||
152 | </div>
|
||
153 | |||
154 | <?php if ($page['menu_bar'] || $primary_navigation || $secondary_navigation): ?> |
||
155 | <div id="nav-wrapper"> |
||
156 | <div class="container clearfix"> |
||
157 | <?php print render($page['menu_bar']); ?> |
||
158 | <?php if ($primary_navigation): print $primary_navigation; endif; ?> |
||
159 | <?php if ($secondary_navigation): print $secondary_navigation; endif; ?> |
||
160 | </div>
|
||
161 | </div>
|
||
162 | <?php endif; ?> |
||
163 | |||
164 | <?php if ($breadcrumb): ?> |
||
165 | <div id="breadcrumb-wrapper"> |
||
166 | <div class="container clearfix"> |
||
167 | <?php print $breadcrumb; ?> |
||
168 | </div>
|
||
169 | </div>
|
||
170 | <?php endif; ?> |
||
171 | |||
172 | <?php if ($messages || $page['help']): ?> |
||
173 | <div id="messages-help-wrapper"> |
||
174 | <div class="container clearfix"> |
||
175 | <?php print $messages; ?> |
||
176 | <?php print render($page['help']); ?> |
||
177 | </div>
|
||
178 | </div>
|
||
179 | <?php endif; ?> |
||
180 | |||
181 | <?php if ($page['secondary_content']): ?> |
||
182 | <div id="secondary-content-wrapper"> |
||
183 | <div class="container clearfix"> |
||
184 | <?php print render($page['secondary_content']); ?> |
||
185 | </div>
|
||
186 | </div>
|
||
187 | <?php endif; ?> |
||
188 | |||
189 | <div id="content-wrapper"><div class="container"> |
||
190 | <div id="columns"><div class="columns-inner clearfix"> |
||
191 | <div id="content-column"><div class="content-inner"> |
||
192 | |||
193 | <?php print render($page['highlighted']); ?> |
||
194 | |||
195 | <<?php print $tag; ?> id="main-content"> |
||
196 | |||
197 | <?php print render($title_prefix); ?> |
||
198 | |||
199 | <?php if ($title || $primary_local_tasks || $secondary_local_tasks || $action_links = render($action_links)): ?> |
||
200 | <header<?php print $content_header_attributes; ?>> |
||
201 | |||
202 | <?php if ($title): ?> |
||
203 | <h1 id="page-title"><?php print $title; ?></h1> |
||
204 | <?php endif; ?> |
||
205 | |||
206 | <?php if ($primary_local_tasks || $secondary_local_tasks || $action_links): ?> |
||
207 | <div id="tasks"> |
||
208 | |||
209 | <?php if ($primary_local_tasks): ?> |
||
210 | <ul class="tabs primary clearfix"><?php print render($primary_local_tasks); ?></ul> |
||
211 | <?php endif; ?> |
||
212 | |||
213 | <?php if ($secondary_local_tasks): ?> |
||
214 | <ul class="tabs secondary clearfix"><?php print render($secondary_local_tasks); ?></ul> |
||
215 | <?php endif; ?> |
||
216 | |||
217 | <?php if ($action_links = render($action_links)): ?> |
||
218 | <ul class="action-links clearfix"><?php print $action_links; ?></ul> |
||
219 | <?php endif; ?> |
||
220 | |||
221 | </div>
|
||
222 | <?php endif; ?> |
||
223 | |||
224 | </header>
|
||
225 | <?php endif; ?> |
||
226 | |||
227 | <?php if ($content = render($page['content'])): ?> |
||
228 | <div id="content"> |
||
229 | <?php print $content; ?> |
||
230 | </div>
|
||
231 | <?php endif; ?> |
||
232 | |||
233 | <?php print $feed_icons; ?> |
||
234 | |||
235 | <?php print render($title_suffix); // Prints page level contextual links ?> |
||
236 | |||
237 | </<?php print $tag; ?>> |
||
238 | |||
239 | <?php print render($page['content_aside']); ?> |
||
240 | |||
241 | </div></div> |
||
242 | |||
243 | <?php print render($page['sidebar_first']); ?> |
||
244 | <?php print render($page['sidebar_second']); ?> |
||
245 | |||
246 | </div></div> |
||
247 | </div></div> |
||
248 | |||
249 | <?php if ($page['tertiary_content']): ?> |
||
250 | <div id="tertiary-content-wrapper"> |
||
251 | <div class="container clearfix"> |
||
252 | <?php print render($page['tertiary_content']); ?> |
||
253 | </div>
|
||
254 | </div>
|
||
255 | <?php endif; ?> |
||
256 | |||
257 | 74f6bef0 | Assos Assos | <?php if ($page['footer'] || $attribution): ?> |
258 | 85ad3d82 | Assos Assos | <div id="footer-wrapper"> |
259 | <div class="container clearfix"> |
||
260 | <footer<?php print $footer_attributes; ?>> |
||
261 | <?php print render($page['footer']); ?> |
||
262 | 74f6bef0 | Assos Assos | <?php print $attribution; ?> |
263 | 85ad3d82 | Assos Assos | </footer>
|
264 | </div>
|
||
265 | </div>
|
||
266 | <?php endif; ?> |
||
267 | |||
268 | </div>
|
||
269 | </div> |