node--materiau.tpl.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. // dsm($user);
  13. $vm = array('cardmedium', 'cardbig'); //, upgrade with 'cardfull' needs more design works, postponed
  14. // if( isset($user->roles[1]) && in_array($view_mode, $vm)):
  15. if( !isset($user->roles[10]) // student
  16. && !isset($user->roles[11]) // alphatesteur
  17. && !isset($user->roles[6]) // adherent
  18. && !isset($user->roles[8]) // premium
  19. && !isset($user->roles[12]) // translator
  20. && !isset($user->roles[13]) // admin showroom
  21. && !isset($user->roles[3]) // admin
  22. && !isset($user->roles[4]) // root
  23. && in_array($view_mode, $vm)):
  24. ?>
  25. <div class="side oops">
  26. <p>
  27. <?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'); ?>
  28. </p>
  29. </div>
  30. <?php endif; ?>
  31. <?php
  32. /* if( (isset($user->roles[7]) || isset($user->roles[9])) && in_array($view_mode, $vm) ):
  33. ?>
  34. <div class="upgrade">
  35. <p>
  36. <?php print t("In order to access information about manufacturers and more, you need to upgrade your account.") . l(t('Pricing'), 'node/11187'); ?>
  37. </p>
  38. </div>
  39. <?php endif; */ ?>
  40. <?php if($workflow == 5): ?>
  41. <div class="workflow"> <i class="icon-warning-sign"></i><span><?php print t("in progress"); ?></span></div>
  42. <?php endif; ?>
  43. <nav class="nav">
  44. <?php if ($links = render($content['links'])): ?>
  45. <section class="links">
  46. <i class="fi-download"></i>
  47. <?php print $links; ?>
  48. </section>
  49. <?php endif; ?>
  50. <?php if ($flags = render($content['flaglistslinks'])): ?>
  51. <section class="flags">
  52. <i class="fi-folder"></i>
  53. <?php print $flags; ?>
  54. </section>
  55. <?php endif; ?>
  56. <?php if (FALSE && $print_links = render($content['print_links'])): ?>
  57. <section class="print-links">
  58. <i class="icon-file"></i>
  59. <?php print $print_links; ?>
  60. </section>
  61. <?php endif; ?>
  62. </nav>
  63. </article>