Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 KB | None | 0 0
  1. $nid = $node->field_linked_fiche['und'][0]['nid'];
  2. $fullFiche = node_load($nid);
  3.  
  4. <?php
  5.  
  6. /**
  7. * @file
  8. * Bartik's theme implementation to display a single Drupal page.
  9. *
  10. ...
  11. */
  12. ?>
  13. <div id="page-wrapper"><div id="page">
  14.  
  15. <div id="header" class="<?php print $secondary_menu ? 'with-secondary-menu': 'without-secondary-menu'; ?>"><div class="section clearfix">
  16.  
  17. <?php if ($logo): ?>
  18. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
  19. <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
  20. </a>
  21. <?php endif; ?>
  22.  
  23. <?php if ($site_name || $site_slogan): ?>
  24. <div id="name-and-slogan"<?php if ($hide_site_name && $hide_site_slogan) { print ' class="element-invisible"'; } ?>>
  25.  
  26. <?php if ($site_name): ?>
  27. <?php if ($title): ?>
  28. <div id="site-name"<?php if ($hide_site_name) { print ' class="element-invisible"'; } ?>>
  29. <strong>
  30. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
  31. </strong>
  32. </div>
  33. <?php else: /* Use h1 when the content title is empty */ ?>
  34. <h1 id="site-name"<?php if ($hide_site_name) { print ' class="element-invisible"'; } ?>>
  35. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
  36. </h1>
  37. <?php endif; ?>
  38. <?php endif; ?>
  39.  
  40. <?php if ($site_slogan): ?>
  41. <div id="site-slogan"<?php if ($hide_site_slogan) { print ' class="element-invisible"'; } ?>>
  42. <?php print $site_slogan; ?>
  43. </div>
  44. <?php endif; ?>
  45.  
  46. </div> <!-- /#name-and-slogan -->
  47. <?php endif; ?>
  48.  
  49. <?php print render($page['header']); ?>
  50.  
  51. <?php if ($main_menu): ?>
  52. <div id="main-menu" class="navigation">
  53. <?php print theme('links__system_main_menu', array(
  54. 'links' => $main_menu,
  55. 'attributes' => array(
  56. 'id' => 'main-menu-links',
  57. 'class' => array('links', 'clearfix'),
  58. ),
  59. 'heading' => array(
  60. 'text' => t('Main menu'),
  61. 'level' => 'h2',
  62. 'class' => array('element-invisible'),
  63. ),
  64. )); ?>
  65. </div> <!-- /#main-menu -->
  66. <?php endif; ?>
  67.  
  68. <?php if ($secondary_menu): ?>
  69. <div id="secondary-menu" class="navigation">
  70. <?php print theme('links__system_secondary_menu', array(
  71. 'links' => $secondary_menu,
  72. 'attributes' => array(
  73. 'id' => 'secondary-menu-links',
  74. 'class' => array('links', 'inline', 'clearfix'),
  75. ),
  76. 'heading' => array(
  77. 'text' => t('Secondary menu'),
  78. 'level' => 'h2',
  79. 'class' => array('element-invisible'),
  80. ),
  81. )); ?>
  82. </div> <!-- /#secondary-menu -->
  83. <?php endif; ?>
  84.  
  85. </div></div> <!-- /.section, /#header -->
  86.  
  87. <?php if ($messages): ?>
  88. <div id="messages"><div class="section clearfix">
  89. <?php print $messages; ?>
  90. </div></div> <!-- /.section, /#messages -->
  91. <?php endif; ?>
  92.  
  93. <div id="main-wrapper" class="clearfix"><div id="main" class="clearfix">
  94.  
  95. <?php if ($breadcrumb): ?>
  96. <div id="breadcrumb"><?php print $breadcrumb; ?></div>
  97. <?php endif; ?>
  98.  
  99. <?php if ($page['sidebar_first']): ?>
  100. <div id="sidebar-first" class="column sidebar"><div class="section">
  101. <?php print render($page['sidebar_first']); ?>
  102. </div></div> <!-- /.section, /#sidebar-first -->
  103. <?php endif; ?>
  104.  
  105. <div id="content" class="column"><div class="section">
  106. <?php if ($page['highlighted']): ?><div id="highlighted"><?php print render($page['highlighted']); ?></div><?php endif; ?>
  107. <a id="main-content"></a>
  108. <?php print render($title_prefix); ?>
  109. <?php if ($title): ?>
  110. <h1 class="title" id="page-title">
  111. <?php print $title; ?>
  112. </h1>
  113. <?php endif; ?>
  114. <?php print render($title_suffix); ?>
  115. <?php if ($tabs): ?>
  116. <div class="tabs">
  117. <?php print render($tabs); ?>
  118. </div>
  119. <?php endif; ?>
  120. <?php print render($page['help']); ?>
  121. <?php if ($action_links): ?>
  122. <ul class="action-links">
  123. <?php print render($action_links); ?>
  124. </ul>
  125. <?php endif; ?>
  126. // Render second node inside this one
  127. <?php
  128. $nid = 739; // NOTE :: Hard coded, but need to be variable!!
  129. drupal_render(node_view(node_load($nid)))
  130. ?>
  131. <?php print render($page['content']); ?>
  132. <?php print $feed_icons; ?>
  133.  
  134. </div></div> <!-- /.section, /#content -->
  135.  
  136. <?php if ($page['sidebar_second']): ?>
  137. <div id="sidebar-second" class="column sidebar"><div class="section">
  138. <?php print render($page['sidebar_second']); ?>
  139. </div></div> <!-- /.section, /#sidebar-second -->
  140. <?php endif; ?>
  141.  
  142. </div></div> <!-- /#main, /#main-wrapper -->
  143.  
  144. <div id="footer-wrapper"><div class="section">
  145.  
  146. <?php if ($page['footer']): ?>
  147. <div id="footer" class="clearfix">
  148. <?php print render($page['footer']); ?>
  149. </div> <!-- /#footer -->
  150. <?php endif; ?>
  151.  
  152. </div></div> <!-- /.section, /#footer-wrapper -->
  153.  
  154. </div></div> <!-- /#page, /#page-wrapper -->
  155.  
  156. <?php
  157. $nid = 739; // NOTE :: Hard coded, but need to be variable!!
  158. print drupal_render(node_view(node_load($nid)));
  159. ?>
  160.  
  161. drupal_render(node_view(node_load($nid)))
  162.  
  163. <?php //use variable to avoid strict warning
  164. $nid = 739;
  165. $nodeview = node_view(node_load($nid));
  166. print drupal_render($nodeview);
  167. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement