Advertisement
amonoxia

page--answers-question.tpl.php

Aug 18th, 2017
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.52 KB | None | 0 0
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to display a single Drupal page.
  5. *
  6. * The doctype, html, head and body tags are not in this template. Instead they
  7. * can be found in the html.tpl.php template in this directory.
  8. *
  9. * Available variables:
  10. *
  11. * General utility variables:
  12. * - $base_path: The base URL path of the Drupal installation. At the very
  13. * least, this will always default to /.
  14. * - $directory: The directory the template is located in, e.g. modules/system
  15. * or themes/bartik.
  16. * - $is_front: TRUE if the current page is the front page.
  17. * - $logged_in: TRUE if the user is registered and signed in.
  18. * - $is_admin: TRUE if the user has permission to access administration pages.
  19. *
  20. * Site identity:
  21. * - $front_page: The URL of the front page. Use this instead of $base_path,
  22. * when linking to the front page. This includes the language domain or
  23. * prefix.
  24. * - $logo: The path to the logo image, as defined in theme configuration.
  25. * - $site_name: The name of the site, empty when display has been disabled
  26. * in theme settings.
  27. * - $site_slogan: The slogan of the site, empty when display has been disabled
  28. * in theme settings.
  29. *
  30. * Navigation:
  31. * - $main_menu (array): An array containing the Main menu links for the
  32. * site, if they have been configured.
  33. * - $secondary_menu (array): An array containing the Secondary menu links for
  34. * the site, if they have been configured.
  35. * - $breadcrumb: The breadcrumb trail for the current page.
  36. *
  37. * Page content (in order of occurrence in the default page.tpl.php):
  38. * - $title_prefix (array): An array containing additional output populated by
  39. * modules, intended to be displayed in front of the main title tag that
  40. * appears in the template.
  41. * - $title: The page title, for use in the actual HTML content.
  42. * - $title_suffix (array): An array containing additional output populated by
  43. * modules, intended to be displayed after the main title tag that appears in
  44. * the template.
  45. * - $messages: HTML for status and error messages. Should be displayed
  46. * prominently.
  47. * - $tabs (array): Tabs linking to any sub-pages beneath the current page
  48. * (e.g., the view and edit tabs when displaying a node).
  49. * - $action_links (array): Actions local to the page, such as 'Add menu' on the
  50. * menu administration interface.
  51. * - $feed_icons: A string of all feed icons for the current page.
  52. * - $node: The node object, if there is an automatically-loaded node
  53. * associated with the page, and the node ID is the second argument
  54. * in the page's path (e.g. node/12345 and node/12345/revisions, but not
  55. * comment/reply/12345).
  56. *
  57. * Regions:
  58. * - $page['help']: Dynamic help text, mostly for admin pages.
  59. * - $page['highlighted']: Items for the highlighted content region.
  60. * - $page['content']: The main content of the current page.
  61. * - $page['sidebar_first']: Items for the first sidebar.
  62. * - $page['sidebar_second']: Items for the second sidebar.
  63. * - $page['header']: Items for the header region.
  64. * - $page['footer']: Items for the footer region.
  65. *
  66. * @see bootstrap_preprocess_page()
  67. * @see template_preprocess()
  68. * @see template_preprocess_page()
  69. * @see bootstrap_process_page()
  70. * @see template_process()
  71. * @see html.tpl.php
  72. *
  73. * @ingroup themeable
  74. */
  75.  
  76. global $theme;
  77. ?>
  78. <?php print $boxed_cnt; ?>
  79.  
  80. <?php if (!empty($secondary_nav) || !empty($page['secondary_header'])): ?>
  81. <header id="secondary-header" role="banner" class="<?php print $glazed_secondary_header_classes; ?>">
  82. <div class="<?php print $cnt_secondary_header ?> secondary-header-container">
  83. <?php print $cnt_secondary_header_squeeze_start; ?>
  84. <?php if (!empty($page['secondary_header'])): ?>
  85. <?php print render($page['secondary_header']); ?>
  86. <?php endif; ?>
  87. <?php if (!isset($hide_navigation) && !empty($secondary_nav)): ?>
  88. <?php print render($secondary_nav); ?>
  89. <?php endif; ?>
  90. <?php print $cnt_secondary_header_squeeze_end; ?>
  91. </div>
  92. </header>
  93. <?php endif; ?>
  94.  
  95. <?php if (!isset($hide_header)): ?>
  96. <header id="navbar" role="banner" class="<?php print $glazed_header_classes; ?>"<?php if (isset($header_affix)): print $header_affix; endif; ?>>
  97. <div class="<?php print $cnt_header_nav ?> navbar-container">
  98. <?php print $cnt_header_nav_squeeze_start; ?>
  99. <div class="navbar-header">
  100. <?php if ($logo OR !empty($site_name)): ?>
  101. <div class="wrap-branding">
  102. <?php if ($logo): ?>
  103. <a class="logo navbar-btn" href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>">
  104. <img src="<?php print $logo; ?>" id="logo" alt="<?php print t('Home'); ?>" />
  105. </a>
  106. <?php endif; ?>
  107.  
  108. <?php if (!empty($site_name)): ?>
  109. <a class="name navbar-brand" href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a>
  110. <?php endif; ?>
  111. </div>
  112. <?php endif; ?>
  113.  
  114. <?php if ((!isset($hide_navigation)) && !empty($primary_nav) || !empty($page['navigation'])): ?>
  115. <a id="glazed-menu-toggle" href="#"><span></span></a>
  116. <?php endif; ?>
  117. </div>
  118.  
  119. <?php if ((!isset($hide_navigation)) && !empty($primary_nav) || !empty($page['navigation'])): ?>
  120. <nav role="navigation" id="glazed-main-menu" class="glazed-main-menu">
  121. <?php if (!empty($primary_nav)): ?>
  122. <?php print render($primary_nav); ?>
  123. <?php endif; ?>
  124. <?php if (!empty($page['navigation'])): ?>
  125. <?php print render($page['navigation']); ?>
  126. <?php endif; ?>
  127. </nav>
  128. <?php endif; ?>
  129. <?php print $cnt_header_nav_squeeze_end; ?>
  130. </div>
  131. </header>
  132. <?php endif; ?>
  133.  
  134. <div class="wrap-containers">
  135.  
  136. <?php print render($page['slider']); ?>
  137.  
  138. <?php if ((!empty($title)
  139. OR !empty($breadcrumb)
  140. OR render($page['header'])) && (!isset($hide_page_title))):
  141. ?>
  142. <div class="page-title-full-width-container<?php print $cnt_page_title_full_width; ?>" id="page-title-full-width-container">
  143. <header role="banner" id="page-title" class="<?php print $cnt_page_title; ?> page-title-container">
  144. <?php print render($title_prefix); ?>
  145. <?php if (!empty($title)): ?>
  146. <h1 class="<?php print $glazed_title_classes; ?>"><?php print $title; ?></h1>
  147. <?php endif; ?>
  148. <?php print render($title_suffix); ?>
  149. <?php print render($page['header']); ?>
  150. </header> <!-- /#page-title -->
  151. <?php if (!empty($breadcrumb) && theme_get_setting('page_title_breadcrumbs', $theme)):
  152. print '<div class="hidden-xs ' . $cnt_page_title . ' breadcrumb-container">' . $breadcrumb . '</div>';
  153. endif; ?>
  154. </div>
  155.  
  156. <?php endif; ?>
  157.  
  158. <?php if (!empty($page['highlighted'])): ?>
  159. <div class="container highlighted-container">
  160. <div class="row container-row">
  161. <div class="col-sm-12 container-col">
  162. <div class="highlighted jumbotron"><?php print render($page['highlighted']); ?></div>
  163. </div>
  164. </div>
  165. </div>
  166. <?php endif; ?>
  167.  
  168. <?php if (!empty($page['content_top'])): ?>
  169. <div class="<?php print $cnt_content_top ?> content-top-container">
  170. <?php print $cnt_content_top_squeeze_start; ?>
  171. <div class="content-top"><?php print render($page['content_top']); ?></div>
  172. <?php print $cnt_content_top_squeeze_end; ?>
  173. </div>
  174. <?php endif; ?>
  175. <div<?php print $content_container_class; ?>>
  176. <div<?php print $content_row_class; ?>>
  177. <?php if (!empty($page['sidebar_first'])): ?>
  178. <aside class="col-sm-3" role="complementary">
  179. <?php print render($page['sidebar_first']); ?>
  180. </aside> <!-- /#sidebar-first -->
  181. <?php endif; ?>
  182.  
  183. <section<?php print $content_column_class; ?>>
  184. <a id="main-content"></a>
  185. <?php print $messages; ?>
  186. <?php if (!empty($tabs)): ?>
  187. <?php if (isset($hide_page_title) OR empty($title)): ?><div class="glazed-mini-tabs-wrapper"><?php endif; ?>
  188. <?php print render($tabs); ?>
  189. <?php if (isset($hide_page_title) OR empty($title)): ?></div><?php endif; ?>
  190. <?php endif; ?>
  191. <?php if (!empty($page['help'])): ?>
  192. <?php print render($page['help']); ?>
  193. <?php endif; ?>
  194. <?php if (!empty($action_links)): ?>
  195. <ul class="action-links"><?php print render($action_links); ?></ul>
  196. <?php endif; ?>
  197. <?php print render($page['content']); ?>
  198. </section>
  199.  
  200. <?php if (!empty($page['sidebar_second'])): ?>
  201. <aside class="col-sm-3" role="complementary">
  202. <?php print render($page['sidebar_second']); ?>
  203. </aside> <!-- /#sidebar-second -->
  204. <?php endif; ?>
  205.  
  206. </div>
  207. </div>
  208.  
  209. <?php if (!empty($page['content_bottom'])): ?>
  210. <div class="<?php print $cnt_content_bottom ?> content-bottom-container">
  211. <?php print $cnt_content_bottom_squeeze_start; ?>
  212. <div class="content-bottom"><?php print render($page['content_bottom']); ?></div>
  213. <?php print $cnt_content_bottom_squeeze_end; ?>
  214. </div>
  215. <?php endif; ?>
  216. </div>
  217.  
  218. <!-- /#Sticky Footer -->
  219. <?php if (!empty($page['footer'])): ?>
  220. <footer class="glazed-footer clearfix">
  221. <div class="<?php print $cnt_footer ?> footer-container">
  222. <?php print $cnt_footer_squeeze_start; ?>
  223. <?php print render($page['footer']); ?>
  224. <?php print $sooperthemes_attribution_link; ?>
  225. <?php print $cnt_footer_squeeze_end; ?>
  226. </div>
  227. </footer>
  228. <?php endif; ?>
  229.  
  230. <?php print $boxed_cnt_end; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement