root / drupal7 / sites / all / themes / adaptivetheme / at_core / templates / panels-pane.tpl.php @ fbb05e21
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* Adaptivetheme panel pane template.
|
5 |
*
|
6 |
* This template has block type classes to they react to styles applied to blocks,
|
7 |
* saving the trouble of having to style multiple selectors to target blocks
|
8 |
* and panel panes. This template also makes use the attributes arrays for the
|
9 |
* wrapper and content wrapper.
|
10 |
*
|
11 |
* Adaptivetheme variables:
|
12 |
* - $is_mobile: Mixed, requires the Mobile Detect or Browscap module to return
|
13 |
* TRUE for mobile. Note that tablets are also considered mobile devices.
|
14 |
* Returns NULL if the feature could not be detected.
|
15 |
* - $is_tablet: Mixed, requires the Mobile Detect to return TRUE for tablets.
|
16 |
* Returns NULL if the feature could not be detected.
|
17 |
* - $tag: top level wrapper element, section or div.
|
18 |
*
|
19 |
* Variables available:
|
20 |
* - $pane->type: the content type inside this pane
|
21 |
* - $pane->subtype: The subtype, if applicable. If a view it will be the
|
22 |
* view name; if a node it will be the nid, etc.
|
23 |
* - $title: The title of the content
|
24 |
* - $content: The actual content
|
25 |
* - $links: Any links associated with the content
|
26 |
* - $more: An optional 'more' link (destination only)
|
27 |
* - $admin_links: Administrative links associated with the content
|
28 |
* - $feeds: Any feed icons or associated with the content
|
29 |
* - $display: The complete panels display object containing all kinds of
|
30 |
* data including the contexts and all of the other panes being displayed.
|
31 |
*/
|
32 |
?>
|
33 |
<?php if (isset($pane_prefix)): print $pane_prefix; endif; ?> |
34 |
<<?php print $tag . $attributes . $id; ?>> |
35 |
<div class="block-inner clearfix"> |
36 |
<?php if ($admin_links): ?> |
37 |
<?php print $admin_links; ?> |
38 |
<?php endif; ?> |
39 |
|
40 |
<?php print render($title_prefix); ?> |
41 |
<?php if ($title): ?> |
42 |
<h2<?php print $title_attributes; ?>><?php print $title; ?></h2> |
43 |
<?php endif; ?> |
44 |
<?php print render($title_suffix); ?> |
45 |
|
46 |
<?php if ($feeds): ?> |
47 |
<div class="feed"> |
48 |
<?php print $feeds; ?> |
49 |
</div>
|
50 |
<?php endif; ?> |
51 |
|
52 |
<div<?php print $content_attributes; ?>> |
53 |
<?php print render($content); ?> |
54 |
</div>
|
55 |
|
56 |
<?php if ($links): ?> |
57 |
<nav class="links"> |
58 |
<?php print $links; ?> |
59 |
</nav>
|
60 |
<?php endif; ?> |
61 |
|
62 |
<?php if ($more): ?> |
63 |
<div class="more-link"> |
64 |
<?php print $more; ?> |
65 |
</div>
|
66 |
<?php endif; ?> |
67 |
|
68 |
</div>
|
69 |
</<?php print $tag; ?>> |
70 |
<?php if (isset($pane_suffix)): print $pane_suffix; endif; ?> |