node--materiau.tpl.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php //dsm($content); ?>
  2. <article class="<?php print $classes; ?>">
  3. <?php
  4. hide($content['comments']);
  5. hide($content['links']);
  6. hide($content['print_links']);
  7. hide($content['flaglistslinks']);
  8. print render($content);
  9. ?>
  10. <?php
  11. global $user;
  12. $vm = array('cardmedium', 'cardbig'); //, upgrade with 'cardfull' needs more design works, postponed
  13. if( isset($user->roles[1]) && in_array($view_mode, $vm)):
  14. ?>
  15. <div class="side oops">
  16. <p>
  17. <?php print t("<strong>Oops!</strong></br> In order to access information matériO collected about thousands of manufacturers of emerging materials, you need to be part of materiO... ") . l(t('Join us!'), 'node/11187'); ?>
  18. </p>
  19. </div>
  20. <?php endif; ?>
  21. <?php
  22. /* if( (isset($user->roles[7]) || isset($user->roles[9])) && in_array($view_mode, $vm) ):
  23. ?>
  24. <div class="upgrade">
  25. <p>
  26. <?php print t("In order to access information about manufacturers and more, you need to upgrade your account.") . l(t('Pricing'), 'node/11187'); ?>
  27. </p>
  28. </div>
  29. <?php endif; */ ?>
  30. <?php if($workflow == 5): ?>
  31. <div class="workflow"> <i class="icon-warning-sign"></i><span><?php print t("in progress"); ?></span></div>
  32. <?php endif; ?>
  33. <nav class="nav">
  34. <?php if ($links = render($content['links'])): ?>
  35. <section class="links">
  36. <i class="icon-share-alt"></i>
  37. <?php print $links; ?>
  38. </section>
  39. <?php endif; ?>
  40. <?php if ($flags = render($content['flaglistslinks'])): ?>
  41. <section class="flags">
  42. <i class="icon-folder-open"></i>
  43. <?php print $flags; ?>
  44. </section>
  45. <?php endif; ?>
  46. <?php if (FALSE && $print_links = render($content['print_links'])): ?>
  47. <section class="print-links">
  48. <i class="icon-file"></i>
  49. <?php print $print_links; ?>
  50. </section>
  51. <?php endif; ?>
  52. </nav>
  53. </article>