panels-pane.tpl.php

  1. cis7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/panels-pane.tpl.php
  2. cle7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/panels-pane.tpl.php
  3. ecd7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/panels-pane.tpl.php
  4. elmsmedia7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/panels-pane.tpl.php
  5. harmony7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/panels-pane.tpl.php
  6. icor7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/panels-pane.tpl.php
  7. meedjum_blog7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/panels-pane.tpl.php
  8. mooc7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/panels-pane.tpl.php

Adaptivetheme panel pane template.

This template has block type classes to they react to styles applied to blocks, saving the trouble of having to style multiple selectors to target blocks and panel panes. This template also makes use the attributes arrays for the wrapper and content wrapper.

Adaptivetheme variables:

  • $is_mobile: Mixed, requires the Mobile Detect or Browscap module to return TRUE for mobile. Note that tablets are also considered mobile devices. Returns NULL if the feature could not be detected.
  • $is_tablet: Mixed, requires the Mobile Detect to return TRUE for tablets. Returns NULL if the feature could not be detected.
  • $tag: top level wrapper element, section or div.

Variables available:

  • $pane->type: the content type inside this pane
  • $pane->subtype: The subtype, if applicable. If a view it will be the view name; if a node it will be the nid, etc.
  • $title: The title of the content
  • $content: The actual content
  • $links: Any links associated with the content
  • $more: An optional 'more' link (destination only)
  • $admin_links: Administrative links associated with the content
  • $feeds: Any feed icons or associated with the content
  • $display: The complete panels display object containing all kinds of data including the contexts and all of the other panes being displayed.
1 string reference to the theme hook from panels-pane.tpl.php

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

aurora_preprocess_panels_pane in sites/all/themes/ulmus/aurora/template.php

File

sites/all/themes/ulmus/adaptivetheme/at_core/templates/panels-pane.tpl.php
View source
  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. <?php print render($title_prefix); ?>
  40. <?php if ($title): ?>
  41. <h2<?php print $title_attributes; ?>><?php print $title; ?></h2>
  42. <?php endif; ?>
  43. <?php print render($title_suffix); ?>
  44. <?php if ($feeds): ?>
  45. <div class="feed">
  46. <?php print $feeds; ?>
  47. </div>
  48. <?php endif; ?>
  49. <div<?php print $content_attributes; ?>>
  50. <?php print render($content); ?>
  51. </div>
  52. <?php if ($links): ?>
  53. <nav class="links">
  54. <?php print $links; ?>
  55. </nav>
  56. <?php endif; ?>
  57. <?php if ($more): ?>
  58. <div class="more-link">
  59. <?php print $more; ?>
  60. </div>
  61. <?php endif; ?>
  62. </div>
  63. </<?php print $tag; ?>>
  64. <?php if (isset($pane_suffix)): print $pane_suffix; endif; ?>