123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php //dsm($content); ?>
- <article class="<?php print $classes; ?>">
- <?php
- hide($content['comments']);
- hide($content['links']);
- hide($content['print_links']);
- hide($content['flaglistslinks']);
- hide($content['personalnotelink']);
- 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 ($notelink = render($content['personalnotelink'])): ?>
- <?php //dsm($content['personalnotelink']); ?>
- <section class="note">
- <?php print $notelink; ?>
- </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>
|