12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php //dsm($content); ?>
- <article class="<?php print $classes; ?>">
- <?php
- hide($content['comments']);
- hide($content['links']);
- hide($content['print_links']);
- hide($content['flaglistslinks']);
- print render($content);
- ?>
- <?php
- global $user;
- // dsm($user);
- $vm = array('cardmedium', 'cardbig'); //, upgrade with 'cardfull' needs more design works, postponed
- // if( isset($user->roles[1]) && in_array($view_mode, $vm)):
- if( !isset($user->roles[10]) // student
- && !isset($user->roles[11]) // alphatesteur
- && !isset($user->roles[6]) // adherent
- && !isset($user->roles[8]) // premium
- && !isset($user->roles[12]) // translator
- && !isset($user->roles[13]) // admin showroom
- && !isset($user->roles[3]) // admin
- && !isset($user->roles[4]) // root
- && in_array($view_mode, $vm)):
- ?>
- <div class="side oops">
- <p>
- <?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'); ?>
- </p>
- </div>
- <?php endif; ?>
- <?php
- /* if( (isset($user->roles[7]) || isset($user->roles[9])) && in_array($view_mode, $vm) ):
- ?>
- <div class="upgrade">
- <p>
- <?php print t("In order to access information about manufacturers and more, you need to upgrade your account.") . l(t('Pricing'), 'node/11187'); ?>
- </p>
- </div>
- <?php endif; */ ?>
- <?php if($workflow == 5): ?>
- <div class="workflow"> <i class="icon-warning-sign"></i><span><?php print t("in progress"); ?></span></div>
- <?php endif; ?>
- <nav class="nav">
- <?php if ($links = render($content['links'])): ?>
- <section class="links">
- <i class="fi-download"></i>
- <?php print $links; ?>
- </section>
- <?php endif; ?>
- <?php if ($flags = render($content['flaglistslinks'])): ?>
- <section class="flags">
- <i class="fi-folder"></i>
- <?php print $flags; ?>
- </section>
- <?php endif; ?>
- <?php if (FALSE && $print_links = render($content['print_links'])): ?>
- <section class="print-links">
- <i class="icon-file"></i>
- <?php print $print_links; ?>
- </section>
- <?php endif; ?>
- </nav>
- </article>
|