materio-flag-mylists-block.tpl.php 789 B

12345678910111213141516171819
  1. <div class="mylists">
  2. <?php foreach ($lists as $name => $list): ?>
  3. <section class="flag-list <?php print $list['list']->name; ?>">
  4. <?php //dsm($list, 'list');?>
  5. <h2 class="listname">
  6. <span class="listname">
  7. <?php print $list['list']->title.' ('.count($list['content']).')'; ?>
  8. </span>
  9. <a class="open-list" href="<?php print $list['list']->path; ?>">
  10. <?php //print t('open this @name', array('@name'=>variable_get('flag_lists_name', 'list'))) ;?>
  11. <i class="icon-resize-full"></i>
  12. </a>
  13. </h2>
  14. <?php $content = $list['content']; ?>
  15. <?php $entity_view = entity_view('node', $content, $viewmode); ?>
  16. <div class="flaged <?php print $list['list']->name; ?>"> <?php print render($entity_view); ?> </div>
  17. </section>
  18. <?php endforeach; ?>
  19. </div>